@consent.software/catalog 1.6.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist_bundle/bundle.js +632 -401
  2. package/dist_bundle/bundle.js.map +4 -4
  3. package/dist_ts_web/00_commitinfo_data.js +1 -1
  4. package/dist_ts_web/elements/consentsoftware-cookieconsent.d.ts +4 -20
  5. package/dist_ts_web/elements/consentsoftware-cookieconsent.js +267 -303
  6. package/dist_ts_web/elements/consentsoftware-header.d.ts +3 -4
  7. package/dist_ts_web/elements/consentsoftware-header.js +89 -38
  8. package/dist_ts_web/elements/consentsoftware-mainselection.d.ts +6 -7
  9. package/dist_ts_web/elements/consentsoftware-mainselection.js +126 -54
  10. package/dist_ts_web/elements/consentsoftware-tabs.d.ts +4 -5
  11. package/dist_ts_web/elements/consentsoftware-tabs.js +109 -62
  12. package/dist_ts_web/elements/consentsoftware-toggle.d.ts +11 -9
  13. package/dist_ts_web/elements/consentsoftware-toggle.js +262 -214
  14. package/dist_ts_web/elements/shared.d.ts +35 -1
  15. package/dist_ts_web/elements/shared.js +36 -2
  16. package/dist_ts_web/pages/page1.d.ts +1 -1
  17. package/dist_ts_web/pages/page1.js +2 -2
  18. package/dist_watch/bundle.js +10228 -4196
  19. package/dist_watch/bundle.js.map +4 -4
  20. package/package.json +9 -9
  21. package/readme.md +149 -80
  22. package/ts_web/00_commitinfo_data.ts +1 -1
  23. package/ts_web/elements/consentsoftware-cookieconsent.ts +150 -218
  24. package/ts_web/elements/consentsoftware-header.ts +40 -23
  25. package/ts_web/elements/consentsoftware-mainselection.ts +63 -33
  26. package/ts_web/elements/consentsoftware-tabs.ts +51 -37
  27. package/ts_web/elements/consentsoftware-toggle.ts +123 -107
  28. package/ts_web/elements/shared.ts +38 -2
  29. package/ts_web/pages/page1.ts +1 -1
  30. package/ts_web/tsconfig.json +4 -4
@@ -1,49 +1,447 @@
1
- var dy=Object.create;var En=Object.defineProperty;var bf=Object.getOwnPropertyDescriptor;var hy=Object.getOwnPropertyNames;var yy=Object.getPrototypeOf,xy=Object.prototype.hasOwnProperty;var vf=t=>{throw TypeError(t)};var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),re=(t,e)=>{for(var r in e)En(t,r,{get:e[r],enumerable:!0})},gy=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hy(e))!xy.call(t,n)&&n!==r&&En(t,n,{get:()=>e[n],enumerable:!(o=bf(e,n))||o.enumerable});return t};var nt=(t,e,r)=>(r=t!=null?dy(yy(t)):{},gy(e||!t||!t.__esModule?En(r,"default",{value:t,enumerable:!0}):r,t));var Ce=(t,e,r,o)=>{for(var n=o>1?void 0:o?bf(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&&En(e,r,n),n};var wf=(t,e,r)=>e.has(t)||vf("Cannot "+r);var Js=(t,e,r)=>(wf(t,e,"read from private field"),r?r.call(t):e.get(t)),Xs=(t,e,r)=>e.has(t)?vf("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Zs=(t,e,r,o)=>(wf(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var la=A(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.uni=void 0;var Ny=(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=Ny});var Ul=A((Iu,ku)=>{(function(t,e){typeof Iu=="object"&&typeof ku<"u"?ku.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Iu,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])+"]"}},E=function(P,v,b){var M=String(P);return!M||M.length>=v?P:""+Array(v+1-M.length).join(b)+P},D={s:E,z:function(P){var v=-P.utcOffset(),b=Math.abs(v),M=Math.floor(b/60),S=b%60;return(v<=0?"+":"-")+E(M,2,"0")+":"+E(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",B={};B[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();B[F]&&(S=F),b&&(B[F]=b,S=F);var x=v.split("-");if(!S&&x.length>1)return P(x[0])}else{var O=v.name;B[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 B[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}(),Be=se.prototype;return q.prototype=Be,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",a],["$M",c],["$y",m],["$D",p]].forEach(function(P){Be[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=B[T],q.Ls=B,q.p={},q})});var Bl=A((Pu,Cu)=>{(function(t,e){typeof Pu=="object"&&typeof Cu<"u"?Cu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Pu,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 Hl=A((R9,ql)=>{"use strict";ql.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 zl=A((W9,jl)=>{"use strict";jl.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Jl=A((U9,Ql)=>{"use strict";var Vl=Symbol(),Gl=Symbol(),Ft=Symbol(),Kl=Symbol(),ot=class{constructor(e,r,o,n){this[Vl]=e,this[Gl]=r,this[Ft]=o,this[Kl]=n}next(){let e=this[Vl],r=this[Kl],o=this[Gl];if(!this[Ft])return{done:!0,value:o};let n=this[Ft];return r===1?this[Ft]=e._node(n).previousSibling:r===2?this[Ft]=e._node(n).nextSibling:r===3?this[Ft]=e._node(n).parent:r===4?this[Ft]=e.preceding(n,{root:o}):this[Ft]=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);Ql.exports=ot});var Zl=A((B9,Xl)=>{"use strict";var Bv=Hl(),$t=zl(),Qe=Jl();function Yu(){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 Bv)}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||Yu,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||Yu,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||Yu,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 $t.CONTAINS|$t.PRECEDING;o.push(f),f=this.parent(f)}}let n=[];{let f=r;for(;f;){if(f===e)return $t.CONTAINED_BY|$t.FOLLOWING;n.push(f),f=this.parent(f)}}let i=Jr(o,0);if(!i||i!==Jr(n,0))return $t.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?$t.PRECEDING:$t.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}};Xl.exports=ls;ls.TreePosition=$t});var fp=A((Xr,Zr)=>{(function(t){var e=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,r=typeof Zr=="object"&&Zr&&!Zr.nodeType&&Zr,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,E={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,B=String.fromCharCode,V;function z(x){throw new RangeError(E[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+=B(O>>>10&1023|55296),O=56320|O&1023),k+=B(O),k}).join("")}function Be(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,kt,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=Be(x.charCodeAt(he++)),(Oe>=s||Oe>T((i-U)/te))&&z("overflow"),U+=Oe*te,kt=ye<=ne?a:ye>=ne+u?u:ye-ne,!(Oe<kt);ye+=s)qt=s-kt,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,kt,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(B(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(kt=$+1,ce-O>T((i-k)/kt)&&z("overflow"),k+=(ce-O)*kt,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(B(P(ie+Qs%qt,0))),Se=T(Qs/qt);ye.push(B(P(Se,0))),J=v(k,kt,$==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(Zr.exports==e)r.exports=n;else for(V in n)n.hasOwnProperty(V)&&(e[V]=n[V]);else t.punycode=n})(Xr)});var xr=A((WV,lp)=>{"use strict";lp.exports=TypeError});var pp=A(()=>{});var ln=A((LV,Pp)=>{var uc=typeof Map=="function"&&Map.prototype,Zu=Object.getOwnPropertyDescriptor&&uc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ds=uc&&Zu&&typeof Zu.get=="function"?Zu.get:null,mp=uc&&Map.prototype.forEach,cc=typeof Set=="function"&&Set.prototype,ec=Object.getOwnPropertyDescriptor&&cc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hs=cc&&ec&&typeof ec.get=="function"?ec.get:null,dp=cc&&Set.prototype.forEach,yw=typeof WeakMap=="function"&&WeakMap.prototype,cn=yw?WeakMap.prototype.has:null,xw=typeof WeakSet=="function"&&WeakSet.prototype,fn=xw?WeakSet.prototype.has:null,gw=typeof WeakRef=="function"&&WeakRef.prototype,hp=gw?WeakRef.prototype.deref:null,bw=Boolean.prototype.valueOf,vw=Object.prototype.toString,ww=Function.prototype.toString,Sw=String.prototype.match,fc=String.prototype.slice,Ut=String.prototype.replace,Dw=String.prototype.toUpperCase,yp=String.prototype.toLowerCase,Op=RegExp.prototype.test,xp=Array.prototype.concat,ut=Array.prototype.join,Tw=Array.prototype.slice,gp=Math.floor,oc=typeof BigInt=="function"?BigInt.prototype.valueOf:null,tc=Object.getOwnPropertySymbols,nc=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,Mp=Object.prototype.propertyIsEnumerable,bp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function vp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Op.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-gp(-t):gp(t);if(o!==t){var n=String(o),i=fc.call(e,n.length+1);return Ut.call(n,r,"$&_")+"."+Ut.call(Ut.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ut.call(e,r,"$&_")}var ic=pp(),wp=ic.custom,Sp=Ap(wp)?wp:null,_p={__proto__:null,double:'"',single:"'"},Ow={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Pp.exports=function t(e,r,o,n){var i=r||{};if(Mt(i,"quoteStyle")&&!Mt(_p,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mt(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=Mt(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(Mt(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(Mt(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 kp(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?vp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?vp(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 sc(e)?"[Array]":"[Object]";var m=qw(i,o);if(typeof n>"u")n=[];else if(Ip(n,e)>=0)return"[Circular]";function p(v,b,M){if(b&&(n=Tw.call(n),n.push(b)),M){var S={depth:i.depth};return Mt(i,"quoteStyle")&&(S.quoteStyle=i.quoteStyle),t(v,S,o+1,n)}return t(v,i,o+1,n)}if(typeof e=="function"&&!Dp(e)){var d=Nw(e),y=ms(e,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+ut.call(y,", ")+" }":"")}if(Ap(e)){var w=eo?Ut.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):nc.call(e);return typeof e=="object"&&!eo?un(w):w}if(Bw(e)){for(var g="<"+yp.call(String(e.nodeName)),E=e.attributes||[],D=0;D<E.length;D++)g+=" "+E[D].name+"="+Ep(Mw(E[D].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+yp.call(String(e.nodeName))+">",g}if(sc(e)){if(e.length===0)return"[]";var T=ms(e,p);return m&&!Yw(T)?"["+ac(T,m)+"]":"[ "+ut.call(T,", ")+" ]"}if(Ew(e)){var B=ms(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!Mp.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(xp.call("[cause]: "+p(e.cause),B),", ")+" }":B.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(B,", ")+" }"}if(typeof e=="object"&&s){if(Sp&&typeof e[Sp]=="function"&&ic)return ic(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Fw(e)){var V=[];return mp&&mp.call(e,function(v,b){V.push(p(b,e,!0)+" => "+p(v,e))}),Tp("Map",ds.call(e),V,m)}if(Ww(e)){var z=[];return dp&&dp.call(e,function(v){z.push(p(v,e))}),Tp("Set",hs.call(e),z,m)}if($w(e))return rc("WeakMap");if(Uw(e))return rc("WeakSet");if(Rw(e))return rc("WeakRef");if(Iw(e))return un(p(Number(e)));if(Pw(e))return un(p(oc.call(e)));if(kw(e))return un(bw.call(e));if(Aw(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(!_w(e)&&!Dp(e)){var de=ms(e,p),q=bp?bp(e)===Object.prototype:e instanceof Object||e.constructor===Object,N=e instanceof Object?"":"null prototype",se=!q&&Pe&&Object(e)===e&&Pe in e?fc.call(Bt(e),8,-1):N?"Object":"",Be=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=Be+(se||N?"["+ut.call(xp.call([],se||[],N||[]),": ")+"] ":"");return de.length===0?P+"{}":m?P+"{"+ac(de,m)+"}":P+"{ "+ut.call(de,", ")+" }"}return String(e)};function Ep(t,e,r){var o=r.quoteStyle||e,n=_p[o];return n+t+n}function Mw(t){return Ut.call(String(t),/"/g,"&quot;")}function sc(t){return Bt(t)==="[object Array]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function _w(t){return Bt(t)==="[object Date]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dp(t){return Bt(t)==="[object RegExp]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Ew(t){return Bt(t)==="[object Error]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Aw(t){return Bt(t)==="[object String]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Iw(t){return Bt(t)==="[object Number]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function kw(t){return Bt(t)==="[object Boolean]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Ap(t){if(eo)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!nc)return!1;try{return nc.call(t),!0}catch{}return!1}function Pw(t){if(!t||typeof t!="object"||!oc)return!1;try{return oc.call(t),!0}catch{}return!1}var Cw=Object.prototype.hasOwnProperty||function(t){return t in this};function Mt(t,e){return Cw.call(t,e)}function Bt(t){return vw.call(t)}function Nw(t){if(t.name)return t.name;var e=Sw.call(ww.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ip(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 Fw(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 $w(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 Rw(t){if(!hp||!t||typeof t!="object")return!1;try{return hp.call(t),!0}catch{}return!1}function Ww(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 Uw(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 Bw(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function kp(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return kp(fc.call(t,0,e.maxStringLength),e)+o}var n=Ow[e.quoteStyle||"single"];n.lastIndex=0;var i=Ut.call(Ut.call(t,n,"\\$1"),/[\x00-\x1f]/g,Lw);return Ep(i,"single",e)}function Lw(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":"")+Dw.call(e.toString(16))}function un(t){return"Object("+t+")"}function rc(t){return t+" { ? }"}function Tp(t,e,r,o){var n=o?ac(r,o):ut.call(r,", ");return t+" ("+e+") {"+n+"}"}function Yw(t){for(var e=0;e<t.length;e++)if(Ip(t[e],`
2
- `)>=0)return!1;return!0}function qw(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 ac(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=sc(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Mt(t,n)?e(t[n],t):""}var i=typeof tc=="function"?tc(t):[],s;if(eo){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Mt(t,u)&&(r&&String(Number(u))===u&&u<t.length||eo&&s["$"+u]instanceof Symbol||(Op.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if(typeof tc=="function")for(var c=0;c<i.length;c++)Mp.call(t,i[c])&&o.push("["+e(i[c])+"]: "+e(t[i[c]],t));return o}});var Np=A((YV,Cp)=>{"use strict";var Hw=ln(),jw=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},zw=function(t,e){if(t){var r=ys(t,e);return r&&r.value}},Vw=function(t,e,r){var o=ys(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},Gw=function(t,e){return t?!!ys(t,e):!1},Kw=function(t,e){if(t)return ys(t,e,!0)};Cp.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new jw("Side channel does not contain "+Hw(o))},delete:function(o){var n=e&&e.next,i=Kw(e,o);return i&&n&&n===i&&(e=void 0),!!i},get:function(o){return zw(e,o)},has:function(o){return Gw(e,o)},set:function(o,n){e||(e={next:void 0}),Vw(e,o,n)}};return r}});var lc=A((qV,Fp)=>{"use strict";Fp.exports=Object});var Rp=A((HV,$p)=>{"use strict";$p.exports=Error});var Up=A((jV,Wp)=>{"use strict";Wp.exports=EvalError});var Lp=A((zV,Bp)=>{"use strict";Bp.exports=RangeError});var qp=A((VV,Yp)=>{"use strict";Yp.exports=ReferenceError});var jp=A((GV,Hp)=>{"use strict";Hp.exports=SyntaxError});var Vp=A((KV,zp)=>{"use strict";zp.exports=URIError});var Kp=A((QV,Gp)=>{"use strict";Gp.exports=Math.abs});var Jp=A((JV,Qp)=>{"use strict";Qp.exports=Math.floor});var Zp=A((XV,Xp)=>{"use strict";Xp.exports=Math.max});var tm=A((ZV,em)=>{"use strict";em.exports=Math.min});var om=A((eG,rm)=>{"use strict";rm.exports=Math.pow});var im=A((tG,nm)=>{"use strict";nm.exports=Math.round});var am=A((rG,sm)=>{"use strict";sm.exports=Number.isNaN||function(e){return e!==e}});var cm=A((oG,um)=>{"use strict";var Qw=am();um.exports=function(e){return Qw(e)||e===0?e:e<0?-1:1}});var lm=A((nG,fm)=>{"use strict";fm.exports=Object.getOwnPropertyDescriptor});var pc=A((iG,pm)=>{"use strict";var xs=lm();if(xs)try{xs([],"length")}catch{xs=null}pm.exports=xs});var dm=A((sG,mm)=>{"use strict";var gs=Object.defineProperty||!1;if(gs)try{gs({},"a",{value:1})}catch{gs=!1}mm.exports=gs});var ym=A((aG,hm)=>{"use strict";hm.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 bm=A((uG,gm)=>{"use strict";var xm=typeof Symbol<"u"&&Symbol,Jw=ym();gm.exports=function(){return typeof xm!="function"||typeof Symbol!="function"||typeof xm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Jw()}});var mc=A((cG,vm)=>{"use strict";vm.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var dc=A((fG,wm)=>{"use strict";var Xw=lc();wm.exports=Xw.getPrototypeOf||null});var Tm=A((lG,Dm)=>{"use strict";var Zw="Function.prototype.bind called on incompatible ",eS=Object.prototype.toString,tS=Math.max,rS="[object Function]",Sm=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},oS=function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},nS=function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r};Dm.exports=function(e){var r=this;if(typeof r!="function"||eS.apply(r)!==rS)throw new TypeError(Zw+r);for(var o=oS(arguments,1),n,i=function(){if(this instanceof n){var f=r.apply(this,Sm(o,arguments));return Object(f)===f?f:this}return r.apply(e,Sm(o,arguments))},s=tS(0,r.length-o.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(n=Function("binder","return function ("+nS(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=A((pG,Om)=>{"use strict";var iS=Tm();Om.exports=Function.prototype.bind||iS});var bs=A((mG,Mm)=>{"use strict";Mm.exports=Function.prototype.call});var hc=A((dG,_m)=>{"use strict";_m.exports=Function.prototype.apply});var Am=A((hG,Em)=>{"use strict";Em.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var km=A((yG,Im)=>{"use strict";var sS=pn(),aS=hc(),uS=bs(),cS=Am();Im.exports=cS||sS.call(uS,aS)});var yc=A((xG,Pm)=>{"use strict";var fS=pn(),lS=xr(),pS=bs(),mS=km();Pm.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new lS("a function is required");return mS(fS,pS,e)}});var Wm=A((gG,Rm)=>{"use strict";var dS=yc(),Cm=pc(),Fm;try{Fm=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var xc=!!Fm&&Cm&&Cm(Object.prototype,"__proto__"),$m=Object,Nm=$m.getPrototypeOf;Rm.exports=xc&&typeof xc.get=="function"?dS([xc.get]):typeof Nm=="function"?function(e){return Nm(e==null?e:$m(e))}:!1});var qm=A((bG,Ym)=>{"use strict";var Um=mc(),Bm=dc(),Lm=Wm();Ym.exports=Um?function(e){return Um(e)}:Bm?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Bm(e)}:Lm?function(e){return Lm(e)}:null});var jm=A((vG,Hm)=>{"use strict";var hS=Function.prototype.call,yS=Object.prototype.hasOwnProperty,xS=pn();Hm.exports=xS.call(hS,yS)});var Ss=A((wG,Jm)=>{"use strict";var Y,gS=lc(),bS=Rp(),vS=Up(),wS=Lp(),SS=qp(),no=jp(),oo=xr(),DS=Vp(),TS=Kp(),OS=Jp(),MS=Zp(),_S=tm(),ES=om(),AS=im(),IS=cm(),Km=Function,gc=function(t){try{return Km('"use strict"; return ('+t+").constructor;")()}catch{}},mn=pc(),kS=dm(),bc=function(){throw new oo},PS=mn?function(){try{return arguments.callee,bc}catch{try{return mn(arguments,"callee").get}catch{return bc}}}():bc,to=bm()(),we=qm(),CS=dc(),NS=mc(),Qm=hc(),dn=bs(),ro={},FS=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%":bS,"%eval%":eval,"%EvalError%":vS,"%Float32Array%":typeof Float32Array>"u"?Y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Y:FinalizationRegistry,"%Function%":Km,"%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%":gS,"%Object.getOwnPropertyDescriptor%":mn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Y:Promise,"%Proxy%":typeof Proxy>"u"?Y:Proxy,"%RangeError%":wS,"%ReferenceError%":SS,"%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%":PS,"%TypedArray%":FS,"%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%":DS,"%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%":Qm,"%Object.defineProperty%":kS,"%Object.getPrototypeOf%":CS,"%Math.abs%":TS,"%Math.floor%":OS,"%Math.max%":MS,"%Math.min%":_S,"%Math.pow%":ES,"%Math.round%":AS,"%Math.sign%":IS,"%Reflect.getPrototypeOf%":NS};if(we)try{null.error}catch(t){zm=we(we(t)),gr["%Error.prototype%"]=zm}var zm,$S=function t(e){var r;if(e==="%AsyncFunction%")r=gc("async function () {}");else if(e==="%GeneratorFunction%")r=gc("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=gc("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},Vm={__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=jm(),RS=hn.call(dn,Array.prototype.concat),WS=hn.call(Qm,Array.prototype.splice),Gm=hn.call(dn,String.prototype.replace),ws=hn.call(dn,String.prototype.slice),US=hn.call(dn,RegExp.prototype.exec),BS=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,LS=/\\(\\)?/g,YS=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 Gm(e,BS,function(i,s,a,u){n[n.length]=a?Gm(u,LS,"$1"):s||i}),n},qS=function(e,r){var o=e,n;if(vs(Vm,o)&&(n=Vm[o],o="%"+n[0]+"%"),vs(gr,o)){var i=gr[o];if(i===ro&&(i=$S(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(US(/^%?[^%]*%?$/,e)===null)throw new no("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=YS(e),n=o.length>0?o[0]:"",i=qS("%"+n+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(n=c[0],WS(o,RS([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 vc=A((SG,ed)=>{"use strict";var Xm=Ss(),Zm=yc(),HS=Zm([Xm("%String.prototype.indexOf%")]);ed.exports=function(e,r){var o=Xm(e,!!r);return typeof o=="function"&&HS(e,".prototype.")>-1?Zm([o]):o}});var wc=A((DG,rd)=>{"use strict";var jS=Ss(),yn=vc(),zS=ln(),VS=xr(),td=jS("%Map%",!0),GS=yn("Map.prototype.get",!0),KS=yn("Map.prototype.set",!0),QS=yn("Map.prototype.has",!0),JS=yn("Map.prototype.delete",!0),XS=yn("Map.prototype.size",!0);rd.exports=!!td&&function(){var e,r={assert:function(o){if(!r.has(o))throw new VS("Side channel does not contain "+zS(o))},delete:function(o){if(e){var n=JS(e,o);return XS(e)===0&&(e=void 0),n}return!1},get:function(o){if(e)return GS(e,o)},has:function(o){return e?QS(e,o):!1},set:function(o,n){e||(e=new td),KS(e,o,n)}};return r}});var nd=A((TG,od)=>{"use strict";var ZS=Ss(),Ts=vc(),eD=ln(),Ds=wc(),tD=xr(),io=ZS("%WeakMap%",!0),rD=Ts("WeakMap.prototype.get",!0),oD=Ts("WeakMap.prototype.set",!0),nD=Ts("WeakMap.prototype.has",!0),iD=Ts("WeakMap.prototype.delete",!0);od.exports=io?function(){var e,r,o={assert:function(n){if(!o.has(n))throw new tD("Side channel does not contain "+eD(n))},delete:function(n){if(io&&n&&(typeof n=="object"||typeof n=="function")){if(e)return iD(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?rD(e,n):r&&r.get(n)},has:function(n){return io&&n&&(typeof n=="object"||typeof n=="function")&&e?nD(e,n):!!r&&r.has(n)},set:function(n,i){io&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new io),oD(e,n,i)):Ds&&(r||(r=Ds()),r.set(n,i))}};return o}:Ds});var sd=A((OG,id)=>{"use strict";var sD=xr(),aD=ln(),uD=Np(),cD=wc(),fD=nd(),lD=fD||cD||uD;id.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new sD("Side channel does not contain "+aD(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=lD()),e.set(o,n)}};return r}});var Os=A((MG,ad)=>{"use strict";var pD=String.prototype.replace,mD=/%20/g,Sc={RFC1738:"RFC1738",RFC3986:"RFC3986"};ad.exports={default:Sc.RFC3986,formatters:{RFC1738:function(t){return pD.call(t,mD,"+")},RFC3986:function(t){return String(t)}},RFC1738:Sc.RFC1738,RFC3986:Sc.RFC3986}});var Oc=A((_G,cd)=>{"use strict";var dD=Os(),Dc=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}(),hD=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}}},ud=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},yD=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)||!Dc.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=ud(e,o)),br(e)&&br(r)?(r.forEach(function(i,s){if(Dc.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 Dc.call(i,s)?i[s]=t(i[s],a,o):i[s]=a,i},n)},xD=function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},gD=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}},Tc=1024,bD=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+=Tc){for(var c=s.length>=Tc?s.slice(u,u+Tc):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===dD.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},vD=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 hD(r),e},wD=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},SD=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},DD=function(e,r){return[].concat(e,r)},TD=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)};cd.exports={arrayToObject:ud,assign:xD,combine:DD,compact:vD,decode:gD,encode:bD,isBuffer:SD,isRegExp:wD,maybeMap:TD,merge:yD}});var hd=A((EG,dd)=>{"use strict";var ld=sd(),Ms=Oc(),xn=Os(),OD=Object.prototype.hasOwnProperty,pd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ft=Array.isArray,MD=Array.prototype.push,md=function(t,e){MD.apply(t,ft(e)?e:[e])},_D=Date.prototype.toISOString,fd=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:fd,formatter:xn.formatters[fd],indices:!1,serializeDate:function(e){return _D.call(e)},skipNulls:!1,strictNullHandling:!1},ED=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Mc={},AD=function t(e,r,o,n,i,s,a,u,c,f,m,p,d,y,w,g,E,D){for(var T=e,B=D,V=0,z=!1;(B=B.get(Mc))!==void 0&&!z;){var de=B.get(e);if(V+=1,typeof de<"u"){if(de===V)throw new RangeError("Cyclic object value");z=!0}typeof B.get(Mc)>"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,E,"key",y):r;T=""}if(ED(T)||Ms.isBuffer(T)){if(c){var q=g?r:c(r,me.encoder,E,"key",y);return[w(q)+"="+w(c(T,me.encoder,E,"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 Be=Object.keys(T);se=m?Be.sort(m):Be}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=ld();O.set(Mc,D),md(N,t(S,x,o,n,i,s,a,u,o==="comma"&&g&&ft(T)?null:c,f,m,p,d,y,w,g,E,O))}}return N},ID=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(!OD.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 pd?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}};dd.exports=function(t,e){var r=t,o=ID(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=pd[o.arrayFormat],u=a==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=ld(),f=0;f<n.length;++f){var m=n[f],p=r[m];o.skipNulls&&p===null||md(s,AD(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 gd=A((AG,xd)=>{"use strict";var so=Oc(),_c=Object.prototype.hasOwnProperty,kD=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},PD=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},yd=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},CD="utf8=%26%2310003%3B",ND="utf8=%E2%9C%93",FD=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]===ND?c="utf-8":s[u]===CD&&(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(yd(f.slice(p+1),r),function(g){return r.decoder(g,ue.decoder,c,"value")})),y&&r.interpretNumericEntities&&c==="iso-8859-1"&&(y=PD(String(y))),f.indexOf("[]=")>-1&&(y=kD(y)?[y]:y);var w=_c.call(o,d);w&&r.duplicates==="combine"?o[d]=so.combine(o[d],y):(!w||r.duplicates==="last")&&(o[d]=y)}return o},$D=function(t,e,r,o){for(var n=o?e:yd(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},RD=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&&_c.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&&_c.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 $D(f,r,o,n)}},WD=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}};xd.exports=function(t,e){var r=WD(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?FD(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var a=i[s],u=RD(a,o[a],r,typeof t=="string");n=so.merge(n,u,r)}return r.allowSparse===!0?n:so.compact(n)}});var vd=A((IG,bd)=>{"use strict";var UD=hd(),BD=gd(),LD=Os();bd.exports={formats:LD,parse:BD,stringify:UD}});var Td=A(uo=>{"use strict";var YD=fp();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 qD=/^([a-z0-9.+-]+:)/i,HD=/:[0-9]*$/,jD=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,zD=["<",">",'"',"`"," ","\r",`
5
- `," "],VD=["{","}","|","\\","^","`"].concat(zD),Ec=["'"].concat(VD),wd=["%","/","?",";","#"].concat(Ec),Sd=["/","?","#"],GD=255,Dd=/^[+a-z0-9A-Z_-]{0,63}$/,KD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,QD={javascript:!0,"javascript:":!0},Ac={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},Ic=vd();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=jD.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=Ic.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=qD.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&&Ac[c])&&(a=a.substr(2),this.slashes=!0)}if(!Ac[c]&&(m||c&&!ao[c])){for(var p=-1,d=0;d<Sd.length;d++){var y=a.indexOf(Sd[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<wd.length;d++){var y=a.indexOf(wd[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 E=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!E)for(var D=this.hostname.split(/\./),d=0,T=D.length;d<T;d++){var B=D[d];if(B&&!B.match(Dd)){for(var V="",z=0,de=B.length;z<de;z++)B.charCodeAt(z)>127?V+="x":V+=B[z];if(!V.match(Dd)){var q=D.slice(0,d),N=D.slice(d+1),se=B.match(KD);se&&(q.push(se[1]),N.unshift(se[2])),N.length&&(a="/"+N.join(".")+a),this.hostname=q.join(".");break}}}this.hostname.length>GD?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=YD.toASCII(this.hostname));var Be=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+Be,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!QD[f])for(var d=0,T=Ec.length;d<T;d++){var v=Ec[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=Ic.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 Be=this.pathname||"",F=this.search||"";this.path=Be+F}return this.href=this.format(),this};function JD(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=Ic.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 XD(t,e){return gn(t,!1,!0).resolve(e)}Je.prototype.resolve=function(t){return this.resolveObject(gn(t,!1,!0)).format()};function ZD(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&&!Ac[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,E=g,D=r.pathname&&r.pathname.split("/")||[],T=t.pathname&&t.pathname.split("/")||[],B=r.protocol&&!ao[r.protocol];if(B&&(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(B){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&&!E)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(B){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=HD.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=XD;uo.resolveObject=ZD;uo.format=JD;uo.Url=Je});var Hd=A((CG,qd)=>{"use strict";qd.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,o)=>Math.min(r,o.length),1/0):0}});var Vd=A((FG,zd)=>{"use strict";zd.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 Qd=A(($G,Kd)=>{var f1=Object.prototype.toString;Kd.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 h1(e)?"generatorfunction":"function";if(l1(e))return"array";if(g1(e))return"buffer";if(x1(e))return"arguments";if(m1(e))return"date";if(p1(e))return"error";if(d1(e))return"regexp";switch(Gd(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(y1(e))return"generator";switch(r=f1.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 Gd(t){return typeof t.constructor=="function"?t.constructor.name:null}function l1(t){return Array.isArray?Array.isArray(t):t instanceof Array}function p1(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function m1(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function d1(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function h1(t,e){return Gd(t)==="GeneratorFunction"}function y1(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function x1(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 g1(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Xd=A((RG,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 th=A((WG,Fc)=>{"use strict";var b1=Vd(),Zd=Qd(),eh=Xd();Fc.exports=v1;Fc.exports.isCrypto=!!eh.cryptographic;var lt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};lt.all=lt.lower+lt.upper+lt.number+lt.special;function v1(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:b1(t)&&(r={},e=t,t="*")),Zd(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=Zd(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(eh()*i.length,10));return s}});var Vh=A((Sn,po)=>{var P1=200,xh="__lodash_hash_undefined__",gh=9007199254740991,Jc="[object Arguments]",C1="[object Array]",bh="[object Boolean]",vh="[object Date]",N1="[object Error]",Xc="[object Function]",wh="[object GeneratorFunction]",Ns="[object Map]",Sh="[object Number]",Zc="[object Object]",sh="[object Promise]",Dh="[object RegExp]",Fs="[object Set]",Th="[object String]",Oh="[object Symbol]",jc="[object WeakMap]",Mh="[object ArrayBuffer]",$s="[object DataView]",_h="[object Float32Array]",Eh="[object Float64Array]",Ah="[object Int8Array]",Ih="[object Int16Array]",kh="[object Int32Array]",Ph="[object Uint8Array]",Ch="[object Uint8ClampedArray]",Nh="[object Uint16Array]",Fh="[object Uint32Array]",F1=/[\\^$.*+?()[\]{}|]/g,$1=/\w*$/,R1=/^\[object .+?Constructor\]$/,W1=/^(?:0|[1-9]\d*)$/,ee={};ee[Jc]=ee[C1]=ee[Mh]=ee[$s]=ee[bh]=ee[vh]=ee[_h]=ee[Eh]=ee[Ah]=ee[Ih]=ee[kh]=ee[Ns]=ee[Sh]=ee[Zc]=ee[Dh]=ee[Fs]=ee[Th]=ee[Oh]=ee[Ph]=ee[Ch]=ee[Nh]=ee[Fh]=!0;ee[N1]=ee[Xc]=ee[jc]=!1;var U1=typeof global=="object"&&global&&global.Object===Object&&global,B1=typeof self=="object"&&self&&self.Object===Object&&self,_t=U1||B1||Function("return this")(),$h=typeof Sn=="object"&&Sn&&!Sn.nodeType&&Sn,ah=$h&&typeof po=="object"&&po&&!po.nodeType&&po,L1=ah&&ah.exports===$h;function Y1(t,e){return t.set(e[0],e[1]),t}function q1(t,e){return t.add(e),t}function H1(t,e){for(var r=-1,o=t?t.length:0;++r<o&&e(t[r],r,t)!==!1;);return t}function j1(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}function Rh(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 z1(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}function V1(t,e){return t?.[e]}function Wh(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function uh(t){var e=-1,r=Array(t.size);return t.forEach(function(o,n){r[++e]=[n,o]}),r}function ef(t,e){return function(r){return t(e(r))}}function ch(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var G1=Array.prototype,K1=Function.prototype,Rs=Object.prototype,Hc=_t["__core-js_shared__"],fh=function(){var t=/[^.]+$/.exec(Hc&&Hc.keys&&Hc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Uh=K1.toString,Lt=Rs.hasOwnProperty,Ws=Rs.toString,Q1=RegExp("^"+Uh.call(Lt).replace(F1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lh=L1?_t.Buffer:void 0,ph=_t.Symbol,mh=_t.Uint8Array,J1=ef(Object.getPrototypeOf,Object),X1=Object.create,Z1=Rs.propertyIsEnumerable,eT=G1.splice,dh=Object.getOwnPropertySymbols,tT=lh?lh.isBuffer:void 0,rT=ef(Object.keys,Object),zc=yo(_t,"DataView"),Dn=yo(_t,"Map"),Vc=yo(_t,"Promise"),Gc=yo(_t,"Set"),Kc=yo(_t,"WeakMap"),Tn=yo(Object,"create"),oT=Sr(zc),nT=Sr(Dn),iT=Sr(Vc),sT=Sr(Gc),aT=Sr(Kc),hh=ph?ph.prototype:void 0,yh=hh?hh.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 uT(){this.__data__=Tn?Tn(null):{}}function cT(t){return this.has(t)&&delete this.__data__[t]}function fT(t){var e=this.__data__;if(Tn){var r=e[t];return r===xh?void 0:r}return Lt.call(e,t)?e[t]:void 0}function lT(t){var e=this.__data__;return Tn?e[t]!==void 0:Lt.call(e,t)}function pT(t,e){var r=this.__data__;return r[t]=Tn&&e===void 0?xh:e,this}wr.prototype.clear=uT;wr.prototype.delete=cT;wr.prototype.get=fT;wr.prototype.has=lT;wr.prototype.set=pT;function Et(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 mT(){this.__data__=[]}function dT(t){var e=this.__data__,r=Us(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():eT.call(e,r,1),!0}function hT(t){var e=this.__data__,r=Us(e,t);return r<0?void 0:e[r][1]}function yT(t){return Us(this.__data__,t)>-1}function xT(t,e){var r=this.__data__,o=Us(r,t);return o<0?r.push([t,e]):r[o][1]=e,this}Et.prototype.clear=mT;Et.prototype.delete=dT;Et.prototype.get=hT;Et.prototype.has=yT;Et.prototype.set=xT;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 gT(){this.__data__={hash:new wr,map:new(Dn||Et),string:new wr}}function bT(t){return Bs(this,t).delete(t)}function vT(t){return Bs(this,t).get(t)}function wT(t){return Bs(this,t).has(t)}function ST(t,e){return Bs(this,t).set(t,e),this}mo.prototype.clear=gT;mo.prototype.delete=bT;mo.prototype.get=vT;mo.prototype.has=wT;mo.prototype.set=ST;function ho(t){this.__data__=new Et(t)}function DT(){this.__data__=new Et}function TT(t){return this.__data__.delete(t)}function OT(t){return this.__data__.get(t)}function MT(t){return this.__data__.has(t)}function _T(t,e){var r=this.__data__;if(r instanceof Et){var o=r.__data__;if(!Dn||o.length<P1-1)return o.push([t,e]),this;r=this.__data__=new mo(o)}return r.set(t,e),this}ho.prototype.clear=DT;ho.prototype.delete=TT;ho.prototype.get=OT;ho.prototype.has=MT;ho.prototype.set=_T;function ET(t,e){var r=rf(t)||XT(t)?z1(t.length,String):[],o=r.length,n=!!o;for(var i in t)(e||Lt.call(t,i))&&!(n&&(i=="length"||GT(i,o)))&&r.push(i);return r}function Bh(t,e,r){var o=t[e];(!(Lt.call(t,e)&&Hh(o,r))||r===void 0&&!(e in t))&&(t[e]=r)}function Us(t,e){for(var r=t.length;r--;)if(Hh(t[r][0],e))return r;return-1}function AT(t,e){return t&&Lh(e,of(e),t)}function Qc(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(!Ls(t))return t;var u=rf(t);if(u){if(a=jT(t),!e)return YT(t,a)}else{var c=vr(t),f=c==Xc||c==wh;if(eO(t))return FT(t,e);if(c==Zc||c==Jc||f&&!i){if(Wh(t))return i?t:{};if(a=zT(f?{}:t),!e)return qT(t,AT(a,t))}else{if(!ee[c])return i?t:{};a=VT(t,c,Qc,e)}}s||(s=new ho);var m=s.get(t);if(m)return m;if(s.set(t,a),!u)var p=r?HT(t):of(t);return H1(p||t,function(d,y){p&&(y=d,d=t[y]),Bh(a,y,Qc(d,e,r,o,y,t,s))}),a}function IT(t){return Ls(t)?X1(t):{}}function kT(t,e,r){var o=e(t);return rf(t)?o:j1(o,r(t))}function PT(t){return Ws.call(t)}function CT(t){if(!Ls(t)||QT(t))return!1;var e=zh(t)||Wh(t)?Q1:R1;return e.test(Sr(t))}function NT(t){if(!qh(t))return rT(t);var e=[];for(var r in Object(t))Lt.call(t,r)&&r!="constructor"&&e.push(r);return e}function FT(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function tf(t){var e=new t.constructor(t.byteLength);return new mh(e).set(new mh(t)),e}function $T(t,e){var r=e?tf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function RT(t,e,r){var o=e?r(uh(t),!0):uh(t);return Rh(o,Y1,new t.constructor)}function WT(t){var e=new t.constructor(t.source,$1.exec(t));return e.lastIndex=t.lastIndex,e}function UT(t,e,r){var o=e?r(ch(t),!0):ch(t);return Rh(o,q1,new t.constructor)}function BT(t){return yh?Object(yh.call(t)):{}}function LT(t,e){var r=e?tf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function YT(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function Lh(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;Bh(r,s,a===void 0?t[s]:a)}return r}function qT(t,e){return Lh(t,Yh(t),e)}function HT(t){return kT(t,of,Yh)}function Bs(t,e){var r=t.__data__;return KT(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yo(t,e){var r=V1(t,e);return CT(r)?r:void 0}var Yh=dh?ef(dh,Object):oO,vr=PT;(zc&&vr(new zc(new ArrayBuffer(1)))!=$s||Dn&&vr(new Dn)!=Ns||Vc&&vr(Vc.resolve())!=sh||Gc&&vr(new Gc)!=Fs||Kc&&vr(new Kc)!=jc)&&(vr=function(t){var e=Ws.call(t),r=e==Zc?t.constructor:void 0,o=r?Sr(r):void 0;if(o)switch(o){case oT:return $s;case nT:return Ns;case iT:return sh;case sT:return Fs;case aT:return jc}return e});function jT(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 zT(t){return typeof t.constructor=="function"&&!qh(t)?IT(J1(t)):{}}function VT(t,e,r,o){var n=t.constructor;switch(e){case Mh:return tf(t);case bh:case vh:return new n(+t);case $s:return $T(t,o);case _h:case Eh:case Ah:case Ih:case kh:case Ph:case Ch:case Nh:case Fh:return LT(t,o);case Ns:return RT(t,o,r);case Sh:case Th:return new n(t);case Dh:return WT(t);case Fs:return UT(t,o,r);case Oh:return BT(t)}}function GT(t,e){return e=e??gh,!!e&&(typeof t=="number"||W1.test(t))&&t>-1&&t%1==0&&t<e}function KT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function QT(t){return!!fh&&fh in t}function qh(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Rs;return t===r}function Sr(t){if(t!=null){try{return Uh.call(t)}catch{}try{return t+""}catch{}}return""}function JT(t){return Qc(t,!0,!0)}function Hh(t,e){return t===e||t!==t&&e!==e}function XT(t){return ZT(t)&&Lt.call(t,"callee")&&(!Z1.call(t,"callee")||Ws.call(t)==Jc)}var rf=Array.isArray;function jh(t){return t!=null&&tO(t.length)&&!zh(t)}function ZT(t){return rO(t)&&jh(t)}var eO=tT||nO;function zh(t){var e=Ls(t)?Ws.call(t):"";return e==Xc||e==wh}function tO(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=gh}function Ls(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function rO(t){return!!t&&typeof t=="object"}function of(t){return jh(t)?ET(t):NT(t)}function oO(){return[]}function nO(){return!1}po.exports=JT});var Kh=A((ZG,Gh)=>{"use strict";Gh.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 An=globalThis,In=An.ShadowRoot&&(An.ShadyCSS===void 0||An.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ea=Symbol(),Sf=new WeakMap,vo=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==ea)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(In&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Sf.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Sf.set(r,e))}return e}toString(){return this.cssText}},kn=t=>new vo(typeof t=="string"?t:t+"",void 0,ea),Ze=(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,ea)},ta=(t,e)=>{if(In)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=An.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Pn=In?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:by,defineProperty:vy,getOwnPropertyDescriptor:wy,getOwnPropertyNames:Sy,getOwnPropertySymbols:Dy,getPrototypeOf:Ty}=Object,Cn=globalThis,Df=Cn.trustedTypes,Oy=Df?Df.emptyScript:"",My=Cn.reactiveElementPolyfillSupport,wo=(t,e)=>t,So={toAttribute(t,e){switch(e){case Boolean:t=t?Oy: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)=>!by(t,e),Tf={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=Tf){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&&vy(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:i}=wy(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)??Tf}static _$Ei(){if(this.hasOwnProperty(wo("elementProperties")))return;let e=Ty(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=[...Sy(r),...Dy(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 ta(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,My?.({ReactiveElement:mt}),(Cn.reactiveElementVersions??=[]).push("2.0.4");var ua=globalThis,Fn=ua.trustedTypes,Of=Fn?Fn.createPolicy("lit-html",{createHTML:t=>t}):void 0,kf="$lit$",Pt=`lit$${Math.random().toFixed(9).slice(2)}$`,Pf="?"+Pt,_y=`<${Pf}>`,zt=document,To=()=>zt.createComment(""),Oo=t=>t===null||typeof t!="object"&&typeof t!="function",ca=Array.isArray,Ey=t=>ca(t)||typeof t?.[Symbol.iterator]=="function",ra=`[
6
- \f\r]`,Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mf=/-->/g,_f=/>/g,Ht=RegExp(`>|${ra}(?:([^\\s"'>=/]+)(${ra}*=${ra}*(?:[^
7
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ef=/'/g,Af=/"/g,Cf=/^(?:script|style|textarea|title)$/i,fa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Re=fa(1),LO=fa(2),YO=fa(3),Vt=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),If=new WeakMap,jt=zt.createTreeWalker(zt,129);function Nf(t,e){if(!ca(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Of!==void 0?Of.createHTML(e):e}var Ay=(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=Mf:f[1]!==void 0?s=_f:f[2]!==void 0?(Cf.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]==='"'?Af:Ef):s===Af||s===Ef?s=Ht:s===Mf||s===_f?s=Do:(s=Ht,n=void 0);let d=s===Ht&&t[a+1].startsWith("/>")?" ":"";i+=s===Do?u+_y:m>=0?(o.push(c),u.slice(0,m)+kf+u.slice(m)+Pt+d):u+Pt+(m===-2?a:d)}return[Nf(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]=Ay(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(kf)){let p=f[s++],d=n.getAttribute(m).split(Pt),y=/([.?@])?(.*)/.exec(p);u.push({type:1,index:i,name:y[2],strings:d,ctor:y[1]==="."?na:y[1]==="?"?ia:y[1]==="@"?sa:Er}),n.removeAttribute(m)}else m.startsWith(Pt)&&(u.push({type:6,index:i}),n.removeAttribute(m));if(Cf.test(n.tagName)){let m=n.textContent.split(Pt),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===Pf)u.push({type:2,index:i});else{let m=-1;for(;(m=n.data.indexOf(Pt,m+1))!==-1;)u.push({type:7,index:i}),m+=Pt.length-1}i++}}static createElement(e,r){let o=zt.createElement("template");return o.innerHTML=e,o}};function _r(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=_r(t,n._$AS(t,e.values),n,o)),e}var oa=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 aa(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=_r(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):Ey(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(Nf(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let i=new oa(n,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=If.get(e.strings);return r===void 0&&If.set(e.strings,r=new Mo(e)),r}k(e){ca(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))}},Er=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=_r(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=_r(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??"")}},na=class extends Er{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},ia=class extends Er{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},sa=class extends Er{constructor(e,r,o,n,i){super(e,r,o,n,i),this.type=5}_$AI(e,r=this){if((e=_r(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)}},aa=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){_r(this,e)}};var Iy=ua.litHtmlPolyfillSupport;Iy?.(Mo,_o),(ua.litHtmlVersions??=[]).push("3.2.1");var Ff=(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=Ff(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 ky=globalThis.litElementPolyfillSupport;ky?.({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 Py={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn},Cy=(t=Py,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"?Cy(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:()=>yf,TypedRequest:()=>gf,TypedResponseError:()=>It,TypedRouter:()=>_n,TypedTarget:()=>xf,VirtualStream:()=>pt});var Tr=nt(la(),1);var Ue={};re(Ue,{AsyncExecutionStack:()=>Hu,BackpressuredArray:()=>ju,FastMap:()=>Zo,Interest:()=>en,InterestMap:()=>zu,LimitedArray:()=>Vu,LoopTracker:()=>Gu,ObjectMap:()=>dr,Stringmap:()=>Ku,TimedAggregtor:()=>Qu,Tree:()=>Ju,uni:()=>ep});var X={};re(X,{Timeout:()=>Ln,delayFor:()=>ht,delayForRandom:()=>Yy});var K={};re(K,{CumulativeDeferred:()=>Bn,Deferred:()=>Un,cumulativeDefer:()=>Fy,defer:()=>Gt,fromCallback:()=>Ly,getFirstTrueOrFalse:()=>By,map:()=>Wy,rejectedPromise:()=>Ry,resolvedPromise:()=>$y,timeoutAndContinue:()=>Uy,timeoutWrap:()=>Wf});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 Bn=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)}},Fy=()=>new Bn;var $y=t=>Promise.resolve(t),Ry=t=>Promise.reject(t),Wy=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},Wf=async(t,e,r=!0)=>new Promise((o,n)=>{setTimeout(()=>{r?n(new Error("timeout")):o(null)},e),t.then(o,n)}),Uy=async(t,e=6e4)=>Wf(t,e,!1),By=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},Ly=t=>new Promise((e,r)=>{t((o,n)=>{o?r(o):e(n)})});var ht=async(t,e,r=!1)=>(await new Ln(t,null,r).promise,e),Yy=async(t,e,r,o=!1)=>(await ht(Math.random()*(e-t)+t,null,o),r),Ln=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:()=>da});var Yn={};re(Yn,{isMatch:()=>jy,matcher:()=>Hy});function pa(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ma=new Map,Uf=(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})},qy=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(ma.has(r))return ma.get(r);let o=t[0]==="!";o&&(t=t.slice(1)),t=pa(t).replace(/\\\*/g,"[\\s\\S]*");let n=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return n.negated=o,ma.set(r,n),n},Bf=(t,e,r,o)=>{if(t=Uf(t,"inputs"),e=Uf(e,"patterns"),e.length===0)return[];e=e.map(s=>qy(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 Hy(t,e,r){return Bf(t,e,r,!1)}function jy(t,e,r){return Bf(t,e,r,!0).length>0}var da=class{constructor(e){this.wildcard=e}match(e){return Yn.isMatch(e,this.wildcard)}};var st={};re(st,{ObservableIntake:()=>ka,Observablemap:()=>Ia,rxjs:()=>Co});var Co={};re(Co,{Observable:()=>oe,ReplaySubject:()=>va,Subject:()=>xt,Subscription:()=>tt,from:()=>Zt,fromEvent:()=>tr,of:()=>Sa,ops:()=>gx});var ha=function(t,e){return ha=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])},ha(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");ha(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Lf(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 yt(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 Le(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 Yf(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 qf(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 yt=="function"?yt(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=yt(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=yt(m),d=p.next();!d.done;d=p.next()){var y=d.value;try{Hf(y)}catch(w){i=i??[],w instanceof zn?i=et(et([],Le(i)),Le(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)Hf(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 ya=tt.EMPTY;function Vn(t){return t instanceof tt||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function Hf(t){W(t)?t():t.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ar={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Ar.delegate;return n?.setTimeout?n.setTimeout.apply(n,et([t,e],Le(r))):setTimeout.apply(void 0,et([t,e],Le(r)))},clearTimeout:function(t){var e=Ar.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Gn(t){Ar.setTimeout(function(){var e=rt.onUnhandledError;if(e)e(t);else throw t})}function Jt(){}var jf=function(){return xa("C",void 0,void 0)}();function zf(t){return xa("E",void 0,t)}function Vf(t){return xa("N",t,void 0)}function xa(t,e,r){return{kind:t,value:e,error:r}}var Xt=null;function Ir(t){if(rt.useDeprecatedSynchronousErrorHandling){var e=!Xt;if(e&&(Xt={errorThrown:!1,error:null}),t(),e){var r=Xt,o=r.errorThrown,n=r.error;if(Xt=null,o)throw n}}else t()}function Gf(t){rt.useDeprecatedSynchronousErrorHandling&&Xt&&(Xt.errorThrown=!0,Xt.error=t)}var Eo=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=Jy,o}return e.create=function(r,o,n){return new Qn(r,o,n)},e.prototype.next=function(r){this.isStopped?ba(Vf(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ba(zf(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ba(jf,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 Gy=Function.prototype.bind;function ga(t,e){return Gy.call(t,e)}var Ky=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&&ga(r.next,a),error:r.error&&ga(r.error,a),complete:r.complete&&ga(r.complete,a)}):s=r}return i.destination=new Ky(s),i}return e}(Eo);function Kn(t){rt.useDeprecatedSynchronousErrorHandling?Gf(t):Gn(t)}function Qy(t){throw t}function ba(t,e){var r=rt.onStoppedNotification;r&&Ar.setTimeout(function(){return r(t,e)})}var Jy={closed:!0,next:Jt,error:Qy,complete:Jt};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jn(t){return t}function Kf(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=Zy(e)?e:new Qn(e,r,o);return Ir(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=Qf(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 Kf(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Qf(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 Qf(t){var e;return(e=t??rt.Promise)!==null&&e!==void 0?e:Promise}function Xy(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function Zy(t){return t&&t instanceof Eo||Xy(t)&&Vn(t)}function ex(t){return W(t?.lift)}function fe(t){return function(e){if(ex(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 tx(t,e,r,o,n)}var tx=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}(Eo);var Jf=jn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var xt=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 Xf(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;Ir(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=yt(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;Ir(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;Ir(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?ya:(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 Xf(r,o)},e}(oe);var Xf=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:ya},e}(xt);var Ao={now:function(){return(Ao.delegate||Date).now()},delegate:void 0};var va=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=Ao);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}(xt);var Zf=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 Io={setInterval:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Io.delegate;return n?.setInterval?n.setInterval.apply(n,et([t,e],Le(r))):setInterval.apply(void 0,et([t,e],Le(r)))},clearInterval:function(t){var e=Io.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var el=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),Io.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&&Io.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}(Zf);var wa=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=Ao.now,t}();var tl=function(t){_e(e,t);function e(r,o){o===void 0&&(o=wa.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}(wa);var ko=new tl(el),rl=ko;function Xn(t){return t&&W(t.schedule)}function rx(t){return t[t.length-1]}function Pr(t){return Xn(rx(t))?t.pop():void 0}var Cr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Zn(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 ox(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oi=ox();function ni(t){return W(t?.[oi])}function ii(t){return Yf(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 nx(t);if(Cr(t))return ix(t);if(Zn(t))return sx(t);if(ti(t))return ol(t);if(ni(t))return ax(t);if(si(t))return ux(t)}throw ri(t)}function nx(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 ix(t){return new oe(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function sx(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 ax(t){return new oe(function(e){var r,o;try{for(var n=yt(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 ol(t){return new oe(function(e){cx(t,e).catch(function(r){return e.error(r)})})}function ux(t){return ol(ii(t))}function cx(t,e){var r,o,n,i;return Lf(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=qf(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 nl(t,e){return ge(t).pipe(ui(e),ai(e))}function il(t,e){return ge(t).pipe(ui(e),ai(e))}function sl(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 al(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 ul(t,e){return ci(ii(t),e)}function cl(t,e){if(t!=null){if(ei(t))return nl(t,e);if(Cr(t))return sl(t,e);if(Zn(t))return il(t,e);if(ti(t))return ci(t,e);if(ni(t))return al(t,e);if(si(t))return ul(t,e)}throw ri(t)}function Zt(t,e){return e?cl(t,e):ge(t)}function Sa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return Zt(t,r)}function fl(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 fx=Array.isArray;function lx(t,e){return fx(e)?t.apply(void 0,et([],Le(e))):t(e)}function ll(t){return er(function(e){return lx(t,e)})}function pl(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(E){n?.(E),i?d(E):e.next(E)},function(){g=!0},void 0,function(){if(g)try{c--;for(var E=function(){var D=u.shift();s?je(e,s,function(){return y(D)}):y(D)};u.length&&c<o;)E();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 pl(o,n,t,r)}))}function ml(t){return t===void 0&&(t=1/0),Po(Jn,t)}function dl(){return ml(1)}function Da(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return dl()(Zt(t,Pr(t)))}var px=["addListener","removeListener"],mx=["addEventListener","removeEventListener"],dx=["on","off"];function tr(t,e,r,o){if(W(r)&&(o=r,r=void 0),o)return tr(t,e,r).pipe(ll(o));var n=Le(xx(t)?mx.map(function(a){return function(u){return t[a](e,u,r)}}):hx(t)?px.map(hl(t,e)):yx(t)?dx.map(hl(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 hl(t,e){return function(r){return function(o){return t[r](e,o)}}}function hx(t){return W(t.addListener)&&W(t.removeListener)}function yx(t){return W(t.on)&&W(t.off)}function xx(t){return W(t.addEventListener)&&W(t.removeEventListener)}function yl(t,e,r){t===void 0&&(t=0),r===void 0&&(r=rl);var o=-1;return e!=null&&(Xn(e)?r=e:o=e),new oe(function(n){var i=fl(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 Ta(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 Oa(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 Ma(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 _a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return fe(function(o,n){(r?Da(t,o,r):Da(t,o)).subscribe(n)})}function Ea(t){return fe(function(e,r){ge(t).subscribe(le(r,function(){return r.complete()},Jt)),!r.closed&&e.subscribe(r)})}function xl(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(E){return m=ge(t(E)).subscribe(le(o,d,y))},g=function(){if(c){c=!1;var E=f;f=null,o.next(E),!p&&w(E)}};r.subscribe(le(o,function(E){c=!0,f=E,!(m&&!m.closed)&&(s?g():w(E))},function(){p=!0,!(u&&c&&m&&!m.closed)&&o.complete()}))})}function Aa(t,e,r){e===void 0&&(e=ko);var o=yl(t,e);return xl(function(){return o},r)}var gx={debounce:Oa,debounceTime:Ma,map:er,startWith:_a,takeUntil:Ea,throttleTime:Aa,filter:Ta};var Ia=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 xt;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 xt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var ka=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 Ot={};re(Ot,{CronJob:()=>Xo,CronManager:()=>Ru,ExtendedDate:()=>Wu,HrtMeasurement:()=>Uu,Interval:()=>Bu,TimeStamp:()=>Qr,Timer:()=>Lu,getMilliSecondsAsHumanReadableAgoTime:()=>Wv,getMilliSecondsAsHumanReadableString:()=>$u,getMilliSecondsFromUnits:()=>Fu,units:()=>Nt});var fi={};re(fi,{Cron:()=>Sx,CronDate:()=>Ye,CronPattern:()=>Ca,scheduledJobs:()=>Fo});function Ee(t,e,r,o,n,i,s,a){return Ee.fromTZ(Ee.tp(t,e,r,o,n,i,s),a)}Ee.fromTZISO=(t,e,r)=>Ee.fromTZ(bx(t,e),r);Ee.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),o=Pa(t.tz,r),n=new Date(r.getTime()-o),i=Pa(t.tz,n);if(i-o===0)return n;{let s=new Date(r.getTime()-i),a=Pa(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}};Ee.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}};Ee.tp=(t,e,r,o,n,i,s)=>({y:t,m:e,d:r,h:o,i:n,s:i,tz:s});function Pa(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 bx(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("+")?Ee.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ee.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Ee.minitz=Ee;var Na=32,$o=31|Na,vl=[1,2,4,8,16],Ca=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]|Na;else if(e===$o)this.dayOfWeek[t]=$o;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|vl[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},gl=[31,28,31,30,31,30,31,31,30,31,30,31],gt=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ye=class wl{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 wl)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&&vl[s-1]&n)return!0;if(n&Na){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=Ee.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>gl[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=Ee.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(Ee.fromTZISO(e,this.tz))}findNext(e,r,o,n){let i=this[r],s;o.lastDayOfMonth&&(this.month!==1?s=gl[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,gt[o][0],e,gt[o][2]);if(n>1){let i=o+1;for(;i<gt.length;)this[gt[i][0]]=-gt[i][2],i++;if(n===3)return this[gt[o][1]]++,this[gt[o][0]]=-gt[o][2],this.apply(),this.recurse(e,r,0);if(this.apply())return this.recurse(e,r,o-1)}return o+=1,o>=gt.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)):Ee.fromTZ(Ee.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function vx(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 wx(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var bl=30*1e3,Fo=[],Sx=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=vx(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 Ca("* * * * *")},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 Ca(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>bl&&(e=bl),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&wx(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:()=>La,addDays:()=>be,addHours:()=>Ya,addISOWeekYears:()=>Ha,addMilliseconds:()=>nr,addMinutes:()=>Ro,addMonths:()=>bt,addQuarters:()=>Wo,addSeconds:()=>ja,addWeeks:()=>ir,addYears:()=>za,areIntervalsOverlapping:()=>Tx,clamp:()=>Ox,closestIndexTo:()=>Ka,closestTo:()=>Mx,compareAsc:()=>Ne,compareDesc:()=>_x,constructFrom:()=>h,constructNow:()=>L,daysToWeeks:()=>Ax,differenceInBusinessDays:()=>Ix,differenceInCalendarDays:()=>De,differenceInCalendarISOWeekYears:()=>Ja,differenceInCalendarISOWeeks:()=>kx,differenceInCalendarMonths:()=>Rr,differenceInCalendarQuarters:()=>Uo,differenceInCalendarWeeks:()=>Wr,differenceInCalendarYears:()=>sr,differenceInDays:()=>Bo,differenceInHours:()=>Ur,differenceInISOWeekYears:()=>Px,differenceInMilliseconds:()=>Lo,differenceInMinutes:()=>Br,differenceInMonths:()=>ar,differenceInQuarters:()=>Cx,differenceInSeconds:()=>Dt,differenceInWeeks:()=>Nx,differenceInYears:()=>eu,eachDayOfInterval:()=>tu,eachHourOfInterval:()=>Fx,eachMinuteOfInterval:()=>$x,eachMonthOfInterval:()=>Rx,eachQuarterOfInterval:()=>Wx,eachWeekOfInterval:()=>Ux,eachWeekendOfInterval:()=>Ho,eachWeekendOfMonth:()=>Bx,eachWeekendOfYear:()=>Lx,eachYearOfInterval:()=>Yx,endOfDay:()=>Yo,endOfDecade:()=>qx,endOfHour:()=>Hx,endOfISOWeek:()=>jx,endOfISOWeekYear:()=>zx,endOfMinute:()=>Vx,endOfMonth:()=>qo,endOfQuarter:()=>Gx,endOfSecond:()=>Kx,endOfToday:()=>Qx,endOfTomorrow:()=>Jx,endOfWeek:()=>ou,endOfYear:()=>ru,endOfYesterday:()=>Xx,format:()=>iu,formatDate:()=>iu,formatDistance:()=>su,formatDistanceStrict:()=>au,formatDistanceToNow:()=>$g,formatDistanceToNowStrict:()=>Rg,formatDuration:()=>Ug,formatISO:()=>Bg,formatISO9075:()=>Lg,formatISODuration:()=>Yg,formatRFC3339:()=>qg,formatRFC7231:()=>zg,formatRelative:()=>Vg,formatters:()=>bi,fromUnixTime:()=>Gg,getDate:()=>uu,getDay:()=>lr,getDayOfYear:()=>nu,getDaysInMonth:()=>cu,getDaysInYear:()=>Kg,getDecade:()=>Qg,getDefaultOptions:()=>lu,getHours:()=>Jg,getISODay:()=>pu,getISOWeek:()=>zo,getISOWeekYear:()=>We,getISOWeeksInYear:()=>Xg,getMilliseconds:()=>Zg,getMinutes:()=>e0,getMonth:()=>t0,getOverlappingDaysInIntervals:()=>r0,getQuarter:()=>xi,getSeconds:()=>o0,getTime:()=>n0,getUnixTime:()=>i0,getWeek:()=>Vo,getWeekOfMonth:()=>s0,getWeekYear:()=>cr,getWeeksInMonth:()=>a0,getYear:()=>u0,hoursToMilliseconds:()=>c0,hoursToMinutes:()=>f0,hoursToSeconds:()=>l0,interval:()=>p0,intervalToDuration:()=>m0,intlFormat:()=>d0,intlFormatDistance:()=>y0,isAfter:()=>x0,isBefore:()=>g0,isDate:()=>Qa,isEqual:()=>b0,isExists:()=>v0,isFirstDayOfMonth:()=>w0,isFriday:()=>S0,isFuture:()=>D0,isLastDayOfMonth:()=>Za,isLeapYear:()=>fu,isMatch:()=>F0,isMonday:()=>$0,isPast:()=>R0,isSameDay:()=>St,isSameHour:()=>vu,isSameISOWeek:()=>wu,isSameISOWeekYear:()=>W0,isSameMinute:()=>Su,isSameMonth:()=>Du,isSameQuarter:()=>Tu,isSameSecond:()=>Ou,isSameWeek:()=>Ko,isSameYear:()=>Mu,isSaturday:()=>Ua,isSunday:()=>Ba,isThisHour:()=>U0,isThisISOWeek:()=>B0,isThisMinute:()=>L0,isThisMonth:()=>Y0,isThisQuarter:()=>q0,isThisSecond:()=>H0,isThisWeek:()=>j0,isThisYear:()=>z0,isThursday:()=>V0,isToday:()=>G0,isTomorrow:()=>K0,isTuesday:()=>Q0,isValid:()=>Ie,isWednesday:()=>J0,isWeekend:()=>vt,isWithinInterval:()=>X0,isYesterday:()=>Z0,lastDayOfDecade:()=>eb,lastDayOfISOWeek:()=>tb,lastDayOfISOWeekYear:()=>rb,lastDayOfMonth:()=>mu,lastDayOfQuarter:()=>ob,lastDayOfWeek:()=>_u,lastDayOfYear:()=>nb,lightFormat:()=>cb,lightFormatters:()=>Ve,longFormatters:()=>jr,max:()=>Va,milliseconds:()=>lb,millisecondsToHours:()=>pb,millisecondsToMinutes:()=>mb,millisecondsToSeconds:()=>db,min:()=>Ga,minutesToHours:()=>hb,minutesToMilliseconds:()=>yb,minutesToSeconds:()=>xb,monthsToQuarters:()=>gb,monthsToYears:()=>bb,nextDay:()=>Fe,nextFriday:()=>vb,nextMonday:()=>wb,nextSaturday:()=>Sb,nextSunday:()=>Db,nextThursday:()=>Tb,nextTuesday:()=>Ob,nextWednesday:()=>Mb,parse:()=>bu,parseISO:()=>_b,parseJSON:()=>qb,parsers:()=>gu,previousDay:()=>$e,previousFriday:()=>Hb,previousMonday:()=>jb,previousSaturday:()=>zb,previousSunday:()=>Vb,previousThursday:()=>Gb,previousTuesday:()=>Kb,previousWednesday:()=>Qb,quartersToMonths:()=>Jb,quartersToYears:()=>Xb,roundToNearestHours:()=>Zb,roundToNearestMinutes:()=>ev,secondsToHours:()=>tv,secondsToMilliseconds:()=>rv,secondsToMinutes:()=>ov,set:()=>nv,setDate:()=>iv,setDay:()=>pr,setDayOfYear:()=>sv,setDefaultOptions:()=>av,setHours:()=>uv,setISODay:()=>xu,setISOWeek:()=>yu,setISOWeekYear:()=>qa,setMilliseconds:()=>cv,setMinutes:()=>fv,setMonth:()=>Jo,setQuarter:()=>lv,setSeconds:()=>pv,setWeek:()=>hu,setWeekYear:()=>mv,setYear:()=>dv,startOfDay:()=>wt,startOfDecade:()=>hv,startOfHour:()=>is,startOfISOWeek:()=>pe,startOfISOWeekYear:()=>ze,startOfMinute:()=>ss,startOfMonth:()=>ur,startOfQuarter:()=>Tt,startOfSecond:()=>as,startOfToday:()=>yv,startOfTomorrow:()=>xv,startOfWeek:()=>Z,startOfWeekYear:()=>qr,startOfYear:()=>jo,startOfYesterday:()=>gv,sub:()=>bv,subBusinessDays:()=>vv,subDays:()=>mr,subHours:()=>wv,subISOWeekYears:()=>Xa,subMilliseconds:()=>Sv,subMinutes:()=>Dv,subMonths:()=>Au,subQuarters:()=>Tv,subSeconds:()=>Ov,subWeeks:()=>Mv,subYears:()=>_v,toDate:()=>l,transpose:()=>du,weeksToDays:()=>Ev,yearsToDays:()=>Av,yearsToMonths:()=>Iv,yearsToQuarters:()=>kv});var Dx=Math.pow(10,8)*24*60*60*1e3,Pk=-Dx,at=6048e5,li=864e5,Ae=6e4,qe=36e5,Nr=1e3,Fa=525600,Ct=43200,Fr=1440,pi=60,mi=3,di=12,hi=4,rr=3600,$r=60,yi=rr*24,Sl=yi*7,$a=yi*365.2425,Ra=$a/12,Dl=Ra*3,Wa=Symbol.for("constructDateFrom");function h(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Wa in t?t[Wa](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 bt(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?bt(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 Ua(t,e){return l(t,e?.in).getDay()===6}function Ba(t,e){return l(t,e?.in).getDay()===0}function vt(t,e){let r=l(t,e?.in).getDay();return r===0||r===6}function La(t,e,r){let o=l(t,r?.in),n=vt(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),vt(o,r)||(u-=1);return n&&vt(o,r)&&e!==0&&(Ua(o,r)&&o.setDate(o.getDate()+(s<0?2:-1)),Ba(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 Ya(t,e,r){return nr(t,e*qe,r)}var Tl={};function G(){return Tl}function Ol(t){Tl=t}function Z(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 Z(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 wt(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=wt(o),s=wt(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 qa(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 Ha(t,e,r){return qa(t,We(t,r)+e,r)}function Ro(t,e,r){let o=l(t,r?.in);return o.setTime(o.getTime()+e*Ae),o}function Wo(t,e,r){return bt(t,e*3,r)}function ja(t,e,r){return nr(t,e*1e3,r)}function ir(t,e,r){return be(t,e*7,r)}function za(t,e,r){return bt(t,e*12,r)}function Tx(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 Va(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 Ga(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 Ox(t,e,r){let[o,n,i]=C(r?.in,t,e.start,e.end);return Ga([Va([o,n],r),i],r)}function Ka(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 Mx(t,e,r){let[o,...n]=C(r?.in,t,...e),i=Ka(o,n);if(typeof i=="number"&&isNaN(i))return h(o,NaN);if(i!==void 0)return n[i]}function Ne(t,e){let r=+l(t)-+l(e);return r<0?-1:r>0?1:r}function _x(t,e){let r=+l(t)-+l(e);return r>0?-1:r<0?1:r}function L(t){return h(t,Date.now())}function Ax(t){let e=Math.trunc(t/7);return e===0?0:e}function St(t,e,r){let[o,n]=C(r?.in,t,e);return+wt(o)==+wt(n)}function Qa(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ie(t){return!(!Qa(t)&&typeof t!="number"||isNaN(+l(t)))}function Ix(t,e,r){let[o,n]=C(r?.in,t,e);if(!Ie(o)||!Ie(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(;!St(o,c);)u+=vt(c,r)?0:s,c=be(c,s);return u===0?0:u}function Ja(t,e,r){let[o,n]=C(r?.in,t,e);return We(o,r)-We(n,r)}function kx(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=Z(o,r),s=Z(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 Bo(t,e,r){let[o,n]=C(r?.in,t,e),i=Ml(o,n),s=Math.abs(De(o,n));o.setDate(o.getDate()-i*s);let a=+(Ml(o,n)===-i),u=i*(s-a);return u===0?0:u}function Ml(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 Xa(t,e,r){return Ha(t,-e,r)}function Px(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(Ja(o,n,r)),a=Xa(o,i*s,r),u=+(Ne(a,n)===-i),c=i*(s-u);return c===0?0:c}function Lo(t,e){return+l(t)-+l(e)}function Br(t,e,r){let o=Lo(t,e)/Ae;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 Za(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=Ne(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=Ne(n,i)===-s;Za(o)&&a===1&&Ne(o,i)===1&&(u=!1);let c=s*(a-+u);return c===0?0:c}function Cx(t,e,r){let o=ar(t,e,r)/3;return ke(r?.roundingMethod)(o)}function Dt(t,e,r){let o=Lo(t,e)/1e3;return ke(r?.roundingMethod)(o)}function Nx(t,e,r){let o=Bo(t,e,r)/7;return ke(r?.roundingMethod)(o)}function eu(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(sr(o,n));o.setFullYear(1584),n.setFullYear(1584);let a=Ne(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 tu(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 Fx(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 $x(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 Rx(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 Tt(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 Wx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+Tt(r):+Tt(o),s=n?Tt(o):Tt(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 Ux(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?Z(o,e):Z(r,e),s=n?Z(r,e):Z(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=tu({start:r,end:o},e),i=[],s=0;for(;s<n.length;){let a=n[s++];vt(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 Bx(t,e){let r=ur(t,e),o=qo(t,e);return Ho({start:r,end:o},e)}function ru(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 Lx(t,e){let r=jo(t,e),o=ru(t,e);return Ho({start:r,end:o},e)}function Yx(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 qx(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 Hx(t,e){let r=l(t,e?.in);return r.setMinutes(59,59,999),r}function ou(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 jx(t,e){return ou(t,{...e,weekStartsOn:1})}function zx(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 Vx(t,e){let r=l(t,e?.in);return r.setSeconds(59,999),r}function Gx(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 Kx(t,e){let r=l(t,e?.in);return r.setMilliseconds(999),r}function Qx(t){return Yo(Date.now(),t)}function Jx(t){let e=L(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=L(t?.in);return i.setFullYear(r,o,n+1),i.setHours(23,59,59,999),t?.in?t.in(i):i}function Xx(t){let e=L(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 Zx={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"}},_l=(t,e,r)=>{let o,n=Zx[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 eg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},El={date:gi({formats:eg,defaultWidth:"full"}),time:gi({formats:tg,defaultWidth:"full"}),dateTime:gi({formats:rg,defaultWidth:"full"})};var og={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Al=(t,e,r,o)=>og[t];function Lr(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 ng={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ig={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sg={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"]},ag={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"]},ug={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"}},cg={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"}},fg=(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"},Il={ordinalNumber:fg,era:Lr({values:ng,defaultWidth:"wide"}),quarter:Lr({values:ig,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Lr({values:sg,defaultWidth:"wide"}),day:Lr({values:ag,defaultWidth:"wide"}),dayPeriod:Lr({values:ug,defaultWidth:"wide",formattingValues:cg,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)?pg(a,m=>m.test(s)):lg(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 lg(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function pg(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function kl(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 mg=/^(\d+)(th|st|nd|rd)?/i,dg=/\d+/i,hg={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},yg={any:[/^b/i,/^(a|c)/i]},xg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gg={any:[/1/i,/2/i,/3/i,/4/i]},bg={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},vg={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]},wg={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},Sg={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]},Dg={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},Tg={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}},Pl={ordinalNumber:kl({matchPattern:mg,parsePattern:dg,valueCallback:t=>parseInt(t,10)}),era:Yr({matchPatterns:hg,defaultMatchWidth:"wide",parsePatterns:yg,defaultParseWidth:"any"}),quarter:Yr({matchPatterns:xg,defaultMatchWidth:"wide",parsePatterns:gg,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Yr({matchPatterns:bg,defaultMatchWidth:"wide",parsePatterns:vg,defaultParseWidth:"any"}),day:Yr({matchPatterns:wg,defaultMatchWidth:"wide",parsePatterns:Sg,defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:Dg,defaultMatchWidth:"any",parsePatterns:Tg,defaultParseWidth:"any"})};var He={code:"en-US",formatDistance:_l,formatLong:El,formatRelative:Al,localize:Il,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nu(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=Z(s,e),u=h(e?.in||t,0);u.setFullYear(o,0,i),u.setHours(0,0,0,0);let c=Z(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),Z(i,e)}function Vo(t,e){let r=l(t,e?.in),o=+Z(r,e)-+qr(r,e);return Math.round(o/at)+1}function I(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 I(e==="yy"?o%100:o,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):I(r+1,2)},d(t,e){return I(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 I(t.getHours()%12||12,e.length)},H(t,e){return I(t.getHours(),e.length)},m(t,e){return I(t.getMinutes(),e.length)},s(t,e){return I(t.getSeconds(),e.length)},S(t,e){let r=e.length,o=t.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return I(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 I(s,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):I(i,e.length)},R:function(t,e){let r=We(t);return I(r,e.length)},u:function(t,e){let r=t.getFullYear();return I(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 I(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 I(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 I(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"}):I(n,e.length)},I:function(t,e,r){let o=zo(t);return e==="Io"?r.ordinalNumber(o,{unit:"week"}):I(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=nu(t);return e==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):I(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 I(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 I(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 I(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"}):I(o,e.length)},k:function(t,e,r){let o=t.getHours();return o===0&&(o=24),e==="ko"?r.ordinalNumber(o,{unit:"hour"}):I(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 Nl(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 Nl(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"+Cl(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"+Cl(o,":");case"zzzz":default:return"GMT"+fr(o,":")}},t:function(t,e,r){let o=Math.trunc(+t/1e3);return I(o,e.length)},T:function(t,e,r){return I(+t,e.length)}};function Cl(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+I(i,2)}function Nl(t,e){return t%60===0?(t>0?"-":"+")+I(Math.abs(t)/60,2):fr(t,e)}function fr(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=I(Math.trunc(o/60),2),i=I(o%60,2);return r+n+e+i}var Fl=(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"})}},$l=(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"})}},Og=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return Fl(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}}",Fl(o,e)).replace("{{time}}",$l(n,e))},jr={p:$l,P:Og};var Mg=/^D+$/,_g=/^Y+$/,Eg=["D","DD","YY","YYYY"];function vi(t){return Mg.test(t)}function wi(t){return _g.test(t)}function Go(t,e,r){let o=Ag(t,e,r);if(console.warn(o),Eg.includes(t))throw new RangeError(o)}function Ag(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 Ig=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pg=/^'([^]*?)'?$/,Cg=/''/g,Ng=/[a-zA-Z]/;function iu(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(!Ie(a))throw new RangeError("Invalid time value");let u=e.match(kg).map(f=>{let m=f[0];if(m==="p"||m==="P"){let p=jr[m];return p(f,n.formatLong)}return f}).join("").match(Ig).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let m=f[0];if(m==="'")return{isToken:!1,value:Fg(f)};if(bi[m])return{isToken:!0,value:f};if(m.match(Ng))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 Fg(t){let e=t.match(Pg);return e?e[1].replace(Cg,"'"):t}function su(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=2520,s=Ne(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=Dt(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<Ct){let y=Math.round(p/Fr);return n.formatDistance("xDays",y,a)}else if(p<Ct*2)return d=Math.round(p/Ct),n.formatDistance("aboutXMonths",d,a)}if(d=ar(c,u),d<12){let y=Math.round(p/Ct);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 au(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=Ne(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/Ae,p=ae(u)-ae(a),d=(f-p)/Ae,y=r?.unit,w;if(y?w=y:m<1?w="second":m<60?w="minute":m<Fr?w="hour":d<Ct?w="day":d<Fa?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/Ct);return g===12&&y!=="month"?n.formatDistance("xYears",1,s):n.formatDistance("xMonths",g,s)}else{let g=c(d/Fa);return n.formatDistance("xYears",g,s)}}function $g(t,e){return su(t,L(t),e)}function Rg(t,e){return au(t,L(t),e)}var Wg=["years","months","weeks","days","hours","minutes","seconds"];function Ug(t,e){let r=G(),o=e?.locale??r.locale??He,n=e?.format??Wg,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 Bg(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=I(r.getDate(),2),f=I(r.getMonth()+1,2);i=`${I(r.getFullYear(),4)}${a}${f}${a}${c}`}if(n!=="date"){let c=r.getTimezoneOffset();if(c!==0){let w=Math.abs(c),g=I(Math.trunc(w/60),2),E=I(w%60,2);s=`${c<0?"+":"-"}${g}:${E}`}else s="Z";let f=I(r.getHours(),2),m=I(r.getMinutes(),2),p=I(r.getSeconds(),2),d=i===""?"":"T",y=[f,m,p].join(u);i=`${i}${d}${y}${s}`}return i}function Lg(t,e){let r=l(t,e?.in);if(!Ie(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=I(r.getDate(),2),c=I(r.getMonth()+1,2);i=`${I(r.getFullYear(),4)}${s}${c}${s}${u}`}if(n!=="date"){let u=I(r.getHours(),2),c=I(r.getMinutes(),2),f=I(r.getSeconds(),2);i=`${i}${i===""?"":" "}${u}${a}${c}${a}${f}`}return i}function Yg(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 qg(t,e){let r=l(t,e?.in);if(!Ie(r))throw new RangeError("Invalid time value");let o=e?.fractionDigits??0,n=I(r.getDate(),2),i=I(r.getMonth()+1,2),s=r.getFullYear(),a=I(r.getHours(),2),u=I(r.getMinutes(),2),c=I(r.getSeconds(),2),f="";if(o>0){let d=r.getMilliseconds(),y=Math.trunc(d*Math.pow(10,o-3));f="."+I(y,o)}let m="",p=r.getTimezoneOffset();if(p!==0){let d=Math.abs(p),y=I(Math.trunc(d/60),2),w=I(d%60,2);m=`${p<0?"+":"-"}${y}:${w}`}else m="Z";return`${s}-${i}-${n}T${a}:${u}:${c}${f}${m}`}var Hg=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],jg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zg(t){let e=l(t);if(!Ie(e))throw new RangeError("Invalid time value");let r=Hg[e.getUTCDay()],o=I(e.getUTCDate(),2),n=jg[e.getUTCMonth()],i=e.getUTCFullYear(),s=I(e.getUTCHours(),2),a=I(e.getUTCMinutes(),2),u=I(e.getUTCSeconds(),2);return`${r}, ${o} ${n} ${i} ${s}:${a}:${u} GMT`}function Vg(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 iu(o,f,{locale:s,weekStartsOn:a})}function Gg(t,e){return l(t*1e3,e?.in)}function uu(t,e){return l(t,e?.in).getDate()}function lr(t,e){return l(t,e?.in).getDay()}function cu(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 fu(t,e){let o=l(t,e?.in).getFullYear();return o%400===0||o%4===0&&o%100!==0}function Kg(t,e){let r=l(t,e?.in);return Number.isNaN(+r)?NaN:fu(r)?366:365}function Qg(t,e){let o=l(t,e?.in).getFullYear();return Math.floor(o/10)*10}function lu(){return Object.assign({},G())}function Jg(t,e){return l(t,e?.in).getHours()}function pu(t,e){let r=l(t,e?.in).getDay();return r===0?7:r}function Xg(t,e){let r=ze(t,e),n=+ze(ir(r,60))-+r;return Math.round(n/at)}function Zg(t){return l(t).getMilliseconds()}function e0(t,e){return l(t,e?.in).getMinutes()}function t0(t,e){return l(t,e?.in).getMonth()}function r0(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 o0(t){return l(t).getSeconds()}function n0(t){return+l(t)}function i0(t){return Math.trunc(+l(t)/1e3)}function s0(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=uu(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 mu(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 a0(t,e){let r=l(t,e?.in);return Wr(mu(r,e),ur(r,e),e)+1}function u0(t,e){return l(t,e?.in).getFullYear()}function c0(t){return Math.trunc(t*qe)}function f0(t){return Math.trunc(t*pi)}function l0(t){return Math.trunc(t*rr)}function p0(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 m0(t,e){let{start:r,end:o}=ve(e?.in,t),n={},i=eu(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=Bo(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=Br(o,p);d&&(n.minutes=d);let y=or(p,{minutes:n.minutes}),w=Dt(o,y);return w&&(n.seconds=w),n}function d0(t,e,r){let o;return h0(e)?o=e:r=e,new Intl.DateTimeFormat(r?.locale,o).format(l(t))}function h0(t){return t!==void 0&&!("locale"in t)}function y0(t,e,r){let o=0,n,[i,s]=C(r?.in,t,e);if(r?.unit)n=r?.unit,n==="second"?o=Dt(i,s):n==="minute"?o=Br(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=Dt(i,s);Math.abs(u)<$r?(o=Dt(i,s),n="second"):Math.abs(u)<rr?(o=Br(i,s),n="minute"):Math.abs(u)<yi&&Math.abs(De(i,s))<1?(o=Ur(i,s),n="hour"):Math.abs(u)<Sl&&(o=De(i,s))&&Math.abs(o)<7?n="day":Math.abs(u)<Ra?(o=Wr(i,s),n="week"):Math.abs(u)<Dl?(o=Rr(i,s),n="month"):Math.abs(u)<$a?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 x0(t,e){return+l(t)>+l(e)}function g0(t,e){return+l(t)<+l(e)}function b0(t,e){return+l(t)==+l(e)}function v0(t,e,r){let o=new Date(t,e,r);return o.getFullYear()===t&&o.getMonth()===e&&o.getDate()===r}function w0(t,e){return l(t,e?.in).getDate()===1}function S0(t,e){return l(t,e?.in).getDay()===5}function D0(t){return+l(t)>Date.now()}function du(t,e){let r=T0(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 T0(t){return typeof t=="function"&&t.prototype?.constructor===t}var O0=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=O0;subPriority=-1;constructor(e,r){super(),this.context=e||(o=>h(r,o))}set(e,r){return r.timestampIsSet?e:h(e,du(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*Ae+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 Ei(t){return t%400===0||t%4===0&&t%100!==0}var Ai=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 Ii=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),Z(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),Z(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 hu(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 Z(hu(e,o,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function yu(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(yu(e,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var M0=[31,28,31,30,31,30,31,31,30,31,30,31],_0=[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=Ei(o),i=e.getMonth();return n?r>=1&&r<=_0[i]:r>=1&&r<=M0[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 Bi=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 Ei(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 Li=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 xu(t,e,r){let o=l(t,r?.in),n=pu(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=xu(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 Xi=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 Zi=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 gu={G:new Oi,y:new Ai,Y:new Ii,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 Bi,E:new Li,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 Xi,s:new Zi,S:new es,X:new ts,x:new rs,t:new os,T:new ns};var E0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I0=/^'([^]*?)'?$/,k0=/''/g,P0=/\S/,C0=/[a-zA-Z]/;function bu(t,e,r,o){let n=()=>h(o?.in||r,NaN),i=lu(),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(A0).map(g=>{let E=g[0];if(E in jr){let D=jr[E];return D(g,s.formatLong)}return g}).join("").match(E0),p=[];for(let g of m){!o?.useAdditionalWeekYearTokens&&wi(g)&&Go(g,e,t),!o?.useAdditionalDayOfYearTokens&&vi(g)&&Go(g,e,t);let E=g[0],D=gu[E];if(D){let{incompatibleTokens:T}=D;if(Array.isArray(T)){let V=p.find(z=>T.includes(z.token)||z.token===E);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:E,fullToken:g});let B=D.run(t,g,s.match,c);if(!B)return n();f.push(B.setter),t=B.rest}else{if(E.match(C0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(g==="''"?g="'":E==="'"&&(g=N0(g)),t.indexOf(g)===0)t=t.slice(g.length);else return n()}}if(t.length>0&&P0.test(t))return n();let d=f.map(g=>g.priority).sort((g,E)=>E-g).filter((g,E,D)=>D.indexOf(g)===E).map(g=>f.filter(E=>E.priority===g).sort((E,D)=>D.subPriority-E.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 E=g.set(y,w,c);Array.isArray(E)?(y=E[0],Object.assign(w,E[1])):y=E}return y}function N0(t){return t.match(I0)[1].replace(k0,"'")}function F0(t,e,r){return Ie(bu(t,e,new Date,r))}function $0(t,e){return l(t,e?.in).getDay()===1}function R0(t){return+l(t)<Date.now()}function is(t,e){let r=l(t,e?.in);return r.setMinutes(0,0,0),r}function vu(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+Z(o,r)==+Z(n,r)}function wu(t,e,r){return Ko(t,e,{...r,weekStartsOn:1})}function W0(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 Su(t,e){return+ss(t)==+ss(e)}function Du(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()&&o.getMonth()===n.getMonth()}function Tu(t,e,r){let[o,n]=C(r?.in,t,e);return+Tt(o)==+Tt(n)}function as(t,e){let r=l(t,e?.in);return r.setMilliseconds(0),r}function Ou(t,e){return+as(t)==+as(e)}function Mu(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()}function U0(t,e){return vu(l(t,e?.in),L(e?.in||t))}function B0(t,e){return wu(h(e?.in||t,t),L(e?.in||t))}function L0(t){return Su(t,L(t))}function Y0(t,e){return Du(h(e?.in||t,t),L(e?.in||t))}function q0(t,e){return Tu(h(e?.in||t,t),L(e?.in||t))}function H0(t){return Ou(t,L(t))}function j0(t,e){return Ko(h(e?.in||t,t),L(e?.in||t),e)}function z0(t,e){return Mu(h(e?.in||t,t),L(e?.in||t))}function V0(t,e){return l(t,e?.in).getDay()===4}function G0(t,e){return St(h(e?.in||t,t),L(e?.in||t))}function K0(t,e){return St(t,be(L(e?.in||t),1),e)}function Q0(t,e){return l(t,e?.in).getDay()===2}function J0(t,e){return l(t,e?.in).getDay()===3}function X0(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 Z0(t,e){return St(h(e?.in||t,t),mr(L(e?.in||t),1))}function eb(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 _u(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 tb(t,e){return _u(t,{...e,weekStartsOn:1})}function rb(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 ob(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 nb(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 ib=/(\w)\1*|''|'(''|[^'])+('|$)|./g,sb=/^'([^]*?)'?$/,ab=/''/g,ub=/[a-zA-Z]/;function cb(t,e){let r=l(t);if(!Ie(r))throw new RangeError("Invalid time value");let o=e.match(ib);return o?o.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return fb(i);let a=Ve[s];if(a)return a(r,i);if(s.match(ub))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function fb(t){let e=t.match(sb);return e?e[1].replace(ab,"'"):t}function lb({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 pb(t){let e=t/qe;return Math.trunc(e)}function mb(t){let e=t/Ae;return Math.trunc(e)}function db(t){let e=t/Nr;return Math.trunc(e)}function hb(t){let e=t/pi;return Math.trunc(e)}function yb(t){return Math.trunc(t*Ae)}function xb(t){return Math.trunc(t*$r)}function gb(t){let e=t/mi;return Math.trunc(e)}function bb(t){let e=t/di;return Math.trunc(e)}function Fe(t,e,r){let o=e-lr(t,r);return o<=0&&(o+=7),be(t,o,r)}function vb(t,e){return Fe(t,5,e)}function wb(t,e){return Fe(t,1,e)}function Sb(t,e){return Fe(t,6,e)}function Db(t,e){return Fe(t,0,e)}function Tb(t,e){return Fe(t,4,e)}function Ob(t,e){return Fe(t,2,e)}function Mb(t,e){return Fe(t,3,e)}function _b(t,e){let r=()=>h(e?.in,NaN),o=e?.additionalDigits??2,n=kb(t),i;if(n.date){let c=Pb(n.date,o);i=Cb(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,u;if(n.time&&(a=Nb(n.time),isNaN(a)))return r();if(n.timezone){if(u=Fb(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+-].*)$/},Eb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ab=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ib=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kb(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 Pb(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 Cb(t,e){if(e===null)return new Date(NaN);let r=t.match(Eb);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 Bb(e,a,u)?$b(e,a,u):new Date(NaN);{let c=new Date(0);return!Wb(e,i,s)||!Ub(e,n)?new Date(NaN):(c.setUTCFullYear(e,i,Math.max(n,s)),c)}}function Qo(t){return t?parseInt(t):1}function Nb(t){let e=t.match(Ab);if(!e)return NaN;let r=Eu(e[1]),o=Eu(e[2]),n=Eu(e[3]);return Lb(r,o,n)?r*qe+o*Ae+n*1e3:NaN}function Eu(t){return t&&parseFloat(t.replace(",","."))||0}function Fb(t){if(t==="Z")return 0;let e=t.match(Ib);if(!e)return 0;let r=e[1]==="+"?-1:1,o=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return Yb(o,n)?r*(o*qe+n*Ae):NaN}function $b(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 Rb=[31,null,31,30,31,30,31,31,30,31,30,31];function Wl(t){return t%400===0||t%4===0&&t%100!==0}function Wb(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(Rb[e]||(Wl(t)?29:28))}function Ub(t,e){return e>=1&&e<=(Wl(t)?366:365)}function Bb(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Lb(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Yb(t,e){return e>=0&&e<=59}function qb(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 $e(t,e,r){let o=lr(t,r)-e;return o<=0&&(o+=7),mr(t,o,r)}function Hb(t,e){return $e(t,5,e)}function jb(t,e){return $e(t,1,e)}function zb(t,e){return $e(t,6,e)}function Vb(t,e){return $e(t,0,e)}function Gb(t,e){return $e(t,4,e)}function Kb(t,e){return $e(t,2,e)}function Qb(t,e){return $e(t,3,e)}function Jb(t){return Math.trunc(t*mi)}function Xb(t){let e=t/hi;return Math.trunc(e)}function Zb(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 ev(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 tv(t){let e=t/rr;return Math.trunc(e)}function rv(t){return t*Nr}function ov(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=cu(s);return o.setMonth(e,Math.min(i,a)),o}function nv(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 iv(t,e,r){let o=l(t,r?.in);return o.setDate(e),o}function sv(t,e,r){let o=l(t,r?.in);return o.setMonth(0),o.setDate(e),o}function av(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]);Ol(e)}function uv(t,e,r){let o=l(t,r?.in);return o.setHours(e),o}function cv(t,e,r){let o=l(t,r?.in);return o.setMilliseconds(e),o}function fv(t,e,r){let o=l(t,r?.in);return o.setMinutes(e),o}function lv(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 pv(t,e,r){let o=l(t,r?.in);return o.setSeconds(e),o}function mv(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 dv(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(o.setFullYear(e),o)}function hv(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 yv(t){return wt(Date.now(),t)}function xv(t){let e=L(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 gv(t){let e=L(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=L(t?.in);return i.setFullYear(r,o,n-1),i.setHours(0,0,0,0),i}function Au(t,e,r){return bt(t,-e,r)}function bv(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=Au(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 vv(t,e,r){return La(t,-e,r)}function wv(t,e,r){return Ya(t,-e,r)}function Sv(t,e,r){return nr(t,-e,r)}function Dv(t,e,r){return Ro(t,-e,r)}function Tv(t,e,r){return Wo(t,-e,r)}function Ov(t,e,r){return ja(t,-e,r)}function Mv(t,e,r){return ir(t,-e,r)}function _v(t,e,r){return za(t,-e,r)}function Ev(t){return Math.trunc(t*7)}function Av(t){return Math.trunc(t*365.2425)}function Iv(t){return Math.trunc(t*di)}function kv(t){return Math.trunc(t*hi)}var Gr=nt(Ul(),1),Yl=nt(Bl(),1);var Ll=t=>Number.isFinite(t)?t:0;function Pv(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(Ll(t*1e3)%1e3),nanoseconds:Math.trunc(Ll(t*1e6)%1e3)}}function Cv(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 Nu(t){switch(typeof t){case"number":{if(Number.isFinite(t))return Pv(t);break}case"bigint":return Cv(t)}throw new TypeError("Expected a finite number or bigint")}var Nv=t=>t===0||t===0n,Fv=(t,e)=>e===1||e===1n?t:`${t}s`,$v=1e-7,Rv=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+$v);return(Math.round(p)/10**m).toFixed(m)},s=(f,m,p,d)=>{if(!((n.length===0||!e.colonNotation)&&Nv(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?" "+Fv(m,f):p;n.push(d)}},a=Nu(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),E=w?y.toFixed(w):g;s(Number.parseFloat(E),"millisecond","ms",E)}}else{let f=(r?Number(t%Rv):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(Yl.default);var Xo=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 Nt={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},Fu=t=>{let e=0,r=o=>{e=e+o};return t.years&&r(Nt.years(t.years)),t.months&&r(Nt.months(t.months)),t.weeks&&r(Nt.weeks(t.weeks)),t.days&&r(Nt.days(t.days)),t.hours&&r(Nt.hours(t.hours)),t.minutes&&r(Nt.minutes(t.minutes)),t.seconds&&r(Nt.seconds(t.seconds)),e},$u=t=>fs(t),Wv=t=>cs.formatDistanceToNow(new Date(t));var Ru=class{constructor(){this.status="stopped",this.cronjobs=new Ue.ObjectMap}addCronjob(e,r){let o=new Xo(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 X.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 X.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${$u(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new X.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 Wu=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=Fu(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Uu=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 Bu=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 X.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 Lu=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 qu=nt(Zl(),1);var Hu=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(),X.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(),X.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 ju=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 Zo=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 ep=(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 Zo,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=ep("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 Ot.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&&X.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 zu=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 Vu=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 Gu=class{constructor(){this.referenceObjectMap=new dr}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var Ku=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 Qu=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Ot.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 Ju=class{constructor(){this.symbolTree=new qu.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:()=>fw,ensurePureUint8Array:()=>mw,isBufferLike:()=>pw,isUint8Array:()=>lw,uInt8ArrayExtras:()=>uw,uInt8ArrayToBase64:()=>cw});var hr={};re(hr,{areUint8ArraysEqual:()=>Gv,assertUint8Array:()=>Wt,assertUint8ArrayOrArrayBuffer:()=>np,base64ToString:()=>tw,base64ToUint8Array:()=>up,compareUint8Arrays:()=>Kv,concatUint8Arrays:()=>Vv,getUintBE:()=>iw,hexToUint8Array:()=>nw,includes:()=>sw,indexOf:()=>cp,isUint8Array:()=>Xu,stringToBase64:()=>ew,stringToUint8Array:()=>sp,toUint8Array:()=>zv,uint8ArrayToBase64:()=>ap,uint8ArrayToHex:()=>ow,uint8ArrayToString:()=>ip});var Lv=Object.prototype.toString,Yv="[object Uint8Array]",qv="[object ArrayBuffer]";function op(t,e,r){return t?t.constructor===e?!0:Lv.call(t)===r:!1}function Xu(t){return op(t,Uint8Array,Yv)}function Hv(t){return op(t,ArrayBuffer,qv)}function jv(t){return Xu(t)||Hv(t)}function Wt(t){if(!Xu(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function np(t){if(!jv(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function zv(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 Vv(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)Wt(n),r.set(n,o),o+=n.length;return r}function Gv(t,e){if(Wt(t),Wt(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 Kv(t,e){Wt(t),Wt(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 tp={utf8:new globalThis.TextDecoder("utf8")};function ip(t,e="utf8"){return np(t),tp[e]??=new globalThis.TextDecoder(e),tp[e].decode(t)}function tn(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}var Qv=new globalThis.TextEncoder;function sp(t){return tn(t),Qv.encode(t)}function Jv(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Xv(t){return t.replaceAll("-","+").replaceAll("_","/")}var Zv=65535;function ap(t,{urlSafe:e=!1}={}){Wt(t);let r;if(t.length<Zv)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?Jv(r):r}function up(t){return tn(t),Uint8Array.from(globalThis.atob(Xv(t)),e=>e.codePointAt(0))}function ew(t,{urlSafe:e=!1}={}){return tn(t),ap(sp(t),{urlSafe:e})}function tw(t){return tn(t),ip(up(t))}var rw=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function ow(t){Wt(t);let e="";for(let r=0;r<t.length;r++)e+=rw[t[r]];return e}var rp={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 nw(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=rp[t[o*2]],i=rp[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 iw(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 cp(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 sw(t,e){return cp(t,e)!==-1}var uw=hr;function cw(t){return hr.uint8ArrayToBase64(t)}function fw(t){return hr.base64ToUint8Array(t)}var lw=t=>hr.isUint8Array(t);function pw(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function mw(t){let e=new Uint8Array(t.length);return e.set(t),e}var ps={};re(ps,{Guard:()=>on,GuardError:()=>nn,GuardSet:()=>sn,passGuardsOrReject:()=>dw});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 dw=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:()=>hf});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 Xe={};re(Xe,{Smartjson:()=>af,deepEqualJsonLStrings:()=>gO,deepEqualObjects:()=>ry,foldDec:()=>xO,parse:()=>On,parseBase64:()=>yO,parseJsonL:()=>mO,stringify:()=>xo,stringifyBase64:()=>hO,stringifyPretty:()=>dO});var wn={};re(wn,{Base64:()=>ks,Domain:()=>Ps,GitRepo:()=>Cs,base64:()=>lo,create:()=>Rc,docker:()=>Wc,indent:()=>Lc,normalize:()=>Yc,type:()=>qc});var Rc={};re(Rc,{createCryptoRandomString:()=>S1,createRandomString:()=>w1});var rh=nt(la(),1),oh=nt(Td(),1);var Id="3.7.7",e1=Id,fo=typeof Buffer=="function",Od=typeof TextDecoder=="function"?new TextDecoder:void 0,Md=typeof TextEncoder=="function"?new TextEncoder:void 0,t1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bn=Array.prototype.slice.call(t1),_s=(t=>{let e={};return t.forEach((r,o)=>e[r]=o),e})(bn),r1=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Te=String.fromCharCode.bind(String),_d=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),kd=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Pd=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Cd=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},Cc=typeof btoa=="function"?t=>btoa(t):fo?t=>Buffer.from(t,"binary").toString("base64"):Cd,kc=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 Cc(r.join(""))},Es=(t,e=!1)=>e?kd(kc(t)):kc(t),o1=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)}},n1=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Nd=t=>t.replace(n1,o1),Ed=fo?t=>Buffer.from(t,"utf8").toString("base64"):Md?t=>kc(Md.encode(t)):t=>Cc(Nd(t)),co=(t,e=!1)=>e?kd(Ed(t)):Ed(t),Ad=t=>co(t,!0),i1=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,s1=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))}},Fd=t=>t.replace(i1,s1),$d=t=>{if(t=t.replace(/\s+/g,""),!r1.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},Nc=typeof atob=="function"?t=>atob(Pd(t)):fo?t=>Buffer.from(t,"base64").toString("binary"):$d,Rd=fo?t=>_d(Buffer.from(t,"base64")):t=>_d(Nc(t).split("").map(e=>e.charCodeAt(0))),Wd=t=>Rd(Ud(t)),a1=fo?t=>Buffer.from(t,"base64").toString("utf8"):Od?t=>Od.decode(Rd(t)):t=>Fd(Nc(t)),Ud=t=>Pd(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Pc=t=>a1(Ud(t)),u1=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)},Bd=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Ld=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Bd(r));t("fromBase64",function(){return Pc(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 Wd(this)})},Yd=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Bd(r));t("toBase64",function(e){return Es(this,e)}),t("toBase64URI",function(){return Es(this,!0)}),t("toBase64URL",function(){return Es(this,!0)})},c1=()=>{Ld(),Yd()},vn={version:Id,VERSION:e1,atob:Nc,atobPolyfill:$d,btoa:Cc,btoaPolyfill:Cd,fromBase64:Pc,toBase64:co,encode:co,encodeURI:Ad,encodeURL:Ad,utob:Nd,btou:Fd,decode:Pc,isValid:u1,fromUint8Array:Es,toUint8Array:Wd,extendString:Ld,extendUint8Array:Yd,extendBuiltins:c1};var jd=nt(Hd(),1);function As(t){let e=(0,jd.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var $c=nt(th(),1),UG=new an;var w1=(t,e,r)=>$c.default(t,e,r),S1=()=>rh.uni();var Wc={};re(Wc,{makeEnvObject:()=>D1});var D1=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 Lc={};re(Lc,{indent:()=>O1,indentWithPrefix:()=>M1,normalize:()=>_1});var Uc=t=>{let e=t.split(`
12
- `);return T1(e)},Bc=t=>{let e="";for(let r of t)e=e+r+`
13
- `;return e},T1=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},O1=(t,e)=>{let r=Uc(t);for(let n of r)n=" ".repeat(e)+n;return Bc(r)},M1=(t,e)=>{let r,o=Uc(t),n=[];for(let i of o)n.push(e+i);return r=Bc(n),r},_1=t=>{let e,r=Uc(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=Bc(s),e};var Yc={};re(Yc,{replaceAll:()=>nh,standard:()=>E1});var nh=(t,e,r)=>t.replace(new RegExp(e,"g"),r),E1=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=As(r)),(!e||e.normalizeNewline)&&(r=r.replace(/\r\n/g,`
14
- `)),(!e||e.replaceTabs)&&(r=nh(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 qc={};re(qc,{isBase64:()=>I1,isUtf8:()=>A1});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 A1=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},I1=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=oh.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=k1(e);this.host=o[1],this.user=o[2],this.repo=o[3],this.accessToken=r,this.sshUrl=ih(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=ih(this.host,this.user,this.repo,this.accessToken,"https")}},k1=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},ih=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 nf=nt(Vh(),1),Qh=nt(Kh(),1);var Jh=Qh.default;function sO(t){return btoa(String.fromCharCode(...t))}function aO(t){return new Uint8Array(Array.from(atob(t)).map(e=>e.charCodeAt(0)))}function Xh(t,e){return JSON.stringify(t,uO,e)}function Zh(t){return JSON.parse(t,cO)}var uO=(t,e)=>{if(lO(e)){let r;if("data"in e&&ey(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:"+sO(r)}}return e},cO=(t,e)=>{if(fO(e)&&sf(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return aO(r)}return e};function fO(t){return ty(t)&&t.type==="EncodedBuffer"&&sf(t.data)}function lO(t){return ty(t)&&t.type==="Buffer"&&(ey(t.data)||sf(t.data))||t instanceof Uint8Array}function ey(t){return Array.isArray(t)}function sf(t){return typeof t=="string"}function ty(t){return typeof t=="object"&&t!==null}var On=Zh,mO=t=>t.trim().split(`
15
- `).reduce((o,n)=>(n.trim().length>0&&o.push(JSON.parse(n)),o),[]),xo=(t,e,r={})=>{let o=Xh(t);return t=JSON.parse(o),Jh(t,r)},dO=t=>{let e=xo(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},hO=(...t)=>{let e=xo(...t);return wn.base64.encodeUri(e)},yO=t=>{let e=wn.base64.decode(t);return On(e)},af=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]=nf.default(n)}return e}foldToJson(){let e=this.foldToObject();return xo(e)}},xO=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},ry=(t,e)=>{let r=xo(t),o=xo(e);return r===o},gO=(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))}),ry(r,o)};var Dr={};re(Dr,{TypedrequestCache:()=>df,WebStore:()=>Mn});var Hs={};re(Hs,{deleteDB:()=>MO,openDB:()=>OO,unwrap:()=>Ys,wrap:()=>At});var ff=(t,e)=>e.some(r=>t instanceof r),oy,ny;function bO(){return oy||(oy=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function vO(){return ny||(ny=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var lf=new WeakMap,uf=new WeakMap,qs=new WeakMap;function wO(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 SO(t){if(lf.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)});lf.set(t,e)}var pf={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return lf.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 uy(t){pf=t(pf)}function DO(t){return vO().includes(t)?function(...e){return t.apply(Ys(this),e),At(this.request)}:function(...e){return At(t.apply(Ys(this),e))}}function TO(t){return typeof t=="function"?DO(t):(t instanceof IDBTransaction&&SO(t),ff(t,bO())?new Proxy(t,pf):t)}function At(t){if(t instanceof IDBRequest)return wO(t);if(uf.has(t))return uf.get(t);let e=TO(t);return e!==t&&(uf.set(t,e),qs.set(e,t)),e}var Ys=t=>qs.get(t);function OO(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 MO(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",o=>e(o.oldVersion,o)),At(r).then(()=>{})}var _O=["get","getKey","getAll","getAllKeys","count"],EO=["put","add","delete","clear"],cf=new Map;function iy(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(cf.get(e))return cf.get(e);let r=e.replace(/FromIndex$/,""),o=e!==r,n=EO.includes(r);if(!(r in(o?IDBIndex:IDBObjectStore).prototype)||!(n||_O.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 cf.set(e,i),i}uy(t=>({...t,get:(e,r,o)=>iy(e,r)||t.get(e,r,o),has:(e,r)=>!!iy(e,r)||t.has(e,r)}));var AO=["continue","continuePrimaryKey","advance"],sy={},mf=new WeakMap,cy=new WeakMap,IO={get(t,e){if(!AO.includes(e))return t[e];let r=sy[e];return r||(r=sy[e]=function(...o){mf.set(this,cy.get(this)[e](...o))}),r}};async function*kO(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;let r=new Proxy(e,IO);for(cy.set(r,e),qs.set(r,Ys(e));e;)yield r,e=await(mf.get(r)||e.continue()),mf.delete(r)}function ay(t,e){return e===Symbol.asyncIterator&&ff(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&ff(t,[IDBIndex,IDBObjectStore])}uy(t=>({...t,get(e,r,o){return ay(e,r)?kO:t.get(e,r,o)},has(e,r){return ay(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 df=class{constructor(e="default"){this.webstore=new Mn({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return Xe.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 hf=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 Xe.parse(n)}async postJson(e,r,o=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:Xe.stringify(r),useCache:o})).text();return Xe.parse(i)}async putJson(e,r,o=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:Xe.stringify(r)})).text();return Xe.parse(i)}async deleteJson(e,r=!1){let n=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Xe.parse(n)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let o=new AbortController;X.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 X.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 yf=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 ly="#############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 X.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 X.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let e=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await X.delayFor(1e3);await X.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===ly){r.releaseLock(),await e.close();break}await r.write(o)}}async close(e=!1){e&&this.sendData(ly),this.keepAlive=!1}};var xf=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 CO=new js.WebRequest,gf=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 CO.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 X.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()-Ot.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("show","false")}render(){return Re`
1
+ var dw=Object.create;var Bi=Object.defineProperty;var gw=Object.getOwnPropertyDescriptor;var hF=Object.getOwnPropertyNames;var mF=Object.getPrototypeOf,dF=Object.prototype.hasOwnProperty;var xw=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$i=e=>{throw TypeError(e)};var yw=(e,t,r)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pw=(e,t)=>Bi(e,"name",{value:t,configurable:!0}),Nu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),te=(e,t)=>{for(var r in t)Bi(e,r,{get:t[r],enumerable:!0})},gF=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hF(t))!dF.call(e,o)&&o!==r&&Bi(e,o,{get:()=>t[o],enumerable:!(n=gw(t,o))||n.enumerable});return e};var je=(e,t,r)=>(r=e!=null?dw(mF(e)):{},gF(t||!e||!e.__esModule?Bi(r,"default",{value:e,enumerable:!0}):r,e));var Br=e=>[,,,dw(e?.[xw("metadata")]??null)],bw=["class","method","getter","setter","accessor","field","value","get","set"],Ma=e=>e!==void 0&&typeof e!="function"?$i("Function expected"):e,xF=(e,t,r,n,o)=>({kind:bw[e],name:t,metadata:n,addInitializer:i=>r._?$i("Already initialized"):o.push(Ma(i||null))}),yF=(e,t)=>yw(t,xw("metadata"),e[3]),pt=(e,t,r,n)=>{for(var o=0,i=e[t>>1],s=i&&i.length;o<s;o++)t&1?i[o].call(r):n=i[o].call(r,n);return n},Yt=(e,t,r,n,o,i)=>{var s,a,l,u,c,f=t&7,p=!!(t&8),h=!!(t&16),m=f>3?e.length+1:f?p?1:2:0,d=bw[f+5],g=f>3&&(e[m-1]=[]),y=e[m]||(e[m]=[]),S=f&&(!h&&!p&&(o=o.prototype),f<5&&(f>3||!h)&&gw(f<4?o:{get[r](){return hw(this,i)},set[r](N){return mw(this,i,N)}},r));f?h&&f<4&&pw(i,(f>2?"set ":f>1?"get ":"")+r):pw(o,r);for(var k=n.length-1;k>=0;k--)u=xF(f,r,l={},e[3],y),f&&(u.static=p,u.private=h,c=u.access={has:h?N=>bF(o,N):N=>r in N},f^3&&(c.get=h?N=>(f^1?hw:wF)(N,o,f^4?i:S.get):N=>N[r]),f>2&&(c.set=h?(N,R)=>mw(N,o,R,f^4?i:S.set):(N,R)=>N[r]=R)),a=(0,n[k])(f?f<4?h?i:S[d]:f>4?void 0:{get:S.get,set:S.set}:o,u),l._=1,f^4||a===void 0?Ma(a)&&(f>4?g.unshift(a):f?h?i=a:S[d]=a:o=a):typeof a!="object"||a===null?$i("Object expected"):(Ma(s=a.get)&&(S.get=s),Ma(s=a.set)&&(S.set=s),Ma(s=a.init)&&g.unshift(s));return f||yF(e,o),S&&Bi(o,r,S),h?f^4?i:S:o},Vt=(e,t,r)=>yw(e,typeof t!="symbol"?t+"":t,r),Bm=(e,t,r)=>t.has(e)||$i("Cannot "+r),bF=(e,t)=>Object(t)!==t?$i('Cannot use the "in" operator on this value'):e.has(t),hw=(e,t,r)=>(Bm(e,t,"read from private field"),r?r.call(e):t.get(e)),Ui=(e,t,r)=>t.has(e)?$i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),mw=(e,t,r,n)=>(Bm(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),wF=(e,t,r)=>(Bm(e,t,"access private method"),r);var $a=U(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.uni=void 0;var FF=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;Yu.uni=FF});var f1=U((Od,Md)=>{(function(e,t){typeof Od=="object"&&typeof Md<"u"?Md.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Od,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",l="week",u="month",c="quarter",f="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|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(j){var O=["th","st","nd","rd"],M=j%100;return"["+j+(O[(M-20)%10]||O[M]||O[0])+"]"}},y=function(j,O,M){var P=String(j);return!P||P.length>=O?j:""+Array(O+1-P.length).join(M)+j},S={s:y,z:function(j){var O=-j.utcOffset(),M=Math.abs(O),P=Math.floor(M/60),B=M%60;return(O<=0?"+":"-")+y(P,2,"0")+":"+y(B,2,"0")},m:function j(O,M){if(O.date()<M.date())return-j(M,O);var P=12*(M.year()-O.year())+(M.month()-O.month()),B=O.clone().add(P,u),Q=M-B<0,F=O.clone().add(P+(Q?-1:1),u);return+(-(P+(M-B)/(Q?B-F:F-B))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:u,y:f,w:l,d:a,D:p,h:s,m:i,s:o,ms:n,Q:c}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},k="en",N={};N[k]=g;var R="$isDayjsObject",T=function(j){return j instanceof D||!(!j||!j[R])},$=function j(O,M,P){var B;if(!O)return k;if(typeof O=="string"){var Q=O.toLowerCase();N[Q]&&(B=Q),M&&(N[Q]=M,B=Q);var F=O.split("-");if(!B&&F.length>1)return j(F[0])}else{var W=O.name;N[W]=O,B=W}return!P&&B&&(k=B),B||!P&&k},J=function(j,O){if(T(j))return j.clone();var M=typeof O=="object"?O:{};return M.date=j,M.args=arguments,new D(M)},H=S;H.l=$,H.i=T,H.w=function(j,O){return J(j,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var D=(function(){function j(M){this.$L=$(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[R]=!0}var O=j.prototype;return O.parse=function(M){this.$d=(function(P){var B=P.date,Q=P.utc;if(B===null)return new Date(NaN);if(H.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var F=B.match(m);if(F){var W=F[2]-1||0,x=(F[7]||"0").substring(0,3);return Q?new Date(Date.UTC(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,x)):new Date(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,x)}}return new Date(B)})(M),this.init()},O.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()},O.$utils=function(){return H},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(M,P){var B=J(M);return this.startOf(P)<=B&&B<=this.endOf(P)},O.isAfter=function(M,P){return J(M)<this.startOf(P)},O.isBefore=function(M,P){return this.endOf(P)<J(M)},O.$g=function(M,P,B){return H.u(M)?this[P]:this.set(B,M)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(M,P){var B=this,Q=!!H.u(P)||P,F=H.p(M),W=function(A,v){var E=H.w(B.$u?Date.UTC(B.$y,v,A):new Date(B.$y,v,A),B);return Q?E:E.endOf(a)},x=function(A,v){return H.w(B.toDate()[A].apply(B.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(v)),B)},ee=this.$W,se=this.$M,w=this.$D,he="set"+(this.$u?"UTC":"");switch(F){case f:return Q?W(1,0):W(31,11);case u:return Q?W(1,se):W(0,se+1);case l:var Se=this.$locale().weekStart||0,Re=(ee<Se?ee+7:ee)-Se;return W(Q?w-Re:w+(6-Re),se);case a:case p:return x(he+"Hours",0);case s:return x(he+"Minutes",1);case i:return x(he+"Seconds",2);case o:return x(he+"Milliseconds",3);default:return this.clone()}},O.endOf=function(M){return this.startOf(M,!1)},O.$set=function(M,P){var B,Q=H.p(M),F="set"+(this.$u?"UTC":""),W=(B={},B[a]=F+"Date",B[p]=F+"Date",B[u]=F+"Month",B[f]=F+"FullYear",B[s]=F+"Hours",B[i]=F+"Minutes",B[o]=F+"Seconds",B[n]=F+"Milliseconds",B)[Q],x=Q===a?this.$D+(P-this.$W):P;if(Q===u||Q===f){var ee=this.clone().set(p,1);ee.$d[W](x),ee.init(),this.$d=ee.set(p,Math.min(this.$D,ee.daysInMonth())).$d}else W&&this.$d[W](x);return this.init(),this},O.set=function(M,P){return this.clone().$set(M,P)},O.get=function(M){return this[H.p(M)]()},O.add=function(M,P){var B,Q=this;M=Number(M);var F=H.p(P),W=function(se){var w=J(Q);return H.w(w.date(w.date()+Math.round(se*M)),Q)};if(F===u)return this.set(u,this.$M+M);if(F===f)return this.set(f,this.$y+M);if(F===a)return W(1);if(F===l)return W(7);var x=(B={},B[i]=t,B[s]=r,B[o]=e,B)[F]||1,ee=this.$d.getTime()+M*x;return H.w(ee,this)},O.subtract=function(M,P){return this.add(-1*M,P)},O.format=function(M){var P=this,B=this.$locale();if(!this.isValid())return B.invalidDate||h;var Q=M||"YYYY-MM-DDTHH:mm:ssZ",F=H.z(this),W=this.$H,x=this.$m,ee=this.$M,se=B.weekdays,w=B.months,he=B.meridiem,Se=function(v,E,C,I){return v&&(v[E]||v(P,Q))||C[E].slice(0,I)},Re=function(v){return H.s(W%12||12,v,"0")},A=he||function(v,E,C){var I=v<12?"AM":"PM";return C?I.toLowerCase():I};return Q.replace(d,(function(v,E){return E||(function(C){switch(C){case"YY":return String(P.$y).slice(-2);case"YYYY":return H.s(P.$y,4,"0");case"M":return ee+1;case"MM":return H.s(ee+1,2,"0");case"MMM":return Se(B.monthsShort,ee,w,3);case"MMMM":return Se(w,ee);case"D":return P.$D;case"DD":return H.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return Se(B.weekdaysMin,P.$W,se,2);case"ddd":return Se(B.weekdaysShort,P.$W,se,3);case"dddd":return se[P.$W];case"H":return String(W);case"HH":return H.s(W,2,"0");case"h":return Re(1);case"hh":return Re(2);case"a":return A(W,x,!0);case"A":return A(W,x,!1);case"m":return String(x);case"mm":return H.s(x,2,"0");case"s":return String(P.$s);case"ss":return H.s(P.$s,2,"0");case"SSS":return H.s(P.$ms,3,"0");case"Z":return F}return null})(v)||F.replace(":","")}))},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(M,P,B){var Q,F=this,W=H.p(P),x=J(M),ee=(x.utcOffset()-this.utcOffset())*t,se=this-x,w=function(){return H.m(F,x)};switch(W){case f:Q=w()/12;break;case u:Q=w();break;case c:Q=w()/3;break;case l:Q=(se-ee)/6048e5;break;case a:Q=(se-ee)/864e5;break;case s:Q=se/r;break;case i:Q=se/t;break;case o:Q=se/e;break;default:Q=se}return B?Q:H.a(Q)},O.daysInMonth=function(){return this.endOf(u).$D},O.$locale=function(){return N[this.$L]},O.locale=function(M,P){if(!M)return this.$L;var B=this.clone(),Q=$(M,P,!0);return Q&&(B.$L=Q),B},O.clone=function(){return H.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},j})(),xe=D.prototype;return J.prototype=xe,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach((function(j){xe[j[1]]=function(O){return this.$g(O,j[0],j[1])}})),J.extend=function(j,O){return j.$i||(j(O,D,J),j.$i=!0),J},J.locale=$,J.isDayjs=T,J.unix=function(j){return J(1e3*j)},J.en=N[k],J.Ls=N,J.p={},J}))});var p1=U((_d,Id)=>{(function(e,t){typeof _d=="object"&&typeof Id<"u"?Id.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(_d,(function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}}))});var x1=U((FMe,g1)=>{"use strict";g1.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(t){return this.cachedIndexVersion!==t.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(t,r){this.cachedIndexVersion=t.childrenVersion,this.cachedIndex=r}}});var b1=U((NMe,y1)=>{"use strict";y1.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var T1=U((LMe,k1)=>{"use strict";var w1=Symbol(),v1=Symbol(),eo=Symbol(),S1=Symbol(),Or=class{constructor(t,r,n,o){this[w1]=t,this[v1]=r,this[eo]=n,this[S1]=o}next(){let t=this[w1],r=this[S1],n=this[v1];if(!this[eo])return{done:!0,value:n};let o=this[eo];return r===1?this[eo]=t._node(o).previousSibling:r===2?this[eo]=t._node(o).nextSibling:r===3?this[eo]=t._node(o).parent:r===4?this[eo]=t.preceding(o,{root:n}):this[eo]=t.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(Or.prototype,Symbol.iterator,{value:function(){return this},writable:!1}),Or.PREV=1,Or.NEXT=2,Or.PARENT=3,Or.PRECEDING=4,Or.FOLLOWING=5,Object.freeze(Or),Object.freeze(Or.prototype),k1.exports=Or});var ip=U((RMe,E1)=>{"use strict";var iB=x1(),to=b1(),xr=T1();function zd(){return!0}function Os(e,t){return e[e.length-1-t]}var op=class{constructor(t){this.symbol=Symbol(t||"SymbolTree data")}initialize(t){return this._node(t),t}_node(t){if(!t)return null;let r=t[this.symbol];return r||(t[this.symbol]=new iB)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let r,n=t;for(;r=this._node(n).lastChild;)n=r;return n}preceding(t,r){let n=r&&r.root;if(t===n)return null;let o=this._node(t).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(t).parent}following(t,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(t).firstChild;if(i)return i;let s=t;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(t,r){let n=r&&r.array||[],o=r&&r.filter||zd,i=r&&r.thisArg||void 0,s=this._node(t),a=s.firstChild,l=0;for(;a;){let u=this._node(a);u.setCachedIndex(s,l),o.call(i,a)&&n.push(a),a=u.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||zd,i=r&&r.thisArg||void 0,s=t;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||zd,i=r&&r.thisArg||void 0,s=t;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,o=this._node(t);return new xr(this,t,n?o.lastChild:o.firstChild,n?xr.PREV:xr.NEXT)}previousSiblingsIterator(t){return new xr(this,t,this._node(t).previousSibling,xr.PREV)}nextSiblingsIterator(t){return new xr(this,t,this._node(t).nextSibling,xr.NEXT)}ancestorsIterator(t){return new xr(this,t,t,xr.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new xr(this,t,n?this.lastInclusiveDescendant(t):t,n?xr.PRECEDING:xr.FOLLOWING)}index(t){let r=this._node(t),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===t)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=t,o}childrenCount(t){let r=this._node(t);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(t,r){if(t===r)return 0;let n=[];{let c=t;for(;c;){if(c===r)return to.CONTAINS|to.PRECEDING;n.push(c),c=this.parent(c)}}let o=[];{let c=r;for(;c;){if(c===t)return to.CONTAINED_BY|to.FOLLOWING;o.push(c),c=this.parent(c)}}let i=Os(n,0);if(!i||i!==Os(o,0))return to.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let c=0;c<a;++c){let f=Os(n,c),p=Os(o,c);if(f!==p)break;s=c}let l=this.index(Os(n,s+1));return this.index(Os(o,s+1))<l?to.PRECEDING:to.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(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(),t}insertBefore(t,r){let n=this._node(t),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=t,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),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=t,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),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=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),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=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};E1.exports=op,op.TreePosition=to});var L1=U((_s,Is)=>{(function(e){var t=typeof _s=="object"&&_s&&!_s.nodeType&&_s,r=typeof Is=="object"&&Is&&!Is.nodeType&&Is,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(e=n);var o,i=2147483647,s=36,a=1,l=26,u=38,c=700,f=72,p=128,h="-",m=/^xn--/,d=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,y={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,k=Math.floor,N=String.fromCharCode,R;function T(F){throw new RangeError(y[F])}function $(F,W){for(var x=F.length,ee=[];x--;)ee[x]=W(F[x]);return ee}function J(F,W){var x=F.split("@"),ee="";x.length>1&&(ee=x[0]+"@",F=x[1]),F=F.replace(g,".");var se=F.split("."),w=$(se,W).join(".");return ee+w}function H(F){for(var W=[],x=0,ee=F.length,se,w;x<ee;)se=F.charCodeAt(x++),se>=55296&&se<=56319&&x<ee?(w=F.charCodeAt(x++),(w&64512)==56320?W.push(((se&1023)<<10)+(w&1023)+65536):(W.push(se),x--)):W.push(se);return W}function D(F){return $(F,function(W){var x="";return W>65535&&(W-=65536,x+=N(W>>>10&1023|55296),W=56320|W&1023),x+=N(W),x}).join("")}function xe(F){return F-48<10?F-22:F-65<26?F-65:F-97<26?F-97:s}function j(F,W){return F+22+75*(F<26)-((W!=0)<<5)}function O(F,W,x){var ee=0;for(F=x?k(F/c):F>>1,F+=k(F/W);F>S*l>>1;ee+=s)F=k(F/S);return k(ee+(S+1)*F/(F+u))}function M(F){var W=[],x=F.length,ee,se=0,w=p,he=f,Se,Re,A,v,E,C,I,Z,ke;for(Se=F.lastIndexOf(h),Se<0&&(Se=0),Re=0;Re<Se;++Re)F.charCodeAt(Re)>=128&&T("not-basic"),W.push(F.charCodeAt(Re));for(A=Se>0?Se+1:0;A<x;){for(v=se,E=1,C=s;A>=x&&T("invalid-input"),I=xe(F.charCodeAt(A++)),(I>=s||I>k((i-se)/E))&&T("overflow"),se+=I*E,Z=C<=he?a:C>=he+l?l:C-he,!(I<Z);C+=s)ke=s-Z,E>k(i/ke)&&T("overflow"),E*=ke;ee=W.length+1,he=O(se-v,ee,v==0),k(se/ee)>i-w&&T("overflow"),w+=k(se/ee),se%=ee,W.splice(se++,0,w)}return D(W)}function P(F){var W,x,ee,se,w,he,Se,Re,A,v,E,C=[],I,Z,ke,Ae;for(F=H(F),I=F.length,W=p,x=0,w=f,he=0;he<I;++he)E=F[he],E<128&&C.push(N(E));for(ee=se=C.length,se&&C.push(h);ee<I;){for(Se=i,he=0;he<I;++he)E=F[he],E>=W&&E<Se&&(Se=E);for(Z=ee+1,Se-W>k((i-x)/Z)&&T("overflow"),x+=(Se-W)*Z,W=Se,he=0;he<I;++he)if(E=F[he],E<W&&++x>i&&T("overflow"),E==W){for(Re=x,A=s;v=A<=w?a:A>=w+l?l:A-w,!(Re<v);A+=s)Ae=Re-v,ke=s-v,C.push(N(j(v+Ae%ke,0))),Re=k(Ae/ke);C.push(N(j(Re,0))),w=O(x,Z,ee==se),x=0,++ee}++x,++W}return C.join("")}function B(F){return J(F,function(W){return m.test(W)?M(W.slice(4).toLowerCase()):W})}function Q(F){return J(F,function(W){return d.test(W)?"xn--"+P(W):W})}if(o={version:"1.4.1",ucs2:{decode:H,encode:D},decode:M,encode:P,toASCII:Q,toUnicode:B},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return o});else if(t&&r)if(Is.exports==t)r.exports=o;else for(R in o)o.hasOwnProperty(R)&&(t[R]=o[R]);else e.punycode=o})(_s)});var Ko=U((N_e,R1)=>{"use strict";R1.exports=TypeError});var B1=U(()=>{});var vl=U((B_e,oT)=>{var Xd=typeof Map=="function"&&Map.prototype,Zd=Object.getOwnPropertyDescriptor&&Xd?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ap=Xd&&Zd&&typeof Zd.get=="function"?Zd.get:null,$1=Xd&&Map.prototype.forEach,Kd=typeof Set=="function"&&Set.prototype,eg=Object.getOwnPropertyDescriptor&&Kd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,lp=Kd&&eg&&typeof eg.get=="function"?eg.get:null,U1=Kd&&Set.prototype.forEach,NB=typeof WeakMap=="function"&&WeakMap.prototype,yl=NB?WeakMap.prototype.has:null,LB=typeof WeakSet=="function"&&WeakSet.prototype,bl=LB?WeakSet.prototype.has:null,RB=typeof WeakRef=="function"&&WeakRef.prototype,z1=RB?WeakRef.prototype.deref:null,BB=Boolean.prototype.valueOf,$B=Object.prototype.toString,UB=Function.prototype.toString,zB=String.prototype.match,tg=String.prototype.slice,io=String.prototype.replace,jB=String.prototype.toUpperCase,j1=String.prototype.toLowerCase,q1=RegExp.prototype.test,H1=Array.prototype.concat,Jr=Array.prototype.join,qB=Array.prototype.slice,W1=Math.floor,rg=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ng=Object.getOwnPropertySymbols,og=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Mt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ps||!0)?Symbol.toStringTag:null,Y1=Object.prototype.propertyIsEnumerable,V1=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function G1(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||q1.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-W1(-e):W1(e);if(n!==e){var o=String(n),i=tg.call(t,o.length+1);return io.call(o,r,"$&_")+"."+io.call(io.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return io.call(t,r,"$&_")}var ig=B1(),Q1=ig.custom,J1=eT(Q1)?Q1:null,X1={__proto__:null,double:'"',single:"'"},HB={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};oT.exports=function e(t,r,n,o){var i=r||{};if(Sn(i,"quoteStyle")&&!Sn(X1,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Sn(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=Sn(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(Sn(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(Sn(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return rT(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?G1(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?G1(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return sg(t)?"[Array]":"[Object]";var f=l$(i,n);if(typeof o>"u")o=[];else if(tT(o,t)>=0)return"[Circular]";function p(O,M,P){if(M&&(o=qB.call(o),o.push(M)),P){var B={depth:i.depth};return Sn(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(O,B,n+1,o)}return e(O,i,n+1,o)}if(typeof t=="function"&&!K1(t)){var h=KB(t),m=up(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Jr.call(m,", ")+" }":"")}if(eT(t)){var d=Ps?io.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):og.call(t);return typeof t=="object"&&!Ps?wl(d):d}if(i$(t)){for(var g="<"+j1.call(String(t.nodeName)),y=t.attributes||[],S=0;S<y.length;S++)g+=" "+y[S].name+"="+Z1(WB(y[S].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+j1.call(String(t.nodeName))+">",g}if(sg(t)){if(t.length===0)return"[]";var k=up(t,p);return f&&!a$(k)?"["+lg(k,f)+"]":"[ "+Jr.call(k,", ")+" ]"}if(VB(t)){var N=up(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Y1.call(t,"cause")?"{ ["+String(t)+"] "+Jr.call(H1.call("[cause]: "+p(t.cause),N),", ")+" }":N.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Jr.call(N,", ")+" }"}if(typeof t=="object"&&s){if(J1&&typeof t[J1]=="function"&&ig)return ig(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(e$(t)){var R=[];return $1&&$1.call(t,function(O,M){R.push(p(M,t,!0)+" => "+p(O,t))}),nT("Map",ap.call(t),R,f)}if(n$(t)){var T=[];return U1&&U1.call(t,function(O){T.push(p(O,t))}),nT("Set",lp.call(t),T,f)}if(t$(t))return ag("WeakMap");if(o$(t))return ag("WeakSet");if(r$(t))return ag("WeakRef");if(QB(t))return wl(p(Number(t)));if(XB(t))return wl(p(rg.call(t)));if(JB(t))return wl(BB.call(t));if(GB(t))return wl(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!YB(t)&&!K1(t)){var $=up(t,p),J=V1?V1(t)===Object.prototype:t instanceof Object||t.constructor===Object,H=t instanceof Object?"":"null prototype",D=!J&&Mt&&Object(t)===t&&Mt in t?tg.call(so(t),8,-1):H?"Object":"",xe=J||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=xe+(D||H?"["+Jr.call(H1.call([],D||[],H||[]),": ")+"] ":"");return $.length===0?j+"{}":f?j+"{"+lg($,f)+"}":j+"{ "+Jr.call($,", ")+" }"}return String(t)};function Z1(e,t,r){var n=r.quoteStyle||t,o=X1[n];return o+e+o}function WB(e){return io.call(String(e),/"/g,"&quot;")}function sg(e){return so(e)==="[object Array]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function YB(e){return so(e)==="[object Date]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function K1(e){return so(e)==="[object RegExp]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function VB(e){return so(e)==="[object Error]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function GB(e){return so(e)==="[object String]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function QB(e){return so(e)==="[object Number]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function JB(e){return so(e)==="[object Boolean]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function eT(e){if(Ps)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!og)return!1;try{return og.call(e),!0}catch{}return!1}function XB(e){if(!e||typeof e!="object"||!rg)return!1;try{return rg.call(e),!0}catch{}return!1}var ZB=Object.prototype.hasOwnProperty||function(e){return e in this};function Sn(e,t){return ZB.call(e,t)}function so(e){return $B.call(e)}function KB(e){if(e.name)return e.name;var t=zB.call(UB.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function tT(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function e$(e){if(!ap||!e||typeof e!="object")return!1;try{ap.call(e);try{lp.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function t$(e){if(!yl||!e||typeof e!="object")return!1;try{yl.call(e,yl);try{bl.call(e,bl)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function r$(e){if(!z1||!e||typeof e!="object")return!1;try{return z1.call(e),!0}catch{}return!1}function n$(e){if(!lp||!e||typeof e!="object")return!1;try{lp.call(e);try{ap.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function o$(e){if(!bl||!e||typeof e!="object")return!1;try{bl.call(e,bl);try{yl.call(e,yl)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function i$(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function rT(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return rT(tg.call(e,0,t.maxStringLength),t)+n}var o=HB[t.quoteStyle||"single"];o.lastIndex=0;var i=io.call(io.call(e,o,"\\$1"),/[\x00-\x1f]/g,s$);return Z1(i,"single",t)}function s$(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+jB.call(t.toString(16))}function wl(e){return"Object("+e+")"}function ag(e){return e+" { ? }"}function nT(e,t,r,n){var o=n?lg(r,n):Jr.call(r,", ");return e+" ("+t+") {"+o+"}"}function a$(e){for(var t=0;t<e.length;t++)if(tT(e[t],`
2
+ `)>=0)return!1;return!0}function l$(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Jr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Jr.call(Array(t+1),r)}}function lg(e,t){if(e.length===0)return"";var r=`
3
+ `+t.prev+t.base;return r+Jr.call(e,","+r)+`
4
+ `+t.prev}function up(e,t){var r=sg(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Sn(e,o)?t(e[o],e):""}var i=typeof ng=="function"?ng(e):[],s;if(Ps){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var l in e)Sn(e,l)&&(r&&String(Number(l))===l&&l<e.length||Ps&&s["$"+l]instanceof Symbol||(q1.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof ng=="function")for(var u=0;u<i.length;u++)Y1.call(e,i[u])&&n.push("["+t(i[u])+"]: "+t(e[i[u]],e));return n}});var sT=U(($_e,iT)=>{"use strict";var u$=vl(),c$=Ko(),cp=function(e,t,r){for(var n=e,o;(o=n.next)!=null;n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},f$=function(e,t){if(e){var r=cp(e,t);return r&&r.value}},p$=function(e,t,r){var n=cp(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},h$=function(e,t){return e?!!cp(e,t):!1},m$=function(e,t){if(e)return cp(e,t,!0)};iT.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new c$("Side channel does not contain "+u$(n))},delete:function(n){var o=t&&t.next,i=m$(t,n);return i&&o&&o===i&&(t=void 0),!!i},get:function(n){return f$(t,n)},has:function(n){return h$(t,n)},set:function(n,o){t||(t={next:void 0}),p$(t,n,o)}};return r}});var ug=U((U_e,aT)=>{"use strict";aT.exports=Object});var uT=U((z_e,lT)=>{"use strict";lT.exports=Error});var fT=U((j_e,cT)=>{"use strict";cT.exports=EvalError});var hT=U((q_e,pT)=>{"use strict";pT.exports=RangeError});var dT=U((H_e,mT)=>{"use strict";mT.exports=ReferenceError});var xT=U((W_e,gT)=>{"use strict";gT.exports=SyntaxError});var bT=U((Y_e,yT)=>{"use strict";yT.exports=URIError});var vT=U((V_e,wT)=>{"use strict";wT.exports=Math.abs});var kT=U((G_e,ST)=>{"use strict";ST.exports=Math.floor});var ET=U((Q_e,TT)=>{"use strict";TT.exports=Math.max});var DT=U((J_e,AT)=>{"use strict";AT.exports=Math.min});var OT=U((X_e,CT)=>{"use strict";CT.exports=Math.pow});var _T=U((Z_e,MT)=>{"use strict";MT.exports=Math.round});var PT=U((K_e,IT)=>{"use strict";IT.exports=Number.isNaN||function(t){return t!==t}});var NT=U((eIe,FT)=>{"use strict";var d$=PT();FT.exports=function(t){return d$(t)||t===0?t:t<0?-1:1}});var RT=U((tIe,LT)=>{"use strict";LT.exports=Object.getOwnPropertyDescriptor});var cg=U((rIe,BT)=>{"use strict";var fp=RT();if(fp)try{fp([],"length")}catch{fp=null}BT.exports=fp});var UT=U((nIe,$T)=>{"use strict";var pp=Object.defineProperty||!1;if(pp)try{pp({},"a",{value:1})}catch{pp=!1}$T.exports=pp});var jT=U((oIe,zT)=>{"use strict";zT.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},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;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var WT=U((iIe,HT)=>{"use strict";var qT=typeof Symbol<"u"&&Symbol,g$=jT();HT.exports=function(){return typeof qT!="function"||typeof Symbol!="function"||typeof qT("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:g$()}});var fg=U((sIe,YT)=>{"use strict";YT.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var pg=U((aIe,VT)=>{"use strict";var x$=ug();VT.exports=x$.getPrototypeOf||null});var JT=U((lIe,QT)=>{"use strict";var y$="Function.prototype.bind called on incompatible ",b$=Object.prototype.toString,w$=Math.max,v$="[object Function]",GT=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},S$=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},k$=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};QT.exports=function(t){var r=this;if(typeof r!="function"||b$.apply(r)!==v$)throw new TypeError(y$+r);for(var n=S$(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,GT(n,arguments));return Object(c)===c?c:this}return r.apply(t,GT(n,arguments))},s=w$(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(o=Function("binder","return function ("+k$(a,",")+"){ 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 Sl=U((uIe,XT)=>{"use strict";var T$=JT();XT.exports=Function.prototype.bind||T$});var hp=U((cIe,ZT)=>{"use strict";ZT.exports=Function.prototype.call});var hg=U((fIe,KT)=>{"use strict";KT.exports=Function.prototype.apply});var tE=U((pIe,eE)=>{"use strict";eE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var nE=U((hIe,rE)=>{"use strict";var E$=Sl(),A$=hg(),D$=hp(),C$=tE();rE.exports=C$||E$.call(D$,A$)});var mg=U((mIe,oE)=>{"use strict";var O$=Sl(),M$=Ko(),_$=hp(),I$=nE();oE.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new M$("a function is required");return I$(O$,_$,t)}});var cE=U((dIe,uE)=>{"use strict";var P$=mg(),iE=cg(),sE;try{sE=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var dg=!!sE&&iE&&iE(Object.prototype,"__proto__"),aE=Object,lE=aE.getPrototypeOf;uE.exports=dg&&typeof dg.get=="function"?P$([dg.get]):typeof lE=="function"?function(t){return lE(t==null?t:aE(t))}:!1});var dE=U((gIe,mE)=>{"use strict";var fE=fg(),pE=pg(),hE=cE();mE.exports=fE?function(t){return fE(t)}:pE?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return pE(t)}:hE?function(t){return hE(t)}:null});var xE=U((xIe,gE)=>{"use strict";var F$=Function.prototype.call,N$=Object.prototype.hasOwnProperty,L$=Sl();gE.exports=L$.call(F$,N$)});var gp=U((yIe,kE)=>{"use strict";var we,R$=ug(),B$=uT(),$$=fT(),U$=hT(),z$=dT(),Fs=xT(),Ns=Ko(),j$=bT(),q$=vT(),H$=kT(),W$=ET(),Y$=DT(),V$=OT(),G$=_T(),Q$=NT(),yE=Function,gg=function(e){try{return yE('"use strict"; return ('+e+").constructor;")()}catch{}},kl=cg(),J$=UT(),xg=function(){throw new Ns},X$=kl?(function(){try{return arguments.callee,xg}catch{try{return kl(arguments,"callee").get}catch{return xg}}})():xg,Ls=WT()(),dt=dE(),Z$=pg(),K$=fg(),bE=hg(),Tl=hp(),Rs={},eU=typeof Uint8Array>"u"||!dt?we:dt(Uint8Array),ei={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":Ls&&dt?dt([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":Rs,"%AsyncGenerator%":Rs,"%AsyncGeneratorFunction%":Rs,"%AsyncIteratorPrototype%":Rs,"%Atomics%":typeof Atomics>"u"?we:Atomics,"%BigInt%":typeof BigInt>"u"?we:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?we:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?we:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":B$,"%eval%":eval,"%EvalError%":$$,"%Float32Array%":typeof Float32Array>"u"?we:Float32Array,"%Float64Array%":typeof Float64Array>"u"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?we:FinalizationRegistry,"%Function%":yE,"%GeneratorFunction%":Rs,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ls&&dt?dt(dt([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ls||!dt?we:dt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":R$,"%Object.getOwnPropertyDescriptor%":kl,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?we:Promise,"%Proxy%":typeof Proxy>"u"?we:Proxy,"%RangeError%":U$,"%ReferenceError%":z$,"%Reflect%":typeof Reflect>"u"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?we:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ls||!dt?we:dt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ls&&dt?dt(""[Symbol.iterator]()):we,"%Symbol%":Ls?Symbol:we,"%SyntaxError%":Fs,"%ThrowTypeError%":X$,"%TypedArray%":eU,"%TypeError%":Ns,"%Uint8Array%":typeof Uint8Array>"u"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?we:Uint32Array,"%URIError%":j$,"%WeakMap%":typeof WeakMap>"u"?we:WeakMap,"%WeakRef%":typeof WeakRef>"u"?we:WeakRef,"%WeakSet%":typeof WeakSet>"u"?we:WeakSet,"%Function.prototype.call%":Tl,"%Function.prototype.apply%":bE,"%Object.defineProperty%":J$,"%Object.getPrototypeOf%":Z$,"%Math.abs%":q$,"%Math.floor%":H$,"%Math.max%":W$,"%Math.min%":Y$,"%Math.pow%":V$,"%Math.round%":G$,"%Math.sign%":Q$,"%Reflect.getPrototypeOf%":K$};if(dt)try{null.error}catch(e){wE=dt(dt(e)),ei["%Error.prototype%"]=wE}var tU=function e(t){var r;if(t==="%AsyncFunction%")r=gg("async function () {}");else if(t==="%GeneratorFunction%")r=gg("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=gg("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&dt&&(r=dt(o.prototype))}return ei[t]=r,r},vE={__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"]},El=Sl(),mp=xE(),rU=El.call(Tl,Array.prototype.concat),nU=El.call(bE,Array.prototype.splice),SE=El.call(Tl,String.prototype.replace),dp=El.call(Tl,String.prototype.slice),oU=El.call(Tl,RegExp.prototype.exec),iU=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sU=/\\(\\)?/g,aU=function(t){var r=dp(t,0,1),n=dp(t,-1);if(r==="%"&&n!=="%")throw new Fs("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Fs("invalid intrinsic syntax, expected opening `%`");var o=[];return SE(t,iU,function(i,s,a,l){o[o.length]=a?SE(l,sU,"$1"):s||i}),o},lU=function(t,r){var n=t,o;if(mp(vE,n)&&(o=vE[n],n="%"+o[0]+"%"),mp(ei,n)){var i=ei[n];if(i===Rs&&(i=tU(n)),typeof i>"u"&&!r)throw new Ns("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Fs("intrinsic "+t+" does not exist!")};kE.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Ns("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ns('"allowMissing" argument must be a boolean');if(oU(/^%?[^%]*%?$/,t)===null)throw new Fs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=aU(t),o=n.length>0?n[0]:"",i=lU("%"+o+"%",r),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],nU(n,rU([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=dp(p,0,1),m=dp(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new Fs("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),o+="."+p,s="%"+o+"%",mp(ei,s))a=ei[s];else if(a!=null){if(!(p in a)){if(!r)throw new Ns("base intrinsic for "+t+" exists, but the property is not available.");return}if(kl&&c+1>=n.length){var d=kl(a,p);f=!!d,f&&"get"in d&&!("originalValue"in d.get)?a=d.get:a=a[p]}else f=mp(a,p),a=a[p];f&&!l&&(ei[s]=a)}}return a};var wE});var yg=U((bIe,AE)=>{"use strict";var TE=gp(),EE=mg(),uU=EE([TE("%String.prototype.indexOf%")]);AE.exports=function(t,r){var n=TE(t,!!r);return typeof n=="function"&&uU(t,".prototype.")>-1?EE([n]):n}});var bg=U((wIe,CE)=>{"use strict";var cU=gp(),Al=yg(),fU=vl(),pU=Ko(),DE=cU("%Map%",!0),hU=Al("Map.prototype.get",!0),mU=Al("Map.prototype.set",!0),dU=Al("Map.prototype.has",!0),gU=Al("Map.prototype.delete",!0),xU=Al("Map.prototype.size",!0);CE.exports=!!DE&&function(){var t,r={assert:function(n){if(!r.has(n))throw new pU("Side channel does not contain "+fU(n))},delete:function(n){if(t){var o=gU(t,n);return xU(t)===0&&(t=void 0),o}return!1},get:function(n){if(t)return hU(t,n)},has:function(n){return t?dU(t,n):!1},set:function(n,o){t||(t=new DE),mU(t,n,o)}};return r}});var ME=U((vIe,OE)=>{"use strict";var yU=gp(),xp=yg(),bU=vl(),yp=bg(),wU=Ko(),Bs=yU("%WeakMap%",!0),vU=xp("WeakMap.prototype.get",!0),SU=xp("WeakMap.prototype.set",!0),kU=xp("WeakMap.prototype.has",!0),TU=xp("WeakMap.prototype.delete",!0);OE.exports=Bs?function(){var t,r,n={assert:function(o){if(!n.has(o))throw new wU("Side channel does not contain "+bU(o))},delete:function(o){if(Bs&&o&&(typeof o=="object"||typeof o=="function")){if(t)return TU(t,o)}else if(yp&&r)return r.delete(o);return!1},get:function(o){return Bs&&o&&(typeof o=="object"||typeof o=="function")&&t?vU(t,o):r&&r.get(o)},has:function(o){return Bs&&o&&(typeof o=="object"||typeof o=="function")&&t?kU(t,o):!!r&&r.has(o)},set:function(o,i){Bs&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Bs),SU(t,o,i)):yp&&(r||(r=yp()),r.set(o,i))}};return n}:yp});var IE=U((SIe,_E)=>{"use strict";var EU=Ko(),AU=vl(),DU=sT(),CU=bg(),OU=ME(),MU=OU||CU||DU;_E.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new EU("Side channel does not contain "+AU(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,o){t||(t=MU()),t.set(n,o)}};return r}});var bp=U((kIe,PE)=>{"use strict";var _U=String.prototype.replace,IU=/%20/g,wg={RFC1738:"RFC1738",RFC3986:"RFC3986"};PE.exports={default:wg.RFC3986,formatters:{RFC1738:function(e){return _U.call(e,IU,"+")},RFC3986:function(e){return String(e)}},RFC1738:wg.RFC1738,RFC3986:wg.RFC3986}});var kg=U((TIe,NE)=>{"use strict";var PU=bp(),vg=Object.prototype.hasOwnProperty,ti=Array.isArray,Xr=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),FU=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(ti(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},FE=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},NU=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(ti(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!vg.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return ti(t)&&!ti(r)&&(o=FE(t,n)),ti(t)&&ti(r)?(r.forEach(function(i,s){if(vg.call(t,s)){var a=t[s];a&&typeof a=="object"&&i&&typeof i=="object"?t[s]=e(a,i,n):t.push(i)}else t[s]=i}),t):Object.keys(r).reduce(function(i,s){var a=r[s];return vg.call(i,s)?i[s]=e(i[s],a,n):i[s]=a,i},o)},LU=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},RU=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Sg=1024,BU=function(t,r,n,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=Sg){for(var u=s.length>=Sg?s.slice(l,l+Sg):s,c=[],f=0;f<u.length;++f){var p=u.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===PU.RFC1738&&(p===40||p===41)){c[c.length]=u.charAt(f);continue}if(p<128){c[c.length]=Xr[p];continue}if(p<2048){c[c.length]=Xr[192|p>>6]+Xr[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=Xr[224|p>>12]+Xr[128|p>>6&63]+Xr[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=Xr[240|p>>18]+Xr[128|p>>12&63]+Xr[128|p>>6&63]+Xr[128|p&63]}a+=c.join("")}return a},$U=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var u=a[l],c=s[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:u}),n.push(c))}return FU(r),t},UU=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},zU=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},jU=function(t,r){return[].concat(t,r)},qU=function(t,r){if(ti(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)};NE.exports={arrayToObject:FE,assign:LU,combine:jU,compact:$U,decode:RU,encode:BU,isBuffer:zU,isRegExp:UU,maybeMap:qU,merge:NU}});var zE=U((EIe,UE)=>{"use strict";var LE=IE(),wp=kg(),Dl=bp(),HU=Object.prototype.hasOwnProperty,RE={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Zr=Array.isArray,WU=Array.prototype.push,BE=function(e,t){WU.apply(e,Zr(t)?t:[t])},YU=Date.prototype.toISOString,$E=Dl.default,at={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:wp.encode,encodeValuesOnly:!1,filter:void 0,format:$E,formatter:Dl.formatters[$E],indices:!1,serializeDate:function(t){return YU.call(t)},skipNulls:!1,strictNullHandling:!1},VU=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Tg={},GU=function e(t,r,n,o,i,s,a,l,u,c,f,p,h,m,d,g,y,S){for(var k=t,N=S,R=0,T=!1;(N=N.get(Tg))!==void 0&&!T;){var $=N.get(t);if(R+=1,typeof $<"u"){if($===R)throw new RangeError("Cyclic object value");T=!0}typeof N.get(Tg)>"u"&&(R=0)}if(typeof c=="function"?k=c(r,k):k instanceof Date?k=h(k):n==="comma"&&Zr(k)&&(k=wp.maybeMap(k,function(x){return x instanceof Date?h(x):x})),k===null){if(s)return u&&!g?u(r,at.encoder,y,"key",m):r;k=""}if(VU(k)||wp.isBuffer(k)){if(u){var J=g?r:u(r,at.encoder,y,"key",m);return[d(J)+"="+d(u(k,at.encoder,y,"value",m))]}return[d(r)+"="+d(String(k))]}var H=[];if(typeof k>"u")return H;var D;if(n==="comma"&&Zr(k))g&&u&&(k=wp.maybeMap(k,u)),D=[{value:k.length>0?k.join(",")||null:void 0}];else if(Zr(c))D=c;else{var xe=Object.keys(k);D=f?xe.sort(f):xe}var j=l?String(r).replace(/\./g,"%2E"):String(r),O=o&&Zr(k)&&k.length===1?j+"[]":j;if(i&&Zr(k)&&k.length===0)return O+"[]";for(var M=0;M<D.length;++M){var P=D[M],B=typeof P=="object"&&P&&typeof P.value<"u"?P.value:k[P];if(!(a&&B===null)){var Q=p&&l?String(P).replace(/\./g,"%2E"):String(P),F=Zr(k)?typeof n=="function"?n(O,Q):O:O+(p?"."+Q:"["+Q+"]");S.set(t,R);var W=LE();W.set(Tg,S),BE(H,e(B,F,n,o,i,s,a,l,n==="comma"&&g&&Zr(k)?null:u,c,f,p,h,m,d,g,y,W))}}return H},QU=function(t){if(!t)return at;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||at.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Dl.default;if(typeof t.format<"u"){if(!HU.call(Dl.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var o=Dl.formatters[n],i=at.filter;(typeof t.filter=="function"||Zr(t.filter))&&(i=t.filter);var s;if(t.arrayFormat in RE?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=at.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:at.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:at.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:at.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:at.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?at.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:at.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:at.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:at.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:at.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:at.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:at.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:at.strictNullHandling}};UE.exports=function(e,t){var r=e,n=QU(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Zr(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a=RE[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=LE(),c=0;c<o.length;++c){var f=o[c],p=r[f];n.skipNulls&&p===null||BE(s,GU(p,f,a,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var h=s.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),h.length>0?m+h:""}});var HE=U((AIe,qE)=>{"use strict";var $s=kg(),Eg=Object.prototype.hasOwnProperty,JU=Array.isArray,We={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:$s.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},XU=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},jE=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},ZU="utf8=%26%2310003%3B",KU="utf8=%E2%9C%93",ez=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===KU?u="utf-8":s[l]===ZU&&(u="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var c=s[l],f=c.indexOf("]="),p=f===-1?c.indexOf("="):f+1,h,m;p===-1?(h=r.decoder(c,We.decoder,u,"key"),m=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,p),We.decoder,u,"key"),m=$s.maybeMap(jE(c.slice(p+1),r),function(g){return r.decoder(g,We.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=XU(String(m))),c.indexOf("[]=")>-1&&(m=JU(m)?[m]:m);var d=Eg.call(n,h);d&&r.duplicates==="combine"?n[h]=$s.combine(n[h],m):(!d||r.duplicates==="last")&&(n[h]=m)}return n},tz=function(e,t,r,n){for(var o=n?t:jE(t,r),i=e.length-1;i>=0;--i){var s,a=e[i];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:[].concat(o);else{s=r.plainObjects?{__proto__:null}:{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},rz=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(i),u=l?i.slice(0,l.index):i,c=[];if(u){if(!n.plainObjects&&Eg.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Eg.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+i.slice(l.index)+"]")}return tz(c,r,n,o)}},nz=function(t){if(!t)return We;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?We.charset:t.charset,n=typeof t.duplicates>"u"?We.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:We.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:We.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:We.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:We.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:We.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:We.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:We.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:We.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:We.decoder,delimiter:typeof t.delimiter=="string"||$s.isRegExp(t.delimiter)?t.delimiter:We.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:We.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:We.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:We.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:We.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:We.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:We.strictNullHandling}};qE.exports=function(e,t){var r=nz(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?ez(e,r):e,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],l=rz(a,n[a],r,typeof e=="string");o=$s.merge(o,l,r)}return r.allowSparse===!0?o:$s.compact(o)}});var YE=U((DIe,WE)=>{"use strict";var oz=zE(),iz=HE(),sz=bp();WE.exports={formats:sz,parse:iz,stringify:oz}});var JE=U(zs=>{"use strict";var az=L1();function yr(){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 lz=/^([a-z0-9.+-]+:)/i,uz=/:[0-9]*$/,cz=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,fz=["<",">",'"',"`"," ","\r",`
5
+ `," "],pz=["{","}","|","\\","^","`"].concat(fz),Ag=["'"].concat(pz),VE=["%","/","?",";","#"].concat(Ag),GE=["/","?","#"],hz=255,QE=/^[+a-z0-9A-Z_-]{0,63}$/,mz=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dz={javascript:!0,"javascript:":!0},Dg={javascript:!0,"javascript:":!0},Us={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Cg=YE();function Cl(e,t,r){if(e&&typeof e=="object"&&e instanceof yr)return e;var n=new yr;return n.parse(e,t,r),n}yr.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=n!==-1&&n<e.indexOf("#")?"?":"#",i=e.split(o),s=/\\/g;i[0]=i[0].replace(s,"/"),e=i.join(o);var a=e;if(a=a.trim(),!r&&e.split("#").length===1){var l=cz.exec(a);if(l)return this.path=a,this.href=a,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Cg.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=lz.exec(a);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(u&&Dg[u])&&(a=a.substr(2),this.slashes=!0)}if(!Dg[u]&&(f||u&&!Us[u])){for(var p=-1,h=0;h<GE.length;h++){var m=a.indexOf(GE[h]);m!==-1&&(p===-1||m<p)&&(p=m)}var d,g;p===-1?g=a.lastIndexOf("@"):g=a.lastIndexOf("@",p),g!==-1&&(d=a.slice(0,g),a=a.slice(g+1),this.auth=decodeURIComponent(d)),p=-1;for(var h=0;h<VE.length;h++){var m=a.indexOf(VE[h]);m!==-1&&(p===-1||m<p)&&(p=m)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var S=this.hostname.split(/\./),h=0,k=S.length;h<k;h++){var N=S[h];if(N&&!N.match(QE)){for(var R="",T=0,$=N.length;T<$;T++)N.charCodeAt(T)>127?R+="x":R+=N[T];if(!R.match(QE)){var J=S.slice(0,h),H=S.slice(h+1),D=N.match(mz);D&&(J.push(D[1]),H.unshift(D[2])),H.length&&(a="/"+H.join(".")+a),this.hostname=J.join(".");break}}}this.hostname.length>hz?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=az.toASCII(this.hostname));var xe=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+xe,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!dz[c])for(var h=0,k=Ag.length;h<k;h++){var O=Ag[h];if(a.indexOf(O)!==-1){var M=encodeURIComponent(O);M===O&&(M=escape(O)),a=a.split(O).join(M)}}var P=a.indexOf("#");P!==-1&&(this.hash=a.substr(P),a=a.slice(0,P));var B=a.indexOf("?");if(B!==-1?(this.search=a.substr(B),this.query=a.substr(B+1),t&&(this.query=Cg.parse(this.query)),a=a.slice(0,B)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Us[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var xe=this.pathname||"",Q=this.search||"";this.path=xe+Q}return this.href=this.format(),this};function gz(e){return typeof e=="string"&&(e=Cl(e)),e instanceof yr?e.format():yr.prototype.format.call(e)}yr.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(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=Cg.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Us[t])&&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"),t+o+r+s+n};function xz(e,t){return Cl(e,!1,!0).resolve(t)}yr.prototype.resolve=function(e){return this.resolveObject(Cl(e,!1,!0)).format()};function yz(e,t){return e?Cl(e,!1,!0).resolveObject(t):t}yr.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new yr;t.parse(e,!1,!0),e=t}for(var r=new yr,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var l=s[a];l!=="protocol"&&(r[l]=e[l])}return Us[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Us[e.protocol]){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!Dg[e.protocol]){for(var k=(e.pathname||"").split("/");k.length&&!(e.host=k.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),k[0]!==""&&k.unshift(""),k.length<2&&k.unshift(""),r.pathname=k.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",h=r.search||"";r.path=p+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",d=e.host||e.pathname&&e.pathname.charAt(0)==="/",g=d||m||r.host&&e.pathname,y=g,S=r.pathname&&r.pathname.split("/")||[],k=e.pathname&&e.pathname.split("/")||[],N=r.protocol&&!Us[r.protocol];if(N&&(r.hostname="",r.port=null,r.host&&(S[0]===""?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(k[0]===""?k[0]=e.host:k.unshift(e.host)),e.host=null),g=g&&(k[0]===""||S[0]==="")),d)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=k;else if(k.length)S||(S=[]),S.pop(),S=S.concat(k),r.search=e.search,r.query=e.query;else if(e.search!=null){if(N){r.host=S.shift(),r.hostname=r.host;var R=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;R&&(r.auth=R.shift(),r.hostname=R.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.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 T=S.slice(-1)[0],$=(r.host||e.host||S.length>1)&&(T==="."||T==="..")||T==="",J=0,H=S.length;H>=0;H--)T=S[H],T==="."?S.splice(H,1):T===".."?(S.splice(H,1),J++):J&&(S.splice(H,1),J--);if(!g&&!y)for(;J--;J)S.unshift("..");g&&S[0]!==""&&(!S[0]||S[0].charAt(0)!=="/")&&S.unshift(""),$&&S.join("/").substr(-1)!=="/"&&S.push("");var D=S[0]===""||S[0]&&S[0].charAt(0)==="/";if(N){r.hostname=D?"":S.length?S.shift():"",r.host=r.hostname;var R=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;R&&(r.auth=R.shift(),r.hostname=R.shift(),r.host=r.hostname)}return g=g||r.host&&S.length,g&&!D&&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=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},yr.prototype.parseHost=function(){var e=this.host,t=uz.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},zs.parse=Cl,zs.resolve=xz,zs.resolveObject=yz,zs.format=gz,zs.Url=yr});var cA=U((MIe,uA)=>{"use strict";uA.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var hA=U((IIe,pA)=>{"use strict";pA.exports=function(t){var r=typeof t;if(r==="string"||t instanceof String){if(!t.trim())return!1}else if(r!=="number"&&!(t instanceof Number))return!1;return t-t+1>=0}});var gA=U((PIe,dA)=>{var Az=Object.prototype.toString;dA.exports=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return _z(t)?"generatorfunction":"function";if(Dz(t))return"array";if(Fz(t))return"buffer";if(Pz(t))return"arguments";if(Oz(t))return"date";if(Cz(t))return"error";if(Mz(t))return"regexp";switch(mA(t)){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(Iz(t))return"generator";switch(r=Az.call(t),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 mA(e){return typeof e.constructor=="function"?e.constructor.name:null}function Dz(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Cz(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Oz(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Mz(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function _z(e,t){return mA(e)==="GeneratorFunction"}function Iz(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function Pz(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function Fz(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var yA=U((FIe,xA)=>{xA.exports=(function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,n=r&&typeof r.getRandomValues=="function",o=t&&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 vA=U((NIe,Bg)=>{"use strict";var Nz=hA(),bA=gA(),wA=yA();Bg.exports=Lz,Bg.exports.isCrypto=!!wA.cryptographic;var Kr={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};Kr.all=Kr.lower+Kr.upper+Kr.number+Kr.special;function Lz(e,t,r){if(typeof e>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof e=="string"?t=e.length:Nz(e)&&(r={},t=e,e="*")),bA(t)==="object"&&t.hasOwnProperty("chars")&&(r=t,e=r.chars,t=e.length,n=!0);var o=r||{},i="",s="";if(e.indexOf("?")!==-1&&(i+=o.chars),e.indexOf("a")!==-1&&(i+=Kr.lower),e.indexOf("A")!==-1&&(i+=Kr.upper),e.indexOf("0")!==-1&&(i+=Kr.number),e.indexOf("!")!==-1&&(i+=Kr.special),e.indexOf("*")!==-1&&(i+=Kr.all),n&&(i+=e),o.exclude){var a=bA(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(;t--;)s+=i.charAt(parseInt(wA()*i.length,10));return s}});var nx=U((Nl,Gs)=>{var Gz=200,TA="__lodash_hash_undefined__",EA=9007199254740991,qg="[object Arguments]",Qz="[object Array]",AA="[object Boolean]",DA="[object Date]",Jz="[object Error]",Hg="[object Function]",CA="[object GeneratorFunction]",Np="[object Map]",OA="[object Number]",Wg="[object Object]",MA="[object Promise]",_A="[object RegExp]",Lp="[object Set]",IA="[object String]",PA="[object Symbol]",Yg="[object WeakMap]",FA="[object ArrayBuffer]",Rp="[object DataView]",NA="[object Float32Array]",LA="[object Float64Array]",RA="[object Int8Array]",BA="[object Int16Array]",$A="[object Int32Array]",UA="[object Uint8Array]",zA="[object Uint8ClampedArray]",jA="[object Uint16Array]",qA="[object Uint32Array]",Xz=/[\\^$.*+?()[\]{}|]/g,Zz=/\w*$/,Kz=/^\[object .+?Constructor\]$/,e3=/^(?:0|[1-9]\d*)$/,Le={};Le[qg]=Le[Qz]=Le[FA]=Le[Rp]=Le[AA]=Le[DA]=Le[NA]=Le[LA]=Le[RA]=Le[BA]=Le[$A]=Le[Np]=Le[OA]=Le[Wg]=Le[_A]=Le[Lp]=Le[IA]=Le[PA]=Le[UA]=Le[zA]=Le[jA]=Le[qA]=!0,Le[Jz]=Le[Hg]=Le[Yg]=!1;var t3=typeof global=="object"&&global&&global.Object===Object&&global,r3=typeof self=="object"&&self&&self.Object===Object&&self,kn=t3||r3||Function("return this")(),HA=typeof Nl=="object"&&Nl&&!Nl.nodeType&&Nl,WA=HA&&typeof Gs=="object"&&Gs&&!Gs.nodeType&&Gs,n3=WA&&WA.exports===HA;function o3(e,t){return e.set(t[0],t[1]),e}function i3(e,t){return e.add(t),e}function s3(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function a3(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function YA(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function l3(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function u3(e,t){return e?.[t]}function VA(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function GA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Vg(e,t){return function(r){return e(t(r))}}function QA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var c3=Array.prototype,f3=Function.prototype,Bp=Object.prototype,Gg=kn["__core-js_shared__"],JA=(function(){var e=/[^.]+$/.exec(Gg&&Gg.keys&&Gg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),XA=f3.toString,lo=Bp.hasOwnProperty,$p=Bp.toString,p3=RegExp("^"+XA.call(lo).replace(Xz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ZA=n3?kn.Buffer:void 0,KA=kn.Symbol,eD=kn.Uint8Array,h3=Vg(Object.getPrototypeOf,Object),m3=Object.create,d3=Bp.propertyIsEnumerable,g3=c3.splice,tD=Object.getOwnPropertySymbols,x3=ZA?ZA.isBuffer:void 0,y3=Vg(Object.keys,Object),Qg=Vs(kn,"DataView"),Pl=Vs(kn,"Map"),Jg=Vs(kn,"Promise"),Xg=Vs(kn,"Set"),Zg=Vs(kn,"WeakMap"),Fl=Vs(Object,"create"),b3=ii(Qg),w3=ii(Pl),v3=ii(Jg),S3=ii(Xg),k3=ii(Zg),rD=KA?KA.prototype:void 0,nD=rD?rD.valueOf:void 0;function ni(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function T3(){this.__data__=Fl?Fl(null):{}}function E3(e){return this.has(e)&&delete this.__data__[e]}function A3(e){var t=this.__data__;if(Fl){var r=t[e];return r===TA?void 0:r}return lo.call(t,e)?t[e]:void 0}function D3(e){var t=this.__data__;return Fl?t[e]!==void 0:lo.call(t,e)}function C3(e,t){var r=this.__data__;return r[e]=Fl&&t===void 0?TA:t,this}ni.prototype.clear=T3,ni.prototype.delete=E3,ni.prototype.get=A3,ni.prototype.has=D3,ni.prototype.set=C3;function Tn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function O3(){this.__data__=[]}function M3(e){var t=this.__data__,r=Up(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():g3.call(t,r,1),!0}function _3(e){var t=this.__data__,r=Up(t,e);return r<0?void 0:t[r][1]}function I3(e){return Up(this.__data__,e)>-1}function P3(e,t){var r=this.__data__,n=Up(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Tn.prototype.clear=O3,Tn.prototype.delete=M3,Tn.prototype.get=_3,Tn.prototype.has=I3,Tn.prototype.set=P3;function Ws(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function F3(){this.__data__={hash:new ni,map:new(Pl||Tn),string:new ni}}function N3(e){return zp(this,e).delete(e)}function L3(e){return zp(this,e).get(e)}function R3(e){return zp(this,e).has(e)}function B3(e,t){return zp(this,e).set(e,t),this}Ws.prototype.clear=F3,Ws.prototype.delete=N3,Ws.prototype.get=L3,Ws.prototype.has=R3,Ws.prototype.set=B3;function Ys(e){this.__data__=new Tn(e)}function $3(){this.__data__=new Tn}function U3(e){return this.__data__.delete(e)}function z3(e){return this.__data__.get(e)}function j3(e){return this.__data__.has(e)}function q3(e,t){var r=this.__data__;if(r instanceof Tn){var n=r.__data__;if(!Pl||n.length<Gz-1)return n.push([e,t]),this;r=this.__data__=new Ws(n)}return r.set(e,t),this}Ys.prototype.clear=$3,Ys.prototype.delete=U3,Ys.prototype.get=z3,Ys.prototype.has=j3,Ys.prototype.set=q3;function H3(e,t){var r=tx(e)||mj(e)?l3(e.length,String):[],n=r.length,o=!!n;for(var i in e)(t||lo.call(e,i))&&!(o&&(i=="length"||cj(i,n)))&&r.push(i);return r}function oD(e,t,r){var n=e[t];(!(lo.call(e,t)&&lD(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Up(e,t){for(var r=e.length;r--;)if(lD(e[r][0],t))return r;return-1}function W3(e,t){return e&&iD(t,rx(t),e)}function Kg(e,t,r,n,o,i,s){var a;if(n&&(a=i?n(e,o,i,s):n(e)),a!==void 0)return a;if(!jp(e))return e;var l=tx(e);if(l){if(a=aj(e),!t)return oj(e,a)}else{var u=oi(e),c=u==Hg||u==CA;if(gj(e))return X3(e,t);if(u==Wg||u==qg||c&&!i){if(VA(e))return i?e:{};if(a=lj(c?{}:e),!t)return ij(e,W3(a,e))}else{if(!Le[u])return i?e:{};a=uj(e,u,Kg,t)}}s||(s=new Ys);var f=s.get(e);if(f)return f;if(s.set(e,a),!l)var p=r?sj(e):rx(e);return s3(p||e,function(h,m){p&&(m=h,h=e[m]),oD(a,m,Kg(h,t,r,n,m,e,s))}),a}function Y3(e){return jp(e)?m3(e):{}}function V3(e,t,r){var n=t(e);return tx(e)?n:a3(n,r(e))}function G3(e){return $p.call(e)}function Q3(e){if(!jp(e)||pj(e))return!1;var t=cD(e)||VA(e)?p3:Kz;return t.test(ii(e))}function J3(e){if(!aD(e))return y3(e);var t=[];for(var r in Object(e))lo.call(e,r)&&r!="constructor"&&t.push(r);return t}function X3(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function ex(e){var t=new e.constructor(e.byteLength);return new eD(t).set(new eD(e)),t}function Z3(e,t){var r=t?ex(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function K3(e,t,r){var n=t?r(GA(e),!0):GA(e);return YA(n,o3,new e.constructor)}function ej(e){var t=new e.constructor(e.source,Zz.exec(e));return t.lastIndex=e.lastIndex,t}function tj(e,t,r){var n=t?r(QA(e),!0):QA(e);return YA(n,i3,new e.constructor)}function rj(e){return nD?Object(nD.call(e)):{}}function nj(e,t){var r=t?ex(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function oj(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function iD(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=n?n(r[s],e[s],s,r,e):void 0;oD(r,s,a===void 0?e[s]:a)}return r}function ij(e,t){return iD(e,sD(e),t)}function sj(e){return V3(e,rx,sD)}function zp(e,t){var r=e.__data__;return fj(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Vs(e,t){var r=u3(e,t);return Q3(r)?r:void 0}var sD=tD?Vg(tD,Object):bj,oi=G3;(Qg&&oi(new Qg(new ArrayBuffer(1)))!=Rp||Pl&&oi(new Pl)!=Np||Jg&&oi(Jg.resolve())!=MA||Xg&&oi(new Xg)!=Lp||Zg&&oi(new Zg)!=Yg)&&(oi=function(e){var t=$p.call(e),r=t==Wg?e.constructor:void 0,n=r?ii(r):void 0;if(n)switch(n){case b3:return Rp;case w3:return Np;case v3:return MA;case S3:return Lp;case k3:return Yg}return t});function aj(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&lo.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function lj(e){return typeof e.constructor=="function"&&!aD(e)?Y3(h3(e)):{}}function uj(e,t,r,n){var o=e.constructor;switch(t){case FA:return ex(e);case AA:case DA:return new o(+e);case Rp:return Z3(e,n);case NA:case LA:case RA:case BA:case $A:case UA:case zA:case jA:case qA:return nj(e,n);case Np:return K3(e,n,r);case OA:case IA:return new o(e);case _A:return ej(e);case Lp:return tj(e,n,r);case PA:return rj(e)}}function cj(e,t){return t=t??EA,!!t&&(typeof e=="number"||e3.test(e))&&e>-1&&e%1==0&&e<t}function fj(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pj(e){return!!JA&&JA in e}function aD(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bp;return e===r}function ii(e){if(e!=null){try{return XA.call(e)}catch{}try{return e+""}catch{}}return""}function hj(e){return Kg(e,!0,!0)}function lD(e,t){return e===t||e!==e&&t!==t}function mj(e){return dj(e)&&lo.call(e,"callee")&&(!d3.call(e,"callee")||$p.call(e)==qg)}var tx=Array.isArray;function uD(e){return e!=null&&xj(e.length)&&!cD(e)}function dj(e){return yj(e)&&uD(e)}var gj=x3||wj;function cD(e){var t=jp(e)?$p.call(e):"";return t==Hg||t==CA}function xj(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=EA}function jp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yj(e){return!!e&&typeof e=="object"}function rx(e){return uD(e)?H3(e):J3(e)}function bj(){return[]}function wj(){return!1}Gs.exports=hj});var ox=U((JIe,fD)=>{"use strict";fD.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&(function(i){return function(s){return function(a,l){var u={key:a,value:s[a]},c={key:l,value:s[l]};return i(u,c)}}})(t.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,l;if(Array.isArray(s)){for(l="[",a=0;a<s.length;a++)a&&(l+=","),l+=i(s[a])||"null";return l+"]"}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,c=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<c.length;a++){var f=c[a],p=i(s[f]);p&&(l&&(l+=","),l+=JSON.stringify(f)+":"+p)}return o.splice(u,1),"{"+l+"}"}})(e)}});var fi=U((FFe,ci)=>{"use strict";function nC(e){return typeof e>"u"||e===null}function gq(e){return typeof e=="object"&&e!==null}function xq(e){return Array.isArray(e)?e:nC(e)?[]:[e]}function yq(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}function bq(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function wq(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}ci.exports.isNothing=nC,ci.exports.isObject=gq,ci.exports.toArray=xq,ci.exports.repeat=bq,ci.exports.isNegativeZero=wq,ci.exports.extend=yq});var Ks=U((NFe,oC)=>{"use strict";function Wl(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Wl.prototype=Object.create(Error.prototype),Wl.prototype.constructor=Wl,Wl.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},oC.exports=Wl});var aC=U((LFe,sC)=>{"use strict";var iC=fi();function Rx(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}Rx.prototype.getSnippet=function(t,r){var n,o,i,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
6
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(o-1))===-1;)if(o-=1,this.position-o>r/2-1){n=" ... ",o+=5;break}for(i="",s=this.position;s<this.buffer.length&&`\0\r
7
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){i=" ... ",s-=5;break}return a=this.buffer.slice(o,s),iC.repeat(" ",t)+n+a+i+`
8
+ `+iC.repeat(" ",t+this.position-o+n.length)+"^"},Rx.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
9
+ `+r)),n},sC.exports=Rx});var ut=U((RFe,uC)=>{"use strict";var lC=Ks(),vq=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Sq=["scalar","sequence","mapping"];function kq(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function Tq(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(vq.indexOf(r)===-1)throw new lC('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=kq(t.styleAliases||null),Sq.indexOf(this.kind)===-1)throw new lC('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}uC.exports=Tq});var pi=U((BFe,fC)=>{"use strict";var cC=fi(),ah=Ks(),Eq=ut();function Bx(e,t,r){var n=[];return e.include.forEach(function(o){r=Bx(o,t,r)}),e[t].forEach(function(o){r.forEach(function(i,s){i.tag===o.tag&&i.kind===o.kind&&n.push(s)}),r.push(o)}),r.filter(function(o,i){return n.indexOf(i)===-1})}function Aq(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(o){e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function ea(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new ah("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Bx(this,"implicit",[]),this.compiledExplicit=Bx(this,"explicit",[]),this.compiledTypeMap=Aq(this.compiledImplicit,this.compiledExplicit)}ea.DEFAULT=null,ea.create=function(){var t,r;switch(arguments.length){case 1:t=ea.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new ah("Wrong number of arguments for Schema.create function")}if(t=cC.toArray(t),r=cC.toArray(r),!t.every(function(n){return n instanceof ea}))throw new ah("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof Eq}))throw new ah("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ea({include:t,explicit:r})},fC.exports=ea});var hC=U(($Fe,pC)=>{"use strict";var Dq=ut();pC.exports=new Dq("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var dC=U((UFe,mC)=>{"use strict";var Cq=ut();mC.exports=new Cq("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var xC=U((zFe,gC)=>{"use strict";var Oq=ut();gC.exports=new Oq("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var lh=U((jFe,yC)=>{"use strict";var Mq=pi();yC.exports=new Mq({explicit:[hC(),dC(),xC()]})});var wC=U((qFe,bC)=>{"use strict";var _q=ut();function Iq(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Pq(){return null}function Fq(e){return e===null}bC.exports=new _q("tag:yaml.org,2002:null",{kind:"scalar",resolve:Iq,construct:Pq,predicate:Fq,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var SC=U((HFe,vC)=>{"use strict";var Nq=ut();function Lq(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Rq(e){return e==="true"||e==="True"||e==="TRUE"}function Bq(e){return Object.prototype.toString.call(e)==="[object Boolean]"}vC.exports=new Nq("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Lq,construct:Rq,predicate:Bq,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var TC=U((WFe,kC)=>{"use strict";var $q=fi(),Uq=ut();function zq(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function jq(e){return 48<=e&&e<=55}function qq(e){return 48<=e&&e<=57}function Hq(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!zq(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}for(;r<t;r++)if(o=e[r],o!=="_"){if(!jq(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="_")return!1;for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!qq(e.charCodeAt(r)))return!1;n=!0}return!n||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function Wq(e){var t=e,r=1,n,o,i=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){i.unshift(parseInt(s,10))}),t=0,o=1,i.forEach(function(s){t+=s*o,o*=60}),r*t):r*parseInt(t,10)}function Yq(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!$q.isNegativeZero(e)}kC.exports=new Uq("tag:yaml.org,2002:int",{kind:"scalar",resolve:Hq,construct:Wq,predicate:Yq,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var DC=U((YFe,AC)=>{"use strict";var EC=fi(),Vq=ut(),Gq=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Qq(e){return!(e===null||!Gq.test(e)||e[e.length-1]==="_")}function Jq(e){var t,r,n,o;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(i){o.unshift(parseFloat(i,10))}),t=0,n=1,o.forEach(function(i){t+=i*n,n*=60}),r*t):r*parseFloat(t,10)}var Xq=/^[-+]?[0-9]+e/;function Zq(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(EC.isNegativeZero(e))return"-0.0";return r=e.toString(10),Xq.test(r)?r.replace("e",".e"):r}function Kq(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||EC.isNegativeZero(e))}AC.exports=new Vq("tag:yaml.org,2002:float",{kind:"scalar",resolve:Qq,construct:Jq,predicate:Kq,represent:Zq,defaultStyle:"lowercase"})});var $x=U((VFe,CC)=>{"use strict";var eH=pi();CC.exports=new eH({include:[lh()],implicit:[wC(),SC(),TC(),DC()]})});var Ux=U((GFe,OC)=>{"use strict";var tH=pi();OC.exports=new tH({include:[$x()]})});var PC=U((QFe,IC)=>{"use strict";var rH=ut(),MC=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_C=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function nH(e){return e===null?!1:MC.exec(e)!==null||_C.exec(e)!==null}function oH(e){var t,r,n,o,i,s,a,l=0,u=null,c,f,p;if(t=MC.exec(e),t===null&&(t=_C.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],f=+(t[11]||0),u=(c*60+f)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(r,n,o,i,s,a,l)),u&&p.setTime(p.getTime()-u),p}function iH(e){return e.toISOString()}IC.exports=new rH("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nH,construct:oH,instanceOf:Date,represent:iH})});var NC=U((JFe,FC)=>{"use strict";var sH=ut();function aH(e){return e==="<<"||e===null}FC.exports=new sH("tag:yaml.org,2002:merge",{kind:"scalar",resolve:aH})});var BC=U((XFe,RC)=>{"use strict";var hi;try{LC=Nu,hi=LC("buffer").Buffer}catch{}var lH=ut(),zx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
10
+ \r`;function uH(e){if(e===null)return!1;var t,r,n=0,o=e.length,i=zx;for(r=0;r<o;r++)if(t=i.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function cH(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=zx,s=0,a=[];for(t=0;t<o;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|i.indexOf(n.charAt(t));return r=o%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),hi?hi.from?hi.from(a):new hi(a):a}function fH(e){var t="",r=0,n,o,i=e.length,s=zx;for(n=0;n<i;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return o=i%3,o===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):o===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):o===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function pH(e){return hi&&hi.isBuffer(e)}RC.exports=new lH("tag:yaml.org,2002:binary",{kind:"scalar",resolve:uH,construct:cH,predicate:pH,represent:fH});var LC});var UC=U((KFe,$C)=>{"use strict";var hH=ut(),mH=Object.prototype.hasOwnProperty,dH=Object.prototype.toString;function gH(e){if(e===null)return!0;var t=[],r,n,o,i,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(o=a[r],s=!1,dH.call(o)!=="[object Object]")return!1;for(i in o)if(mH.call(o,i))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function xH(e){return e!==null?e:[]}$C.exports=new hH("tag:yaml.org,2002:omap",{kind:"sequence",resolve:gH,construct:xH})});var jC=U((eNe,zC)=>{"use strict";var yH=ut(),bH=Object.prototype.toString;function wH(e){if(e===null)return!0;var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],bH.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;i[t]=[o[0],n[o[0]]]}return!0}function vH(e){if(e===null)return[];var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],o=Object.keys(n),i[t]=[o[0],n[o[0]]];return i}zC.exports=new yH("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:wH,construct:vH})});var HC=U((tNe,qC)=>{"use strict";var SH=ut(),kH=Object.prototype.hasOwnProperty;function TH(e){if(e===null)return!0;var t,r=e;for(t in r)if(kH.call(r,t)&&r[t]!==null)return!1;return!0}function EH(e){return e!==null?e:{}}qC.exports=new SH("tag:yaml.org,2002:set",{kind:"mapping",resolve:TH,construct:EH})});var ta=U((rNe,WC)=>{"use strict";var AH=pi();WC.exports=new AH({include:[Ux()],implicit:[PC(),NC()],explicit:[BC(),UC(),jC(),HC()]})});var VC=U((nNe,YC)=>{"use strict";var DH=ut();function CH(){return!0}function OH(){}function MH(){return""}function _H(e){return typeof e>"u"}YC.exports=new DH("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:CH,construct:OH,predicate:_H,represent:MH})});var QC=U((oNe,GC)=>{"use strict";var IH=ut();function PH(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function FH(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function NH(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function LH(e){return Object.prototype.toString.call(e)==="[object RegExp]"}GC.exports=new IH("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:PH,construct:FH,predicate:LH,represent:NH})});var ZC=U((iNe,XC)=>{"use strict";var uh;try{JC=Nu,uh=JC("esprima")}catch{typeof window<"u"&&(uh=window.esprima)}var RH=ut();function BH(e){if(e===null)return!1;try{var t="("+e+")",r=uh.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function $H(e){var t="("+e+")",r=uh.parse(t,{range:!0}),n=[],o;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(i){n.push(i.name)}),o=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(o[0]+1,o[1]-1)):new Function(n,"return "+t.slice(o[0],o[1]))}function UH(e){return e.toString()}function zH(e){return Object.prototype.toString.call(e)==="[object Function]"}XC.exports=new RH("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:BH,construct:$H,predicate:zH,represent:UH});var JC});var Yl=U((aNe,eO)=>{"use strict";var KC=pi();eO.exports=KC.DEFAULT=new KC({include:[ta()],explicit:[VC(),QC(),ZC()]})});var bO=U((lNe,Vl)=>{"use strict";var Dn=fi(),tO=Ks(),jH=aC(),rO=ta(),qH=Yl(),co=Object.prototype.hasOwnProperty,ch=1,nO=2,oO=3,fh=4,jx=1,HH=2,iO=3,WH=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,YH=/[\x85\u2028\u2029]/,VH=/[,\[\]\{\}]/,sO=/^(?:!|!!|![a-z\-]+!)$/i,aO=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function lO(e){return Object.prototype.toString.call(e)}function nn(e){return e===10||e===13}function mi(e){return e===9||e===32}function Xt(e){return e===9||e===32||e===10||e===13}function ra(e){return e===44||e===91||e===93||e===123||e===125}function GH(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function QH(e){return e===120?2:e===117?4:e===85?8:0}function JH(e){return 48<=e&&e<=57?e-48:-1}function uO(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
11
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function XH(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var cO=new Array(256),fO=new Array(256);for(di=0;di<256;di++)cO[di]=uO(di)?1:0,fO[di]=uO(di);function ZH(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||qH,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function pO(e,t){return new tO(t,new jH(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function le(e,t){throw pO(e,t)}function ph(e,t){e.onWarning&&e.onWarning.call(null,pO(e,t))}var hO={YAML:function(t,r,n){var o,i,s;t.version!==null&&le(t,"duplication of %YAML directive"),n.length!==1&&le(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&le(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&le(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&ph(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var o,i;n.length!==2&&le(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],sO.test(o)||le(t,"ill-formed tag handle (first argument) of the TAG directive"),co.call(t.tagMap,o)&&le(t,'there is a previously declared suffix for "'+o+'" tag handle'),aO.test(i)||le(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function fo(e,t,r,n){var o,i,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(o=0,i=a.length;o<i;o+=1)s=a.charCodeAt(o),s===9||32<=s&&s<=1114111||le(e,"expected valid JSON character");else WH.test(a)&&le(e,"the stream contains non-printable characters");e.result+=a}}function mO(e,t,r,n){var o,i,s,a;for(Dn.isObject(r)||le(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),s=0,a=o.length;s<a;s+=1)i=o[s],co.call(t,i)||(t[i]=r[i],n[i]=!0)}function na(e,t,r,n,o,i,s,a){var l,u;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),l=0,u=o.length;l<u;l+=1)Array.isArray(o[l])&&le(e,"nested arrays are not supported inside keys"),typeof o=="object"&&lO(o[l])==="[object Object]"&&(o[l]="[object Object]");if(typeof o=="object"&&lO(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)mO(e,t,i[l],r);else mO(e,t,i,r);else!e.json&&!co.call(r,o)&&co.call(t,o)&&(e.line=s||e.line,e.position=a||e.position,le(e,"duplicated mapping key")),t[o]=i,delete r[o];return t}function qx(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):le(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function nt(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;mi(o);)o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(nn(o))for(qx(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ph(e,"deficient indentation"),n}function hh(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Xt(r)))}function Hx(e,t){t===1?e.result+=" ":t>1&&(e.result+=Dn.repeat(`
12
+ `,t-1))}function KH(e,t,r){var n,o,i,s,a,l,u,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),Xt(h)||ra(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(o=e.input.charCodeAt(e.position+1),Xt(o)||r&&ra(o)))return!1;for(e.kind="scalar",e.result="",i=s=e.position,a=!1;h!==0;){if(h===58){if(o=e.input.charCodeAt(e.position+1),Xt(o)||r&&ra(o))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Xt(n))break}else{if(e.position===e.lineStart&&hh(e)||r&&ra(h))break;if(nn(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,nt(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(fo(e,i,s,!1),Hx(e,e.line-l),i=s=e.position,a=!1),mi(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return fo(e,i,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function e4(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(fo(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,o=e.position;else return!0;else nn(r)?(fo(e,n,o,!0),Hx(e,nt(e,!1,t)),n=o=e.position):e.position===e.lineStart&&hh(e)?le(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);le(e,"unexpected end of the stream within a single quoted scalar")}function t4(e,t){var r,n,o,i,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return fo(e,r,e.position,!0),e.position++,!0;if(a===92){if(fo(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),nn(a))nt(e,!1,t);else if(a<256&&cO[a])e.result+=fO[a],e.position++;else if((s=QH(a))>0){for(o=s,i=0;o>0;o--)a=e.input.charCodeAt(++e.position),(s=GH(a))>=0?i=(i<<4)+s:le(e,"expected hexadecimal character");e.result+=XH(i),e.position++}else le(e,"unknown escape sequence");r=n=e.position}else nn(a)?(fo(e,r,n,!0),Hx(e,nt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&hh(e)?le(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}le(e,"unexpected end of the stream within a double quoted scalar")}function r4(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,l,u,c,f,p={},h,m,d,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,f=!1,i=[];else if(g===123)l=125,f=!0,i={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),g=e.input.charCodeAt(++e.position);g!==0;){if(nt(e,!0,t),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=o,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=i,!0;r||le(e,"missed comma between flow collection entries"),m=h=d=null,u=c=!1,g===63&&(a=e.input.charCodeAt(e.position+1),Xt(a)&&(u=c=!0,e.position++,nt(e,!0,t))),n=e.line,oa(e,t,ch,!1,!0),m=e.tag,h=e.result,nt(e,!0,t),g=e.input.charCodeAt(e.position),(c||e.line===n)&&g===58&&(u=!0,g=e.input.charCodeAt(++e.position),nt(e,!0,t),oa(e,t,ch,!1,!0),d=e.result),f?na(e,i,p,m,h,d):u?i.push(na(e,null,p,m,h,d)):i.push(h),nt(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}le(e,"unexpected end of the stream within a flow collection")}function n4(e,t){var r,n,o=jx,i=!1,s=!1,a=t,l=0,u=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)jx===o?o=f===43?iO:HH:le(e,"repeat of a chomping mode identifier");else if((c=JH(f))>=0)c===0?le(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?le(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(mi(f)){do f=e.input.charCodeAt(++e.position);while(mi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!nn(f)&&f!==0)}for(;f!==0;){for(qx(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),nn(f)){l++;continue}if(e.lineIndent<a){o===iO?e.result+=Dn.repeat(`
13
+ `,i?1+l:l):o===jx&&i&&(e.result+=`
14
+ `);break}for(n?mi(f)?(u=!0,e.result+=Dn.repeat(`
15
+ `,i?1+l:l)):u?(u=!1,e.result+=Dn.repeat(`
16
+ `,l+1)):l===0?i&&(e.result+=" "):e.result+=Dn.repeat(`
17
+ `,l):e.result+=Dn.repeat(`
18
+ `,i?1+l:l),i=!0,s=!0,l=0,r=e.position;!nn(f)&&f!==0;)f=e.input.charCodeAt(++e.position);fo(e,r,e.position,!1)}return!0}function dO(e,t){var r,n=e.tag,o=e.anchor,i=[],s,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!Xt(s)));){if(a=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t){i.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,oa(e,t,oO,!1,!0),i.push(e.result),nt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)le(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=i,!0):!1}function o4(e,t,r){var n,o,i,s,a=e.tag,l=e.anchor,u={},c={},f=null,p=null,h=null,m=!1,d=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,s=e.position,(g===63||g===58)&&Xt(n))g===63?(m&&(na(e,u,c,f,p,null),f=p=h=null),d=!0,m=!0,o=!0):m?(m=!1,o=!0):le(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else if(oa(e,r,nO,!1,!0))if(e.line===i){for(g=e.input.charCodeAt(e.position);mi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Xt(g)||le(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(na(e,u,c,f,p,null),f=p=h=null),d=!0,m=!1,o=!1,f=e.tag,p=e.result;else if(d)le(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(d)le(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===i||e.lineIndent>t)&&(oa(e,t,fh,!0,o)&&(m?p=e.result:h=e.result),m||(na(e,u,c,f,p,h,i,s),f=p=h=null),nt(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)le(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&na(e,u,c,f,p,null),d&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=u),d}function i4(e){var t,r=!1,n=!1,o,i,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&le(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,o="!!",s=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(i=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):le(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Xt(s);)s===33&&(n?le(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),sO.test(o)||le(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),VH.test(i)&&le(e,"tag suffix cannot contain flow indicator characters")}return i&&!aO.test(i)&&le(e,"tag name cannot contain such characters: "+i),r?e.tag=i:co.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:le(e,'undeclared tag handle "'+o+'"'),!0}function s4(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&le(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Xt(r)&&!ra(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&le(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function a4(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Xt(n)&&!ra(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&le(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),co.call(e.anchorMap,r)||le(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],nt(e,!0,-1),!0}function oa(e,t,r,n,o){var i,s,a,l=1,u=!1,c=!1,f,p,h,m,d;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=fh===r||oO===r,n&&nt(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;i4(e)||s4(e);)nt(e,!0,-1)?(u=!0,a=i,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||o),(l===1||fh===r)&&(ch===r||nO===r?m=t:m=t+1,d=e.position-e.lineStart,l===1?a&&(dO(e,d)||o4(e,d,m))||r4(e,m)?c=!0:(s&&n4(e,m)||e4(e,m)||t4(e,m)?c=!0:a4(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&le(e,"alias node should not have any properties")):KH(e,m,ch===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&dO(e,d))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&le(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else co.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&le(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):le(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):le(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function l4(e){var t=e.position,r,n,o,i=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(nt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(i=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Xt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&le(e,"directive name must not be less than one character in length");s!==0;){for(;mi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!nn(s));break}if(nn(s))break;for(r=e.position;s!==0&&!Xt(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&qx(e),co.call(hO,n)?hO[n](e,n,o):ph(e,'unknown document directive "'+n+'"')}if(nt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,nt(e,!0,-1)):i&&le(e,"directives end mark is expected"),oa(e,e.lineIndent-1,fh,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&YH.test(e.input.slice(t,e.position))&&ph(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&hh(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,nt(e,!0,-1));return}if(e.position<e.length-1)le(e,"end of the stream or a document separator is expected");else return}function gO(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
19
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new ZH(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,le(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)l4(r);return r.documents}function xO(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=gO(e,r);if(typeof t!="function")return n;for(var o=0,i=n.length;o<i;o+=1)t(n[o])}function yO(e,t){var r=gO(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new tO("expected a single document in the stream, but found more")}}function u4(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),xO(e,t,Dn.extend({schema:rO},r))}function c4(e,t){return yO(e,Dn.extend({schema:rO},t))}Vl.exports.loadAll=xO,Vl.exports.load=yO,Vl.exports.safeLoadAll=u4,Vl.exports.safeLoad=c4;var di});var jO=U((uNe,Gx)=>{"use strict";var Gl=fi(),Ql=Ks(),f4=Yl(),p4=ta(),wO=Object.prototype.toString,vO=Object.prototype.hasOwnProperty,h4=9,Jl=10,m4=13,d4=32,g4=33,x4=34,SO=35,y4=37,b4=38,w4=39,v4=42,kO=44,S4=45,TO=58,k4=61,T4=62,E4=63,A4=64,EO=91,AO=93,D4=96,DO=123,C4=124,CO=125,_t={};_t[0]="\\0",_t[7]="\\a",_t[8]="\\b",_t[9]="\\t",_t[10]="\\n",_t[11]="\\v",_t[12]="\\f",_t[13]="\\r",_t[27]="\\e",_t[34]='\\"',_t[92]="\\\\",_t[133]="\\N",_t[160]="\\_",_t[8232]="\\L",_t[8233]="\\P";var O4=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function M4(e,t){var r,n,o,i,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),o=0,i=n.length;o<i;o+=1)s=n[o],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&vO.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function OO(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Ql("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Gl.repeat("0",n-t.length)+t}function _4(e){this.schema=e.schema||f4,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Gl.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=M4(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function MO(e,t){for(var r=Gl.repeat(" ",t),n=0,o=-1,i="",s,a=e.length;n<a;)o=e.indexOf(`
20
+ `,n),o===-1?(s=e.slice(n),n=a):(s=e.slice(n,o+1),n=o+1),s.length&&s!==`
21
+ `&&(i+=r),i+=s;return i}function Wx(e,t){return`
22
+ `+Gl.repeat(" ",e.indent*t)}function I4(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}function Yx(e){return e===d4||e===h4}function ia(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function P4(e){return ia(e)&&!Yx(e)&&e!==65279&&e!==m4&&e!==Jl}function _O(e,t){return ia(e)&&e!==65279&&e!==kO&&e!==EO&&e!==AO&&e!==DO&&e!==CO&&e!==TO&&(e!==SO||t&&P4(t))}function F4(e){return ia(e)&&e!==65279&&!Yx(e)&&e!==S4&&e!==E4&&e!==TO&&e!==kO&&e!==EO&&e!==AO&&e!==DO&&e!==CO&&e!==SO&&e!==b4&&e!==v4&&e!==g4&&e!==C4&&e!==k4&&e!==T4&&e!==w4&&e!==x4&&e!==y4&&e!==A4&&e!==D4}function IO(e){var t=/^\n* /;return t.test(e)}var PO=1,FO=2,NO=3,LO=4,mh=5;function N4(e,t,r,n,o){var i,s,a,l=!1,u=!1,c=n!==-1,f=-1,p=F4(e.charCodeAt(0))&&!Yx(e.charCodeAt(e.length-1));if(t)for(i=0;i<e.length;i++){if(s=e.charCodeAt(i),!ia(s))return mh;a=i>0?e.charCodeAt(i-1):null,p=p&&_O(s,a)}else{for(i=0;i<e.length;i++){if(s=e.charCodeAt(i),s===Jl)l=!0,c&&(u=u||i-f-1>n&&e[f+1]!==" ",f=i);else if(!ia(s))return mh;a=i>0?e.charCodeAt(i-1):null,p=p&&_O(s,a)}u=u||c&&i-f-1>n&&e[f+1]!==" "}return!l&&!u?p&&!o(e)?PO:FO:r>9&&IO(e)?mh:u?LO:NO}function L4(e,t,r,n){e.dump=(function(){if(t.length===0)return"''";if(!e.noCompatMode&&O4.indexOf(t)!==-1)return"'"+t+"'";var o=e.indent*Math.max(1,r),i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=n||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return I4(e,l)}switch(N4(t,s,e.indent,i,a)){case PO:return t;case FO:return"'"+t.replace(/'/g,"''")+"'";case NO:return"|"+RO(t,e.indent)+BO(MO(t,o));case LO:return">"+RO(t,e.indent)+BO(MO(R4(t,i),o));case mh:return'"'+B4(t,i)+'"';default:throw new Ql("impossible error: invalid scalar style")}})()}function RO(e,t){var r=IO(e)?String(t):"",n=e[e.length-1]===`
23
+ `,o=n&&(e[e.length-2]===`
24
+ `||e===`
25
+ `),i=o?"+":n?"":"-";return r+i+`
26
+ `}function BO(e){return e[e.length-1]===`
27
+ `?e.slice(0,-1):e}function R4(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var u=e.indexOf(`
28
+ `);return u=u!==-1?u:e.length,r.lastIndex=u,$O(e.slice(0,u),t)})(),o=e[0]===`
29
+ `||e[0]===" ",i,s;s=r.exec(e);){var a=s[1],l=s[2];i=l[0]===" ",n+=a+(!o&&!i&&l!==""?`
30
+ `:"")+$O(l,t),o=i}return n}function $O(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,o=0,i,s=0,a=0,l="";n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,l+=`
31
+ `+e.slice(o,i),o=i+1),s=a;return l+=`
32
+ `,e.length-o>t&&s>o?l+=e.slice(o,s)+`
33
+ `+e.slice(s+1):l+=e.slice(o),l.slice(1)}function B4(e){for(var t="",r,n,o,i=0;i<e.length;i++){if(r=e.charCodeAt(i),r>=55296&&r<=56319&&(n=e.charCodeAt(i+1),n>=56320&&n<=57343)){t+=OO((r-55296)*1024+n-56320+65536),i++;continue}o=_t[r],t+=!o&&ia(r)?e[i]:o||OO(r)}return t}function $4(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)gi(e,t,r[i],!1,!1)&&(i!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function U4(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)gi(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=Wx(e,t)),e.dump&&Jl===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}function z4(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,l,u,c;for(s=0,a=i.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),l=i[s],u=r[l],gi(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),gi(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=o,e.dump="{"+n+"}"}function j4(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,l,u,c,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Ql("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Wx(e,t)),u=s[a],c=r[u],gi(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Jl===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Wx(e,t)),gi(e,t+1,c,!0,f)&&(e.dump&&Jl===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,o+=p));e.tag=i,e.dump=o||"{}"}function UO(e,t,r){var n,o,i,s,a,l;for(o=r?e.explicitTypes:e.implicitTypes,i=0,s=o.length;i<s;i+=1)if(a=o[i],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,wO.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(vO.call(a.represent,l))n=a.represent[l](t,l);else throw new Ql("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function gi(e,t,r,n,o,i){e.tag=null,e.dump=r,UO(e,r,!1)||UO(e,r,!0);var s=wO.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",l,u;if(a&&(l=e.duplicates.indexOf(r),u=l!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(o=!1),u&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&u&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(j4(e,t,e.dump,o),u&&(e.dump="&ref_"+l+e.dump)):(z4(e,t,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump));else if(s==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(U4(e,c,e.dump,o),u&&(e.dump="&ref_"+l+e.dump)):($4(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&L4(e,e.dump,t,i);else{if(e.skipInvalid)return!1;throw new Ql("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function q4(e,t){var r=[],n=[],o,i;for(Vx(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function Vx(e,t,r){var n,o,i;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)Vx(e[o],t,r);else for(n=Object.keys(e),o=0,i=n.length;o<i;o+=1)Vx(e[n[o]],t,r)}function zO(e,t){t=t||{};var r=new _4(t);return r.noRefs||q4(e,r),gi(r,0,e,!0,!0)?r.dump+`
34
+ `:""}function H4(e,t){return zO(e,Gl.extend({schema:p4},t))}Gx.exports.dump=zO,Gx.exports.safeDump=H4});var HO=U((cNe,Ye)=>{"use strict";var dh=bO(),qO=jO();function gh(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}Ye.exports.Type=ut(),Ye.exports.Schema=pi(),Ye.exports.FAILSAFE_SCHEMA=lh(),Ye.exports.JSON_SCHEMA=$x(),Ye.exports.CORE_SCHEMA=Ux(),Ye.exports.DEFAULT_SAFE_SCHEMA=ta(),Ye.exports.DEFAULT_FULL_SCHEMA=Yl(),Ye.exports.load=dh.load,Ye.exports.loadAll=dh.loadAll,Ye.exports.safeLoad=dh.safeLoad,Ye.exports.safeLoadAll=dh.safeLoadAll,Ye.exports.dump=qO.dump,Ye.exports.safeDump=qO.safeDump,Ye.exports.YAMLException=Ks(),Ye.exports.MINIMAL_SCHEMA=lh(),Ye.exports.SAFE_SCHEMA=ta(),Ye.exports.DEFAULT_SCHEMA=Yl(),Ye.exports.scan=gh("scan"),Ye.exports.parse=gh("parse"),Ye.exports.compose=gh("compose"),Ye.exports.addConstructor=gh("addConstructor")});var YO=U((fNe,WO)=>{"use strict";var W4=HO();WO.exports=W4});var VO=U(on=>{"use strict";var Y4=on&&on.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),V4=on&&on.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),G4=on&&on.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&Y4(t,e,r);return V4(t,e),t};Object.defineProperty(on,"__esModule",{value:!0}),on.jsYaml=void 0;var Q4=G4(YO());on.jsYaml=Q4});var QO=U(br=>{"use strict";var J4=br&&br.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),X4=br&&br.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Z4=br&&br.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&J4(t,e,r);return X4(t,e),t};Object.defineProperty(br,"__esModule",{value:!0}),br.objectToYamlString=br.yamlStringToObject=void 0;var GO=Z4(VO());br.yamlStringToObject=async(e,t={})=>GO.jsYaml.safeLoad(e),br.objectToYamlString=async(e,t={})=>GO.jsYaml.safeDump(e)});var oM=U((dNe,nM)=>{"use strict";var xh=Object.prototype.hasOwnProperty,JO=Object.prototype.toString,XO=Object.defineProperty,ZO=Object.getOwnPropertyDescriptor,KO=function(t){return typeof Array.isArray=="function"?Array.isArray(t):JO.call(t)==="[object Array]"},eM=function(t){if(!t||JO.call(t)!=="[object Object]")return!1;var r=xh.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&xh.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||xh.call(t,o)},tM=function(t,r){XO&&r.name==="__proto__"?XO(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},rM=function(t,r){if(r==="__proto__")if(xh.call(t,r)){if(ZO)return ZO(t,r).value}else return;return t[r]};nM.exports=function e(){var t,r,n,o,i,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=rM(a,r),o=rM(t,r),a!==o&&(c&&o&&(eM(o)||(i=KO(o)))?(i?(i=!1,s=n&&KO(n)?n:[]):s=n&&eM(n)?n:{},tM(a,{name:r,newValue:e(c,s,o)})):typeof o<"u"&&tM(a,{name:r,newValue:o}));return a}});var U_=U((ije,fb)=>{(function(){var e;typeof fb<"u"?e=fb.exports=n:e=(function(){return this||(0,eval)("this")})(),e.format=n,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}function r(o,i){return n.apply(null,[o].concat(i))}function n(o){for(var i=1,s=[].slice.call(arguments),a=0,l=o.length,u="",c,f=!1,p,h,m=!1,d,g=function(){return s[i++]},y=function(){for(var S="";/\d/.test(o[a]);)S+=o[a++],c=o[a];return S.length>0?parseInt(S):null};a<l;++a)if(c=o[a],f)switch(f=!1,c=="."?(m=!1,c=o[++a]):c=="0"&&o[a+1]=="."?(m=!0,a+=2,c=o[a]):m=!0,d=y(),c){case"b":u+=parseInt(g(),10).toString(2);break;case"c":p=g(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(g(),10);break;case"f":h=String(parseFloat(g()).toFixed(d||6)),u+=m?h:h.replace(/^0/,"");break;case"j":u+=JSON.stringify(g());break;case"o":u+="0"+parseInt(g(),10).toString(8);break;case"s":u+=g();break;case"x":u+="0x"+parseInt(g(),10).toString(16);break;case"X":u+="0x"+parseInt(g(),10).toString(16).toUpperCase();break;default:u+=c;break}else c==="%"?f=!0:u+=c;return u}})()});var wP=U(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.TokenData=void 0,Pn.parse=c0,Pn.compile=DV,Pn.match=OV,Pn.pathToRegexp=bP,Pn.stringify=IV;var s0="/",a0=e=>e,xP=/^[$_\p{ID_Start}]$/u,l0=/^[$\u200c\u200d\p{ID_Continue}]$/u,mm="https://git.new/pathToRegexpError",TV={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function EV(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function cn(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*AV(e){let t=[...e],r=0;function n(){let o="";if(xP.test(t[++r]))for(o+=t[r];l0.test(t[++r]);)o+=t[r];else if(t[r]==='"'){let i=r;for(;r<t.length;){if(t[++r]==='"'){r++,i=0;break}t[r]==="\\"?o+=t[++r]:o+=t[r]}if(i)throw new TypeError(`Unterminated quote at ${i}: ${mm}`)}if(!o)throw new TypeError(`Missing parameter name at ${r}: ${mm}`);return o}for(;r<t.length;){let o=t[r],i=TV[o];if(i)yield{type:i,index:r++,value:o};else if(o==="\\")yield{type:"ESCAPED",index:r++,value:t[r++]};else if(o===":"){let s=n();yield{type:"PARAM",index:r,value:s}}else if(o==="*"){let s=n();yield{type:"WILDCARD",index:r,value:s}}else yield{type:"CHAR",index:r,value:t[r++]}}return{type:"END",index:r,value:""}}var u0=class{constructor(t){this.tokens=t}peek(){if(!this._peek){let t=this.tokens.next();this._peek=t.value}return this._peek}tryConsume(t){let r=this.peek();if(r.type===t)return this._peek=void 0,r.value}consume(t){let r=this.tryConsume(t);if(r!==void 0)return r;let{type:n,index:o}=this.peek();throw new TypeError(`Unexpected ${n} at ${o}, expected ${t}: ${mm}`)}text(){let t="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=r;return t}},Ta=class{constructor(t){this.tokens=t}};Pn.TokenData=Ta;function c0(e,t={}){let{encodePath:r=a0}=t,n=new u0(AV(e));function o(s){let a=[];for(;;){let l=n.text();l&&a.push({type:"text",value:r(l)});let u=n.tryConsume("PARAM");if(u){a.push({type:"param",name:u});continue}let c=n.tryConsume("WILDCARD");if(c){a.push({type:"wildcard",name:c});continue}if(n.tryConsume("{")){a.push({type:"group",tokens:o("}")});continue}return n.consume(s),a}}let i=o("END");return new Ta(i)}function DV(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=s0}=t,o=e instanceof Ta?e:c0(e,t),i=yP(o.tokens,n,r);return function(a={}){let[l,...u]=i(a);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return l}}function yP(e,t,r){let n=e.map(o=>CV(o,t,r));return o=>{let i=[""];for(let s of n){let[a,...l]=s(o);i[0]+=a,i.push(...l)}return i}}function CV(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let o=yP(e.tokens,t,r);return i=>{let[s,...a]=o(i);return a.length?[""]:[s]}}let n=r||a0;return e.type==="wildcard"&&r!==!1?o=>{let i=o[e.name];if(i==null)return["",e.name];if(!Array.isArray(i)||i.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[i.map((s,a)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${a}" to be a string`);return n(s)}).join(t)]}:o=>{let i=o[e.name];if(i==null)return["",e.name];if(typeof i!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(i)]}}function OV(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=s0}=t,{regexp:o,keys:i}=bP(e,t),s=i.map(a=>r===!1?a0:a.type==="param"?r:l=>l.split(n).map(r));return function(l){let u=o.exec(l);if(!u)return!1;let c=u[0],f=Object.create(null);for(let p=1;p<u.length;p++){if(u[p]===void 0)continue;let h=i[p-1],m=s[p-1];f[h.name]=m(u[p])}return{path:c,params:f}}}function bP(e,t={}){let{delimiter:r=s0,end:n=!0,sensitive:o=!1,trailing:i=!0}=t,s=[],a=[],l=o?"":"i",c=(Array.isArray(e)?e:[e]).map(h=>h instanceof Ta?h:c0(h,t));for(let{tokens:h}of c)for(let m of dm(h,0,[])){let d=MV(m,r,s);a.push(d)}let f=`^(?:${a.join("|")})`;return i&&(f+=`(?:${cn(r)}$)?`),f+=n?"$":`(?=${cn(r)}|$)`,{regexp:new RegExp(f,l),keys:s}}function*dm(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group"){let o=r.slice();for(let i of dm(n.tokens,0,o))yield*dm(e,t+1,i)}else r.push(n);yield*dm(e,t+1,r)}function MV(e,t,r){let n="",o="",i=!0;for(let s=0;s<e.length;s++){let a=e[s];if(a.type==="text"){n+=cn(a.value),o+=a.value,i||(i=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!i&&!o)throw new TypeError(`Missing text after "${a.name}": ${mm}`);a.type==="param"?n+=`(${_V(t,i?"":o)}+)`:n+="([\\s\\S]+)",r.push(a),o="",i=!1;continue}}return n}function _V(e,t){return t.length<2?e.length<2?`[^${cn(e+t)}]`:`(?:(?!${cn(e)})[^${cn(t)}])`:e.length<2?`(?:(?!${cn(t)})[^${cn(e)}])`:`(?:(?!${cn(t)}|${cn(e)})[\\s\\S])`}function IV(e){return e.tokens.map(function t(r,n,o){if(r.type==="text")return EV(r.value);if(r.type==="group")return`{${r.tokens.map(t).join("")}}`;let s=PV(r.name)&&FV(o[n+1])?r.name:JSON.stringify(r.name);if(r.type==="param")return`:${s}`;if(r.type==="wildcard")return`*${s}`;throw new TypeError(`Unexpected token: ${r}`)}).join("")}function PV(e){let[t,...r]=e;return xP.test(t)?r.every(n=>l0.test(n)):!1}function FV(e){return e?.type!=="text"?!0:!l0.test(e.value[0])}});var P0=U((_0,I0)=>{(function(e,t){typeof _0=="object"&&typeof I0<"u"?I0.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(_0,function(){"use strict";var e=function(){return e=Object.assign||function(v){for(var E,C=1,I=arguments.length;C<I;C++){E=arguments[C];for(var Z in E)Object.prototype.hasOwnProperty.call(E,Z)&&(v[Z]=E[Z])}return v},e.apply(this,arguments)},t=!!(typeof window<"u"&&window.document&&window.document.createElement),r=t?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=(function(){var A=!1;if(!t)return A;try{var v=window,E=Object.defineProperty({},"passive",{get:function(){A=!0}});v.addEventListener("test",null,E),v.removeEventListener("test",null,E)}catch{}return A})(),o=function(A){return typeof A=="string"},i=function(A){return typeof A=="function"},s=function(A){return Array.isArray(A)},a=function(A){return!s(A)&&A-parseFloat(A)+1>=0},l=function(A,v){return A&&A.hasOwnProperty(v)},u=t?window.requestAnimationFrame.bind(window):null,c=t?window.cancelAnimationFrame.bind(window):null,f=Math.cos,p=Math.sin,h=Math.pow,m=Math.sqrt,d=Math.PI,g={linear:function(A){return A},easeInQuad:function(A,v,E,C,I){return C*(v/=I)*v+E},easeOutQuad:function(A,v,E,C,I){return-C*(v/=I)*(v-2)+E},easeInOutQuad:function(A,v,E,C,I){return(v/=I/2)<1?C/2*v*v+E:-C/2*(--v*(v-2)-1)+E},easeInCubic:function(A,v,E,C,I){return C*(v/=I)*v*v+E},easeOutCubic:function(A,v,E,C,I){return C*((v=v/I-1)*v*v+1)+E},easeInOutCubic:function(A,v,E,C,I){return(v/=I/2)<1?C/2*v*v*v+E:C/2*((v-=2)*v*v+2)+E},easeInQuart:function(A,v,E,C,I){return C*(v/=I)*v*v*v+E},easeOutQuart:function(A,v,E,C,I){return-C*((v=v/I-1)*v*v*v-1)+E},easeInOutQuart:function(A,v,E,C,I){return(v/=I/2)<1?C/2*v*v*v*v+E:-C/2*((v-=2)*v*v*v-2)+E},easeInQuint:function(A,v,E,C,I){return C*(v/=I)*v*v*v*v+E},easeOutQuint:function(A,v,E,C,I){return C*((v=v/I-1)*v*v*v*v+1)+E},easeInOutQuint:function(A,v,E,C,I){return(v/=I/2)<1?C/2*v*v*v*v*v+E:C/2*((v-=2)*v*v*v*v+2)+E},easeInSine:function(A,v,E,C,I){return-C*f(v/I*(d/2))+C+E},easeOutSine:function(A,v,E,C,I){return C*p(v/I*(d/2))+E},easeInOutSine:function(A,v,E,C,I){return-C/2*(f(d*v/I)-1)+E},easeInExpo:function(A,v,E,C,I){return v===0?E:C*h(2,10*(v/I-1))+E},easeOutExpo:function(A,v,E,C,I){return v===I?E+C:C*(-h(2,-10*v/I)+1)+E},easeInOutExpo:function(A,v,E,C,I){return v===0?E:v===I?E+C:(v/=I/2)<1?C/2*h(2,10*(v-1))+E:C/2*(-h(2,-10*--v)+2)+E},easeInCirc:function(A,v,E,C,I){return-C*(m(1-(v/=I)*v)-1)+E},easeOutCirc:function(A,v,E,C,I){return C*m(1-(v=v/I-1)*v)+E},easeInOutCirc:function(A,v,E,C,I){return(v/=I/2)<1?-C/2*(m(1-v*v)-1)+E:C/2*(m(1-(v-=2)*v)+1)+E}},y=function(A){return Array.prototype.slice.call(A?document.querySelectorAll(A):[])},S=function(A){return y(A).shift()||null},k=function(A){return A instanceof Element},N=function(A){return A===window},R=function(A){return A===document.documentElement||A===document.body},T=function(A,v){if(k(v))return A===v;for(var E=y(v),C=E.length;--C>=0&&E[C]!==A;);return C>-1},$=function(A){return Math.max(A.scrollHeight,A.clientHeight,A.offsetHeight)},J=function(A){return Math.max(A.scrollWidth,A.clientWidth,A.offsetWidth)},H=function(A){return{width:J(A),height:$(A)}},D=function(A){var v=N(A)||R(A);return{viewport:{width:v?Math.min(window.innerWidth,document.documentElement.clientWidth):A.clientWidth,height:v?window.innerHeight:A.clientHeight},size:v?{width:Math.max(J(document.body),J(document.documentElement)),height:Math.max($(document.body),$(document.documentElement))}:H(A)}},xe={y:"scrollTop",x:"scrollLeft"},j={y:"pageYOffset",x:"pageXOffset"},O=function(A,v){return N(A)?A[j[v]]:A[xe[v]]},M=function(A,v,E){if(N(A)){var C=E==="y";A.scrollTo(C?A.pageXOffset:v,C?v:A.pageYOffset)}else A[xe[E]]=v},P=function(A,v){var E=A.getBoundingClientRect();if(E.width||E.height){var C={top:0,left:0},I=void 0;if(N(v)||R(v))I=document.documentElement,C.top=window[j.y],C.left=window[j.x];else{I=v;var Z=I.getBoundingClientRect();C.top=Z.top*-1+I[xe.y],C.left=Z.left*-1+I[xe.x]}return{top:E.top+C.top-I.clientTop,left:E.left+C.left-I.clientLeft}}return E},B=(function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),Q=function(A){return A==="wheel"?B:A},F=function(A,v,E,C,I){E.split(" ").forEach(function(Z){A[v](Q(Z),C,n?{passive:I}:!1)})},W=function(A,v,E,C){return F(A,"addEventListener",v,E,C)},x=function(A,v,E,C){return F(A,"removeEventListener",v,E,C)},ee=/^(\+|-)=(\d+(?:\.\d+)?)$/,se=function(A,v){var E={top:0,left:0,relative:!1};if(l(A,"top")||l(A,"left"))E=e({},E,A);else if(s(A))if(A.length>1)E.top=A[0],E.left=A[1];else if(A.length===1)E.top=v?A[0]:0,E.left=v?0:A[0];else return null;else if(a(A))v?E.top=A:E.left=A;else if(o(A)){var C=A.trim().match(ee);if(!C)return null;var I=C[1],Z=parseInt(C[2],10);I==="+"?(E.top=v?Z:0,E.left=v?0:Z):(E.top=v?-Z:0,E.left=v?0:-Z),E.relative=!0}else return null;return E},w={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},he="click",Se="wheel touchstart touchmove",Re=(function(){function A(v,E){var C=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(Z){var ke=C,Ae=ke.$el,De=ke.ctx;if(De.start||(De.start=Z),!De.progress||!Ae){C.stop();return}var Ht=De.opts,ft=De.pos,Lt=De.start,Tr=De.startPos,Pr=De.easing,er=Ht.duration,cr={top:"y",left:"x"},Wt=Z-Lt,ze=Math.min(1,Math.max(Wt/er,0));Object.keys(ft).forEach(function(Fr){var _=ft[Fr],q=Tr[Fr],ae=_-q;if(ae!==0){var me=Pr(ze,er*ze,0,1,er);M(Ae,Math.round(q+ae*me),cr[Fr])}}),Wt<=er?(C.hook(Ht,"step",ze),De.id=A.raf(C.loop)):C.stop(!0)},this.handleClick=function(Z){for(var ke=C.opts,Ae=Z.target;Ae&&Ae!==document;Ae=Ae.parentNode)if(T(Ae,ke.trigger)){var De=JSON.parse(Ae.getAttribute("data-scroll-options")||"{}"),Ht=Ae.getAttribute("data-scroll"),ft=Ht||Ae.getAttribute("href"),Lt=e({},ke,De),Tr=Lt.preventDefault,Pr=Lt.stopPropagation,er=Lt.vertical,cr=Lt.horizontal;Tr&&Z.preventDefault(),Pr&&Z.stopPropagation(),C.ctx.$trigger=Ae,cr&&er?C.to(ft,Lt):er?C.toTop(ft,Lt):cr&&C.toLeft(ft,Lt);break}},this.handleStop=function(Z){var ke=C.ctx,Ae=ke.opts;Ae&&Ae.cancellable?(ke.cancel=!0,C.stop()):Z.preventDefault()},this.opts=e({},w,v||{});var I=null;t&&(typeof E=="string"?I=S(E):E!=null?I=E:I=window),this.$el=I,I&&this.bind(!0,!1)}return A.create=function(v,E){return new A(v,E)},A.prototype.to=function(v,E){if(t){var C=this,I=C.$el,Z=C.ctx,ke=C.opts,Ae=Z.$trigger,De=e({},ke,E||{}),Ht=De.offset,ft=De.vertical,Lt=De.horizontal,Tr=k(De.header)?De.header:S(De.header),Pr=/^#/,er=o(v)&&Pr.test(v)?v:null;if(Z.opts=De,Z.cancel=!1,Z.hash=er,this.stop(),!!I){var cr=se(Ht,ft),Wt=se(v,ft),ze={top:0,left:0};if(Wt)if(Wt.relative){var Fr=O(I,ft?"y":"x");ze.top=ft?Fr+Wt.top:Wt.top,ze.left=ft?Wt.left:Fr+Wt.left}else ze=Wt;else if(o(v)&&v!=="#"){var _=S(v);if(!_)return;ze=P(_,I)}cr&&(ze.top+=cr.top,ze.left+=cr.left),Tr&&(ze.top=Math.max(0,ze.top-H(Tr).height));var q=D(I),ae=q.viewport,me=q.size;if(ze.top=ft?Math.max(0,Math.min(me.height-ae.height,ze.top)):O(I,"y"),ze.left=Lt?Math.max(0,Math.min(me.width-ae.width,ze.left)):O(I,"x"),this.hook(De,"before",ze,Ae)===!1){Z.opts=null;return}Z.pos=ze,this.start(De),this.bind(!1,!0)}}},A.prototype.toTop=function(v,E){this.to(v,e({},E||{},{vertical:!0,horizontal:!1}))},A.prototype.toLeft=function(v,E){this.to(v,e({},E||{},{vertical:!1,horizontal:!0}))},A.prototype.toElement=function(v,E){var C=this.$el;!t||!C||this.to(P(v,C),E||{})},A.prototype.stop=function(v){v===void 0&&(v=!1);var E=this,C=E.$el,I=E.ctx,Z=I.pos;!C||!I.progress||(A.caf(I.id),I.progress=!1,I.start=0,I.id=0,v&&Z&&(M(C,Z.left,"x"),M(C,Z.top,"y")),this.complete())},A.prototype.update=function(v){if(this.$el){var E=e({},this.opts,v);this.stop(),this.unbind(!0,!0),this.opts=E,this.bind(!0,!1)}},A.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},A.prototype.onBefore=function(v,E){return!0},A.prototype.onStep=function(v){},A.prototype.onAfter=function(v,E){},A.prototype.onCancel=function(){},A.prototype.onComplete=function(v){},A.prototype.start=function(v){var E=this.ctx;E.opts=v,E.progress=!0,E.easing=i(v.easing)?v.easing:g[v.easing];var C=this.$el,I={top:O(C,"y"),left:O(C,"x")};E.startPos=I,E.id=A.raf(this.loop)},A.prototype.complete=function(){var v=this,E=v.$el,C=v.ctx,I=C.hash,Z=C.cancel,ke=C.opts,Ae=C.pos,De=C.$trigger;if(!(!E||!ke)){if(I!=null&&I!==window.location.hash){var Ht=ke.updateURL;t&&r&&Ht!==!1&&window.history[Ht==="replace"?"replaceState":"pushState"](null,"",I)}this.unbind(!1,!0),C.opts=null,C.$trigger=null,Z?this.hook(ke,"cancel"):this.hook(ke,"after",Ae,De),this.hook(ke,"complete",Z)}},A.prototype.hook=function(v,E){for(var C=[],I=2;I<arguments.length;I++)C[I-2]=arguments[I];var Z,ke=v[E],Ae,De;return i(ke)&&(Ae=ke.apply(this,C.concat([this]))),De=(Z=this)["on"+(E[0].toUpperCase()+E.slice(1))].apply(Z,C),Ae!==void 0?Ae:De},A.prototype.bind=function(v,E){var C=this,I=C.$el,Z=C.ctx.opts;I&&(v&&W(I,he,this.handleClick,!1),E&&W(I,Se,this.handleStop,Z?Z.cancellable:!0))},A.prototype.unbind=function(v,E){var C=this,I=C.$el,Z=C.ctx.opts;I&&(v&&x(I,he,this.handleClick,!1),E&&x(I,Se,this.handleStop,Z?Z.cancellable:!0))},A.raf=u,A.caf=c,A})();return Re})});var Lu=globalThis,_a=Lu.ShadowRoot&&(Lu.ShadyCSS===void 0||Lu.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$m=Symbol(),ww=new WeakMap,zi=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==$m)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(_a&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=ww.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&ww.set(r,t))}return t}toString(){return this.cssText}},$e=e=>new zi(typeof e=="string"?e:e+"",void 0,$m),Je=(e,...t)=>{let r=e.length===1?e[0]:t.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)+e[i+1]),e[0]);return new zi(r,e,$m)},Ru=(e,t)=>{if(_a)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),o=Lu.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Ia=_a?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return $e(r)})(e):e;var{is:vF,defineProperty:SF,getOwnPropertyDescriptor:kF,getOwnPropertyNames:TF,getOwnPropertySymbols:EF,getPrototypeOf:AF}=Object,Bu=globalThis,vw=Bu.trustedTypes,DF=vw?vw.emptyScript:"",CF=Bu.reactiveElementPolyfillSupport,Pa=(e,t)=>e,ji={toAttribute(e,t){switch(t){case Boolean:e=e?DF:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Fa=(e,t)=>!vF(e,t),Sw={attribute:!0,type:String,converter:ji,reflect:!1,useDefault:!1,hasChanged:Fa};Symbol.metadata??=Symbol("metadata"),Bu.litPropertyMetadata??=new WeakMap;var $r=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Sw){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&SF(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){let{get:o,set:i}=kF(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:o,set(s){let a=o?.call(this);i?.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Sw}static _$Ei(){if(this.hasOwnProperty(Pa("elementProperties")))return;let t=AF(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Pa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pa("properties"))){let r=this.properties,n=[...TF(r),...EF(r)];for(let o of n)this.createProperty(o,r[o])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);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(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(Ia(o))}else t!==void 0&&r.push(Ia(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.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((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ru(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:ji).toAttribute(r,n.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,r){let n=this.constructor,o=n._$Eh.get(t);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:ji;this._$Em=o;let a=s.fromAttribute(r,i.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let o=this.constructor,i=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??Fa)(i,r)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!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){let{wrapped:s}=i,a=this[o];s!==!0||this._$AL.has(o)||a===void 0||this.C(o,void 0,i,a)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};$r.elementStyles=[],$r.shadowRootOptions={mode:"open"},$r[Pa("elementProperties")]=new Map,$r[Pa("finalized")]=new Map,CF?.({ReactiveElement:$r}),(Bu.reactiveElementVersions??=[]).push("2.1.1");var Um=globalThis,$u=Um.trustedTypes,kw=$u?$u.createPolicy("lit-html",{createHTML:e=>e}):void 0,zm="$lit$",gn=`lit$${Math.random().toFixed(9).slice(2)}$`,jm="?"+gn,OF=`<${jm}>`,Po=document,Na=()=>Po.createComment(""),La=e=>e===null||typeof e!="object"&&typeof e!="function",qm=Array.isArray,Tw=e=>qm(e)||typeof e?.[Symbol.iterator]=="function",Hm=`[
35
+ \f\r]`,Ra=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ew=/-->/g,Aw=/>/g,Fo=RegExp(`>|${Hm}(?:([^\\s"'>=/]+)(${Hm}*=${Hm}*(?:[^
36
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Dw=/'/g,Cw=/"/g,Ow=/^(?:script|style|textarea|title)$/i,Wm=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),et=Wm(1),Ym=Wm(2),Vm=Wm(3),Ue=Symbol.for("lit-noChange"),qe=Symbol.for("lit-nothing"),Mw=new WeakMap,No=Po.createTreeWalker(Po,129);function _w(e,t){if(!qm(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return kw!==void 0?kw.createHTML(t):t}var Iw=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=Ra;for(let a=0;a<r;a++){let l=e[a],u,c,f=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===Ra?c[1]==="!--"?s=Ew:c[1]!==void 0?s=Aw:c[2]!==void 0?(Ow.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Fo):c[3]!==void 0&&(s=Fo):s===Fo?c[0]===">"?(s=o??Ra,f=-1):c[1]===void 0?f=-2:(f=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Fo:c[3]==='"'?Cw:Dw):s===Cw||s===Dw?s=Fo:s===Ew||s===Aw?s=Ra:(s=Fo,o=void 0);let h=s===Fo&&e[a+1].startsWith("/>")?" ":"";i+=s===Ra?l+OF:f>=0?(n.push(u),l.slice(0,f)+zm+l.slice(f)+gn+h):l+gn+(f===-2?a:h)}return[_w(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Ba=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=t.length-1,l=this.parts,[u,c]=Iw(t,r);if(this.el=e.createElement(u,n),No.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=No.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(zm)){let p=c[s++],h=o.getAttribute(f).split(gn),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:m[2],strings:h,ctor:m[1]==="."?zu:m[1]==="?"?ju:m[1]==="@"?qu:Ro}),o.removeAttribute(f)}else f.startsWith(gn)&&(l.push({type:6,index:i}),o.removeAttribute(f));if(Ow.test(o.tagName)){let f=o.textContent.split(gn),p=f.length-1;if(p>0){o.textContent=$u?$u.emptyScript:"";for(let h=0;h<p;h++)o.append(f[h],Na()),No.nextNode(),l.push({type:2,index:++i});o.append(f[p],Na())}}}else if(o.nodeType===8)if(o.data===jm)l.push({type:2,index:i});else{let f=-1;for(;(f=o.data.indexOf(gn,f+1))!==-1;)l.push({type:7,index:i}),f+=gn.length-1}i++}}static createElement(t,r){let n=Po.createElement("template");return n.innerHTML=t,n}};function Lo(e,t,r=e,n){if(t===Ue)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=La(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=Lo(e,o._$AS(e,t.values),o,n)),t}var Uu=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,o=(t?.creationScope??Po).importNode(r,!0);No.currentNode=o;let i=No.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new qi(i,i.nextSibling,this,t):l.type===1?u=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(u=new Hu(i,this,t)),this._$AV.push(u),l=n[++a]}s!==l?.index&&(i=No.nextNode(),s++)}return No.currentNode=Po,o}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},qi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=qe,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Lo(this,t,r),La(t)?t===qe||t==null||t===""?(this._$AH!==qe&&this._$AR(),this._$AH=qe):t!==this._$AH&&t!==Ue&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Tw(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==qe&&La(this._$AH)?this._$AA.nextSibling.data=t:this.T(Po.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Ba.createElement(_w(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new Uu(o,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(t){let r=Mw.get(t.strings);return r===void 0&&Mw.set(t.strings,r=new Ba(t)),r}k(t){qm(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of t)o===r.length?r.push(n=new e(this.O(Na()),this.O(Na()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ro=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=qe,this._$AN=void 0,this.element=t,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=qe}_$AI(t,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)t=Lo(this,t,r,0),s=!La(t)||t!==this._$AH&&t!==Ue,s&&(this._$AH=t);else{let a=t,l,u;for(t=i[0],l=0;l<i.length-1;l++)u=Lo(this,a[n+l],r,l),u===Ue&&(u=this._$AH[l]),s||=!La(u)||u!==this._$AH[l],u===qe?t=qe:t!==qe&&(t+=(u??"")+i[l+1]),this._$AH[l]=u}s&&!o&&this.j(t)}j(t){t===qe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zu=class extends Ro{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===qe?void 0:t}},ju=class extends Ro{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==qe)}},qu=class extends Ro{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=Lo(this,t,r,0)??qe)===Ue)return;let n=this._$AH,o=t===qe&&n!==qe||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==qe&&(n===qe||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Hu=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Lo(this,t)}},Gm={M:zm,P:gn,A:jm,C:1,L:Iw,R:Uu,D:Tw,V:Lo,I:qi,H:Ro,N:ju,U:qu,B:zu,F:Hu},MF=Um.litHtmlPolyfillSupport;MF?.(Ba,qi),(Um.litHtmlVersions??=[]).push("3.3.1");var Wu=(e,t,r)=>{let n=r?.renderBefore??t,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new qi(t.insertBefore(Na(),i),i,void 0,r??{})}return o._$AI(e),o};var Qm=globalThis,xn=class extends $r{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wu(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ue}};xn._$litElement$=!0,xn.finalized=!0,Qm.litElementHydrateSupport?.({LitElement:xn});var _F=Qm.litElementPolyfillSupport;_F?.({LitElement:xn});var IF={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(Qm.litElementVersions??=[]).push("4.2.1");var PF=!1;var Xe={};te(Xe,{ObservableIntake:()=>xd,Observablemap:()=>gd,fromStreamWithBackpressure:()=>hR,rxjs:()=>ns});var Pe={};te(Pe,{CumulativeDeferred:()=>Gu,Deferred:()=>Vu,cumulativeDefer:()=>NF,defer:()=>Hi,fromCallback:()=>zF,getFirstTrueOrFalse:()=>UF,map:()=>BF,rejectedPromise:()=>RF,resolvedPromise:()=>LF,timeoutAndContinue:()=>$F,timeoutWrap:()=>Pw});var Vu=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((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Hi=()=>new Vu;var Gu=class{constructor(){this.accumulatedPromises=[],this.deferred=Hi(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let t=Hi();return this.addPromise(t.promise),t}addPromise(t){this.accumulatedPromises.push(t)}},NF=()=>new Gu;var LF=e=>Promise.resolve(e),RF=e=>Promise.reject(e),BF=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Pw=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),$F=async(e,t=6e4)=>Pw(e,t,!1),UF=async e=>{let t=Hi();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},zF=e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})});var ns={};te(ns,{Observable:()=>Ee,ReplaySubject:()=>Vi,Subject:()=>$t,Subscription:()=>kt,from:()=>bn,fromEvent:()=>Cr,of:()=>Va,ops:()=>pR});var Jm=function(e,t){return Jm=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])},Jm(e,t)};function xt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jm(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xm=function(){return Xm=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Xm.apply(this,arguments)};function qF(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function HF(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function WF(e,t){return function(r,n){t(r,n,e)}}function yG(e,t,r,n,o,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=n.kind,l=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?n.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f,p=!1,h=r.length-1;h>=0;h--){var m={};for(var d in n)m[d]=d==="access"?{}:n[d];for(var d in n.access)m.access[d]=n.access[d];m.addInitializer=function(y){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var g=(0,r[h])(a==="accessor"?{get:c.get,set:c.set}:c[l],m);if(a==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(f=s(g.get))&&(c.get=f),(f=s(g.set))&&(c.set=f),(f=s(g.init))&&o.unshift(f)}else(f=s(g))&&(a==="field"?o.unshift(f):c[l]=f)}u&&Object.defineProperty(u,n.name,c),p=!0}function bG(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function wG(e){return typeof e=="symbol"?e:"".concat(e)}function vG(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function YF(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Km(e,t,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(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function Ua(e,t){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(c){return l([u,c])}}function l(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=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Zm=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function VF(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Zm(t,e,r)}function St(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >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 GF(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bt(arguments[t]));return e}function QF(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function pr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function yn(e){return this instanceof yn?(this.v=e,this):new yn(e)}function ed(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(p){n[p]&&(o[p]=function(h){return new Promise(function(m,d){i.push([p,h,m,d])>1||a(p,h)})})}function a(p,h){try{l(n[p](h))}catch(m){f(i[0][3],m)}}function l(p){p.value instanceof yn?Promise.resolve(p.value.v).then(u,c):f(i[0][2],p)}function u(p){a("next",p)}function c(p){a("throw",p)}function f(p,h){p(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function JF(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:yn(e[o](s)),done:!1}:i?i(s):s}:i}}function td(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof St=="function"?St(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}}function XF(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var ZF=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function KF(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Zm(t,e,r);return ZF(t,e),t}function eN(e){return e&&e.__esModule?e:{default:e}}function tN(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function rN(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function nN(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function oN(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var iN=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function sN(e){function t(n){e.error=e.hasError?new iN(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,function(i){return t(i),r()})}catch(i){t(i)}}if(e.hasError)throw e.error}return r()}var SG={__extends:xt,__assign:Xm,__rest:qF,__decorate:HF,__param:WF,__metadata:YF,__awaiter:Km,__generator:Ua,__createBinding:Zm,__exportStar:VF,__values:St,__read:Bt,__spread:GF,__spreadArrays:QF,__spreadArray:pr,__await:yn,__asyncGenerator:ed,__asyncDelegator:JF,__asyncValues:td,__makeTemplateObject:XF,__importStar:KF,__importDefault:eN,__classPrivateFieldGet:tN,__classPrivateFieldSet:rN,__classPrivateFieldIn:nN,__addDisposableResource:oN,__disposeResources:sN};function de(e){return typeof e=="function"}function Qu(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var za=Qu(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
37
+ `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
38
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Dr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var kt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,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=St(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(de(c))try{c()}catch(d){i=d instanceof za?d.errors:[d]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=St(f),h=p.next();!h.done;h=p.next()){var m=h.value;try{Fw(m)}catch(d){i=i??[],d instanceof za?i=pr(pr([],Bt(i)),Bt(d.errors)):i.push(d)}}}catch(d){n={error:d}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new za(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Fw(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Dr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Dr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),rd=kt.EMPTY;function Ju(e){return e instanceof kt||e&&"closed"in e&&de(e.remove)&&de(e.add)&&de(e.unsubscribe)}function Fw(e){de(e)?e():e.unsubscribe()}var hr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Wi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Wi.delegate;return o?.setTimeout?o.setTimeout.apply(o,pr([e,t],Bt(r))):setTimeout.apply(void 0,pr([e,t],Bt(r)))},clearTimeout:function(e){var t=Wi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Xu(e){Wi.setTimeout(function(){var t=hr.onUnhandledError;if(t)t(e);else throw e})}function Ur(){}var Nw=(function(){return nd("C",void 0,void 0)})();function Lw(e){return nd("E",void 0,e)}function Rw(e){return nd("N",e,void 0)}function nd(e,t,r){return{kind:e,value:t,error:r}}var Bo=null;function Yi(e){if(hr.useDeprecatedSynchronousErrorHandling){var t=!Bo;if(t&&(Bo={errorThrown:!1,error:null}),e(),t){var r=Bo,n=r.errorThrown,o=r.error;if(Bo=null,n)throw o}}else e()}function Bw(e){hr.useDeprecatedSynchronousErrorHandling&&Bo&&(Bo.errorThrown=!0,Bo.error=e)}var $o=(function(e){xt(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ju(r)&&r.add(n)):n.destination=cN,n}return t.create=function(r,n,o){return new ja(r,n,o)},t.prototype.next=function(r){this.isStopped?id(Rw(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?id(Lw(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?id(Nw,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(kt),aN=Function.prototype.bind;function od(e,t){return aN.call(e,t)}var lN=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Zu(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Zu(n)}else Zu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Zu(r)}},e})(),ja=(function(e){xt(t,e);function t(r,n,o){var i=e.call(this)||this,s;if(de(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&hr.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&od(r.next,a),error:r.error&&od(r.error,a),complete:r.complete&&od(r.complete,a)}):s=r}return i.destination=new lN(s),i}return t})($o);function Zu(e){hr.useDeprecatedSynchronousErrorHandling?Bw(e):Xu(e)}function uN(e){throw e}function id(e,t){var r=hr.onStoppedNotification;r&&Wi.setTimeout(function(){return r(e,t)})}var cN={closed:!0,next:Ur,error:uN,complete:Ur};var Uo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function qa(e){return e}function fN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sd(e)}function sd(e){return e.length===0?qa:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Ee=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=hN(t)?t:new ja(t,r,n);return Yi(function(){var s=o,a=s.operator,l=s.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=$w(r),new r(function(o,i){var s=new ja({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Uo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return sd(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=$w(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e})();function $w(e){var t;return(t=e??hr.Promise)!==null&&t!==void 0?t:Promise}function pN(e){return e&&de(e.next)&&de(e.error)&&de(e.complete)}function hN(e){return e&&e instanceof $o||pN(e)&&Ju(e)}function mN(e){return de(e?.lift)}function Fe(e){return function(t){if(mN(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ne(e,t,r,n,o){return new Uw(e,t,r,n,o)}var Uw=(function(e){xt(t,e);function t(r,n,o,i,s,a){var l=e.call(this,r)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=n?function(u){try{n(u)}catch(c){r.error(c)}}:e.prototype._next,l._error=i?function(u){try{i(u)}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=o?function(){try{o()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})($o);var ad=Qu(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var $t=(function(e){xt(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new ld(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new ad},t.prototype.next=function(r){var n=this;Yi(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=St(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Yi(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)}})},t.prototype.complete=function(){var r=this;Yi(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?rd:(this.currentObservers=null,a.push(r),new kt(function(){n.currentObservers=null,Dr(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new Ee;return r.source=this,r},t.create=function(r,n){return new ld(r,n)},t})(Ee),ld=(function(e){xt(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.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)},t.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)},t.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)},t.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:rd},t})($t);var Ha={now:function(){return(Ha.delegate||Date).now()},delegate:void 0};var Vi=(function(e){xt(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Ha);var i=e.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 t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.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(),l=0;l<a.length&&!r.closed;l+=i?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.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 l=o.now(),u=0,c=1;c<i.length&&i[c]<=l;c+=2)u=c;u&&i.splice(0,u+1)}},t})($t);var ud=(function(e){xt(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t})(kt);var Wa={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Wa.delegate;return o?.setInterval?o.setInterval.apply(o,pr([e,t],Bt(r))):setInterval.apply(void 0,pr([e,t],Bt(r)))},clearInterval:function(e){var t=Wa.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var cd=(function(e){xt(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.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},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Wa.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Wa.clearInterval(n)},t.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))},t.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},t.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,Dr(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(ud);var Ya=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=Ha.now,e})();var fd=(function(e){xt(t,e);function t(r,n){n===void 0&&(n=Ya.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return t.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}},t})(Ya);var Bn=new fd(cd),pd=Bn;function Ku(e){return e&&de(e.schedule)}function hd(e){return e[e.length-1]}function KQ(e){return de(hd(e))?e.pop():void 0}function $n(e){return Ku(hd(e))?e.pop():void 0}function eJ(e,t){return typeof hd(e)=="number"?e.pop():t}var Gi=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function ec(e){return de(e?.then)}function tc(e){return de(e[Uo])}function rc(e){return Symbol.asyncIterator&&de(e?.[Symbol.asyncIterator])}function nc(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function dN(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oc=dN();function ic(e){return de(e?.[oc])}function sc(e){return ed(this,arguments,function(){var r,n,o,i;return Ua(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,yn(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,yn(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,yn(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 ac(e){return de(e?.getReader)}function tt(e){if(e instanceof Ee)return e;if(e!=null){if(tc(e))return gN(e);if(Gi(e))return xN(e);if(ec(e))return yN(e);if(rc(e))return zw(e);if(ic(e))return bN(e);if(ac(e))return wN(e)}throw nc(e)}function gN(e){return new Ee(function(t){var r=e[Uo]();if(de(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xN(e){return new Ee(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function yN(e){return new Ee(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Xu)})}function bN(e){return new Ee(function(t){var r,n;try{for(var o=St(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function zw(e){return new Ee(function(t){vN(e,t).catch(function(r){return t.error(r)})})}function wN(e){return zw(sc(e))}function vN(e,t){var r,n,o,i;return Km(this,void 0,void 0,function(){var s,a;return Ua(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=td(e),l.label=1;case 1:return[4,r.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),o={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ut(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function Qi(e,t){return t===void 0&&(t=0),Fe(function(r,n){r.subscribe(Ne(n,function(o){return Ut(n,e,function(){return n.next(o)},t)},function(){return Ut(n,e,function(){return n.complete()},t)},function(o){return Ut(n,e,function(){return n.error(o)},t)}))})}function Ji(e,t){return t===void 0&&(t=0),Fe(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function jw(e,t){return tt(e).pipe(Ji(t),Qi(t))}function qw(e,t){return tt(e).pipe(Ji(t),Qi(t))}function Hw(e,t){return new Ee(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Ww(e,t){return new Ee(function(r){var n;return Ut(r,t,function(){n=e[oc](),Ut(r,t,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 de(n?.return)&&n.return()}})}function lc(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(function(r){Ut(r,t,function(){var n=e[Symbol.asyncIterator]();Ut(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Yw(e,t){return lc(sc(e),t)}function md(e,t){if(e!=null){if(tc(e))return jw(e,t);if(Gi(e))return Hw(e,t);if(ec(e))return qw(e,t);if(rc(e))return lc(e,t);if(ic(e))return Ww(e,t);if(ac(e))return Yw(e,t)}throw nc(e)}function bn(e,t){return t?md(e,t):tt(e)}function Va(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=$n(e);return bn(e,r)}function Vw(e){return e instanceof Date&&!isNaN(e)}function zr(e,t){return Fe(function(r,n){var o=0;r.subscribe(Ne(n,function(i){n.next(e.call(t,i,o++))}))})}var SN=Array.isArray;function kN(e,t){return SN(t)?e.apply(void 0,pr([],Bt(t))):e(t)}function Gw(e){return zr(function(t){return kN(e,t)})}function Qw(e,t,r,n,o,i,s,a){var l=[],u=0,c=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},h=function(d){return u<n?m(d):l.push(d)},m=function(d){i&&t.next(d),u++;var g=!1;tt(r(d,c++)).subscribe(Ne(t,function(y){o?.(y),i?h(y):t.next(y)},function(){g=!0},void 0,function(){if(g)try{u--;for(var y=function(){var S=l.shift();s?Ut(t,s,function(){return m(S)}):m(S)};l.length&&u<n;)y();p()}catch(S){t.error(S)}}))};return e.subscribe(Ne(t,h,function(){f=!0,p()})),function(){a?.()}}function zo(e,t,r){return r===void 0&&(r=1/0),de(t)?zo(function(n,o){return zr(function(i,s){return t(n,i,o,s)})(tt(e(n,o)))},r):(typeof t=="number"&&(r=t),Fe(function(n,o){return Qw(n,o,e,r)}))}function uc(e){return e===void 0&&(e=1/0),zo(qa,e)}function cc(){return uc(1)}function fc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return cc()(bn(e,$n(e)))}var TN=["addListener","removeListener"],EN=["addEventListener","removeEventListener"],AN=["on","off"];function Cr(e,t,r,n){if(de(r)&&(n=r,r=void 0),n)return Cr(e,t,r).pipe(Gw(n));var o=Bt(ON(e)?EN.map(function(a){return function(l){return e[a](t,l,r)}}):DN(e)?TN.map(Jw(e,t)):CN(e)?AN.map(Jw(e,t)):[],2),i=o[0],s=o[1];if(!i&&Gi(e))return zo(function(a){return Cr(a,t,r)})(tt(e));if(!i)throw new TypeError("Invalid event target");return new Ee(function(a){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a.next(1<u.length?u:u[0])};return i(l),function(){return s(l)}})}function Jw(e,t){return function(r){return function(n){return e[r](t,n)}}}function DN(e){return de(e.addListener)&&de(e.removeListener)}function CN(e){return de(e.on)&&de(e.off)}function ON(e){return de(e.addEventListener)&&de(e.removeEventListener)}function dd(e,t,r){e===void 0&&(e=0),r===void 0&&(r=pd);var n=-1;return t!=null&&(Ku(t)?r=t:n=t),new Ee(function(o){var i=Vw(e)?+e-r.now():e;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 Xi(e,t){return Fe(function(r,n){var o=0;r.subscribe(Ne(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function pc(e){return Fe(function(t,r){var n=[];return t.subscribe(Ne(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),tt(e).subscribe(Ne(r,function(){var o=n;n=[],r.next(o)},Ur)),function(){n=null}})}function hc(e,t){return t===void 0&&(t=null),t=t??e,Fe(function(r,n){var o=[],i=0;r.subscribe(Ne(n,function(s){var a,l,u,c,f=null;i++%t===0&&o.push([]);try{for(var p=St(o),h=p.next();!h.done;h=p.next()){var m=h.value;m.push(s),e<=m.length&&(f=f??[],f.push(m))}}catch(y){a={error:y}}finally{try{h&&!h.done&&(l=p.return)&&l.call(p)}finally{if(a)throw a.error}}if(f)try{for(var d=St(f),g=d.next();!g.done;g=d.next()){var m=g.value;Dr(o,m),n.next(m)}}catch(y){u={error:y}}finally{try{g&&!g.done&&(c=d.return)&&c.call(d)}finally{if(u)throw u.error}}},function(){var s,a;try{for(var l=St(o),u=l.next();!u.done;u=l.next()){var c=u.value;n.next(c)}}catch(f){s={error:f}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}n.complete()},void 0,function(){o=null}))})}function mc(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=(t=$n(n))!==null&&t!==void 0?t:Bn,s=(r=n[0])!==null&&r!==void 0?r:null,a=n[1]||1/0;return Fe(function(l,u){var c=[],f=!1,p=function(d){var g=d.buffer,y=d.subs;y.unsubscribe(),Dr(c,d),u.next(g),f&&h()},h=function(){if(c){var d=new kt;u.add(d);var g=[],y={buffer:g,subs:d};c.push(y),Ut(d,i,function(){return p(y)},e)}};s!==null&&s>=0?Ut(u,i,h,s,!0):f=!0,h();var m=Ne(u,function(d){var g,y,S=c.slice();try{for(var k=St(S),N=k.next();!N.done;N=k.next()){var R=N.value,T=R.buffer;T.push(d),a<=T.length&&p(R)}}catch($){g={error:$}}finally{try{N&&!N.done&&(y=k.return)&&y.call(k)}finally{if(g)throw g.error}}},function(){for(;c?.length;)u.next(c.shift().buffer);m?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return c=null});l.subscribe(m)})}function Zi(e){return Fe(function(t,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)}};t.subscribe(Ne(r,function(a){i?.unsubscribe(),n=!0,o=a,i=Ne(r,s,Ur),tt(e(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function Ki(e,t){return t===void 0&&(t=Bn),Fe(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 l(){var u=s+e,c=t.now();if(c<u){o=this.schedule(void 0,u-c),n.add(o);return}a()}r.subscribe(Ne(n,function(u){i=u,s=t.now(),o||(o=t.schedule(l,e),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function es(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=$n(e);return Fe(function(n,o){(r?fc(e,n,r):fc(e,n)).subscribe(o)})}function ts(e){return Fe(function(t,r){tt(e).subscribe(Ne(r,function(){return r.complete()},Ur)),!r.closed&&t.subscribe(r)})}function dc(e,t){return Fe(function(r,n){var o=t??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,l=a===void 0?!1:a,u=!1,c=null,f=null,p=!1,h=function(){f?.unsubscribe(),f=null,l&&(g(),p&&n.complete())},m=function(){f=null,p&&n.complete()},d=function(y){return f=tt(e(y)).subscribe(Ne(n,h,m))},g=function(){if(u){u=!1;var y=c;c=null,n.next(y),!p&&d(y)}};r.subscribe(Ne(n,function(y){u=!0,c=y,!(f&&!f.closed)&&(s?g():d(y))},function(){p=!0,!(l&&u&&f&&!f.closed)&&n.complete()}))})}function rs(e,t,r){t===void 0&&(t=Bn);var n=dd(e,t);return dc(function(){return n},r)}var pR={buffer:pc,bufferCount:hc,bufferTime:mc,debounce:Zi,debounceTime:Ki,filter:Xi,map:zr,startWith:es,takeUntil:ts,throttleTime:rs};var gd=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let o=Cr(t,r),i=new $t;o.subscribe(i);let s={subject:i,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let i={subject:new $t,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var xd=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ee(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=Pe.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;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(t){this.observableFunctions.next(t)}};function hR(e){return new Ee(t=>{let r=()=>e.pause(),n=()=>process.nextTick(()=>e.resume()),o=i=>{r(),t.next(i),n()};return e.on("data",o),e.on("error",i=>t.error(i)),e.on("end",()=>t.complete()),e.on("close",()=>t.complete()),()=>{e.removeListener("data",o),e.removeListener("error",t.error),e.removeListener("end",t.complete),e.removeListener("close",t.complete)}})}var mR={attribute:!0,type:String,converter:ji,reflect:!1,hasChanged:Fa},Xw=(e=mR,t,r)=>{let{kind:n,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),i.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,e)},init(a){return a!==void 0&&this.C(s,void 0,e,a),a}}}if(n==="setter"){let{name:s}=r;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,e)}}throw Error("Unsupported decorator location: "+n)};function mr(e){return(t,r)=>typeof r=="object"?Xw(e,t,r):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(e,t,r)}var mn={};te(mn,{DomTools:()=>hn,TypedRequest:()=>Ul,breakpoints:()=>pn,css:()=>_m,elementBasic:()=>Da,plugins:()=>Im});var Da={};te(Da,{setup:()=>x7,staticStyles:()=>d7,styles:()=>g7});var ql={};te(ql,{DeesComms:()=>Ax});var ce={};te(ce,{Timeout:()=>yc,delayFor:()=>wn,delayForRandom:()=>SR});var ue={};te(ue,{CumulativeDeferred:()=>xc,Deferred:()=>gc,cumulativeDefer:()=>dR,defer:()=>jo,fromCallback:()=>vR,getFirstTrueOrFalse:()=>wR,map:()=>yR,rejectedPromise:()=>xR,resolvedPromise:()=>gR,timeoutAndContinue:()=>bR,timeoutWrap:()=>Zw});var gc=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((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},jo=()=>new gc;var xc=class{constructor(){this.accumulatedPromises=[],this.deferred=jo(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},dR=()=>new xc;var gR=e=>Promise.resolve(e),xR=e=>Promise.reject(e),yR=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Zw=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),bR=async(e,t=6e4)=>Zw(e,t,!1),wR=async e=>{let t=jo();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},vR=e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})});var wn=async(e,t,r=!1)=>(await new yc(e,null,r).promise,t),SR=async(e,t,r,n=!1)=>(await wn(Math.random()*(t-e)+e,null,n),r),yc=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=jo(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var Un={};var lt={};te(lt,{TypedHandler:()=>yx,TypedRequest:()=>Ul,TypedResponseError:()=>En,TypedRouter:()=>$l,TypedTarget:()=>bx,VirtualStream:()=>tn});var bt={};te(bt,{AsyncExecutionStack:()=>jd,BackpressuredArray:()=>qd,FastMap:()=>cl,Interest:()=>fl,InterestMap:()=>Hd,LimitedArray:()=>Wd,LoopTracker:()=>Yd,ObjectMap:()=>Zo,Stringmap:()=>Vd,TimedAggregtor:()=>Gd,Tree:()=>Qd,uni:()=>A1});var rr={};te(rr,{SmartMatch:()=>bd});var Ga={};te(Ga,{isMatch:()=>ER,matcher:()=>TR});function qo(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var yd=new Map,Kw=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},kR=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(yd.has(r))return yd.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=qo(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,yd.set(r,o),o},ev=(e,t,r,n)=>{if(e=Kw(e,"inputs"),t=Kw(t,"patterns"),t.length===0)return[];t=t.map(s=>kR(s,r));let{allPatterns:o}=r||{},i=[];for(let s of e){let a,l=[...t].fill(!1);for(let[u,c]of t.entries())if(c.test(s)&&(l[u]=!0,a=!c.negated,!a))break;if(!(a===!1||a===void 0&&t.some(u=>!u.negated)||o&&l.some((u,c)=>!u&&!t[c].negated))&&(i.push(s),n))break}return i};function TR(e,t,r){return ev(e,t,r,!1)}function ER(e,t,r){return ev(e,t,r,!0).length>0}var bd=class{constructor(t){this.wildcard=t}match(t){return Ga.isMatch(t,this.wildcard)}};var Be={};te(Be,{ObservableIntake:()=>vd,Observablemap:()=>wd,rxjs:()=>os});var os={};te(os,{Observable:()=>Ee,ReplaySubject:()=>Vi,Subject:()=>$t,Subscription:()=>kt,from:()=>bn,fromEvent:()=>Cr,of:()=>Va,ops:()=>CR});var CR={debounce:Zi,debounceTime:Ki,map:zr,startWith:es,takeUntil:ts,throttleTime:rs,filter:Xi};var wd=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let o=Cr(t,r),i=new $t;o.subscribe(i);let s={subject:i,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let i={subject:new $t,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var vd=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ee(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=ue.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;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(t){this.observableFunctions.next(t)}};var st={};te(st,{CronJob:()=>ul,CronManager:()=>Ld,ExtendedDate:()=>Rd,HrtMeasurement:()=>Bd,Interval:()=>$d,TimeStamp:()=>Cs,Timer:()=>Ud,getMilliSecondsAsHumanReadableAgoTime:()=>nB,getMilliSecondsAsHumanReadableString:()=>Nd,getMilliSecondsFromUnits:()=>Fd,units:()=>Kn});var Xa={};te(Xa,{Cron:()=>iv,CronDate:()=>Gt,CronPattern:()=>bc,scheduledJobs:()=>is});function Tt(e,t,r,n,o,i,s,a){return Tt.fromTZ(Tt.tp(e,t,r,n,o,i,s),a)}Tt.fromTZISO=(e,t,r)=>Tt.fromTZ(OR(e,t),r),Tt.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Sd(e.tz,r),o=new Date(r.getTime()-n),i=Sd(e.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=Sd(e.tz,s);if(a-i===0||!t&&a-i>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return o}},Tt.toTZ=function(e,t){let r=e.toLocaleString("en-US",{timeZone:t}).replace(/[\u202f]/," "),n=new Date(r);return{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),tz:t}},Tt.tp=(e,t,r,n,o,i,s)=>({y:e,m:t,d:r,h:n,i:o,s:i,tz:s});function Sd(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function OR(e,t){let r=new Date(Date.parse(e));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=e.substring(9);return e.includes("Z")||n.includes("-")||n.includes("+")?Tt.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Tt.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}Tt.minitz=Tt;var kd=32,Qa=31|kd,tv=[1,2,4,8,16],bc=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(e,t){this.pattern=e,this.timezone=t,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 e=this.pattern.replace(/\s+/g," ").split(" ");if(e.length<5||e.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(e.length===5&&e.unshift("0"),e[3].indexOf("L")>=0&&(e[3]=e[3].replace("L",""),this.lastDayOfMonth=!0),e[3]=="*"&&(this.starDOM=!0),e[4].length>=3&&(e[4]=this.replaceAlphaMonths(e[4])),e[5].length>=3&&(e[5]=this.replaceAlphaDays(e[5])),e[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let t=new Gt(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds().toString()),e[1]=e[1].replace("?",t.getMinutes().toString()),e[2]=e[2].replace("?",t.getHours().toString()),this.starDOM||(e[3]=e[3].replace("?",t.getDate().toString())),e[4]=e[4].replace("?",(t.getMonth()+1).toString()),this.starDOW||(e[5]=e[5].replace("?",t.getDay().toString()))}this.throwAtIllegalCharacters(e),this.partToArray("second",e[0],0,1),this.partToArray("minute",e[1],0,1),this.partToArray("hour",e[2],0,1),this.partToArray("day",e[3],-1,1),this.partToArray("month",e[4],-1,1),this.partToArray("dayOfWeek",e[5],0,Qa),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(e,t,r,n){let o=this[e],i=e==="day"&&this.lastDayOfMonth;if(t===""&&!i)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return o.fill(n);let s=t.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(e,s[a],r,n);else t.indexOf("-")!==-1&&t.indexOf("/")!==-1?this.handleRangeWithStepping(t,e,r,n):t.indexOf("-")!==-1?this.handleRange(t,e,r,n):t.indexOf("/")!==-1?this.handleStepping(t,e,r,n):t!==""&&this.handleNumber(t,e,r,n)}throwAtIllegalCharacters(e){for(let t=0;t<e.length;t++)if((t===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(e[t]))throw new TypeError("CronPattern: configuration entry "+t+" ("+e[t]+") contains illegal characters.")}handleNumber(e,t,r,n){let o=this.extractNth(e,t),i=parseInt(o[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,i,o[1]||n)}setPart(e,t,r){if(!Object.prototype.hasOwnProperty.call(this,e))throw new TypeError("CronPattern: Invalid part specified: "+e);if(e==="dayOfWeek"){if(t===7&&(t=0),t<0||t>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+t);this.setNthWeekdayOfMonth(t,r);return}if(e==="second"||e==="minute"){if(t<0||t>=60)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="hour"){if(t<0||t>=24)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="day"){if(t<0||t>=31)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="month"&&(t<0||t>=12))throw new RangeError("CronPattern: Invalid value for "+e+": "+t);this[e][t]=r}handleRangeWithStepping(e,t,r,n){let o=this.extractNth(e,t),i=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=i,u=parseInt(s,10)+r,c=parseInt(a,10)+r,f=parseInt(l,10);if(isNaN(u))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(f))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(f===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(f>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(u>c)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let p=u;p<=c;p+=f)this.setPart(t,p,o[1]||n)}extractNth(e,t){let r=e,n;if(r.includes("#")){if(t!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]}handleRange(e,t,r,n){let o=this.extractNth(e,t),i=o[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");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: '"+e+"'");for(let l=s;l<=a;l++)this.setPart(t,l,o[1]||n)}handleStepping(e,t,r,n){let o=this.extractNth(e,t),i=o[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");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[t].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[t].length+")");for(let l=s;l<this[t].length;l+=a)this.setPart(t,l,o[1]||n)}replaceAlphaDays(e){return e.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(e){return e.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(e){let t=e.trim().toLowerCase();return t==="@yearly"||t==="@annually"?"0 0 1 1 *":t==="@monthly"?"0 0 1 * *":t==="@weekly"?"0 0 * * 0":t==="@daily"?"0 0 * * *":t==="@hourly"?"0 * * * *":e}setNthWeekdayOfMonth(e,t){if(typeof t!="number"&&t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|kd;else if(t===Qa)this.dayOfWeek[e]=Qa;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|tv[t-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${t}, Type: ${typeof t}`)}},rv=[31,28,31,30,31,30,31,31,30,31,30,31],vn=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Gt=class ov{tz;ms;second;minute;hour;day;month;year;constructor(t,r){if(this.tz=r,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 ov)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}isNthWeekdayOfMonth(t,r,n,o){let i=new Date(Date.UTC(t,r,n)).getUTCDay(),s=0;for(let a=1;a<=n;a++)new Date(Date.UTC(t,r,a)).getUTCDay()===i&&s++;if(o&Qa&&tv[s-1]&o)return!0;if(o&kd){let a=new Date(Date.UTC(t,r+1,0)).getUTCDate();for(let l=n+1;l<=a;l++)if(new Date(Date.UTC(t,r,l)).getUTCDay()===i)return!1;return!0}return!1}fromDate(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 r=Tt.toTZ(t,this.tz);this.ms=t.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=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()}fromCronDate(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}apply(){if(this.month>11||this.day>rv[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}fromString(t){if(typeof this.tz=="number"){let r=Tt.fromTZISO(t);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(Tt.fromTZISO(t,this.tz))}findNext(t,r,n,o){let i=this[r],s;n.lastDayOfMonth&&(this.month!==1?s=rv[this.month]:s=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!n.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let l=this[r]+o;l<n[r].length;l++){let u=n[r][l];if(r==="day"&&n.lastDayOfMonth&&l-o==s&&(u=1),r==="day"&&!n.starDOW){let c=n.dayOfWeek[(a+(l-o-1))%7];if(c&&c&Qa)c=this.isNthWeekdayOfMonth(this.year,this.month,l-o,c)?1:0;else if(c)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${c}`);t.legacyMode&&!n.starDOM?u=u||c:u=u&&c}if(u)return this[r]=l-o,i!==this[r]?2:1}return 3}recurse(t,r,n){let o=this.findNext(r,vn[n][0],t,vn[n][2]);if(o>1){let i=n+1;for(;i<vn.length;)this[vn[i][0]]=-vn[i][2],i++;if(o===3)return this[vn[n][1]]++,this[vn[n][0]]=-vn[n][2],this.apply(),this.recurse(t,r,0);if(this.apply())return this.recurse(t,r,n-1)}return n+=1,n>=vn.length?this:this.year>=3e3?null:this.recurse(t,r,n)}increment(t,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(t,r,0)}getDate(t){return t||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)):Tt.fromTZ(Tt.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function MR(e){if(e===void 0&&(e={}),delete e.name,e.legacyMode=e.legacyMode===void 0?!0:e.legacyMode,e.paused=e.paused===void 0?!1:e.paused,e.maxRuns=e.maxRuns===void 0?1/0:e.maxRuns,e.catch=e.catch===void 0?!1:e.catch,e.interval=e.interval===void 0?0:parseInt(e.interval.toString(),10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset.toString(),10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new Gt(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new Gt(e.stopAt,e.timezone)),e.interval!==null){if(isNaN(e.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(e.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(e.utcOffset!==void 0){if(isNaN(e.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(e.utcOffset<-870||e.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(e.utcOffset!==void 0&&e.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(e.unref!==!0&&e.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return e}function Ja(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function _R(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var nv=30*1e3,is=[],iv=class{name;options;_states;fn;constructor(e,t,r){let n,o;if(Ja(t))o=t;else if(typeof t=="object")n=t;else if(t!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ja(r))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?.name,this.options=MR(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:new bc("* * * * *")},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new Gt(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new bc(e,this.options.timezone),this.name){if(is.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");is.push(this)}return o!==void 0&&Ja(o)&&(this.fn=o,this.schedule()),this}nextRun(e){let t=this._next(e);return t?t.getDate(!1):null}nextRuns(e,t){this._states.maxRuns!==void 0&&e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun||void 0;for(;e--&&(n=this.nextRun(n));)r.push(n);return r}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let e=this.nextRun(this._states.currentRun),t=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return t&&r&&n&&e!==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(e){e=e||new Date;let t=this._next(e);return t?e instanceof Gt||e instanceof Date?t.getTime()-e.getTime():t.getTime()-new Gt(e).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=is.indexOf(this);e>=0&&is.splice(e,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(e){if(e&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");e&&(this.fn=e);let t=this.msToNext(),r=this.nextRun(this._states.currentRun);return t==null||isNaN(t)||r===null?this:(t>nv&&(t=nv),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&_R(this._states.currentTimeout),this)}async _trigger(e){if(this._states.blocking=!0,this._states.currentRun=new Gt(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(t){Ja(this.options.catch)&&this.options.catch(t,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new Gt(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Ja(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(e){let t=!!(e||this._states.currentRun),r=!1;!e&&this.options.startAt&&this.options.interval&&([e,t]=this._calculatePreviousRun(e,t),r=!e),e=new Gt(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let n=this._states.once||new Gt(e,this.options.timezone||this.options.utcOffset);return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,t)),this._states.once&&this._states.once.getTime()<=e.getTime()||n===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&n.getTime()>=this.options.stopAt.getTime()?null:n}_calculatePreviousRun(e,t){let r=new Gt(void 0,this.options.timezone||this.options.utcOffset),n=e;if(this.options.startAt.getTime()<=r.getTime()){n=this.options.startAt;let o=n.getTime()+this.options.interval*1e3;for(;o<=r.getTime();)n=new Gt(n,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),o=n.getTime()+this.options.interval*1e3;t=!0}return n===null&&(n=void 0),[n,t]}};var al={};te(al,{add:()=>jn,addBusinessDays:()=>Oc,addDays:()=>it,addHours:()=>Mc,addISOWeekYears:()=>Ic,addMilliseconds:()=>qn,addMinutes:()=>us,addMonths:()=>qr,addQuarters:()=>cs,addSeconds:()=>Pc,addWeeks:()=>Hn,addYears:()=>Fc,areIntervalsOverlapping:()=>cv,clamp:()=>fv,closestIndexTo:()=>Rc,closestTo:()=>pv,compareAsc:()=>At,compareDesc:()=>hv,constructFrom:()=>L,constructNow:()=>ye,daysToWeeks:()=>mv,differenceInBusinessDays:()=>dv,differenceInCalendarDays:()=>ht,differenceInCalendarISOWeekYears:()=>$c,differenceInCalendarISOWeeks:()=>gv,differenceInCalendarMonths:()=>Wo,differenceInCalendarQuarters:()=>fs,differenceInCalendarWeeks:()=>Yo,differenceInCalendarYears:()=>Wn,differenceInDays:()=>ps,differenceInHours:()=>Vo,differenceInISOWeekYears:()=>yv,differenceInMilliseconds:()=>hs,differenceInMinutes:()=>Go,differenceInMonths:()=>Yn,differenceInQuarters:()=>bv,differenceInSeconds:()=>Vr,differenceInWeeks:()=>wv,differenceInYears:()=>jc,eachDayOfInterval:()=>qc,eachHourOfInterval:()=>vv,eachMinuteOfInterval:()=>Sv,eachMonthOfInterval:()=>kv,eachQuarterOfInterval:()=>Tv,eachWeekOfInterval:()=>Ev,eachWeekendOfInterval:()=>gs,eachWeekendOfMonth:()=>Av,eachWeekendOfYear:()=>Dv,eachYearOfInterval:()=>Cv,endOfDay:()=>ms,endOfDecade:()=>Ov,endOfHour:()=>Mv,endOfISOWeek:()=>_v,endOfISOWeekYear:()=>Iv,endOfMinute:()=>Pv,endOfMonth:()=>ds,endOfQuarter:()=>Fv,endOfSecond:()=>Nv,endOfToday:()=>Lv,endOfTomorrow:()=>Rv,endOfWeek:()=>Wc,endOfYear:()=>Hc,endOfYesterday:()=>Bv,format:()=>rl,formatDate:()=>rl,formatDistance:()=>Jc,formatDistanceStrict:()=>Xc,formatDistanceToNow:()=>Qv,formatDistanceToNowStrict:()=>Jv,formatDuration:()=>Xv,formatISO:()=>Zv,formatISO9075:()=>Kv,formatISODuration:()=>eS,formatRFC3339:()=>tS,formatRFC7231:()=>rS,formatRelative:()=>nS,formatters:()=>el,fromUnixTime:()=>oS,getDate:()=>Zc,getDay:()=>Jn,getDayOfYear:()=>Vc,getDaysInMonth:()=>Kc,getDaysInYear:()=>iS,getDecade:()=>sS,getDefaultOptions:()=>tf,getHours:()=>aS,getISODay:()=>rf,getISOWeek:()=>ws,getISOWeekYear:()=>zt,getISOWeeksInYear:()=>lS,getMilliseconds:()=>uS,getMinutes:()=>cS,getMonth:()=>fS,getOverlappingDaysInIntervals:()=>pS,getQuarter:()=>Ka,getSeconds:()=>hS,getTime:()=>mS,getUnixTime:()=>dS,getWeek:()=>vs,getWeekOfMonth:()=>gS,getWeekYear:()=>Gn,getWeeksInMonth:()=>xS,getYear:()=>yS,hoursToMilliseconds:()=>bS,hoursToMinutes:()=>wS,hoursToSeconds:()=>vS,interval:()=>SS,intervalToDuration:()=>kS,intlFormat:()=>TS,intlFormatDistance:()=>ES,isAfter:()=>AS,isBefore:()=>DS,isDate:()=>Bc,isEqual:()=>CS,isExists:()=>OS,isFirstDayOfMonth:()=>MS,isFriday:()=>_S,isFuture:()=>IS,isLastDayOfMonth:()=>zc,isLeapYear:()=>ef,isMatch:()=>PS,isMonday:()=>FS,isPast:()=>NS,isSameDay:()=>Yr,isSameHour:()=>Gf,isSameISOWeek:()=>Qf,isSameISOWeekYear:()=>LS,isSameMinute:()=>Jf,isSameMonth:()=>Xf,isSameQuarter:()=>Zf,isSameSecond:()=>Kf,isSameWeek:()=>Es,isSameYear:()=>ep,isSaturday:()=>Dc,isSunday:()=>Cc,isThisHour:()=>RS,isThisISOWeek:()=>BS,isThisMinute:()=>$S,isThisMonth:()=>US,isThisQuarter:()=>zS,isThisSecond:()=>jS,isThisWeek:()=>qS,isThisYear:()=>HS,isThursday:()=>WS,isToday:()=>YS,isTomorrow:()=>VS,isTuesday:()=>GS,isValid:()=>yt,isWednesday:()=>QS,isWeekend:()=>Hr,isWithinInterval:()=>JS,isYesterday:()=>XS,lastDayOfDecade:()=>ZS,lastDayOfISOWeek:()=>KS,lastDayOfISOWeekYear:()=>ek,lastDayOfMonth:()=>nf,lastDayOfQuarter:()=>tk,lastDayOfWeek:()=>tp,lastDayOfYear:()=>rk,lightFormat:()=>nk,lightFormatters:()=>ir,longFormatters:()=>Qn,max:()=>Nc,milliseconds:()=>ok,millisecondsToHours:()=>ik,millisecondsToMinutes:()=>sk,millisecondsToSeconds:()=>ak,min:()=>Lc,minutesToHours:()=>lk,minutesToMilliseconds:()=>uk,minutesToSeconds:()=>ck,monthsToQuarters:()=>fk,monthsToYears:()=>pk,nextDay:()=>Ct,nextFriday:()=>hk,nextMonday:()=>mk,nextSaturday:()=>dk,nextSunday:()=>gk,nextThursday:()=>xk,nextTuesday:()=>yk,nextWednesday:()=>bk,parse:()=>Vf,parseISO:()=>vk,parseJSON:()=>Sk,parsers:()=>Yf,previousDay:()=>Ot,previousFriday:()=>kk,previousMonday:()=>Tk,previousSaturday:()=>Ek,previousSunday:()=>Ak,previousThursday:()=>Dk,previousTuesday:()=>Ck,previousWednesday:()=>Ok,quartersToMonths:()=>Mk,quartersToYears:()=>_k,roundToNearestHours:()=>Ik,roundToNearestMinutes:()=>Pk,secondsToHours:()=>Fk,secondsToMilliseconds:()=>Nk,secondsToMinutes:()=>Lk,set:()=>Rk,setDate:()=>Bk,setDay:()=>Xn,setDayOfYear:()=>$k,setDefaultOptions:()=>Uk,setHours:()=>zk,setISODay:()=>Mf,setISOWeek:()=>kf,setISOWeekYear:()=>_c,setMilliseconds:()=>jk,setMinutes:()=>qk,setMonth:()=>As,setQuarter:()=>Hk,setSeconds:()=>Wk,setWeek:()=>vf,setWeekYear:()=>Yk,setYear:()=>Vk,startOfDay:()=>Wr,startOfDecade:()=>Gk,startOfHour:()=>nl,startOfISOWeek:()=>rt,startOfISOWeekYear:()=>or,startOfMinute:()=>ol,startOfMonth:()=>Vn,startOfQuarter:()=>Gr,startOfSecond:()=>il,startOfToday:()=>Qk,startOfTomorrow:()=>Jk,startOfWeek:()=>Ie,startOfWeekYear:()=>Qo,startOfYear:()=>xs,startOfYesterday:()=>Xk,sub:()=>Zk,subBusinessDays:()=>Kk,subDays:()=>Zn,subHours:()=>e1,subISOWeekYears:()=>Uc,subMilliseconds:()=>t1,subMinutes:()=>r1,subMonths:()=>np,subQuarters:()=>n1,subSeconds:()=>o1,subWeeks:()=>i1,subYears:()=>s1,toDate:()=>b,transpose:()=>of,weeksToDays:()=>a1,yearsToDays:()=>l1,yearsToMonths:()=>u1,yearsToQuarters:()=>c1});var vc=7,Za=365.2425,IR=Math.pow(10,8)*24*60*60*1e3,Qie=-IR,jr=6048e5,Sc=864e5,Et=6e4,nr=36e5,ss=1e3,Td=525600,zn=43200,as=1440,kc=60,Tc=3,Ec=12,Ac=4,Ho=3600,ls=60,wc=Ho*24,sv=wc*7,Ed=wc*365.2425,Ad=Ed/12,av=Ad*3,Dd=Symbol.for("constructDateFrom");function L(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Dd in e?e[Dd](t):e instanceof Date?new e.constructor(t):new Date(t)}var Zie=L;function b(e,t){return L(t||e,e)}var tse=b;function it(e,t,r){let n=b(e,r?.in);return isNaN(t)?L(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var ise=it;function qr(e,t,r){let n=b(e,r?.in);if(isNaN(t))return L(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),i=L(r?.in||e,n.getTime());i.setMonth(n.getMonth()+t+1,0);let s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var use=qr;function jn(e,t,r){let{years:n=0,months:o=0,weeks:i=0,days:s=0,hours:a=0,minutes:l=0,seconds:u=0}=t,c=b(e,r?.in),f=o||n?qr(c,o+n*12):c,p=s||i?it(f,s+i*7):f,h=l+a*60,d=(u+h*60)*1e3;return L(r?.in||e,+p+d)}var dse=jn;function Dc(e,t){return b(e,t?.in).getDay()===6}var yse=Dc;function Cc(e,t){return b(e,t?.in).getDay()===0}var vse=Cc;function Hr(e,t){let r=b(e,t?.in).getDay();return r===0||r===6}var Tse=Hr;function Oc(e,t,r){let n=b(e,r?.in),o=Hr(n,r);if(isNaN(t))return L(r?.in,NaN);let i=n.getHours(),s=t<0?-1:1,a=Math.trunc(t/5);n.setDate(n.getDate()+a*7);let l=Math.abs(t%5);for(;l>0;)n.setDate(n.getDate()+s),Hr(n,r)||(l-=1);return o&&Hr(n,r)&&t!==0&&(Dc(n,r)&&n.setDate(n.getDate()+(s<0?2:-1)),Cc(n,r)&&n.setDate(n.getDate()+(s<0?1:-2))),n.setHours(i),n}var _se=Oc;function qn(e,t,r){return L(r?.in||e,+b(e)+t)}var Nse=qn;function Mc(e,t,r){return qn(e,t*nr,r)}var $se=Mc;var lv={};function Oe(){return lv}function uv(e){lv=e}function Ie(e,t){let r=Oe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=b(e,t?.in),i=o.getDay(),s=(i<n?7:0)+i-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}var Hse=Ie;function rt(e,t){return Ie(e,{...t,weekStartsOn:1})}var Vse=rt;function zt(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=L(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let i=rt(o),s=L(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let a=rt(s);return r.getTime()>=i.getTime()?n+1:r.getTime()>=a.getTime()?n:n-1}var Zse=zt;function He(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ne(e,...t){let r=L.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function Wr(e,t){let r=b(e,t?.in);return r.setHours(0,0,0,0),r}var iae=Wr;function ht(e,t,r){let[n,o]=ne(r?.in,e,t),i=Wr(n),s=Wr(o),a=+i-He(i),l=+s-He(s);return Math.round((a-l)/Sc)}var fae=ht;function or(e,t){let r=zt(e,t),n=L(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),rt(n)}var gae=or;function _c(e,t,r){let n=b(e,r?.in),o=ht(n,or(n,r)),i=L(r?.in||e,0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),n=or(i),n.setDate(n.getDate()+o),n}var Sae=_c;function Ic(e,t,r){return _c(e,zt(e,r)+t,r)}var Aae=Ic;function us(e,t,r){let n=b(e,r?.in);return n.setTime(n.getTime()+t*Et),n}var Mae=us;function cs(e,t,r){return qr(e,t*3,r)}var Pae=cs;function Pc(e,t,r){return qn(e,t*1e3,r)}var Lae=Pc;function Hn(e,t,r){return it(e,t*7,r)}var $ae=Hn;function Fc(e,t,r){return qr(e,t*12,r)}var jae=Fc;function cv(e,t,r){let[n,o]=[+b(e.start,r?.in),+b(e.end,r?.in)].sort((a,l)=>a-l),[i,s]=[+b(t.start,r?.in),+b(t.end,r?.in)].sort((a,l)=>a-l);return r?.inclusive?n<=s&&i<=o:n<s&&i<o}var Wae=cv;function Nc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=L.bind(null,o));let i=b(o,n);(!r||r<i||isNaN(+i))&&(r=i)}),L(n,r||NaN)}var Qae=Nc;function Lc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=L.bind(null,o));let i=b(o,n);(!r||r>i||isNaN(+i))&&(r=i)}),L(n,r||NaN)}var Kae=Lc;function fv(e,t,r){let[n,o,i]=ne(r?.in,e,t.start,t.end);return Lc([Nc([n,o],r),i],r)}var ole=fv;function Rc(e,t){let r=+b(e);if(isNaN(r))return NaN;let n,o;return t.forEach((i,s)=>{let a=b(i);if(isNaN(+a)){n=NaN,o=NaN;return}let l=Math.abs(r-+a);(n==null||l<o)&&(n=s,o=l)}),n}var ale=Rc;function pv(e,t,r){let[n,...o]=ne(r?.in,e,...t),i=Rc(n,o);if(typeof i=="number"&&isNaN(i))return L(n,NaN);if(i!==void 0)return o[i]}var ple=pv;function At(e,t){let r=+b(e)-+b(t);return r<0?-1:r>0?1:r}var dle=At;function hv(e,t){let r=+b(e)-+b(t);return r>0?-1:r<0?1:r}var yle=hv;function ye(e){return L(e,Date.now())}var vle=ye;function mv(e){let t=Math.trunc(e/7);return t===0?0:t}var Tle=mv;function Yr(e,t,r){let[n,o]=ne(r?.in,e,t);return+Wr(n)==+Wr(o)}var Cle=Yr;function Bc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Mle=Bc;function yt(e){return!(!Bc(e)&&typeof e!="number"||isNaN(+b(e)))}var Fle=yt;function dv(e,t,r){let[n,o]=ne(r?.in,e,t);if(!yt(n)||!yt(o))return NaN;let i=ht(n,o),s=i<0?-1:1,a=Math.trunc(i/7),l=a*5,u=it(o,a*7);for(;!Yr(n,u);)l+=Hr(u,r)?0:s,u=it(u,s);return l===0?0:l}var jle=dv;function $c(e,t,r){let[n,o]=ne(r?.in,e,t);return zt(n,r)-zt(o,r)}var Yle=$c;function gv(e,t,r){let[n,o]=ne(r?.in,e,t),i=rt(n),s=rt(o),a=+i-He(i),l=+s-He(s);return Math.round((a-l)/jr)}var Zle=gv;function Wo(e,t,r){let[n,o]=ne(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=n.getMonth()-o.getMonth();return i*12+s}var tue=Wo;function Ka(e,t){let r=b(e,t?.in);return Math.trunc(r.getMonth()/3)+1}var oue=Ka;function fs(e,t,r){let[n,o]=ne(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=Ka(n)-Ka(o);return i*4+s}var lue=fs;function Yo(e,t,r){let[n,o]=ne(r?.in,e,t),i=Ie(n,r),s=Ie(o,r),a=+i-He(i),l=+s-He(s);return Math.round((a-l)/jr)}var mue=Yo;function Wn(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()-o.getFullYear()}var xue=Wn;function ps(e,t,r){let[n,o]=ne(r?.in,e,t),i=xv(n,o),s=Math.abs(ht(n,o));n.setDate(n.getDate()-i*s);let a=+(xv(n,o)===-i),l=i*(s-a);return l===0?0:l}function xv(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}var vue=ps;function Dt(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Vo(e,t,r){let[n,o]=ne(r?.in,e,t),i=(+n-+o)/nr;return Dt(r?.roundingMethod)(i)}var Due=Vo;function Uc(e,t,r){return Ic(e,-t,r)}var Mue=Uc;function yv(e,t,r){let[n,o]=ne(r?.in,e,t),i=At(n,o),s=Math.abs($c(n,o,r)),a=Uc(n,i*s,r),l=+(At(a,o)===-i),u=i*(s-l);return u===0?0:u}var Lue=yv;function hs(e,t){return+b(e)-+b(t)}var $ue=hs;function Go(e,t,r){let n=hs(e,t)/Et;return Dt(r?.roundingMethod)(n)}var Hue=Go;function ms(e,t){let r=b(e,t?.in);return r.setHours(23,59,59,999),r}var Vue=ms;function ds(e,t){let r=b(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}var Jue=ds;function zc(e,t){let r=b(e,t?.in);return+ms(r,t)==+ds(r,t)}var tce=zc;function Yn(e,t,r){let[n,o,i]=ne(r?.in,e,e,t),s=At(o,i),a=Math.abs(Wo(o,i));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*a);let l=At(o,i)===-s;zc(n)&&a===1&&At(n,i)===1&&(l=!1);let u=s*(a-+l);return u===0?0:u}var ace=Yn;function bv(e,t,r){let n=Yn(e,t,r)/3;return Dt(r?.roundingMethod)(n)}var fce=bv;function Vr(e,t,r){let n=hs(e,t)/1e3;return Dt(r?.roundingMethod)(n)}var dce=Vr;function wv(e,t,r){let n=ps(e,t,r)/7;return Dt(r?.roundingMethod)(n)}var bce=wv;function jc(e,t,r){let[n,o]=ne(r?.in,e,t),i=At(n,o),s=Math.abs(Wn(n,o));n.setFullYear(1584),o.setFullYear(1584);let a=At(n,o)===-i,l=i*(s-+a);return l===0?0:l}var Tce=jc;function mt(e,t){let[r,n]=ne(e,t.start,t.end);return{start:r,end:n}}function qc(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?l.reverse():l}var Mce=qc;function vv(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setMinutes(0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s.setHours(s.getHours()+a);return o?l.reverse():l}var Fce=vv;function Sv(e,t){let{start:r,end:n}=mt(t?.in,e);r.setSeconds(0,0);let o=+r>+n,i=o?+r:+n,s=o?n:r,a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s=us(s,a);return o?l.reverse():l}var $ce=Sv;function kv(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}var qce=kv;function Gr(e,t){let r=b(e,t?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}var Yce=Gr;function Tv(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+Gr(r):+Gr(n),s=o?Gr(n):Gr(r),a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s=cs(s,a);return o?l.reverse():l}var Zce=Tv;function Ev(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?Ie(n,t):Ie(r,t),s=o?Ie(r,t):Ie(n,t);i.setHours(15),s.setHours(15);let a=+s.getTime(),l=i,u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let c=[];for(;+l<=a;)l.setHours(0),c.push(L(r,l)),l=Hn(l,u),l.setHours(15);return o?c.reverse():c}var ofe=Ev;function gs(e,t){let{start:r,end:n}=mt(t?.in,e),o=qc({start:r,end:n},t),i=[],s=0;for(;s<o.length;){let a=o[s++];Hr(a)&&i.push(L(r,a))}return i}var cfe=gs;function Vn(e,t){let r=b(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}var hfe=Vn;function Av(e,t){let r=Vn(e,t),n=ds(e,t);return gs({start:r,end:n},t)}var yfe=Av;function Hc(e,t){let r=b(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}var vfe=Hc;function xs(e,t){let r=b(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Tfe=xs;function Dv(e,t){let r=xs(e,t),n=Hc(e,t);return gs({start:r,end:n},t)}var Ofe=Dv;function Cv(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setMonth(0,1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s.setFullYear(s.getFullYear()+a);return o?l.reverse():l}var Pfe=Cv;function Ov(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r}var Lfe=Ov;function Mv(e,t){let r=b(e,t?.in);return r.setMinutes(59,59,999),r}var $fe=Mv;function Wc(e,t){let r=Oe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=b(e,t?.in),i=o.getDay(),s=(i<n?-7:0)+6-(i-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}var qfe=Wc;function _v(e,t){return Wc(e,{...t,weekStartsOn:1})}var Yfe=_v;function Iv(e,t){let r=zt(e,t),n=L(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=rt(n,t);return o.setMilliseconds(o.getMilliseconds()-1),o}var Xfe=Iv;function Pv(e,t){let r=b(e,t?.in);return r.setSeconds(59,999),r}var epe=Pv;function Fv(e,t){let r=b(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}var npe=Fv;function Nv(e,t){let r=b(e,t?.in);return r.setMilliseconds(999),r}var spe=Nv;function Lv(e){return ms(Date.now(),e)}var upe=Lv;function Rv(e){let t=ye(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=ye(e?.in);return i.setFullYear(r,n,o+1),i.setHours(23,59,59,999),e?.in?e.in(i):i}var ppe=Rv;function Bv(e){let t=ye(e?.in),r=L(e?.in,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),r.setHours(23,59,59,999),r}var gpe=Bv;var PR={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"}},$v=(e,t,r)=>{let n,o=PR[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Yc(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var FR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},LR={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uv={date:Yc({formats:FR,defaultWidth:"full"}),time:Yc({formats:NR,defaultWidth:"full"}),dateTime:Yc({formats:LR,defaultWidth:"full"})};var RR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zv=(e,t,r,n)=>RR[e];function ys(e){return(t,r)=>{let n=r?.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):s;o=e.formattingValues[a]||e.formattingValues[s]}else{let s=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}let i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}var BR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$R={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},UR={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"]},zR={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"]},jR={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"}},qR={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"}},HR=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},jv={ordinalNumber:HR,era:ys({values:BR,defaultWidth:"wide"}),quarter:ys({values:$R,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ys({values:UR,defaultWidth:"wide"}),day:ys({values:zR,defaultWidth:"wide"}),dayPeriod:ys({values:jR,defaultWidth:"wide",formattingValues:qR,defaultFormattingWidth:"wide"})};function bs(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;let s=i[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?YR(a,f=>f.test(s)):WR(a,f=>f.test(s)),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;let c=t.slice(s.length);return{value:u,rest:c}}}function WR(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function YR(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function qv(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;let a=t.slice(o.length);return{value:s,rest:a}}}var VR=/^(\d+)(th|st|nd|rd)?/i,GR=/\d+/i,QR={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},JR={any:[/^b/i,/^(a|c)/i]},XR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZR={any:[/1/i,/2/i,/3/i,/4/i]},KR={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},e2={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]},t2={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},r2={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]},n2={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},o2={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}},Hv={ordinalNumber:qv({matchPattern:VR,parsePattern:GR,valueCallback:e=>parseInt(e,10)}),era:bs({matchPatterns:QR,defaultMatchWidth:"wide",parsePatterns:JR,defaultParseWidth:"any"}),quarter:bs({matchPatterns:XR,defaultMatchWidth:"wide",parsePatterns:ZR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bs({matchPatterns:KR,defaultMatchWidth:"wide",parsePatterns:e2,defaultParseWidth:"any"}),day:bs({matchPatterns:t2,defaultMatchWidth:"wide",parsePatterns:r2,defaultParseWidth:"any"}),dayPeriod:bs({matchPatterns:n2,defaultMatchWidth:"any",parsePatterns:o2,defaultParseWidth:"any"})};var Qt={code:"en-US",formatDistance:$v,formatLong:Uv,formatRelative:zv,localize:jv,match:Hv,options:{weekStartsOn:0,firstWeekContainsDate:1}},Lpe=Qt;function Vc(e,t){let r=b(e,t?.in);return ht(r,xs(r))+1}var qpe=Vc;function ws(e,t){let r=b(e,t?.in),n=+rt(r)-+or(r);return Math.round(n/jr)+1}var Qpe=ws;function Gn(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=Oe(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=L(t?.in||e,0);s.setFullYear(n+1,0,i),s.setHours(0,0,0,0);let a=Ie(s,t),l=L(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);let u=Ie(l,t);return+r>=+a?n+1:+r>=+u?n:n-1}var the=Gn;function Qo(e,t){let r=Oe(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Gn(e,t),i=L(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Ie(i,t)}var ahe=Qo;function vs(e,t){let r=b(e,t?.in),n=+Ie(r,t)-+Qo(r,t);return Math.round(n/jr)+1}var hhe=vs;function K(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var ir={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return K(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):K(r+1,2)},d(e,t){return K(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){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(e,t){return K(e.getHours()%12||12,t.length)},H(e,t){return K(e.getHours(),t.length)},m(e,t){return K(e.getMinutes(),t.length)},s(e,t){return K(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return K(o,t.length)}};var Ss={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},el={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return ir.y(e,t)},Y:function(e,t,r,n){let o=Gn(e,n),i=o>0?o:1-o;if(t==="YY"){let s=i%100;return K(s,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):K(i,t.length)},R:function(e,t){let r=zt(e);return K(r,t.length)},u:function(e,t){let r=e.getFullYear();return K(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return K(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return K(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return ir.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return K(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=vs(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):K(o,t.length)},I:function(e,t,r){let n=ws(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):K(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ir.d(e,t)},D:function(e,t,r){let n=Vc(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):K(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return K(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});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"})}},c:function(e,t,r,n){let o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return K(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return K(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=Ss.noon:n===0?o=Ss.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=Ss.evening:n>=12?o=Ss.afternoon:n>=4?o=Ss.morning:o=Ss.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ir.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ir.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):K(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):K(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ir.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ir.s(e,t)},S:function(e,t){return ir.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Yv(n);case"XXXX":case"XX":return Jo(n);case"XXXXX":case"XXX":default:return Jo(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Yv(n);case"xxxx":case"xx":return Jo(n);case"xxxxx":case"xxx":default:return Jo(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Wv(n,":");case"OOOO":default:return"GMT"+Jo(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Wv(n,":");case"zzzz":default:return"GMT"+Jo(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return K(n,t.length)},T:function(e,t,r){return K(+e,t.length)}};function Wv(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return i===0?r+String(o):r+String(o)+t+K(i,2)}function Yv(e,t){return e%60===0?(e>0?"-":"+")+K(Math.abs(e)/60,2):Jo(e,t)}function Jo(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=K(Math.trunc(n/60),2),i=K(n%60,2);return r+o+t+i}var Vv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Gv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},i2=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Vv(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Vv(n,t)).replace("{{time}}",Gv(o,t))},Qn={p:Gv,P:i2};var s2=/^D+$/,a2=/^Y+$/,l2=["D","DD","YY","YYYY"];function Gc(e){return s2.test(e)}function Qc(e){return a2.test(e)}function tl(e,t,r){let n=u2(e,t,r);if(console.warn(n),l2.includes(e))throw new RangeError(n)}function u2(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var c2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,f2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p2=/^'([^]*?)'?$/,h2=/''/g,m2=/[a-zA-Z]/;function rl(e,t,r){let n=Oe(),o=r?.locale??n.locale??Qt,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=b(e,r?.in);if(!yt(a))throw new RangeError("Invalid time value");let l=t.match(f2).map(c=>{let f=c[0];if(f==="p"||f==="P"){let p=Qn[f];return p(c,o.formatLong)}return c}).join("").match(c2).map(c=>{if(c==="''")return{isToken:!1,value:"'"};let f=c[0];if(f==="'")return{isToken:!1,value:d2(c)};if(el[f])return{isToken:!0,value:c};if(f.match(m2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:c}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));let u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(c=>{if(!c.isToken)return c.value;let f=c.value;(!r?.useAdditionalWeekYearTokens&&Qc(f)||!r?.useAdditionalDayOfYearTokens&&Gc(f))&&tl(f,t,String(e));let p=el[f[0]];return p(a,f,o.localize,u)}).join("")}function d2(e){let t=e.match(p2);return t?t[1].replace(h2,"'"):e}var Nhe=rl;function Jc(e,t,r){let n=Oe(),o=r?.locale??n.locale??Qt,i=2520,s=At(e,t);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,u]=ne(r?.in,...s>0?[t,e]:[e,t]),c=Vr(u,l),f=(He(u)-He(l))/1e3,p=Math.round((c-f)/60),h;if(p<2)return r?.includeSeconds?c<5?o.formatDistance("lessThanXSeconds",5,a):c<10?o.formatDistance("lessThanXSeconds",10,a):c<20?o.formatDistance("lessThanXSeconds",20,a):c<40?o.formatDistance("halfAMinute",0,a):c<60?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",1,a):p===0?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",p,a);if(p<45)return o.formatDistance("xMinutes",p,a);if(p<90)return o.formatDistance("aboutXHours",1,a);if(p<as){let m=Math.round(p/60);return o.formatDistance("aboutXHours",m,a)}else{if(p<i)return o.formatDistance("xDays",1,a);if(p<zn){let m=Math.round(p/as);return o.formatDistance("xDays",m,a)}else if(p<zn*2)return h=Math.round(p/zn),o.formatDistance("aboutXMonths",h,a)}if(h=Yn(u,l),h<12){let m=Math.round(p/zn);return o.formatDistance("xMonths",m,a)}else{let m=h%12,d=Math.trunc(h/12);return m<3?o.formatDistance("aboutXYears",d,a):m<9?o.formatDistance("overXYears",d,a):o.formatDistance("almostXYears",d+1,a)}}var Whe=Jc;function Xc(e,t,r){let n=Oe(),o=r?.locale??n.locale??Qt,i=At(e,t);if(isNaN(i))throw new RangeError("Invalid time value");let s=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[a,l]=ne(r?.in,...i>0?[t,e]:[e,t]),u=Dt(r?.roundingMethod??"round"),c=l.getTime()-a.getTime(),f=c/Et,p=He(l)-He(a),h=(c-p)/Et,m=r?.unit,d;if(m?d=m:f<1?d="second":f<60?d="minute":f<as?d="hour":h<zn?d="day":h<Td?d="month":d="year",d==="second"){let g=u(c/1e3);return o.formatDistance("xSeconds",g,s)}else if(d==="minute"){let g=u(f);return o.formatDistance("xMinutes",g,s)}else if(d==="hour"){let g=u(f/60);return o.formatDistance("xHours",g,s)}else if(d==="day"){let g=u(h/as);return o.formatDistance("xDays",g,s)}else if(d==="month"){let g=u(h/zn);return g===12&&m!=="month"?o.formatDistance("xYears",1,s):o.formatDistance("xMonths",g,s)}else{let g=u(h/Td);return o.formatDistance("xYears",g,s)}}var eme=Xc;function Qv(e,t){return Jc(e,ye(e),t)}var ome=Qv;function Jv(e,t){return Xc(e,ye(e),t)}var lme=Jv;var g2=["years","months","weeks","days","hours","minutes","seconds"];function Xv(e,t){let r=Oe(),n=t?.locale??r.locale??Qt,o=t?.format??g2,i=t?.zero??!1,s=t?.delimiter??" ";return n.formatDistance?o.reduce((l,u)=>{let c=`x${u.replace(/(^.)/,p=>p.toUpperCase())}`,f=e[u];return f!==void 0&&(i||e[u])?l.concat(n.formatDistance(c,f)):l},[]).join(s):""}var pme=Xv;function Zv(e,t){let r=b(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",i="",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(o!=="time"){let u=K(r.getDate(),2),c=K(r.getMonth()+1,2);i=`${K(r.getFullYear(),4)}${a}${c}${a}${u}`}if(o!=="date"){let u=r.getTimezoneOffset();if(u!==0){let d=Math.abs(u),g=K(Math.trunc(d/60),2),y=K(d%60,2);s=`${u<0?"+":"-"}${g}:${y}`}else s="Z";let c=K(r.getHours(),2),f=K(r.getMinutes(),2),p=K(r.getSeconds(),2),h=i===""?"":"T",m=[c,f,p].join(l);i=`${i}${h}${m}${s}`}return i}var gme=Zv;function Kv(e,t){let r=b(e,t?.in);if(!yt(r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",i="",s=n==="extended"?"-":"",a=n==="extended"?":":"";if(o!=="time"){let l=K(r.getDate(),2),u=K(r.getMonth()+1,2);i=`${K(r.getFullYear(),4)}${s}${u}${s}${l}`}if(o!=="date"){let l=K(r.getHours(),2),u=K(r.getMinutes(),2),c=K(r.getSeconds(),2);i=`${i}${i===""?"":" "}${l}${a}${u}${a}${c}`}return i}var vme=Kv;function eS(e){let{years:t=0,months:r=0,days:n=0,hours:o=0,minutes:i=0,seconds:s=0}=e;return`P${t}Y${r}M${n}DT${o}H${i}M${s}S`}var kme=eS;function tS(e,t){let r=b(e,t?.in);if(!yt(r))throw new RangeError("Invalid time value");let n=t?.fractionDigits??0,o=K(r.getDate(),2),i=K(r.getMonth()+1,2),s=r.getFullYear(),a=K(r.getHours(),2),l=K(r.getMinutes(),2),u=K(r.getSeconds(),2),c="";if(n>0){let h=r.getMilliseconds(),m=Math.trunc(h*Math.pow(10,n-3));c="."+K(m,n)}let f="",p=r.getTimezoneOffset();if(p!==0){let h=Math.abs(p),m=K(Math.trunc(h/60),2),d=K(h%60,2);f=`${p<0?"+":"-"}${m}:${d}`}else f="Z";return`${s}-${i}-${o}T${a}:${l}:${u}${c}${f}`}var Cme=tS;var x2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],y2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function rS(e){let t=b(e);if(!yt(t))throw new RangeError("Invalid time value");let r=x2[t.getUTCDay()],n=K(t.getUTCDate(),2),o=y2[t.getUTCMonth()],i=t.getUTCFullYear(),s=K(t.getUTCHours(),2),a=K(t.getUTCMinutes(),2),l=K(t.getUTCSeconds(),2);return`${r}, ${n} ${o} ${i} ${s}:${a}:${l} GMT`}var Pme=rS;function nS(e,t,r){let[n,o]=ne(r?.in,e,t),i=Oe(),s=r?.locale??i.locale??Qt,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=ht(n,o);if(isNaN(l))throw new RangeError("Invalid time value");let u;l<-6?u="other":l<-1?u="lastWeek":l<0?u="yesterday":l<1?u="today":l<2?u="tomorrow":l<7?u="nextWeek":u="other";let c=s.formatRelative(u,n,o,{locale:s,weekStartsOn:a});return rl(n,c,{locale:s,weekStartsOn:a})}var Ume=nS;function oS(e,t){return b(e*1e3,t?.in)}var qme=oS;function Zc(e,t){return b(e,t?.in).getDate()}var Yme=Zc;function Jn(e,t){return b(e,t?.in).getDay()}var Qme=Jn;function Kc(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=L(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}var Kme=Kc;function ef(e,t){let n=b(e,t?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}var rde=ef;function iS(e,t){let r=b(e,t?.in);return Number.isNaN(+r)?NaN:ef(r)?366:365}var sde=iS;function sS(e,t){let n=b(e,t?.in).getFullYear();return Math.floor(n/10)*10}var ude=sS;function tf(){return Object.assign({},Oe())}var pde=tf;function aS(e,t){return b(e,t?.in).getHours()}var dde=aS;function rf(e,t){let r=b(e,t?.in).getDay();return r===0?7:r}var yde=rf;function lS(e,t){let r=or(e,t),o=+or(Hn(r,60))-+r;return Math.round(o/jr)}var kde=lS;function uS(e){return b(e).getMilliseconds()}var Ade=uS;function cS(e,t){return b(e,t?.in).getMinutes()}var Ode=cS;function fS(e,t){return b(e,t?.in).getMonth()}var Ide=fS;function pS(e,t){let[r,n]=[+b(e.start),+b(e.end)].sort((f,p)=>f-p),[o,i]=[+b(t.start),+b(t.end)].sort((f,p)=>f-p);if(!(r<i&&o<n))return 0;let a=o<r?r:o,l=a-He(a),u=i>n?n:i,c=u-He(u);return Math.ceil((c-l)/Sc)}var Rde=pS;function hS(e){return b(e).getSeconds()}var Ude=hS;function mS(e){return+b(e)}var qde=mS;function dS(e){return Math.trunc(+b(e)/1e3)}var Yde=dS;function gS(e,t){let r=Oe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Zc(b(e,t?.in));if(isNaN(o))return NaN;let i=Jn(Vn(e,t)),s=n-i;s<=0&&(s+=7);let a=o-s;return Math.ceil(a/7)+1}var Kde=gS;function nf(e,t){let r=b(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),b(r,t?.in)}var rge=nf;function xS(e,t){let r=b(e,t?.in);return Yo(nf(r,t),Vn(r,t),t)+1}var lge=xS;function yS(e,t){return b(e,t?.in).getFullYear()}var fge=yS;function bS(e){return Math.trunc(e*nr)}var mge=bS;function wS(e){return Math.trunc(e*kc)}var xge=wS;function vS(e){return Math.trunc(e*Ho)}var wge=vS;function SS(e,t,r){let[n,o]=ne(r?.in,e,t);if(isNaN(+n))throw new TypeError("Start date is invalid");if(isNaN(+o))throw new TypeError("End date is invalid");if(r?.assertPositive&&+n>+o)throw new TypeError("End date must be after start date");return{start:n,end:o}}var kge=SS;function kS(e,t){let{start:r,end:n}=mt(t?.in,e),o={},i=jc(n,r);i&&(o.years=i);let s=jn(r,{years:o.years}),a=Yn(n,s);a&&(o.months=a);let l=jn(s,{months:o.months}),u=ps(n,l);u&&(o.days=u);let c=jn(l,{days:o.days}),f=Vo(n,c);f&&(o.hours=f);let p=jn(c,{hours:o.hours}),h=Go(n,p);h&&(o.minutes=h);let m=jn(p,{minutes:o.minutes}),d=Vr(n,m);return d&&(o.seconds=d),o}var Pge=kS;function TS(e,t,r){let n;return b2(t)?n=t:r=t,new Intl.DateTimeFormat(r?.locale,n).format(b(e))}function b2(e){return e!==void 0&&!("locale"in e)}var Lge=TS;function ES(e,t,r){let n=0,o,[i,s]=ne(r?.in,e,t);if(r?.unit)o=r?.unit,o==="second"?n=Vr(i,s):o==="minute"?n=Go(i,s):o==="hour"?n=Vo(i,s):o==="day"?n=ht(i,s):o==="week"?n=Yo(i,s):o==="month"?n=Wo(i,s):o==="quarter"?n=fs(i,s):o==="year"&&(n=Wn(i,s));else{let l=Vr(i,s);Math.abs(l)<ls?(n=Vr(i,s),o="second"):Math.abs(l)<Ho?(n=Go(i,s),o="minute"):Math.abs(l)<wc&&Math.abs(ht(i,s))<1?(n=Vo(i,s),o="hour"):Math.abs(l)<sv&&(n=ht(i,s))&&Math.abs(n)<7?o="day":Math.abs(l)<Ad?(n=Yo(i,s),o="week"):Math.abs(l)<av?(n=Wo(i,s),o="month"):Math.abs(l)<Ed?fs(i,s)<4?(n=fs(i,s),o="quarter"):(n=Wn(i,s),o="year"):(n=Wn(i,s),o="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,o)}var Gge=ES;function AS(e,t){return+b(e)>+b(t)}var Xge=AS;function DS(e,t){return+b(e)<+b(t)}var exe=DS;function CS(e,t){return+b(e)==+b(t)}var nxe=CS;function OS(e,t,r){let n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}var ixe=OS;function MS(e,t){return b(e,t?.in).getDate()===1}var lxe=MS;function _S(e,t){return b(e,t?.in).getDay()===5}var fxe=_S;function IS(e){return+b(e)>Date.now()}var mxe=IS;function of(e,t){let r=w2(t)?new t(0):L(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function w2(e){return typeof e=="function"&&e.prototype?.constructor===e}var xxe=of;var v2=10,sf=class{subPriority=0;validate(t,r){return!0}},af=class extends sf{constructor(t,r,n,o,i){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=o,i&&(this.subPriority=i)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}},lf=class extends sf{priority=v2;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>L(r,n))}set(t,r){return r.timestampIsSet?t:L(t,of(t,this.context))}};var X=class{run(t,r,n,o){let i=this.parse(t,r,n,o);return i?{setter:new af(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,r,n){return!0}};var uf=class extends X{priority=140;parse(t,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,r,n){return r.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var Te={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}/},dr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Me(e,t){return e&&{value:t(e.value),rest:e.rest}}function ve(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function gr(e,t){let r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};let n=r[1]==="+"?1:-1,o=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:n*(o*nr+i*Et+s*ss),rest:t.slice(r[0].length)}}function cf(e){return ve(Te.anyDigitsSigned,e)}function ge(e,t){switch(e){case 1:return ve(Te.singleDigit,t);case 2:return ve(Te.twoDigits,t);case 3:return ve(Te.threeDigits,t);case 4:return ve(Te.fourDigits,t);default:return ve(new RegExp("^\\d{1,"+e+"}"),t)}}function ks(e,t){switch(e){case 1:return ve(Te.singleDigitSigned,t);case 2:return ve(Te.twoDigitsSigned,t);case 3:return ve(Te.threeDigitsSigned,t);case 4:return ve(Te.fourDigitsSigned,t);default:return ve(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Ts(e){switch(e){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 ff(e,t){let r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{let i=n+50,s=Math.trunc(i/100)*100,a=e>=i%100;o=e+s-(a?100:0)}return r?o:1-o}function pf(e){return e%400===0||e%4===0&&e%100!==0}var hf=class extends X{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return Me(ge(4,t),o);case"yo":return Me(n.ordinalNumber(t,{unit:"year"}),o);default:return Me(ge(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n){let o=t.getFullYear();if(n.isTwoDigitYear){let s=ff(n.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let i=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};var mf=class extends X{priority=130;parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Me(ge(4,t),o);case"Yo":return Me(n.ordinalNumber(t,{unit:"year"}),o);default:return Me(ge(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){let i=Gn(t,o);if(n.isTwoDigitYear){let a=ff(n.year,i);return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ie(t,o)}let s=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ie(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var df=class extends X{priority=130;parse(t,r){return r==="R"?ks(4,t):ks(r.length,t)}set(t,r,n){let o=L(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),rt(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var gf=class extends X{priority=130;parse(t,r){return r==="u"?ks(4,t):ks(r.length,t)}set(t,r,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var xf=class extends X{priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return ge(r.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var yf=class extends X{priority=120;parse(t,r,n){switch(r){case"q":case"qq":return ge(r.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var bf=class extends X{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"M":return Me(ve(Te.month,t),o);case"MM":return Me(ge(2,t),o);case"Mo":return Me(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};var wf=class extends X{priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"L":return Me(ve(Te.month,t),o);case"LL":return Me(ge(2,t),o);case"Lo":return Me(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function vf(e,t,r){let n=b(e,r?.in),o=vs(n,r)-t;return n.setDate(n.getDate()-o*7),b(n,r?.in)}var lye=vf;var Sf=class extends X{priority=100;parse(t,r,n){switch(r){case"w":return ve(Te.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return ge(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Ie(vf(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function kf(e,t,r){let n=b(e,r?.in),o=ws(n,r)-t;return n.setDate(n.getDate()-o*7),n}var yye=kf;var Tf=class extends X{priority=100;parse(t,r,n){switch(r){case"I":return ve(Te.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return ge(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return rt(kf(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var S2=[31,28,31,30,31,30,31,31,30,31,30,31],k2=[31,29,31,30,31,30,31,31,30,31,30,31],Ef=class extends X{priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return ve(Te.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return ge(r.length,t)}}validate(t,r){let n=t.getFullYear(),o=pf(n),i=t.getMonth();return o?r>=1&&r<=k2[i]:r>=1&&r<=S2[i]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Af=class extends X{priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return ve(Te.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return ge(r.length,t)}}validate(t,r){let n=t.getFullYear();return pf(n)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function Xn(e,t,r){let n=Oe(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=b(e,r?.in),s=i.getDay(),l=(t%7+7)%7,u=7-o,c=t<0||t>6?t-(s+u)%7:(l+u)%7-(s+u)%7;return it(i,c,r)}var Rye=Xn;var Df=class extends X{priority=90;parse(t,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=Xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var Cf=class extends X{priority=90;parse(t,r,n,o){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(r){case"e":case"ee":return Me(ge(r.length,t),i);case"eo":return Me(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=Xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Of=class extends X{priority=90;parse(t,r,n,o){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(r){case"c":case"cc":return Me(ge(r.length,t),i);case"co":return Me(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=Xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function Mf(e,t,r){let n=b(e,r?.in),o=rf(n,r),i=t-o;return it(n,i,r)}var Kye=Mf;var _f=class extends X{priority=90;parse(t,r,n){let o=i=>i===0?7:i;switch(r){case"i":case"ii":return ge(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Me(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Me(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Me(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Me(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=Mf(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var If=class extends X{priority=80;parse(t,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Ts(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var Pf=class extends X{priority=80;parse(t,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Ts(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var Ff=class extends X{priority=80;parse(t,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Ts(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var Nf=class extends X{priority=70;parse(t,r,n){switch(r){case"h":return ve(Te.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return ge(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,n){let o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var Lf=class extends X{priority=70;parse(t,r,n){switch(r){case"H":return ve(Te.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return ge(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var Rf=class extends X{priority=70;parse(t,r,n){switch(r){case"K":return ve(Te.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return ge(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var Bf=class extends X{priority=70;parse(t,r,n){switch(r){case"k":return ve(Te.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return ge(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,n){let o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var $f=class extends X{priority=60;parse(t,r,n){switch(r){case"m":return ve(Te.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return ge(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]};var Uf=class extends X{priority=50;parse(t,r,n){switch(r){case"s":return ve(Te.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return ge(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]};var zf=class extends X{priority=30;parse(t,r){let n=o=>Math.trunc(o*Math.pow(10,-r.length+3));return Me(ge(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]};var jf=class extends X{priority=10;parse(t,r){switch(r){case"X":return gr(dr.basicOptionalMinutes,t);case"XX":return gr(dr.basic,t);case"XXXX":return gr(dr.basicOptionalSeconds,t);case"XXXXX":return gr(dr.extendedOptionalSeconds,t);case"XXX":default:return gr(dr.extended,t)}}set(t,r,n){return r.timestampIsSet?t:L(t,t.getTime()-He(t)-n)}incompatibleTokens=["t","T","x"]};var qf=class extends X{priority=10;parse(t,r){switch(r){case"x":return gr(dr.basicOptionalMinutes,t);case"xx":return gr(dr.basic,t);case"xxxx":return gr(dr.basicOptionalSeconds,t);case"xxxxx":return gr(dr.extendedOptionalSeconds,t);case"xxx":default:return gr(dr.extended,t)}}set(t,r,n){return r.timestampIsSet?t:L(t,t.getTime()-He(t)-n)}incompatibleTokens=["t","T","X"]};var Hf=class extends X{priority=40;parse(t){return cf(t)}set(t,r,n){return[L(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wf=class extends X{priority=20;parse(t){return cf(t)}set(t,r,n){return[L(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var Yf={G:new uf,y:new hf,Y:new mf,R:new df,u:new gf,Q:new xf,q:new yf,M:new bf,L:new wf,w:new Sf,I:new Tf,d:new Ef,D:new Af,E:new Df,e:new Cf,c:new Of,i:new _f,a:new If,b:new Pf,B:new Ff,h:new Nf,H:new Lf,K:new Rf,k:new Bf,m:new $f,s:new Uf,S:new zf,X:new jf,x:new qf,t:new Hf,T:new Wf};var T2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A2=/^'([^]*?)'?$/,D2=/''/g,C2=/\S/,O2=/[a-zA-Z]/;function Vf(e,t,r,n){let o=()=>L(n?.in||r,NaN),i=tf(),s=n?.locale??i.locale??Qt,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():b(r,n?.in);let u={firstWeekContainsDate:a,weekStartsOn:l,locale:s},c=[new lf(n?.in,r)],f=t.match(E2).map(g=>{let y=g[0];if(y in Qn){let S=Qn[y];return S(g,s.formatLong)}return g}).join("").match(T2),p=[];for(let g of f){!n?.useAdditionalWeekYearTokens&&Qc(g)&&tl(g,t,e),!n?.useAdditionalDayOfYearTokens&&Gc(g)&&tl(g,t,e);let y=g[0],S=Yf[y];if(S){let{incompatibleTokens:k}=S;if(Array.isArray(k)){let R=p.find(T=>k.includes(T.token)||T.token===y);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${g}\` at the same time`)}else if(S.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:y,fullToken:g});let N=S.run(e,g,s.match,u);if(!N)return o();c.push(N.setter),e=N.rest}else{if(y.match(O2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(g==="''"?g="'":y==="'"&&(g=M2(g)),e.indexOf(g)===0)e=e.slice(g.length);else return o()}}if(e.length>0&&C2.test(e))return o();let h=c.map(g=>g.priority).sort((g,y)=>y-g).filter((g,y,S)=>S.indexOf(g)===y).map(g=>c.filter(y=>y.priority===g).sort((y,S)=>S.subPriority-y.subPriority)).map(g=>g[0]),m=b(r,n?.in);if(isNaN(+m))return o();let d={};for(let g of h){if(!g.validate(m,u))return o();let y=g.set(m,d,u);Array.isArray(y)?(m=y[0],Object.assign(d,y[1])):m=y}return m}function M2(e){return e.match(A2)[1].replace(D2,"'")}var V0e=Vf;function PS(e,t,r){return yt(Vf(e,t,new Date,r))}var X0e=PS;function FS(e,t){return b(e,t?.in).getDay()===1}var ewe=FS;function NS(e){return+b(e)<Date.now()}var nwe=NS;function nl(e,t){let r=b(e,t?.in);return r.setMinutes(0,0,0),r}var swe=nl;function Gf(e,t,r){let[n,o]=ne(r?.in,e,t);return+nl(n)==+nl(o)}var cwe=Gf;function Es(e,t,r){let[n,o]=ne(r?.in,e,t);return+Ie(n,r)==+Ie(o,r)}var mwe=Es;function Qf(e,t,r){return Es(e,t,{...r,weekStartsOn:1})}var xwe=Qf;function LS(e,t,r){let[n,o]=ne(r?.in,e,t);return+or(n)==+or(o)}var vwe=LS;function ol(e,t){let r=b(e,t?.in);return r.setSeconds(0,0),r}var Twe=ol;function Jf(e,t){return+ol(e)==+ol(t)}var Dwe=Jf;function Xf(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}var Mwe=Xf;function Zf(e,t,r){let[n,o]=ne(r?.in,e,t);return+Gr(n)==+Gr(o)}var Fwe=Zf;function il(e,t){let r=b(e,t?.in);return r.setMilliseconds(0),r}var Rwe=il;function Kf(e,t){return+il(e)==+il(t)}var Uwe=Kf;function ep(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()===o.getFullYear()}var qwe=ep;function RS(e,t){return Gf(b(e,t?.in),ye(t?.in||e))}var Gwe=RS;function BS(e,t){return Qf(L(t?.in||e,e),ye(t?.in||e))}var Kwe=BS;function $S(e){return Jf(e,ye(e))}var nve=$S;function US(e,t){return Xf(L(t?.in||e,e),ye(t?.in||e))}var lve=US;function zS(e,t){return Zf(L(t?.in||e,e),ye(t?.in||e))}var hve=zS;function jS(e){return Kf(e,ye(e))}var xve=jS;function qS(e,t){return Es(L(t?.in||e,e),ye(t?.in||e),t)}var Sve=qS;function HS(e,t){return ep(L(t?.in||e,e),ye(t?.in||e))}var Dve=HS;function WS(e,t){return b(e,t?.in).getDay()===4}var Mve=WS;function YS(e,t){return Yr(L(t?.in||e,e),ye(t?.in||e))}var Nve=YS;function VS(e,t){return Yr(e,it(ye(t?.in||e),1),t)}var Uve=VS;function GS(e,t){return b(e,t?.in).getDay()===2}var qve=GS;function QS(e,t){return b(e,t?.in).getDay()===3}var Yve=QS;function JS(e,t,r){let n=+b(e,r?.in),[o,i]=[+b(t.start,r?.in),+b(t.end,r?.in)].sort((s,a)=>s-a);return n>=o&&n<=i}var Qve=JS;function Zn(e,t,r){return it(e,-t,r)}var Zve=Zn;function XS(e,t){return Yr(L(t?.in||e,e),Zn(ye(t?.in||e),1))}var oSe=XS;function ZS(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),b(r,t?.in)}var aSe=ZS;function tp(e,t){let r=Oe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=b(e,t?.in),i=o.getDay(),s=(i<n?-7:0)+6-(i-n);return o.setHours(0,0,0,0),o.setDate(o.getDate()+s),o}var fSe=tp;function KS(e,t){return tp(e,{...t,weekStartsOn:1})}var mSe=KS;function ek(e,t){let r=zt(e,t),n=L(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=rt(n,t);return o.setDate(o.getDate()-1),o}var bSe=ek;function tk(e,t){let r=b(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}var SSe=tk;function rk(e,t){let r=b(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}var ESe=rk;var _2=/(\w)\1*|''|'(''|[^'])+('|$)|./g,I2=/^'([^]*?)'?$/,P2=/''/g,F2=/[a-zA-Z]/;function nk(e,t){let r=b(e);if(!yt(r))throw new RangeError("Invalid time value");let n=t.match(_2);return n?n.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return N2(i);let a=ir[s];if(a)return a(r,i);if(s.match(F2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function N2(e){let t=e.match(I2);return t?t[1].replace(P2,"'"):e}var MSe=nk;function ok({years:e,months:t,weeks:r,days:n,hours:o,minutes:i,seconds:s}){let a=0;e&&(a+=e*365.2425),t&&(a+=t*(365.2425/12)),r&&(a+=r*7),n&&(a+=n);let l=a*24*60*60;return o&&(l+=o*60*60),i&&(l+=i*60),s&&(l+=s),Math.trunc(l*1e3)}var PSe=ok;function ik(e){let t=e/nr;return Math.trunc(t)}var LSe=ik;function sk(e){let t=e/Et;return Math.trunc(t)}var $Se=sk;function ak(e){let t=e/ss;return Math.trunc(t)}var jSe=ak;function lk(e){let t=e/kc;return Math.trunc(t)}var WSe=lk;function uk(e){return Math.trunc(e*Et)}var GSe=uk;function ck(e){return Math.trunc(e*ls)}var XSe=ck;function fk(e){let t=e/Tc;return Math.trunc(t)}var eke=fk;function pk(e){let t=e/Ec;return Math.trunc(t)}var nke=pk;function Ct(e,t,r){let n=t-Jn(e,r);return n<=0&&(n+=7),it(e,n,r)}var ake=Ct;function hk(e,t){return Ct(e,5,t)}var cke=hk;function mk(e,t){return Ct(e,1,t)}var hke=mk;function dk(e,t){return Ct(e,6,t)}var gke=dk;function gk(e,t){return Ct(e,0,t)}var bke=gk;function xk(e,t){return Ct(e,4,t)}var Ske=xk;function yk(e,t){return Ct(e,2,t)}var Eke=yk;function bk(e,t){return Ct(e,3,t)}var Cke=bk;function vk(e,t){let r=()=>L(t?.in,NaN),n=t?.additionalDigits??2,o=$2(e),i;if(o.date){let u=U2(o.date,n);i=z2(u.restDateString,u.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,l;if(o.time&&(a=j2(o.time),isNaN(a)))return r();if(o.timezone){if(l=q2(o.timezone),isNaN(l))return r()}else{let u=new Date(s+a),c=b(0,t?.in);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return b(s+a+l,t?.in)}var rp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},L2=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,R2=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,B2=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $2(e){let t={},r=e.split(rp.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],rp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(rp.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){let o=rp.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function U2(e,t){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function z2(e,t){if(t===null)return new Date(NaN);let r=e.match(L2);if(!r)return new Date(NaN);let n=!!r[4],o=sl(r[1]),i=sl(r[2])-1,s=sl(r[3]),a=sl(r[4]),l=sl(r[5])-1;if(n)return G2(t,a,l)?H2(t,a,l):new Date(NaN);{let u=new Date(0);return!Y2(t,i,s)||!V2(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,s)),u)}}function sl(e){return e?parseInt(e):1}function j2(e){let t=e.match(R2);if(!t)return NaN;let r=Cd(t[1]),n=Cd(t[2]),o=Cd(t[3]);return Q2(r,n,o)?r*nr+n*Et+o*1e3:NaN}function Cd(e){return e&&parseFloat(e.replace(",","."))||0}function q2(e){if(e==="Z")return 0;let t=e.match(B2);if(!t)return 0;let r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return J2(n,o)?r*(n*nr+o*Et):NaN}function H2(e,t,r){let n=new Date(0);n.setUTCFullYear(e,0,4);let o=n.getUTCDay()||7,i=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+i),n}var W2=[31,null,31,30,31,30,31,31,30,31,30,31];function wk(e){return e%400===0||e%4===0&&e%100!==0}function Y2(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(W2[t]||(wk(e)?29:28))}function V2(e,t){return t>=1&&t<=(wk(e)?366:365)}function G2(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function Q2(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function J2(e,t){return t>=0&&t<=59}var Pke=vk;function Sk(e,t){let r=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?b(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*(r[8]=="-"?-1:1),+r[5]-(+r[10]||0)*(r[8]=="-"?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)),t?.in):b(NaN,t?.in)}var Lke=Sk;function Ot(e,t,r){let n=Jn(e,r)-t;return n<=0&&(n+=7),Zn(e,n,r)}var Uke=Ot;function kk(e,t){return Ot(e,5,t)}var qke=kk;function Tk(e,t){return Ot(e,1,t)}var Yke=Tk;function Ek(e,t){return Ot(e,6,t)}var Qke=Ek;function Ak(e,t){return Ot(e,0,t)}var Zke=Ak;function Dk(e,t){return Ot(e,4,t)}var t1e=Dk;function Ck(e,t){return Ot(e,2,t)}var o1e=Ck;function Ok(e,t){return Ot(e,3,t)}var a1e=Ok;function Mk(e){return Math.trunc(e*Tc)}var c1e=Mk;function _k(e){let t=e/Ac;return Math.trunc(t)}var h1e=_k;function Ik(e,t){let r=t?.nearestTo??1;if(r<1||r>12)return L(t?.in||e,NaN);let n=b(e,t?.in),o=n.getMinutes()/60,i=n.getSeconds()/60/60,s=n.getMilliseconds()/1e3/60/60,a=n.getHours()+o+i+s,l=t?.roundingMethod??"round",c=Dt(l)(a/r)*r;return n.setHours(c,0,0,0),n}var y1e=Ik;function Pk(e,t){let r=t?.nearestTo??1;if(r<1||r>30)return L(e,NaN);let n=b(e,t?.in),o=n.getSeconds()/60,i=n.getMilliseconds()/1e3/60,s=n.getMinutes()+o+i,a=t?.roundingMethod??"round",u=Dt(a)(s/r)*r;return n.setMinutes(u,0,0),n}var k1e=Pk;function Fk(e){let t=e/Ho;return Math.trunc(t)}var A1e=Fk;function Nk(e){return e*ss}var O1e=Nk;function Lk(e){let t=e/ls;return Math.trunc(t)}var I1e=Lk;function As(e,t,r){let n=b(e,r?.in),o=n.getFullYear(),i=n.getDate(),s=L(r?.in||e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);let a=Kc(s);return n.setMonth(t,Math.min(i,a)),n}var R1e=As;function Rk(e,t,r){let n=b(e,r?.in);return isNaN(+n)?L(r?.in||e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=As(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}var j1e=Rk;function Bk(e,t,r){let n=b(e,r?.in);return n.setDate(t),n}var W1e=Bk;function $k(e,t,r){let n=b(e,r?.in);return n.setMonth(0),n.setDate(t),n}var G1e=$k;function Uk(e){let t={},r=Oe();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]===void 0?delete t[n]:t[n]=e[n]);uv(t)}var X1e=Uk;function zk(e,t,r){let n=b(e,r?.in);return n.setHours(t),n}var eTe=zk;function jk(e,t,r){let n=b(e,r?.in);return n.setMilliseconds(t),n}var nTe=jk;function qk(e,t,r){let n=b(e,r?.in);return n.setMinutes(t),n}var sTe=qk;function Hk(e,t,r){let n=b(e,r?.in),o=Math.trunc(n.getMonth()/3)+1,i=t-o;return As(n,n.getMonth()+i*3)}var cTe=Hk;function Wk(e,t,r){let n=b(e,r?.in);return n.setSeconds(t),n}var hTe=Wk;function Yk(e,t,r){let n=Oe(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ht(b(e,r?.in),Qo(e,r),r),s=L(r?.in||e,0);s.setFullYear(t,0,o),s.setHours(0,0,0,0);let a=Qo(s,r);return a.setDate(a.getDate()+i),a}var wTe=Yk;function Vk(e,t,r){let n=b(e,r?.in);return isNaN(+n)?L(r?.in||e,NaN):(n.setFullYear(t),n)}var TTe=Vk;function Gk(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}var DTe=Gk;function Qk(e){return Wr(Date.now(),e)}var MTe=Qk;function Jk(e){let t=ye(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=L(e?.in,0);return i.setFullYear(r,n,o+1),i.setHours(0,0,0,0),i}var FTe=Jk;function Xk(e){let t=ye(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=ye(e?.in);return i.setFullYear(r,n,o-1),i.setHours(0,0,0,0),i}var RTe=Xk;function np(e,t,r){return qr(e,-t,r)}var UTe=np;function Zk(e,t,r){let{years:n=0,months:o=0,weeks:i=0,days:s=0,hours:a=0,minutes:l=0,seconds:u=0}=t,c=np(e,o+n*12,r),f=Zn(c,s+i*7,r),p=l+a*60,m=(u+p*60)*1e3;return L(r?.in||e,+f-m)}var WTe=Zk;function Kk(e,t,r){return Oc(e,-t,r)}var GTe=Kk;function e1(e,t,r){return Mc(e,-t,r)}var XTe=e1;function t1(e,t,r){return qn(e,-t,r)}var eEe=t1;function r1(e,t,r){return us(e,-t,r)}var nEe=r1;function n1(e,t,r){return cs(e,-t,r)}var sEe=n1;function o1(e,t,r){return Pc(e,-t,r)}var uEe=o1;function i1(e,t,r){return Hn(e,-t,r)}var pEe=i1;function s1(e,t,r){return Fc(e,-t,r)}var dEe=s1;function a1(e){return Math.trunc(e*7)}var yEe=a1;function l1(e){return Math.trunc(e*365.2425)}var vEe=l1;function u1(e){return Math.trunc(e*Ec)}var TEe=u1;function c1(e){return Math.trunc(e*Ac)}var DEe=c1;var h1=e=>Number.isFinite(e)?e:0;function X2(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(h1(e*1e3)%1e3),nanoseconds:Math.trunc(h1(e*1e6)%1e3)}}function Z2(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function Pd(e){switch(typeof e){case"number":{if(Number.isFinite(e))return X2(e);break}case"bigint":return Z2(e)}throw new TypeError("Expected a finite number or bigint")}var K2=e=>e===0||e===0n,eB=(e,t)=>t===1||t===1n?e:`${e}s`,tB=1e-7,rB=24n*60n*60n*1000n;function ll(e,t){let r=typeof e=="bigint";if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],i=(c,f)=>{let p=Math.floor(c*10**f+tB);return(Math.round(p)/10**f).toFixed(f)},s=(c,f,p,h)=>{if(!((o.length===0||!t.colonNotation)&&K2(c)&&!(t.colonNotation&&p==="m"))){if(h??=String(c),t.colonNotation){let m=h.includes(".")?h.split(".")[0].length:h.length,d=o.length>0?2:1;h="0".repeat(Math.max(0,d-m))+h}else h+=t.verbose?" "+eB(f,c):p;o.push(h)}},a=Pd(e),l=BigInt(a.days);if(t.hideYearAndDays?s(BigInt(l)*24n+BigInt(a.hours),"hour","h"):(t.hideYear?s(l,"day","d"):(s(l/365n,"year","y"),s(l%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){let c=Number(a.seconds),f=Number(a.milliseconds),p=Number(a.microseconds),h=Number(a.nanoseconds);if(s(c,"second","s"),t.formatSubMilliseconds)s(f,"millisecond","ms"),s(p,"microsecond","\xB5s"),s(h,"nanosecond","ns");else{let m=f+p/1e3+h/1e6,d=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,g=m>=1?Math.round(m):Math.ceil(m),y=d?m.toFixed(d):g;s(Number.parseFloat(y),"millisecond","ms",y)}}else{let c=(r?Number(e%rB):e)/1e3%60,f=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,p=i(c,f),h=t.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");s(Number.parseFloat(h),"second","s",h)}if(o.length===0)return n+"0"+(t.verbose?" milliseconds":"ms");let u=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(u)}var Xo=je(f1(),1),m1=je(p1(),1);Xo.default.extend(m1.default);var d1=class{get cronArray(){return this.cronExpression.split(" ")}constructor(t){if(this.cronExpression=t,this.cronArray.length<6)throw new Error("CronParser needs second level accuracy")}getNextPartMatch(t,r,n){if(t==="*")return r;if(t.includes("/")){let o=parseInt(t.split("/")[1],10),i=s=>s%o===0?s:i(s+1);return i(r)}if(parseInt(t,10)||t==="0")return parseInt(t,10)}msToNext(){let t=this.cronArray,r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=new Date,u=l.getSeconds()+1,c=l.getMinutes(),f=l.getHours(),p=l.getDate(),h=l.getMonth(),m=l.getFullYear(),d=this.getNextPartMatch(r,u,59);d<u&&(c=(c+1)%59);let g=this.getNextPartMatch(n,c,59);g<c&&(f=(f+1)%23);let y=this.getNextPartMatch(o,f,23);y<f&&(p=(p+1)%30);let S=p;S<p&&(h=(h+1)%11);let k=h;k<h&&(m=m+1);let N=m;return new Date(N,k,S,y,g,d).getTime()-Date.now()}};var ul=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Xa.Cron(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let t=this.jobFunction(this.nextExecutionUnix);t instanceof Promise&&t.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 Kn={years:(e=1)=>e*3154e7,months:(e=1)=>e*2628e6,weeks:(e=1)=>e*6048e5,days:(e=1)=>e*864e5,hours:(e=1)=>e*36e5,minutes:(e=1)=>e*6e4,seconds:(e=1)=>e*1e3},Fd=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(Kn.years(e.years)),e.months&&r(Kn.months(e.months)),e.weeks&&r(Kn.weeks(e.weeks)),e.days&&r(Kn.days(e.days)),e.hours&&r(Kn.hours(e.hours)),e.minutes&&r(Kn.minutes(e.minutes)),e.seconds&&r(Kn.seconds(e.seconds)),t},Nd=e=>ll(e),nB=e=>al.formatDistanceToNow(new Date(e));var Ld=class{constructor(){this.status="stopped",this.cronjobs=new bt.ObjectMap}addCronjob(t,r){let n=new ul(this,t,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(t){t.stop(),this.cronjobs.remove(t)}start(){if(this.status!=="started"){this.status="started";for(let t of this.cronjobs.getArray())t.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new ce.Timeout(0);do{let t;for(let r of this.cronjobs.getArray())r.checkExecution(),(!t||r.getTimeToNextExecution()<t.getTimeToNextExecution())&&(t=r);t?(this.executionTimeout=new ce.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${Nd(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new ce.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 t of this.cronjobs.getArray())t.stop()}};var Rd=class e extends Date{static fromMillis(t){return new e(t)}static fromDate(t){return new e(t.getTime())}static fromEuropeanDate(t){let r=/(.*)\.(.*)\.(.*)/.exec(t),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(o)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(t),i=u=>`0${u}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,l=Xo.default(s).toDate().getTime();return new e(l)}constructor(t=Date.now()){super(t)}exportToEuropeanDate(){let t=this.exportToUnits();return`${t.dayString}.${t.monthString}.${t.yearString}`}exportToHyphedSortableDate(){let t=this.exportToUnits();return`${t.yearString}-${t.monthString}-${t.dayString}`}exportToUnits(){let t=["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:t[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(t){return Xo.default(this.getTime()).format(t)}isToday(){return Xo.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=Fd(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var Bd=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 $d=class{constructor(t){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=t}start(){this.status="started";let t=new Date;this.statusAuthorization=t,(async()=>{for(;this.status==="started"&&this.statusAuthorization===t;)await ce.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(t){this.intervalJobs.push(t)}executeIntervalJobs(){for(let t of this.intervalJobs)t()}};var Cs=class e{static fromMilliSeconds(t){return new e(t)}static fromTimeStamp(t){let r=new e;return r.change=r.milliSeconds-t.milliSeconds,r}constructor(t){this.change=null,t?typeof t=="number"&&(this.date=new Date(t)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(t,r=0){return this.milliSeconds<t.milliSeconds-r}isOlderThan(t,r=0){return this.milliSeconds+r<t.milliSeconds}isYoungerThanOtherTimeStamp(t,r=0){return this.milliSeconds>t.milliSeconds+r}isYoungerThanMilliSeconds(t){let n=new e().epochtime-t,o=new e(n);return this.isYoungerThanOtherTimeStamp(o)}};var Ud=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=ue.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Cs;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Cs.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 sp=je(ip(),1);var jd=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=ue.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=ue.defer(),o={funcToExecute:t,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 t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),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(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),ce.delayFor(t.timeout).then(()=>{throw new Error("Timeout reached")})]);t.executionDeferred.resolve(r)}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),ce.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 qd=class{constructor(t=16){this.hasSpace=new Be.rxjs.Subject,this.itemsAvailable=new Be.rxjs.Subject,this.data=[],this.highWaterMark=t}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable())t();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),t()})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0)t();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),t()})}})}};var cl=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var A1=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),Zo=class e{constructor(){this.fastMap=new cl,this.eventSubject=new Be.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=A1("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var fl=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,o){this.destructionTimer=new st.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new ue.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&ce.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 Hd=class{constructor(t,r={}){this.interestObjectMap=new Zo,this.interestObservable=new Be.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,i=new fl(this,t,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(t){let r=this.interestObjectMap.findOneAndRemoveSync(n=>t.comparisonString===n.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return!!this.interestObjectMap.findSync(n=>n.comparisonString===t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var Wd=class{constructor(t){this.array=[],this.arrayLimit=t}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}};var Yd=class{constructor(){this.referenceObjectMap=new Zo}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var Vd=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new rr.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=ue.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var Gd=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new st.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||t()}add(t){this.storageArray.push(t),this.checkAggregationStatus()}};var Qd=class{constructor(){this.symbolTree=new sp.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(t){this.symbolTree.ancestorsIterator()}treeIterator(t,r){return this.symbolTree.treeIterator(t)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=this.treeIterator(t,{});for(let n of r)console.log(n)}fromJsonWithHierachy(t){}};var Ms={};te(Ms,{base64ToUint8Array:()=>OB,ensurePureUint8Array:()=>IB,isBufferLike:()=>_B,isUint8Array:()=>MB,uInt8ArrayExtras:()=>DB,uInt8ArrayToBase64:()=>CB});var oo={};te(oo,{areUint8ArraysEqual:()=>hB,assertUint8Array:()=>no,assertUint8ArrayOrArrayBuffer:()=>M1,base64ToString:()=>wB,base64ToUint8Array:()=>F1,compareUint8Arrays:()=>mB,concatUint8Arrays:()=>pB,getUintBE:()=>TB,hexToUint8Array:()=>kB,includes:()=>EB,indexOf:()=>N1,isUint8Array:()=>Jd,stringToBase64:()=>bB,stringToUint8Array:()=>I1,toUint8Array:()=>fB,uint8ArrayToBase64:()=>P1,uint8ArrayToHex:()=>SB,uint8ArrayToString:()=>_1});var sB=Object.prototype.toString,aB="[object Uint8Array]",lB="[object ArrayBuffer]";function D1(e,t,r){return e?e.constructor===t?!0:sB.call(e)===r:!1}function Jd(e){return D1(e,Uint8Array,aB)}function uB(e){return D1(e,ArrayBuffer,lB)}function cB(e){return Jd(e)||uB(e)}function no(e){if(!Jd(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function M1(e){if(!cB(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function fB(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new TypeError(`Unsupported value, got \`${typeof e}\`.`)}function pB(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((o,i)=>o+i.length,0);let r=new Uint8Array(t),n=0;for(let o of e)no(o),r.set(o,n),n+=o.length;return r}function hB(e,t){if(no(e),no(t),e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function mB(e,t){no(e),no(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]-t[n];if(o!==0)return Math.sign(o)}return Math.sign(e.length-t.length)}var C1={utf8:new globalThis.TextDecoder("utf8")};function _1(e,t="utf8"){return M1(e),C1[t]??=new globalThis.TextDecoder(t),C1[t].decode(e)}function pl(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var dB=new globalThis.TextEncoder;function I1(e){return pl(e),dB.encode(e)}function gB(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function xB(e){return e.replaceAll("-","+").replaceAll("_","/")}var yB=65535;function P1(e,{urlSafe:t=!1}={}){no(e);let r;if(e.length<yB)r=globalThis.btoa(String.fromCodePoint.apply(this,e));else{r="";for(let n of e)r+=String.fromCodePoint(n);r=globalThis.btoa(r)}return t?gB(r):r}function F1(e){return pl(e),Uint8Array.from(globalThis.atob(xB(e)),t=>t.codePointAt(0))}function bB(e,{urlSafe:t=!1}={}){return pl(e),P1(I1(e),{urlSafe:t})}function wB(e){return pl(e),_1(F1(e))}var vB=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function SB(e){no(e);let t="";for(let r=0;r<e.length;r++)t+=vB[e[r]];return t}var O1={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 kB(e){if(pl(e),e.length%2!==0)throw new Error("Invalid Hex string length.");let t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++){let o=O1[e[n*2]],i=O1[e[n*2+1]];if(o===void 0||i===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=o<<4|i}return r}function TB(e){let{byteLength:t}=e;if(t===6)return e.getUint16(0)*2**32+e.getUint32(2);if(t===5)return e.getUint8(0)*2**32+e.getUint32(1);if(t===4)return e.getUint32(0);if(t===3)return e.getUint8(0)*2**16+e.getUint16(1);if(t===2)return e.getUint16(0);if(t===1)return e.getUint8(0)}function N1(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let o=r-n;for(let i=0;i<=o;i++){let s=!0;for(let a=0;a<n;a++)if(e[i+a]!==t[a]){s=!1;break}if(s)return i}return-1}function EB(e,t){return N1(e,t)!==-1}var DB=oo;function CB(e){return oo.uint8ArrayToBase64(e)}function OB(e){return oo.base64ToUint8Array(e)}var MB=e=>oo.isUint8Array(e);function _B(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function IB(e){let t=new Uint8Array(e.length);return t.set(e),t}var gl={};te(gl,{Guard:()=>hl,GuardError:()=>ml,GuardSet:()=>dl,passGuardsOrReject:()=>PB});var hl=class{constructor(t,r){this.guardFunction=t,this.options=r}async exec(t){return await this.guardFunction(t)}async getFailedHint(t){return await this.exec(t)?null:this.options.failedHint}};var ml=class extends Error{constructor(t){super(t),this.name="GuardError"}};var dl=class extends hl{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let i of this.guards){let s=i.exec(t);if(r.mode==="serial"&&await s,n.push(s),r.stopOnFail&&!await s)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(t,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(t,r)).every(o=>o)}async anyGuardsPass(t){return(await this.execAllWithData(t,{mode:"parallel",stopOnFail:!1})).some(n=>n)}getFailedHint(t){for(let r of this.guards){let n=r.getFailedHint(t);if(n)return n}}};var PB=async(e,t)=>{let r=new dl(t);if(!await r.allGuardsPass(e)){let o=await r.getFailedHint(e);throw new ml(`Guards failed:
39
+ ${o}
40
+ `)}};var si={};te(si,{WebRequest:()=>xx});var Qr={};te(Qr,{Smartenv:()=>xl});var xl=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=ue.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,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 Jt={};te(Jt,{Smartjson:()=>ux,deepEqualJsonLStrings:()=>Ij,deepEqualObjects:()=>xD,foldDec:()=>_j,parse:()=>Qs,parseBase64:()=>Mj,parseJsonL:()=>Dj,stringify:()=>Js,stringifyBase64:()=>Oj,stringifyPretty:()=>Cj});var Hs={};te(Hs,{Base64:()=>_p,Domain:()=>Pp,GitRepo:()=>Fp,base64:()=>qs,create:()=>Dp,docker:()=>Cp,indent:()=>Op,normalize:()=>Mp,type:()=>Ip});var Dp={};te(Dp,{createCryptoRandomString:()=>Bz,createRandomString:()=>Rz});var Og="3.7.7",XE=Og,js=typeof Buffer=="function",ZE=typeof TextDecoder=="function"?new TextDecoder:void 0,KE=typeof TextEncoder=="function"?new TextEncoder:void 0,bz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ol=Array.prototype.slice.call(bz),vp=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(Ol),wz=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,wt=String.fromCharCode.bind(String),eA=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),tA=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),rA=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Mg=e=>{let t,r,n,o,i="",s=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,i+=Ol[t>>18&63]+Ol[t>>12&63]+Ol[t>>6&63]+Ol[t&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Sp=typeof btoa=="function"?e=>btoa(e):js?e=>Buffer.from(e,"binary").toString("base64"):Mg,_g=js?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,o=e.length;n<o;n+=4096)r.push(wt.apply(null,e.subarray(n,n+4096)));return Sp(r.join(""))},Ml=(e,t=!1)=>t?tA(_g(e)):_g(e),vz=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?wt(192|t>>>6)+wt(128|t&63):wt(224|t>>>12&15)+wt(128|t>>>6&63)+wt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return wt(240|t>>>18&7)+wt(128|t>>>12&63)+wt(128|t>>>6&63)+wt(128|t&63)}},Sz=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ig=e=>e.replace(Sz,vz),nA=js?e=>Buffer.from(e,"utf8").toString("base64"):KE?e=>_g(KE.encode(e)):e=>Sp(Ig(e)),ao=(e,t=!1)=>t?tA(nA(e)):nA(e),kp=e=>ao(e,!0),kz=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Tz=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return wt((r>>>10)+55296)+wt((r&1023)+56320);case 3:return wt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return wt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Pg=e=>e.replace(kz,Tz),Fg=e=>{if(e=e.replace(/\s+/g,""),!wz.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,o;for(let i=0;i<e.length;)t=vp[e.charAt(i++)]<<18|vp[e.charAt(i++)]<<12|(n=vp[e.charAt(i++)])<<6|(o=vp[e.charAt(i++)]),r+=n===64?wt(t>>16&255):o===64?wt(t>>16&255,t>>8&255):wt(t>>16&255,t>>8&255,t&255);return r},Tp=typeof atob=="function"?e=>atob(rA(e)):js?e=>Buffer.from(e,"base64").toString("binary"):Fg,oA=js?e=>eA(Buffer.from(e,"base64")):e=>eA(Tp(e).split("").map(t=>t.charCodeAt(0))),Ng=e=>oA(iA(e)),Ez=js?e=>Buffer.from(e,"base64").toString("utf8"):ZE?e=>ZE.decode(oA(e)):e=>Pg(Tp(e)),iA=e=>rA(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),_l=e=>Ez(iA(e)),sA=e=>{if(typeof e!="string")return!1;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},aA=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Lg=function(){let e=(t,r)=>Object.defineProperty(String.prototype,t,aA(r));e("fromBase64",function(){return _l(this)}),e("toBase64",function(t){return ao(this,t)}),e("toBase64URI",function(){return ao(this,!0)}),e("toBase64URL",function(){return ao(this,!0)}),e("toUint8Array",function(){return Ng(this)})},Rg=function(){let e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,aA(r));e("toBase64",function(t){return Ml(this,t)}),e("toBase64URI",function(){return Ml(this,!0)}),e("toBase64URL",function(){return Ml(this,!0)})},lA=()=>{Lg(),Rg()},ri={version:Og,VERSION:XE,atob:Tp,atobPolyfill:Fg,btoa:Sp,btoaPolyfill:Mg,fromBase64:_l,toBase64:ao,encode:ao,encodeURI:kp,encodeURL:kp,utob:Ig,btou:Pg,decode:_l,isValid:sA,fromUint8Array:Ml,toUint8Array:Ng,extendString:Lg,extendUint8Array:Rg,extendBuiltins:lA};var fA=je(cA(),1);function Il(e){let t=(0,fA.default)(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}var $g=je($a(),1),Ug=je(JE(),1),Ep=je(vA(),1),LIe=new xl;var Rz=(e,t,r)=>Ep.default(e,t,r),Bz=()=>$g.uni();var Cp={};te(Cp,{makeEnvObject:()=>$z});var $z=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let o=r.exec(e[n]);t[o[1]]=o[2]}return t};var Op={};te(Op,{indent:()=>zz,indentWithPrefix:()=>jz,normalize:()=>qz});var zg=e=>{let t=e.split(`
41
+ `);return Uz(t)},jg=e=>{let t="";for(let r of e)t=t+r+`
42
+ `;return t},Uz=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},zz=(e,t)=>{let r=zg(e);for(let o of r)o=" ".repeat(t)+o;return jg(r)},jz=(e,t)=>{let r,n=zg(e),o=[];for(let i of n)o.push(t+i);return r=jg(o),r},qz=e=>{let t,r=zg(e),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let l=o.exec(a)[1];(typeof n>"u"||l.length<n)&&!i.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=jg(s),t};var Mp={};te(Mp,{replaceAll:()=>SA,standard:()=>Hz});var SA=(e,t,r)=>e.replace(new RegExp(t,"g"),r),Hz=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=Il(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
43
+ `)),(!t||t.replaceTabs)&&(r=SA(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var Ip={};te(Ip,{isBase64:()=>Yz,isUtf8:()=>Wz});var _p=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=qs.decode(t);break;case"base64uri":this.refString=qs.decode(t)}}get simpleString(){return this.refString}get base64String(){return qs.encode(this.refString)}get base64UriString(){return qs.encodeUri(this.refString)}},qs={encode:e=>ri.encode(e),encodeUri:e=>ri.encodeURI(e),decode:e=>ri.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var Wz=e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},Yz=e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="};var Pp=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=Ug.parse(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.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(t){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(t);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var Fp=class{constructor(t,r){let n=Vz(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=kA(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=kA(this.host,this.user,this.repo,this.accessToken,"https")}},Vz=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},kA=function(e,t,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":i="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var qp=je(nx(),1),pD=je(ox(),1),ix=pD.default;function Sj(e){return btoa(String.fromCharCode(...e))}function kj(e){return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function ax(e,t){return JSON.stringify(e,hD,t)}function lx(e){return JSON.parse(e,mD)}var hD=(e,t)=>{if(Ej(t)){let r;if("data"in t&&dD(t.data))if(t.data.length>0)r=new Uint8Array(t.data);else return"";else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+Sj(r)}}return t},mD=(e,t)=>{if(Tj(t)&&sx(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return kj(r)}return t};function Tj(e){return gD(e)&&e.type==="EncodedBuffer"&&sx(e.data)}function Ej(e){return gD(e)&&e.type==="Buffer"&&(dD(e.data)||sx(e.data))||e instanceof Uint8Array}function dD(e){return Array.isArray(e)}function sx(e){return typeof e=="string"}function gD(e){return typeof e=="object"&&e!==null}var Qs=lx,Dj=e=>e.trim().split(`
44
+ `).reduce((n,o)=>(o.trim().length>0&&n.push(JSON.parse(o)),n),[]),Js=(e,t,r={})=>{let n=ax(e);return e=JSON.parse(n),ix(e,r)},Cj=e=>{let t=Js(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},Oj=(...e)=>{let t=Js(...e);return Hs.base64.encodeUri(t)},Mj=e=>{let t=Hs.base64.decode(e);return Qs(t)},ux=class e{static enfoldFromObject(t){let r=new this;for(let n in t)r.saveableProperties.indexOf(n)!==-1&&(r[n]=t[n]);return r}static enfoldFromJson(t){let r=Qs(t);return this.enfoldFromObject(r)}foldToObject(){let t={},r=[];for(let n of this.saveableProperties){let o=this[n];if(o instanceof e){if(r.includes(o))throw new Error("cycle detected");r.push(o),o=o.foldToObject()}t[n]=qp.default(o)}return t}foldToJson(){let t=this.foldToObject();return Js(t)}},_j=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},xD=(e,t)=>{let r=Js(e),n=Js(t);return r===n},Ij=(e,t)=>{let r=[];e.split(`
45
+ `).forEach(o=>{o&&r.push(Qs(o))});let n=[];return t.split(`
46
+ `).forEach(o=>{o&&n.push(Qs(o))}),xD(r,n)};var jt={};te(jt,{TypedrequestCache:()=>gx,WebStore:()=>Bl});var Rl={};te(Rl,{deleteDB:()=>AD,openDB:()=>ED,unwrap:()=>Ll,wrap:()=>en});var cx=(e,t)=>t.some(r=>e instanceof r),yD,bD;function Pj(){return yD||(yD=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Fj(){return bD||(bD=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var fx=new WeakMap,px=new WeakMap,Hp=new WeakMap;function Nj(e){let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(en(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return Hp.set(t,e),t}function Lj(e){if(fx.has(e))return;let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});fx.set(e,t)}var hx={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return fx.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return en(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function wD(e){hx=e(hx)}function Rj(e){return Fj().includes(e)?function(...t){return e.apply(Ll(this),t),en(this.request)}:function(...t){return en(e.apply(Ll(this),t))}}function Bj(e){return typeof e=="function"?Rj(e):(e instanceof IDBTransaction&&Lj(e),cx(e,Pj())?new Proxy(e,hx):e)}function en(e){if(e instanceof IDBRequest)return Nj(e);if(px.has(e))return px.get(e);let t=Bj(e);return t!==e&&(px.set(e,t),Hp.set(t,e)),t}var Ll=e=>Hp.get(e);function ED(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(e,t),a=en(s);return n&&s.addEventListener("upgradeneeded",l=>{n(en(s.result),l.oldVersion,l.newVersion,en(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function AD(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),en(r).then(()=>{})}var $j=["get","getKey","getAll","getAllKeys","count"],Uj=["put","add","delete","clear"],mx=new Map;function vD(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(mx.get(t))return mx.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=Uj.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||$j.includes(r)))return;let i=async function(s,...a){let l=this.transaction(s,o?"readwrite":"readonly"),u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&l.done]))[0]};return mx.set(t,i),i}wD(e=>({...e,get:(t,r,n)=>vD(t,r)||e.get(t,r,n),has:(t,r)=>!!vD(t,r)||e.has(t,r)}));var zj=["continue","continuePrimaryKey","advance"],SD={},dx=new WeakMap,kD=new WeakMap,jj={get(e,t){if(!zj.includes(t))return e[t];let r=SD[t];return r||(r=SD[t]=function(...n){dx.set(this,kD.get(this)[t](...n))}),r}};async function*qj(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,jj);for(kD.set(r,t),Hp.set(r,Ll(t));t;)yield r,t=await(dx.get(r)||t.continue()),dx.delete(r)}function TD(e,t){return t===Symbol.asyncIterator&&cx(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&cx(e,[IDBIndex,IDBObjectStore])}wD(e=>({...e,get(t,r,n){return TD(t,r)?qj:e.get(t,r,n)},has(t,r){return TD(t,r)||e.has(t,r)}}));var Bl=class{constructor(t){this.initCalled=!1,this.readyDeferred=ue.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new Qr.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Rl.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}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 gx=class{constructor(t="default"){this.webstore=new Bl({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Jt.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var xx=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new jt.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let o=await(await this.request(t,{method:"GET",useCache:r})).text();return Jt.parse(o)}async postJson(t,r,n=!1){let i=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:Jt.stringify(r),useCache:n})).text();return Jt.parse(i)}async putJson(t,r,n=!1){let i=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:Jt.stringify(r)})).text();return Jt.parse(i)}async deleteJson(t,r=!1){let o=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Jt.parse(o)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;ce.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=ue.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(t,{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(t,a)}return this.log(`${t} answers with status: ${s.status}`),s}async requestMultiEndpoint(t,r){let n,o=0;Array.isArray(t)?n=t:n=[t];let i=[],s=async u=>{i.push(u),u==="429"&&(console.log("got 429, so waiting a little bit."),await ce.delayFor(Math.floor(Math.random()*1001)+1e3));let c=0;for(let f of i)f===u&&c++;c>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 c=await fetch(u,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${u} answers with status: ${c.status}`),c.status>=200&&c.status<300?c:(await s(c.status.toString()),await a(n[o]))};return await a(n[o])}log(t){this.options.logging&&console.log(t)}};var uo=je($a(),1);var En=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Yp=class{async passGuards(t,r){let n=new gl.GuardSet(t);if(!await n.allGuardsPass(r)){let i=await n.getFailedHint(r);throw new En(`guard failed: ${i}`,{failedHint:i})}}};var yx=class{constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.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=new Yp,o=await this.handlerFunction(t.request,n).catch(i=>{i instanceof En?r=i:console.log(i)});return r&&(t.error={text:r.errorText,data:r.errorData}),o&&(t.response=o),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var $l=class{constructor(){this.routerMap=new bt.ObjectMap,this.handlerMap=new bt.ObjectMap,this.registeredVirtualStreams=new bt.ObjectMap,this.fireEventInterestMap=new bt.InterestMap(t=>t)}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===t),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(t,r))}),n}async routeAndAddResponse(t,r=!1){if(t=tn.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let n=await this.handleStreamTypedRequest(t);return n.localData=null,n}if(t?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(t.method);return n?(t=await n.addResponse(t),t.localData=null,t=tn.encodePayloadForNetwork(t,{typedrouter:this}),t):(console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=tn.encodePayloadForNetwork(t,{typedrouter:this}),t)}else return t?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async o=>o.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var CD="#############CLOSING BIT#############",tn=class e{static encodePayloadForNetwork(t,r,n,o=[]){return!t||Ms.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||o.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((i,s)=>e.encodePayloadForNetwork(i,r,n||t,o.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((i,[s,a])=>{let l=o.concat(s);return i[s]=e.encodePayloadForNetwork(a,r,n||t,l),i},{}):t}static decodePayloadFromNetwork(t,r){if(Ms.isBufferLike(t)||t instanceof $l)return t;if(t!==null&&typeof t=="object")if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let o of t)n.push(e.decodePayloadFromNetwork(o,r));return n}else return Object.keys(t).reduce((n,o)=>(n[o]=e.decodePayloadFromNetwork(t[o],r),n),{});else return t}constructor(){this.streamId=uo.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new bt.BackpressuredArray(16),this.receiveBackpressuredArray=new bt.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=ue.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,o=async()=>{let i=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:uo.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&&(n=i.response.backpressure,r=i.response.next)};for(await o();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await ce.delayFor(50),await o();let i;this.sendBackpressuredArray.data.length>0&&(i=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:uo.uni(),cycle:"request",mainPurpose:i?"chunk":"read",backpressure:t,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),n=s&&s.response&&s.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(t.request.chunkData),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await ce.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await ce.delayFor(1e3);await ce.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:uo.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),o=!1;for(;!o;){let{value:i,done:s}=await n.read();i&&await this.sendData(i),o=s}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===CD){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(CD),this.keepAlive=!1}};var bx=class{constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),i;return r?i=await r.interestFullfilled:o?i=o:i=t,i}};var Wj=new si.WebRequest,Ul=class{constructor(t,r){typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n={method:this.method,request:t,response:null,correlation:{id:uo.uni(),phase:"request"}};n=tn.encodePayloadForNetwork(n,{sendMethod:i=>this.postTrObject(i)});let o;return o=await this.postTrObject(n,r),o=tn.decodePayloadFromNetwork(o,{sendMethod:i=>this.postTrObject(i)}),o.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await Wj.postJson(this.urlEndPoint,t,r):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new En(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await ce.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function OD(e){return e&&typeof e.then=="function"}var MD=Promise.resolve(!1),LPe=Promise.resolve(!0),rn=Promise.resolve();function Vp(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function _D(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function zl(){return Math.random().toString(36).substring(2)}var wx=0;function An(){var e=Date.now()*1e3;return e<=wx&&(e=wx+1),wx=e,e}function RPe(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}var Yj=An,Vj="native";function Gj(e){var t={time:An(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function Qj(e){e.bc.close(),e.subFns=[]}function Jj(e,t){try{return e.bc.postMessage(t,!1),rn}catch(r){return Promise.reject(r)}}function Xj(e,t){e.messagesCallback=t}function Zj(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function Kj(){return 150}var ID={create:Gj,close:Qj,onMessage:Xj,postMessage:Jj,canBeUsed:Zj,type:Vj,averageResponseTime:Kj,microSeconds:Yj};var Xs=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,PD()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,e6(this)},0))}clear(){this.map.clear()}};function e6(e){let t=PD()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)return;let o=n[0];if(n[1]<t)e.map.delete(o);else return}}function PD(){return Date.now()}function ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var t6=An,r6="pubkey.broadcast-channel-0-",Mr="messages",jl={durability:"relaxed"},n6="idb";function FD(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function Gp(e){e.commit&&e.commit()}function o6(e){var t=FD(),r=r6+e,n=t.open(r);return n.onupgradeneeded=function(o){var i=o.target.result;i.createObjectStore(Mr,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,i){n.onerror=function(s){return i(s)},n.onsuccess=function(){o(n.result)}})}function i6(e,t,r){var n=Date.now(),o={uuid:t,time:n,data:r},i=e.transaction([Mr],"readwrite",jl);return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(u){return a(u)};var l=i.objectStore(Mr);l.add(o),Gp(i)})}function YPe(e){var t=e.transaction(Mr,"readonly",jl),r=t.objectStore(Mr),n=[];return new Promise(function(o){r.openCursor().onsuccess=function(i){var s=i.target.result;s?(n.push(s.value),s.continue()):(Gp(t),o(n))}})}function s6(e,t){var r=e.transaction(Mr,"readonly",jl),n=r.objectStore(Mr),o=[],i=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(i);return new Promise(function(l,u){s.onerror=function(c){return u(c)},s.onsuccess=function(c){l(c.target.result)}})}function a(){try{return i=IDBKeyRange.bound(t+1,1/0),n.openCursor(i)}catch{return n.openCursor()}}return new Promise(function(l,u){var c=a();c.onerror=function(f){return u(f)},c.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(o.push(p.value),p.continue()):(Gp(r),l(o))}})}function a6(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(Mr,"readwrite",jl),n=r.objectStore(Mr);return Promise.all(t.map(function(o){var i=n.delete(o);return new Promise(function(s){i.onsuccess=function(){return s()}})}))}function l6(e,t){var r=Date.now()-t,n=e.transaction(Mr,"readonly",jl),o=n.objectStore(Mr),i=[];return new Promise(function(s){o.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var u=l.value;u.time<r?(i.push(u),l.continue()):(Gp(n),s(i))}else s(i)}})}function u6(e){return l6(e.db,e.options.idb.ttl).then(function(t){return a6(e,t.map(function(r){return r.id}))})}function c6(e,t){return t=ai(t),o6(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:zl(),eMIs:new Xs(t.idb.ttl*2),writeBlockPromise:rn,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},ND(n),n})}function ND(e){e.closed||LD(e).then(function(){return Vp(e.options.idb.fallbackInterval)}).then(function(){return ND(e)})}function f6(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function LD(e){return e.closed?rn:e.messagesCallback?s6(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return f6(n,e)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),rn}):rn}function p6(e){e.closed=!0,e.db.close()}function h6(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return i6(e.db,e.uuid,t)}).then(function(){_D(0,10)===0&&u6(e)}),e.writeBlockPromise}function m6(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,LD(e)}function d6(){return!!FD()}function g6(e){return e.idb.fallbackInterval*2}var RD={create:c6,close:p6,onMessage:m6,postMessage:h6,canBeUsed:d6,type:n6,averageResponseTime:g6,microSeconds:t6};var x6=An,y6="pubkey.broadcastChannel-",b6="localstorage";function BD(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function $D(e){return y6+e}function w6(e,t){return new Promise(function(r){Vp().then(function(){var n=$D(e.channelName),o={token:zl(),time:Date.now(),data:t,uuid:e.uuid},i=JSON.stringify(o);BD().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function v6(e,t){var r=$D(e),n=function(i){i.key===r&&t(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function S6(e){window.removeEventListener("storage",e)}function k6(e,t){if(t=ai(t),!UD())throw new Error("BroadcastChannel: localstorage cannot be used");var r=zl(),n=new Xs(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=v6(e,function(i){o.messagesCallback&&i.uuid!==r&&(!i.token||n.has(i.token)||i.data.time&&i.data.time<o.messagesCallbackTime||(n.add(i.token),o.messagesCallback(i.data)))}),o}function T6(e){S6(e.listener)}function E6(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function UD(){var e=BD();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function A6(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var zD={create:k6,close:T6,onMessage:E6,postMessage:w6,canBeUsed:UD,type:b6,averageResponseTime:A6,microSeconds:x6};var jD=An,D6="simulate",vx=new Set;function C6(e){var t={time:jD(),name:e,messagesCallback:null};return vx.add(t),t}function O6(e){vx.delete(e)}var qD=5;function M6(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(vx);n.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),r()},qD)})}function _6(e,t){e.messagesCallback=t}function I6(){return!0}function P6(){return qD}var HD={create:C6,close:O6,onMessage:_6,postMessage:M6,canBeUsed:I6,type:D6,averageResponseTime:P6,microSeconds:jD};var WD=[ID,RD,zD];function Sx(e){var t=[].concat(e.methods,WD).filter(Boolean);if(e.type){if(e.type==="simulate")return HD;var r=t.find(function(o){return o.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var n=t.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(WD.map(function(o){return o.type})))}var Tx=new Set,F6=0,li=function(t,r){this.id=F6++,Tx.add(this),this.name=t,kx&&(r=kx),this.options=ai(r),this.method=Sx(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,R6(this)};li._pubkey=!0;function N6(e){e=ai(e);var t=Sx(e);return t.type==="node"?t.clearNodeFolder().then(function(){return!0}):MD}var kx;function L6(e){kx=e}li.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return YD(this,"message",t)},postInternal:function(t){return YD(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};QD(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,GD(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),o={time:n,fn:r};GD(this,t,o)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(o){return o.fn===r});QD(this,t,n)},close:function(){var t=this;if(!this.closed){Tx.delete(this),this.closed=!0;var r=this._prepP?this._prepP:rn;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function YD(e,t,r){var n=e.method.microSeconds(),o={time:n,type:t,data:r},i=e._prepP?e._prepP:rn;return i.then(function(){var s=e.method.postMessage(e._state,o);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function R6(e){var t=e.method.create(e.name,e.options);OD(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function VD(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function GD(e,t,r){e._addEL[t].push(r),B6(e)}function QD(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),$6(e)}function B6(e){if(!e._iL&&VD(e)){var t=function(o){e._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function $6(e){if(e._iL&&!VD(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var Ex=globalThis.BroadcastChannel;Ex||(Ex=li);var Ax=class{constructor(){this.broadcastChannel=new Ex("dees-comms"),this.typedrouter=new lt.TypedRouter,this.typedtarget=new lt.TypedTarget({postMethodWithTypedRouter:async t=>{this.postMessage(t)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new lt.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new lt.TypedHandler(t,r))}};var sr={};te(sr,{Smartjson:()=>Lx,deepEqualJsonLStrings:()=>dq,deepEqualObjects:()=>rC,foldDec:()=>mq,parse:()=>sh,parseBase64:()=>hq,parseJsonL:()=>Nx,stableOneWayStringify:()=>cq,stringify:()=>ui,stringifyBase64:()=>pq,stringifyJsonL:()=>uq,stringifyPretty:()=>fq});var Hl={};te(Hl,{Smartenv:()=>Dx});var Dx=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}. This does not throw.`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=Pe.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,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 _r={};te(_r,{Base64:()=>Kp,Domain:()=>th,GitRepo:()=>rh,base64:()=>Zs,create:()=>Qp,docker:()=>Jp,indent:()=>Xp,normalize:()=>Zp,type:()=>eh});var Qp={};te(Qp,{createCryptoRandomString:()=>Y6,createRandomString:()=>W6});var Cx=je($a(),1);var q6=(e,t)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let r=t-e,n=new Uint32Array(1);return globalThis.crypto.getRandomValues(n),e+n[0]%r}else return Math.floor(Math.random()*(t-e))+e},H6=(e,t,r)=>{let n={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},o=e;t&&t>e.length?o=e.repeat(Math.ceil(t/e.length)).slice(0,t):t&&(o=e.slice(0,t));let i="";for(let s of o)if(n[s]){let a=n[s],l=q6(0,a.length);i+=a[l]}else i+=s;return i},W6=(e,t,r)=>H6(e,t,r),Y6=()=>Cx.uni();var Jp={};te(Jp,{makeEnvObject:()=>V6});var V6=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let o=r.exec(e[n]);t[o[1]]=o[2]}return t};var Xp={};te(Xp,{indent:()=>Q6,indentWithPrefix:()=>J6,normalize:()=>X6});var Ox=e=>{let t=e.split(`
47
+ `);return G6(t)},Mx=e=>{let t="";for(let r of e)t=t+r+`
48
+ `;return t},G6=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},Q6=(e,t)=>{let r=Ox(e);for(let o of r)o=" ".repeat(t)+o;return Mx(r)},J6=(e,t)=>{let r,n=Ox(e),o=[];for(let i of n)o.push(t+i);return r=Mx(o),r},X6=e=>{let t,r=Ox(e),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let l=o.exec(a)[1];(typeof n>"u"||l.length<n)&&!i.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=Mx(s),t};var Zp={};te(Zp,{replaceAll:()=>JD,standard:()=>K6});var JD=(e,t,r)=>e.replace(new RegExp(t,"g"),r),Z6=e=>{let t=e.split(`
49
+ `),r=1/0;for(let n of t)if(n.trim().length>0){let o=n.match(/^(\s*)/);o&&(r=Math.min(r,o[1].length))}return r===1/0||r===0?e:t.map(n=>n.length>=r?n.slice(r):n).join(`
50
+ `)},K6=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=Z6(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
51
+ `)),(!t||t.replaceTabs)&&(r=JD(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var eh={};te(eh,{isBase64:()=>tq,isUtf8:()=>eq});var _x={encode:e=>{if(typeof Buffer<"u")return Buffer.from(e,"utf8").toString("base64");if(typeof btoa<"u"){let t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCharCode(n)).join("");return btoa(r)}else{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new TextEncoder().encode(e),n="",o=0;for(;o<r.length;){let i=r[o++],s=o<r.length?r[o++]:0,a=o<r.length?r[o++]:0,l=i<<16|s<<8|a;n+=t.charAt(l>>18&63),n+=t.charAt(l>>12&63),n+=o-2<r.length?t.charAt(l>>6&63):"=",n+=o-1<r.length?t.charAt(l&63):"="}return n}},decode:e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"=");if(typeof Buffer<"u")return Buffer.from(t,"base64").toString("utf8");if(typeof atob<"u"){let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return new TextDecoder().decode(n)}else{let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=[],o=0;for(;o<t.length;){let i=r.indexOf(t.charAt(o++)),s=r.indexOf(t.charAt(o++)),a=r.indexOf(t.charAt(o++)),l=r.indexOf(t.charAt(o++)),u=i<<18|s<<12|a<<6|l;n.push(u>>16&255),a!==64&&n.push(u>>8&255),l!==64&&n.push(u&255)}return new TextDecoder().decode(new Uint8Array(n))}}},Kp=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Zs.decode(t);break;case"base64uri":this.refString=Zs.decode(t)}}get simpleString(){return this.refString}get base64String(){return Zs.encode(this.refString)}get base64UriString(){return Zs.encodeUri(this.refString)}},Zs={encode:e=>_x.encode(e),encodeUri:e=>_x.encode(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),decode:e=>_x.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var eq=e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},tq=e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="};var th=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=new URL(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.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(t){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(t);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var rh=class{constructor(t,r){let n=rq(t);this.host=n[1],this.user=n[2],this.repo=n[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")}},rq=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},XD=function(e,t,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":i="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var nh=je(nx(),1),ZD=je(ox(),1),oh=ZD.default;function oq(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(String.fromCharCode(...e))}function iq(e){if(typeof Buffer<"u"){let t=Buffer.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function Px(e,t){return JSON.stringify(e,ih,t)}function Fx(e){return JSON.parse(e,KD)}var ih=(e,t)=>{if(aq(t)){let r;if("data"in t&&eC(t.data))r=new Uint8Array(t.data);else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+oq(r)}}return t},KD=(e,t)=>{if(sq(t)&&Ix(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return iq(r)}return t};function sq(e){return tC(e)&&e.type==="EncodedBuffer"&&Ix(e.data)}function aq(e){return tC(e)&&e.type==="Buffer"&&(eC(e.data)||Ix(e.data))||e instanceof Uint8Array}function eC(e){return Array.isArray(e)}function Ix(e){return typeof e=="string"}function tC(e){return typeof e=="object"&&e!==null}var sh=Fx,Nx=e=>e.split(`
52
+ `).reduce((n,o)=>{let i=o.trim();return i.length>0&&n.push(sh(i)),n},[]),uq=e=>e.map(t=>ui(t)).join(`
53
+ `),cq=(e,t,r={})=>{let n=new WeakSet,o=a=>{if(a===null||typeof a!="object")return a;let l=ih("",a);if(l&&l.type==="EncodedBuffer"&&typeof l.data=="string")return l;if(n.has(a))return"__cycle__";if(n.add(a),Array.isArray(a))return a.map(c=>o(c));let u={};for(let c of Object.keys(a))try{u[c]=o(a[c])}catch{u[c]="__unserializable__"}return u},i=o(e),s={...r,cycles:!0};if(t&&!s.cmp){let a=new Map;t.forEach((l,u)=>a.set(l,u)),s.cmp=(l,u)=>{let c=a.has(l.key)?a.get(l.key):Number.POSITIVE_INFINITY,f=a.has(u.key)?a.get(u.key):Number.POSITIVE_INFINITY;return c!==f?c-f:l.key<u.key?-1:l.key>u.key?1:0}}return oh(i,s)},ui=(e,t,r={})=>{let n=Px(e);e=JSON.parse(n);let o={...r};if(t&&!o.cmp){let s=new Map;t.forEach((a,l)=>s.set(a,l)),o.cmp=(a,l)=>{let u=s.has(a.key)?s.get(a.key):Number.POSITIVE_INFINITY,c=s.has(l.key)?s.get(l.key):Number.POSITIVE_INFINITY;return u!==c?u-c:a.key<l.key?-1:a.key>l.key?1:0}}return oh(e,o)},fq=e=>{let t=ui(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},pq=(...e)=>{let t=ui(...e);return _r.base64.encodeUri(t)},hq=e=>{let t=_r.base64,n=(t.decodeUri||t.decode)(e);return sh(n)},Lx=class e{static enfoldFromObject(t){let r=new this,n=r.saveableProperties||[];for(let o in t)n.indexOf(o)!==-1&&(r[o]=t[o]);return r}static enfoldFromJson(t){let r=sh(t);return this.enfoldFromObject(r)}foldToObject(){let t=new Set;return t.add(this),this.foldToObjectInternal(t)}foldToObjectInternal(t){let r={},n=i=>{if(i instanceof e){if(t.has(i))throw new Error("cycle detected");return t.add(i),i.foldToObjectInternal(t)}return Array.isArray(i)?i.map(s=>n(s)):nh.default(i)},o=this.saveableProperties||[];for(let i of o){let s=this[i];r[i]=n(s)}return r}foldToJson(){let t=this.foldToObject();return ui(t)}},mq=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},rC=(e,t)=>{let r=ui(e),n=ui(t);return r===n},dq=(e,t)=>{let r=Nx(e),n=Nx(t);return rC(r,n)};var ka={};te(ka,{SmartMarkdown:()=>Jb});function Qx(e){if(e)throw e}function Xl(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jx(){let e=[],t={run:r,use:n};return t;function r(...o){let i=-1,s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...o);function a(l,...u){let c=e[++i],f=-1;if(l){s(l);return}for(;++f<o.length;)(u[f]===null||u[f]===void 0)&&(u[f]=o[f]);o=u,c?iM(c,a)(...u):s(null,...u)}}function n(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function iM(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(o);try{l=e.apply(this,s)}catch(u){let c=u;if(a&&r)throw c;return o(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(i,o):l instanceof Error?o(l):i(l))}function o(s,...a){r||(r=!0,t(s,...a))}function i(s){o(null,s)}}function po(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sM(e.position):"start"in e||"end"in e?sM(e):"line"in e||"column"in e?Xx(e):""}function Xx(e){return aM(e&&e.line)+":"+aM(e&&e.column)}function sM(e){return Xx(e&&e.start)+"-"+Xx(e&&e.end)}function aM(e){return e&&typeof e=="number"?e:1}var gt=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let o="",i={},s=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){let l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=po(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};gt.prototype.file="",gt.prototype.name="",gt.prototype.reason="",gt.prototype.message="",gt.prototype.stack="",gt.prototype.column=void 0,gt.prototype.line=void 0,gt.prototype.ancestors=void 0,gt.prototype.cause=void 0,gt.prototype.fatal=void 0,gt.prototype.place=void 0,gt.prototype.ruleId=void 0,gt.prototype.source=void 0;var Ir={basename:K4,dirname:eW,extname:tW,join:rW,sep:"/"};function K4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zl(e);let r=0,n=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){r=o+1;break}}else n<0&&(i=!0,n=o+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){r=o+1;break}}else s<0&&(i=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(n=o):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function eW(e){if(Zl(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function tW(e){Zl(e);let t=e.length,r=-1,n=0,o=-1,i=0,s;for(;t--;){let a=e.codePointAt(t);if(a===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),a===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||r<0||i===0||i===1&&o===r-1&&o===n+1?"":e.slice(o,r)}function rW(...e){let t=-1,r;for(;++t<e.length;)Zl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":nW(r)}function nW(e){Zl(e);let t=e.codePointAt(0)===47,r=oW(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function oW(e,t){let r="",n=0,o=-1,i=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(o===s-1||i===1))if(o!==s-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),o=s,i=0;continue}}else if(r.length>0){r="",n=0,o=s,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),n=s-o-1;o=s,i=0}else a===46&&i>-1?i++:i=-1}return r}function Zl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var lM={cwd:iW};function iW(){return"/"}function sa(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function uM(e){if(typeof e=="string")e=new URL(e);else if(!sa(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return sW(e)}function sW(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}var Zx=["history","path","basename","stem","extname","dirname"],Kl=class{constructor(t){let r;t?sa(t)?r={path:t}:typeof t=="string"||aW(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":lM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Zx.length;){let i=Zx[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let o;for(o in r)Zx.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Ir.basename(this.path):void 0}set basename(t){ey(t,"basename"),Kx(t,"basename"),this.path=Ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ir.dirname(this.path):void 0}set dirname(t){cM(this.basename,"dirname"),this.path=Ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ir.extname(this.path):void 0}set extname(t){if(Kx(t,"extname"),cM(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sa(t)&&(t=uM(t)),ey(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ir.basename(this.path,this.extname):void 0}set stem(t){ey(t,"stem"),Kx(t,"stem"),this.path=Ir.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let o=this.message(t,r,n);throw o.fatal=!0,o}info(t,r,n){let o=this.message(t,r,n);return o.fatal=void 0,o}message(t,r,n){let o=new gt(t,r,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Kx(e,t){if(e&&e.includes(Ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ir.sep+"`")}function ey(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cM(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function aW(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var fM=(function(e){let n=this.constructor.prototype,o=n[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,n),i});var bh=je(oM(),1),lW={}.hasOwnProperty,ty=class e extends fM{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Jx()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,bh.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(oy("data",this.frozen),this.namespace[t]=r,this):lW.call(this.namespace,t)&&this.namespace[t]||void 0:t?(oy("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let o=r.call(t,...n);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=yh(t),n=this.parser||this.Parser;return ry("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),ry("process",this.parser||this.Parser),ny("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(i,s){let a=yh(t),l=n.parse(a);n.run(l,a,function(c,f,p){if(c||!f||!p)return u(c);let h=f,m=n.stringify(h,p);cW(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?s(c):i?i(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),ry("processSync",this.parser||this.Parser),ny("processSync",this.compiler||this.Compiler),this.process(t,o),hM("processSync","process",r),n;function o(i,s){r=!0,Qx(i),n=s}}run(t,r,n){pM(t),this.freeze();let o=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(s,a){let l=yh(r);o.run(t,l,u);function u(c,f,p){let h=f||t;c?a(c):s?s(h):n(void 0,h,p)}}}runSync(t,r){let n=!1,o;return this.run(t,r,i),hM("runSync","run",n),o;function i(s,a){Qx(s),o=a,n=!0}}stringify(t,r){this.freeze();let n=yh(r),o=this.compiler||this.Compiler;return ny("stringify",o),pM(t),o(t,n)}use(t,...r){let n=this.attachers,o=this.namespace;if(oy("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(o.settings=(0,bh.default)(!0,o.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];i(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<n.length;)if(n[f][0]===u){p=f;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[h,...m]=c,d=n[p][1];Xl(d)&&Xl(h)&&(h=(0,bh.default)(!0,d,h)),n[p]=[u,h,...m]}}}},eu=new ty().freeze();function ry(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ny(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function oy(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pM(e){if(!Xl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hM(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yh(e){return uW(e)?e:new Kl(e)}function uW(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cW(e){return typeof e=="string"||fW(e)}function fW(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function la(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}var ct=ho(/[A-Za-z]/),Ve=ho(/[\dA-Za-z]/),mM=ho(/[#-'*+\--9=?A-Z^-~]/);function xi(e){return e!==null&&(e<32||e===127)}var tu=ho(/\d/),dM=ho(/[\dA-Fa-f]/),gM=ho(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function be(e){return e!==null&&(e<0||e===32)}function re(e){return e===-2||e===-1||e===32}var yi=ho(/\p{P}|\p{S}/u),sn=ho(/\s/);function ho(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var yM=(function(e,t,r,n,o){let i=Cn(t);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!yM(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return xM(e)?i.call(o,e,r,n):!1}),Cn=(function(e){if(e==null)return dW;if(typeof e=="function")return wh(e);if(typeof e=="object")return Array.isArray(e)?pW(e):hW(e);if(typeof e=="string")return mW(e);throw new Error("Expected function, string, or object as test")});function pW(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Cn(e[r]);return wh(n);function n(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function hW(e){let t=e;return wh(r);function r(n){let o=n,i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function mW(e){return wh(t);function t(r){return r&&r.type===e}}function wh(e){return t;function t(r,n,o){return!!(xM(r)&&e.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}function dW(){return!0}function xM(e){return e!==null&&typeof e=="object"&&"type"in e}var bM=[],vh=!0,bi=!1,Sh="skip";function ru(e,t,r,n){let o;typeof t=="function"&&typeof r!="function"?(n=r,r=t):o=t;let i=Cn(o),s=n?-1:1;a(e,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=bM,m,d,g;if((!t||i(l,u,c[c.length-1]||void 0))&&(h=gW(r(l,c)),h[0]===bi))return h;if("children"in l&&l.children){let y=l;if(y.children&&h[0]!==Sh)for(d=(n?y.children.length:-1)+s,g=c.concat(y);d>-1&&d<y.children.length;){let S=y.children[d];if(m=a(S,d,g)(),m[0]===bi)return m;d=typeof m[1]=="number"?m[1]:d+s}}return h}}}function gW(e){return Array.isArray(e)?e:typeof e=="number"?[vh,e]:e==null?bM:[e]}function iy(e,t,r){let o=Cn((r||{}).ignore||[]),i=xW(t),s=-1;for(;++s<i.length;)ru(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){let h=c[f],m=p?p.children:void 0;if(o(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return l(u,c)}function l(u,c){let f=c[c.length-1],p=i[s][0],h=i[s][1],m=0,g=f.children.indexOf(u),y=!1,S=[];p.lastIndex=0;let k=p.exec(u.value);for(;k;){let N=k.index,R={index:k.index,input:k.input,stack:[...c,u]},T=h(...k,R);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?p.lastIndex=N+1:(m!==N&&S.push({type:"text",value:u.value.slice(m,N)}),Array.isArray(T)?S.push(...T):T&&S.push(T),m=N+k[0].length,y=!0),!p.global)break;k=p.exec(u.value)}return y?(m<u.value.length&&S.push({type:"text",value:u.value.slice(m)}),f.children.splice(g,1,...S)):S=[u],g+S.length}}function xW(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let o=r[n];t.push([yW(o[0]),bW(o[1])])}return t}function yW(e){return typeof e=="string"?new RegExp(qo(e),"g"):e}function bW(e){return typeof e=="function"?e:function(){return e}}var sy="phrasing",ay=["autolink","link","image","label"];function uy(){return{transforms:[EW],enter:{literalAutolink:wW,literalAutolinkEmail:ly,literalAutolinkHttp:ly,literalAutolinkWww:ly},exit:{literalAutolink:TW,literalAutolinkEmail:kW,literalAutolinkHttp:vW,literalAutolinkWww:SW}}}function cy(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:sy,notInConstruct:ay},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:sy,notInConstruct:ay},{character:":",before:"[ps]",after:"\\/",inConstruct:sy,notInConstruct:ay}]}}function wW(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ly(e){this.config.enter.autolinkProtocol.call(this,e)}function vW(e){this.config.exit.autolinkProtocol.call(this,e)}function SW(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function kW(e){this.config.exit.autolinkEmail.call(this,e)}function TW(e){this.exit(e)}function EW(e){iy(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,AW],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,DW]],{ignore:["link","linkReference"]})}function AW(e,t,r,n,o){let i="";if(!wM(o)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!CW(r)))return!1;let s=OW(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function DW(e,t,r,n){return!wM(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function CW(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function OW(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),o=la(e,"("),i=la(e,")");for(;n!==-1&&o>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function wM(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||sn(r)||yi(r))&&(!t||r!==47)}function Ge(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}vM.peek=BW;function fy(){return{enter:{gfmFootnoteDefinition:MW,gfmFootnoteDefinitionLabelString:_W,gfmFootnoteCall:FW,gfmFootnoteCallString:NW},exit:{gfmFootnoteDefinition:PW,gfmFootnoteDefinitionLabelString:IW,gfmFootnoteCall:RW,gfmFootnoteCallString:LW}}}function py(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:$W,footnoteReference:vM}}}function MW(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _W(){this.buffer()}function IW(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=Ge(this.sliceSerialize(e)).toLowerCase()}function PW(e){this.exit(e)}function FW(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function NW(){this.buffer()}function LW(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=Ge(this.sliceSerialize(e)).toLowerCase()}function RW(e){this.exit(e)}function vM(e,t,r,n){let o=r.createTracker(n),i=o.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return i+=o.move(r.safe(r.associationId(e),{...o.current(),before:i,after:"]"})),a(),s(),i+=o.move("]"),i}function BW(){return"["}function $W(e,t,r,n){let o=r.createTracker(n),i=o.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return i+=o.move(r.safe(r.associationId(e),{...o.current(),before:i,after:"]"})),a(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(r.indentLines(r.containerFlow(e,o.current()),UW)),s(),i}function UW(e,t,r){return t===0?e:(r?"":" ")+e}var zW=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];SM.peek=HW;function hy(){return{canContainEols:["delete"],enter:{strikethrough:jW},exit:{strikethrough:qW}}}function my(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zW}],handlers:{delete:SM}}}function jW(e){this.enter({type:"delete",children:[]},e)}function qW(e){this.exit(e)}function SM(e,t,r,n){let o=r.createTracker(n),i=r.enter("strikethrough"),s=o.move("~~");return s+=r.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),i(),s}function HW(){return"~"}function WW(e){return e.length}function TM(e,t){let r=t||{},n=(r.align||[]).concat(),o=r.stringLength||WW,i=[],s=[],a=[],l=[],u=0,c=-1;for(;++c<e.length;){let d=[],g=[],y=-1;for(e[c].length>u&&(u=e[c].length);++y<e[c].length;){let S=YW(e[c][y]);if(r.alignDelimiters!==!1){let k=o(S);g[y]=k,(l[y]===void 0||k>l[y])&&(l[y]=k)}d.push(S)}s[c]=d,a[c]=g}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<u;)i[f]=kM(n[f]);else{let d=kM(n);for(;++f<u;)i[f]=d}f=-1;let p=[],h=[];for(;++f<u;){let d=i[f],g="",y="";d===99?(g=":",y=":"):d===108?g=":":d===114&&(y=":");let S=r.alignDelimiters===!1?1:Math.max(1,l[f]-g.length-y.length),k=g+"-".repeat(S)+y;r.alignDelimiters!==!1&&(S=g.length+S+y.length,S>l[f]&&(l[f]=S),h[f]=S),p[f]=k}s.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<s.length;){let d=s[c],g=a[c];f=-1;let y=[];for(;++f<u;){let S=d[f]||"",k="",N="";if(r.alignDelimiters!==!1){let R=l[f]-(g[f]||0),T=i[f];T===114?k=" ".repeat(R):T===99?R%2?(k=" ".repeat(R/2+.5),N=" ".repeat(R/2-.5)):(k=" ".repeat(R/2),N=k):N=" ".repeat(R)}r.delimiterStart!==!1&&!f&&y.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&S==="")&&(r.delimiterStart!==!1||f)&&y.push(" "),r.alignDelimiters!==!1&&y.push(k),y.push(S),r.alignDelimiters!==!1&&y.push(N),r.padding!==!1&&y.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&y.push("|")}m.push(r.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
54
+ `)}function YW(e){return e==null?"":String(e)}function kM(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var EM={}.hasOwnProperty;function kh(e,t){let r=t||{};function n(o,...i){let s=n.invalid,a=n.handlers;if(o&&EM.call(o,e)){let l=String(o[e]);s=EM.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,o,...i)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var VW={}.hasOwnProperty;function dy(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)dy(e,t.extensions[r]);for(n in t)if(VW.call(t,n))switch(n){case"extensions":break;case"unsafe":{AM(e[n],t[n]);break}case"join":{AM(e[n],t[n]);break}case"handlers":{GW(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function AM(e,t){t&&e.push(...t)}function GW(e,t){t&&Object.assign(e,t)}function DM(e,t,r,n){let o=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);let s=r.indentLines(r.containerFlow(e,i.current()),QW);return o(),s}function QW(e,t,r){return">"+(r?"":" ")+e}function Th(e,t){return CM(e,t.inConstruct,!0)&&!CM(e,t.notInConstruct,!1)}function CM(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function gy(e,t,r,n){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
55
+ `&&Th(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
56
+ `}function OM(e,t){let r=String(e),n=r.indexOf(t),o=n,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===o?++i>s&&(s=i):i=1,o=n+t.length,n=r.indexOf(t,o);return s}function nu(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function MM(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function _M(e,t,r,n){let o=MM(r),i=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(nu(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(i,JW);return f(),p}let a=r.createTracker(n),l=o.repeat(Math.max(OM(i,o)+1,3)),u=r.enter("codeFenced"),c=a.move(l);if(e.lang){let f=r.enter(`codeFencedLang${s}`);c+=a.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){let f=r.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(r.safe(e.meta,{before:c,after:`
57
+ `,encode:["`"],...a.current()})),f()}return c+=a.move(`
58
+ `),i&&(c+=a.move(i+`
59
+ `)),c+=a.move(l),u(),c}function JW(e,t,r){return(r?"":" ")+e}function ua(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function IM(e,t,r,n){let o=ua(r),i=o==='"'?"Quote":"Apostrophe",s=r.enter("definition"),a=r.enter("label"),l=r.createTracker(n),u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
60
+ `,...l.current()}))),a(),e.title&&(a=r.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(r.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),a()),s(),u}function PM(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ar(e){return"&#x"+e.toString(16).toUpperCase()+";"}function On(e){if(e===null||be(e)||sn(e))return 1;if(yi(e))return 2}function ca(e,t,r){let n=On(e),o=On(t);return n===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}xy.peek=XW;function xy(e,t,r,n){let o=PM(r),i=r.enter("emphasis"),s=r.createTracker(n),a=s.move(o),l=s.move(r.containerPhrasing(e,{after:o,before:a,...s.current()})),u=l.charCodeAt(0),c=ca(n.before.charCodeAt(n.before.length-1),u,o);c.inside&&(l=ar(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=ca(n.after.charCodeAt(0),f,o);p.inside&&(l=l.slice(0,-1)+ar(f));let h=s.move(o);return i(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function XW(e,t,r){return r.options.emphasis||"*"}function ou(e,t,r,n){let o,i,s;typeof t=="function"&&typeof r!="function"?(i=void 0,s=t,o=r):(i=t,s=r,o=n),ru(e,i,a,o);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}var ZW={};function wi(e,t){let r=t||ZW,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return FM(e,n,o)}function FM(e,t,r){if(KW(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return NM(e.children,t,r)}return Array.isArray(e)?NM(e,t,r):""}function NM(e,t,r){let n=[],o=-1;for(;++o<e.length;)n[o]=FM(e[o],t,r);return n.join("")}function KW(e){return!!(e&&typeof e=="object")}function Eh(e,t){let r=!1;return ou(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,bi}),!!((!e.depth||e.depth<3)&&wi(e)&&(t.options.setext||r))}function LM(e,t,r,n){let o=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(Eh(e,r)){let c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...i.current(),before:`
61
+ `,after:`
62
+ `});return f(),c(),p+`
63
+ `+(o===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
64
+ `))+1))}let s="#".repeat(o),a=r.enter("headingAtx"),l=r.enter("phrasing");i.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
65
+ `,...i.current()});return/^[\t ]/.test(u)&&(u=ar(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),a(),u}yy.peek=e5;function yy(e){return e.value||""}function e5(){return"<"}by.peek=t5;function by(e,t,r,n){let o=ua(r),i=o==='"'?"Quote":"Apostrophe",s=r.enter("image"),a=r.enter("label"),l=r.createTracker(n),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=r.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(r.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),a()),u+=l.move(")"),s(),u}function t5(){return"!"}wy.peek=r5;function wy(e,t,r,n){let o=e.referenceType,i=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,i(),o==="full"||!u||u!==f?l+=a.move(f+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function r5(){return"!"}vy.peek=n5;function vy(e,t,r){let n=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){let s=r.unsafe[i],a=r.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return o+n+o}function n5(){return"`"}function Sy(e,t){let r=wi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ky.peek=o5;function ky(e,t,r,n){let o=ua(r),i=o==='"'?"Quote":"Apostrophe",s=r.createTracker(n),a,l;if(Sy(e,r)){let c=r.stack;r.stack=[],a=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),r.stack=c,f}a=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(r.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),l()),u+=s.move(")"),a(),u}function o5(e,t,r){return Sy(e,r)?"<":"["}Ty.peek=i5;function Ty(e,t,r,n){let o=e.referenceType,i=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,i(),o==="full"||!u||u!==f?l+=a.move(f+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function i5(){return"["}function fa(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function RM(e){let t=fa(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function BM(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ah(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function $M(e,t,r,n){let o=r.enter("list"),i=r.bulletCurrent,s=e.ordered?BM(r):fa(r),a=e.ordered?s==="."?")":".":RM(r),l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),Ah(r)===s&&c){let f=-1;for(;++f<e.children.length;){let p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;let u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=i,o(),u}function UM(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function zM(e,t,r,n){let o=UM(r),i=r.bulletCurrent||fa(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=r.createTracker(n);a.move(i+" ".repeat(s-i.length)),a.shift(s);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,a.current()),c);return l(),u;function c(f,p,h){return p?(h?"":" ".repeat(s))+f:(h?i:i+" ".repeat(s-i.length))+f}}function jM(e,t,r,n){let o=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),o(),s}var Ey=Cn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function qM(e,t,r,n){return(e.children.some(function(s){return Ey(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function HM(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ay.peek=s5;function Ay(e,t,r,n){let o=HM(r),i=r.enter("strong"),s=r.createTracker(n),a=s.move(o+o),l=s.move(r.containerPhrasing(e,{after:o,before:a,...s.current()})),u=l.charCodeAt(0),c=ca(n.before.charCodeAt(n.before.length-1),u,o);c.inside&&(l=ar(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=ca(n.after.charCodeAt(0),f,o);p.inside&&(l=l.slice(0,-1)+ar(f));let h=s.move(o+o);return i(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function s5(e,t,r){return r.options.strong||"*"}function WM(e,t,r,n){return r.safe(e.value,n)}function YM(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function VM(e,t,r){let n=(Ah(r)+(r.options.ruleSpaces?" ":"")).repeat(YM(r));return r.options.ruleSpaces?n.slice(0,-1):n}var vi={blockquote:DM,break:gy,code:_M,definition:IM,emphasis:xy,hardBreak:gy,heading:LM,html:yy,image:by,imageReference:wy,inlineCode:vy,link:ky,linkReference:Ty,list:$M,listItem:zM,paragraph:jM,root:qM,strong:Ay,text:WM,thematicBreak:VM};var GM=[a5];function a5(e,t,r,n){if(t.type==="code"&&nu(t,n)&&(e.type==="list"||e.type===t.type&&nu(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&Eh(t,n))?void 0:r.spread?1:0}var Si=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],QM=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
66
+ `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Si},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
67
+ ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Si},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
68
+ *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Si},{atBreak:!0,character:"+",after:`(?:[ \r
69
+ ])`},{atBreak:!0,character:"-",after:`(?:[ \r
70
+ -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
71
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Si},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Si},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Si},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Si},{atBreak:!0,character:"~"}];var JM=document.createElement("i");function mo(e){let t="&"+e+";";JM.innerHTML=t;let r=JM.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function pa(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}var l5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dh(e){return e.replace(l5,u5)}function u5(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let o=r.charCodeAt(1),i=o===120||o===88;return pa(r.slice(i?2:1),i?16:10)}return mo(r)||e}function XM(e){return e.label||!e.identifier?e.label||"":Dh(e.identifier)}function ZM(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function KM(e,t,r){let n=t.indexStack,o=e.children||[],i=[],s=-1,a=r.before,l;n.push(-1);let u=t.createTracker(r);for(;++s<o.length;){let c=o[s],f;if(n[n.length-1]=s,s+1<o.length){let m=t.handle.handlers[o[s+1].type];m&&m.peek&&(m=m.peek),f=m?m(o[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=r.after;i.length>0&&(a==="\r"||a===`
72
+ `)&&c.type==="html"&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=t.createTracker(r),u.move(i.join("")));let p=t.handle(c,e,t,{...u.current(),after:f,before:a});l&&l===p.slice(0,1)&&(p=ar(l.charCodeAt(0))+p.slice(1));let h=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,h&&(i.length>0&&h.before&&a===i[i.length-1].slice(-1)&&(i[i.length-1]=i[i.length-1].slice(0,-1)+ar(a.charCodeAt(0))),h.after&&(l=f)),u.move(p),i.push(p),a=p.slice(-1)}return n.pop(),i.join("")}function e_(e,t,r){let n=t.indexStack,o=e.children||[],i=t.createTracker(r),s=[],a=-1;for(n.push(-1);++a<o.length;){let l=o[a];n[n.length-1]=a,s.push(i.move(t.handle(l,e,t,{before:`
73
+ `,after:`
74
+ `,...i.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<o.length-1&&s.push(i.move(c5(l,o[a+1],e,t)))}return n.pop(),s.join("")}function c5(e,t,r,n){let o=n.join.length;for(;o--;){let i=n.join[o](e,t,r,n);if(i===!0||i===1)break;if(typeof i=="number")return`
75
+ `.repeat(1+i);if(i===!1)return`
76
+
77
+ <!---->
78
+
79
+ `}return`
80
+
81
+ `}var f5=/\r?\n|\r/g;function t_(e,t){let r=[],n=0,o=0,i;for(;i=f5.exec(e);)s(e.slice(n,i.index)),r.push(i[0]),n=i.index+i[0].length,o++;return s(e.slice(n)),r.join("");function s(a){r.push(t(a,o,!a))}}function n_(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),o=[],i=[],s={},a=-1;for(;++a<e.unsafe.length;){let c=e.unsafe[a];if(!Th(e.stack,c))continue;let f=e.compilePattern(c),p;for(;p=f.exec(n);){let h="before"in c||!!c.atBreak,m="after"in c,d=p.index+(h?p[1].length:0);o.includes(d)?(s[d].before&&!h&&(s[d].before=!1),s[d].after&&!m&&(s[d].after=!1)):(o.push(d),s[d]={before:h,after:m})}}o.sort(p5);let l=r.before?r.before.length:0,u=n.length-(r.after?r.after.length:0);for(a=-1;++a<o.length;){let c=o[a];c<l||c>=u||c+1<u&&o[a+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||o[a-1]===c-1&&s[c].before&&!s[c-1].before&&!s[c-1].after||(l!==c&&i.push(r_(n.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||!r.encode.includes(n.charAt(c)))?i.push("\\"):(i.push(ar(n.charCodeAt(c))),l++))}return i.push(r_(n.slice(l,u),r.after)),i.join("")}function p5(e,t){return e-t}function r_(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],i=e+t,s=-1,a=0,l;for(;l=r.exec(i);)n.push(l.index);for(;++s<n.length;)a!==n[s]&&o.push(e.slice(a,n[s])),o.push("\\"),a=n[s];return o.push(e.slice(a)),o.join("")}function o_(e){let t=e||{},r=t.now||{},n=t.lineShift||0,o=r.line||1,i=r.column||1;return{move:l,current:s,shift:a};function s(){return{now:{line:o,column:i},lineShift:n}}function a(u){n+=u}function l(u){let c=u||"",f=c.split(/\r?\n|\r/g),p=f[f.length-1];return o+=f.length-1,i=f.length===1?i+p.length:1+p.length+n,c}}function Dy(e,t){let r=t||{},n={associationId:XM,containerPhrasing:g5,containerFlow:x5,createTracker:o_,compilePattern:ZM,enter:i,handlers:{...vi},handle:void 0,indentLines:t_,indexStack:[],join:[...GM],options:{},safe:y5,stack:[],unsafe:[...QM]};dy(n,r),n.options.tightDefinitions&&n.join.push(d5),n.handle=kh("type",{invalid:h5,unknown:m5,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:`
82
+ `,after:`
83
+ `,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
84
+ `),o;function i(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function h5(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function m5(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function d5(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function g5(e,t){return KM(e,this,t)}function x5(e,t){return e_(e,this,t)}function y5(e,t){return n_(this,e,t)}function Oy(){return{enter:{table:b5,tableData:i_,tableHeader:i_,tableRow:v5},exit:{codeText:S5,table:w5,tableData:Cy,tableHeader:Cy,tableRow:Cy}}}function b5(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function w5(e){this.exit(e),this.data.inTable=void 0}function v5(e){this.enter({type:"tableRow",children:[]},e)}function Cy(e){this.exit(e)}function i_(e){this.enter({type:"tableCell",children:[]},e)}function S5(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,k5));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function k5(e,t){return t==="|"?t:e}function My(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
85
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:a}};function s(h,m,d,g){return u(c(h,d,g),h.align)}function a(h,m,d,g){let y=f(h,d,g),S=u([y]);return S.slice(0,S.indexOf(`
86
+ `))}function l(h,m,d,g){let y=d.enter("tableCell"),S=d.enter("phrasing"),k=d.containerPhrasing(h,{...g,before:i,after:i});return S(),y(),k}function u(h,m){return TM(h,{align:m,alignDelimiters:n,padding:r,stringLength:o})}function c(h,m,d){let g=h.children,y=-1,S=[],k=m.enter("table");for(;++y<g.length;)S[y]=f(g[y],m,d);return k(),S}function f(h,m,d){let g=h.children,y=-1,S=[],k=m.enter("tableRow");for(;++y<g.length;)S[y]=l(g[y],h,m,d);return k(),S}function p(h,m,d){let g=vi.inlineCode(h,m,d);return d.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function _y(){return{exit:{taskListCheckValueChecked:s_,taskListCheckValueUnchecked:s_,paragraph:T5}}}function Iy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:E5}}}function s_(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function T5(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let o=t.children,i=-1,s;for(;++i<o.length;){let a=o[i];if(a.type==="paragraph"){s=a;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function E5(e,t,r,n){let o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);i&&a.move(s);let l=vi.listItem(e,t,r,{...n,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function Py(){return[uy(),fy(),hy(),Oy(),_y()]}function Fy(e){return{extensions:[cy(),py(),my(),My(e),Iy()]}}function Ze(e,t,r,n){let o=e.length,i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i<n.length;)s=n.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function ot(e,t){return e.length>0?(Ze(e,e.length,0,t),e):t}var Ny={}.hasOwnProperty;function Ch(e){let t={},r=-1;for(;++r<e.length;)A5(t,e[r]);return t}function A5(e,t){let r;for(r in t){let o=(Ny.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i){Ny.call(o,s)||(o[s]=[]);let a=i[s];D5(o[s],Array.isArray(a)?a:a?[a]:[])}}}function D5(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Ze(e,0,0,n)}function Oh(e){let t={},r=-1;for(;++r<e.length;)C5(t,e[r]);return t}function C5(e,t){let r;for(r in t){let o=(Ny.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i)o[s]=i[s]}}var O5={tokenize:F5,partial:!0},a_={tokenize:N5,partial:!0},l_={tokenize:L5,partial:!0},u_={tokenize:R5,partial:!0},M5={tokenize:B5,partial:!0},c_={name:"wwwAutolink",tokenize:I5,previous:p_},f_={name:"protocolAutolink",tokenize:P5,previous:h_},Mn={name:"emailAutolink",tokenize:_5,previous:m_},an={};function By(){return{text:an}}for(var ki=48;ki<123;)an[ki]=Mn,ki++,ki===58?ki=65:ki===91&&(ki=97);an[43]=Mn,an[45]=Mn,an[46]=Mn,an[95]=Mn,an[72]=[Mn,f_],an[104]=[Mn,f_],an[87]=[Mn,c_],an[119]=[Mn,c_];function _5(e,t,r){let n=this,o,i;return s;function s(f){return!Ly(f)||!m_.call(n,n.previous)||Ry(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Ly(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(M5,c,u)(f):f===45||f===95||Ve(f)?(i=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),o=!0,l}function c(f){return i&&o&&ct(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function I5(e,t,r){let n=this;return o;function o(s){return s!==87&&s!==119||!p_.call(n,n.previous)||Ry(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(O5,e.attempt(a_,e.attempt(l_,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function P5(e,t,r){let n=this,o="",i=!1;return s;function s(f){return(f===72||f===104)&&h_.call(n,n.previous)&&!Ry(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(ct(f)&&o.length<5)return o+=String.fromCodePoint(f),e.consume(f),a;if(f===58){let p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),i?u:(i=!0,l)):r(f)}function u(f){return f===null||xi(f)||be(f)||sn(f)||yi(f)?r(f):e.attempt(a_,e.attempt(l_,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function F5(e,t,r){let n=0;return o;function o(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),o):s===46&&n===3?(e.consume(s),i):r(s)}function i(s){return s===null?r(s):t(s)}}function N5(e,t,r){let n,o,i;return s;function s(u){return u===46||u===95?e.check(u_,l,a)(u):u===null||be(u)||sn(u)||u!==45&&yi(u)?l(u):(i=!0,e.consume(u),s)}function a(u){return u===95?n=!0:(o=n,n=void 0),e.consume(u),s}function l(u){return o||n||!i?r(u):t(u)}}function L5(e,t){let r=0,n=0;return o;function o(s){return s===40?(r++,e.consume(s),o):s===41&&n<r?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(u_,t,i)(s):s===null||be(s)||sn(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&n++,e.consume(s),o}}function R5(e,t,r){return n;function n(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),n):a===38?(e.consume(a),i):a===93?(e.consume(a),o):a===60||a===null||be(a)||sn(a)?t(a):r(a)}function o(a){return a===null||a===40||a===91||be(a)||sn(a)?t(a):n(a)}function i(a){return ct(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):ct(a)?(e.consume(a),s):r(a)}}function B5(e,t,r){return n;function n(i){return e.consume(i),o}function o(i){return Ve(i)?r(i):t(i)}}function p_(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||be(e)}function h_(e){return!ct(e)}function m_(e){return!(e===47||Ly(e))}function Ly(e){return e===43||e===45||e===46||e===95||Ve(e)}function Ry(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}var $5={'"':"quot","&":"amp","<":"lt",">":"gt"};function Mh(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+$5[r]+";"}}function ln(e,t){let r=Mh(lr(e||""));if(!t)return r;let n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),s=r.indexOf("/");return n<0||s>-1&&n>s||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}function lr(e){let t=[],r=-1,n=0,o=0;for(;++r<e.length;){let i=e.charCodeAt(r),s="";if(i===37&&Ve(e.charCodeAt(r+1))&&Ve(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){let a=e.charCodeAt(r+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="\uFFFD"}else s=String.fromCharCode(i);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+o+1,s=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}function Uy(){return{exit:{literalAutolinkEmail:z5,literalAutolinkHttp:j5,literalAutolinkWww:U5}}}function U5(e){$y.call(this,e,"http://")}function z5(e){$y.call(this,e,"mailto:")}function j5(e){$y.call(this,e)}function $y(e,t){let r=this.sliceSerialize(e);this.tag('<a href="'+ln((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}function go(e,t,r){let n=[],o=-1;for(;++o<e.length;){let i=e[o].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}var iu={name:"attention",resolveAll:q5,tokenize:H5};function q5(e,t){let r=-1,n,o,i,s,a,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[r][1].start};d_(f,-l),d_(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ot(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ot(u,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=ot(u,go(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ot(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ot(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ze(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function H5(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=On(n),i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;let u=e.exit("attentionSequence"),c=On(l),f=!c||c===2&&o||r.includes(l),p=!o||o===2&&c||r.includes(n);return u._open=!!(i===42?f:f&&(o||!p)),u._close=!!(i===42?p:p&&(c||!f)),t(l)}}function d_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var zy={name:"autolink",tokenize:W5};function W5(e,t,r){let n=0;return o;function o(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return ct(h)?(e.consume(h),s):h===64?r(h):u(h)}function s(h){return h===43||h===45||h===46||Ve(h)?(n=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Ve(h))&&n++<32?(e.consume(h),a):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||xi(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):mM(h)?(e.consume(h),u):r(h)}function c(h){return Ve(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Ve(h))&&n++<63){let m=h===45?p:f;return e.consume(h),m}return r(h)}}function ie(e,t,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,i=0;return s;function s(l){return re(l)?(e.enter(r),a(l)):t(l)}function a(l){return re(l)&&i++<o?(e.consume(l),a):(e.exit(r),t(l))}}var un={partial:!0,tokenize:Y5};function Y5(e,t,r){return n;function n(i){return re(i)?ie(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||G(i)?t(i):r(i)}}var _h={continuation:{tokenize:G5},exit:Q5,name:"blockQuote",tokenize:V5};function V5(e,t,r){let n=this;return o;function o(s){if(s===62){let a=n.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return r(s)}function i(s){return re(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function G5(e,t,r){let n=this;return o;function o(s){return re(s)?ie(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(_h,t,r)(s)}}function Q5(e){e.exit("blockQuote")}var Ih={name:"characterEscape",tokenize:J5};function J5(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return gM(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}var Ph={name:"characterReference",tokenize:X5};function X5(e,t,r){let n=this,o=0,i,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,s=Ve,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=dM,c):(e.enter("characterReferenceValue"),i=7,s=tu,c(f))}function c(f){if(f===59&&o){let p=e.exit("characterReferenceValue");return s===Ve&&!mo(n.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&o++<i?(e.consume(f),c):r(f)}}var g_={partial:!0,tokenize:K5},Fh={concrete:!0,name:"codeFenced",tokenize:Z5};function Z5(e,t,r){let n=this,o={partial:!0,tokenize:R},i=0,s=0,a;return l;function l(T){return u(T)}function u(T){let $=n.events[n.events.length-1];return i=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,a=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(T)}function c(T){return T===a?(s++,e.consume(T),c):s<3?r(T):(e.exit("codeFencedFenceSequence"),re(T)?ie(e,f,"whitespace")(T):f(T))}function f(T){return T===null||G(T)?(e.exit("codeFencedFence"),n.interrupt?t(T):e.check(g_,d,N)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===null||G(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(T)):re(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ie(e,h,"whitespace")(T)):T===96&&T===a?r(T):(e.consume(T),p)}function h(T){return T===null||G(T)?f(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||G(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(T)):T===96&&T===a?r(T):(e.consume(T),m)}function d(T){return e.attempt(o,N,g)(T)}function g(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),y}function y(T){return i>0&&re(T)?ie(e,S,"linePrefix",i+1)(T):S(T)}function S(T){return T===null||G(T)?e.check(g_,d,N)(T):(e.enter("codeFlowValue"),k(T))}function k(T){return T===null||G(T)?(e.exit("codeFlowValue"),S(T)):(e.consume(T),k)}function N(T){return e.exit("codeFenced"),t(T)}function R(T,$,J){let H=0;return D;function D(P){return T.enter("lineEnding"),T.consume(P),T.exit("lineEnding"),xe}function xe(P){return T.enter("codeFencedFence"),re(P)?ie(T,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):j(P)}function j(P){return P===a?(T.enter("codeFencedFenceSequence"),O(P)):J(P)}function O(P){return P===a?(H++,T.consume(P),O):H>=s?(T.exit("codeFencedFenceSequence"),re(P)?ie(T,M,"whitespace")(P):M(P)):J(P)}function M(P){return P===null||G(P)?(T.exit("codeFencedFence"),$(P)):J(P)}}}function K5(e,t,r){let n=this;return o;function o(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var su={name:"codeIndented",tokenize:tY},eY={partial:!0,tokenize:rY};function tY(e,t,r){let n=this;return o;function o(u){return e.enter("codeIndented"),ie(e,i,"linePrefix",5)(u)}function i(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):G(u)?e.attempt(eY,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||G(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function rY(e,t,r){let n=this;return o;function o(s){return n.parser.lazy[n.now().line]?r(s):G(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):ie(e,i,"linePrefix",5)(s)}function i(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):G(s)?o(s):r(s)}}var jy={name:"codeText",previous:oY,resolve:nY,tokenize:iY};function nY(e){let t=e.length-4,r=3,n,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}function oY(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iY(e,t,r){let n=this,o=0,i,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),o++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(s=e.enter("codeTextSequence"),i=0,f(p)):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||G(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),i++,f):i===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}var lu=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let o=r||0;this.setCursor(Math.trunc(t));let i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&au(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),au(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),au(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);au(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);au(this.left,r.reverse())}}};function au(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Nh(e){let t={},r=-1,n,o,i,s,a,l,u,c=new lu(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,sY(c,r)),r=t[r],u=!0);else if(n[1]._container){for(i=r,o=void 0;i--&&(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(o&&(c.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);o&&(n[1].end={...c.get(o)[1].start},a=c.slice(o,r),a.unshift(n),c.splice(o,r-o+1,a))}}return Ze(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function sY(e,t){let r=e.get(t)[1],n=e.get(t)[2],o=t-1,i=[],s=r._tokenizer||n.parser[r.contentType](r.start),a=s.events,l=[],u={},c,f,p=-1,h=r,m=0,d=0,g=[d];for(;h;){for(;e.get(++o)[1]!==h;);i.push(o),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(d=p+1,g.push(d),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){let y=a.slice(g[p],g[p+1]),S=i.pop();l.push([S,S+y.length-1]),e.splice(S,2,y)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}var qy={resolve:lY,tokenize:uY},aY={partial:!0,tokenize:cY};function lY(e){return Nh(e),e}function uY(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):G(a)?e.check(aY,s,i)(a):(e.consume(a),o)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function cY(e,t,r){let n=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ie(e,i,"linePrefix")}function i(s){if(s===null||G(s))return r(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function Lh(e,t,r,n,o,i,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(y){return y===60?(e.enter(n),e.enter(o),e.enter(i),e.consume(y),e.exit(i),p):y===null||y===32||y===41||xi(y)?r(y):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),d(y))}function p(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(o),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||G(y)?r(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function d(y){return!c&&(y===null||y===41||be(y))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(y)):c<u&&y===40?(e.consume(y),c++,d):y===41?(e.consume(y),c--,d):y===null||y===32||y===40||xi(y)?r(y):(e.consume(y),y===92?g:d)}function g(y){return y===40||y===41||y===92?(e.consume(y),d):d(y)}}function Rh(e,t,r,n,o,i){let s=this,a=0,l;return u;function u(h){return e.enter(n),e.enter(o),e.consume(h),e.exit(o),e.enter(i),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(h):h===93?(e.exit(i),e.enter(o),e.consume(h),e.exit(o),e.exit(n),t):G(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||G(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!re(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function Bh(e,t,r,n,o,i){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(o),e.consume(p),e.exit(o),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(o),e.consume(p),e.exit(o),e.exit(n),t):(e.enter(i),u(p))}function u(p){return p===s?(e.exit(i),l(s)):p===null?r(p):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||G(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function Ti(e,t){let r;return n;function n(o){return G(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):re(o)?ie(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}var Hy={name:"definition",tokenize:pY},fY={partial:!0,tokenize:hY};function pY(e,t,r){let n=this,o;return i;function i(h){return e.enter("definition"),s(h)}function s(h){return Rh.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return o=Ge(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return be(h)?Ti(e,u)(h):u(h)}function u(h){return Lh(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(fY,f,f)(h)}function f(h){return re(h)?ie(e,p,"whitespace")(h):p(h)}function p(h){return h===null||G(h)?(e.exit("definition"),n.parser.defined.push(o),t(h)):r(h)}}function hY(e,t,r){return n;function n(a){return be(a)?Ti(e,o)(a):r(a)}function o(a){return Bh(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return re(a)?ie(e,s,"whitespace")(a):s(a)}function s(a){return a===null||G(a)?t(a):r(a)}}var Wy={name:"hardBreakEscape",tokenize:mY};function mY(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return G(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}var Yy={name:"headingAtx",resolve:dY,tokenize:gY};function dY(e,t){let r=e.length-2,n=3,o,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ze(e,n,r-n+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function gY(e,t,r){let n=0;return o;function o(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||be(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||G(c)?(e.exit("atxHeading"),t(c)):re(c)?ie(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||be(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var x_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Vy=["pre","script","style","textarea"];var Gy={concrete:!0,name:"htmlFlow",resolveTo:bY,tokenize:wY},xY={partial:!0,tokenize:SY},yY={partial:!0,tokenize:vY};function bY(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wY(e,t,r){let n=this,o,i,s,a,l;return u;function u(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),f}function f(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),i=!0,d):w===63?(e.consume(w),o=3,n.interrupt?t:x):ct(w)?(e.consume(w),s=String.fromCharCode(w),g):r(w)}function p(w){return w===45?(e.consume(w),o=2,h):w===91?(e.consume(w),o=5,a=0,m):ct(w)?(e.consume(w),o=4,n.interrupt?t:x):r(w)}function h(w){return w===45?(e.consume(w),n.interrupt?t:x):r(w)}function m(w){let he="CDATA[";return w===he.charCodeAt(a++)?(e.consume(w),a===he.length?n.interrupt?t:j:m):r(w)}function d(w){return ct(w)?(e.consume(w),s=String.fromCharCode(w),g):r(w)}function g(w){if(w===null||w===47||w===62||be(w)){let he=w===47,Se=s.toLowerCase();return!he&&!i&&Vy.includes(Se)?(o=1,n.interrupt?t(w):j(w)):x_.includes(s.toLowerCase())?(o=6,he?(e.consume(w),y):n.interrupt?t(w):j(w)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(w):i?S(w):k(w))}return w===45||Ve(w)?(e.consume(w),s+=String.fromCharCode(w),g):r(w)}function y(w){return w===62?(e.consume(w),n.interrupt?t:j):r(w)}function S(w){return re(w)?(e.consume(w),S):D(w)}function k(w){return w===47?(e.consume(w),D):w===58||w===95||ct(w)?(e.consume(w),N):re(w)?(e.consume(w),k):D(w)}function N(w){return w===45||w===46||w===58||w===95||Ve(w)?(e.consume(w),N):R(w)}function R(w){return w===61?(e.consume(w),T):re(w)?(e.consume(w),R):k(w)}function T(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),l=w,$):re(w)?(e.consume(w),T):J(w)}function $(w){return w===l?(e.consume(w),l=null,H):w===null||G(w)?r(w):(e.consume(w),$)}function J(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||be(w)?R(w):(e.consume(w),J)}function H(w){return w===47||w===62||re(w)?k(w):r(w)}function D(w){return w===62?(e.consume(w),xe):r(w)}function xe(w){return w===null||G(w)?j(w):re(w)?(e.consume(w),xe):r(w)}function j(w){return w===45&&o===2?(e.consume(w),B):w===60&&o===1?(e.consume(w),Q):w===62&&o===4?(e.consume(w),ee):w===63&&o===3?(e.consume(w),x):w===93&&o===5?(e.consume(w),W):G(w)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(xY,se,O)(w)):w===null||G(w)?(e.exit("htmlFlowData"),O(w)):(e.consume(w),j)}function O(w){return e.check(yY,M,se)(w)}function M(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),P}function P(w){return w===null||G(w)?O(w):(e.enter("htmlFlowData"),j(w))}function B(w){return w===45?(e.consume(w),x):j(w)}function Q(w){return w===47?(e.consume(w),s="",F):j(w)}function F(w){if(w===62){let he=s.toLowerCase();return Vy.includes(he)?(e.consume(w),ee):j(w)}return ct(w)&&s.length<8?(e.consume(w),s+=String.fromCharCode(w),F):j(w)}function W(w){return w===93?(e.consume(w),x):j(w)}function x(w){return w===62?(e.consume(w),ee):w===45&&o===2?(e.consume(w),x):j(w)}function ee(w){return w===null||G(w)?(e.exit("htmlFlowData"),se(w)):(e.consume(w),ee)}function se(w){return e.exit("htmlFlow"),t(w)}}function vY(e,t,r){let n=this;return o;function o(s){return G(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):r(s)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function SY(e,t,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(un,t,r)}}var Qy={name:"htmlText",tokenize:kY};function kY(e,t,r){let n=this,o,i,s;return a;function a(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),l}function l(x){return x===33?(e.consume(x),u):x===47?(e.consume(x),R):x===63?(e.consume(x),k):ct(x)?(e.consume(x),J):r(x)}function u(x){return x===45?(e.consume(x),c):x===91?(e.consume(x),i=0,m):ct(x)?(e.consume(x),S):r(x)}function c(x){return x===45?(e.consume(x),h):r(x)}function f(x){return x===null?r(x):x===45?(e.consume(x),p):G(x)?(s=f,Q(x)):(e.consume(x),f)}function p(x){return x===45?(e.consume(x),h):f(x)}function h(x){return x===62?B(x):x===45?p(x):f(x)}function m(x){let ee="CDATA[";return x===ee.charCodeAt(i++)?(e.consume(x),i===ee.length?d:m):r(x)}function d(x){return x===null?r(x):x===93?(e.consume(x),g):G(x)?(s=d,Q(x)):(e.consume(x),d)}function g(x){return x===93?(e.consume(x),y):d(x)}function y(x){return x===62?B(x):x===93?(e.consume(x),y):d(x)}function S(x){return x===null||x===62?B(x):G(x)?(s=S,Q(x)):(e.consume(x),S)}function k(x){return x===null?r(x):x===63?(e.consume(x),N):G(x)?(s=k,Q(x)):(e.consume(x),k)}function N(x){return x===62?B(x):k(x)}function R(x){return ct(x)?(e.consume(x),T):r(x)}function T(x){return x===45||Ve(x)?(e.consume(x),T):$(x)}function $(x){return G(x)?(s=$,Q(x)):re(x)?(e.consume(x),$):B(x)}function J(x){return x===45||Ve(x)?(e.consume(x),J):x===47||x===62||be(x)?H(x):r(x)}function H(x){return x===47?(e.consume(x),B):x===58||x===95||ct(x)?(e.consume(x),D):G(x)?(s=H,Q(x)):re(x)?(e.consume(x),H):B(x)}function D(x){return x===45||x===46||x===58||x===95||Ve(x)?(e.consume(x),D):xe(x)}function xe(x){return x===61?(e.consume(x),j):G(x)?(s=xe,Q(x)):re(x)?(e.consume(x),xe):H(x)}function j(x){return x===null||x===60||x===61||x===62||x===96?r(x):x===34||x===39?(e.consume(x),o=x,O):G(x)?(s=j,Q(x)):re(x)?(e.consume(x),j):(e.consume(x),M)}function O(x){return x===o?(e.consume(x),o=void 0,P):x===null?r(x):G(x)?(s=O,Q(x)):(e.consume(x),O)}function M(x){return x===null||x===34||x===39||x===60||x===61||x===96?r(x):x===47||x===62||be(x)?H(x):(e.consume(x),M)}function P(x){return x===47||x===62||be(x)?H(x):r(x)}function B(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):r(x)}function Q(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),F}function F(x){return re(x)?ie(e,W,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):W(x)}function W(x){return e.enter("htmlTextData"),s(x)}}var Ei={name:"labelEnd",resolveAll:DY,resolveTo:CY,tokenize:OY},TY={tokenize:MY},EY={tokenize:_Y},AY={tokenize:IY};function DY(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let o=n.type==="labelImage"?4:2;n.type="data",t+=o}}return e.length!==r.length&&Ze(e,0,e.length,r),e}function CY(e,t){let r=e.length,n=0,o,i,s,a;for(;r--;)if(o=e[r][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=r,o.type!=="labelLink")){n=2;break}}else o.type==="labelEnd"&&(s=r);let l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=ot(a,e.slice(i+1,i+n+3)),a=ot(a,[["enter",c,t]]),a=ot(a,go(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),a=ot(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=ot(a,e.slice(s+1)),a=ot(a,[["exit",l,t]]),Ze(e,i,e.length,a),e}function OY(e,t,r){let n=this,o=n.events.length,i,s;for(;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){i=n.events[o][1];break}return a;function a(p){return i?i._inactive?f(p):(s=n.parser.defined.includes(Ge(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(TY,c,s?c:f)(p):p===91?e.attempt(EY,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(AY,c,f)(p)}function c(p){return t(p)}function f(p){return i._balanced=!0,r(p)}}function MY(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return be(f)?Ti(e,i)(f):i(f)}function i(f){return f===41?c(f):Lh(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return be(f)?Ti(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?Bh(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return be(f)?Ti(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function _Y(e,t,r){let n=this;return o;function o(a){return Rh.call(n,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return n.parser.defined.includes(Ge(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function IY(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}var Jy={name:"labelStartImage",resolveAll:Ei.resolveAll,tokenize:PY};function PY(e,t,r){let n=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):r(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var Xy={name:"labelStartLink",resolveAll:Ei.resolveAll,tokenize:FY};function FY(e,t,r){let n=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var uu={name:"lineEnding",tokenize:NY};function NY(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ie(e,t,"linePrefix")}}var Ai={name:"thematicBreak",tokenize:LY};function LY(e,t,r){let n=0,o;return i;function i(u){return e.enter("thematicBreak"),s(u)}function s(u){return o=u,a(u)}function a(u){return u===o?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||G(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===o?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),re(u)?ie(e,a,"whitespace")(u):a(u))}}var It={continuation:{tokenize:UY},exit:jY,name:"list",tokenize:$Y},RY={partial:!0,tokenize:qY},BY={partial:!0,tokenize:zY};function $Y(e,t,r){let n=this,o=n.events[n.events.length-1],i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(h){let m=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:tu(h)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Ai,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return tu(h)&&++s<10?(e.consume(h),l):(!n.interrupt||s<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(un,n.interrupt?r:c,e.attempt(RY,p,f))}function c(h){return n.containerState.initialBlankLine=!0,i++,p(h)}function f(h){return re(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):r(h)}function p(h){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function UY(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(un,o,i);function o(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ie(e,t,"listItemIndent",n.containerState.size+1)(a)}function i(a){return n.containerState.furtherBlankLines||!re(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(BY,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,ie(e,e.attempt(It,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function zY(e,t,r){let n=this;return ie(e,o,"listItemIndent",n.containerState.size+1);function o(i){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(i):r(i)}}function jY(e){e.exit(this.containerState.type)}function qY(e,t,r){let n=this;return ie(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){let s=n.events[n.events.length-1];return!re(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}var $h={name:"setextUnderline",resolveTo:HY,tokenize:WY};function HY(e,t){let r=e.length,n,o,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);let s={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function WY(e,t,r){let n=this,o;return i;function i(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),o=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===o?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),re(u)?ie(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||G(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var YY={tokenize:KY,partial:!0};function Zy(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:JY,continuation:{tokenize:XY},exit:ZY}},text:{91:{name:"gfmFootnoteCall",tokenize:QY},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:VY,resolveTo:GY}}}}function VY(e,t,r){let n=this,o=n.events.length,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;o--;){let l=n.events[o][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return r(l);let u=Ge(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function GY(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function QY(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(i>999||f===93&&!s||f===null||f===91||be(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return o.includes(Ge(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return be(f)||(s=!0),i++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),i++,u):u(f)}}function JY(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i,s=0,a;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(s>999||m===93&&!a||m===null||m===91||be(m))return r(m);if(m===93){e.exit("chunkString");let d=e.exit("gfmFootnoteDefinitionLabelString");return i=Ge(n.sliceSerialize(d)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return be(m)||(a=!0),s++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),o.includes(i)||o.push(i),ie(e,h,"gfmFootnoteDefinitionWhitespace")):r(m)}function h(m){return t(m)}}function XY(e,t,r){return e.check(un,t,e.attempt(YY,t,r))}function ZY(e){e.exit("gfmFootnoteDefinition")}function KY(e,t,r){let n=this;return ie(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):r(i)}}var e8={}.hasOwnProperty,t8={};function y_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ky(e){let t=e||t8,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=t.labelAttributes===null||t.labelAttributes===void 0?'class="sr-only"':t.labelAttributes,i=t.backLabel||y_,s=t.clobberPrefix===null||t.clobberPrefix===void 0?"user-content-":t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let a=this.getData("gfmFootnoteDefinitions"),l=this.getData("gfmFootnoteDefinitionStack"),u=this.getData("tightStack"),c=l.pop(),f=this.resume();a||this.setData("gfmFootnoteDefinitions",a={}),e8.call(a,c)||(a[c]=f),u.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(a){let l=this.getData("gfmFootnoteDefinitionStack");l||this.setData("gfmFootnoteDefinitionStack",l=[]),l.push(Ge(this.sliceSerialize(a))),this.resume(),this.buffer()},gfmFootnoteCallString(a){let l=this.getData("gfmFootnoteCallOrder"),u=this.getData("gfmFootnoteCallCounts"),c=Ge(this.sliceSerialize(a)),f;this.resume(),l||this.setData("gfmFootnoteCallOrder",l=[]),u||this.setData("gfmFootnoteCallCounts",u={});let p=l.indexOf(c),h=ln(c.toLowerCase());p===-1?(l.push(c),u[c]=1,f=l.length):(u[c]++,f=p+1);let m=u[c];this.tag('<sup><a href="#'+s+"fn-"+h+'" id="'+s+"fnref-"+h+(m>1?"-"+m:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(f)+"</a></sup>")},null(){let a=this.getData("gfmFootnoteCallOrder")||[],l=this.getData("gfmFootnoteCallCounts")||{},u=this.getData("gfmFootnoteDefinitions")||{},c=-1;for(a.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+n+' id="footnote-label"'+(o?" "+o:"")+">"),this.raw(this.encode(r)),this.tag("</"+n+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++c<a.length;){let f=a[c],p=ln(f.toLowerCase()),h=0,m=[];for(;++h<=l[f];)m.push('<a href="#'+s+"fnref-"+p+(h>1?"-"+h:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof i=="string"?i:i(c,h))+'" class="data-footnote-backref">\u21A9'+(h>1?"<sup>"+h+"</sup>":"")+"</a>");let d=m.join(" "),g=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+s+"fn-"+p+'">'),this.lineEndingIfNeeded(),this.tag(u[f].replace(/<\/p>(?:\r?\n|\r)?$/,function(y){return g=!0," "+d+y})),g||(this.lineEndingIfNeeded(),this.tag(d)),this.lineEndingIfNeeded(),this.tag("</li>")}a.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}function eb(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}function tb(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:i,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function o(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&Ze(p,p.length,0,go(h,s.slice(u+1,l),a)),Ze(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Ze(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,a,l){let u=this.previous,c=this.events,f=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),h(m))}function h(m){let d=On(u);if(m===126)return f>1?l(m):(s.consume(m),f++,h);if(f<2&&!r)return l(m);let g=s.exit("strikethroughSequenceTemporary"),y=On(m);return g._open=!y||y===2&&!!d,g._close=!d||d===2&&!!y,a(m)}}}var rb={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function nb(){return{enter:{table(e){let t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=rb[e[t]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=rb[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,r8)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+rb[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function r8(e,t){return t==="|"?t:e}var Uh=class{constructor(){this.map=[]}add(t,r,n){n8(this,t,r,n)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push([...t]),t.length=0;let o=n.pop();for(;o;)t.push(...o),o=n.pop();this.map.length=0}};function n8(e,t,r,n){let o=0;if(!(r===0&&n.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=r,e.map[o][2].push(...n);return}o+=1}e.map.push([t,r,n])}}function b_(e,t){let r=!1,n=[];for(;t<e.length;){let o=e[t];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function ob(){return{flow:{null:{name:"table",tokenize:o8,resolveAll:i8}}}}function o8(e,t,r){let n=this,o=0,i=0,s;return a;function a(D){let xe=n.events.length-1;for(;xe>-1;){let M=n.events[xe][1].type;if(M==="lineEnding"||M==="linePrefix")xe--;else break}let j=xe>-1?n.events[xe][1].type:null,O=j==="tableHead"||j==="tableRow"?T:l;return O===T&&n.parser.lazy[n.now().line]?r(D):O(D)}function l(D){return e.enter("tableHead"),e.enter("tableRow"),u(D)}function u(D){return D===124||(s=!0,i+=1),c(D)}function c(D){return D===null?r(D):G(D)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),h):r(D):re(D)?ie(e,c,"whitespace")(D):(i+=1,s&&(s=!1,o+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(D)))}function f(D){return D===null||D===124||be(D)?(e.exit("data"),c(D)):(e.consume(D),D===92?p:f)}function p(D){return D===92||D===124?(e.consume(D),f):f(D)}function h(D){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(D):(e.enter("tableDelimiterRow"),s=!1,re(D)?ie(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):m(D))}function m(D){return D===45||D===58?g(D):D===124?(s=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),d):R(D)}function d(D){return re(D)?ie(e,g,"whitespace")(D):g(D)}function g(D){return D===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),y):D===45?(i+=1,y(D)):D===null||G(D)?N(D):R(D)}function y(D){return D===45?(e.enter("tableDelimiterFiller"),S(D)):R(D)}function S(D){return D===45?(e.consume(D),S):D===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(D))}function k(D){return re(D)?ie(e,N,"whitespace")(D):N(D)}function N(D){return D===124?m(D):D===null||G(D)?!s||o!==i?R(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):R(D)}function R(D){return r(D)}function T(D){return e.enter("tableRow"),$(D)}function $(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),$):D===null||G(D)?(e.exit("tableRow"),t(D)):re(D)?ie(e,$,"whitespace")(D):(e.enter("data"),J(D))}function J(D){return D===null||D===124||be(D)?(e.exit("data"),$(D)):(e.consume(D),D===92?H:J)}function H(D){return D===92||D===124?(e.consume(D),J):J(D)}}function i8(e,t){let r=-1,n=!0,o=0,i=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f,p=new Uh;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(w_(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,f=void 0,i=[0,0,0,0],s=[0,r+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),o=m.type==="tableDelimiterRow"?2:c?3:1):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],f=zh(p,t,i,o,void 0,f),i=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],f=zh(p,t,i,o,void 0,f)),i=s,s=[i[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],f=zh(p,t,i,o,r,f)):s[1]!==0&&(f=zh(p,t,s,o,r,f)),o=0):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&w_(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){let h=t.events[r];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=b_(t.events,r))}return e}function zh(e,t,r,n,o,i){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(i.end=Object.assign({},ha(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));let l=ha(t.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){let u=ha(t.events,r[2]),c=ha(t.events,r[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),n!==2){let p=t.events[r[2]],h=t.events[r[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,d=r[3]-r[2]-1;e.add(m,d,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},ha(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function w_(e,t,r,n,o){let i=[],s=ha(t.events,r);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function ha(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var v_=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,s8=new RegExp("^"+v_.source,"i");function ib(){return{exit:{htmlFlowData(e){S_.call(this,e,v_)},htmlTextData(e){S_.call(this,e,s8)}}}}function S_(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"&lt;$1$2")),this.raw(this.encode(r))}function sb(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}var a8={name:"tasklistCheck",tokenize:l8};function ab(){return{text:{91:a8}}}function l8(e,t,r){let n=this;return o;function o(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return be(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(l)}function a(l){return G(l)?t(l):re(l)?e.check({tokenize:u8},t,r)(l):r(l)}}function u8(e,t,r){return ie(e,n,"whitespace");function n(o){return o===null?r(o):t(o)}}function k_(e){return Ch([By(),Zy(),tb(e),ob(),ab()])}function Wze(e){return Oh([Uy(),Ky(e),eb(),nb(),ib(),sb()])}var c8={};function ma(e){let t=this,r=e||c8,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(k_(r)),i.push(Py()),s.push(Fy(r))}var T_={}.hasOwnProperty,E_=/^(https?|ircs?|mailto|xmpp)$/i,f8=/^https?$/i;function lb(e){let t=e||{},r=!0,n={},o=[[]],i=[],s=[],l=Oh([{enter:{blockQuote:P,codeFenced:W,codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:se,codeText:Rt,content:Pr,definition:Ae,definitionDestinationString:Ht,definitionLabelString:g,definitionTitleString:g,emphasis:_o,htmlFlow:tr,htmlText:fr,image:he,label:g,link:Se,listItemMarker:xe,listItemValue:D,listOrdered:J,listUnordered:H,paragraph:Q,reference:g,resource:E,resourceDestinationString:C,resourceTitleString:g,setextHeading:cr,strong:Io},exit:{atxHeading:ze,atxHeadingSequence:er,autolinkEmail:pF,autolinkProtocol:fF,blockQuote:B,characterEscapeValue:q,characterReferenceMarkerHexadecimal:lw,characterReferenceMarkerNumeric:lw,characterReferenceValue:cF,codeFenced:w,codeFencedFence:ee,codeFencedFenceInfo:x,codeFencedFenceMeta:$,codeFlowValue:me,codeIndented:w,codeText:Rn,codeTextData:q,data:q,definition:Tr,definitionDestinationString:ft,definitionLabelString:De,definitionTitleString:Lt,emphasis:Er,hardBreakEscape:Ce,hardBreakTrailing:Ce,htmlFlow:Nr,htmlFlowData:q,htmlText:Nr,htmlTextData:q,image:ke,label:A,labelText:Re,lineEnding:ae,link:ke,listOrdered:j,listUnordered:O,paragraph:F,reference:$,referenceString:v,resource:$,resourceDestinationString:I,resourceTitleString:Z,setextHeading:_,setextHeadingLineSequence:Fr,setextHeadingText:Wt,strong:lF,thematicBreak:uF}},...t.htmlExtensions||[]]),u={definitions:n,tightStack:s},c={buffer:g,encode:T,getData:d,lineEndingIfNeeded:R,options:t,raw:k,resume:y,setData:m,tag:S},f=t.defaultLineEnding;return p;function p(Y){let oe=-1,vt=0,Ar=[],Lr=[],dn=[];for(;++oe<Y.length;)!f&&(Y[oe][1].type==="lineEnding"||Y[oe][1].type==="lineEndingBlank")&&(f=Y[oe][2].sliceSerialize(Y[oe][1])),(Y[oe][1].type==="listOrdered"||Y[oe][1].type==="listUnordered")&&(Y[oe][0]==="enter"?Ar.push(oe):h(Y.slice(Ar.pop(),oe))),Y[oe][1].type==="definition"&&(Y[oe][0]==="enter"?(dn=ot(dn,Y.slice(vt,oe)),vt=oe):(Lr=ot(Lr,Y.slice(vt,oe+1)),vt=oe+1));Lr=ot(Lr,dn),Lr=ot(Lr,Y.slice(vt)),oe=-1;let Rr=Lr;for(l.enter.null&&l.enter.null.call(c);++oe<Y.length;){let uw=l[Rr[oe][0]],cw=Rr[oe][1].type,fw=uw[cw];T_.call(uw,cw)&&fw&&fw.call({sliceSerialize:Rr[oe][2].sliceSerialize,...c},Rr[oe][1])}return l.exit.null&&l.exit.null.call(c),o[0].join("")}function h(Y){let oe=Y.length,vt=0,Ar=0,Lr=!1,dn;for(;++vt<oe;){let Rr=Y[vt];if(Rr[1]._container)dn=void 0,Rr[0]==="enter"?Ar++:Ar--;else switch(Rr[1].type){case"listItemPrefix":{Rr[0]==="exit"&&(dn=!0);break}case"linePrefix":break;case"lineEndingBlank":{Rr[0]==="enter"&&!Ar&&(dn?dn=void 0:Lr=!0);break}default:dn=void 0}}Y[0][1]._loose=Lr}function m(Y,oe){u[Y]=oe}function d(Y){return u[Y]}function g(){o.push([])}function y(){return o.pop().join("")}function S(Y){r&&(m("lastWasTag",!0),o[o.length-1].push(Y))}function k(Y){m("lastWasTag"),o[o.length-1].push(Y)}function N(){k(f||`
87
+ `)}function R(){let Y=o[o.length-1],oe=Y[Y.length-1],vt=oe?oe.charCodeAt(oe.length-1):null;vt===10||vt===13||vt===null||N()}function T(Y){return d("ignoreEncode")?Y:Mh(Y)}function $(){y()}function J(Y){s.push(!Y._loose),R(),S("<ol"),m("expectFirstItem",!0)}function H(Y){s.push(!Y._loose),R(),S("<ul"),m("expectFirstItem",!0)}function D(Y){if(d("expectFirstItem")){let oe=Number.parseInt(this.sliceSerialize(Y),10);oe!==1&&S(' start="'+T(String(oe))+'"')}}function xe(){d("expectFirstItem")?S(">"):M(),R(),S("<li>"),m("expectFirstItem"),m("lastWasTag")}function j(){M(),s.pop(),N(),S("</ol>")}function O(){M(),s.pop(),N(),S("</ul>")}function M(){d("lastWasTag")&&!d("slurpAllLineEndings")&&R(),S("</li>"),m("slurpAllLineEndings")}function P(){s.push(!1),R(),S("<blockquote>")}function B(){s.pop(),R(),S("</blockquote>"),m("slurpAllLineEndings")}function Q(){s[s.length-1]||(R(),S("<p>")),m("slurpAllLineEndings")}function F(){s[s.length-1]?m("slurpAllLineEndings",!0):S("</p>")}function W(){R(),S("<pre><code"),m("fencesCount",0)}function x(){let Y=y();S(' class="language-'+Y+'"')}function ee(){let Y=d("fencesCount")||0;Y||(S(">"),m("slurpOneLineEnding",!0)),m("fencesCount",Y+1)}function se(){R(),S("<pre><code>")}function w(){let Y=d("fencesCount");Y!==void 0&&Y<2&&u.tightStack.length>0&&!d("lastWasTag")&&N(),d("flowCodeSeenData")&&R(),S("</code></pre>"),Y!==void 0&&Y<2&&R(),m("flowCodeSeenData"),m("fencesCount"),m("slurpOneLineEnding")}function he(){i.push({image:!0}),r=void 0}function Se(){i.push({})}function Re(Y){i[i.length-1].labelId=this.sliceSerialize(Y)}function A(){i[i.length-1].label=y()}function v(Y){i[i.length-1].referenceId=this.sliceSerialize(Y)}function E(){g(),i[i.length-1].destination=""}function C(){g(),m("ignoreEncode",!0)}function I(){i[i.length-1].destination=y(),m("ignoreEncode")}function Z(){i[i.length-1].title=y()}function ke(){let Y=i.length-1,oe=i[Y],vt=oe.referenceId||oe.labelId,Ar=oe.destination===void 0?n[Ge(vt)]:oe;for(r=!0;Y--;)if(i[Y].image){r=void 0;break}oe.image?(S('<img src="'+ln(Ar.destination,t.allowDangerousProtocol?void 0:f8)+'" alt="'),k(oe.label),S('"')):S('<a href="'+ln(Ar.destination,t.allowDangerousProtocol?void 0:E_)+'"'),S(Ar.title?' title="'+Ar.title+'"':""),oe.image?S(" />"):(S(">"),k(oe.label),S("</a>")),i.pop()}function Ae(){g(),i.push({})}function De(Y){y(),i[i.length-1].labelId=this.sliceSerialize(Y)}function Ht(){g(),m("ignoreEncode",!0)}function ft(){i[i.length-1].destination=y(),m("ignoreEncode")}function Lt(){i[i.length-1].title=y()}function Tr(){let Y=i[i.length-1],oe=Ge(Y.labelId);y(),T_.call(n,oe)||(n[oe]=i[i.length-1]),i.pop()}function Pr(){m("slurpAllLineEndings",!0)}function er(Y){d("headingRank")||(m("headingRank",this.sliceSerialize(Y).length),R(),S("<h"+d("headingRank")+">"))}function cr(){g(),m("slurpAllLineEndings")}function Wt(){m("slurpAllLineEndings",!0)}function ze(){S("</h"+d("headingRank")+">"),m("headingRank")}function Fr(Y){m("headingRank",this.sliceSerialize(Y).charCodeAt(0)===61?1:2)}function _(){let Y=y();R(),S("<h"+d("headingRank")+">"),k(Y),S("</h"+d("headingRank")+">"),m("slurpAllLineEndings"),m("headingRank")}function q(Y){k(T(this.sliceSerialize(Y)))}function ae(Y){if(!d("slurpAllLineEndings")){if(d("slurpOneLineEnding")){m("slurpOneLineEnding");return}if(d("inCodeText")){k(" ");return}k(T(this.sliceSerialize(Y)))}}function me(Y){k(T(this.sliceSerialize(Y))),m("flowCodeSeenData",!0)}function Ce(){S("<br />")}function tr(){R(),fr()}function Nr(){m("ignoreEncode")}function fr(){t.allowDangerousHtml&&m("ignoreEncode",!0)}function _o(){S("<em>")}function Io(){S("<strong>")}function Rt(){m("inCodeText",!0),S("<code>")}function Rn(){m("inCodeText"),S("</code>")}function Er(){S("</em>")}function lF(){S("</strong>")}function uF(){R(),S("<hr />")}function lw(Y){m("characterReferenceType",Y.type)}function cF(Y){let oe=this.sliceSerialize(Y),vt=d("characterReferenceType")?pa(oe,d("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):mo(oe);k(T(vt)),m("characterReferenceType")}function fF(Y){let oe=this.sliceSerialize(Y);S('<a href="'+ln(oe,t.allowDangerousProtocol?void 0:E_)+'">'),k(T(oe)),S("</a>")}function pF(Y){let oe=this.sliceSerialize(Y);S('<a href="'+ln("mailto:"+oe)+'">'),k(T(oe)),S("</a>")}}var A_={tokenize:p8};function p8(e){let t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ie(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(a){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return G(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}var C_={tokenize:h8},D_={tokenize:m8};function h8(e){let t=this,r=[],n=0,o,i,s;return a;function a(k){if(n<r.length){let N=r[n];return t.containerState=N[1],e.attempt(N[0].continuation,l,u)(k)}return u(k)}function l(k){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&S();let N=t.events.length,R=N,T;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){T=t.events[R][1].end;break}y(n);let $=N;for(;$<t.events.length;)t.events[$][1].end={...T},$++;return Ze(t.events,R+1,0,t.events.slice(N)),t.events.length=$,u(k)}return a(k)}function u(k){if(n===r.length){if(!o)return p(k);if(o.currentConstruct&&o.currentConstruct.concrete)return m(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(D_,c,f)(k)}function c(k){return o&&S(),y(n),p(k)}function f(k){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(k)}function p(k){return t.containerState={},e.attempt(D_,h,m)(k)}function h(k){return n++,r.push([t.currentConstruct,t.containerState]),p(k)}function m(k){if(k===null){o&&S(),y(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),d(k)}function d(k){if(k===null){g(e.exit("chunkFlow"),!0),y(0),e.consume(k);return}return G(k)?(e.consume(k),g(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(k),d)}function g(k,N){let R=t.sliceStream(k);if(N&&R.push(null),k.previous=i,i&&(i.next=k),i=k,o.defineSkip(k.start),o.write(R),t.parser.lazy[k.start.line]){let T=o.events.length;for(;T--;)if(o.events[T][1].start.offset<s&&(!o.events[T][1].end||o.events[T][1].end.offset>s))return;let $=t.events.length,J=$,H,D;for(;J--;)if(t.events[J][0]==="exit"&&t.events[J][1].type==="chunkFlow"){if(H){D=t.events[J][1].end;break}H=!0}for(y(n),T=$;T<t.events.length;)t.events[T][1].end={...D},T++;Ze(t.events,J+1,0,t.events.slice($)),t.events.length=T}}function y(k){let N=r.length;for(;N-- >k;){let R=r[N];t.containerState=R[1],R[0].exit.call(t,e)}r.length=k}function S(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function m8(e,t,r){return ie(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var O_={tokenize:d8};function d8(e){let t=this,r=e.attempt(un,n,e.attempt(this.parser.constructs.flowInitial,o,ie(e,e.attempt(this.parser.constructs.flow,o,e.attempt(qy,o)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var I_={resolveAll:__()},P_=M_("string"),F_=M_("text");function M_(e){return{resolveAll:__(e==="text"?g8:void 0),tokenize:t};function t(r){let n=this,o=this.parser.constructs[e],i=r.attempt(o,s,a);return s;function s(c){return u(c)?i(c):a(c)}function a(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),i(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let f=o[c],p=-1;if(f)for(;++p<f.length;){let h=f[p];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function __(e){return t;function t(r,n){let o=-1,i;for(;++o<=r.length;)i===void 0?r[o]&&r[o][1].type==="data"&&(i=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==i+2&&(r[i][1].end=r[o-1][1].end,r.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(r,n):r}}function g8(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],o=t.sliceStream(n),i=o.length,s=-1,a=0,l;for(;i--;){let u=o[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){i++;break}}if(a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:n.start._bufferIndex+s,_index:n.start._index+i,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}var ub={};te(ub,{attentionMarkers:()=>T8,contentInitial:()=>y8,disable:()=>E8,document:()=>x8,flow:()=>w8,flowInitial:()=>b8,insideSpan:()=>k8,string:()=>v8,text:()=>S8});var x8={42:It,43:It,45:It,48:It,49:It,50:It,51:It,52:It,53:It,54:It,55:It,56:It,57:It,62:_h},y8={91:Hy},b8={[-2]:su,[-1]:su,32:su},w8={35:Yy,42:Ai,45:[$h,Ai],60:Gy,61:$h,95:Ai,96:Fh,126:Fh},v8={38:Ph,92:Ih},S8={[-5]:uu,[-4]:uu,[-3]:uu,33:Jy,38:Ph,42:iu,60:[zy,Qy],91:Xy,92:[Wy,Ih],93:Ei,95:iu,96:jy},k8={null:[iu,I_]},T8={null:[42,95]},E8={null:[]};function N_(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},o={},i=[],s=[],a=[],l=!0,u={attempt:H($),check:H(J),consume:N,enter:R,exit:T,interrupt:H(J,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:m,sliceStream:d,write:h},f=t.tokenize.call(c,u),p;return t.resolveAll&&i.push(t),c;function h(O){return s=ot(s,O),S(),s[s.length-1]!==null?[]:(D(t,0),c.events=go(i,c.events,c),c.events)}function m(O,M){return D8(d(O),M)}function d(O){return A8(s,O)}function g(){let{_bufferIndex:O,_index:M,line:P,column:B,offset:Q}=n;return{_bufferIndex:O,_index:M,line:P,column:B,offset:Q}}function y(O){o[O.line]=O.column,j()}function S(){let O;for(;n._index<s.length;){let M=s[n._index];if(typeof M=="string")for(O=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===O&&n._bufferIndex<M.length;)k(M.charCodeAt(n._bufferIndex));else k(M)}}function k(O){l=void 0,p=O,f=f(O)}function N(O){G(O)?(n.line++,n.column=1,n.offset+=O===-3?2:1,j()):O!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=O,l=!0}function R(O,M){let P=M||{};return P.type=O,P.start=g(),c.events.push(["enter",P,c]),a.push(P),P}function T(O){let M=a.pop();return M.end=g(),c.events.push(["exit",M,c]),M}function $(O,M){D(O,M.from)}function J(O,M){M.restore()}function H(O,M){return P;function P(B,Q,F){let W,x,ee,se;return Array.isArray(B)?he(B):"tokenize"in B?he([B]):w(B);function w(v){return E;function E(C){let I=C!==null&&v[C],Z=C!==null&&v.null,ke=[...Array.isArray(I)?I:I?[I]:[],...Array.isArray(Z)?Z:Z?[Z]:[]];return he(ke)(C)}}function he(v){return W=v,x=0,v.length===0?F:Se(v[x])}function Se(v){return E;function E(C){return se=xe(),ee=v,v.partial||(c.currentConstruct=v),v.name&&c.parser.constructs.disable.null.includes(v.name)?A(C):v.tokenize.call(M?Object.assign(Object.create(c),M):c,u,Re,A)(C)}}function Re(v){return l=!0,O(ee,se),Q}function A(v){return l=!0,se.restore(),++x<W.length?Se(W[x]):F}}}function D(O,M){O.resolveAll&&!i.includes(O)&&i.push(O),O.resolve&&Ze(c.events,M,c.events.length-M,O.resolve(c.events.slice(M),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function xe(){let O=g(),M=c.previous,P=c.currentConstruct,B=c.events.length,Q=Array.from(a);return{from:B,restore:F};function F(){n=O,c.previous=M,c.currentConstruct=P,c.events.length=B,a=Q,j()}}function j(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}function A8(e,t){let r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,s;if(r===o)s=[e[r].slice(n,i)];else{if(s=e.slice(r,o),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function D8(e,t){let r=-1,n=[],o;for(;++r<e.length;){let i=e[r],s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
88
+ `;break}case-3:{s=`\r
89
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,n.push(s)}return n.join("")}function cu(e){let n={constructs:Ch([ub,...(e||{}).extensions||[]]),content:o(A_),defined:[],document:o(C_),flow:o(O_),lazy:{},string:o(P_),text:o(F_)};return n;function o(i){return s;function s(a){return N_(n,i,a)}}}function fu(e){for(;!Nh(e););return e}var L_=/[\0\t\n\r]/g;function pu(){let e=1,t="",r=!0,n;return o;function o(i,s,a){let l=[],u,c,f,p,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",r&&(i.charCodeAt(0)===65279&&f++,r=void 0);f<i.length;){if(L_.lastIndex=f,u=L_.exec(i),p=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(p),!u){t=i.slice(f);break}if(h===10&&f===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<p&&(l.push(i.slice(f,p)),e+=p-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=p+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}function $3e(e,t,r){return typeof t!="string"&&(r=t,t=void 0),lb(r)(fu(cu(r).document().write(pu()(e,t,!0))))}var R_={}.hasOwnProperty;function cb(e,t,r){return typeof t!="string"&&(r=t,t=void 0),C8(r)(fu(cu(r).document().write(pu()(e,t,!0))))}function C8(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Tr),autolinkProtocol:H,autolinkEmail:H,atxHeading:i(De),blockQuote:i(C),characterEscape:H,characterReference:H,codeFenced:i(I),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(I,s),codeText:i(Z,s),codeTextData:H,data:H,codeFlowValue:H,definition:i(ke),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Ae),hardBreakEscape:i(Ht),hardBreakTrailing:i(Ht),htmlFlow:i(ft,s),htmlFlowData:H,htmlText:i(ft,s),htmlTextData:H,image:i(Lt),label:s,link:i(Tr),listItem:i(er),listItemValue:p,listOrdered:i(Pr,f),listUnordered:i(Pr),paragraph:i(cr),reference:w,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(De),strong:i(Wt),thematicBreak:i(Fr)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:E,autolinkProtocol:v,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:Re,characterReference:A,codeFenced:l(g),codeFencedFence:d,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:D,codeIndented:l(y),codeText:l(P),codeTextData:D,data:D,definition:l(),definitionDestinationString:N,definitionLabelString:S,definitionTitleString:k,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(O),htmlFlowData:D,htmlText:l(M),htmlTextData:D,image:l(Q),label:W,labelText:F,lineEnding:xe,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:he,resourceDestinationString:x,resourceTitleString:ee,resource:se,setextHeading:l(J),setextHeadingLineSequence:$,setextHeadingText:T,strong:l(),thematicBreak:l()}};B_(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(_){let q={type:"root",children:[]},ae={stack:[q],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},me=[],Ce=-1;for(;++Ce<_.length;)if(_[Ce][1].type==="listOrdered"||_[Ce][1].type==="listUnordered")if(_[Ce][0]==="enter")me.push(Ce);else{let tr=me.pop();Ce=o(_,tr,Ce)}for(Ce=-1;++Ce<_.length;){let tr=t[_[Ce][0]];R_.call(tr,_[Ce][1].type)&&tr[_[Ce][1].type].call(Object.assign({sliceSerialize:_[Ce][2].sliceSerialize},ae),_[Ce][1])}if(ae.tokenStack.length>0){let tr=ae.tokenStack[ae.tokenStack.length-1];(tr[1]||$_).call(ae,void 0,tr[0])}for(q.position={start:xo(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:xo(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},Ce=-1;++Ce<t.transforms.length;)q=t.transforms[Ce](q)||q;return q}function o(_,q,ae){let me=q-1,Ce=-1,tr=!1,Nr,fr,_o,Io;for(;++me<=ae;){let Rt=_[me];switch(Rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Rt[0]==="enter"?Ce++:Ce--,Io=void 0;break}case"lineEndingBlank":{Rt[0]==="enter"&&(Nr&&!Io&&!Ce&&!_o&&(_o=me),Io=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Io=void 0}if(!Ce&&Rt[0]==="enter"&&Rt[1].type==="listItemPrefix"||Ce===-1&&Rt[0]==="exit"&&(Rt[1].type==="listUnordered"||Rt[1].type==="listOrdered")){if(Nr){let Rn=me;for(fr=void 0;Rn--;){let Er=_[Rn];if(Er[1].type==="lineEnding"||Er[1].type==="lineEndingBlank"){if(Er[0]==="exit")continue;fr&&(_[fr][1].type="lineEndingBlank",tr=!0),Er[1].type="lineEnding",fr=Rn}else if(!(Er[1].type==="linePrefix"||Er[1].type==="blockQuotePrefix"||Er[1].type==="blockQuotePrefixWhitespace"||Er[1].type==="blockQuoteMarker"||Er[1].type==="listItemIndent"))break}_o&&(!fr||_o<fr)&&(Nr._spread=!0),Nr.end=Object.assign({},fr?_[fr][1].start:Rt[1].end),_.splice(fr||me,0,["exit",Nr,Rt[2]]),me++,ae++}if(Rt[1].type==="listItemPrefix"){let Rn={type:"listItem",_spread:!1,start:Object.assign({},Rt[1].start),end:void 0};Nr=Rn,_.splice(me,0,["enter",Rn,Rt[2]]),me++,ae++,_o=void 0,Io=!0}}}return _[q][1]._spread=tr,ae}function i(_,q){return ae;function ae(me){a.call(this,_(me),me),q&&q.call(this,me)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(_,q,ae){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([q,ae||void 0]),_.position={start:xo(q.start),end:void 0}}function l(_){return q;function q(ae){_&&_.call(this,ae),u.call(this,ae)}}function u(_,q){let ae=this.stack.pop(),me=this.tokenStack.pop();if(me)me[0].type!==_.type&&(q?q.call(this,_,me[0]):(me[1]||$_).call(this,_,me[0]));else throw new Error("Cannot close `"+_.type+"` ("+po({start:_.start,end:_.end})+"): it\u2019s not open");ae.position.end=xo(_.end)}function c(){return wi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(_){if(this.data.expectingFirstListItemValue){let q=this.stack[this.stack.length-2];q.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function h(){let _=this.resume(),q=this.stack[this.stack.length-1];q.lang=_}function m(){let _=this.resume(),q=this.stack[this.stack.length-1];q.meta=_}function d(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_.replace(/(\r?\n|\r)$/g,"")}function S(_){let q=this.resume(),ae=this.stack[this.stack.length-1];ae.label=q,ae.identifier=Ge(this.sliceSerialize(_)).toLowerCase()}function k(){let _=this.resume(),q=this.stack[this.stack.length-1];q.title=_}function N(){let _=this.resume(),q=this.stack[this.stack.length-1];q.url=_}function R(_){let q=this.stack[this.stack.length-1];if(!q.depth){let ae=this.sliceSerialize(_).length;q.depth=ae}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function $(_){let q=this.stack[this.stack.length-1];q.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function J(){this.data.setextHeadingSlurpLineEnding=void 0}function H(_){let ae=this.stack[this.stack.length-1].children,me=ae[ae.length-1];(!me||me.type!=="text")&&(me=ze(),me.position={start:xo(_.start),end:void 0},ae.push(me)),this.stack.push(me)}function D(_){let q=this.stack.pop();q.value+=this.sliceSerialize(_),q.position.end=xo(_.end)}function xe(_){let q=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ae=q.children[q.children.length-1];ae.position.end=xo(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(q.type)&&(H.call(this,_),D.call(this,_))}function j(){this.data.atHardBreak=!0}function O(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_}function M(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_}function P(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_}function B(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let q=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=q,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function Q(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let q=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=q,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function F(_){let q=this.sliceSerialize(_),ae=this.stack[this.stack.length-2];ae.label=Dh(q),ae.identifier=Ge(q).toLowerCase()}function W(){let _=this.stack[this.stack.length-1],q=this.resume(),ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,ae.type==="link"){let me=_.children;ae.children=me}else ae.alt=q}function x(){let _=this.resume(),q=this.stack[this.stack.length-1];q.url=_}function ee(){let _=this.resume(),q=this.stack[this.stack.length-1];q.title=_}function se(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function he(_){let q=this.resume(),ae=this.stack[this.stack.length-1];ae.label=q,ae.identifier=Ge(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function Se(_){this.data.characterReferenceType=_.type}function Re(_){let q=this.sliceSerialize(_),ae=this.data.characterReferenceType,me;ae?(me=pa(q,ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):me=mo(q);let Ce=this.stack[this.stack.length-1];Ce.value+=me}function A(_){let q=this.stack.pop();q.position.end=xo(_.end)}function v(_){D.call(this,_);let q=this.stack[this.stack.length-1];q.url=this.sliceSerialize(_)}function E(_){D.call(this,_);let q=this.stack[this.stack.length-1];q.url="mailto:"+this.sliceSerialize(_)}function C(){return{type:"blockquote",children:[]}}function I(){return{type:"code",lang:null,meta:null,value:""}}function Z(){return{type:"inlineCode",value:""}}function ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ae(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Ht(){return{type:"break"}}function ft(){return{type:"html",value:""}}function Lt(){return{type:"image",title:null,url:"",alt:null}}function Tr(){return{type:"link",title:null,url:"",children:[]}}function Pr(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function er(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function cr(){return{type:"paragraph",children:[]}}function Wt(){return{type:"strong",children:[]}}function ze(){return{type:"text",value:""}}function Fr(){return{type:"thematicBreak"}}}function xo(e){return{line:e.line,column:e.column,offset:e.offset}}function B_(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?B_(e,n):O8(e,n)}}function O8(e,t){let r;for(r in t)if(R_.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function $_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+po({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+po({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+po({start:t.start,end:t.end})+") is still open")}function da(e){let t=this;t.parser=r;function r(n){return cb(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var z_=je(U_(),1),hu=Object.assign(Di(Error),{eval:Di(EvalError),range:Di(RangeError),reference:Di(ReferenceError),syntax:Di(SyntaxError),type:Di(TypeError),uri:Di(URIError)});function Di(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let o=r&&(0,z_.default)(r,...n);return new e(o)}}var jh={}.hasOwnProperty,j_={yaml:"-",toml:"+"};function ga(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=M8(n[r]);return t}function M8(e){let t=e;if(typeof t=="string"){if(!jh.call(j_,t))throw hu("Missing matter definition for `%s`",t);t={type:t,marker:j_[t]}}else if(typeof t!="object")throw hu("Expected matter to be an object, not `%j`",t);if(!jh.call(t,"type"))throw hu("Missing `type` in matter `%j`",t);if(!jh.call(t,"fence")&&!jh.call(t,"marker"))throw hu("Missing `marker` or `fence` in matter `%j`",t);return t}function hb(e){let t=ga(e),r={},n=-1;for(;++n<t.length;){let o=t[n],i=pb(o,"open").charCodeAt(0),s=_8(o),a=r[i];Array.isArray(a)?a.push(s):r[i]=[s]}return{flow:r}}function _8(e){let t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",i=r+"Value",s={tokenize:c,partial:!0},a,l=0;return{tokenize:u,concrete:!0};function u(f,p,h){let m=this;return d;function d($){let J=m.now();return J.column===1&&(J.line===1||t)&&(a=pb(e,"open"),l=0,$===a.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(o),g($)):h($)}function g($){return l===a.length?(f.exit(o),re($)?(f.enter("whitespace"),y($)):S($)):$===a.charCodeAt(l++)?(f.consume($),g):h($)}function y($){return re($)?(f.consume($),y):(f.exit("whitespace"),S($))}function S($){return G($)?(f.exit(n),f.enter("lineEnding"),f.consume($),f.exit("lineEnding"),a=pb(e,"close"),l=0,f.attempt(s,T,k)):h($)}function k($){return $===null||G($)?R($):(f.enter(i),N($))}function N($){return $===null||G($)?(f.exit(i),R($)):(f.consume($),N)}function R($){return $===null?h($):(f.enter("lineEnding"),f.consume($),f.exit("lineEnding"),f.attempt(s,T,k))}function T($){return f.exit(r),p($)}}function c(f,p,h){let m=0;return d;function d(k){return k===a.charCodeAt(m)?(f.enter(n),f.enter(o),g(k)):h(k)}function g(k){return m===a.length?(f.exit(o),re(k)?(f.enter("whitespace"),y(k)):S(k)):k===a.charCodeAt(m++)?(f.consume(k),g):h(k)}function y(k){return re(k)?(f.consume(k),y):(f.exit("whitespace"),S(k))}function S(k){return k===null||G(k)?(f.exit(n),p(k)):h(k)}}}function pb(e,t){return e.marker?q_(e.marker,t).repeat(3):q_(e.fence,t)}function q_(e,t){return typeof e=="string"?e:e[t]}function db(e){let t=ga(e),r={},n={},o=-1;for(;++o<t.length;){let i=t[o];r[i.type]=I8(i),n[i.type]=P8,n[i.type+"Value"]=F8}return{enter:r,exit:n}}function I8(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function P8(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function F8(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function gb(e){let t=[],r={},n=ga(e),o=-1;for(;++o<n.length;){let i=n[o];r[i.type]=N8(i);let s=mb(i,"open");t.push({atBreak:!0,character:s.charAt(0),after:qo(s.charAt(1))})}return{unsafe:t,handlers:r}}function N8(e){let t=mb(e,"open"),r=mb(e,"close");return n;function n(o){return t+(o.value?`
90
+ `+o.value:"")+`
91
+ `+r}}function mb(e,t){return e.marker?H_(e.marker,t).repeat(3):H_(e.fence,t)}function H_(e,t){return typeof e=="string"?e:e[t]}var L8="yaml";function xa(e){let t=this,r=e||L8,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(hb(r)),i.push(db(r)),s.push(gb(r))}var W_=typeof self=="object"?self:globalThis,R8=(e,t)=>{let r=(o,i)=>(e.set(i,o),o),n=o=>{if(e.has(o))return e.get(o);let[i,s]=t[o];switch(i){case 0:case-1:return r(s,o);case 1:{let a=r([],o);for(let l of s)a.push(n(l));return a}case 2:{let a=r({},o);for(let[l,u]of s)a[n(l)]=n(u);return a}case 3:return r(new Date(s),o);case 4:{let{source:a,flags:l}=s;return r(new RegExp(a,l),o)}case 5:{let a=r(new Map,o);for(let[l,u]of s)a.set(n(l),n(u));return a}case 6:{let a=r(new Set,o);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return r(new W_[a](l),o)}case 8:return r(BigInt(s),o);case"BigInt":return r(Object(BigInt(s)),o)}return r(new W_[i](s),o)};return n},Vh=e=>R8(new Map,e)(0);var ya="",{toString:B8}={},{keys:$8}=Object,xu=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=B8.call(e).slice(8,-1);switch(r){case"Array":return[1,ya];case"Object":return[2,ya];case"Date":return[3,ya];case"RegExp":return[4,ya];case"Map":return[5,ya];case"Set":return[6,ya]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Gh=([e,t])=>e===0&&(t==="function"||t==="symbol"),U8=(e,t,r,n)=>{let o=(s,a)=>{let l=n.push(s)-1;return r.set(a,l),l},i=s=>{if(r.has(s))return r.get(s);let[a,l]=xu(s);switch(a){case 0:{let c=s;switch(l){case"bigint":a=8,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return o([-1],s)}return o([a,c],s)}case 1:{if(l)return o([l,[...s]],s);let c=[],f=o([a,c],s);for(let p of s)c.push(i(p));return f}case 2:{if(l)switch(l){case"BigInt":return o([l,s.toString()],s);case"Boolean":case"Number":case"String":return o([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());let c=[],f=o([a,c],s);for(let p of $8(s))(e||!Gh(xu(s[p])))&&c.push([i(p),i(s[p])]);return f}case 3:return o([a,s.toISOString()],s);case 4:{let{source:c,flags:f}=s;return o([a,{source:c,flags:f}],s)}case 5:{let c=[],f=o([a,c],s);for(let[p,h]of s)(e||!(Gh(xu(p))||Gh(xu(h))))&&c.push([i(p),i(h)]);return f}case 6:{let c=[],f=o([a,c],s);for(let p of s)(e||!Gh(xu(p)))&&c.push(i(p));return f}}let{message:u}=s;return o([a,{name:l,message:u}],s)};return i},Qh=(e,{json:t,lossy:r}={})=>{let n=[];return U8(!(t||r),!!t,new Map,n)(e),n};var yo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Vh(Qh(e,t)):structuredClone(e):(e,t)=>Vh(Qh(e,t));var Jh=Y_("end"),Xh=Y_("start");function Y_(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function yu(e){let t=Xh(e),r=Jh(e);if(t&&r)return{start:t,end:r}}var Ci=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Zh={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ci,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ci],h2:[["className","sr-only"]],img:[...Ci,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ci,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ci],table:[...Ci],ul:[...Ci,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};var bo={}.hasOwnProperty;function wb(e,t){let r={type:"root",children:[]},n={schema:t?{...Zh,...t}:Zh,stack:[]},o=V_(n,e);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}function V_(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return z8(e,r);case"doctype":return j8(e,r);case"element":return q8(e,r);case"root":return H8(e,r);case"text":return W8(e,r);default:}}}function z8(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),i={type:"comment",value:n<0?r:r.slice(0,n)};return bu(i,t),i}}function j8(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return bu(r,t),r}}function q8(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=G_(e,t.children),o=Y8(e,t.properties);e.stack.pop();let i=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(i=!0,e.schema.ancestors&&bo.call(e.schema.ancestors,r))){let a=e.schema.ancestors[r],l=-1;for(i=!1;++l<a.length;)e.stack.includes(a[l])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let s={type:"element",tagName:r,properties:o,children:n};return bu(s,t),s}function H8(e,t){let n={type:"root",children:G_(e,t.children)};return bu(n,t),n}function W8(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return bu(n,t),n}function G_(e,t){let r=[];if(Array.isArray(t)){let n=t,o=-1;for(;++o<n.length;){let i=V_(e,n[o]);i&&(Array.isArray(i)?r.push(...i):r.push(i))}}return r}function Y8(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,o=e.schema.required,i=n&&bo.call(n,r)?n[r]:void 0,s=n&&bo.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},u;for(u in a)if(bo.call(a,u)){let c=a[u],f=Q_(e,X_(i,u),u,c);f==null&&(f=Q_(e,X_(s,u),u,c)),f!=null&&(l[u]=f)}if(o&&bo.call(o,r)){let c=o[r];for(u in c)bo.call(c,u)&&!bo.call(l,u)&&(l[u]=c[u])}return l}function Q_(e,t,r,n){return t?Array.isArray(n)?V8(e,t,r,n):J_(e,t,r,n):void 0}function V8(e,t,r,n){let o=-1,i=[];for(;++o<n.length;){let s=J_(e,t,r,n[o]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function J_(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&G8(e,r,n)){if(typeof t=="object"&&t.length>1){let o=!1,i=0;for(;++i<t.length;){let s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){o=!0;break}}else if(s===n){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function G8(e,t,r){let n=e.schema.protocols&&bo.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let o=String(r),i=o.indexOf(":"),s=o.indexOf("?"),a=o.indexOf("#"),l=o.indexOf("/");if(i<0||l>-1&&i>l||s>-1&&i>s||a>-1&&i>a)return!0;let u=-1;for(;++u<n.length;){let c=n[u];if(i===c.length&&o.slice(0,c.length)===c)return!0}return!1}function bu(e,t){let r=yu(t);t.data&&(e.data=yo(t.data)),r&&(e.position=r)}function X_(e,t){let r,n=-1;if(e)for(;++n<e.length;){let o=e[n],i=typeof o=="string"?o:o[0];if(i===t)return o;i==="data*"&&(r=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function Z_(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function K_(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
92
+ `}]}function eI(e,t){let r=t.value?t.value+`
93
+ `:"",n={};t.lang&&(n.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function tI(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rI(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nI(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=lr(n.toLowerCase()),i=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function oI(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function iI(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Kh(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});let s=o[o.length-1];return s&&s.type==="text"?s.value+=n:o.push({type:"text",value:n}),o}function sI(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Kh(e,t);let o={src:lr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(o.title=n.title);let i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function aI(e,t){let r={src:lr(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function lI(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function uI(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Kh(e,t);let o={href:lr(n.url||"")};n.title!==null&&n.title!==void 0&&(o.title=n.title);let i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function cI(e,t){let r={href:lr(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pI(e,t,r){let n=e.all(t),o=r?Q8(r):fI(t),i={},s=[];if(typeof t.checked=="boolean"){let c=n[0],f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let c=n[a];(o||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
94
+ `}),c.type==="element"&&c.tagName==="p"&&!o?s.push(...c.children):s.push(c)}let l=n[n.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
95
+ `});let u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)}function Q8(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=fI(r[n])}return t}function fI(e){let t=e.spread;return t??e.children.length>1}function hI(e,t){let r={},n=e.all(t),o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<n.length;){let s=n[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function mI(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dI(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function gI(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xI(e,t){let r=e.all(t),n=r.shift(),o=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),o.push(s)}if(r.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=Xh(t.children[1]),l=Jh(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),o.push(s)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function yI(e,t,r){let n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,a=s?s.length:t.children.length,l=-1,u=[];for(;++l<a;){let f=t.children[l],p={},h=s?s[l]:void 0;h&&(p.align=h);let m={type:"element",tagName:i,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function bI(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}var S6e=9,k6e=32;function vI(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),o=0,i=[];for(;n;)i.push(wI(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(wI(t.slice(o),o>0,!1)),i.join("")}function wI(e,t,r){let n=0,o=e.length;if(t){let i=e.codePointAt(n);for(;i===9||i===32;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(o-1);for(;i===9||i===32;)o--,i=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}function SI(e,t){let r={type:"text",value:vI(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function kI(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var vb={blockquote:Z_,break:K_,code:eI,delete:tI,emphasis:rI,footnoteReference:nI,heading:oI,html:iI,imageReference:sI,image:aI,inlineCode:lI,linkReference:uI,link:cI,listItem:pI,list:hI,paragraph:mI,root:dI,strong:gI,table:xI,tableCell:bI,tableRow:yI,text:SI,thematicBreak:kI,toml:em,yaml:em,definition:em,footnoteDefinition:em};function em(){}function TI(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function EI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function AI(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||TI,n=e.options.footnoteBackLabel||EI,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;let c=e.all(u),f=String(u.identifier).toUpperCase(),p=lr(f.toLowerCase()),h=0,m=[],d=e.footnoteCounts.get(f);for(;d!==void 0&&++h<=d;){m.length>0&&m.push({type:"text",value:" "});let S=typeof r=="string"?r:r(l,h);typeof S=="string"&&(S={type:"text",value:S}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}let g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){let S=g.children[g.children.length-1];S&&S.type==="text"?S.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...m)}else c.push(...m);let y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...yo(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
96
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
97
+ `}]}}var Sb={}.hasOwnProperty,J8={};function CI(e,t){let r=t||J8,n=new Map,o=new Map,i=new Map,s={...vb,...r.handlers},a={all:u,applyData:Z8,definitionById:n,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:r,patch:X8,wrap:e9};return ou(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let f=c.type==="definition"?n:o,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),a;function l(c,f){let p=c.type,h=a.handlers[p];if(Sb.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){let{children:d,...g}=c,y=yo(g);return y.children=a.all(c),y}return yo(c)}return(a.options.unknownHandler||K8)(a,c,f)}function u(c){let f=[];if("children"in c){let p=c.children,h=-1;for(;++h<p.length;){let m=a.one(p[h],c);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=DI(m.value)),!Array.isArray(m)&&m.type==="element")){let d=m.children[0];d&&d.type==="text"&&(d.value=DI(d.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function X8(e,t){e.position&&(t.position=yu(e))}function Z8(e,t){let r=t;if(e&&e.data){let n=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&i&&Object.assign(r.properties,yo(i)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function K8(e,t){let r=t.data||{},n="value"in t&&!(Sb.call(r,"hProperties")||Sb.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function e9(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
98
+ `});++n<e.length;)n&&r.push({type:"text",value:`
99
+ `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
100
+ `}),r}function DI(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function kb(e,t){let r=CI(e,t),n=r.one(e,void 0),o=AI(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return o&&("children"in i,i.children.push({type:"text",value:`
101
+ `},o)),i}var OI=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var _n=class{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}};_n.prototype.property={},_n.prototype.normal={},_n.prototype.space=null;function Tb(e,t){let r={},n={},o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(n,e[o].normal);return new _n(r,n,t)}function ba(e){return e.toLowerCase()}var Pt=class{constructor(t,r){this.property=t,this.attribute=r}};Pt.prototype.space=null,Pt.prototype.boolean=!1,Pt.prototype.booleanish=!1,Pt.prototype.overloadedBoolean=!1,Pt.prototype.number=!1,Pt.prototype.commaSeparated=!1,Pt.prototype.spaceSeparated=!1,Pt.prototype.commaOrSpaceSeparated=!1,Pt.prototype.mustUseProperty=!1,Pt.prototype.defined=!1;var wu={};te(wu,{boolean:()=>pe,booleanish:()=>Qe,commaOrSpaceSeparated:()=>Zt,commaSeparated:()=>wo,number:()=>z,overloadedBoolean:()=>Eb,spaceSeparated:()=>_e});var t9=0,pe=Oi(),Qe=Oi(),Eb=Oi(),z=Oi(),_e=Oi(),wo=Oi(),Zt=Oi();function Oi(){return 2**++t9}var Ab=Object.keys(wu),Mi=class extends Pt{constructor(t,r,n,o){let i=-1;if(super(t,r),MI(this,"space",o),typeof n=="number")for(;++i<Ab.length;){let s=Ab[i];MI(this,Ab[i],(n&wu[s])===wu[s])}}};Mi.prototype.defined=!0;function MI(e,t,r){r&&(e[t]=r)}var r9={}.hasOwnProperty;function wr(e){let t={},r={},n;for(n in e.properties)if(r9.call(e.properties,n)){let o=e.properties[n],i=new Mi(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[ba(n)]=n,r[ba(i.attribute)]=n}return new _n(t,r,e.space)}var Db=wr({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var Cb=wr({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tm(e,t){return t in e?e[t]:t}function rm(e,t){return tm(e,t.toLowerCase())}var Ob=wr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:rm,properties:{xmlns:null,xmlnsXLink:null}});var Mb=wr({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:_e,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:z,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:_e,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Qe,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null}});var _I=wr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:rm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wo,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:pe,allowPaymentRequest:pe,allowUserMedia:pe,alt:null,as:null,async:pe,autoCapitalize:null,autoComplete:_e,autoFocus:pe,autoPlay:pe,blocking:_e,capture:null,charSet:null,checked:pe,cite:null,className:_e,cols:z,colSpan:null,content:null,contentEditable:Qe,controls:pe,controlsList:_e,coords:z|wo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pe,defer:pe,dir:null,dirName:null,disabled:pe,download:Eb,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pe,formTarget:null,headers:_e,height:z,hidden:pe,high:z,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:pe,inputMode:null,integrity:null,is:null,isMap:pe,itemId:null,itemProp:_e,itemRef:_e,itemScope:pe,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pe,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:pe,muted:pe,name:null,nonce:null,noModule:pe,noValidate:pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:pe,optimum:z,pattern:null,ping:_e,placeholder:null,playsInline:pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pe,referrerPolicy:null,rel:_e,required:pe,reversed:pe,rows:z,rowSpan:z,sandbox:_e,scope:null,scoped:pe,seamless:pe,selected:pe,shadowRootClonable:pe,shadowRootDelegatesFocus:pe,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:pe,useMap:null,value:Qe,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pe,declare:pe,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:pe,noHref:pe,noShade:pe,noWrap:pe,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pe,disableRemotePlayback:pe,prefix:null,property:null,results:z,security:null,unselectable:null}});var II=wr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:tm,properties:{about:Zt,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:_e,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:wo,g2:wo,glyphName:wo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:Zt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zt,rev:Zt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zt,requiredFeatures:Zt,requiredFonts:Zt,requiredFormats:Zt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:Zt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zt,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var n9=/^data[-\w.:]+$/i,PI=/-[a-z]/g,o9=/[A-Z]/g;function _b(e,t){let r=ba(t),n=t,o=Pt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&n9.test(t)){if(t.charAt(4)==="-"){let i=t.slice(5).replace(PI,s9);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{let i=t.slice(4);if(!PI.test(i)){let s=i.replace(o9,i9);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Mi}return new o(n,t)}function i9(e){return"-"+e.toLowerCase()}function s9(e){return e.charAt(1).toUpperCase()}var FI=Tb([Cb,Db,Ob,Mb,_I],"html"),nm=Tb([Cb,Db,Ob,Mb,II],"svg");var a9=/["&'<>`]/g,l9=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u9=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c9=/[|\\{}()[\]^$+*?.]/g,NI=new WeakMap;function Ib(e,t){if(e=e.replace(t.subset?f9(t.subset):a9,n),t.subset||t.escapeOnly)return e;return e.replace(l9,r).replace(u9,n);function r(o,i,s){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function n(o,i,s){return t.format(o.charCodeAt(0),s.charCodeAt(i+1),t)}}function f9(e){let t=NI.get(e);return t||(t=p9(e),NI.set(e,t)),t}function p9(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(c9,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var h9=/[\dA-Fa-f]/;function LI(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!h9.test(String.fromCharCode(t))?n:n+";"}var m9=/\d/;function RI(e,t,r){let n="&#"+String(e);return r&&t&&!m9.test(String.fromCharCode(t))?n:n+";"}var BI=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var om={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var $I=["cent","copy","divide","gt","lt","not","para","times"];var UI={}.hasOwnProperty,Pb={},im;for(im in om)UI.call(om,im)&&(Pb[om[im]]=im);var d9=/[^\dA-Za-z]/;function zI(e,t,r,n){let o=String.fromCharCode(e);if(UI.call(Pb,o)){let i=Pb[o],s="&"+i;return r&&BI.includes(i)&&!$I.includes(i)&&(!n||t&&t!==61&&d9.test(String.fromCharCode(t)))?s:s+";"}return""}function jI(e,t,r){let n=LI(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=zI(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let i=RI(e,t,r.omitOptionalSemicolons);i.length<n.length&&(n=i)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}function qI(e){return"&#x"+e.toString(16).toUpperCase()+";"}function In(e,t){return Ib(e,Object.assign({format:jI},t))}function DHe(e,t){return Ib(e,Object.assign({format:qI},t))}var g9=/^>|^->|<!--|-->|--!>|<!-$/g,x9=[">"],y9=["<",">"];function HI(e,t,r,n){return n.settings.bogusComments?"<?"+In(e.value,Object.assign({},n.settings.characterReferences,{subset:x9}))+">":"<!--"+e.value.replace(g9,o)+"-->";function o(i){return In(i,Object.assign({},n.settings.characterReferences,{subset:y9}))}}function WI(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function IHe(e){let t=[],r=String(e||""),n=r.indexOf(","),o=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);let s=r.slice(o,n).trim();(s||!i)&&t.push(s),o=n+1,n=r.indexOf(",",o)}return t}function YI(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function FHe(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function VI(e){return e.join(" ").trim()}var b9=/[ \t\n\f\r]/g;function _i(e){return typeof e=="object"?e.type==="text"?GI(e.value):!1:GI(e)}function GI(e){return e.replace(b9,"")===""}var Ke=QI(1),Fb=QI(-1),w9=[];function QI(e){return t;function t(r,n,o){let i=r?r.children:w9,s=(n||0)+e,a=i[s];if(!o)for(;a&&_i(a);)s+=e,a=i[s];return a}}var v9={}.hasOwnProperty;function sm(e){return t;function t(r,n,o){return v9.call(e,r.tagName)&&e[r.tagName](r,n,o)}}var vu=sm({body:k9,caption:Nb,colgroup:Nb,dd:D9,dt:A9,head:Nb,html:S9,li:E9,optgroup:C9,option:O9,p:T9,rp:JI,rt:JI,tbody:_9,td:XI,tfoot:I9,th:XI,thead:M9,tr:P9});function Nb(e,t,r){let n=Ke(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&_i(n.value.charAt(0)))}function S9(e,t,r){let n=Ke(r,t);return!n||n.type!=="comment"}function k9(e,t,r){let n=Ke(r,t);return!n||n.type!=="comment"}function T9(e,t,r){let n=Ke(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function E9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&n.tagName==="li"}function A9(e,t,r){let n=Ke(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function D9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function JI(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function C9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function O9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function M9(e,t,r){let n=Ke(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function _9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function I9(e,t,r){return!Ke(r,t)}function P9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function XI(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var ZI=sm({body:L9,colgroup:R9,head:N9,html:F9,tbody:B9});function F9(e){let t=Ke(e,-1);return!t||t.type!=="comment"}function N9(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}function L9(e){let t=Ke(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&_i(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function R9(e,t,r){let n=Fb(r,t),o=Ke(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&vu(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function B9(e,t,r){let n=Fb(r,t),o=Ke(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&vu(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}var am={name:[[`
102
+ \f\r &/=>`.split(""),`
103
+ \f\r "&'/=>\``.split("")],[`\0
104
+ \f\r "&'/<=>`.split(""),`\0
105
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
106
+ \f\r &>`.split(""),`\0
107
+ \f\r "&'<=>\``.split("")],[`\0
108
+ \f\r "&'<=>\``.split(""),`\0
109
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function KI(e,t,r,n){let o=n.schema,i=o.space==="svg"?!1:n.settings.omitOptionalTags,s=o.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;o.space==="html"&&e.tagName==="svg"&&(n.schema=nm);let u=$9(n,e.properties),c=n.all(o.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=o,c&&(s=!1),(u||!i||!ZI(e,t,r))&&(a.push("<",e.tagName,u?" "+u:""),s&&(o.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!i||!vu(e,t,r))&&a.push("</"+e.tagName+">"),a.join("")}function $9(e,t){let r=[],n=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){let i=U9(e,o,t[o]);i&&r.push(i)}}for(;++n<r.length;){let i=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&i!=='"'&&i!=="'"&&(r[n]+=" ")}return r.join("")}function U9(e,t,r){let n=_b(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1,s=e.quote,a;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=In(n.attribute,Object.assign({},e.settings.characterReferences,{subset:am.name[o][i]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?YI:VI)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(a=In(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:am.unquoted[o][i]}))),a!==r&&(e.settings.quoteSmart&&la(r,s)>la(r,e.alternative)&&(s=e.alternative),a=s+In(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?am.single:am.double)[o][i],attribute:!0}))+s),l+(a&&"="+a))}var z9=["<","&"];function lm(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:In(e.value,Object.assign({},n.settings.characterReferences,{subset:z9}))}function eP(e,t,r,n){return n.settings.allowDangerousHtml?e.value:lm(e,t,r,n)}function tP(e,t,r,n){return n.all(e)}var rP=kh("type",{invalid:j9,unknown:q9,handlers:{comment:HI,doctype:WI,element:KI,raw:eP,root:tP,text:lm}});function j9(e){throw new Error("Expected node, not `"+e+"`")}function q9(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var H9={},W9={},Y9=[];function Lb(e,t){let r=t||H9,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:V9,all:G9,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||OI,characterReferences:r.characterReferences||W9,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?nm:FI,quote:n,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function V9(e,t,r){return rP(e,t,r,this)}function G9(e){let t=[],r=e&&e.children||Y9,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var Q9={};function wa(e){let t=this,{handlers:r,sanitize:n,...o}=e||Q9,i=!1,s;typeof n=="boolean"?i=!n:n&&(s=n),t.compiler=a;function a(l,u){let c=kb(l,{handlers:r,allowDangerousHtml:i}),f=i?c:wb(c,s),p=Lb(f,{...o,allowDangerousHtml:i});return u.extname&&(u.extname=".html"),l&&l.type==="root"&&p&&/[^\r\n]/.test(p.charAt(p.length-1))?p+`
110
+ `:p}}function va(e){let t=this;t.compiler=r;function r(n){return Dy(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function J9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function Rb(e,t){return Array(t+1).join(e)}function X9(e){return e.replace(/^\n*/,"")}function Z9(e){for(var t=e.length;t>0&&e[t-1]===`
111
+ `;)t--;return e.substring(0,t)}var K9=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Bb(e){return $b(e,K9)}var nP=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function oP(e){return $b(e,nP)}function eV(e){return sP(e,nP)}var iP=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function tV(e){return $b(e,iP)}function rV(e){return sP(e,iP)}function $b(e,t){return t.indexOf(e.nodeName)>=0}function sP(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var Ft={};Ft.paragraph={filter:"p",replacement:function(e){return`
112
+
113
+ `+e+`
114
+
115
+ `}},Ft.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
116
+ `}},Ft.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var o=Rb(n===1?"=":"-",e.length);return`
117
+
118
+ `+e+`
119
+ `+o+`
120
+
121
+ `}else return`
122
+
123
+ `+Rb("#",n)+" "+e+`
124
+
125
+ `}},Ft.blockquote={filter:"blockquote",replacement:function(e){return e=e.replace(/^\n+|\n+$/g,""),e=e.replace(/^/gm,"> "),`
126
+
127
+ `+e+`
128
+
129
+ `}},Ft.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
130
+ `+e:`
131
+
132
+ `+e+`
133
+
134
+ `}},Ft.listItem={filter:"li",replacement:function(e,t,r){e=e.replace(/^\n+/,"").replace(/\n+$/,`
135
+ `).replace(/\n/gm,`
136
+ `);var n=r.bulletListMarker+" ",o=t.parentNode;if(o.nodeName==="OL"){var i=o.getAttribute("start"),s=Array.prototype.indexOf.call(o.children,t);n=(i?Number(i)+s:s+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?`
137
+ `:"")}},Ft.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
138
+
139
+ `+t.firstChild.textContent.replace(/\n/g,`
140
+ `)+`
141
+
142
+ `}},Ft.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",o=(n.match(/language-(\S+)/)||[null,""])[1],i=t.firstChild.textContent,s=r.fence.charAt(0),a=3,l=new RegExp("^"+s+"{3,}","gm"),u;u=l.exec(i);)u[0].length>=a&&(a=u[0].length+1);var c=Rb(s,a);return`
143
+
144
+ `+c+o+`
145
+ `+i.replace(/\n$/,"")+`
146
+ `+c+`
147
+
148
+ `}},Ft.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
149
+
150
+ `+r.hr+`
151
+
152
+ `}},Ft.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=um(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}},Ft.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t.getAttribute("href"),o=um(t.getAttribute("title"));o&&(o=' "'+o+'"');var i,s;switch(r.linkReferenceStyle){case"collapsed":i="["+e+"][]",s="["+e+"]: "+n+o;break;case"shortcut":i="["+e+"]",s="["+e+"]: "+n+o;break;default:var a=this.references.length+1;i="["+e+"]["+a+"]",s="["+a+"]: "+n+o}return this.references.push(s),i},references:[],append:function(e){var t="";return this.references.length&&(t=`
153
+
154
+ `+this.references.join(`
155
+ `)+`
156
+
157
+ `,this.references=[]),t}},Ft.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},Ft.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},Ft.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}},Ft.image={filter:"img",replacement:function(e,t){var r=um(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=um(t.getAttribute("title")),i=o?' "'+o+'"':"";return n?"!["+r+"]("+n+i+")":""}};function um(e){return e?e.replace(/(\n+\s*)+/g,`
158
+ `):""}function aP(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}aP.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Ub(this.array,e,this.options))||(t=Ub(this._keep,e,this.options))||(t=Ub(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function Ub(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(nV(o,t,r))return o}}function nV(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function oV(e){var t=e.element,r=e.isBlock,n=e.isVoid,o=e.isPre||function(f){return f.nodeName==="PRE"};if(!(!t.firstChild||o(t))){for(var i=null,s=!1,a=null,l=lP(a,t,o);l!==t;){if(l.nodeType===3||l.nodeType===4){var u=l.data.replace(/[ \r\n\t]+/g," ");if((!i||/ $/.test(i.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){l=zb(l);continue}l.data=u,i=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(i&&(i.data=i.data.replace(/ $/,"")),i=null,s=!1):n(l)||o(l)?(i=null,s=!0):i&&(s=!1);else{l=zb(l);continue}var c=lP(a,l,o);a=l,l=c}i&&(i.data=i.data.replace(/ $/,""),i.data||zb(i))}}function zb(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function lP(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var jb=typeof window<"u"?window:{};function iV(){var e=jb.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function sV(){var e=function(){};return aV()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}function aV(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{jb.ActiveXObject&&(e=!0)}return e}var lV=iV()?jb.DOMParser:sV();function uV(e,t){var r;if(typeof e=="string"){var n=cV().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return oV({element:r,isBlock:Bb,isVoid:oP,isPre:t.preformattedCode?fV:null}),r}var qb;function cV(){return qb=qb||new lV,qb}function fV(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function pV(e,t){return e.isBlock=Bb(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=hV(e),e.flankingWhitespace=mV(e,t),e}function hV(e){return!oP(e)&&!tV(e)&&/^\s*$/i.test(e.textContent)&&!eV(e)&&!rV(e)}function mV(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=dV(e.textContent);return r.leadingAscii&&uP("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&uP("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function dV(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function uP(e,t,r){var n,o,i;return e==="left"?(n=t.previousSibling,o=/ $/):(n=t.nextSibling,o=/^ /),n&&(n.nodeType===3?i=o.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?i=!1:n.nodeType===1&&!Bb(n)&&(i=o.test(n.textContent))),i}var gV=Array.prototype.reduce,xV=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function cm(e){if(!(this instanceof cm))return new cm(e);var t={rules:Ft,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
159
+
160
+ `:""},keepReplacement:function(r,n){return n.isBlock?`
161
+
162
+ `+n.outerHTML+`
163
+
164
+ `:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
165
+
166
+ `+r+`
167
+
168
+ `:r}};this.options=J9({},t,e),this.rules=new aP(this.options)}cm.prototype={turndown:function(e){if(!wV(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=cP.call(this,new uV(e,this.options));return yV.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return xV.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function cP(e){var t=this;return gV.call(e.childNodes,function(r,n){n=new pV(n,t.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(o=bV.call(t,n)),fP(r,o)},"")}function yV(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=fP(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function bV(e){var t=this.rules.forNode(e),r=cP.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function fP(e,t){var r=Z9(e),n=X9(t),o=Math.max(e.length-r.length,t.length-n.length),i=`
169
+
170
+ `.substring(0,o);return r+i+n}function wV(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var fm=cm;var Su={};te(Su,{gfm:()=>mP,highlightedCodeBlock:()=>Wb,strikethrough:()=>Yb,tables:()=>Vb,taskListItems:()=>Gb});var pP=/highlight-(?:text|source)-([a-z0-9]+)/;function Wb(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&pP.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var o=r.className||"",i=(o.match(pP)||[null,""])[1];return`
171
+
172
+ `+n.fence+i+`
173
+ `+r.firstChild.textContent+`
174
+ `+n.fence+`
175
+
176
+ `}})}function Yb(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var vV=Array.prototype.indexOf,SV=Array.prototype.every,Sa={};Sa.tableCell={filter:["th","td"],replacement:function(e,t){return hP(e,t)}},Sa.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Hb(t))for(var o=0;o<t.childNodes.length;o++){var i="---",s=(t.childNodes[o].getAttribute("align")||"").toLowerCase();s&&(i=n[s]||i),r+=hP(i,t.childNodes[o])}return`
177
+ `+e+(r?`
178
+ `+r:"")}},Sa.table={filter:function(e){return e.nodeName==="TABLE"&&Hb(e.rows[0])},replacement:function(e){return e=e.replace(`
179
+
180
+ `,`
181
+ `),`
182
+
183
+ `+e+`
184
+
185
+ `}},Sa.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function Hb(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||kV(t))&&SV.call(e.childNodes,function(r){return r.nodeName==="TH"})}function kV(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function hP(e,t){var r=vV.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function Vb(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Hb(r.rows[0])});for(var t in Sa)e.addRule(t,Sa[t])}function Gb(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function mP(e){e.use([Wb,Yb,Vb,Gb])}var Qb=je(QO(),1);var pm=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await eu().use(da).use(ma).use(xa,["yaml","toml"]).use(va).use(wa).use(()=>o=>{console.dir(o);let i=o.children.find(s=>s.type==="yaml");i&&(r=i.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await Qb.yamlStringToObject(r):this.frontmatterData={}}};var Jb=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await pm.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new fm({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(Su.gfm),r.turndown(t)}};var So={};te(So,{SmartRouter:()=>p0});var i0={};te(i0,{AsyncExecutionStack:()=>Xb,BackpressuredArray:()=>Zb,FastMap:()=>ku,Interest:()=>Tu,InterestMap:()=>Kb,LimitedArray:()=>e0,LoopTracker:()=>t0,ObjectMap:()=>Ii,Stringmap:()=>r0,TimedAggregtor:()=>n0,Tree:()=>o0,uni:()=>gP});var hm=je(ip(),1);var Xb=class{constructor(){this.executionSlots=[],this.isProcessing=!1,this.nonExclusiveMaxConcurrency=1/0,this.nonExclusiveCurrentCount=0,this.nonExclusivePendingQueue=[]}async getExclusiveExecutionSlot(t,r){let n=ue.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=ue.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(t){if(!Number.isFinite(t)||t<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=t}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),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(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),ce.delayFor(t.timeout).then(()=>{throw new Error("Timeout reached")})]);t.executionDeferred.resolve(r)}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),ce.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)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(r)}waitForNonExclusiveSlot(){return this.nonExclusiveCurrentCount<this.nonExclusiveMaxConcurrency?(this.nonExclusiveCurrentCount++,Promise.resolve()):new Promise(t=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,t()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let t=this.nonExclusivePendingQueue.shift();t&&t()}};var Zb=class{constructor(t=16){this.hasSpace=new Be.rxjs.Subject,this.itemsAvailable=new Be.rxjs.Subject,this.data=[],this.highWaterMark=t}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable())t();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),t()})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0)t();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),t()})}})}};var ku=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var gP=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),Ii=class e{constructor(){this.fastMap=new ku,this.eventSubject=new Be.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=gP("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var Tu=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,o){this.destructionTimer=new st.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new ue.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&ce.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 Kb=class{constructor(t,r={}){this.interestObjectMap=new Ii,this.interestObservable=new Be.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,i=new Tu(this,t,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(t){let r=this.interestObjectMap.findOneAndRemoveSync(n=>t.comparisonString===n.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return!!this.interestObjectMap.findSync(n=>n.comparisonString===t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var e0=class{constructor(t){this.array=[],this.arrayLimit=t}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}};var t0=class{constructor(){this.referenceObjectMap=new Ii}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var r0=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new rr.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=ue.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var n0=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new st.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||t()}add(t){this.storageArray.push(t),this.checkAggregationStatus()}};var o0=class{constructor(){this.symbolTree=new hm.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(t){this.symbolTree.ancestorsIterator()}treeIterator(t,r){return this.symbolTree.treeIterator(t)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=this.treeIterator(t,{});for(let n of r)console.log(n)}fromJsonWithHierachy(t){}};var f0=je(wP(),1);var gm=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(t,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var EWe=e=>{console.log(`%c[Router]%c ${e}`,"color: rgb(255, 105, 100);","color: inherit")},p0=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new gm,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,o={matchFunction:f0.match(n),handler:r};return this.routes.push(o),()=>{this.routes.splice(this.routes.indexOf(o),1)}}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let o=n.matchFunction(t);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var ko={};te(ko,{Smartstate:()=>m0,StateAction:()=>Au,StatePart:()=>Du});var Eu={};te(Eu,{md5FromString:()=>WV,sha256FromBuffer:()=>zV,sha256FromFile:()=>HV,sha256FromStream:()=>qV,sha256FromString:()=>kP,sha256FromStringSync:()=>UV,sha265FromObject:()=>jV});var RV=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],BV=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function fn(e,t){return e>>>t|e<<32-t}function $V(e,t){let r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7];for(let c=0;c<64;c++){if(c>=16){let y=fn(e[c-15],7)^fn(e[c-15],18)^e[c-15]>>>3,S=fn(e[c-2],17)^fn(e[c-2],19)^e[c-2]>>>10;e[c]=e[c-16]+y+e[c-7]+S>>>0}let f=fn(s,6)^fn(s,11)^fn(s,25),p=s&a^~s&l,h=u+f+p+RV[c]+e[c]>>>0,m=fn(r,2)^fn(r,13)^fn(r,22),d=r&n^r&o^n&o,g=m+d>>>0;u=l,l=a,a=s,s=i+h>>>0,i=o,o=n,n=r,r=h+g>>>0}t[0]=t[0]+r>>>0,t[1]=t[1]+n>>>0,t[2]=t[2]+o>>>0,t[3]=t[3]+i>>>0,t[4]=t[4]+s>>>0,t[5]=t[5]+a>>>0,t[6]=t[6]+l>>>0,t[7]=t[7]+u>>>0}function h0(e){let t=[...BV],r=e.length,n=r*8,o=r%64<56?56-r%64:120-r%64,i=new Uint8Array(r+o+8);i.set(e),i[r]=128;let s=new DataView(i.buffer);s.setUint32(i.length-8,0,!1),s.setUint32(i.length-4,n>>>0,!1);for(let l=0;l<i.length;l+=64){let u=new Array(64);for(let c=0;c<16;c++)u[c]=s.getUint32(l+c*4,!1);$V(u,t)}let a="";for(let l=0;l<8;l++)a+=t[l].toString(16).padStart(8,"0");return a}var vP=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let i=r.getUint32(n).toString(16),s="00000000",a=(s+i).slice(-s.length);t.push(a)}return t.join("")},SP=()=>typeof crypto<"u"&&crypto.subtle!==void 0,kP=async e=>{let t=new TextEncoder().encode(e);if(SP()){let r=await crypto.subtle.digest("SHA-256",t);return vP(r)}else return h0(t)},UV=e=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},zV=async e=>{if(SP()){let t;if(e instanceof Uint8Array){let o=e;t=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}else t=e;let r=await crypto.subtle.digest("SHA-256",t);return vP(r)}else{let t=e instanceof Uint8Array?e:new Uint8Array(e);return h0(t)}},jV=async e=>{let t=sr.stringify(e);return await kP(t)},qV=e=>{throw new Error("sha256FromStream is not supported in browser environment")},HV=async e=>{throw new Error("sha256FromFile is not supported in browser environment")},WV=async e=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")};var Au=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){return this.statePartRef.dispatchAction(this,t)}};var Du=class{constructor(t,r){this.state=new Xe.rxjs.Subject,this.cumulativeDeferred=Pe.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new jt.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&this.validateState(t)&&(this.stateStore=t,await this.notifyChange())}}getState(){return this.stateStore}async setState(t){if(!this.validateState(t))throw new Error(`Invalid state structure for state part '${this.name}'`);return this.stateStore=t,await this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}validateState(t){return t!=null}async notifyChange(){if(!this.stateStore)return;let r=await(async n=>await Eu.sha256FromString(sr.stableOneWayStringify(n)))(this.stateStore);this.lastStateNotificationPayloadHash&&r===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=r,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(async()=>{this.stateStore&&await this.notifyChange()},0)}select(t){return t||(t=n=>n),this.state.pipe(Xe.rxjs.ops.startWith(this.getState()),Xe.rxjs.ops.filter(n=>n!==void 0),Xe.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Au(this,t)}async dispatchAction(t,r){await this.cumulativeDeferred.promise;let n=await t.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(t){let r=Pe.defer(),o=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),i=await r.promise;return o.unsubscribe(),i}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var m0=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n="soft"){let o=this.statePartMap[t];if(o)switch(n){case"mandatory":throw new Error(`State part '${t}' already exists, but initMode is 'mandatory'`);case"force":return this.createStatePart(t,r,n);case"soft":case"persistent":default:return o}else{if(!r)throw new Error(`State part '${t}' does not exist and no initial state provided`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n="soft"){let o=new Du(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await o.init();let i=o.getState();return await o.setState({...i,...r}),this.statePartMap[t]=o,o}};var To={};te(To,{Smarturl:()=>d0});var d0=class e{static createFromUrl(t,r){let n=new URL(t),o={},i=[];n.search&&n.search.replace("?","").split("&").map(u=>{i.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of i)o[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))o[u]=r.searchParams[u];let s=n.pathname||"";if(Object.keys(o).length>0){s+="?";let u=!0;for(let c of Object.keys(o))u?u=!1:s+="&",s+=`${c}=${o[c]}`}let a={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:s,pathname:n.pathname,search:n.search,searchParams:o,hash:n.hash};!a.port&&a.protocol==="https:"&&(a.port="443"),!a.port&&a.protocol==="http:"&&(a.port="80");let l=new e;return Object.assign(l,a),l}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var M0={};te(M0,{JsonLdTag:()=>Ni,MetaTag:()=>vr,OpengraphTag:()=>qt,Title:()=>O0,WebSetup:()=>Cu});var g0={};te(g0,{Timeout:()=>bm,delayFor:()=>EP,delayForRandom:()=>KV});var Fi={};te(Fi,{CumulativeDeferred:()=>ym,Deferred:()=>xm,cumulativeDefer:()=>VV,defer:()=>Pi,getFirstTrueOrFalse:()=>ZV,map:()=>JV,rejectedPromise:()=>QV,resolvedPromise:()=>GV,timeoutAndContinue:()=>XV,timeoutWrap:()=>TP});var xm=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((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Pi=()=>new xm;var ym=class{constructor(){this.accumulatedPromises=[],this.deferred=Pi(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},VV=()=>new ym;var GV=e=>Promise.resolve(e),QV=e=>Promise.reject(e),JV=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},TP=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),XV=async(e,t=6e4)=>TP(e,t,!1),ZV=async e=>{let t=Pi();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var EP=async(e,t,r=!1)=>(await new bm(e,null,r).promise,t),KV=async(e,t,r,n=!1)=>(await EP(Math.random()*(t-e)+e,null,n),r),bm=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Pi(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var C0={};te(C0,{business:()=>wm,code:()=>w0,container:()=>v0,content:()=>S0,database:()=>b0,finance:()=>x0,general:()=>k0,network:()=>vm,saas:()=>E0,storage:()=>A0,website:()=>D0});var wm={};te(wm,{IJob:()=>y0});var x0={};var y0=class{};var b0={};var w0={};var v0={};var S0={};var k0={};var vm={};te(vm,{ICnameDescriptor:()=>T0});var T0=class{};var E0={};var A0={};var D0={};var Eo=class{appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var Ni=class e extends Eo{static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var qt=class e extends Eo{static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var Ea=class{set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(Ni.createCompanyJsonLd(t)),this.addTag(new qt("og:type","business.business")),this.addTag(new qt("og:title",t.name)),this.addTag(new qt("og:url",t.contact.website)),this.addTag(new qt("og:image",t.contact.logoUrl)),this.addTag(new qt("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new qt("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new qt("business:contact_data:region",t.contact.address.city)),this.addTag(new qt("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new qt("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(Ni.createNewsArticleJsonLd(t)),this.addTag(qt.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(Ni.createProductJsonLd(t,r)),this.addTag(qt.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var vr=class extends Eo{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Sm=class{constructor(){this.globalLevel=new Ea(this,"global"),this.baseLevel=new Ea(this,"base")}async setup(t){switch(this.globalLevel.addTag(new vr("google","notranslate")),this.globalLevel.addTag(new vr("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new vr("twitter:card","summary_large_image")),this.globalLevel.addTag(new vr("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new vr("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new vr("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new vr("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new Ea(this,"subpage");return r.title=t.title,t.description&&r.addTag(new vr("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Cu=class{constructor(t){this.tagManager=new Sm,this.readyDeferred=Fi.defer(),this.readyForSmartssrDeferred=Fi.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var O0=class{};var AP=je(ip(),1);var Aa=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var t7=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),km=class e{constructor(){this.fastMap=new Aa,this.eventSubject=new Be.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=t7("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var Tm=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new rr.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=ue.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var r7="1.3.15";function CP(e,t,r){return Math.max(e,Math.min(t,r))}function n7(e,t,r){return(1-r)*e+r*t}function o7(e,t,r,n){return n7(e,t,1-Math.exp(-r*n))}function i7(e,t){return(e%t+t)%t}var s7=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let r=CP(0,this.currentTime/this.duration,1);t=r>=1;let n=t?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=o7(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r,duration:n,easing:o,onStart:i,onUpdate:s}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=n,this.easing=o,this.currentTime=0,this.isRunning=!0,i?.(),this.onUpdate=s}};function a7(e,t){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(o,n)},t)}}var l7=class{constructor(e,t,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=e,this.content=t,r&&(this.debouncedResize=a7(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},OP=class{events={};emit(e,...t){let r=this.events[e]||[];for(let n=0,o=r.length;n<o;n++)r[n]?.(...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(r=>t!==r)}}off(e,t){this.events[e]=this.events[e]?.filter(r=>t!==r)}destroy(){this.events={}}},MP=100/6,Ao={passive:!1},u7=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Ao),this.element.addEventListener("touchstart",this.onTouchStart,Ao),this.element.addEventListener("touchmove",this.onTouchMove,Ao),this.element.addEventListener("touchend",this.onTouchEnd,Ao)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new OP;on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Ao),this.element.removeEventListener("touchstart",this.onTouchStart,Ao),this.element.removeEventListener("touchmove",this.onTouchMove,Ao),this.element.removeEventListener("touchend",this.onTouchEnd,Ao)}onTouchStart=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,n=-(t-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:n,y:o},this.emitter.emit("scroll",{deltaX:n,deltaY:o,event:e})};onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:r,deltaMode:n}=e,o=n===1?MP:n===2?this.window.width:1,i=n===1?MP:n===2?this.window.height:1;t*=o,r*=i,t*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},_P=e=>Math.min(1,1.001-Math.pow(2,-10*e)),Ou=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new s7;emitter=new OP;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:r=e,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:i=.075,touchInertiaExponent:s=1.7,duration:a,easing:l,lerp:u=.1,infinite:c=!1,orientation:f="vertical",gestureOrientation:p=f==="horizontal"?"both":"vertical",touchMultiplier:h=1,wheelMultiplier:m=1,autoResize:d=!0,prevent:g,virtualScroll:y,overscroll:S=!0,autoRaf:k=!1,anchors:N=!1,autoToggle:R=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:$=!1}={}){window.lenisVersion=r7,(!e||e===document.documentElement)&&(e=window),typeof a=="number"&&typeof l!="function"?l=_P:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:e,content:t,eventsTarget:r,smoothWheel:n,syncTouch:o,syncTouchLerp:i,touchInertiaExponent:s,duration:a,easing:l,lerp:u,infinite:c,gestureOrientation:p,orientation:f,touchMultiplier:h,wheelMultiplier:m,autoResize:d,prevent:g,virtualScroll:y,overscroll:S,autoRaf:k,anchors:N,autoToggle:R,allowNestedScroll:T,__experimental__naiveDimensions:$},this.dimensions=new l7(e,t,{autoResize:d}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new u7(r,{touchMultiplier:h,wheelMultiplier:m}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=e=>{if(e.propertyName.includes("overflow")){let t=this.isHorizontal?"overflow-x":"overflow-y",r=getComputedStyle(this.rootElement)[t];["hidden","clip"].includes(r)?this.internalStop():this.internalStart()}};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=e=>{let r=e.composedPath().find(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href")?.includes("#"));if(r){let n=r.getAttribute("href");if(n){let o=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,i=`#${n.split("#")[1]}`;this.scrollTo(i,o)}}};onPointerDown=e=>{e.button===1&&this.reset()};onVirtualScroll=e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:r,event:n}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let o=n.type.includes("touch"),i=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";let s=t===0&&r===0;if(this.options.syncTouch&&o&&n.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}let l=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&t===0;if(s||l)return;let u=n.composedPath();u=u.slice(0,u.indexOf(this.rootElement));let c=this.options.prevent;if(u.find(g=>g instanceof HTMLElement&&(typeof c=="function"&&c?.(g)||g.hasAttribute?.("data-lenis-prevent")||o&&g.hasAttribute?.("data-lenis-prevent-touch")||i&&g.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(g,{deltaX:t,deltaY:r}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let p=r;this.options.gestureOrientation==="both"?p=Math.abs(r)>Math.abs(t)?r:t:this.options.gestureOrientation==="horizontal"&&(p=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let h=o&&this.options.syncTouch,d=o&&n.type==="touchend";d&&(p=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+p,{programmatic:!1,...h?{lerp:d?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:r=!1,lock:n=!1,duration:o=this.options.duration,easing:i=this.options.easing,lerp:s=this.options.lerp,onStart:a,onComplete:l,force:u=!1,programmatic:c=!0,userData:f}={}){if(!((this.isStopped||this.isLocked)&&!u)){if(typeof e=="string"&&["top","left","start","#"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let p;if(typeof e=="string"?(p=document.querySelector(e),p||(e==="#top"?e=0:console.warn("Lenis: Target not found",e))):e instanceof HTMLElement&&e?.nodeType&&(p=e),p){if(this.options.wrapper!==window){let m=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?m.left:m.top}let h=p.getBoundingClientRect();e=(this.isHorizontal?h.left:h.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(c){this.targetScroll=this.animatedScroll=this.scroll;let p=e-this.animatedScroll;p>this.limit/2?e=e-this.limit:p<-this.limit/2&&(e=e+this.limit)}}else e=CP(0,e,this.limit);if(e===this.targetScroll){a?.(this),l?.(this);return}if(this.userData=f??{},r){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}c||(this.targetScroll=e),typeof o=="number"&&typeof i!="function"?i=_P:typeof i=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,e,{duration:o,easing:i,lerp:s,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(p,h)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=p-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=p,this.setScroll(this.scroll),c&&(this.targetScroll=p),h||this.emit(),h&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:r}){let n=Date.now(),o=e._lenis??={},i,s,a,l,u,c,f,p,h=this.options.gestureOrientation;if(n-(o.time??0)>2e3){o.time=Date.now();let R=window.getComputedStyle(e);o.computedStyle=R;let T=R.overflowX,$=R.overflowY;if(i=["auto","overlay","scroll"].includes(T),s=["auto","overlay","scroll"].includes($),o.hasOverflowX=i,o.hasOverflowY=s,!i&&!s||h==="vertical"&&!s||h==="horizontal"&&!i)return!1;u=e.scrollWidth,c=e.scrollHeight,f=e.clientWidth,p=e.clientHeight,a=u>f,l=c>p,o.isScrollableX=a,o.isScrollableY=l,o.scrollWidth=u,o.scrollHeight=c,o.clientWidth=f,o.clientHeight=p}else a=o.isScrollableX,l=o.isScrollableY,i=o.hasOverflowX,s=o.hasOverflowY,u=o.scrollWidth,c=o.scrollHeight,f=o.clientWidth,p=o.clientHeight;if(!i&&!s||!a&&!l||h==="vertical"&&(!s||!l)||h==="horizontal"&&(!i||!a))return!1;let m;if(h==="horizontal")m="x";else if(h==="vertical")m="y";else{let R=t!==0,T=r!==0;R&&i&&a&&(m="x"),T&&s&&l&&(m="y")}if(!m)return!1;let d,g,y,S,k;if(m==="x")d=e.scrollLeft,g=u-f,y=t,S=i,k=a;else if(m==="y")d=e.scrollTop,g=c-p,y=r,S=s,k=l;else return!1;return(y>0?d<g:d>0)&&S&&k}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?i7(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};var Em=je(P0(),1),Mu={ObjectMap:km,Stringmap:Tm,FastMap:Aa};var pn={};te(pn,{cssForDesktop:()=>c7,cssForNotebook:()=>f7,cssForPhablet:()=>h7,cssForPhone:()=>m7,cssForTablet:()=>p7,desktop:()=>F0,notebook:()=>N0,phablet:()=>R0,phone:()=>B0,tablet:()=>L0});var F0=1600,N0=1240,L0=1024,R0=600,B0=400,c7=e=>$e(`
186
+ @container wccToolsViewport (min-width: ${F0}px) {
187
+ ${e.cssText}
188
+ }
189
+ @media (min-width: ${F0}px) {
190
+ ${e.cssText}
191
+ }
192
+ `),f7=e=>$e(`
193
+ @container wccToolsViewport (max-width: ${N0}px) {
194
+ ${e.cssText}
195
+ }
196
+ @media (max-width: ${N0}px) {
197
+ ${e.cssText}
198
+ }
199
+ `),p7=e=>$e(`
200
+ @container wccToolsViewport (max-width: ${L0}px) {
201
+ ${e.cssText}
202
+ }
203
+ @media (max-width: ${L0}px) {
204
+ ${e.cssText}
205
+ }
206
+ `),h7=e=>$e(`
207
+ @container wccToolsViewport (max-width: ${R0}px) {
208
+ ${e.cssText}
209
+ }
210
+ @media (max-width: ${R0}px) {
211
+ ${e.cssText}
212
+ }
213
+ `),m7=e=>$e(`
214
+ @container wccToolsViewport (max-width: ${B0}px) {
215
+ ${e.cssText}
216
+ }
217
+ @media (max-width: ${B0}px) {
218
+ ${e.cssText}
219
+ }
220
+ `);var Dm=class{constructor(t){this.scrollCallbacks=[],this.lenisInstance=null,this.handleNativeScroll=r=>{this.executeScrollCallbacks()},this.handleLenisScroll=r=>{this.executeScrollCallbacks()},this.sweetScroller=new Em.default({}),this.domtoolsInstance=t,this.attachNativeScrollListener()}async toElement(t,r){this.sweetScroller.toElement(t,r),await ce.delayFor(r.duration)}async detectNativeSmoothScroll(){let t=Pe.defer(),r=100,n=3,o=.75,i=[];function s(l){i.push(l.deltaY),i.length>=r&&(window.removeEventListener("wheel",s),a())}function a(){let l=i.length-1,u=0;for(let f=0;f<l;f++)Math.abs(i[f+1]-i[f])<=n&&u++;u/l>=o?(console.log("Smooth scrolling detected."),t.resolve(!0)):(console.log("Smooth scrolling NOT detected."),t.resolve(!1))}return window.addEventListener("wheel",s),t.promise}async enableLenisScroll(t){let r=new Ou({autoRaf:!0});if(t?.disableOnNativeSmoothScroll&&await this.detectNativeSmoothScroll()){r.destroy();return}this.lenisInstance=r,this.detachNativeScrollListener(),this.attachLenisScrollListener();let n=r.destroy.bind(r);r.destroy=()=>{n(),this.detachLenisScrollListener(),this.attachNativeScrollListener(),this.lenisInstance=null}}onScroll(t){this.scrollCallbacks.push(t)}executeScrollCallbacks(){this.scrollCallbacks.forEach(t=>{try{t()}catch(r){console.error("Error in scroll callback:",r)}})}attachNativeScrollListener(){window.addEventListener("scroll",this.handleNativeScroll)}detachNativeScrollListener(){window.removeEventListener("scroll",this.handleNativeScroll)}attachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.on("scroll",this.handleLenisScroll)}detachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.off("scroll",this.handleLenisScroll)}};var Cm=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new Xe.rxjs.ReplaySubject(1),this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async enableAutomaticGlobalThemeChange(){document.body&&document.body.style&&this.themeObservable.subscribe({next:t=>{document.body.style.background=t?"#fff":"#000"}})}async updateAllConnectedElements(){this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var $0;(function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"})($0||($0={}));var Om=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=$0,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(t){let r=new Xe.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var hn=class e{static{this.initializationPromise=null}static async setupDomTools(t={}){return!t.ignoreGlobal&&e.initializationPromise?await e.initializationPromise:t.ignoreGlobal?new e(t):(e.initializationPromise=(async()=>{let r;if(globalThis.deesDomTools)r=globalThis.deesDomTools;else{globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.keyboard=new Om(document.body),r.domReady.resolve())};document.readyState==="interactive"||document.readyState==="complete"?n():document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}return await r.domToolsReady.promise,r})(),await e.initializationPromise)}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(t){this.elements={headElement:null,bodyElement:null},this.websetup=new Cu({metaObject:{title:"loading..."}}),this.smartstate=new ko.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new So.SmartRouter({debug:!1}),this.convenience={typedrequest:lt,smartdelay:ce,smartjson:sr,smarturl:To},this.deesComms=new ql.DeesComms,this.scroller=new Dm(this),this.themeManager=new Cm(this),this.keyboard=null,this.domToolsReady=Pe.defer(),this.domReady=Pe.defer(),this.globalStylesReady=Pe.defer(),this.runOnceTrackerStringMap=new Mu.Stringmap,this.runOnceResultMap=new Mu.FastMap,this.runOnceErrorMap=new Mu.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);try{let o=await r();this.runOnceResultMap.addToMap(t,o)}catch(o){this.runOnceErrorMap.addToMap(t,o)}finally{this.runOnceTrackerStringMap.removeString(n)}}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>{let o=this.runOnceErrorMap.getByKey(t);if(o)throw o;return this.runOnceResultMap.getByKey(t)})}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=Pe.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var Mm=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?Je``.cssText:"";return Je`
221
+ /* width */
222
+ ::-webkit-scrollbar {
223
+ width: 0px;
224
+ }
225
+ body {
226
+ scrollbar-width: none;
227
+ }
228
+ `.cssText})(),IP=Je`
229
+ /*
230
+ @font-face {
231
+ font-family: 'Material Icons';
232
+ font-style: normal;
233
+ font-weight: 400;
234
+ src: url(https://fonts.gstatic.com/s/materialicons/v42/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2)
235
+ format('woff2');
236
+ } */
237
+
238
+ /* global body styles */
239
+ body {
240
+ margin: 0px;
241
+ font-family: 'Geist Sans', 'Inter', sans-serif;
242
+ box-sizing: border-box;
243
+ }
244
+
245
+ /* scroll bar styles */
246
+ ${$e(Mm)}
247
+ `.cssText;var d7=Je`
248
+ * {
249
+ transition: background 0.1s, color 0.1s;
250
+ box-sizing: border-box;
251
+ }
252
+
253
+ :host {
254
+ box-sizing: border-box;
255
+ font-family: 'Geist Sans', 'Inter', sans-serif;
256
+ }
257
+
258
+ ${$e(Mm)}
259
+ `,g7=et`
260
+ <style>
261
+ * {
262
+ transition: background 0.1s, color 0.1s;
263
+ box-sizing: border-box;
264
+ }
265
+
266
+ :host {
267
+ font-family: 'Geist Sans', 'Inter', sans-serif;
268
+ }
269
+
270
+ ${Mm}
271
+ </style>
272
+ `,x7=async(e,t={})=>{let r=await hn.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(IP)}),r};var _m={};te(_m,{cssGridColumns:()=>y7});var y7=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var Im={};te(Im,{SweetScroll:()=>U0.default,smartdelay:()=>ce,smartmarkdown:()=>ka,smartpromise:()=>Pe,smartrouter:()=>So,smartrx:()=>Xe,smartstate:()=>ko,smartstring:()=>_r,smarturl:()=>To,typedrequest:()=>lt});var U0=je(P0(),1);var z0=je($a(),1),Do={css:Je,unsafeCSS:$e,LitElement:xn,property:mr};var Pm=class e{static{this.instance=null}static getSingleton(){return e.instance||(e.instance=new e),e.instance}constructor(){this.domtoolsPromise=hn.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(t,r)=>{let n="";for(let o=0;o<t;o++)n+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return Do.unsafeCSS(n)},this.domtoolsPromise.then(async t=>{t.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await t.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return Da.staticStyles}cssForDesktop(t){return $e(pn.cssForDesktop(t))}cssForNotebook(t){return $e(pn.cssForNotebook(t))}cssForTablet(t){return $e(pn.cssForTablet(t))}cssForPhablet(t){return $e(pn.cssForPhablet(t))}cssForPhone(t){return $e(pn.cssForPhone(t))}bdTheme(t,r){let n,o;hn.getGlobalDomToolsSync()?o=hn.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:o=r;let i=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(i)n=i.cssVarName;else{let s={cssVarName:`--${z0.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async a=>{await a.domReady.promise,document.body.style.setProperty(s.cssVarName,o)}),n=s.cssVarName}return Do.unsafeCSS(`var(${n}, ${o})`)}};var j0=Symbol.for(""),b7=e=>{if(e?.r===j0)return e?._$litStatic$},NP=e=>({_$litStatic$:e,r:j0}),w7=(e,...t)=>({_$litStatic$:t.reduce(((r,n,o)=>r+(i=>{if(i._$litStatic$!==void 0)return i._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${i}. Use 'unsafeStatic' to pass non-literal values, but
273
+ take care to ensure page security.`)})(n)+e[o+1]),e[0]),r:j0}),FP=new Map,Fm=e=>(t,...r)=>{let n=r.length,o,i,s=[],a=[],l,u=0,c=!1;for(;u<n;){for(l=t[u];u<n&&(i=r[u],(o=b7(i))!==void 0);)l+=o+t[++u],c=!0;u!==n&&a.push(i),s.push(l),u++}if(u===n&&s.push(t[n]),c){let f=s.join("$$lit$$");(t=FP.get(f))===void 0&&(s.raw=s,FP.set(f,t=s)),r=a}return e(t,...r)},LP=Fm(et),v7=Fm(Ym),S7=Fm(Vm);var Oo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Nt=e=>(...t)=>({_$litDirective$:e,values:t}),Co=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var Ca=class extends Co{constructor(t){if(super(t),this.it=qe,t.type!==Oo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===qe||t==null)return this._t=void 0,this.it=t;if(t===Ue)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ca.directiveName="unsafeHTML",Ca.resultType=1;var RP=Nt(Ca);var Sr=e=>(t,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};function BP(e){return mr({...e,state:!0,attribute:!1})}function k7(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var kr=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function $P(e,t){return(r,n,o)=>{let i=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:a}=typeof n=="object"?r:o??(()=>{let l=Symbol();return{get(){return this[l]},set(u){this[l]=u}}})();return kr(r,n,{get(){let l=s.call(this);return l===void 0&&(l=i(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return kr(r,n,{get(){return i(this)}})}}var T7;function UP(e){return(t,r)=>kr(t,r,{get(){return(this.renderRoot??(T7??=document.createDocumentFragment())).querySelectorAll(e)}})}function zP(e){return(t,r)=>kr(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function E7(e){return(t,r)=>{let{slot:n,selector:o}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return kr(t,r,{get(){let s=this.renderRoot?.querySelector(i),a=s?.assignedElements(e)??[];return o===void 0?a:a.filter((l=>l.matches(o)))}})}}function A7(e){return(t,r)=>{let{slot:n}=e??{},o="slot"+(n?`[name=${n}]`:":not([name])");return kr(t,r,{get(){return this.renderRoot?.querySelector(o)?.assignedNodes(e)??[]}})}}var jP=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},qP=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Kt=class extends Do.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=mn.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=mn.elementBasic.setup(this,t),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let t=await this.domtoolsPromise;this.themeSubscription=t.themeManager.themeObservable.subscribe(r=>{this.goBright=r,this.themeChanged&&this.themeChanged(r)}),this.rxSubscriptions.push(this.themeSubscription);for(let r of this.startupFunctions)await r();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(t){super.firstUpdated(t),this.elementDomReadyDeferred.resolve()}registerStartupFunction(t){this.startupFunctions.push(t)}registerGarbageFunction(t){this.garbageFunctions.push(t)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let t of this.rxSubscriptions)t.unsubscribe();for(let t of this.garbageFunctions)await t();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};jP([Do.property({type:Boolean}),qP("design:type",Boolean)],Kt.prototype,"goBright",void 0),jP([Do.property(),qP("design:type",mn.DomTools)],Kt.prototype,"domtools",void 0);var ew={};te(ew,{asyncAppend:()=>K0,resolve:()=>YP,resolveExec:()=>U7,subscribe:()=>z7,subscribeWithTemplate:()=>VP,until:()=>Z0});var{I:D7}=Gm,q0=e=>e===null||typeof e!="object"&&typeof e!="function",C7={HTML:1,SVG:2,MATHML:3},O7=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,M7=e=>e?._$litType$?.h!=null,_7=e=>e?._$litDirective$!==void 0,I7=e=>e?._$litDirective$,H0=e=>e.strings===void 0,HP=()=>document.createComment(""),W0=(e,t,r)=>{let n=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(r===void 0){let i=n.insertBefore(HP(),o),s=n.insertBefore(HP(),o);r=new D7(i,s,e,e.options)}else{let i=r._$AB.nextSibling,s=r._$AM,a=s!==e;if(a){let l;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(l=e._$AU)!==s._$AU&&r._$AP(l)}if(i!==o||a){let l=r._$AA;for(;l!==i;){let u=l.nextSibling;n.insertBefore(l,o),l=u}}}return r},Y0=(e,t,r=e)=>(e._$AI(t,r),e),P7={},F7=(e,t=P7)=>e._$AH=t,N7=e=>e._$AH,L7=e=>{e._$AR(),e._$AA.remove()},V0=e=>{e._$AR()};var _u=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),_u(n,t);return!0},Nm=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},WP=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),$7(t)}};function R7(e){this._$AN!==void 0?(Nm(this),this._$AM=e,WP(this)):this._$AM=e}function B7(e,t=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)_u(n[i],!1),Nm(n[i]);else n!=null&&(_u(n,!1),Nm(n));else _u(this,e)}var $7=e=>{e.type==Oo.CHILD&&(e._$AP??=B7,e._$AQ??=R7)},ur=class extends Co{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),WP(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(_u(this,t),Nm(this))}setValue(t){if(H0(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var G0=class extends ur{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),Ue}handlePromise(t){this.hasPromiseSettled=!1,t.then(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},YP=Nt(G0),U7=e=>YP(e());var Q0=class extends ur{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),Ue}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},z7=Nt(Q0);var J0=class extends ur{constructor(){super(...arguments),this.sub=null}render(t,r){return(this.observable!==t||this.templateFn!==r)&&(this.sub?.unsubscribe(),this.observable=t,this.templateFn=r,this.isConnected&&this.startSubscription()),Ue}startSubscription(){this.sub=this.observable.subscribe(t=>{let r=this.templateFn(t);this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},VP=Nt(J0);var X0=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},Li=class{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}},Ri=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((t=>this.Z=t))}resume(){this.Z?.(),this.Y=this.Z=void 0}};var GP=e=>!q0(e)&&typeof e.then=="function",QP=1073741823,Lm=class extends ur{constructor(){super(...arguments),this._$Cwt=QP,this._$Cbt=[],this._$CK=new Li(this),this._$CX=new Ri}render(...t){return t.find((r=>!GP(r)))??Ue}update(t,r){let n=this._$Cbt,o=n.length;this._$Cbt=r;let i=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$Cwt);a++){let l=r[a];if(!GP(l))return this._$Cwt=a,l;a<o&&l===n[a]||(this._$Cwt=QP,o=0,Promise.resolve(l).then((async u=>{for(;s.get();)await s.get();let c=i.deref();if(c!==void 0){let f=c._$Cbt.indexOf(l);f>-1&&f<c._$Cwt&&(c._$Cwt=f,c.setValue(u))}})))}return Ue}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},Z0=Nt(Lm);var Oa=class extends ur{constructor(){super(...arguments),this._$CK=new Li(this),this._$CX=new Ri}render(t,r){return Ue}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return Ue;this._$CJ=r;let o=0,{_$CK:i,_$CX:s}=this;return X0(r,(async a=>{for(;s.get();)await s.get();let l=i.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,o)),l.commitValue(a,o),o++}return!0})),Ue}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},j7=Nt(Oa);var K0=Nt(class extends Oa{constructor(e){if(super(e),e.type!==Oo.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$Ctt=e,super.update(e,t)}commitValue(e,t){t===0&&V0(this._$Ctt);let r=W0(this._$Ctt);Y0(r,e)}});var fe=Pm.getSingleton();var PVe=$e('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'),V={light:{background:"#ffffff",foreground:"#09090b",muted:"#f4f4f5",mutedForeground:"#71717a",border:"#e4e4e7",input:"#e4e4e7",primary:"#18181b",primaryForeground:"#fafafa",secondary:"#f4f4f5",secondaryForeground:"#18181b",accent:"#f4f4f5",accentForeground:"#18181b",ring:"#a1a1aa"},dark:{background:"#09090b",foreground:"#fafafa",muted:"#27272a",mutedForeground:"#a1a1aa",border:"#27272a",input:"#27272a",primary:"#fafafa",primaryForeground:"#18181b",secondary:"#27272a",secondaryForeground:"#fafafa",accent:"#27272a",accentForeground:"#fafafa",ring:"#52525b"}};var JP={};var Rm=class{constructor(){this.webstore=new jt.WebStore({dbName:"consentsoftware",storeName:"webclient"})}async isCookieLevelSet(){return!!await this.webstore.get("acceptedCookieLevels")}async setCookieLevels(t){return await this.webstore.set("acceptedCookieLevels",{acceptanceTimestamp:Date.now(),acceptedCookieLevels:t}),!0}async getCookieLevels(){return(await this.webstore.get("acceptedCookieLevels"))?.acceptedCookieLevels}async isCookieLevelStillValid(){return!(!this.isCookieLevelSet||(await this.webstore.get("acceptedCookieLevels")).acceptanceTimestamp<Date.now()-st.getMilliSecondsFromUnits({months:3}))}async getAndRunConsentTuples(t){let r=await this.getCookieLevels();if(!r){console.log("You need to set accepted cookielevels first");return}let n=new lt.TypedRequest("https://connect.api.global/consentsoftware","getDomainSettings"),o=t||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,l=new Function("dataArg","cookieLevelsArg",`return (${a})(dataArg, cookieLevelsArg)`);if(typeof l=="function")await l(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 XP,tw,W7;XP=[Sr("consentsoftware-cookieconsent")];var Iu=class extends(W7=Kt){static demo=()=>et`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`;csWebclientInstance=new Rm;csWebclientRan=!1;static styles=[fe.defaultStyles,Je`
274
+ :host {
275
+ font-size: 14px;
276
+ user-select: none;
277
+ }
278
+
279
+ .pageOverlay {
280
+ position: fixed;
281
+ inset: 0;
282
+ display: grid;
283
+ align-items: center;
284
+ justify-content: center;
285
+ z-index: 1000;
286
+ background: rgba(0, 0, 0, 0);
287
+ backdrop-filter: blur(0px);
288
+ transition: all 0.2s ease-out;
289
+ }
290
+
291
+ .pageOverlay.shake {
292
+ background: rgba(0, 0, 0, 0.6) !important;
293
+ }
294
+
295
+ .modalBox {
296
+ display: block;
297
+ color: ${fe.bdTheme(V.light.foreground,V.dark.foreground)};
298
+ background: ${fe.bdTheme(V.light.background,V.dark.background)};
299
+ box-shadow:
300
+ 0 0 0 1px ${fe.bdTheme(V.light.border,V.dark.border)},
301
+ 0 16px 70px ${fe.bdTheme("rgba(0, 0, 0, 0.15)","rgba(0, 0, 0, 0.35)")};
302
+ position: relative;
303
+ border-radius: 8px;
304
+ max-width: 520px;
305
+ min-width: 320px;
306
+ box-sizing: border-box;
307
+ overflow: hidden;
308
+ will-change: transform;
309
+ transition: all 0.2s ease-out;
310
+ transform: scale(0.96);
311
+ opacity: 0;
312
+ }
313
+
314
+ @media (max-width: 560px) {
315
+ .modalBox {
316
+ max-width: 100%;
317
+ min-width: 100%;
318
+ height: 100vh;
319
+ border-radius: 0;
320
+ }
321
+ }
322
+
323
+ .modalBox.shake {
324
+ animation: shake 120ms 2 linear;
325
+ }
326
+
327
+ @keyframes shake {
328
+ 0% { transform: translateX(3px); }
329
+ 50% { transform: translateX(-3px); }
330
+ 100% { transform: translateX(0); }
331
+ }
332
+
333
+ :host([show='false']) { display: none; }
334
+ :host([show='true']) { display: block; }
335
+
336
+ .content {
337
+ margin: auto;
338
+ }
339
+
340
+ .text-container {
341
+ padding: 12px 16px;
342
+ font-size: 0.9em;
343
+ line-height: 1.5;
344
+ color: ${fe.bdTheme(V.light.mutedForeground,V.dark.mutedForeground)};
345
+ }
346
+
347
+ .text-container a {
348
+ color: ${fe.bdTheme(V.light.foreground,V.dark.foreground)};
349
+ text-decoration: underline;
350
+ text-underline-offset: 2px;
351
+ }
352
+
353
+ .text-container a:hover {
354
+ opacity: 0.8;
355
+ }
356
+
357
+ .button-container {
358
+ padding: 12px 16px 16px;
359
+ display: grid;
360
+ grid-template-columns: repeat(3, 1fr);
361
+ gap: 8px;
362
+ }
363
+
364
+ @media (max-width: 560px) {
365
+ .button-container {
366
+ grid-template-columns: 1fr;
367
+ }
368
+ }
369
+
370
+ .consent-button {
371
+ border-radius: 6px;
372
+ background: ${fe.bdTheme(V.light.secondary,V.dark.secondary)};
373
+ border: 1px solid ${fe.bdTheme(V.light.border,V.dark.border)};
374
+ padding: 8px 16px;
375
+ font-size: 0.85em;
376
+ font-weight: 500;
377
+ text-align: center;
378
+ cursor: pointer;
379
+ transition: all 0.15s ease;
380
+ color: ${fe.bdTheme(V.light.secondaryForeground,V.dark.secondaryForeground)};
381
+ }
382
+
383
+ .consent-button:hover {
384
+ background: ${fe.bdTheme(V.light.accent,V.dark.accent)};
385
+ border-color: ${fe.bdTheme(V.light.ring,V.dark.ring)};
386
+ }
387
+
388
+ .consent-button:last-child {
389
+ background: ${fe.bdTheme(V.light.primary,V.dark.primary)};
390
+ color: ${fe.bdTheme(V.light.primaryForeground,V.dark.primaryForeground)};
391
+ border-color: ${fe.bdTheme(V.light.primary,V.dark.primary)};
392
+ }
393
+
394
+ .consent-button:last-child:hover {
395
+ opacity: 0.9;
396
+ }
397
+
398
+ .info-container {
399
+ text-align: center;
400
+ padding: 10px 16px;
401
+ background: ${fe.bdTheme(V.light.muted,V.dark.muted)};
402
+ border-top: 1px solid ${fe.bdTheme(V.light.border,V.dark.border)};
403
+ font-size: 0.75em;
404
+ color: ${fe.bdTheme(V.light.mutedForeground,V.dark.mutedForeground)};
405
+ }
406
+
407
+ .info-container a {
408
+ color: ${fe.bdTheme(V.light.foreground,V.dark.foreground)};
409
+ text-decoration: none;
410
+ }
411
+
412
+ .info-container a:hover {
413
+ text-decoration: underline;
414
+ }
415
+ `];constructor(){super(),this.setAttribute("show","false")}render(){return et`
18
416
  <div class="pageOverlay" @click=${this.pageOverlayClick}>
19
417
  <div class="modalBox">
20
418
  <div class="content">
21
419
  <consentsoftware-header></consentsoftware-header>
22
420
  <consentsoftware-tabs></consentsoftware-tabs>
23
- <div class="text-container" style="padding: 16px;">
421
+ <div class="text-container">
24
422
  <div class="toptext">
25
- This page uses cookies. Please review our
423
+ We use cookies to enhance your experience. Review our
26
424
  <a href="https://lossless.gmbh/cookie" target="_blank">cookie policy</a>
27
- and choose which cookie level you are willing to accept.
425
+ and select your preferences.
28
426
  </div>
29
427
  </div>
30
428
  <consentsoftware-mainselection></consentsoftware-mainselection>
31
429
  <div class="button-container">
32
430
  <div
33
431
  class="consent-button"
34
- @click=${r=>this.handleConsentButtonClick(r,["functional"])}
432
+ @click=${t=>this.handleConsentButtonClick(t,["functional"])}
35
433
  >
36
434
  Deny
37
435
  </div>
38
436
  <div
39
437
  class="consent-button"
40
- @click=${r=>this.handleConsentButtonClick(r,["functional","analytics"])}
438
+ @click=${t=>this.handleConsentButtonClick(t,["functional","analytics"])}
41
439
  >
42
440
  Accept selection
43
441
  </div>
44
442
  <div
45
443
  class="consent-button"
46
- @click=${r=>this.handleConsentButtonClick(r,["functional","analytics","marketing"])}
444
+ @click=${t=>this.handleConsentButtonClick(t,["functional","analytics","marketing"])}
47
445
  >
48
446
  Accept all cookies
49
447
  </div>
@@ -55,212 +453,37 @@ ${n}
55
453
  </div>
56
454
  </div>
57
455
  </div>
58
- `}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?this.setAttribute("show","false"):(this.setAttribute("show","true"),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(20px)");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 handleConsentButtonClick(r,o){console.log(`Set level to ${o}`);let n=this.shadowRoot?.querySelector(".pageOverlay");n&&(n.style.background="rgba(255,255,255, 0)",n.style.backdropFilter="blur(0px)");let i=this.shadowRoot?.querySelector(".modalBox");i&&(i.style.transform="scale(0.95)",i.style.opacity="0"),await this.csWebclientInstance.setCookieLevels(o),await ht(300),this.setAttribute("show","false"),this.updated()}async pageOverlayClick(r){if(r.target===r.currentTarget){let o=this.shadowRoot?.querySelector(".pageOverlay"),n=this.shadowRoot?.querySelector(".modalBox");o&&n&&(o.classList.add("shake"),n.classList.add("shake"),await ht(2e3),o.classList.remove("shake"),n.classList.remove("shake"))}}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=()=>Re`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`,Or.styles=Ze`
59
- :host {
60
- font-family: ${$n};
61
- user-select: none;
62
- /* Default variables for Light Theme */
63
- --text-color: #333;
64
- --background-color: #eeeeee;
65
- --accent-color: #333333;
66
- --button-bg: #ffffff;
67
- --button-hover-bg: #f2f2f2;
68
- --icon-color: #4496f5;
69
- --link-color: #333;
70
- --padding-sides: 16px;
71
- /* Additional variables for modal and info container styling */
72
- --info-bg: rgba(0, 0, 0, 0.1);
73
- --info-text: rgba(255, 255, 255, 0.5);
74
- --modal-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
75
- }
76
-
77
- /* Dark Theme Overrides:
78
- When theme attribute is 'dark', override variables accordingly. */
79
- :host([theme='dark']) {
80
- --text-color: #fff;
81
- --background-color: #111;
82
- --accent-color: #333333;
83
- --button-bg: #252525;
84
- --button-hover-bg: #222222;
85
- --icon-color: #4496f5;
86
- --link-color: #fff;
87
- --info-bg: rgba(0, 0, 0, 0.1);
88
- --info-text: rgba(255, 255, 255, 0.5);
89
- --modal-box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.6);
90
- }
91
-
92
- /* Light Theme Overrides:
93
- Explicit light theme settings, currently matching defaults.
94
- Can be customized independently if desired. */
95
- :host([theme='light']) {
96
- --text-color: #333;
97
- --background-color: #eeeeee;
98
- --accent-color: #333333;
99
- --button-bg: #ffffff;
100
- --button-hover-bg: #f2f2f2;
101
- --icon-color: #4496f5;
102
- --link-color: #333;
103
- --info-bg: rgba(0, 0, 0, 0.1);
104
- --info-text: rgba(0, 0, 0, 0.5);
105
- --modal-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
106
- }
107
-
108
- /* Overlay covering the page behind the modal */
109
- .pageOverlay {
110
- position: fixed;
111
- top: 0;
112
- bottom: 0;
113
- right: 0;
114
- left: 0;
115
- display: grid;
116
- align-items: center;
117
- justify-content: center;
118
- z-index: 1000; /* Ensures the overlay is on top of other elements */
119
- background: rgba(255, 255, 255, 0);
120
- backdrop-filter: blur(0px);
121
- transition: all 0.2s;
122
- }
123
-
124
- /* Shake animation for overlay when clicked */
125
- .pageOverlay.shake {
126
- background: rgba(0, 0, 0, 0.5) !important;
127
- }
128
-
129
- /* Modal box styling using theme variables for colors and shadows */
130
- .modalBox {
131
- display: block;
132
- color: var(--text-color);
133
- background: var(--background-color);
134
- box-shadow: var(--modal-box-shadow);
135
- position: relative;
136
- border: 1px dotted rgba(255, 255, 255, 0.1);
137
- border-top: 1px solid var(--accent-color);
138
- border-radius: 16px;
139
- max-width: 1100px;
140
- min-width: calc(100vw / 3);
141
- box-sizing: border-box;
142
- overflow: hidden;
143
- will-change: transform;
144
- transition: all 0.3s;
145
- transform: scale(0.95);
146
- opacity: 0;
147
- }
148
-
149
- /* Media query for mobile devices: stack buttons vertically */
150
- @media (max-width: 600px) {
151
- .modalBox {
152
- height: 100vh;
153
- box-shadow: none;
154
- border-radius: 0px;
456
+ `}async connectedCallback(){await super.connectedCallback(),await this.csWebclientInstance.getCookieLevels()?this.setAttribute("show","false"):(this.setAttribute("show","true"),requestAnimationFrame(async()=>{await this.updateComplete;let r=this.shadowRoot?.querySelector(".pageOverlay");r&&(r.style.background="rgba(0,0,0, 0.6)",r.style.backdropFilter="blur(4px)");let n=this.shadowRoot?.querySelector(".modalBox");n&&(n.style.transform="scale(1)",n.style.opacity="1")}))}async firstUpdated(){let t=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&t&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async handleConsentButtonClick(t,r){console.log(`Set level to ${r}`);let n=this.shadowRoot?.querySelector(".pageOverlay");n&&(n.style.background="rgba(0,0,0, 0)",n.style.backdropFilter="blur(0px)");let o=this.shadowRoot?.querySelector(".modalBox");o&&(o.style.transform="scale(0.95)",o.style.opacity="0"),await this.csWebclientInstance.setCookieLevels(r),await wn(300),this.setAttribute("show","false"),this.csWebclientRan||(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async pageOverlayClick(t){if(t.target===t.currentTarget){let r=this.shadowRoot?.querySelector(".pageOverlay"),n=this.shadowRoot?.querySelector(".modalBox");r&&n&&(r.classList.add("shake"),n.classList.add("shake"),await wn(2e3),r.classList.remove("shake"),n.classList.remove("shake"))}}};tw=Br(W7),Iu=Yt(tw,0,"ConsentsoftwareCookieconsent",XP,Iu),pt(tw,1,Iu);var ZP,rw,Y7;ZP=[Sr("consentsoftware-header")];var Pu=class extends(Y7=Kt){static demo=()=>et`<consentsoftware-header></consentsoftware-header>`;static styles=[fe.defaultStyles,Je`
457
+ :host {
458
+ display: block;
459
+ padding: 14px 16px;
460
+ border-bottom: 1px solid ${fe.bdTheme(V.light.border,V.dark.border)};
155
461
  }
156
- }
157
462
 
158
- /* Shake animation for modal box */
159
- .modalBox.shake {
160
- animation: shake 150ms 2 linear;
161
- }
162
-
163
- @keyframes shake {
164
- 0% {
165
- transform: translate(3px, 0);
166
- }
167
- 50% {
168
- transform: translate(-3px, 0);
169
- }
170
- 100% {
171
- transform: translate(0, 0);
463
+ .heading {
464
+ display: flex;
465
+ align-items: center;
466
+ gap: 8px;
467
+ font-size: 0.95em;
468
+ font-weight: 600;
469
+ color: ${fe.bdTheme(V.light.foreground,V.dark.foreground)};
172
470
  }
173
- }
174
-
175
- /* Toggle display based on [show] attribute */
176
- :host([show='false']) {
177
- display: none;
178
- }
179
- :host([show='true']) {
180
- display: block;
181
- }
182
-
183
- .content {
184
- margin: auto;
185
- }
186
-
187
- .text-container {
188
- padding-left: var(--padding-sides);
189
- padding-right: var(--padding-sides);
190
- display: grid;
191
- grid-template-columns: auto;
192
- }
193
471
 
194
- .text-container a {
195
- color: var(--link-color);
196
- text-decoration: none;
197
- }
198
-
199
- .button-container {
200
- padding: var(--padding-sides);
201
- display: grid;
202
- grid-template-columns: repeat(3, 1fr);
203
- gap: 16px;
204
- }
205
-
206
- /* Media query for mobile devices: stack buttons vertically */
207
- @media (max-width: 600px) {
208
- .button-container {
209
- grid-template-columns: 1fr;
472
+ .icon {
473
+ width: 18px;
474
+ height: 18px;
475
+ opacity: 0.7;
210
476
  }
211
- }
212
-
213
- /* Consent button styling using theme variables */
214
- .consent-button {
215
- border-radius: 3px;
216
- background: var(--button-bg);
217
- box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
218
- padding: 10px;
219
- line-height: 30px;
220
- text-align: center;
221
- cursor: pointer;
222
- transition: all 0.2s;
223
- }
224
-
225
- .consent-button:hover {
226
- background: var(--button-hover-bg);
227
- }
228
-
229
- /* Use theme variables for info container background and text */
230
- .info-container {
231
- text-align: center;
232
- line-height: 3em;
233
- background: var(--info-bg);
234
- border-top: 1px dotted rgba(255, 255, 255, 0.1);
235
- font-size: 0.8em;
236
- color: var(--info-text);
237
- }
238
-
239
- .info-container a {
240
- text-decoration: underline;
241
- color: var(--link-color);
242
- transition: color 0.2s;
243
- }
244
- .info-container a:hover {
245
- color: #ffffff;
246
- }
247
- `,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 Re`
477
+ `];render(){return et`
248
478
  <div class="heading">
249
- What about cookies?
479
+ <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
480
+ <circle cx="12" cy="12" r="10"/>
481
+ <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
482
+ <path d="M12 17h.01"/>
483
+ </svg>
484
+ Cookie Preferences
250
485
  </div>
251
- `}};go.demo=()=>Re`<consentsoftware-tabs></consentsoftware-tabs>`,go.styles=Ze`
252
- :host {
253
- display: block;
254
- line-height: 3em;
255
- text-align: center;
256
- font-family: ${$n};
257
- border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
258
- }
259
-
260
- .heading {
261
-
262
- }
263
- `,go=Ce([it("consentsoftware-header")],go);var Yt=class extends Me{constructor(){super();this.required=!1;this.selected=!1}render(){return Re`
486
+ `}};rw=Br(Y7),Pu=Yt(rw,0,"ConsentsoftwareHeader",ZP,Pu),pt(rw,1,Pu);var KP,eF,tF,rF,Nn,nw,ow;rF=[Sr("consentsoftware-mainselection")];var Fn=class extends(tF=Kt,eF=[mr({type:Boolean})],KP=[mr({type:Boolean})],tF){constructor(){super(...arguments);Ui(this,nw,pt(Nn,8,this,!1)),pt(Nn,11,this);Ui(this,ow,pt(Nn,12,this,!1)),pt(Nn,15,this)}render(){return et`
264
487
  <div class="maincontainer">
265
488
  <div class="itemBox">
266
489
  <consentsoftware-toggle required>Required</consentsoftware-toggle>
@@ -275,27 +498,51 @@ ${n}
275
498
  <consentsoftware-toggle>Marketing</consentsoftware-toggle>
276
499
  </div>
277
500
  </div>
278
- `}async getResults(r){}};Yt.demo=()=>Re`<consentsoftware-mainselection></consentsoftware-mainselection>`,Yt.styles=Ze`
279
- :host {
280
- display: block;
281
- position: relative;
282
- }
501
+ `}async getResults(){}};Nn=Br(tF),nw=new WeakMap,ow=new WeakMap,Yt(Nn,4,"required",eF,Fn,nw),Yt(Nn,4,"selected",KP,Fn,ow),Fn=Yt(Nn,0,"ConsentsoftwareMainSelection",rF,Fn),Vt(Fn,"demo",()=>et`<consentsoftware-mainselection></consentsoftware-mainselection>`),Vt(Fn,"styles",[fe.defaultStyles,Je`
502
+ :host {
503
+ display: block;
504
+ position: relative;
505
+ }
283
506
 
284
- .maincontainer {
285
- display: grid;
286
- grid-template-columns: repeat(4, 1fr);
287
- }
507
+ .maincontainer {
508
+ display: grid;
509
+ grid-template-columns: repeat(4, 1fr);
510
+ padding: 8px 0;
511
+ }
288
512
 
289
- .itemBox {
290
- padding: 16px;
291
- text-align: center;
292
- border-right: 1px solid;
293
- border-image: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%) 1;
294
- }
295
- .itemBox:last-child {
296
- border-right: none;
297
- }
298
- `,Ce([dt({type:Boolean})],Yt.prototype,"required",2),Ce([dt({type:Boolean})],Yt.prototype,"selected",2),Yt=Ce([it("consentsoftware-mainselection")],Yt);var py,my,Mr=class extends Me{constructor(){super();Xs(this,py,!1);Xs(this,my,!1);this.currentX=0;this.isDragging=!1;this.hasDragged=!1;this.startX=0;this.knobWidth=30;this.trackWidth=60}get required(){return Js(this,py)}set required(r){Zs(this,py,r)}get selected(){return Js(this,my)}set selected(r){Zs(this,my,r)}render(){return Re`
513
+ @media (max-width: 560px) {
514
+ .maincontainer {
515
+ grid-template-columns: repeat(2, 1fr);
516
+ gap: 4px;
517
+ }
518
+ }
519
+
520
+ .itemBox {
521
+ padding: 12px 8px;
522
+ text-align: center;
523
+ border-right: 1px solid ${fe.bdTheme(V.light.border,V.dark.border)};
524
+ }
525
+
526
+ .itemBox:last-child {
527
+ border-right: none;
528
+ }
529
+
530
+ @media (max-width: 560px) {
531
+ .itemBox {
532
+ padding: 10px 8px;
533
+ border-right: none;
534
+ border-bottom: 1px solid ${fe.bdTheme(V.light.border,V.dark.border)};
535
+ }
536
+
537
+ .itemBox:nth-child(odd) {
538
+ border-right: 1px solid ${fe.bdTheme(V.light.border,V.dark.border)};
539
+ }
540
+
541
+ .itemBox:nth-last-child(-n+2) {
542
+ border-bottom: none;
543
+ }
544
+ }
545
+ `]),pt(Nn,1,Fn);var nF,oF,iF,sF,Ln,iw,sw;sF=[Sr("consentsoftware-toggle")];var Mo=class extends(iF=Kt,oF=[mr({type:Boolean})],nF=[mr({type:Boolean,reflect:!0})],iF){constructor(){super(...arguments);Ui(this,iw,pt(Ln,8,this,!1)),pt(Ln,11,this);Ui(this,sw,pt(Ln,12,this,!1)),pt(Ln,15,this);Vt(this,"currentX",0);Vt(this,"isDragging",!1);Vt(this,"hasDragged",!1);Vt(this,"startX",0);Vt(this,"trackWidth",36);Vt(this,"trackHeight",20);Vt(this,"knobSize",14);Vt(this,"padding",2);Vt(this,"maxTravel",16)}render(){return et`
299
546
  <div class="label">${this.getText()}</div>
300
547
  <!-- A user can click anywhere in this toggle area. -->
301
548
  <div class="toggle" @click=${this.handleClick}>
@@ -304,7 +551,7 @@ ${n}
304
551
  <!-- The knob itself, with pointer events for dragging. -->
305
552
  <div
306
553
  class="toggleKnobInner"
307
- style="left: ${this.currentX}px;"
554
+ style="left: ${this.padding+this.currentX}px;"
308
555
  @pointerdown=${this.onPointerDown}
309
556
  @pointermove=${this.onPointerMove}
310
557
  @pointerup=${this.onPointerUp}
@@ -313,115 +560,133 @@ ${n}
313
560
  </div>
314
561
  </div>
315
562
  </div>
316
- `}async firstUpdated(){this.required?(this.selected=!0,this.currentX=this.knobWidth,this.requestUpdate()):(this.currentX=this.selected?this.knobWidth:0,this.requestUpdate())}async handleClick(r){if(this.isDragging||this.hasDragged){r.stopPropagation(),r.preventDefault();return}if(this.required){this.currentX=this.knobWidth,this.requestUpdate(),await new Promise(o=>setTimeout(o,10)),this.currentX=20,this.requestUpdate(),await ht(200),this.currentX=this.knobWidth,this.requestUpdate();return}r.stopPropagation(),r.preventDefault(),this.selected=!this.selected,this.currentX=this.selected?this.knobWidth:0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}})),ht(0).then(()=>{this.hasDragged=!1})}onPointerDown(r){this.required||(this.isDragging=!0,this.startX=r.clientX-this.currentX,r.target.setPointerCapture(r.pointerId))}onPointerMove(r){if(!this.isDragging)return;let o=r.clientX-this.startX;this.hasDragged=!0,this.shadowRoot.querySelector(".toggleKnobInner").classList.add("dragging"),this.currentX=Math.max(0,Math.min(o,this.trackWidth-this.knobWidth)),this.requestUpdate()}onPointerUp(r){if(!this.isDragging||(r.target.releasePointerCapture(r.pointerId),this.isDragging=!1,!this.hasDragged))return;this.shadowRoot.querySelector(".toggleKnobInner").classList.remove("dragging");let n=(this.trackWidth-this.knobWidth)/2;this.selected=this.currentX>n,this.currentX=this.selected?this.knobWidth:0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}})),ht(0).then(()=>{this.hasDragged=!1})}updated(r){r.has("selected")&&!this.isDragging&&!this.hasDragged&&!this.required&&(this.currentX=this.selected?this.knobWidth:0,this.requestUpdate()),super.updated(r)}getText(){return this.textContent}};py=new WeakMap,my=new WeakMap,Mr.styles=Ze`
317
- :host {
318
- display: block;
319
- position: relative;
320
- }
563
+ `}async firstUpdated(r){await super.firstUpdated(r),this.required?(this.selected=!0,this.currentX=this.maxTravel,this.requestUpdate()):(this.currentX=this.selected?this.maxTravel:0,this.requestUpdate())}async handleClick(r){if(this.isDragging||this.hasDragged){r.stopPropagation(),r.preventDefault();return}if(this.required){this.currentX=this.maxTravel,this.requestUpdate(),await new Promise(n=>setTimeout(n,10)),this.currentX=this.maxTravel-3,this.requestUpdate(),await wn(150),this.currentX=this.maxTravel,this.requestUpdate();return}r.stopPropagation(),r.preventDefault(),this.selected=!this.selected,this.currentX=this.selected?this.maxTravel:0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}})),wn(0).then(()=>{this.hasDragged=!1})}onPointerDown(r){this.required||(this.isDragging=!0,this.startX=r.clientX-this.currentX,r.target.setPointerCapture(r.pointerId))}onPointerMove(r){if(!this.isDragging)return;let n=r.clientX-this.startX;this.hasDragged=!0,this.shadowRoot.querySelector(".toggleKnobInner").classList.add("dragging"),this.currentX=Math.max(0,Math.min(n,this.maxTravel)),this.requestUpdate()}onPointerUp(r){if(!this.isDragging||(r.target.releasePointerCapture(r.pointerId),this.isDragging=!1,!this.hasDragged))return;this.shadowRoot.querySelector(".toggleKnobInner").classList.remove("dragging");let o=this.maxTravel/2;this.selected=this.currentX>o,this.currentX=this.selected?this.maxTravel:0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}})),wn(0).then(()=>{this.hasDragged=!1})}updated(r){r.has("selected")&&!this.isDragging&&!this.hasDragged&&!this.required&&(this.currentX=this.selected?this.maxTravel:0,this.requestUpdate()),super.updated(r)}getText(){return this.textContent}};Ln=Br(iF),iw=new WeakMap,sw=new WeakMap,Yt(Ln,4,"required",oF,Mo,iw),Yt(Ln,4,"selected",nF,Mo,sw),Mo=Yt(Ln,0,"ConsentsoftwareToggle",sF,Mo),Vt(Mo,"styles",[fe.defaultStyles,Je`
564
+ :host {
565
+ display: block;
566
+ position: relative;
567
+ }
321
568
 
322
- .label {
323
- margin-bottom: 16px;
324
- }
569
+ .label {
570
+ margin-bottom: 8px;
571
+ font-size: 0.8em;
572
+ font-weight: 500;
573
+ color: ${fe.bdTheme(V.light.mutedForeground,V.dark.mutedForeground)};
574
+ }
325
575
 
326
- .toggle {
327
- user-select: none; /* helps avoid text selection on drag */
328
- }
576
+ .toggle {
577
+ user-select: none;
578
+ }
329
579
 
330
- .toggleKnobArea {
331
- position: relative;
332
- margin: auto;
333
- height: 30px;
334
- width: 60px;
335
- border-radius: 20px;
336
- background: rgba(255, 255, 255, 0.1);
337
- border: 1px solid rgba(255, 255, 255, 0);
338
- overflow: hidden;
339
- transition: background 0.2s ease;
340
- cursor: pointer;
341
- }
580
+ .toggleKnobArea {
581
+ position: relative;
582
+ margin: auto;
583
+ height: 20px;
584
+ width: 36px;
585
+ border-radius: 10px;
586
+ background: ${fe.bdTheme(V.light.input,V.dark.input)};
587
+ border: 1px solid ${fe.bdTheme(V.light.border,V.dark.border)};
588
+ overflow: hidden;
589
+ transition: all 0.15s ease;
590
+ cursor: pointer;
591
+ }
342
592
 
343
- :host([selected]) .toggleKnobArea {
344
- background: green;
345
- }
593
+ .toggleKnobArea:hover {
594
+ border-color: ${fe.bdTheme(V.light.ring,V.dark.ring)};
595
+ }
346
596
 
347
- .toggleKnobMover {
348
- position: relative;
349
- height: 100%;
350
- width: 100%;
351
- }
597
+ :host([selected]) .toggleKnobArea {
598
+ background: ${fe.bdTheme(V.light.primary,V.dark.primary)};
599
+ border-color: ${fe.bdTheme(V.light.primary,V.dark.primary)};
600
+ }
352
601
 
353
- .toggleKnobInner {
354
- position: absolute;
355
- top: 0;
356
- left: 0;
357
- width: 30px;
358
- height: 30px;
359
- border-radius: 15px;
360
- background: rgba(255, 255, 255, 0.5);
361
- transition: left 0.2s ease, background 0.2s ease;
362
- transform: scale(0.7);
363
- /* Prevent scroll gestures on mobile */
364
- touch-action: none;
365
- }
602
+ .toggleKnobMover {
603
+ position: relative;
604
+ height: 100%;
605
+ width: 100%;
606
+ }
366
607
 
367
- .toggleKnobInner.dragging {
368
- transition: background 0.2s ease;
369
- }
608
+ .toggleKnobInner {
609
+ position: absolute;
610
+ top: 2px;
611
+ width: 14px;
612
+ height: 14px;
613
+ border-radius: 7px;
614
+ background: ${fe.bdTheme(V.light.mutedForeground,V.dark.mutedForeground)};
615
+ transition: left 0.15s ease, background 0.15s ease;
616
+ touch-action: none;
617
+ }
370
618
 
371
- :host([selected]) .toggleKnobInner {
372
- background: white;
373
- }
619
+ .toggleKnobInner.dragging {
620
+ transition: background 0.15s ease;
621
+ }
374
622
 
375
- :host([required]) .toggleKnobArea {
376
- background: none;
377
- border: 1px solid rgba(255, 255, 255, 0.1);
378
- }
623
+ :host([selected]) .toggleKnobInner {
624
+ background: ${fe.bdTheme(V.light.primaryForeground,V.dark.primaryForeground)};
625
+ }
379
626
 
380
- :host([required]) .toggleKnobInner {
381
- background: rgba(255, 255, 255, 0.1);
382
- }
383
- `,Ce([dt({type:Boolean})],Mr.prototype,"required",1),Ce([dt({type:Boolean,reflect:!0})],Mr.prototype,"selected",1),Mr=Ce([it("consentsoftware-toggle")],Mr);var bo=class extends Me{constructor(){super()}render(){return Re`
384
- <div class="tabs">
385
- <div class="tab" @click=${this.handleClick}>Consent</div>
386
- <div class="tab" @click=${this.handleClick}>Details</div>
387
- <div class="tab" @click=${this.handleClick}>Cookie Policy</div>
388
- </div>
389
- <div class="selector"></div>
390
- `}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=()=>Re`<consentsoftware-tabs></consentsoftware-tabs>`,bo.styles=Ze`
391
- :host {
392
- display: block;
393
- position: relative;
394
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
395
- }
627
+ :host([required]) .toggleKnobArea {
628
+ cursor: not-allowed;
629
+ }
396
630
 
397
- .tabs {
398
- display: grid;
399
- grid-template-columns: repeat(3, 1fr);
400
- }
631
+ :host([required][selected]) .toggleKnobArea {
632
+ background: ${fe.bdTheme(V.light.ring,V.dark.ring)};
633
+ border-color: ${fe.bdTheme(V.light.ring,V.dark.ring)};
634
+ }
401
635
 
402
- .tabs .tab {
403
- text-align: center;
404
- line-height: 3em;
405
- cursor: pointer;
406
- }
636
+ :host([required][selected]) .toggleKnobInner {
637
+ background: ${fe.bdTheme(V.light.muted,V.dark.muted)};
638
+ }
639
+ `]),pt(Ln,1,Mo);var aF,aw,V7;aF=[Sr("consentsoftware-tabs")];var Fu=class extends(V7=Kt){static demo=()=>et`<consentsoftware-tabs></consentsoftware-tabs>`;static styles=[fe.defaultStyles,Je`
640
+ :host {
641
+ display: block;
642
+ position: relative;
643
+ background: ${fe.bdTheme(V.light.muted,V.dark.muted)};
644
+ }
645
+
646
+ .tabs {
647
+ display: grid;
648
+ grid-template-columns: repeat(3, 1fr);
649
+ }
407
650
 
408
- /* Media query for mobile devices: stack buttons vertically */
409
- @media (max-width: 600px) {
410
651
  .tabs .tab {
652
+ text-align: center;
653
+ padding: 8px 0;
411
654
  font-size: 0.8em;
655
+ font-weight: 500;
656
+ color: ${fe.bdTheme(V.light.mutedForeground,V.dark.mutedForeground)};
657
+ cursor: pointer;
658
+ transition: color 0.15s ease;
412
659
  }
413
- }
414
660
 
415
- .selector {
416
- position: absolute;
417
- width: calc(100% / 3);
418
- height: 1px;
419
- left: 0;
420
- bottom: 0px;
421
- background: orange;
422
- transition: all 0.2s;
423
- }
424
- `,bo=Ce([it("consentsoftware-tabs")],bo);export{Or as ConsentsoftwareCookieconsent,go as ConsentsoftwareHeader,Yt as ConsentsoftwareMainSelection,bo as ConsentsoftwareTabs,Mr as ConsentsoftwareToggle};
661
+ .tabs .tab:hover {
662
+ color: ${fe.bdTheme(V.light.foreground,V.dark.foreground)};
663
+ }
664
+
665
+ @media (max-width: 560px) {
666
+ .tabs .tab {
667
+ font-size: 0.75em;
668
+ padding: 6px 0;
669
+ }
670
+ }
671
+
672
+ .selector {
673
+ position: absolute;
674
+ width: calc(100% / 3);
675
+ height: 2px;
676
+ left: 0;
677
+ bottom: 0;
678
+ background: ${fe.bdTheme(V.light.foreground,V.dark.foreground)};
679
+ transition: all 0.2s ease-out;
680
+ border-radius: 1px;
681
+ }
682
+ `];render(){return et`
683
+ <div class="tabs">
684
+ <div class="tab" @click=${this.handleClick}>Consent</div>
685
+ <div class="tab" @click=${this.handleClick}>Details</div>
686
+ <div class="tab" @click=${this.handleClick}>Cookie Policy</div>
687
+ </div>
688
+ <div class="selector"></div>
689
+ `}async handleClick(t){let n=t.target.closest(".tab");if(n){let o=this.shadowRoot?.querySelector(".selector");o&&(o.style.left=`${n.offsetLeft}px`,o.style.width=`${n.offsetWidth}px`)}}};aw=Br(V7),Fu=Yt(aw,0,"ConsentsoftwareTabs",aF,Fu),pt(aw,1,Fu);export{Iu as ConsentsoftwareCookieconsent,Pu as ConsentsoftwareHeader,Fn as ConsentsoftwareMainSelection,Fu as ConsentsoftwareTabs,Mo as ConsentsoftwareToggle};
425
690
  /*! Bundled license information:
426
691
 
427
692
  punycode/punycode.js:
@@ -443,6 +708,23 @@ randomatic/index.js:
443
708
  * Released under the MIT License.
444
709
  *)
445
710
 
711
+ sweet-scroll/sweet-scroll.js:
712
+ (*! @preserve sweet-scroll v4.0.0 - tsuyoshiwada | MIT License *)
713
+ (*! *****************************************************************************
714
+ Copyright (c) Microsoft Corporation. All rights reserved.
715
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
716
+ this file except in compliance with the License. You may obtain a copy of the
717
+ License at http://www.apache.org/licenses/LICENSE-2.0
718
+
719
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
720
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
721
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
722
+ MERCHANTABLITY OR NON-INFRINGEMENT.
723
+
724
+ See the Apache Version 2.0 License for specific language governing permissions
725
+ and limitations under the License.
726
+ ***************************************************************************** *)
727
+
446
728
  @lit/reactive-element/css-tag.js:
447
729
  (**
448
730
  * @license
@@ -451,101 +733,50 @@ randomatic/index.js:
451
733
  *)
452
734
 
453
735
  @lit/reactive-element/reactive-element.js:
454
- (**
455
- * @license
456
- * Copyright 2017 Google LLC
457
- * SPDX-License-Identifier: BSD-3-Clause
458
- *)
459
-
460
736
  lit-html/lit-html.js:
461
- (**
462
- * @license
463
- * Copyright 2017 Google LLC
464
- * SPDX-License-Identifier: BSD-3-Clause
465
- *)
466
-
467
737
  lit-element/lit-element.js:
468
- (**
469
- * @license
470
- * Copyright 2017 Google LLC
471
- * SPDX-License-Identifier: BSD-3-Clause
472
- *)
473
-
474
- lit-html/is-server.js:
475
- (**
476
- * @license
477
- * Copyright 2022 Google LLC
478
- * SPDX-License-Identifier: BSD-3-Clause
479
- *)
480
-
481
- @lit/reactive-element/decorators/custom-element.js:
482
- (**
483
- * @license
484
- * Copyright 2017 Google LLC
485
- * SPDX-License-Identifier: BSD-3-Clause
486
- *)
487
-
488
738
  @lit/reactive-element/decorators/property.js:
489
- (**
490
- * @license
491
- * Copyright 2017 Google LLC
492
- * SPDX-License-Identifier: BSD-3-Clause
493
- *)
494
-
739
+ lit-html/directive.js:
740
+ lit-html/directives/unsafe-html.js:
741
+ @lit/reactive-element/decorators/custom-element.js:
495
742
  @lit/reactive-element/decorators/state.js:
496
- (**
497
- * @license
498
- * Copyright 2017 Google LLC
499
- * SPDX-License-Identifier: BSD-3-Clause
500
- *)
501
-
502
743
  @lit/reactive-element/decorators/event-options.js:
503
- (**
504
- * @license
505
- * Copyright 2017 Google LLC
506
- * SPDX-License-Identifier: BSD-3-Clause
507
- *)
508
-
509
744
  @lit/reactive-element/decorators/base.js:
510
- (**
511
- * @license
512
- * Copyright 2017 Google LLC
513
- * SPDX-License-Identifier: BSD-3-Clause
514
- *)
515
-
516
745
  @lit/reactive-element/decorators/query.js:
746
+ @lit/reactive-element/decorators/query-all.js:
747
+ @lit/reactive-element/decorators/query-async.js:
748
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
749
+ lit-html/async-directive.js:
750
+ lit-html/directives/until.js:
751
+ lit-html/directives/async-replace.js:
752
+ lit-html/directives/async-append.js:
517
753
  (**
518
754
  * @license
519
755
  * Copyright 2017 Google LLC
520
756
  * SPDX-License-Identifier: BSD-3-Clause
521
757
  *)
522
758
 
523
- @lit/reactive-element/decorators/query-all.js:
759
+ lit-html/is-server.js:
524
760
  (**
525
761
  * @license
526
- * Copyright 2017 Google LLC
762
+ * Copyright 2022 Google LLC
527
763
  * SPDX-License-Identifier: BSD-3-Clause
528
764
  *)
529
765
 
530
- @lit/reactive-element/decorators/query-async.js:
766
+ lit-html/static.js:
767
+ lit-html/directive-helpers.js:
531
768
  (**
532
769
  * @license
533
- * Copyright 2017 Google LLC
770
+ * Copyright 2020 Google LLC
534
771
  * SPDX-License-Identifier: BSD-3-Clause
535
772
  *)
536
773
 
537
774
  @lit/reactive-element/decorators/query-assigned-elements.js:
775
+ lit-html/directives/private-async-helpers.js:
538
776
  (**
539
777
  * @license
540
778
  * Copyright 2021 Google LLC
541
779
  * SPDX-License-Identifier: BSD-3-Clause
542
780
  *)
543
-
544
- @lit/reactive-element/decorators/query-assigned-nodes.js:
545
- (**
546
- * @license
547
- * Copyright 2017 Google LLC
548
- * SPDX-License-Identifier: BSD-3-Clause
549
- *)
550
781
  */
551
782
  //# sourceMappingURL=bundle.js.map