@consent.software/catalog 1.6.1 → 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.
- package/dist_bundle/bundle.js +626 -329
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/consentsoftware-cookieconsent.d.ts +4 -20
- package/dist_ts_web/elements/consentsoftware-cookieconsent.js +143 -222
- package/dist_ts_web/elements/consentsoftware-header.d.ts +3 -4
- package/dist_ts_web/elements/consentsoftware-header.js +35 -23
- package/dist_ts_web/elements/consentsoftware-mainselection.d.ts +4 -5
- package/dist_ts_web/elements/consentsoftware-mainselection.js +54 -28
- package/dist_ts_web/elements/consentsoftware-tabs.d.ts +4 -5
- package/dist_ts_web/elements/consentsoftware-tabs.js +44 -36
- package/dist_ts_web/elements/consentsoftware-toggle.d.ts +11 -9
- package/dist_ts_web/elements/consentsoftware-toggle.js +103 -94
- package/dist_ts_web/elements/shared.d.ts +35 -1
- package/dist_ts_web/elements/shared.js +36 -2
- package/dist_ts_web/pages/page1.d.ts +1 -1
- package/dist_ts_web/pages/page1.js +2 -2
- package/dist_watch/bundle.js +447 -413
- package/dist_watch/bundle.js.map +3 -3
- package/package.json +3 -3
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/consentsoftware-cookieconsent.ts +150 -218
- package/ts_web/elements/consentsoftware-header.ts +40 -23
- package/ts_web/elements/consentsoftware-mainselection.ts +60 -30
- package/ts_web/elements/consentsoftware-tabs.ts +51 -37
- package/ts_web/elements/consentsoftware-toggle.ts +123 -107
- package/ts_web/elements/shared.ts +38 -2
- package/ts_web/pages/page1.ts +1 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -1,49 +1,447 @@
|
|
|
1
|
-
var wl=Object.create;var Gr=Object.defineProperty;var Sl=Object.getOwnPropertyDescriptor;var X0=Object.getOwnPropertyNames;var Z0=Object.getPrototypeOf,eb=Object.prototype.hasOwnProperty;var Dl=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Kr=t=>{throw TypeError(t)};var Tl=(t,e,r)=>e in t?Gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var gl=(t,e)=>Gr(t,"name",{value:e,configurable:!0});var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oe=(t,e)=>{for(var r in e)Gr(t,r,{get:e[r],enumerable:!0})},tb=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of X0(e))!eb.call(t,n)&&n!==r&&Gr(t,n,{get:()=>e[n],enumerable:!(o=Sl(e,n))||o.enumerable});return t};var lt=(t,e,r)=>(r=t!=null?wl(Z0(t)):{},tb(e||!t||!t.__esModule?Gr(r,"default",{value:t,enumerable:!0}):r,t));var pt=t=>[,,,wl(t?.[Dl("metadata")]??null)],Ol=["class","method","getter","setter","accessor","field","value","get","set"],rn=t=>t!==void 0&&typeof t!="function"?Kr("Function expected"):t,rb=(t,e,r,o,n)=>({kind:Ol[t],name:e,metadata:o,addInitializer:i=>r._?Kr("Already initialized"):n.push(rn(i||null))}),ob=(t,e)=>Tl(e,Dl("metadata"),t[3]),fe=(t,e,r,o)=>{for(var n=0,i=t[e>>1],s=i&&i.length;n<s;n++)e&1?i[n].call(r):o=i[n].call(r,o);return o},Ue=(t,e,r,o,n,i)=>{var s,a,u,c,f,p=e&7,m=!!(e&8),d=!!(e&16),h=p>3?t.length+1:p?m?1:2:0,b=Ol[p+5],x=p>3&&(t[h-1]=[]),O=t[h]||(t[h]=[]),v=p&&(!d&&!m&&(n=n.prototype),p<5&&(p>3||!d)&&Sl(p<4?n:{get[r](){return bl(this,i)},set[r](N){return vl(this,i,N)}},r));p?d&&p<4&&gl(i,(p>2?"set ":p>1?"get ":"")+r):gl(n,r);for(var D=o.length-1;D>=0;D--)c=rb(p,r,u={},t[3],O),p&&(c.static=m,c.private=d,f=c.access={has:d?N=>nb(n,N):N=>r in N},p^3&&(f.get=d?N=>(p^1?bl:ib)(N,n,p^4?i:v.get):N=>N[r]),p>2&&(f.set=d?(N,H)=>vl(N,n,H,p^4?i:v.set):(N,H)=>N[r]=H)),a=(0,o[D])(p?p<4?d?i:v[b]:p>4?void 0:{get:v.get,set:v.set}:n,c),u._=1,p^4||a===void 0?rn(a)&&(p>4?x.unshift(a):p?d?i=a:v[b]=a:n=a):typeof a!="object"||a===null?Kr("Object expected"):(rn(s=a.get)&&(v.get=s),rn(s=a.set)&&(v.set=s),rn(s=a.init)&&x.unshift(s));return p||ob(t,n),v&&Gr(n,r,v),d?p^4?i:v:n},ke=(t,e,r)=>Tl(t,typeof e!="symbol"?e+"":e,r),Iu=(t,e,r)=>e.has(t)||Kr("Cannot "+r),nb=(t,e)=>Object(e)!==e?Kr('Cannot use the "in" operator on this value'):t.has(e),bl=(t,e,r)=>(Iu(t,e,"read from private field"),r?r.call(t):e.get(t)),Yt=(t,e,r)=>e.has(t)?Kr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),vl=(t,e,r,o)=>(Iu(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r),ib=(t,e,r)=>(Iu(t,e,"access private method"),r);var Bu=A(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0}),_i.uni=void 0;var kb=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;_i.uni=kb});var gh=A((vc,wc)=>{(function(t,e){typeof vc=="object"&&typeof wc<"u"?wc.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(vc,(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",p="year",m="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={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 S=["th","st","nd","rd"],w=P%100;return"["+P+(S[(w-20)%10]||S[w]||S[0])+"]"}},O=function(P,S,w){var _=String(P);return!_||_.length>=S?P:""+Array(S+1-_.length).join(w)+P},v={s:O,z:function(P){var S=-P.utcOffset(),w=Math.abs(S),_=Math.floor(w/60),T=w%60;return(S<=0?"+":"-")+O(_,2,"0")+":"+O(T,2,"0")},m:function P(S,w){if(S.date()<w.date())return-P(w,S);var _=12*(w.year()-S.year())+(w.month()-S.month()),T=S.clone().add(_,c),$=w-T<0,g=S.clone().add(_+($?-1:1),c);return+(-(_+(w-T)/($?T-g:g-T))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:p,w:u,d:a,D:m,h:s,m:i,s:n,ms:o,Q:f}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},D="en",N={};N[D]=x;var H="$isDayjsObject",G=function(P){return P instanceof se||!(!P||!P[H])},xe=function P(S,w,_){var T;if(!S)return D;if(typeof S=="string"){var $=S.toLowerCase();N[$]&&(T=$),w&&(N[$]=w,T=$);var g=S.split("-");if(!T&&g.length>1)return P(g[0])}else{var M=S.name;N[M]=S,T=M}return!_&&T&&(D=T),T||!_&&D},j=function(P,S){if(G(P))return P.clone();var w=typeof S=="object"?S:{};return w.date=P,w.args=arguments,new se(w)},F=v;F.l=xe,F.i=G,F.w=function(P,S){return j(P,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var se=(function(){function P(w){this.$L=xe(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[H]=!0}var S=P.prototype;return S.parse=function(w){this.$d=(function(_){var T=_.date,$=_.utc;if(T===null)return new Date(NaN);if(F.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var g=T.match(h);if(g){var M=g[2]-1||0,k=(g[7]||"0").substring(0,3);return $?new Date(Date.UTC(g[1],M,g[3]||1,g[4]||0,g[5]||0,g[6]||0,k)):new Date(g[1],M,g[3]||1,g[4]||0,g[5]||0,g[6]||0,k)}}return new Date(T)})(w),this.init()},S.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},S.$utils=function(){return F},S.isValid=function(){return this.$d.toString()!==d},S.isSame=function(w,_){var T=j(w);return this.startOf(_)<=T&&T<=this.endOf(_)},S.isAfter=function(w,_){return j(w)<this.startOf(_)},S.isBefore=function(w,_){return this.endOf(_)<j(w)},S.$g=function(w,_,T){return F.u(w)?this[_]:this.set(T,w)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(w,_){var T=this,$=!!F.u(_)||_,g=F.p(w),M=function(ge,ie){var re=F.w(T.$u?Date.UTC(T.$y,ie,ge):new Date(T.$y,ie,ge),T);return $?re:re.endOf(a)},k=function(ge,ie){return F.w(T.toDate()[ge].apply(T.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(ie)),T)},R=this.$W,B=this.$M,X=this.$D,ne="set"+(this.$u?"UTC":"");switch(g){case p:return $?M(1,0):M(31,11);case c:return $?M(1,B):M(0,B+1);case u:var ce=this.$locale().weekStart||0,Te=(R<ce?R+7:R)-ce;return M($?X-Te:X+(6-Te),B);case a:case m: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()}},S.endOf=function(w){return this.startOf(w,!1)},S.$set=function(w,_){var T,$=F.p(w),g="set"+(this.$u?"UTC":""),M=(T={},T[a]=g+"Date",T[m]=g+"Date",T[c]=g+"Month",T[p]=g+"FullYear",T[s]=g+"Hours",T[i]=g+"Minutes",T[n]=g+"Seconds",T[o]=g+"Milliseconds",T)[$],k=$===a?this.$D+(_-this.$W):_;if($===c||$===p){var R=this.clone().set(m,1);R.$d[M](k),R.init(),this.$d=R.set(m,Math.min(this.$D,R.daysInMonth())).$d}else M&&this.$d[M](k);return this.init(),this},S.set=function(w,_){return this.clone().$set(w,_)},S.get=function(w){return this[F.p(w)]()},S.add=function(w,_){var T,$=this;w=Number(w);var g=F.p(_),M=function(B){var X=j($);return F.w(X.date(X.date()+Math.round(B*w)),$)};if(g===c)return this.set(c,this.$M+w);if(g===p)return this.set(p,this.$y+w);if(g===a)return M(1);if(g===u)return M(7);var k=(T={},T[i]=e,T[s]=r,T[n]=t,T)[g]||1,R=this.$d.getTime()+w*k;return F.w(R,this)},S.subtract=function(w,_){return this.add(-1*w,_)},S.format=function(w){var _=this,T=this.$locale();if(!this.isValid())return T.invalidDate||d;var $=w||"YYYY-MM-DDTHH:mm:ssZ",g=F.z(this),M=this.$H,k=this.$m,R=this.$M,B=T.weekdays,X=T.months,ne=T.meridiem,ce=function(ie,re,be,Ie){return ie&&(ie[re]||ie(_,$))||be[re].slice(0,Ie)},Te=function(ie){return F.s(M%12||12,ie,"0")},ge=ne||function(ie,re,be){var Ie=ie<12?"AM":"PM";return be?Ie.toLowerCase():Ie};return $.replace(b,(function(ie,re){return re||(function(be){switch(be){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return R+1;case"MM":return F.s(R+1,2,"0");case"MMM":return ce(T.monthsShort,R,X,3);case"MMMM":return ce(X,R);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return ce(T.weekdaysMin,_.$W,B,2);case"ddd":return ce(T.weekdaysShort,_.$W,B,3);case"dddd":return B[_.$W];case"H":return String(M);case"HH":return F.s(M,2,"0");case"h":return Te(1);case"hh":return Te(2);case"a":return ge(M,k,!0);case"A":return ge(M,k,!1);case"m":return String(k);case"mm":return F.s(k,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return g}return null})(ie)||g.replace(":","")}))},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(w,_,T){var $,g=this,M=F.p(_),k=j(w),R=(k.utcOffset()-this.utcOffset())*e,B=this-k,X=function(){return F.m(g,k)};switch(M){case p:$=X()/12;break;case c:$=X();break;case f:$=X()/3;break;case u:$=(B-R)/6048e5;break;case a:$=(B-R)/864e5;break;case s:$=B/r;break;case i:$=B/e;break;case n:$=B/t;break;default:$=B}return T?$:F.a($)},S.daysInMonth=function(){return this.endOf(c).$D},S.$locale=function(){return N[this.$L]},S.locale=function(w,_){if(!w)return this.$L;var T=this.clone(),$=xe(w,_,!0);return $&&(T.$L=$),T},S.clone=function(){return F.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},P})(),ze=se.prototype;return j.prototype=ze,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",a],["$M",c],["$y",p],["$D",m]].forEach((function(P){ze[P[1]]=function(S){return this.$g(S,P[0],P[1])}})),j.extend=function(P,S){return P.$i||(P(S,se,j),P.$i=!0),j},j.locale=xe,j.isDayjs=G,j.unix=function(P){return j(1e3*P)},j.en=N[D],j.Ls=N,j.p={},j}))});var bh=A((Sc,Dc)=>{(function(t,e){typeof Sc=="object"&&typeof Dc<"u"?Dc.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Sc,(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 Th=A((wie,Dh)=>{"use strict";Dh.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 Mh=A((Sie,Oh)=>{"use strict";Oh.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var kh=A((Die,Ih)=>{"use strict";var _h=Symbol(),Eh=Symbol(),sr=Symbol(),Ah=Symbol(),ft=class{constructor(e,r,o,n){this[_h]=e,this[Eh]=r,this[sr]=o,this[Ah]=n}next(){let e=this[_h],r=this[Ah],o=this[Eh];if(!this[sr])return{done:!0,value:o};let n=this[sr];return r===1?this[sr]=e._node(n).previousSibling:r===2?this[sr]=e._node(n).nextSibling:r===3?this[sr]=e._node(n).parent:r===4?this[sr]=e.preceding(n,{root:o}):this[sr]=e.following(n,{root:o}),{done:!1,value:n}}};Object.defineProperty(ft.prototype,Symbol.iterator,{value:function(){return this},writable:!1}),ft.PREV=1,ft.NEXT=2,ft.PARENT=3,ft.PRECEDING=4,ft.FOLLOWING=5,Object.freeze(ft),Object.freeze(ft.prototype),Ih.exports=ft});var Ch=A((Tie,Ph)=>{"use strict";var GD=Th(),ar=Mh(),it=kh();function Pc(){return!0}function Co(t,e){return t[t.length-1-e]}var Ba=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 GD)}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||Pc,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||Pc,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||Pc,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 it(this,e,o?n.lastChild:n.firstChild,o?it.PREV:it.NEXT)}previousSiblingsIterator(e){return new it(this,e,this._node(e).previousSibling,it.PREV)}nextSiblingsIterator(e){return new it(this,e,this._node(e).nextSibling,it.NEXT)}ancestorsIterator(e){return new it(this,e,e,it.PARENT)}treeIterator(e,r){let o=r&&r.reverse;return new it(this,e,o?this.lastInclusiveDescendant(e):e,o?it.PRECEDING:it.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 ar.CONTAINS|ar.PRECEDING;o.push(f),f=this.parent(f)}}let n=[];{let f=r;for(;f;){if(f===e)return ar.CONTAINED_BY|ar.FOLLOWING;n.push(f),f=this.parent(f)}}let i=Co(o,0);if(!i||i!==Co(n,0))return ar.DISCONNECTED;let s=0,a=Math.min(o.length,n.length);for(let f=0;f<a;++f){let p=Co(o,f),m=Co(n,f);if(p!==m)break;s=f}let u=this.index(Co(o,s+1));return this.index(Co(n,s+1))<u?ar.PRECEDING:ar.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}};Ph.exports=Ba,Ba.TreePosition=ar});var Hh=A((Fo,$o)=>{(function(t){var e=typeof Fo=="object"&&Fo&&!Fo.nodeType&&Fo,r=typeof $o=="object"&&$o&&!$o.nodeType&&$o,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,p=72,m=128,d="-",h=/^xn--/,b=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=s-a,D=Math.floor,N=String.fromCharCode,H;function G(g){throw new RangeError(O[g])}function xe(g,M){for(var k=g.length,R=[];k--;)R[k]=M(g[k]);return R}function j(g,M){var k=g.split("@"),R="";k.length>1&&(R=k[0]+"@",g=k[1]),g=g.replace(x,".");var B=g.split("."),X=xe(B,M).join(".");return R+X}function F(g){for(var M=[],k=0,R=g.length,B,X;k<R;)B=g.charCodeAt(k++),B>=55296&&B<=56319&&k<R?(X=g.charCodeAt(k++),(X&64512)==56320?M.push(((B&1023)<<10)+(X&1023)+65536):(M.push(B),k--)):M.push(B);return M}function se(g){return xe(g,function(M){var k="";return M>65535&&(M-=65536,k+=N(M>>>10&1023|55296),M=56320|M&1023),k+=N(M),k}).join("")}function ze(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:s}function P(g,M){return g+22+75*(g<26)-((M!=0)<<5)}function S(g,M,k){var R=0;for(g=k?D(g/f):g>>1,g+=D(g/M);g>v*u>>1;R+=s)g=D(g/v);return D(R+(v+1)*g/(g+c))}function w(g){var M=[],k=g.length,R,B=0,X=m,ne=p,ce,Te,ge,ie,re,be,Ie,qt,gr;for(ce=g.lastIndexOf(d),ce<0&&(ce=0),Te=0;Te<ce;++Te)g.charCodeAt(Te)>=128&&G("not-basic"),M.push(g.charCodeAt(Te));for(ge=ce>0?ce+1:0;ge<k;){for(ie=B,re=1,be=s;ge>=k&&G("invalid-input"),Ie=ze(g.charCodeAt(ge++)),(Ie>=s||Ie>D((i-B)/re))&&G("overflow"),B+=Ie*re,qt=be<=ne?a:be>=ne+u?u:be-ne,!(Ie<qt);be+=s)gr=s-qt,re>D(i/gr)&&G("overflow"),re*=gr;R=M.length+1,ne=S(B-ie,R,ie==0),D(B/R)>i-X&&G("overflow"),X+=D(B/R),B%=R,M.splice(B++,0,X)}return se(M)}function _(g){var M,k,R,B,X,ne,ce,Te,ge,ie,re,be=[],Ie,qt,gr,Au;for(g=F(g),Ie=g.length,M=m,k=0,X=p,ne=0;ne<Ie;++ne)re=g[ne],re<128&&be.push(N(re));for(R=B=be.length,B&&be.push(d);R<Ie;){for(ce=i,ne=0;ne<Ie;++ne)re=g[ne],re>=M&&re<ce&&(ce=re);for(qt=R+1,ce-M>D((i-k)/qt)&&G("overflow"),k+=(ce-M)*qt,M=ce,ne=0;ne<Ie;++ne)if(re=g[ne],re<M&&++k>i&&G("overflow"),re==M){for(Te=k,ge=s;ie=ge<=X?a:ge>=X+u?u:ge-X,!(Te<ie);ge+=s)Au=Te-ie,gr=s-ie,be.push(N(P(ie+Au%gr,0))),Te=D(Au/gr);be.push(N(P(Te,0))),X=S(k,qt,R==B),k=0,++R}++k,++M}return be.join("")}function T(g){return j(g,function(M){return h.test(M)?w(M.slice(4).toLowerCase()):M})}function $(g){return j(g,function(M){return b.test(M)?"xn--"+_(M):M})}if(n={version:"1.4.1",ucs2:{decode:F,encode:se},decode:w,encode:_,toASCII:$,toUnicode:T},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return n});else if(e&&r)if($o.exports==e)r.exports=n;else for(H in n)n.hasOwnProperty(H)&&(e[H]=n[H]);else t.punycode=n})(Fo)});var Lr=A((Sse,jh)=>{"use strict";jh.exports=TypeError});var zh=A(()=>{});var Gn=A((Ose,py)=>{var qc=typeof Map=="function"&&Map.prototype,Yc=Object.getOwnPropertyDescriptor&&qc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,qa=qc&&Yc&&typeof Yc.get=="function"?Yc.get:null,Vh=qc&&Map.prototype.forEach,Hc=typeof Set=="function"&&Set.prototype,jc=Object.getOwnPropertyDescriptor&&Hc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ya=Hc&&jc&&typeof jc.get=="function"?jc.get:null,Gh=Hc&&Set.prototype.forEach,T1=typeof WeakMap=="function"&&WeakMap.prototype,jn=T1?WeakMap.prototype.has:null,O1=typeof WeakSet=="function"&&WeakSet.prototype,zn=O1?WeakSet.prototype.has:null,M1=typeof WeakRef=="function"&&WeakRef.prototype,Kh=M1?WeakRef.prototype.deref:null,_1=Boolean.prototype.valueOf,E1=Object.prototype.toString,A1=Function.prototype.toString,I1=String.prototype.match,zc=String.prototype.slice,lr=String.prototype.replace,k1=String.prototype.toUpperCase,Qh=String.prototype.toLowerCase,Jh=RegExp.prototype.test,Xh=Array.prototype.concat,Tt=Array.prototype.join,P1=Array.prototype.slice,Zh=Math.floor,Vc=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Gc=Object.getOwnPropertySymbols,Kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="object",We=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ro||!0)?Symbol.toStringTag:null,ey=Object.prototype.propertyIsEnumerable,ty=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ry(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Jh.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-Zh(-t):Zh(t);if(o!==t){var n=String(o),i=zc.call(e,n.length+1);return lr.call(n,r,"$&_")+"."+lr.call(lr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return lr.call(e,r,"$&_")}var Qc=zh(),oy=Qc.custom,ny=uy(oy)?oy:null,iy={__proto__:null,double:'"',single:"'"},C1={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};py.exports=function t(e,r,o,n){var i=r||{};if(Nt(i,"quoteStyle")&&!Nt(iy,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Nt(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=Nt(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(Nt(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(Nt(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 fy(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?ry(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?ry(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 Jc(e)?"[Array]":"[Object]";var p=J1(i,o);if(typeof n>"u")n=[];else if(cy(n,e)>=0)return"[Circular]";function m(S,w,_){if(w&&(n=P1.call(n),n.push(w)),_){var T={depth:i.depth};return Nt(i,"quoteStyle")&&(T.quoteStyle=i.quoteStyle),t(S,T,o+1,n)}return t(S,i,o+1,n)}if(typeof e=="function"&&!ay(e)){var d=q1(e),h=Ha(e,m);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(h.length>0?" { "+Tt.call(h,", ")+" }":"")}if(uy(e)){var b=Ro?lr.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Kc.call(e);return typeof e=="object"&&!Ro?Vn(b):b}if(G1(e)){for(var x="<"+Qh.call(String(e.nodeName)),O=e.attributes||[],v=0;v<O.length;v++)x+=" "+O[v].name+"="+sy(N1(O[v].value),"double",i);return x+=">",e.childNodes&&e.childNodes.length&&(x+="..."),x+="</"+Qh.call(String(e.nodeName))+">",x}if(Jc(e)){if(e.length===0)return"[]";var D=Ha(e,m);return p&&!Q1(D)?"["+Zc(D,p)+"]":"[ "+Tt.call(D,", ")+" ]"}if($1(e)){var N=Ha(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!ey.call(e,"cause")?"{ ["+String(e)+"] "+Tt.call(Xh.call("[cause]: "+m(e.cause),N),", ")+" }":N.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Tt.call(N,", ")+" }"}if(typeof e=="object"&&s){if(ny&&typeof e[ny]=="function"&&Qc)return Qc(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Y1(e)){var H=[];return Vh&&Vh.call(e,function(S,w){H.push(m(w,e,!0)+" => "+m(S,e))}),ly("Map",qa.call(e),H,p)}if(z1(e)){var G=[];return Gh&&Gh.call(e,function(S){G.push(m(S,e))}),ly("Set",Ya.call(e),G,p)}if(H1(e))return Xc("WeakMap");if(V1(e))return Xc("WeakSet");if(j1(e))return Xc("WeakRef");if(W1(e))return Vn(m(Number(e)));if(B1(e))return Vn(m(Vc.call(e)));if(U1(e))return Vn(_1.call(e));if(R1(e))return Vn(m(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(!F1(e)&&!ay(e)){var xe=Ha(e,m),j=ty?ty(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",se=!j&&We&&Object(e)===e&&We in e?zc.call(pr(e),8,-1):F?"Object":"",ze=j||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=ze+(se||F?"["+Tt.call(Xh.call([],se||[],F||[]),": ")+"] ":"");return xe.length===0?P+"{}":p?P+"{"+Zc(xe,p)+"}":P+"{ "+Tt.call(xe,", ")+" }"}return String(e)};function sy(t,e,r){var o=r.quoteStyle||e,n=iy[o];return n+t+n}function N1(t){return lr.call(String(t),/"/g,""")}function Jc(t){return pr(t)==="[object Array]"&&(!We||!(typeof t=="object"&&We in t))}function F1(t){return pr(t)==="[object Date]"&&(!We||!(typeof t=="object"&&We in t))}function ay(t){return pr(t)==="[object RegExp]"&&(!We||!(typeof t=="object"&&We in t))}function $1(t){return pr(t)==="[object Error]"&&(!We||!(typeof t=="object"&&We in t))}function R1(t){return pr(t)==="[object String]"&&(!We||!(typeof t=="object"&&We in t))}function W1(t){return pr(t)==="[object Number]"&&(!We||!(typeof t=="object"&&We in t))}function U1(t){return pr(t)==="[object Boolean]"&&(!We||!(typeof t=="object"&&We in t))}function uy(t){if(Ro)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Kc)return!1;try{return Kc.call(t),!0}catch{}return!1}function B1(t){if(!t||typeof t!="object"||!Vc)return!1;try{return Vc.call(t),!0}catch{}return!1}var L1=Object.prototype.hasOwnProperty||function(t){return t in this};function Nt(t,e){return L1.call(t,e)}function pr(t){return E1.call(t)}function q1(t){if(t.name)return t.name;var e=I1.call(A1.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function cy(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 Y1(t){if(!qa||!t||typeof t!="object")return!1;try{qa.call(t);try{Ya.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function H1(t){if(!jn||!t||typeof t!="object")return!1;try{jn.call(t,jn);try{zn.call(t,zn)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function j1(t){if(!Kh||!t||typeof t!="object")return!1;try{return Kh.call(t),!0}catch{}return!1}function z1(t){if(!Ya||!t||typeof t!="object")return!1;try{Ya.call(t);try{qa.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function V1(t){if(!zn||!t||typeof t!="object")return!1;try{zn.call(t,zn);try{jn.call(t,jn)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function G1(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function fy(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return fy(zc.call(t,0,e.maxStringLength),e)+o}var n=C1[e.quoteStyle||"single"];n.lastIndex=0;var i=lr.call(lr.call(t,n,"\\$1"),/[\x00-\x1f]/g,K1);return sy(i,"single",e)}function K1(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":"")+k1.call(e.toString(16))}function Vn(t){return"Object("+t+")"}function Xc(t){return t+" { ? }"}function ly(t,e,r,o){var n=o?Zc(r,o):Tt.call(r,", ");return t+" ("+e+") {"+n+"}"}function Q1(t){for(var e=0;e<t.length;e++)if(cy(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
3
|
-
`+
|
|
4
|
-
`+e.prev}function Ha(t,e){var r=Jc(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Nt(t,n)?e(t[n],t):""}var i=typeof Gc=="function"?Gc(t):[],s;if(Ro){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Nt(t,u)&&(r&&String(Number(u))===u&&u<t.length||Ro&&s["$"+u]instanceof Symbol||(Jh.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if(typeof Gc=="function")for(var c=0;c<i.length;c++)ey.call(t,i[c])&&o.push("["+e(i[c])+"]: "+e(t[i[c]],t));return o}});var dy=A((Mse,my)=>{"use strict";var X1=Gn(),Z1=Lr(),ja=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},eT=function(t,e){if(t){var r=ja(t,e);return r&&r.value}},tT=function(t,e,r){var o=ja(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},rT=function(t,e){return t?!!ja(t,e):!1},oT=function(t,e){if(t)return ja(t,e,!0)};my.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new Z1("Side channel does not contain "+X1(o))},delete:function(o){var n=e&&e.next,i=oT(e,o);return i&&n&&n===i&&(e=void 0),!!i},get:function(o){return eT(e,o)},has:function(o){return rT(e,o)},set:function(o,n){e||(e={next:void 0}),tT(e,o,n)}};return r}});var ef=A((_se,hy)=>{"use strict";hy.exports=Object});var xy=A((Ese,yy)=>{"use strict";yy.exports=Error});var by=A((Ase,gy)=>{"use strict";gy.exports=EvalError});var wy=A((Ise,vy)=>{"use strict";vy.exports=RangeError});var Dy=A((kse,Sy)=>{"use strict";Sy.exports=ReferenceError});var Oy=A((Pse,Ty)=>{"use strict";Ty.exports=SyntaxError});var _y=A((Cse,My)=>{"use strict";My.exports=URIError});var Ay=A((Nse,Ey)=>{"use strict";Ey.exports=Math.abs});var ky=A((Fse,Iy)=>{"use strict";Iy.exports=Math.floor});var Cy=A(($se,Py)=>{"use strict";Py.exports=Math.max});var Fy=A((Rse,Ny)=>{"use strict";Ny.exports=Math.min});var Ry=A((Wse,$y)=>{"use strict";$y.exports=Math.pow});var Uy=A((Use,Wy)=>{"use strict";Wy.exports=Math.round});var Ly=A((Bse,By)=>{"use strict";By.exports=Number.isNaN||function(e){return e!==e}});var Yy=A((Lse,qy)=>{"use strict";var nT=Ly();qy.exports=function(e){return nT(e)||e===0?e:e<0?-1:1}});var jy=A((qse,Hy)=>{"use strict";Hy.exports=Object.getOwnPropertyDescriptor});var tf=A((Yse,zy)=>{"use strict";var za=jy();if(za)try{za([],"length")}catch{za=null}zy.exports=za});var Gy=A((Hse,Vy)=>{"use strict";var Va=Object.defineProperty||!1;if(Va)try{Va({},"a",{value:1})}catch{Va=!1}Vy.exports=Va});var Qy=A((jse,Ky)=>{"use strict";Ky.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 Zy=A((zse,Xy)=>{"use strict";var Jy=typeof Symbol<"u"&&Symbol,iT=Qy();Xy.exports=function(){return typeof Jy!="function"||typeof Symbol!="function"||typeof Jy("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:iT()}});var rf=A((Vse,ex)=>{"use strict";ex.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var of=A((Gse,tx)=>{"use strict";var sT=ef();tx.exports=sT.getPrototypeOf||null});var nx=A((Kse,ox)=>{"use strict";var aT="Function.prototype.bind called on incompatible ",uT=Object.prototype.toString,cT=Math.max,fT="[object Function]",rx=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},lT=function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},pT=function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r};ox.exports=function(e){var r=this;if(typeof r!="function"||uT.apply(r)!==fT)throw new TypeError(aT+r);for(var o=lT(arguments,1),n,i=function(){if(this instanceof n){var f=r.apply(this,rx(o,arguments));return Object(f)===f?f:this}return r.apply(e,rx(o,arguments))},s=cT(0,r.length-o.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(n=Function("binder","return function ("+pT(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 Kn=A((Qse,ix)=>{"use strict";var mT=nx();ix.exports=Function.prototype.bind||mT});var Ga=A((Jse,sx)=>{"use strict";sx.exports=Function.prototype.call});var nf=A((Xse,ax)=>{"use strict";ax.exports=Function.prototype.apply});var cx=A((Zse,ux)=>{"use strict";ux.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var lx=A((eae,fx)=>{"use strict";var dT=Kn(),hT=nf(),yT=Ga(),xT=cx();fx.exports=xT||dT.call(yT,hT)});var sf=A((tae,px)=>{"use strict";var gT=Kn(),bT=Lr(),vT=Ga(),wT=lx();px.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new bT("a function is required");return wT(gT,vT,e)}});var gx=A((rae,xx)=>{"use strict";var ST=sf(),mx=tf(),dx;try{dx=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var af=!!dx&&mx&&mx(Object.prototype,"__proto__"),hx=Object,yx=hx.getPrototypeOf;xx.exports=af&&typeof af.get=="function"?ST([af.get]):typeof yx=="function"?function(e){return yx(e==null?e:hx(e))}:!1});var Dx=A((oae,Sx)=>{"use strict";var bx=rf(),vx=of(),wx=gx();Sx.exports=bx?function(e){return bx(e)}:vx?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return vx(e)}:wx?function(e){return wx(e)}:null});var Ox=A((nae,Tx)=>{"use strict";var DT=Function.prototype.call,TT=Object.prototype.hasOwnProperty,OT=Kn();Tx.exports=OT.call(DT,TT)});var Ja=A((iae,kx)=>{"use strict";var Y,MT=ef(),_T=xy(),ET=by(),AT=wy(),IT=Dy(),Wo=Oy(),Uo=Lr(),kT=_y(),PT=Ay(),CT=ky(),NT=Cy(),FT=Fy(),$T=Ry(),RT=Uy(),WT=Yy(),Mx=Function,uf=function(t){try{return Mx('"use strict"; return ('+t+").constructor;")()}catch{}},Qn=tf(),UT=Gy(),cf=function(){throw new Uo},BT=Qn?(function(){try{return arguments.callee,cf}catch{try{return Qn(arguments,"callee").get}catch{return cf}}})():cf,Bo=Zy()(),De=Dx(),LT=of(),qT=rf(),_x=nf(),Jn=Ga(),Lo={},YT=typeof Uint8Array>"u"||!De?Y:De(Uint8Array),qr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Y:ArrayBuffer,"%ArrayIteratorPrototype%":Bo&&De?De([][Symbol.iterator]()):Y,"%AsyncFromSyncIteratorPrototype%":Y,"%AsyncFunction%":Lo,"%AsyncGenerator%":Lo,"%AsyncGeneratorFunction%":Lo,"%AsyncIteratorPrototype%":Lo,"%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%":_T,"%eval%":eval,"%EvalError%":ET,"%Float32Array%":typeof Float32Array>"u"?Y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Y:FinalizationRegistry,"%Function%":Mx,"%GeneratorFunction%":Lo,"%Int8Array%":typeof Int8Array>"u"?Y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bo&&De?De(De([][Symbol.iterator]())):Y,"%JSON%":typeof JSON=="object"?JSON:Y,"%Map%":typeof Map>"u"?Y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Bo||!De?Y:De(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":MT,"%Object.getOwnPropertyDescriptor%":Qn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Y:Promise,"%Proxy%":typeof Proxy>"u"?Y:Proxy,"%RangeError%":AT,"%ReferenceError%":IT,"%Reflect%":typeof Reflect>"u"?Y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Bo||!De?Y:De(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bo&&De?De(""[Symbol.iterator]()):Y,"%Symbol%":Bo?Symbol:Y,"%SyntaxError%":Wo,"%ThrowTypeError%":BT,"%TypedArray%":YT,"%TypeError%":Uo,"%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%":kT,"%WeakMap%":typeof WeakMap>"u"?Y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Y:WeakSet,"%Function.prototype.call%":Jn,"%Function.prototype.apply%":_x,"%Object.defineProperty%":UT,"%Object.getPrototypeOf%":LT,"%Math.abs%":PT,"%Math.floor%":CT,"%Math.max%":NT,"%Math.min%":FT,"%Math.pow%":$T,"%Math.round%":RT,"%Math.sign%":WT,"%Reflect.getPrototypeOf%":qT};if(De)try{null.error}catch(t){Ex=De(De(t)),qr["%Error.prototype%"]=Ex}var HT=function t(e){var r;if(e==="%AsyncFunction%")r=uf("async function () {}");else if(e==="%GeneratorFunction%")r=uf("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=uf("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&De&&(r=De(n.prototype))}return qr[e]=r,r},Ax={__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"]},Xn=Kn(),Ka=Ox(),jT=Xn.call(Jn,Array.prototype.concat),zT=Xn.call(_x,Array.prototype.splice),Ix=Xn.call(Jn,String.prototype.replace),Qa=Xn.call(Jn,String.prototype.slice),VT=Xn.call(Jn,RegExp.prototype.exec),GT=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,KT=/\\(\\)?/g,QT=function(e){var r=Qa(e,0,1),o=Qa(e,-1);if(r==="%"&&o!=="%")throw new Wo("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new Wo("invalid intrinsic syntax, expected opening `%`");var n=[];return Ix(e,GT,function(i,s,a,u){n[n.length]=a?Ix(u,KT,"$1"):s||i}),n},JT=function(e,r){var o=e,n;if(Ka(Ax,o)&&(n=Ax[o],o="%"+n[0]+"%"),Ka(qr,o)){var i=qr[o];if(i===Lo&&(i=HT(o)),typeof i>"u"&&!r)throw new Uo("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new Wo("intrinsic "+e+" does not exist!")};kx.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(VT(/^%?[^%]*%?$/,e)===null)throw new Wo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=QT(e),n=o.length>0?o[0]:"",i=JT("%"+n+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(n=c[0],zT(o,jT([0,1],c)));for(var f=1,p=!0;f<o.length;f+=1){var m=o[f],d=Qa(m,0,1),h=Qa(m,-1);if((d==='"'||d==="'"||d==="`"||h==='"'||h==="'"||h==="`")&&d!==h)throw new Wo("property names with quotes must have matching quotes");if((m==="constructor"||!p)&&(u=!0),n+="."+m,s="%"+n+"%",Ka(qr,s))a=qr[s];else if(a!=null){if(!(m in a)){if(!r)throw new Uo("base intrinsic for "+e+" exists, but the property is not available.");return}if(Qn&&f+1>=o.length){var b=Qn(a,m);p=!!b,p&&"get"in b&&!("originalValue"in b.get)?a=b.get:a=a[m]}else p=Ka(a,m),a=a[m];p&&!u&&(qr[s]=a)}}return a};var Ex});var ff=A((sae,Nx)=>{"use strict";var Px=Ja(),Cx=sf(),XT=Cx([Px("%String.prototype.indexOf%")]);Nx.exports=function(e,r){var o=Px(e,!!r);return typeof o=="function"&&XT(e,".prototype.")>-1?Cx([o]):o}});var lf=A((aae,$x)=>{"use strict";var ZT=Ja(),Zn=ff(),eO=Gn(),tO=Lr(),Fx=ZT("%Map%",!0),rO=Zn("Map.prototype.get",!0),oO=Zn("Map.prototype.set",!0),nO=Zn("Map.prototype.has",!0),iO=Zn("Map.prototype.delete",!0),sO=Zn("Map.prototype.size",!0);$x.exports=!!Fx&&function(){var e,r={assert:function(o){if(!r.has(o))throw new tO("Side channel does not contain "+eO(o))},delete:function(o){if(e){var n=iO(e,o);return sO(e)===0&&(e=void 0),n}return!1},get:function(o){if(e)return rO(e,o)},has:function(o){return e?nO(e,o):!1},set:function(o,n){e||(e=new Fx),oO(e,o,n)}};return r}});var Wx=A((uae,Rx)=>{"use strict";var aO=Ja(),Xa=ff(),uO=Gn(),Za=lf(),cO=Lr(),qo=aO("%WeakMap%",!0),fO=Xa("WeakMap.prototype.get",!0),lO=Xa("WeakMap.prototype.set",!0),pO=Xa("WeakMap.prototype.has",!0),mO=Xa("WeakMap.prototype.delete",!0);Rx.exports=qo?function(){var e,r,o={assert:function(n){if(!o.has(n))throw new cO("Side channel does not contain "+uO(n))},delete:function(n){if(qo&&n&&(typeof n=="object"||typeof n=="function")){if(e)return mO(e,n)}else if(Za&&r)return r.delete(n);return!1},get:function(n){return qo&&n&&(typeof n=="object"||typeof n=="function")&&e?fO(e,n):r&&r.get(n)},has:function(n){return qo&&n&&(typeof n=="object"||typeof n=="function")&&e?pO(e,n):!!r&&r.has(n)},set:function(n,i){qo&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new qo),lO(e,n,i)):Za&&(r||(r=Za()),r.set(n,i))}};return o}:Za});var Bx=A((cae,Ux)=>{"use strict";var dO=Lr(),hO=Gn(),yO=dy(),xO=lf(),gO=Wx(),bO=gO||xO||yO;Ux.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new dO("Side channel does not contain "+hO(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=bO()),e.set(o,n)}};return r}});var eu=A((fae,Lx)=>{"use strict";var vO=String.prototype.replace,wO=/%20/g,pf={RFC1738:"RFC1738",RFC3986:"RFC3986"};Lx.exports={default:pf.RFC3986,formatters:{RFC1738:function(t){return vO.call(t,wO,"+")},RFC3986:function(t){return String(t)}},RFC1738:pf.RFC1738,RFC3986:pf.RFC3986}});var hf=A((lae,Yx)=>{"use strict";var SO=eu(),mf=Object.prototype.hasOwnProperty,Yr=Array.isArray,Ot=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),DO=function(e){for(;e.length>1;){var r=e.pop(),o=r.obj[r.prop];if(Yr(o)){for(var n=[],i=0;i<o.length;++i)typeof o[i]<"u"&&n.push(o[i]);r.obj[r.prop]=n}}},qx=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},TO=function t(e,r,o){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(Yr(e))e.push(r);else if(e&&typeof e=="object")(o&&(o.plainObjects||o.allowPrototypes)||!mf.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 Yr(e)&&!Yr(r)&&(n=qx(e,o)),Yr(e)&&Yr(r)?(r.forEach(function(i,s){if(mf.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 mf.call(i,s)?i[s]=t(i[s],a,o):i[s]=a,i},n)},OO=function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},MO=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}},df=1024,_O=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+=df){for(var c=s.length>=df?s.slice(u,u+df):s,f=[],p=0;p<c.length;++p){var m=c.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===SO.RFC1738&&(m===40||m===41)){f[f.length]=c.charAt(p);continue}if(m<128){f[f.length]=Ot[m];continue}if(m<2048){f[f.length]=Ot[192|m>>6]+Ot[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=Ot[224|m>>12]+Ot[128|m>>6&63]+Ot[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|c.charCodeAt(p)&1023),f[f.length]=Ot[240|m>>18]+Ot[128|m>>12&63]+Ot[128|m>>6&63]+Ot[128|m&63]}a+=f.join("")}return a},EO=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 DO(r),e},AO=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},IO=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},kO=function(e,r){return[].concat(e,r)},PO=function(e,r){if(Yr(e)){for(var o=[],n=0;n<e.length;n+=1)o.push(r(e[n]));return o}return r(e)};Yx.exports={arrayToObject:qx,assign:OO,combine:kO,compact:EO,decode:MO,encode:_O,isBuffer:IO,isRegExp:AO,maybeMap:PO,merge:TO}});var Kx=A((pae,Gx)=>{"use strict";var Hx=Bx(),tu=hf(),ei=eu(),CO=Object.prototype.hasOwnProperty,jx={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Mt=Array.isArray,NO=Array.prototype.push,zx=function(t,e){NO.apply(t,Mt(e)?e:[e])},FO=Date.prototype.toISOString,Vx=ei.default,ye={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:tu.encode,encodeValuesOnly:!1,filter:void 0,format:Vx,formatter:ei.formatters[Vx],indices:!1,serializeDate:function(e){return FO.call(e)},skipNulls:!1,strictNullHandling:!1},$O=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},yf={},RO=function t(e,r,o,n,i,s,a,u,c,f,p,m,d,h,b,x,O,v){for(var D=e,N=v,H=0,G=!1;(N=N.get(yf))!==void 0&&!G;){var xe=N.get(e);if(H+=1,typeof xe<"u"){if(xe===H)throw new RangeError("Cyclic object value");G=!0}typeof N.get(yf)>"u"&&(H=0)}if(typeof f=="function"?D=f(r,D):D instanceof Date?D=d(D):o==="comma"&&Mt(D)&&(D=tu.maybeMap(D,function(k){return k instanceof Date?d(k):k})),D===null){if(s)return c&&!x?c(r,ye.encoder,O,"key",h):r;D=""}if($O(D)||tu.isBuffer(D)){if(c){var j=x?r:c(r,ye.encoder,O,"key",h);return[b(j)+"="+b(c(D,ye.encoder,O,"value",h))]}return[b(r)+"="+b(String(D))]}var F=[];if(typeof D>"u")return F;var se;if(o==="comma"&&Mt(D))x&&c&&(D=tu.maybeMap(D,c)),se=[{value:D.length>0?D.join(",")||null:void 0}];else if(Mt(f))se=f;else{var ze=Object.keys(D);se=p?ze.sort(p):ze}var P=u?String(r).replace(/\./g,"%2E"):String(r),S=n&&Mt(D)&&D.length===1?P+"[]":P;if(i&&Mt(D)&&D.length===0)return S+"[]";for(var w=0;w<se.length;++w){var _=se[w],T=typeof _=="object"&&_&&typeof _.value<"u"?_.value:D[_];if(!(a&&T===null)){var $=m&&u?String(_).replace(/\./g,"%2E"):String(_),g=Mt(D)?typeof o=="function"?o(S,$):S:S+(m?"."+$:"["+$+"]");v.set(e,H);var M=Hx();M.set(yf,v),zx(F,t(T,g,o,n,i,s,a,u,o==="comma"&&x&&Mt(D)?null:c,f,p,m,d,h,b,x,O,M))}}return F},WO=function(e){if(!e)return ye;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||ye.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=ei.default;if(typeof e.format<"u"){if(!CO.call(ei.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var n=ei.formatters[o],i=ye.filter;(typeof e.filter=="function"||Mt(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in jx?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=ye.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:ye.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ye.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ye.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ye.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?ye.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ye.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:ye.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:ye.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ye.encodeValuesOnly,filter:i,format:o,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ye.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ye.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ye.strictNullHandling}};Gx.exports=function(t,e){var r=t,o=WO(e),n,i;typeof o.filter=="function"?(i=o.filter,r=i("",r)):Mt(o.filter)&&(i=o.filter,n=i);var s=[];if(typeof r!="object"||r===null)return"";var a=jx[o.arrayFormat],u=a==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=Hx(),f=0;f<n.length;++f){var p=n[f],m=r[p];o.skipNulls&&m===null||zx(s,RO(m,p,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),h=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),d.length>0?h+d:""}});var Xx=A((mae,Jx)=>{"use strict";var Yo=hf(),xf=Object.prototype.hasOwnProperty,UO=Array.isArray,ue={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Yo.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},BO=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Qx=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},LO="utf8=%26%2310003%3B",qO="utf8=%E2%9C%93",YO=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]===qO?c="utf-8":s[u]===LO&&(c="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var f=s[u],p=f.indexOf("]="),m=p===-1?f.indexOf("="):p+1,d,h;m===-1?(d=r.decoder(f,ue.decoder,c,"key"),h=r.strictNullHandling?null:""):(d=r.decoder(f.slice(0,m),ue.decoder,c,"key"),h=Yo.maybeMap(Qx(f.slice(m+1),r),function(x){return r.decoder(x,ue.decoder,c,"value")})),h&&r.interpretNumericEntities&&c==="iso-8859-1"&&(h=BO(String(h))),f.indexOf("[]=")>-1&&(h=UO(h)?[h]:h);var b=xf.call(o,d);b&&r.duplicates==="combine"?o[d]=Yo.combine(o[d],h):(!b||r.duplicates==="last")&&(o[d]=h)}return o},HO=function(t,e,r,o){for(var n=o?e:Qx(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},jO=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&&xf.call(Object.prototype,c)&&!o.allowPrototypes)return;f.push(c)}for(var p=0;o.depth>0&&(u=a.exec(i))!==null&&p<o.depth;){if(p+=1,!o.plainObjects&&xf.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 HO(f,r,o,n)}},zO=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"||Yo.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}};Jx.exports=function(t,e){var r=zO(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?YO(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var a=i[s],u=jO(a,o[a],r,typeof t=="string");n=Yo.merge(n,u,r)}return r.allowSparse===!0?n:Yo.compact(n)}});var eg=A((dae,Zx)=>{"use strict";var VO=Kx(),GO=Xx(),KO=eu();Zx.exports={formats:KO,parse:GO,stringify:VO}});var ng=A(jo=>{"use strict";var QO=Hh();function st(){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 JO=/^([a-z0-9.+-]+:)/i,XO=/:[0-9]*$/,ZO=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,eM=["<",">",'"',"`"," ","\r",`
|
|
5
|
-
`," "],tM=["{","}","|","\\","^","`"].concat(eM),gf=["'"].concat(tM),tg=["%","/","?",";","#"].concat(gf),rg=["/","?","#"],rM=255,og=/^[+a-z0-9A-Z_-]{0,63}$/,oM=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,nM={javascript:!0,"javascript:":!0},bf={javascript:!0,"javascript:":!0},Ho={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},vf=eg();function ti(t,e,r){if(t&&typeof t=="object"&&t instanceof st)return t;var o=new st;return o.parse(t,e,r),o}st.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=ZO.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=vf.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=JO.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 p=a.substr(0,2)==="//";p&&!(c&&bf[c])&&(a=a.substr(2),this.slashes=!0)}if(!bf[c]&&(p||c&&!Ho[c])){for(var m=-1,d=0;d<rg.length;d++){var h=a.indexOf(rg[d]);h!==-1&&(m===-1||h<m)&&(m=h)}var b,x;m===-1?x=a.lastIndexOf("@"):x=a.lastIndexOf("@",m),x!==-1&&(b=a.slice(0,x),a=a.slice(x+1),this.auth=decodeURIComponent(b)),m=-1;for(var d=0;d<tg.length;d++){var h=a.indexOf(tg[d]);h!==-1&&(m===-1||h<m)&&(m=h)}m===-1&&(m=a.length),this.host=a.slice(0,m),a=a.slice(m),this.parseHost(),this.hostname=this.hostname||"";var O=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!O)for(var v=this.hostname.split(/\./),d=0,D=v.length;d<D;d++){var N=v[d];if(N&&!N.match(og)){for(var H="",G=0,xe=N.length;G<xe;G++)N.charCodeAt(G)>127?H+="x":H+=N[G];if(!H.match(og)){var j=v.slice(0,d),F=v.slice(d+1),se=N.match(oM);se&&(j.push(se[1]),F.unshift(se[2])),F.length&&(a="/"+F.join(".")+a),this.hostname=j.join(".");break}}}this.hostname.length>rM?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=QO.toASCII(this.hostname));var ze=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+ze,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!nM[f])for(var d=0,D=gf.length;d<D;d++){var S=gf[d];if(a.indexOf(S)!==-1){var w=encodeURIComponent(S);w===S&&(w=escape(S)),a=a.split(S).join(w)}}var _=a.indexOf("#");_!==-1&&(this.hash=a.substr(_),a=a.slice(0,_));var T=a.indexOf("?");if(T!==-1?(this.search=a.substr(T),this.query=a.substr(T+1),e&&(this.query=vf.parse(this.query)),a=a.slice(0,T)):e&&(this.search="",this.query={}),a&&(this.pathname=a),Ho[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ze=this.pathname||"",$=this.search||"";this.path=ze+$}return this.href=this.format(),this};function iM(t){return typeof t=="string"&&(t=ti(t)),t instanceof st?t.format():st.prototype.format.call(t)}st.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=vf.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||Ho[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 sM(t,e){return ti(t,!1,!0).resolve(e)}st.prototype.resolve=function(t){return this.resolveObject(ti(t,!1,!0)).format()};function aM(t,e){return t?ti(t,!1,!0).resolveObject(e):e}st.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new st;e.parse(t,!1,!0),t=e}for(var r=new st,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 Ho[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(!Ho[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var p=c[f];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!bf[t.protocol]){for(var D=(t.pathname||"").split("/");D.length&&!(t.host=D.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),r.pathname=D.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 m=r.pathname||"",d=r.search||"";r.path=m+d}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var h=r.pathname&&r.pathname.charAt(0)==="/",b=t.host||t.pathname&&t.pathname.charAt(0)==="/",x=b||h||r.host&&t.pathname,O=x,v=r.pathname&&r.pathname.split("/")||[],D=t.pathname&&t.pathname.split("/")||[],N=r.protocol&&!Ho[r.protocol];if(N&&(r.hostname="",r.port=null,r.host&&(v[0]===""?v[0]=r.host:v.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(D[0]===""?D[0]=t.host:D.unshift(t.host)),t.host=null),x=x&&(D[0]===""||v[0]==="")),b)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,v=D;else if(D.length)v||(v=[]),v.pop(),v=v.concat(D),r.search=t.search,r.query=t.query;else if(t.search!=null){if(N){r.host=v.shift(),r.hostname=r.host;var H=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;H&&(r.auth=H.shift(),r.hostname=H.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(!v.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var G=v.slice(-1)[0],xe=(r.host||t.host||v.length>1)&&(G==="."||G==="..")||G==="",j=0,F=v.length;F>=0;F--)G=v[F],G==="."?v.splice(F,1):G===".."?(v.splice(F,1),j++):j&&(v.splice(F,1),j--);if(!x&&!O)for(;j--;j)v.unshift("..");x&&v[0]!==""&&(!v[0]||v[0].charAt(0)!=="/")&&v.unshift(""),xe&&v.join("/").substr(-1)!=="/"&&v.push("");var se=v[0]===""||v[0]&&v[0].charAt(0)==="/";if(N){r.hostname=se?"":v.length?v.shift():"",r.host=r.hostname;var H=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;H&&(r.auth=H.shift(),r.hostname=H.shift(),r.host=r.hostname)}return x=x||r.host&&v.length,x&&!se&&v.unshift(""),v.length>0?r.pathname=v.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},st.prototype.parseHost=function(){var t=this.host,e=XO.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},jo.parse=ti,jo.resolve=sM,jo.resolveObject=aM,jo.format=iM,jo.Url=st});var gg=A((xae,xg)=>{"use strict";xg.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,o)=>Math.min(r,o.length),1/0):0}});var wg=A((bae,vg)=>{"use strict";vg.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 Tg=A((vae,Dg)=>{var hM=Object.prototype.toString;Dg.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 vM(e)?"generatorfunction":"function";if(yM(e))return"array";if(DM(e))return"buffer";if(SM(e))return"arguments";if(gM(e))return"date";if(xM(e))return"error";if(bM(e))return"regexp";switch(Sg(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(wM(e))return"generator";switch(r=hM.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 Sg(t){return typeof t.constructor=="function"?t.constructor.name:null}function yM(t){return Array.isArray?Array.isArray(t):t instanceof Array}function xM(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function gM(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function bM(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function vM(t,e){return Sg(t)==="GeneratorFunction"}function wM(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function SM(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 DM(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Mg=A((wae,Og)=>{Og.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 Ag=A((Sae,If)=>{"use strict";var TM=wg(),_g=Tg(),Eg=Mg();If.exports=OM,If.exports.isCrypto=!!Eg.cryptographic;var _t={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};_t.all=_t.lower+_t.upper+_t.number+_t.special;function OM(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:TM(t)&&(r={},e=t,t="*")),_g(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+=_t.lower),t.indexOf("A")!==-1&&(i+=_t.upper),t.indexOf("0")!==-1&&(i+=_t.number),t.indexOf("!")!==-1&&(i+=_t.special),t.indexOf("*")!==-1&&(i+=_t.all),o&&(i+=t),n.exclude){var a=_g(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(Eg()*i.length,10));return s}});var b0=A((ui,Xo)=>{var RM=200,Pg="__lodash_hash_undefined__",Cg=9007199254740991,Ff="[object Arguments]",WM="[object Array]",Ng="[object Boolean]",Fg="[object Date]",UM="[object Error]",$f="[object Function]",$g="[object GeneratorFunction]",yu="[object Map]",Rg="[object Number]",Rf="[object Object]",Wg="[object Promise]",Ug="[object RegExp]",xu="[object Set]",Bg="[object String]",Lg="[object Symbol]",Wf="[object WeakMap]",qg="[object ArrayBuffer]",gu="[object DataView]",Yg="[object Float32Array]",Hg="[object Float64Array]",jg="[object Int8Array]",zg="[object Int16Array]",Vg="[object Int32Array]",Gg="[object Uint8Array]",Kg="[object Uint8ClampedArray]",Qg="[object Uint16Array]",Jg="[object Uint32Array]",BM=/[\\^$.*+?()[\]{}|]/g,LM=/\w*$/,qM=/^\[object .+?Constructor\]$/,YM=/^(?:0|[1-9]\d*)$/,te={};te[Ff]=te[WM]=te[qg]=te[gu]=te[Ng]=te[Fg]=te[Yg]=te[Hg]=te[jg]=te[zg]=te[Vg]=te[yu]=te[Rg]=te[Rf]=te[Ug]=te[xu]=te[Bg]=te[Lg]=te[Gg]=te[Kg]=te[Qg]=te[Jg]=!0,te[UM]=te[$f]=te[Wf]=!1;var HM=typeof global=="object"&&global&&global.Object===Object&&global,jM=typeof self=="object"&&self&&self.Object===Object&&self,Ft=HM||jM||Function("return this")(),Xg=typeof ui=="object"&&ui&&!ui.nodeType&&ui,Zg=Xg&&typeof Xo=="object"&&Xo&&!Xo.nodeType&&Xo,zM=Zg&&Zg.exports===Xg;function VM(t,e){return t.set(e[0],e[1]),t}function GM(t,e){return t.add(e),t}function KM(t,e){for(var r=-1,o=t?t.length:0;++r<o&&e(t[r],r,t)!==!1;);return t}function QM(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}function e0(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 JM(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}function XM(t,e){return t?.[e]}function t0(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function r0(t){var e=-1,r=Array(t.size);return t.forEach(function(o,n){r[++e]=[n,o]}),r}function Uf(t,e){return function(r){return t(e(r))}}function o0(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var ZM=Array.prototype,e_=Function.prototype,bu=Object.prototype,Bf=Ft["__core-js_shared__"],n0=(function(){var t=/[^.]+$/.exec(Bf&&Bf.keys&&Bf.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),i0=e_.toString,dr=bu.hasOwnProperty,vu=bu.toString,t_=RegExp("^"+i0.call(dr).replace(BM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s0=zM?Ft.Buffer:void 0,a0=Ft.Symbol,u0=Ft.Uint8Array,r_=Uf(Object.getPrototypeOf,Object),o_=Object.create,n_=bu.propertyIsEnumerable,i_=ZM.splice,c0=Object.getOwnPropertySymbols,s_=s0?s0.isBuffer:void 0,a_=Uf(Object.keys,Object),Lf=Jo(Ft,"DataView"),si=Jo(Ft,"Map"),qf=Jo(Ft,"Promise"),Yf=Jo(Ft,"Set"),Hf=Jo(Ft,"WeakMap"),ai=Jo(Object,"create"),u_=Vr(Lf),c_=Vr(si),f_=Vr(qf),l_=Vr(Yf),p_=Vr(Hf),f0=a0?a0.prototype:void 0,l0=f0?f0.valueOf:void 0;function jr(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 m_(){this.__data__=ai?ai(null):{}}function d_(t){return this.has(t)&&delete this.__data__[t]}function h_(t){var e=this.__data__;if(ai){var r=e[t];return r===Pg?void 0:r}return dr.call(e,t)?e[t]:void 0}function y_(t){var e=this.__data__;return ai?e[t]!==void 0:dr.call(e,t)}function x_(t,e){var r=this.__data__;return r[t]=ai&&e===void 0?Pg:e,this}jr.prototype.clear=m_,jr.prototype.delete=d_,jr.prototype.get=h_,jr.prototype.has=y_,jr.prototype.set=x_;function $t(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function g_(){this.__data__=[]}function b_(t){var e=this.__data__,r=wu(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():i_.call(e,r,1),!0}function v_(t){var e=this.__data__,r=wu(e,t);return r<0?void 0:e[r][1]}function w_(t){return wu(this.__data__,t)>-1}function S_(t,e){var r=this.__data__,o=wu(r,t);return o<0?r.push([t,e]):r[o][1]=e,this}$t.prototype.clear=g_,$t.prototype.delete=b_,$t.prototype.get=v_,$t.prototype.has=w_,$t.prototype.set=S_;function Ko(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 D_(){this.__data__={hash:new jr,map:new(si||$t),string:new jr}}function T_(t){return Su(this,t).delete(t)}function O_(t){return Su(this,t).get(t)}function M_(t){return Su(this,t).has(t)}function __(t,e){return Su(this,t).set(t,e),this}Ko.prototype.clear=D_,Ko.prototype.delete=T_,Ko.prototype.get=O_,Ko.prototype.has=M_,Ko.prototype.set=__;function Qo(t){this.__data__=new $t(t)}function E_(){this.__data__=new $t}function A_(t){return this.__data__.delete(t)}function I_(t){return this.__data__.get(t)}function k_(t){return this.__data__.has(t)}function P_(t,e){var r=this.__data__;if(r instanceof $t){var o=r.__data__;if(!si||o.length<RM-1)return o.push([t,e]),this;r=this.__data__=new Ko(o)}return r.set(t,e),this}Qo.prototype.clear=E_,Qo.prototype.delete=A_,Qo.prototype.get=I_,Qo.prototype.has=k_,Qo.prototype.set=P_;function C_(t,e){var r=Vf(t)||oE(t)?JM(t.length,String):[],o=r.length,n=!!o;for(var i in t)(e||dr.call(t,i))&&!(n&&(i=="length"||Z_(i,o)))&&r.push(i);return r}function p0(t,e,r){var o=t[e];(!(dr.call(t,e)&&y0(o,r))||r===void 0&&!(e in t))&&(t[e]=r)}function wu(t,e){for(var r=t.length;r--;)if(y0(t[r][0],e))return r;return-1}function N_(t,e){return t&&m0(e,Gf(e),t)}function jf(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(!Du(t))return t;var u=Vf(t);if(u){if(a=Q_(t),!e)return V_(t,a)}else{var c=zr(t),f=c==$f||c==$g;if(iE(t))return B_(t,e);if(c==Rf||c==Ff||f&&!i){if(t0(t))return i?t:{};if(a=J_(f?{}:t),!e)return G_(t,N_(a,t))}else{if(!te[c])return i?t:{};a=X_(t,c,jf,e)}}s||(s=new Qo);var p=s.get(t);if(p)return p;if(s.set(t,a),!u)var m=r?K_(t):Gf(t);return KM(m||t,function(d,h){m&&(h=d,d=t[h]),p0(a,h,jf(d,e,r,o,h,t,s))}),a}function F_(t){return Du(t)?o_(t):{}}function $_(t,e,r){var o=e(t);return Vf(t)?o:QM(o,r(t))}function R_(t){return vu.call(t)}function W_(t){if(!Du(t)||tE(t))return!1;var e=g0(t)||t0(t)?t_:qM;return e.test(Vr(t))}function U_(t){if(!h0(t))return a_(t);var e=[];for(var r in Object(t))dr.call(t,r)&&r!="constructor"&&e.push(r);return e}function B_(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function zf(t){var e=new t.constructor(t.byteLength);return new u0(e).set(new u0(t)),e}function L_(t,e){var r=e?zf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function q_(t,e,r){var o=e?r(r0(t),!0):r0(t);return e0(o,VM,new t.constructor)}function Y_(t){var e=new t.constructor(t.source,LM.exec(t));return e.lastIndex=t.lastIndex,e}function H_(t,e,r){var o=e?r(o0(t),!0):o0(t);return e0(o,GM,new t.constructor)}function j_(t){return l0?Object(l0.call(t)):{}}function z_(t,e){var r=e?zf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function V_(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function m0(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;p0(r,s,a===void 0?t[s]:a)}return r}function G_(t,e){return m0(t,d0(t),e)}function K_(t){return $_(t,Gf,d0)}function Su(t,e){var r=t.__data__;return eE(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Jo(t,e){var r=XM(t,e);return W_(r)?r:void 0}var d0=c0?Uf(c0,Object):uE,zr=R_;(Lf&&zr(new Lf(new ArrayBuffer(1)))!=gu||si&&zr(new si)!=yu||qf&&zr(qf.resolve())!=Wg||Yf&&zr(new Yf)!=xu||Hf&&zr(new Hf)!=Wf)&&(zr=function(t){var e=vu.call(t),r=e==Rf?t.constructor:void 0,o=r?Vr(r):void 0;if(o)switch(o){case u_:return gu;case c_:return yu;case f_:return Wg;case l_:return xu;case p_:return Wf}return e});function Q_(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&dr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function J_(t){return typeof t.constructor=="function"&&!h0(t)?F_(r_(t)):{}}function X_(t,e,r,o){var n=t.constructor;switch(e){case qg:return zf(t);case Ng:case Fg:return new n(+t);case gu:return L_(t,o);case Yg:case Hg:case jg:case zg:case Vg:case Gg:case Kg:case Qg:case Jg:return z_(t,o);case yu:return q_(t,o,r);case Rg:case Bg:return new n(t);case Ug:return Y_(t);case xu:return H_(t,o,r);case Lg:return j_(t)}}function Z_(t,e){return e=e??Cg,!!e&&(typeof t=="number"||YM.test(t))&&t>-1&&t%1==0&&t<e}function eE(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function tE(t){return!!n0&&n0 in t}function h0(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||bu;return t===r}function Vr(t){if(t!=null){try{return i0.call(t)}catch{}try{return t+""}catch{}}return""}function rE(t){return jf(t,!0,!0)}function y0(t,e){return t===e||t!==t&&e!==e}function oE(t){return nE(t)&&dr.call(t,"callee")&&(!n_.call(t,"callee")||vu.call(t)==Ff)}var Vf=Array.isArray;function x0(t){return t!=null&&sE(t.length)&&!g0(t)}function nE(t){return aE(t)&&x0(t)}var iE=s_||cE;function g0(t){var e=Du(t)?vu.call(t):"";return e==$f||e==$g}function sE(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cg}function Du(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function aE(t){return!!t&&typeof t=="object"}function Gf(t){return x0(t)?C_(t):U_(t)}function uE(){return[]}function cE(){return!1}Xo.exports=rE});var w0=A((Rae,v0)=>{"use strict";v0.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 p=f[a],m=i(s[p]);m&&(u&&(u+=","),u+=JSON.stringify(p)+":"+m)}return n.splice(c,1),"{"+u+"}"}})(t)}});var xi=globalThis,on=xi.ShadowRoot&&(xi.ShadyCSS===void 0||xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ku=Symbol(),Ml=new WeakMap,Qr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==ku)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(on&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Ml.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ml.set(r,e))}return e}toString(){return this.cssText}},nn=t=>new Qr(typeof t=="string"?t:t+"",void 0,ku),Qe=(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 Qr(r,t,ku)},gi=(t,e)=>{if(on)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let o=document.createElement("style"),n=xi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},sn=on?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return nn(r)})(t):t;var{is:sb,defineProperty:ab,getOwnPropertyDescriptor:ub,getOwnPropertyNames:cb,getOwnPropertySymbols:fb,getPrototypeOf:lb}=Object,bi=globalThis,_l=bi.trustedTypes,pb=_l?_l.emptyScript:"",mb=bi.reactiveElementPolyfillSupport,an=(t,e)=>t,Jr={toAttribute(t,e){switch(e){case Boolean:t=t?pb:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},un=(t,e)=>!sb(t,e),El={attribute:!0,type:String,converter:Jr,reflect:!1,useDefault:!1,hasChanged:un};Symbol.metadata??=Symbol("metadata"),bi.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=El){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&ab(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:i}=ub(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,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)??El}static _$Ei(){if(this.hasOwnProperty(an("elementProperties")))return;let e=lb(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(an("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(an("properties"))){let r=this.properties,o=[...cb(r),...fb(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(sn(n))}else e!==void 0&&r.push(sn(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 gi(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)}_$ET(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:Jr).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:Jr;this._$Em=n;let a=s.fromAttribute(r,i.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){let n=this.constructor,i=this[e];if(o??=n.getPropertyOptions(e),!((o.hasChanged??un)(i,r)||o.useDefault&&o.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:n,wrapped:i},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),i!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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){let{wrapped:s}=i,a=this[n];s!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,i,a)}}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._$EM()}catch(o){throw e=!1,this._$EM(),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)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(e){}firstUpdated(e){}};mt.elementStyles=[],mt.shadowRootOptions={mode:"open"},mt[an("elementProperties")]=new Map,mt[an("finalized")]=new Map,mb?.({ReactiveElement:mt}),(bi.reactiveElementVersions??=[]).push("2.1.1");var Pu=globalThis,vi=Pu.trustedTypes,Al=vi?vi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Cu="$lit$",It=`lit$${Math.random().toFixed(9).slice(2)}$`,Nu="?"+It,db=`<${Nu}>`,br=document,cn=()=>br.createComment(""),fn=t=>t===null||typeof t!="object"&&typeof t!="function",Fu=Array.isArray,Il=t=>Fu(t)||typeof t?.[Symbol.iterator]=="function",$u=`[
|
|
6
|
-
\
|
|
7
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Cl=/'/g,Nl=/"/g,Fl=/^(?:script|style|textarea|title)$/i,Ru=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Be=Ru(1),hb=Ru(2),yb=Ru(3),Ht=Symbol.for("lit-noChange"),me=Symbol.for("lit-nothing"),$l=new WeakMap,wr=br.createTreeWalker(br,129);function Rl(t,e){if(!Fu(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Al!==void 0?Al.createHTML(e):e}var Wl=(t,e)=>{let r=t.length-1,o=[],n,i=e===2?"<svg>":e===3?"<math>":"",s=ln;for(let a=0;a<r;a++){let u=t[a],c,f,p=-1,m=0;for(;m<u.length&&(s.lastIndex=m,f=s.exec(u),f!==null);)m=s.lastIndex,s===ln?f[1]==="!--"?s=kl:f[1]!==void 0?s=Pl:f[2]!==void 0?(Fl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=vr):f[3]!==void 0&&(s=vr):s===vr?f[0]===">"?(s=n??ln,p=-1):f[1]===void 0?p=-2:(p=s.lastIndex-f[2].length,c=f[1],s=f[3]===void 0?vr:f[3]==='"'?Nl:Cl):s===Nl||s===Cl?s=vr:s===kl||s===Pl?s=ln:(s=vr,n=void 0);let d=s===vr&&t[a+1].startsWith("/>")?" ":"";i+=s===ln?u+db:p>=0?(o.push(c),u.slice(0,p)+Cu+u.slice(p)+It+d):u+It+(p===-2?a:d)}return[Rl(t,i+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},pn=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]=Wl(e,r);if(this.el=t.createElement(c,o),wr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=wr.nextNode())!==null&&u.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Cu)){let m=f[s++],d=n.getAttribute(p).split(It),h=/([.?@])?(.*)/.exec(m);u.push({type:1,index:i,name:h[2],strings:d,ctor:h[1]==="."?Si:h[1]==="?"?Di:h[1]==="@"?Ti:Dr}),n.removeAttribute(p)}else p.startsWith(It)&&(u.push({type:6,index:i}),n.removeAttribute(p));if(Fl.test(n.tagName)){let p=n.textContent.split(It),m=p.length-1;if(m>0){n.textContent=vi?vi.emptyScript:"";for(let d=0;d<m;d++)n.append(p[d],cn()),wr.nextNode(),u.push({type:2,index:++i});n.append(p[m],cn())}}}else if(n.nodeType===8)if(n.data===Nu)u.push({type:2,index:i});else{let p=-1;for(;(p=n.data.indexOf(It,p+1))!==-1;)u.push({type:7,index:i}),p+=It.length-1}i++}}static createElement(e,r){let o=br.createElement("template");return o.innerHTML=e,o}};function Sr(t,e,r=t,o){if(e===Ht)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,i=fn(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=Sr(t,n._$AS(t,e.values),n,o)),e}var wi=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??br).importNode(r,!0);wr.currentNode=n;let i=wr.nextNode(),s=0,a=0,u=o[0];for(;u!==void 0;){if(s===u.index){let c;u.type===2?c=new Xr(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new Oi(i,this,e)),this._$AV.push(c),u=o[++a]}s!==u?.index&&(i=wr.nextNode(),s++)}return wr.currentNode=br,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++}},Xr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=me,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=Sr(this,e,r),fn(e)?e===me||e==null||e===""?(this._$AH!==me&&this._$AR(),this._$AH=me):e!==this._$AH&&e!==Ht&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Il(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!==me&&fn(this._$AH)?this._$AA.nextSibling.data=e:this.T(br.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=pn.createElement(Rl(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let i=new wi(n,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=$l.get(e.strings);return r===void 0&&$l.set(e.strings,r=new pn(e)),r}k(e){Fu(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(cn()),this.O(cn()),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!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Dr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,i){this.type=1,this._$AH=me,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=me}_$AI(e,r=this,o,n){let i=this.strings,s=!1;if(i===void 0)e=Sr(this,e,r,0),s=!fn(e)||e!==this._$AH&&e!==Ht,s&&(this._$AH=e);else{let a=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=Sr(this,a[o+u],r,u),c===Ht&&(c=this._$AH[u]),s||=!fn(c)||c!==this._$AH[u],c===me?e=me:e!==me&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}s&&!n&&this.j(e)}j(e){e===me?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Si=class extends Dr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===me?void 0:e}},Di=class extends Dr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==me)}},Ti=class extends Dr{constructor(e,r,o,n,i){super(e,r,o,n,i),this.type=5}_$AI(e,r=this){if((e=Sr(this,e,r,0)??me)===Ht)return;let o=this._$AH,n=e===me&&o!==me||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,i=e!==me&&(o===me||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)}},Oi=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){Sr(this,e)}},xb={M:Cu,P:It,A:Nu,C:1,L:Wl,R:wi,D:Il,V:Sr,I:Xr,H:Dr,N:Di,U:Ti,B:Si,F:Oi},gb=Pu.litHtmlPolyfillSupport;gb?.(pn,Xr),(Pu.litHtmlVersions??=[]).push("3.3.1");var Wu=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let i=r?.renderBefore??null;o._$litPart$=n=new Xr(e.insertBefore(cn(),i),i,void 0,r??{})}return n._$AI(t),n};var Uu=globalThis,Oe=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=Wu(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ht}};Oe._$litElement$=!0,Oe.finalized=!0,Uu.litElementHydrateSupport?.({LitElement:Oe});var bb=Uu.litElementPolyfillSupport;bb?.({LitElement:Oe});var vb={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Uu.litElementVersions??=[]).push("4.2.1");var wb=!1;var Mi=nn('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif');var at=t=>(e,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};var Sb={attribute:!0,type:String,converter:Jr,reflect:!1,hasChanged:un},Bl=(t=Sb,e,r)=>{let{kind:o,metadata:n}=r,i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),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.C(s,void 0,t,a),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 ut(t){return(e,r)=>typeof r=="object"?Bl(t,e,r):((o,n,i)=>{let s=n.hasOwnProperty(i);return n.constructor.createProperty(i,o),s?Object.getOwnPropertyDescriptor(n,i):void 0})(t,e,r)}function Db(t){return ut({...t,state:!0,attribute:!1})}function Tb(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var Je=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function Ob(t,e){return(r,o,n)=>{let i=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:a}=typeof o=="object"?r:n??(()=>{let u=Symbol();return{get(){return this[u]},set(c){this[u]=c}}})();return Je(r,o,{get(){let u=s.call(this);return u===void 0&&(u=i(this),(u!==null||this.hasUpdated)&&a.call(this,u)),u}})}return Je(r,o,{get(){return i(this)}})}}var Mb;function _b(t){return(e,r)=>Je(e,r,{get(){return(this.renderRoot??(Mb??=document.createDocumentFragment())).querySelectorAll(t)}})}function Eb(t){return(e,r)=>Je(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Ab(t){return(e,r)=>{let{slot:o,selector:n}=t??{},i="slot"+(o?`[name=${o}]`:":not([name])");return Je(e,r,{get(){let s=this.renderRoot?.querySelector(i),a=s?.assignedElements(t)??[];return n===void 0?a:a.filter((u=>u.matches(n)))}})}}function Ib(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Je(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Ll={};var Zr={};var di={};oe(di,{TypedHandler:()=>ul,TypedRequest:()=>fl,TypedResponseError:()=>Wt,TypedRouter:()=>mi,TypedTarget:()=>cl,VirtualStream:()=>At});var Ee={};oe(Ee,{AsyncExecutionStack:()=>Cc,BackpressuredArray:()=>Nc,FastMap:()=>Rn,Interest:()=>Wn,InterestMap:()=>Fc,LimitedArray:()=>$c,LoopTracker:()=>Rc,ObjectMap:()=>Br,Stringmap:()=>Wc,TimedAggregtor:()=>Uc,Tree:()=>Bc,uni:()=>Nh});var K={};oe(K,{Timeout:()=>Ii,delayFor:()=>kt,delayForRandom:()=>Ub});var q={};oe(q,{CumulativeDeferred:()=>Ai,Deferred:()=>Ei,cumulativeDefer:()=>Pb,defer:()=>Tr,fromCallback:()=>Wb,getFirstTrueOrFalse:()=>Rb,map:()=>Fb,rejectedPromise:()=>Nb,resolvedPromise:()=>Cb,timeoutAndContinue:()=>$b,timeoutWrap:()=>ql});var Ei=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"})}},Tr=()=>new Ei;var Ai=class{constructor(){this.accumulatedPromises=[],this.deferred=Tr(),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)}},Pb=()=>new Ai;var Cb=t=>Promise.resolve(t),Nb=t=>Promise.reject(t),Fb=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},ql=async(t,e,r=!0)=>new Promise((o,n)=>{setTimeout(()=>{r?n(new Error("timeout")):o(null)},e),t.then(o,n)}),$b=async(t,e=6e4)=>ql(t,e,!1),Rb=async t=>{let e=Tr();for(let r of t)r.then(o=>{o===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},Wb=t=>new Promise((e,r)=>{t((o,n)=>{o?r(o):e(n)})});var kt=async(t,e,r=!1)=>(await new Ii(t,null,r).promise,e),Ub=async(t,e,r,o=!1)=>(await kt(Math.random()*(e-t)+t,null,o),r),Ii=class{constructor(e,r,o=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=Tr(),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 dn={};oe(dn,{SmartMatch:()=>Yu});var mn={};oe(mn,{isMatch:()=>qb,matcher:()=>Lb});function Lu(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var qu=new Map,Yl=(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})},Bb=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(qu.has(r))return qu.get(r);let o=t[0]==="!";o&&(t=t.slice(1)),t=Lu(t).replace(/\\\*/g,"[\\s\\S]*");let n=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return n.negated=o,qu.set(r,n),n},Hl=(t,e,r,o)=>{if(t=Yl(t,"inputs"),e=Yl(e,"patterns"),e.length===0)return[];e=e.map(s=>Bb(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 Lb(t,e,r){return Hl(t,e,r,!1)}function qb(t,e,r){return Hl(t,e,r,!0).length>0}var Yu=class{constructor(e){this.wildcard=e}match(e){return mn.isMatch(e,this.wildcard)}};var rt={};oe(rt,{ObservableIntake:()=>pc,Observablemap:()=>lc,rxjs:()=>ao});var ao={};oe(ao,{Observable:()=>ee,ReplaySubject:()=>Fi,Subject:()=>ht,Subscription:()=>Ze,from:()=>Ar,fromEvent:()=>kr,of:()=>cc,ops:()=>xS});var Hu=function(t,e){return Hu=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])},Hu(t,e)};function Me(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hu(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ju=function(){return ju=Object.assign||function(e){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ju.apply(this,arguments)};function jb(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r}function zb(t,e,r,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i}function Vb(t,e){return function(r,o){e(r,o,t)}}function VA(t,e,r,o,n,i){function s(O){if(O!==void 0&&typeof O!="function")throw new TypeError("Function expected");return O}for(var a=o.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?o.static?t:t.prototype:null,f=e||(c?Object.getOwnPropertyDescriptor(c,o.name):{}),p,m=!1,d=r.length-1;d>=0;d--){var h={};for(var b in o)h[b]=b==="access"?{}:o[b];for(var b in o.access)h.access[b]=o.access[b];h.addInitializer=function(O){if(m)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(O||null))};var x=(0,r[d])(a==="accessor"?{get:f.get,set:f.set}:f[u],h);if(a==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(p=s(x.get))&&(f.get=p),(p=s(x.set))&&(f.set=p),(p=s(x.init))&&n.unshift(p)}else(p=s(x))&&(a==="field"?n.unshift(p):f[u]=p)}c&&Object.defineProperty(c,o.name,f),m=!0}function GA(t,e,r){for(var o=arguments.length>2,n=0;n<e.length;n++)r=o?e[n].call(t,r):e[n].call(t);return o?r:void 0}function KA(t){return typeof t=="symbol"?t:"".concat(t)}function QA(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function Gb(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Vu(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(p){s(p)}}function u(f){try{c(o.throw(f))}catch(p){s(p)}}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}}}var zu=Object.create?(function(t,e,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,o,n)}):(function(t,e,r,o){o===void 0&&(o=r),t[o]=e[r]});function Kb(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zu(e,t,r)}function dt(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 Qb(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Le(arguments[e]));return t}function Jb(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var o=Array(t),n=0,e=0;e<r;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,n++)o[n]=i[s];return o}function Xe(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 Pt(t){return this instanceof Pt?(this.v=t,this):new Pt(t)}function Gu(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(m){o[m]&&(n[m]=function(d){return new Promise(function(h,b){i.push([m,d,h,b])>1||a(m,d)})})}function a(m,d){try{u(o[m](d))}catch(h){p(i[0][3],h)}}function u(m){m.value instanceof Pt?Promise.resolve(m.value.v).then(c,f):p(i[0][2],m)}function c(m){a("next",m)}function f(m){a("throw",m)}function p(m,d){m(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Xb(t){var e,r;return e={},o("next"),o("throw",function(n){throw n}),o("return"),e[Symbol.iterator]=function(){return this},e;function o(n,i){e[n]=t[n]?function(s){return(r=!r)?{value:Pt(t[n](s)),done:!1}:i?i(s):s}:i}}function Ku(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof dt=="function"?dt(t):t[Symbol.iterator](),r={},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 Zb(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var ev=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e};function tv(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&zu(e,t,r);return ev(e,t),e}function rv(t){return t&&t.__esModule?t:{default:t}}function ov(t,e,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(t):o?o.value:e.get(t)}function nv(t,e,r,o,n){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?n.call(t,r):n?n.value=r:e.set(t,r),r}function iv(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}function sv(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=e[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=e[Symbol.dispose]}if(typeof o!="function")throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:o,async:r})}else r&&t.stack.push({async:!0});return e}var av=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var o=new Error(r);return o.name="SuppressedError",o.error=t,o.suppressed=e,o};function uv(t){function e(o){t.error=t.hasError?new av(o,t.error,"An error was suppressed during disposal."):o,t.hasError=!0}function r(){for(;t.stack.length;){var o=t.stack.pop();try{var n=o.dispose&&o.dispose.call(o.value);if(o.async)return Promise.resolve(n).then(r,function(i){return e(i),r()})}catch(i){e(i)}}if(t.hasError)throw t.error}return r()}var JA={__extends:Me,__assign:ju,__rest:jb,__decorate:zb,__param:Vb,__metadata:Gb,__awaiter:Vu,__generator:hn,__createBinding:zu,__exportStar:Kb,__values:dt,__read:Le,__spread:Qb,__spreadArrays:Jb,__spreadArray:Xe,__await:Pt,__asyncGenerator:Gu,__asyncDelegator:Xb,__asyncValues:Ku,__makeTemplateObject:Zb,__importStar:tv,__importDefault:rv,__classPrivateFieldGet:ov,__classPrivateFieldSet:nv,__classPrivateFieldIn:iv,__addDisposableResource:sv,__disposeResources:uv};function W(t){return typeof t=="function"}function ki(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 yn=ki(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
8
|
-
`+
|
|
9
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Or(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Ze=(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=dt(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(b){e={error:b}}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(b){i=b instanceof yn?b.errors:[b]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=dt(p),d=m.next();!d.done;d=m.next()){var h=d.value;try{jl(h)}catch(b){i=i??[],b instanceof yn?i=Xe(Xe([],Le(i)),Le(b.errors)):i.push(b)}}}catch(b){o={error:b}}finally{try{d&&!d.done&&(n=m.return)&&n.call(m)}finally{if(o)throw o.error}}}if(i)throw new yn(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)jl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Or(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Or(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),Qu=Ze.EMPTY;function Pi(t){return t instanceof Ze||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function jl(t){W(t)?t():t.unsubscribe()}var et={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var eo={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=eo.delegate;return n?.setTimeout?n.setTimeout.apply(n,Xe([t,e],Le(r))):setTimeout.apply(void 0,Xe([t,e],Le(r)))},clearTimeout:function(t){var e=eo.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ci(t){eo.setTimeout(function(){var e=et.onUnhandledError;if(e)e(t);else throw t})}function jt(){}var zl=(function(){return Ju("C",void 0,void 0)})();function Vl(t){return Ju("E",void 0,t)}function Gl(t){return Ju("N",t,void 0)}function Ju(t,e,r){return{kind:t,value:e,error:r}}var Mr=null;function to(t){if(et.useDeprecatedSynchronousErrorHandling){var e=!Mr;if(e&&(Mr={errorThrown:!1,error:null}),t(),e){var r=Mr,o=r.errorThrown,n=r.error;if(Mr=null,o)throw n}}else t()}function Kl(t){et.useDeprecatedSynchronousErrorHandling&&Mr&&(Mr.errorThrown=!0,Mr.error=t)}var _r=(function(t){Me(e,t);function e(r){var o=t.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Pi(r)&&r.add(o)):o.destination=pv,o}return e.create=function(r,o,n){return new xn(r,o,n)},e.prototype.next=function(r){this.isStopped?Zu(Gl(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?Zu(Vl(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?Zu(zl,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})(Ze),cv=Function.prototype.bind;function Xu(t,e){return cv.call(t,e)}var fv=(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){Ni(o)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(o){Ni(o)}else Ni(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Ni(r)}},t})(),xn=(function(t){Me(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&&et.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Xu(r.next,a),error:r.error&&Xu(r.error,a),complete:r.complete&&Xu(r.complete,a)}):s=r}return i.destination=new fv(s),i}return e})(_r);function Ni(t){et.useDeprecatedSynchronousErrorHandling?Kl(t):Ci(t)}function lv(t){throw t}function Zu(t,e){var r=et.onStoppedNotification;r&&eo.setTimeout(function(){return r(t,e)})}var pv={closed:!0,next:jt,error:lv,complete:jt};var Er=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function gn(t){return t}function mv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ec(t)}function ec(t){return t.length===0?gn:t.length===1?t[0]:function(r){return t.reduce(function(o,n){return n(o)},r)}}var ee=(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=hv(e)?e:new xn(e,r,o);return to(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=Ql(r),new r(function(n,i){var s=new xn({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[Er]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return ec(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Ql(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 Ql(t){var e;return(e=t??et.Promise)!==null&&e!==void 0?e:Promise}function dv(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function hv(t){return t&&t instanceof _r||dv(t)&&Pi(t)}function yv(t){return W(t?.lift)}function le(t){return function(e){if(yv(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 de(t,e,r,o,n){return new Jl(t,e,r,o,n)}var Jl=(function(t){Me(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})(_r);var tc=ki(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var ht=(function(t){Me(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 rc(this,this);return o.operator=r,o},e.prototype._throwIfClosed=function(){if(this.closed)throw new tc},e.prototype.next=function(r){var o=this;to(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=dt(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;to(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;to(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?Qu:(this.currentObservers=null,a.push(r),new Ze(function(){o.currentObservers=null,Or(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 ee;return r.source=this,r},e.create=function(r,o){return new rc(r,o)},e})(ee),rc=(function(t){Me(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:Qu},e})(ht);var bn={now:function(){return(bn.delegate||Date).now()},delegate:void 0};var Fi=(function(t){Me(e,t);function e(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=bn);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})(ht);var oc=(function(t){Me(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})(Ze);var vn={setInterval:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=vn.delegate;return n?.setInterval?n.setInterval.apply(n,Xe([t,e],Le(r))):setInterval.apply(void 0,Xe([t,e],Le(r)))},clearInterval:function(t){var e=vn.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var nc=(function(t){Me(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),vn.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&&vn.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,Or(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(oc);var wn=(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=bn.now,t})();var ic=(function(t){Me(e,t);function e(r,o){o===void 0&&(o=wn.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})(wn);var ro=new ic(nc),sc=ro;function $i(t){return t&&W(t.schedule)}function ac(t){return t[t.length-1]}function Ek(t){return W(ac(t))?t.pop():void 0}function oo(t){return $i(ac(t))?t.pop():void 0}function Ak(t,e){return typeof ac(t)=="number"?t.pop():e}var no=(function(t){return t&&typeof t.length=="number"&&typeof t!="function"});function Ri(t){return W(t?.then)}function Wi(t){return W(t[Er])}function Ui(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function Bi(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 xv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Li=xv();function qi(t){return W(t?.[Li])}function Yi(t){return Gu(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,Pt(r.read())];case 3:return o=s.sent(),n=o.value,i=o.done,i?[4,Pt(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Pt(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 Hi(t){return W(t?.getReader)}function ve(t){if(t instanceof ee)return t;if(t!=null){if(Wi(t))return gv(t);if(no(t))return bv(t);if(Ri(t))return vv(t);if(Ui(t))return Xl(t);if(qi(t))return wv(t);if(Hi(t))return Sv(t)}throw Bi(t)}function gv(t){return new ee(function(e){var r=t[Er]();if(W(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bv(t){return new ee(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function vv(t){return new ee(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Ci)})}function wv(t){return new ee(function(e){var r,o;try{for(var n=dt(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 Xl(t){return new ee(function(e){Dv(t,e).catch(function(r){return e.error(r)})})}function Sv(t){return Xl(Yi(t))}function Dv(t,e){var r,o,n,i;return Vu(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=Ku(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 tt(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 io(t,e){return e===void 0&&(e=0),le(function(r,o){r.subscribe(de(o,function(n){return tt(o,t,function(){return o.next(n)},e)},function(){return tt(o,t,function(){return o.complete()},e)},function(n){return tt(o,t,function(){return o.error(n)},e)}))})}function so(t,e){return e===void 0&&(e=0),le(function(r,o){o.add(t.schedule(function(){return r.subscribe(o)},e))})}function Zl(t,e){return ve(t).pipe(so(e),io(e))}function ep(t,e){return ve(t).pipe(so(e),io(e))}function tp(t,e){return new ee(function(r){var o=0;return e.schedule(function(){o===t.length?r.complete():(r.next(t[o++]),r.closed||this.schedule())})})}function rp(t,e){return new ee(function(r){var o;return tt(r,e,function(){o=t[Li](),tt(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 ji(t,e){if(!t)throw new Error("Iterable cannot be null");return new ee(function(r){tt(r,e,function(){var o=t[Symbol.asyncIterator]();tt(r,e,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function op(t,e){return ji(Yi(t),e)}function uc(t,e){if(t!=null){if(Wi(t))return Zl(t,e);if(no(t))return tp(t,e);if(Ri(t))return ep(t,e);if(Ui(t))return ji(t,e);if(qi(t))return rp(t,e);if(Hi(t))return op(t,e)}throw Bi(t)}function Ar(t,e){return e?uc(t,e):ve(t)}function cc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=oo(t);return Ar(t,r)}function np(t){return t instanceof Date&&!isNaN(t)}function zt(t,e){return le(function(r,o){var n=0;r.subscribe(de(o,function(i){o.next(t.call(e,i,n++))}))})}var Tv=Array.isArray;function Ov(t,e){return Tv(e)?t.apply(void 0,Xe([],Le(e))):t(e)}function ip(t){return zt(function(e){return Ov(t,e)})}function sp(t,e,r,o,n,i,s,a){var u=[],c=0,f=0,p=!1,m=function(){p&&!u.length&&!c&&e.complete()},d=function(b){return c<o?h(b):u.push(b)},h=function(b){i&&e.next(b),c++;var x=!1;ve(r(b,f++)).subscribe(de(e,function(O){n?.(O),i?d(O):e.next(O)},function(){x=!0},void 0,function(){if(x)try{c--;for(var O=function(){var v=u.shift();s?tt(e,s,function(){return h(v)}):h(v)};u.length&&c<o;)O();m()}catch(v){e.error(v)}}))};return t.subscribe(de(e,d,function(){p=!0,m()})),function(){a?.()}}function Ir(t,e,r){return r===void 0&&(r=1/0),W(e)?Ir(function(o,n){return zt(function(i,s){return e(o,i,n,s)})(ve(t(o,n)))},r):(typeof e=="number"&&(r=e),le(function(o,n){return sp(o,n,t,r)}))}function zi(t){return t===void 0&&(t=1/0),Ir(gn,t)}function Vi(){return zi(1)}function Gi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Vi()(Ar(t,oo(t)))}var Mv=["addListener","removeListener"],_v=["addEventListener","removeEventListener"],Ev=["on","off"];function kr(t,e,r,o){if(W(r)&&(o=r,r=void 0),o)return kr(t,e,r).pipe(ip(o));var n=Le(kv(t)?_v.map(function(a){return function(u){return t[a](e,u,r)}}):Av(t)?Mv.map(ap(t,e)):Iv(t)?Ev.map(ap(t,e)):[],2),i=n[0],s=n[1];if(!i&&no(t))return Ir(function(a){return kr(a,e,r)})(ve(t));if(!i)throw new TypeError("Invalid event target");return new ee(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 ap(t,e){return function(r){return function(o){return t[r](e,o)}}}function Av(t){return W(t.addListener)&&W(t.removeListener)}function Iv(t){return W(t.on)&&W(t.off)}function kv(t){return W(t.addEventListener)&&W(t.removeEventListener)}function fc(t,e,r){t===void 0&&(t=0),r===void 0&&(r=sc);var o=-1;return e!=null&&($i(e)?r=e:o=e),new ee(function(n){var i=np(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 Ki(t,e){return le(function(r,o){var n=0;r.subscribe(de(o,function(i){return t.call(e,i,n++)&&o.next(i)}))})}function Qi(t){return le(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(de(r,function(a){i?.unsubscribe(),o=!0,n=a,i=de(r,s,jt),ve(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){n=i=null}))})}function Ji(t,e){return e===void 0&&(e=ro),le(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(de(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 Xi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=oo(t);return le(function(o,n){(r?Gi(t,o,r):Gi(t,o)).subscribe(n)})}function Zi(t){return le(function(e,r){ve(t).subscribe(de(r,function(){return r.complete()},jt)),!r.closed&&e.subscribe(r)})}function es(t,e){return le(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,p=null,m=!1,d=function(){p?.unsubscribe(),p=null,u&&(x(),m&&o.complete())},h=function(){p=null,m&&o.complete()},b=function(O){return p=ve(t(O)).subscribe(de(o,d,h))},x=function(){if(c){c=!1;var O=f;f=null,o.next(O),!m&&b(O)}};r.subscribe(de(o,function(O){c=!0,f=O,!(p&&!p.closed)&&(s?x():b(O))},function(){m=!0,!(u&&c&&p&&!p.closed)&&o.complete()}))})}function ts(t,e,r){e===void 0&&(e=ro);var o=fc(t,e);return es(function(){return o},r)}var xS={debounce:Qi,debounceTime:Ji,map:zt,startWith:Xi,takeUntil:Zi,throttleTime:ts,filter:Ki};var lc=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=kr(e,r),i=new ht;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 ht,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var pc=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new ee(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=q.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let o=this.generator.next();this.internalPush(o.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};var ct={};oe(ct,{CronJob:()=>$n,CronManager:()=>_c,ExtendedDate:()=>Ec,HrtMeasurement:()=>Ac,Interval:()=>Ic,TimeStamp:()=>Po,Timer:()=>kc,getMilliSecondsAsHumanReadableAgoTime:()=>zD,getMilliSecondsAsHumanReadableString:()=>Mc,getMilliSecondsFromUnits:()=>Oc,units:()=>ir});var Tn={};oe(Tn,{Cron:()=>pp,CronDate:()=>Ye,CronPattern:()=>rs,scheduledJobs:()=>uo});function Pe(t,e,r,o,n,i,s,a){return Pe.fromTZ(Pe.tp(t,e,r,o,n,i,s),a)}Pe.fromTZISO=(t,e,r)=>Pe.fromTZ(gS(t,e),r),Pe.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),o=mc(t.tz,r),n=new Date(r.getTime()-o),i=mc(t.tz,n);if(i-o===0)return n;{let s=new Date(r.getTime()-i),a=mc(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}},Pe.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}},Pe.tp=(t,e,r,o,n,i,s)=>({y:t,m:e,d:r,h:o,i:n,s:i,tz:s});function mc(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 gS(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("+")?Pe.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Pe.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Pe.minitz=Pe;var dc=32,Sn=31|dc,up=[1,2,4,8,16],rs=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,Sn),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,p=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(p))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(p===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(p>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 m=c;m<=f;m+=p)this.setPart(e,m,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]|dc;else if(e===Sn)this.dayOfWeek[t]=Sn;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|up[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},cp=[31,28,31,30,31,30,31,31,30,31,30,31],Ct=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ye=class lp{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 lp)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&Sn&&up[s-1]&n)return!0;if(n&dc){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=Pe.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>cp[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=Pe.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(Pe.fromTZISO(e,this.tz))}findNext(e,r,o,n){let i=this[r],s;o.lastDayOfMonth&&(this.month!==1?s=cp[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&Sn)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,Ct[o][0],e,Ct[o][2]);if(n>1){let i=o+1;for(;i<Ct.length;)this[Ct[i][0]]=-Ct[i][2],i++;if(n===3)return this[Ct[o][1]]++,this[Ct[o][0]]=-Ct[o][2],this.apply(),this.recurse(e,r,0);if(this.apply())return this.recurse(e,r,o-1)}return o+=1,o>=Ct.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)):Pe.fromTZ(Pe.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function bS(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 Dn(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function vS(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var fp=30*1e3,uo=[],pp=class{name;options;_states;fn;constructor(t,e,r){let o,n;if(Dn(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(Dn(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=bS(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 rs("* * * * *")},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 rs(t,this.options.timezone),this.name){if(uo.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");uo.push(this)}return n!==void 0&&Dn(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=uo.indexOf(this);t>=0&&uo.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>fp&&(e=fp),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&vS(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){Dn(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&&Dn(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 Nn={};oe(Nn,{add:()=>Gt,addBusinessDays:()=>ps,addDays:()=>he,addHours:()=>ms,addISOWeekYears:()=>hs,addMilliseconds:()=>Kt,addMinutes:()=>po,addMonths:()=>xt,addQuarters:()=>mo,addSeconds:()=>ys,addWeeks:()=>Qt,addYears:()=>xs,areIntervalsOverlapping:()=>xp,clamp:()=>gp,closestIndexTo:()=>vs,closestTo:()=>bp,compareAsc:()=>Ne,compareDesc:()=>vp,constructFrom:()=>y,constructNow:()=>L,daysToWeeks:()=>wp,differenceInBusinessDays:()=>Sp,differenceInCalendarDays:()=>we,differenceInCalendarISOWeekYears:()=>Ss,differenceInCalendarISOWeeks:()=>Dp,differenceInCalendarMonths:()=>Cr,differenceInCalendarQuarters:()=>ho,differenceInCalendarWeeks:()=>Nr,differenceInCalendarYears:()=>Jt,differenceInDays:()=>yo,differenceInHours:()=>Fr,differenceInISOWeekYears:()=>Op,differenceInMilliseconds:()=>xo,differenceInMinutes:()=>$r,differenceInMonths:()=>Xt,differenceInQuarters:()=>Mp,differenceInSeconds:()=>wt,differenceInWeeks:()=>_p,differenceInYears:()=>Os,eachDayOfInterval:()=>Ms,eachHourOfInterval:()=>Ep,eachMinuteOfInterval:()=>Ap,eachMonthOfInterval:()=>Ip,eachQuarterOfInterval:()=>kp,eachWeekOfInterval:()=>Pp,eachWeekendOfInterval:()=>vo,eachWeekendOfMonth:()=>Cp,eachWeekendOfYear:()=>Np,eachYearOfInterval:()=>Fp,endOfDay:()=>go,endOfDecade:()=>$p,endOfHour:()=>Rp,endOfISOWeek:()=>Wp,endOfISOWeekYear:()=>Up,endOfMinute:()=>Bp,endOfMonth:()=>bo,endOfQuarter:()=>Lp,endOfSecond:()=>qp,endOfToday:()=>Yp,endOfTomorrow:()=>Hp,endOfWeek:()=>Es,endOfYear:()=>_s,endOfYesterday:()=>jp,format:()=>An,formatDate:()=>An,formatDistance:()=>Cs,formatDistanceStrict:()=>Ns,formatDistanceToNow:()=>rm,formatDistanceToNowStrict:()=>om,formatDuration:()=>nm,formatISO:()=>im,formatISO9075:()=>sm,formatISODuration:()=>am,formatRFC3339:()=>um,formatRFC7231:()=>cm,formatRelative:()=>fm,formatters:()=>_n,fromUnixTime:()=>lm,getDate:()=>Fs,getDay:()=>rr,getDayOfYear:()=>Is,getDaysInMonth:()=>$s,getDaysInYear:()=>pm,getDecade:()=>mm,getDefaultOptions:()=>Ws,getHours:()=>dm,getISODay:()=>Us,getISOWeek:()=>To,getISOWeekYear:()=>qe,getISOWeeksInYear:()=>hm,getMilliseconds:()=>ym,getMinutes:()=>xm,getMonth:()=>gm,getOverlappingDaysInIntervals:()=>bm,getQuarter:()=>Mn,getSeconds:()=>vm,getTime:()=>wm,getUnixTime:()=>Sm,getWeek:()=>Oo,getWeekOfMonth:()=>Dm,getWeekYear:()=>er,getWeeksInMonth:()=>Tm,getYear:()=>Om,hoursToMilliseconds:()=>Mm,hoursToMinutes:()=>_m,hoursToSeconds:()=>Em,interval:()=>Am,intervalToDuration:()=>Im,intlFormat:()=>km,intlFormatDistance:()=>Pm,isAfter:()=>Cm,isBefore:()=>Nm,isDate:()=>ws,isEqual:()=>Fm,isExists:()=>$m,isFirstDayOfMonth:()=>Rm,isFriday:()=>Wm,isFuture:()=>Um,isLastDayOfMonth:()=>Ts,isLeapYear:()=>Rs,isMatch:()=>Bm,isMonday:()=>Lm,isPast:()=>qm,isSameDay:()=>vt,isSameHour:()=>Ia,isSameISOWeek:()=>ka,isSameISOWeekYear:()=>Ym,isSameMinute:()=>Pa,isSameMonth:()=>Ca,isSameQuarter:()=>Na,isSameSecond:()=>Fa,isSameWeek:()=>Ao,isSameYear:()=>$a,isSaturday:()=>fs,isSunday:()=>ls,isThisHour:()=>Hm,isThisISOWeek:()=>jm,isThisMinute:()=>zm,isThisMonth:()=>Vm,isThisQuarter:()=>Gm,isThisSecond:()=>Km,isThisWeek:()=>Qm,isThisYear:()=>Jm,isThursday:()=>Xm,isToday:()=>Zm,isTomorrow:()=>ed,isTuesday:()=>td,isValid:()=>_e,isWednesday:()=>rd,isWeekend:()=>gt,isWithinInterval:()=>od,isYesterday:()=>nd,lastDayOfDecade:()=>id,lastDayOfISOWeek:()=>sd,lastDayOfISOWeekYear:()=>ad,lastDayOfMonth:()=>Bs,lastDayOfQuarter:()=>ud,lastDayOfWeek:()=>Ra,lastDayOfYear:()=>cd,lightFormat:()=>fd,lightFormatters:()=>Ke,longFormatters:()=>tr,max:()=>gs,milliseconds:()=>ld,millisecondsToHours:()=>pd,millisecondsToMinutes:()=>md,millisecondsToSeconds:()=>dd,min:()=>bs,minutesToHours:()=>hd,minutesToMilliseconds:()=>yd,minutesToSeconds:()=>xd,monthsToQuarters:()=>gd,monthsToYears:()=>bd,nextDay:()=>$e,nextFriday:()=>vd,nextMonday:()=>wd,nextSaturday:()=>Sd,nextSunday:()=>Dd,nextThursday:()=>Td,nextTuesday:()=>Od,nextWednesday:()=>Md,parse:()=>Aa,parseISO:()=>Ed,parseJSON:()=>Ad,parsers:()=>Ea,previousDay:()=>Re,previousFriday:()=>Id,previousMonday:()=>kd,previousSaturday:()=>Pd,previousSunday:()=>Cd,previousThursday:()=>Nd,previousTuesday:()=>Fd,previousWednesday:()=>$d,quartersToMonths:()=>Rd,quartersToYears:()=>Wd,roundToNearestHours:()=>Ud,roundToNearestMinutes:()=>Bd,secondsToHours:()=>Ld,secondsToMilliseconds:()=>qd,secondsToMinutes:()=>Yd,set:()=>Hd,setDate:()=>jd,setDay:()=>or,setDayOfYear:()=>zd,setDefaultOptions:()=>Vd,setHours:()=>Gd,setISODay:()=>pa,setISOWeek:()=>ia,setISOWeekYear:()=>ds,setMilliseconds:()=>Kd,setMinutes:()=>Qd,setMonth:()=>Io,setQuarter:()=>Jd,setSeconds:()=>Xd,setWeek:()=>oa,setWeekYear:()=>Zd,setYear:()=>eh,startOfDay:()=>bt,startOfDecade:()=>th,startOfHour:()=>In,startOfISOWeek:()=>pe,startOfISOWeekYear:()=>Ge,startOfMinute:()=>kn,startOfMonth:()=>Zt,startOfQuarter:()=>St,startOfSecond:()=>Pn,startOfToday:()=>rh,startOfTomorrow:()=>oh,startOfWeek:()=>Z,startOfWeekYear:()=>Rr,startOfYear:()=>wo,startOfYesterday:()=>nh,sub:()=>ih,subBusinessDays:()=>sh,subDays:()=>nr,subHours:()=>ah,subISOWeekYears:()=>Ds,subMilliseconds:()=>uh,subMinutes:()=>ch,subMonths:()=>Ua,subQuarters:()=>fh,subSeconds:()=>lh,subWeeks:()=>ph,subYears:()=>mh,toDate:()=>l,transpose:()=>Ls,weeksToDays:()=>dh,yearsToDays:()=>hh,yearsToMonths:()=>yh,yearsToQuarters:()=>xh});var ns=7,On=365.2425,wS=Math.pow(10,8)*24*60*60*1e3,$3=-wS,yt=6048e5,is=864e5,Ce=6e4,Ve=36e5,co=1e3,hc=525600,Vt=43200,fo=1440,ss=60,as=3,us=12,cs=4,Pr=3600,lo=60,os=Pr*24,mp=os*7,yc=os*365.2425,xc=yc/12,dp=xc*3,gc=Symbol.for("constructDateFrom");function y(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&gc in t?t[gc](e):t instanceof Date?new t.constructor(e):new Date(e)}var U3=y;function l(t,e){return y(e||t,t)}var q3=l;function he(t,e,r){let o=l(t,r?.in);return isNaN(e)?y(r?.in||t,NaN):(e&&o.setDate(o.getDate()+e),o)}var z3=he;function xt(t,e,r){let o=l(t,r?.in);if(isNaN(e))return y(r?.in||t,NaN);if(!e)return o;let n=o.getDate(),i=y(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)}var Q3=xt;function Gt(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),p=n||o?xt(f,n+o*12):f,m=s||i?he(p,s+i*7):p,d=u+a*60,b=(c+d*60)*1e3;return y(r?.in||t,+m+b)}var rU=Gt;function fs(t,e){return l(t,e?.in).getDay()===6}var iU=fs;function ls(t,e){return l(t,e?.in).getDay()===0}var uU=ls;function gt(t,e){let r=l(t,e?.in).getDay();return r===0||r===6}var lU=gt;function ps(t,e,r){let o=l(t,r?.in),n=gt(o,r);if(isNaN(e))return y(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),gt(o,r)||(u-=1);return n&>(o,r)&&e!==0&&(fs(o,r)&&o.setDate(o.getDate()+(s<0?2:-1)),ls(o,r)&&o.setDate(o.getDate()+(s<0?1:-2))),o.setHours(i),o}var gU=ps;function Kt(t,e,r){return y(r?.in||t,+l(t)+e)}var SU=Kt;function ms(t,e,r){return Kt(t,e*Ve,r)}var MU=ms;var hp={};function Q(){return hp}function yp(t){hp=t}function Z(t,e){let r=Q(),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}var kU=Z;function pe(t,e){return Z(t,{...e,weekStartsOn:1})}var NU=pe;function qe(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=y(r,0);n.setFullYear(o+1,0,4),n.setHours(0,0,0,0);let i=pe(n),s=y(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}var UU=qe;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=y.bind(null,t||e.find(o=>typeof o=="object"));return e.map(r)}function bt(t,e){let r=l(t,e?.in);return r.setHours(0,0,0,0),r}var zU=bt;function we(t,e,r){let[o,n]=C(r?.in,t,e),i=bt(o),s=bt(n),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/is)}var XU=we;function Ge(t,e){let r=qe(t,e),o=y(e?.in||t,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),pe(o)}var oB=Ge;function ds(t,e,r){let o=l(t,r?.in),n=we(o,Ge(o,r)),i=y(r?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),o=Ge(i),o.setDate(o.getDate()+n),o}var cB=ds;function hs(t,e,r){return ds(t,qe(t,r)+e,r)}var mB=hs;function po(t,e,r){let o=l(t,r?.in);return o.setTime(o.getTime()+e*Ce),o}var xB=po;function mo(t,e,r){return xt(t,e*3,r)}var vB=mo;function ys(t,e,r){return Kt(t,e*1e3,r)}var DB=ys;function Qt(t,e,r){return he(t,e*7,r)}var MB=Qt;function xs(t,e,r){return xt(t,e*12,r)}var AB=xs;function xp(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}var PB=xp;function gs(t,e){let r,o=e?.in;return t.forEach(n=>{!o&&typeof n=="object"&&(o=y.bind(null,n));let i=l(n,o);(!r||r<i||isNaN(+i))&&(r=i)}),y(o,r||NaN)}var $B=gs;function bs(t,e){let r,o=e?.in;return t.forEach(n=>{!o&&typeof n=="object"&&(o=y.bind(null,n));let i=l(n,o);(!r||r>i||isNaN(+i))&&(r=i)}),y(o,r||NaN)}var BB=bs;function gp(t,e,r){let[o,n,i]=C(r?.in,t,e.start,e.end);return bs([gs([o,n],r),i],r)}var jB=gp;function vs(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}var GB=vs;function bp(t,e,r){let[o,...n]=C(r?.in,t,...e),i=vs(o,n);if(typeof i=="number"&&isNaN(i))return y(o,NaN);if(i!==void 0)return n[i]}var ZB=bp;function Ne(t,e){let r=+l(t)-+l(e);return r<0?-1:r>0?1:r}var rL=Ne;function vp(t,e){let r=+l(t)-+l(e);return r>0?-1:r<0?1:r}var iL=vp;function L(t){return y(t,Date.now())}var uL=L;function wp(t){let e=Math.trunc(t/7);return e===0?0:e}var lL=wp;function vt(t,e,r){let[o,n]=C(r?.in,t,e);return+bt(o)==+bt(n)}var hL=vt;function ws(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}var xL=ws;function _e(t){return!(!ws(t)&&typeof t!="number"||isNaN(+l(t)))}var wL=_e;function Sp(t,e,r){let[o,n]=C(r?.in,t,e);if(!_e(o)||!_e(n))return NaN;let i=we(o,n),s=i<0?-1:1,a=Math.trunc(i/7),u=a*5,c=he(n,a*7);for(;!vt(o,c);)u+=gt(c,r)?0:s,c=he(c,s);return u===0?0:u}var AL=Sp;function Ss(t,e,r){let[o,n]=C(r?.in,t,e);return qe(o,r)-qe(n,r)}var CL=Ss;function Dp(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)/yt)}var UL=Dp;function Cr(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}var qL=Cr;function Mn(t,e){let r=l(t,e?.in);return Math.trunc(r.getMonth()/3)+1}var jL=Mn;function ho(t,e,r){let[o,n]=C(r?.in,t,e),i=o.getFullYear()-n.getFullYear(),s=Mn(o)-Mn(n);return i*4+s}var KL=ho;function Nr(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)/yt)}var tq=Nr;function Jt(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()-n.getFullYear()}var nq=Jt;function yo(t,e,r){let[o,n]=C(r?.in,t,e),i=Tp(o,n),s=Math.abs(we(o,n));o.setDate(o.getDate()-i*s);let a=+(Tp(o,n)===-i),u=i*(s-a);return u===0?0:u}function Tp(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}var uq=yo;function Fe(t){return e=>{let o=(t?Math[t]:Math.trunc)(e);return o===0?0:o}}function Fr(t,e,r){let[o,n]=C(r?.in,t,e),i=(+o-+n)/Ve;return Fe(r?.roundingMethod)(i)}var dq=Fr;function Ds(t,e,r){return hs(t,-e,r)}var xq=Ds;function Op(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(Ss(o,n,r)),a=Ds(o,i*s,r),u=+(Ne(a,n)===-i),c=i*(s-u);return c===0?0:c}var Dq=Op;function xo(t,e){return+l(t)-+l(e)}var Mq=xo;function $r(t,e,r){let o=xo(t,e)/Ce;return Fe(r?.roundingMethod)(o)}var kq=$r;function go(t,e){let r=l(t,e?.in);return r.setHours(23,59,59,999),r}var Nq=go;function bo(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}var Rq=bo;function Ts(t,e){let r=l(t,e?.in);return+go(r,e)==+bo(r,e)}var qq=Ts;function Xt(t,e,r){let[o,n,i]=C(r?.in,t,t,e),s=Ne(n,i),a=Math.abs(Cr(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;Ts(o)&&a===1&&Ne(o,i)===1&&(u=!1);let c=s*(a-+u);return c===0?0:c}var Gq=Xt;function Mp(t,e,r){let o=Xt(t,e,r)/3;return Fe(r?.roundingMethod)(o)}var Xq=Mp;function wt(t,e,r){let o=xo(t,e)/1e3;return Fe(r?.roundingMethod)(o)}var rY=wt;function _p(t,e,r){let o=yo(t,e,r)/7;return Fe(r?.roundingMethod)(o)}var sY=_p;function Os(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(Jt(o,n));o.setFullYear(1584),n.setFullYear(1584);let a=Ne(o,n)===-i,u=i*(s-+a);return u===0?0:u}var lY=Os;function Se(t,e){let[r,o]=C(t,e.start,e.end);return{start:r,end:o}}function Ms(t,e){let{start:r,end:o}=Se(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(y(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return n?u.reverse():u}var xY=Ms;function Ep(t,e){let{start:r,end:o}=Se(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(y(r,s)),s.setHours(s.getHours()+a);return n?u.reverse():u}var wY=Ep;function Ap(t,e){let{start:r,end:o}=Se(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(y(r,s)),s=po(s,a);return n?u.reverse():u}var MY=Ap;function Ip(t,e){let{start:r,end:o}=Se(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(y(r,s)),s.setMonth(s.getMonth()+a);return n?u.reverse():u}var IY=Ip;function St(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}var CY=St;function kp(t,e){let{start:r,end:o}=Se(e?.in,t),n=+r>+o,i=n?+St(r):+St(o),s=n?St(o):St(r),a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(y(r,s)),s=mo(s,a);return n?u.reverse():u}var UY=kp;function Pp(t,e){let{start:r,end:o}=Se(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(y(r,u)),u=Qt(u,c),u.setHours(15);return n?f.reverse():f}var jY=Pp;function vo(t,e){let{start:r,end:o}=Se(e?.in,t),n=Ms({start:r,end:o},e),i=[],s=0;for(;s<n.length;){let a=n[s++];gt(a)&&i.push(y(r,a))}return i}var JY=vo;function Zt(t,e){let r=l(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}var e6=Zt;function Cp(t,e){let r=Zt(t,e),o=bo(t,e);return vo({start:r,end:o},e)}var i6=Cp;function _s(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}var u6=_s;function wo(t,e){let r=l(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var l6=wo;function Np(t,e){let r=wo(t,e),o=_s(t,e);return vo({start:r,end:o},e)}var y6=Np;function Fp(t,e){let{start:r,end:o}=Se(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(y(r,s)),s.setFullYear(s.getFullYear()+a);return n?u.reverse():u}var v6=Fp;function $p(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}var D6=$p;function Rp(t,e){let r=l(t,e?.in);return r.setMinutes(59,59,999),r}var M6=Rp;function Es(t,e){let r=Q(),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}var I6=Es;function Wp(t,e){return Es(t,{...e,weekStartsOn:1})}var C6=Wp;function Up(t,e){let r=qe(t,e),o=y(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}var W6=Up;function Bp(t,e){let r=l(t,e?.in);return r.setSeconds(59,999),r}var L6=Bp;function Lp(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}var H6=Lp;function qp(t,e){let r=l(t,e?.in);return r.setMilliseconds(999),r}var V6=qp;function Yp(t){return go(Date.now(),t)}var Q6=Yp;function Hp(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}var Z6=Hp;function jp(t){let e=L(t?.in),r=y(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}var oH=jp;var SS={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"}},zp=(t,e,r)=>{let o,n=SS[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 As(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var DS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},TS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},OS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vp={date:As({formats:DS,defaultWidth:"full"}),time:As({formats:TS,defaultWidth:"full"}),dateTime:As({formats:OS,defaultWidth:"full"})};var MS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gp=(t,e,r,o)=>MS[t];function So(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 _S={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ES={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AS={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"]},IS={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"]},kS={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"}},PS={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"}},CS=(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"},Kp={ordinalNumber:CS,era:So({values:_S,defaultWidth:"wide"}),quarter:So({values:ES,defaultWidth:"wide",argumentCallback:t=>t-1}),month:So({values:AS,defaultWidth:"wide"}),day:So({values:IS,defaultWidth:"wide"}),dayPeriod:So({values:kS,defaultWidth:"wide",formattingValues:PS,defaultFormattingWidth:"wide"})};function Do(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)?FS(a,p=>p.test(s)):NS(a,p=>p.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 NS(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function FS(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function Qp(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 $S=/^(\d+)(th|st|nd|rd)?/i,RS=/\d+/i,WS={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},US={any:[/^b/i,/^(a|c)/i]},BS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},LS={any:[/1/i,/2/i,/3/i,/4/i]},qS={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},YS={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]},HS={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},jS={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]},zS={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},VS={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}},Jp={ordinalNumber:Qp({matchPattern:$S,parsePattern:RS,valueCallback:t=>parseInt(t,10)}),era:Do({matchPatterns:WS,defaultMatchWidth:"wide",parsePatterns:US,defaultParseWidth:"any"}),quarter:Do({matchPatterns:BS,defaultMatchWidth:"wide",parsePatterns:LS,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Do({matchPatterns:qS,defaultMatchWidth:"wide",parsePatterns:YS,defaultParseWidth:"any"}),day:Do({matchPatterns:HS,defaultMatchWidth:"wide",parsePatterns:jS,defaultParseWidth:"any"}),dayPeriod:Do({matchPatterns:zS,defaultMatchWidth:"any",parsePatterns:VS,defaultParseWidth:"any"})};var He={code:"en-US",formatDistance:zp,formatLong:Vp,formatRelative:Gp,localize:Kp,match:Jp,options:{weekStartsOn:0,firstWeekContainsDate:1}},DH=He;function Is(t,e){let r=l(t,e?.in);return we(r,wo(r))+1}var IH=Is;function To(t,e){let r=l(t,e?.in),o=+pe(r)-+Ge(r);return Math.round(o/yt)+1}var $H=To;function er(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=Q(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=y(e?.in||t,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);let a=Z(s,e),u=y(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}var qH=er;function Rr(t,e){let r=Q(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=er(t,e),i=y(e?.in||t,0);return i.setFullYear(n,0,o),i.setHours(0,0,0,0),Z(i,e)}var GH=Rr;function Oo(t,e){let r=l(t,e?.in),o=+Z(r,e)-+Rr(r,e);return Math.round(o/yt)+1}var ej=Oo;function I(t,e){let r=t<0?"-":"",o=Math.abs(t).toString().padStart(e,"0");return r+o}var Ke={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 Mo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_n={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 Ke.y(t,e)},Y:function(t,e,r,o){let n=er(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=qe(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 Ke.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=Oo(t,o);return e==="wo"?r.ordinalNumber(n,{unit:"week"}):I(n,e.length)},I:function(t,e,r){let o=To(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"}):Ke.d(t,e)},D:function(t,e,r){let o=Is(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=Mo.noon:o===0?n=Mo.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=Mo.evening:o>=12?n=Mo.afternoon:o>=4?n=Mo.morning:n=Mo.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 Ke.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Ke.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"}):Ke.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Ke.s(t,e)},S:function(t,e){return Ke.S(t,e)},X:function(t,e,r){let o=t.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Zp(o);case"XXXX":case"XX":return Wr(o);case"XXXXX":case"XXX":default:return Wr(o,":")}},x:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"x":return Zp(o);case"xxxx":case"xx":return Wr(o);case"xxxxx":case"xxx":default:return Wr(o,":")}},O:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Xp(o,":");case"OOOO":default:return"GMT"+Wr(o,":")}},z:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Xp(o,":");case"zzzz":default:return"GMT"+Wr(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 Xp(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 Zp(t,e){return t%60===0?(t>0?"-":"+")+I(Math.abs(t)/60,2):Wr(t,e)}function Wr(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 em=(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"})}},tm=(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"})}},GS=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return em(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}}",em(o,e)).replace("{{time}}",tm(n,e))},tr={p:tm,P:GS};var KS=/^D+$/,QS=/^Y+$/,JS=["D","DD","YY","YYYY"];function ks(t){return KS.test(t)}function Ps(t){return QS.test(t)}function En(t,e,r){let o=XS(t,e,r);if(console.warn(o),JS.includes(t))throw new RangeError(o)}function XS(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 ZS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tD=/^'([^]*?)'?$/,rD=/''/g,oD=/[a-zA-Z]/;function An(t,e,r){let o=Q(),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(!_e(a))throw new RangeError("Invalid time value");let u=e.match(eD).map(f=>{let p=f[0];if(p==="p"||p==="P"){let m=tr[p];return m(f,n.formatLong)}return f}).join("").match(ZS).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:nD(f)};if(_n[p])return{isToken:!0,value:f};if(p.match(oD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");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 p=f.value;(!r?.useAdditionalWeekYearTokens&&Ps(p)||!r?.useAdditionalDayOfYearTokens&&ks(p))&&En(p,e,String(t));let m=_n[p[0]];return m(a,p,n.localize,c)}).join("")}function nD(t){let e=t.match(tD);return e?e[1].replace(rD,"'"):t}var Sj=An;function Cs(t,e,r){let o=Q(),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=wt(c,u),p=(ae(c)-ae(u))/1e3,m=Math.round((f-p)/60),d;if(m<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):m===0?n.formatDistance("lessThanXMinutes",1,a):n.formatDistance("xMinutes",m,a);if(m<45)return n.formatDistance("xMinutes",m,a);if(m<90)return n.formatDistance("aboutXHours",1,a);if(m<fo){let h=Math.round(m/60);return n.formatDistance("aboutXHours",h,a)}else{if(m<i)return n.formatDistance("xDays",1,a);if(m<Vt){let h=Math.round(m/fo);return n.formatDistance("xDays",h,a)}else if(m<Vt*2)return d=Math.round(m/Vt),n.formatDistance("aboutXMonths",d,a)}if(d=Xt(c,u),d<12){let h=Math.round(m/Vt);return n.formatDistance("xMonths",h,a)}else{let h=d%12,b=Math.trunc(d/12);return h<3?n.formatDistance("aboutXYears",b,a):h<9?n.formatDistance("overXYears",b,a):n.formatDistance("almostXYears",b+1,a)}}var Pj=Cs;function Ns(t,e,r){let o=Q(),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=Fe(r?.roundingMethod??"round"),f=u.getTime()-a.getTime(),p=f/Ce,m=ae(u)-ae(a),d=(f-m)/Ce,h=r?.unit,b;if(h?b=h:p<1?b="second":p<60?b="minute":p<fo?b="hour":d<Vt?b="day":d<hc?b="month":b="year",b==="second"){let x=c(f/1e3);return n.formatDistance("xSeconds",x,s)}else if(b==="minute"){let x=c(p);return n.formatDistance("xMinutes",x,s)}else if(b==="hour"){let x=c(p/60);return n.formatDistance("xHours",x,s)}else if(b==="day"){let x=c(d/fo);return n.formatDistance("xDays",x,s)}else if(b==="month"){let x=c(d/Vt);return x===12&&h!=="month"?n.formatDistance("xYears",1,s):n.formatDistance("xMonths",x,s)}else{let x=c(d/hc);return n.formatDistance("xYears",x,s)}}var Lj=Ns;function rm(t,e){return Cs(t,L(t),e)}var jj=rm;function om(t,e){return Ns(t,L(t),e)}var Kj=om;var iD=["years","months","weeks","days","hours","minutes","seconds"];function nm(t,e){let r=Q(),o=e?.locale??r.locale??He,n=e?.format??iD,i=e?.zero??!1,s=e?.delimiter??" ";return o.formatDistance?n.reduce((u,c)=>{let f=`x${c.replace(/(^.)/,m=>m.toUpperCase())}`,p=t[c];return p!==void 0&&(i||t[c])?u.concat(o.formatDistance(f,p)):u},[]).join(s):""}var Zj=nm;function im(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 b=Math.abs(c),x=I(Math.trunc(b/60),2),O=I(b%60,2);s=`${c<0?"+":"-"}${x}:${O}`}else s="Z";let f=I(r.getHours(),2),p=I(r.getMinutes(),2),m=I(r.getSeconds(),2),d=i===""?"":"T",h=[f,p,m].join(u);i=`${i}${d}${h}${s}`}return i}var o5=im;function sm(t,e){let r=l(t,e?.in);if(!_e(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}var u5=sm;function am(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`}var f5=am;function um(t,e){let r=l(t,e?.in);if(!_e(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(),h=Math.trunc(d*Math.pow(10,o-3));f="."+I(h,o)}let p="",m=r.getTimezoneOffset();if(m!==0){let d=Math.abs(m),h=I(Math.trunc(d/60),2),b=I(d%60,2);p=`${m<0?"+":"-"}${h}:${b}`}else p="Z";return`${s}-${i}-${n}T${a}:${u}:${c}${f}${p}`}var h5=um;var sD=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],aD=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function cm(t){let e=l(t);if(!_e(e))throw new RangeError("Invalid time value");let r=sD[e.getUTCDay()],o=I(e.getUTCDate(),2),n=aD[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`}var v5=cm;function fm(t,e,r){let[o,n]=C(r?.in,t,e),i=Q(),s=r?.locale??i.locale??He,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,u=we(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 An(o,f,{locale:s,weekStartsOn:a})}var _5=fm;function lm(t,e){return l(t*1e3,e?.in)}var I5=lm;function Fs(t,e){return l(t,e?.in).getDate()}var C5=Fs;function rr(t,e){return l(t,e?.in).getDay()}var $5=rr;function $s(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=r.getMonth(),i=y(r,0);return i.setFullYear(o,n+1,0),i.setHours(0,0,0,0),i.getDate()}var B5=$s;function Rs(t,e){let o=l(t,e?.in).getFullYear();return o%400===0||o%4===0&&o%100!==0}var Y5=Rs;function pm(t,e){let r=l(t,e?.in);return Number.isNaN(+r)?NaN:Rs(r)?366:365}var V5=pm;function mm(t,e){let o=l(t,e?.in).getFullYear();return Math.floor(o/10)*10}var Q5=mm;function Ws(){return Object.assign({},Q())}var Z5=Ws;function dm(t,e){return l(t,e?.in).getHours()}var r8=dm;function Us(t,e){let r=l(t,e?.in).getDay();return r===0?7:r}var i8=Us;function hm(t,e){let r=Ge(t,e),n=+Ge(Qt(r,60))-+r;return Math.round(n/yt)}var f8=hm;function ym(t){return l(t).getMilliseconds()}var m8=ym;function xm(t,e){return l(t,e?.in).getMinutes()}var y8=xm;function gm(t,e){return l(t,e?.in).getMonth()}var b8=gm;function bm(t,e){let[r,o]=[+l(t.start),+l(t.end)].sort((p,m)=>p-m),[n,i]=[+l(e.start),+l(e.end)].sort((p,m)=>p-m);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)/is)}var T8=bm;function vm(t){return l(t).getSeconds()}var _8=vm;function wm(t){return+l(t)}var I8=wm;function Sm(t){return Math.trunc(+l(t)/1e3)}var C8=Sm;function Dm(t,e){let r=Q(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=Fs(l(t,e?.in));if(isNaN(n))return NaN;let i=rr(Zt(t,e)),s=o-i;s<=0&&(s+=7);let a=n-s;return Math.ceil(a/7)+1}var B8=Dm;function Bs(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)}var Y8=Bs;function Tm(t,e){let r=l(t,e?.in);return Nr(Bs(r,e),Zt(r,e),e)+1}var K8=Tm;function Om(t,e){return l(t,e?.in).getFullYear()}var X8=Om;function Mm(t){return Math.trunc(t*Ve)}var t4=Mm;function _m(t){return Math.trunc(t*ss)}var n4=_m;function Em(t){return Math.trunc(t*Pr)}var a4=Em;function Am(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}}var f4=Am;function Im(t,e){let{start:r,end:o}=Se(e?.in,t),n={},i=Os(o,r);i&&(n.years=i);let s=Gt(r,{years:n.years}),a=Xt(o,s);a&&(n.months=a);let u=Gt(s,{months:n.months}),c=yo(o,u);c&&(n.days=c);let f=Gt(u,{days:n.days}),p=Fr(o,f);p&&(n.hours=p);let m=Gt(f,{hours:n.hours}),d=$r(o,m);d&&(n.minutes=d);let h=Gt(m,{minutes:n.minutes}),b=wt(o,h);return b&&(n.seconds=b),n}var v4=Im;function km(t,e,r){let o;return uD(e)?o=e:r=e,new Intl.DateTimeFormat(r?.locale,o).format(l(t))}function uD(t){return t!==void 0&&!("locale"in t)}var D4=km;function Pm(t,e,r){let o=0,n,[i,s]=C(r?.in,t,e);if(r?.unit)n=r?.unit,n==="second"?o=wt(i,s):n==="minute"?o=$r(i,s):n==="hour"?o=Fr(i,s):n==="day"?o=we(i,s):n==="week"?o=Nr(i,s):n==="month"?o=Cr(i,s):n==="quarter"?o=ho(i,s):n==="year"&&(o=Jt(i,s));else{let u=wt(i,s);Math.abs(u)<lo?(o=wt(i,s),n="second"):Math.abs(u)<Pr?(o=$r(i,s),n="minute"):Math.abs(u)<os&&Math.abs(we(i,s))<1?(o=Fr(i,s),n="hour"):Math.abs(u)<mp&&(o=we(i,s))&&Math.abs(o)<7?n="day":Math.abs(u)<xc?(o=Nr(i,s),n="week"):Math.abs(u)<dp?(o=Cr(i,s),n="month"):Math.abs(u)<yc?ho(i,s)<4?(o=ho(i,s),n="quarter"):(o=Jt(i,s),n="year"):(o=Jt(i,s),n="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(o,n)}var F4=Pm;function Cm(t,e){return+l(t)>+l(e)}var W4=Cm;function Nm(t,e){return+l(t)<+l(e)}var L4=Nm;function Fm(t,e){return+l(t)==+l(e)}var H4=Fm;function $m(t,e,r){let o=new Date(t,e,r);return o.getFullYear()===t&&o.getMonth()===e&&o.getDate()===r}var z4=$m;function Rm(t,e){return l(t,e?.in).getDate()===1}var K4=Rm;function Wm(t,e){return l(t,e?.in).getDay()===5}var X4=Wm;function Um(t){return+l(t)>Date.now()}var tz=Um;function Ls(t,e){let r=cD(e)?new e(0):y(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}function cD(t){return typeof t=="function"&&t.prototype?.constructor===t}var nz=Ls;var fD=10,qs=class{subPriority=0;validate(e,r){return!0}},Ys=class extends qs{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)}},Hs=class extends qs{priority=fD;subPriority=-1;constructor(e,r){super(),this.context=e||(o=>y(r,o))}set(e,r){return r.timestampIsSet?e:y(e,Ls(e,this.context))}};var E=class{run(e,r,o,n){let i=this.parse(e,r,o,n);return i?{setter:new Ys(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,r,o){return!0}};var js=class extends E{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 V={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}/},ot={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 J(t,e){return t&&{value:e(t.value),rest:t.rest}}function z(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function nt(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*Ve+i*Ce+s*co),rest:e.slice(r[0].length)}}function zs(t){return z(V.anyDigitsSigned,t)}function U(t,e){switch(t){case 1:return z(V.singleDigit,e);case 2:return z(V.twoDigits,e);case 3:return z(V.threeDigits,e);case 4:return z(V.fourDigits,e);default:return z(new RegExp("^\\d{1,"+t+"}"),e)}}function _o(t,e){switch(t){case 1:return z(V.singleDigitSigned,e);case 2:return z(V.twoDigitsSigned,e);case 3:return z(V.threeDigitsSigned,e);case 4:return z(V.fourDigitsSigned,e);default:return z(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Eo(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 Vs(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 Gs(t){return t%400===0||t%4===0&&t%100!==0}var Ks=class extends E{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 J(U(4,e),n);case"yo":return J(o.ordinalNumber(e,{unit:"year"}),n);default:return J(U(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=Vs(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 Qs=class extends E{priority=130;parse(e,r,o){let n=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return J(U(4,e),n);case"Yo":return J(o.ordinalNumber(e,{unit:"year"}),n);default:return J(U(r.length,e),n)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o,n){let i=er(e,n);if(o.isTwoDigitYear){let a=Vs(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 Js=class extends E{priority=130;parse(e,r){return r==="R"?_o(4,e):_o(r.length,e)}set(e,r,o){let n=y(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 Xs=class extends E{priority=130;parse(e,r){return r==="u"?_o(4,e):_o(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 Zs=class extends E{priority=120;parse(e,r,o){switch(r){case"Q":case"QQ":return U(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 ea=class extends E{priority=120;parse(e,r,o){switch(r){case"q":case"qq":return U(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 ta=class extends E{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 J(z(V.month,e),n);case"MM":return J(U(2,e),n);case"Mo":return J(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 ra=class extends E{priority=110;parse(e,r,o){let n=i=>i-1;switch(r){case"L":return J(z(V.month,e),n);case"LL":return J(U(2,e),n);case"Lo":return J(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 oa(t,e,r){let o=l(t,r?.in),n=Oo(o,r)-e;return o.setDate(o.getDate()-n*7),l(o,r?.in)}var Kz=oa;var na=class extends E{priority=100;parse(e,r,o){switch(r){case"w":return z(V.week,e);case"wo":return o.ordinalNumber(e,{unit:"week"});default:return U(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o,n){return Z(oa(e,o,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function ia(t,e,r){let o=l(t,r?.in),n=To(o,r)-e;return o.setDate(o.getDate()-n*7),o}var i9=ia;var sa=class extends E{priority=100;parse(e,r,o){switch(r){case"I":return z(V.week,e);case"Io":return o.ordinalNumber(e,{unit:"week"});default:return U(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o){return pe(ia(e,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var lD=[31,28,31,30,31,30,31,31,30,31,30,31],pD=[31,29,31,30,31,30,31,31,30,31,30,31],aa=class extends E{priority=90;subPriority=1;parse(e,r,o){switch(r){case"d":return z(V.date,e);case"do":return o.ordinalNumber(e,{unit:"date"});default:return U(r.length,e)}}validate(e,r){let o=e.getFullYear(),n=Gs(o),i=e.getMonth();return n?r>=1&&r<=pD[i]:r>=1&&r<=lD[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 ua=class extends E{priority=90;subpriority=1;parse(e,r,o){switch(r){case"D":case"DD":return z(V.dayOfYear,e);case"Do":return o.ordinalNumber(e,{unit:"date"});default:return U(r.length,e)}}validate(e,r){let o=e.getFullYear();return Gs(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 or(t,e,r){let o=Q(),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 he(i,f,r)}var T9=or;var ca=class extends E{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=or(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var fa=class extends E{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 J(U(r.length,e),i);case"eo":return J(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=or(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 la=class extends E{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 J(U(r.length,e),i);case"co":return J(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=or(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 pa(t,e,r){let o=l(t,r?.in),n=Us(o,r),i=e-n;return he(o,i,r)}var B9=pa;var ma=class extends E{priority=90;parse(e,r,o){let n=i=>i===0?7:i;switch(r){case"i":case"ii":return U(r.length,e);case"io":return o.ordinalNumber(e,{unit:"day"});case"iii":return J(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 J(o.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return J(o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n);case"iiii":default:return J(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=pa(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 da=class extends E{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(Eo(o),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var ha=class extends E{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(Eo(o),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var ya=class extends E{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(Eo(o),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var xa=class extends E{priority=70;parse(e,r,o){switch(r){case"h":return z(V.hour12h,e);case"ho":return o.ordinalNumber(e,{unit:"hour"});default:return U(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 ga=class extends E{priority=70;parse(e,r,o){switch(r){case"H":return z(V.hour23h,e);case"Ho":return o.ordinalNumber(e,{unit:"hour"});default:return U(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 ba=class extends E{priority=70;parse(e,r,o){switch(r){case"K":return z(V.hour11h,e);case"Ko":return o.ordinalNumber(e,{unit:"hour"});default:return U(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 va=class extends E{priority=70;parse(e,r,o){switch(r){case"k":return z(V.hour24h,e);case"ko":return o.ordinalNumber(e,{unit:"hour"});default:return U(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 wa=class extends E{priority=60;parse(e,r,o){switch(r){case"m":return z(V.minute,e);case"mo":return o.ordinalNumber(e,{unit:"minute"});default:return U(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 Sa=class extends E{priority=50;parse(e,r,o){switch(r){case"s":return z(V.second,e);case"so":return o.ordinalNumber(e,{unit:"second"});default:return U(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 Da=class extends E{priority=30;parse(e,r){let o=n=>Math.trunc(n*Math.pow(10,-r.length+3));return J(U(r.length,e),o)}set(e,r,o){return e.setMilliseconds(o),e}incompatibleTokens=["t","T"]};var Ta=class extends E{priority=10;parse(e,r){switch(r){case"X":return nt(ot.basicOptionalMinutes,e);case"XX":return nt(ot.basic,e);case"XXXX":return nt(ot.basicOptionalSeconds,e);case"XXXXX":return nt(ot.extendedOptionalSeconds,e);case"XXX":default:return nt(ot.extended,e)}}set(e,r,o){return r.timestampIsSet?e:y(e,e.getTime()-ae(e)-o)}incompatibleTokens=["t","T","x"]};var Oa=class extends E{priority=10;parse(e,r){switch(r){case"x":return nt(ot.basicOptionalMinutes,e);case"xx":return nt(ot.basic,e);case"xxxx":return nt(ot.basicOptionalSeconds,e);case"xxxxx":return nt(ot.extendedOptionalSeconds,e);case"xxx":default:return nt(ot.extended,e)}}set(e,r,o){return r.timestampIsSet?e:y(e,e.getTime()-ae(e)-o)}incompatibleTokens=["t","T","X"]};var Ma=class extends E{priority=40;parse(e){return zs(e)}set(e,r,o){return[y(e,o*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var _a=class extends E{priority=20;parse(e){return zs(e)}set(e,r,o){return[y(e,o),{timestampIsSet:!0}]}incompatibleTokens="*"};var Ea={G:new js,y:new Ks,Y:new Qs,R:new Js,u:new Xs,Q:new Zs,q:new ea,M:new ta,L:new ra,w:new na,I:new sa,d:new aa,D:new ua,E:new ca,e:new fa,c:new la,i:new ma,a:new da,b:new ha,B:new ya,h:new xa,H:new ga,K:new ba,k:new va,m:new wa,s:new Sa,S:new Da,X:new Ta,x:new Oa,t:new Ma,T:new _a};var mD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hD=/^'([^]*?)'?$/,yD=/''/g,xD=/\S/,gD=/[a-zA-Z]/;function Aa(t,e,r,o){let n=()=>y(o?.in||r,NaN),i=Ws(),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 Hs(o?.in,r)],p=e.match(dD).map(x=>{let O=x[0];if(O in tr){let v=tr[O];return v(x,s.formatLong)}return x}).join("").match(mD),m=[];for(let x of p){!o?.useAdditionalWeekYearTokens&&Ps(x)&&En(x,e,t),!o?.useAdditionalDayOfYearTokens&&ks(x)&&En(x,e,t);let O=x[0],v=Ea[O];if(v){let{incompatibleTokens:D}=v;if(Array.isArray(D)){let H=m.find(G=>D.includes(G.token)||G.token===O);if(H)throw new RangeError(`The format string mustn't contain \`${H.fullToken}\` and \`${x}\` at the same time`)}else if(v.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);m.push({token:O,fullToken:x});let N=v.run(t,x,s.match,c);if(!N)return n();f.push(N.setter),t=N.rest}else{if(O.match(gD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");if(x==="''"?x="'":O==="'"&&(x=bD(x)),t.indexOf(x)===0)t=t.slice(x.length);else return n()}}if(t.length>0&&xD.test(t))return n();let d=f.map(x=>x.priority).sort((x,O)=>O-x).filter((x,O,v)=>v.indexOf(x)===O).map(x=>f.filter(O=>O.priority===x).sort((O,v)=>v.subPriority-O.subPriority)).map(x=>x[0]),h=l(r,o?.in);if(isNaN(+h))return n();let b={};for(let x of d){if(!x.validate(h,c))return n();let O=x.set(h,b,c);Array.isArray(O)?(h=O[0],Object.assign(b,O[1])):h=O}return h}function bD(t){return t.match(hD)[1].replace(yD,"'")}var NG=Aa;function Bm(t,e,r){return _e(Aa(t,e,new Date,r))}var WG=Bm;function Lm(t,e){return l(t,e?.in).getDay()===1}var LG=Lm;function qm(t){return+l(t)<Date.now()}var HG=qm;function In(t,e){let r=l(t,e?.in);return r.setMinutes(0,0,0),r}var VG=In;function Ia(t,e,r){let[o,n]=C(r?.in,t,e);return+In(o)==+In(n)}var JG=Ia;function Ao(t,e,r){let[o,n]=C(r?.in,t,e);return+Z(o,r)==+Z(n,r)}var tK=Ao;function ka(t,e,r){return Ao(t,e,{...r,weekStartsOn:1})}var nK=ka;function Ym(t,e,r){let[o,n]=C(r?.in,t,e);return+Ge(o)==+Ge(n)}var uK=Ym;function kn(t,e){let r=l(t,e?.in);return r.setSeconds(0,0),r}var lK=kn;function Pa(t,e){return+kn(t)==+kn(e)}var dK=Pa;function Ca(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()&&o.getMonth()===n.getMonth()}var xK=Ca;function Na(t,e,r){let[o,n]=C(r?.in,t,e);return+St(o)==+St(n)}var wK=Na;function Pn(t,e){let r=l(t,e?.in);return r.setMilliseconds(0),r}var TK=Pn;function Fa(t,e){return+Pn(t)==+Pn(e)}var _K=Fa;function $a(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()}var IK=$a;function Hm(t,e){return Ia(l(t,e?.in),L(e?.in||t))}var FK=Hm;function jm(t,e){return ka(y(e?.in||t,t),L(e?.in||t))}var BK=jm;function zm(t){return Pa(t,L(t))}var HK=zm;function Vm(t,e){return Ca(y(e?.in||t,t),L(e?.in||t))}var KK=Vm;function Gm(t,e){return Na(y(e?.in||t,t),L(e?.in||t))}var e7=Gm;function Km(t){return Fa(t,L(t))}var n7=Km;function Qm(t,e){return Ao(y(e?.in||t,t),L(e?.in||t),e)}var c7=Qm;function Jm(t,e){return $a(y(e?.in||t,t),L(e?.in||t))}var d7=Jm;function Xm(t,e){return l(t,e?.in).getDay()===4}var x7=Xm;function Zm(t,e){return vt(y(e?.in||t,t),L(e?.in||t))}var S7=Zm;function ed(t,e){return vt(t,he(L(e?.in||t),1),e)}var _7=ed;function td(t,e){return l(t,e?.in).getDay()===2}var I7=td;function rd(t,e){return l(t,e?.in).getDay()===3}var C7=rd;function od(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}var $7=od;function nr(t,e,r){return he(t,-e,r)}var U7=nr;function nd(t,e){return vt(y(e?.in||t,t),nr(L(e?.in||t),1))}var j7=nd;function id(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)}var G7=id;function Ra(t,e){let r=Q(),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}var X7=Ra;function sd(t,e){return Ra(t,{...e,weekStartsOn:1})}var tQ=sd;function ad(t,e){let r=qe(t,e),o=y(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}var sQ=ad;function ud(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}var cQ=ud;function cd(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 pQ=cd;var vD=/(\w)\1*|''|'(''|[^'])+('|$)|./g,wD=/^'([^]*?)'?$/,SD=/''/g,DD=/[a-zA-Z]/;function fd(t,e){let r=l(t);if(!_e(r))throw new RangeError("Invalid time value");let o=e.match(vD);return o?o.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return TD(i);let a=Ke[s];if(a)return a(r,i);if(s.match(DD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function TD(t){let e=t.match(wD);return e?e[1].replace(SD,"'"):t}var xQ=fd;function ld({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)}var vQ=ld;function pd(t){let e=t/Ve;return Math.trunc(e)}var DQ=pd;function md(t){let e=t/Ce;return Math.trunc(e)}var MQ=md;function dd(t){let e=t/co;return Math.trunc(e)}var AQ=dd;function hd(t){let e=t/ss;return Math.trunc(e)}var PQ=hd;function yd(t){return Math.trunc(t*Ce)}var FQ=yd;function xd(t){return Math.trunc(t*lo)}var WQ=xd;function gd(t){let e=t/as;return Math.trunc(e)}var LQ=gd;function bd(t){let e=t/us;return Math.trunc(e)}var HQ=bd;function $e(t,e,r){let o=e-rr(t,r);return o<=0&&(o+=7),he(t,o,r)}var GQ=$e;function vd(t,e){return $e(t,5,e)}var JQ=vd;function wd(t,e){return $e(t,1,e)}var eJ=wd;function Sd(t,e){return $e(t,6,e)}var oJ=Sd;function Dd(t,e){return $e(t,0,e)}var sJ=Dd;function Td(t,e){return $e(t,4,e)}var cJ=Td;function Od(t,e){return $e(t,2,e)}var pJ=Od;function Md(t,e){return $e(t,3,e)}var hJ=Md;function Ed(t,e){let r=()=>y(e?.in,NaN),o=e?.additionalDigits??2,n=ED(t),i;if(n.date){let c=AD(n.date,o);i=ID(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,u;if(n.time&&(a=kD(n.time),isNaN(a)))return r();if(n.timezone){if(u=PD(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 Wa={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},OD=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,MD=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_D=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ED(t){let e={},r=t.split(Wa.dateTimeDelimiter),o;if(r.length>2)return e;if(/:/.test(r[0])?o=r[0]:(e.date=r[0],o=r[1],Wa.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Wa.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){let n=Wa.timezone.exec(o);n?(e.time=o.replace(n[1],""),e.timezone=n[1]):e.time=o}return e}function AD(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 ID(t,e){if(e===null)return new Date(NaN);let r=t.match(OD);if(!r)return new Date(NaN);let o=!!r[4],n=Cn(r[1]),i=Cn(r[2])-1,s=Cn(r[3]),a=Cn(r[4]),u=Cn(r[5])-1;if(o)return RD(e,a,u)?CD(e,a,u):new Date(NaN);{let c=new Date(0);return!FD(e,i,s)||!$D(e,n)?new Date(NaN):(c.setUTCFullYear(e,i,Math.max(n,s)),c)}}function Cn(t){return t?parseInt(t):1}function kD(t){let e=t.match(MD);if(!e)return NaN;let r=bc(e[1]),o=bc(e[2]),n=bc(e[3]);return WD(r,o,n)?r*Ve+o*Ce+n*1e3:NaN}function bc(t){return t&&parseFloat(t.replace(",","."))||0}function PD(t){if(t==="Z")return 0;let e=t.match(_D);if(!e)return 0;let r=e[1]==="+"?-1:1,o=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return UD(o,n)?r*(o*Ve+n*Ce):NaN}function CD(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 ND=[31,null,31,30,31,30,31,31,30,31,30,31];function _d(t){return t%400===0||t%4===0&&t%100!==0}function FD(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(ND[e]||(_d(t)?29:28))}function $D(t,e){return e>=1&&e<=(_d(t)?366:365)}function RD(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function WD(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function UD(t,e){return e>=0&&e<=59}var vJ=Ed;function Ad(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)}var DJ=Ad;function Re(t,e,r){let o=rr(t,r)-e;return o<=0&&(o+=7),nr(t,o,r)}var _J=Re;function Id(t,e){return Re(t,5,e)}var IJ=Id;function kd(t,e){return Re(t,1,e)}var CJ=kd;function Pd(t,e){return Re(t,6,e)}var $J=Pd;function Cd(t,e){return Re(t,0,e)}var UJ=Cd;function Nd(t,e){return Re(t,4,e)}var qJ=Nd;function Fd(t,e){return Re(t,2,e)}var jJ=Fd;function $d(t,e){return Re(t,3,e)}var GJ=$d;function Rd(t){return Math.trunc(t*as)}var JJ=Rd;function Wd(t){let e=t/cs;return Math.trunc(e)}var eX=Wd;function Ud(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return y(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=Fe(u)(a/r)*r;return o.setHours(f,0,0,0),o}var iX=Ud;function Bd(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return y(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=Fe(a)(s/r)*r;return o.setMinutes(c,0,0),o}var fX=Bd;function Ld(t){let e=t/Pr;return Math.trunc(e)}var mX=Ld;function qd(t){return t*co}var yX=qd;function Yd(t){let e=t/lo;return Math.trunc(e)}var bX=Yd;function Io(t,e,r){let o=l(t,r?.in),n=o.getFullYear(),i=o.getDate(),s=y(r?.in||t,0);s.setFullYear(n,e,15),s.setHours(0,0,0,0);let a=$s(s);return o.setMonth(e,Math.min(i,a)),o}var TX=Io;function Hd(t,e,r){let o=l(t,r?.in);return isNaN(+o)?y(r?.in||t,NaN):(e.year!=null&&o.setFullYear(e.year),e.month!=null&&(o=Io(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)}var AX=Hd;function jd(t,e,r){let o=l(t,r?.in);return o.setDate(e),o}var PX=jd;function zd(t,e,r){let o=l(t,r?.in);return o.setMonth(0),o.setDate(e),o}var FX=zd;function Vd(t){let e={},r=Q();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]);yp(e)}var WX=Vd;function Gd(t,e,r){let o=l(t,r?.in);return o.setHours(e),o}var LX=Gd;function Kd(t,e,r){let o=l(t,r?.in);return o.setMilliseconds(e),o}var HX=Kd;function Qd(t,e,r){let o=l(t,r?.in);return o.setMinutes(e),o}var VX=Qd;function Jd(t,e,r){let o=l(t,r?.in),n=Math.trunc(o.getMonth()/3)+1,i=e-n;return Io(o,o.getMonth()+i*3)}var JX=Jd;function Xd(t,e,r){let o=l(t,r?.in);return o.setSeconds(e),o}var eZ=Xd;function Zd(t,e,r){let o=Q(),n=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=we(l(t,r?.in),Rr(t,r),r),s=y(r?.in||t,0);s.setFullYear(e,0,n),s.setHours(0,0,0,0);let a=Rr(s,r);return a.setDate(a.getDate()+i),a}var aZ=Zd;function eh(t,e,r){let o=l(t,r?.in);return isNaN(+o)?y(r?.in||t,NaN):(o.setFullYear(e),o)}var lZ=eh;function th(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}var dZ=th;function rh(t){return bt(Date.now(),t)}var xZ=rh;function oh(t){let e=L(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=y(t?.in,0);return i.setFullYear(r,o,n+1),i.setHours(0,0,0,0),i}var wZ=oh;function nh(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}var TZ=nh;function Ua(t,e,r){return xt(t,-e,r)}var _Z=Ua;function ih(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=Ua(t,n+o*12,r),p=nr(f,s+i*7,r),m=u+a*60,h=(c+m*60)*1e3;return y(r?.in||t,+p-h)}var PZ=ih;function sh(t,e,r){return ps(t,-e,r)}var FZ=sh;function ah(t,e,r){return ms(t,-e,r)}var WZ=ah;function uh(t,e,r){return Kt(t,-e,r)}var LZ=uh;function ch(t,e,r){return po(t,-e,r)}var HZ=ch;function fh(t,e,r){return mo(t,-e,r)}var VZ=fh;function lh(t,e,r){return ys(t,-e,r)}var QZ=lh;function ph(t,e,r){return Qt(t,-e,r)}var ZZ=ph;function mh(t,e,r){return xs(t,-e,r)}var ree=mh;function dh(t){return Math.trunc(t*7)}var iee=dh;function hh(t){return Math.trunc(t*365.2425)}var uee=hh;function yh(t){return Math.trunc(t*us)}var lee=yh;function xh(t){return Math.trunc(t*cs)}var dee=xh;var vh=t=>Number.isFinite(t)?t:0;function BD(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(vh(t*1e3)%1e3),nanoseconds:Math.trunc(vh(t*1e6)%1e3)}}function LD(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 Tc(t){switch(typeof t){case"number":{if(Number.isFinite(t))return BD(t);break}case"bigint":return LD(t)}throw new TypeError("Expected a finite number or bigint")}var qD=t=>t===0||t===0n,YD=(t,e)=>e===1||e===1n?t:`${t}s`,HD=1e-7,jD=24n*60n*60n*1000n;function Fn(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,p)=>{let m=Math.floor(f*10**p+HD);return(Math.round(m)/10**p).toFixed(p)},s=(f,p,m,d)=>{if(!((n.length===0||!e.colonNotation)&&qD(f)&&!(e.colonNotation&&m==="m"))){if(d??=String(f),e.colonNotation){let h=d.includes(".")?d.split(".")[0].length:d.length,b=n.length>0?2:1;d="0".repeat(Math.max(0,b-h))+d}else d+=e.verbose?" "+YD(p,f):m;n.push(d)}},a=Tc(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),p=Number(a.milliseconds),m=Number(a.microseconds),d=Number(a.nanoseconds);if(s(f,"second","s"),e.formatSubMilliseconds)s(p,"millisecond","ms"),s(m,"microsecond","\xB5s"),s(d,"nanosecond","ns");else{let h=p+m/1e3+d/1e6,b=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,x=h>=1?Math.round(h):Math.ceil(h),O=b?h.toFixed(b):x;s(Number.parseFloat(O),"millisecond","ms",O)}}else{let f=(r?Number(t%jD):t)/1e3%60,p=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,m=i(f,p),d=e.keepDecimalsOnWholeSeconds?m:m.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)}var Ur=lt(gh(),1),wh=lt(bh(),1);Ur.default.extend(wh.default);var Sh=class{get cronArray(){return this.cronExpression.split(" ")}constructor(e){if(this.cronExpression=e,this.cronArray.length<6)throw new Error("CronParser needs second level accuracy")}getNextPartMatch(e,r,o){if(e==="*")return r;if(e.includes("/")){let n=parseInt(e.split("/")[1],10),i=s=>s%n===0?s:i(s+1);return i(r)}if(parseInt(e,10)||e==="0")return parseInt(e,10)}msToNext(){let e=this.cronArray,r=e[0],o=e[1],n=e[2],i=e[3],s=e[4],a=e[5],u=new Date,c=u.getSeconds()+1,f=u.getMinutes(),p=u.getHours(),m=u.getDate(),d=u.getMonth(),h=u.getFullYear(),b=this.getNextPartMatch(r,c,59);b<c&&(f=(f+1)%59);let x=this.getNextPartMatch(o,f,59);x<f&&(p=(p+1)%23);let O=this.getNextPartMatch(n,p,23);O<p&&(m=(m+1)%30);let v=m;v<m&&(d=(d+1)%11);let D=d;D<d&&(h=h+1);let N=h;return new Date(N,D,v,O,x,b).getTime()-Date.now()}};var $n=class{constructor(e,r,o){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=o,this.cronParser=new Tn.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 ir={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},Oc=t=>{let e=0,r=o=>{e=e+o};return t.years&&r(ir.years(t.years)),t.months&&r(ir.months(t.months)),t.weeks&&r(ir.weeks(t.weeks)),t.days&&r(ir.days(t.days)),t.hours&&r(ir.hours(t.hours)),t.minutes&&r(ir.minutes(t.minutes)),t.seconds&&r(ir.seconds(t.seconds)),e},Mc=t=>Fn(t),zD=t=>Nn.formatDistanceToNow(new Date(t));var _c=class{constructor(){this.status="stopped",this.cronjobs=new Ee.ObjectMap}addCronjob(e,r){let o=new $n(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 K.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 K.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${Mc(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new K.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 Ec=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=Ur.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 Ur.default(this.getTime()).format(e)}isToday(){return Ur.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Oc(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Ac=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 Ic=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 K.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 Po=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 kc=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=q.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Po;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Po.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 La=lt(Ch(),1);var Cc=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let o=q.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=q.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(),K.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(),K.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 Nc=class{constructor(e=16){this.hasSpace=new rt.rxjs.Subject,this.itemsAvailable=new rt.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 Rn=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 Nh=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),Br=class t{constructor(){this.fastMap=new Rn,this.eventSubject=new rt.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=Nh("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 Wn=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 ct.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new q.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&&K.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 Fc=class{constructor(e,r={}){this.interestObjectMap=new Br,this.interestObservable=new rt.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let o=this.comparisonFunc(e),n,i=new Wn(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 $c=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 Rc=class{constructor(){this.referenceObjectMap=new Br}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var Wc=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 dn.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=q.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 Uc=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new ct.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 Bc=class{constructor(){this.symbolTree=new La.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 No={};oe(No,{base64ToUint8Array:()=>g1,ensurePureUint8Array:()=>w1,isBufferLike:()=>v1,isUint8Array:()=>b1,uInt8ArrayExtras:()=>y1,uInt8ArrayToBase64:()=>x1});var fr={};oe(fr,{areUint8ArraysEqual:()=>r1,assertUint8Array:()=>cr,assertUint8ArrayOrArrayBuffer:()=>Wh,base64ToString:()=>c1,base64ToUint8Array:()=>qh,compareUint8Arrays:()=>o1,concatUint8Arrays:()=>t1,getUintBE:()=>m1,hexToUint8Array:()=>p1,includes:()=>d1,indexOf:()=>Yh,isUint8Array:()=>Lc,stringToBase64:()=>u1,stringToUint8Array:()=>Bh,toUint8Array:()=>e1,uint8ArrayToBase64:()=>Lh,uint8ArrayToHex:()=>l1,uint8ArrayToString:()=>Uh});var KD=Object.prototype.toString,QD="[object Uint8Array]",JD="[object ArrayBuffer]";function Fh(t,e,r){return t?t.constructor===e?!0:KD.call(t)===r:!1}function Lc(t){return Fh(t,Uint8Array,QD)}function XD(t){return Fh(t,ArrayBuffer,JD)}function ZD(t){return Lc(t)||XD(t)}function cr(t){if(!Lc(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function Wh(t){if(!ZD(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function e1(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 t1(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)cr(n),r.set(n,o),o+=n.length;return r}function r1(t,e){if(cr(t),cr(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 o1(t,e){cr(t),cr(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 $h={utf8:new globalThis.TextDecoder("utf8")};function Uh(t,e="utf8"){return Wh(t),$h[e]??=new globalThis.TextDecoder(e),$h[e].decode(t)}function Un(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}var n1=new globalThis.TextEncoder;function Bh(t){return Un(t),n1.encode(t)}function i1(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function s1(t){return t.replaceAll("-","+").replaceAll("_","/")}var a1=65535;function Lh(t,{urlSafe:e=!1}={}){cr(t);let r;if(t.length<a1)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?i1(r):r}function qh(t){return Un(t),Uint8Array.from(globalThis.atob(s1(t)),e=>e.codePointAt(0))}function u1(t,{urlSafe:e=!1}={}){return Un(t),Lh(Bh(t),{urlSafe:e})}function c1(t){return Un(t),Uh(qh(t))}var f1=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function l1(t){cr(t);let e="";for(let r=0;r<t.length;r++)e+=f1[t[r]];return e}var Rh={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 p1(t){if(Un(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=Rh[t[o*2]],i=Rh[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 m1(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 Yh(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 d1(t,e){return Yh(t,e)!==-1}var y1=fr;function x1(t){return fr.uint8ArrayToBase64(t)}function g1(t){return fr.base64ToUint8Array(t)}var b1=t=>fr.isUint8Array(t);function v1(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function w1(t){let e=new Uint8Array(t.length);return e.set(t),e}var Yn={};oe(Yn,{Guard:()=>Bn,GuardError:()=>Ln,GuardSet:()=>qn,passGuardsOrReject:()=>S1});var Bn=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 Ln=class extends Error{constructor(e){super(e),this.name="GuardError"}};var qn=class extends Bn{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 S1=async(t,e)=>{let r=new qn(e);if(!await r.allGuardsPass(t)){let n=await r.getFailedHint(t);throw new Ln(`Guards failed:
|
|
10
|
-
${n}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
`)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
`).forEach(n=>{n&&o.push(Zo(n))}),_0(r,o)};var Rt={};oe(Rt,{TypedrequestCache:()=>sl,WebStore:()=>li});var fi={};oe(fi,{deleteDB:()=>$0,openDB:()=>F0,unwrap:()=>ci,wrap:()=>Et});var el=(t,e)=>e.some(r=>t instanceof r),E0,A0;function SE(){return E0||(E0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function DE(){return A0||(A0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var tl=new WeakMap,rl=new WeakMap,Ou=new WeakMap;function TE(t){let e=new Promise((r,o)=>{let n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(Et(t.result)),n()},s=()=>{o(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",s)});return Ou.set(e,t),e}function OE(t){if(tl.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)});tl.set(t,e)}var ol={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return tl.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Et(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 I0(t){ol=t(ol)}function ME(t){return DE().includes(t)?function(...e){return t.apply(ci(this),e),Et(this.request)}:function(...e){return Et(t.apply(ci(this),e))}}function _E(t){return typeof t=="function"?ME(t):(t instanceof IDBTransaction&&OE(t),el(t,SE())?new Proxy(t,ol):t)}function Et(t){if(t instanceof IDBRequest)return TE(t);if(rl.has(t))return rl.get(t);let e=_E(t);return e!==t&&(rl.set(t,e),Ou.set(e,t)),e}var ci=t=>Ou.get(t);function F0(t,e,{blocked:r,upgrade:o,blocking:n,terminated:i}={}){let s=indexedDB.open(t,e),a=Et(s);return o&&s.addEventListener("upgradeneeded",u=>{o(Et(s.result),u.oldVersion,u.newVersion,Et(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 $0(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",o=>e(o.oldVersion,o)),Et(r).then(()=>{})}var EE=["get","getKey","getAll","getAllKeys","count"],AE=["put","add","delete","clear"],nl=new Map;function k0(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(nl.get(e))return nl.get(e);let r=e.replace(/FromIndex$/,""),o=e!==r,n=AE.includes(r);if(!(r in(o?IDBIndex:IDBObjectStore).prototype)||!(n||EE.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 nl.set(e,i),i}I0(t=>({...t,get:(e,r,o)=>k0(e,r)||t.get(e,r,o),has:(e,r)=>!!k0(e,r)||t.has(e,r)}));var IE=["continue","continuePrimaryKey","advance"],P0={},il=new WeakMap,C0=new WeakMap,kE={get(t,e){if(!IE.includes(e))return t[e];let r=P0[e];return r||(r=P0[e]=function(...o){il.set(this,C0.get(this)[e](...o))}),r}};async function*PE(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;let r=new Proxy(e,kE);for(C0.set(r,e),Ou.set(r,ci(e));e;)yield r,e=await(il.get(r)||e.continue()),il.delete(r)}function N0(t,e){return e===Symbol.asyncIterator&&el(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&el(t,[IDBIndex,IDBObjectStore])}I0(t=>({...t,get(e,r,o){return N0(e,r)?PE:t.get(e,r,o)},has(e,r){return N0(e,r)||t.has(e,r)}}));var li=class{constructor(e){this.initCalled=!1,this.readyDeferred=q.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new Dt.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 fi.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 sl=class{constructor(e="default"){this.webstore=new li({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return je.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 al=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Rt.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 je.parse(n)}async postJson(e,r,o=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:je.stringify(r),useCache:o})).text();return je.parse(i)}async putJson(e,r,o=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:je.stringify(r)})).text();return je.parse(i)}async deleteJson(e,r=!1){let n=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return je.parse(n)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let o=new AbortController;K.delayFor(r.timeoutMs).then(()=>{o.abort()});let n=q.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 K.delayFor(Math.floor(Math.random()*1001)+1e3));let f=0;for(let p of i)p===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 hr=lt(Bu(),1);var Wt=class{constructor(e,r){this.errorText=e,this.errorData=r}};var _u=class{async passGuards(e,r){let o=new Yn.GuardSet(e);if(!await o.allGuardsPass(r)){let i=await o.getFailedHint(r);throw new Wt(`guard failed: ${i}`,{failedHint:i})}}};var ul=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 _u,n=await this.handlerFunction(e.request,o).catch(i=>{i instanceof Wt?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 mi=class{constructor(){this.routerMap=new Ee.ObjectMap,this.handlerMap=new Ee.ObjectMap,this.registeredVirtualStreams=new Ee.ObjectMap,this.fireEventInterestMap=new Ee.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=At.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=At.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=At.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 W0="#############CLOSING BIT#############",At=class t{static encodePayloadForNetwork(e,r,o,n=[]){return!e||No.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(No.isBufferLike(e)||e instanceof mi)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=hr.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new Ee.BackpressuredArray(16),this.receiveBackpressuredArray=new Ee.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=q.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:hr.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 K.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:hr.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 K.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let e=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await K.delayFor(1e3);await K.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:hr.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===W0){r.releaseLock(),await e.close();break}await r.write(o)}}async close(e=!1){e&&this.sendData(W0),this.keepAlive=!1}};var cl=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 NE=new pi.WebRequest,fl=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:hr.uni(),phase:"request"}};o=At.encodePayloadForNetwork(o,{sendMethod:i=>this.postTrObject(i)});let n;return n=await this.postTrObject(o,r),n=At.decodePayloadFromNetwork(n,{sendMethod:i=>this.postTrObject(i)}),n.response}async postTrObject(e,r=!1){let o;if(this.urlEndPoint?o=await NE.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 Wt(o.error.text,o.error.data);return null}return o.retry&&(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await K.delayFor(o.retry.waitForMs),o=await this.postTrObject(e,r)),o}};var Eu=class{constructor(){this.webstore=new Rt.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()-ct.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 di.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 U0,B0,L0,tn,ll;L0=[at("consentsoftware-cookieconsent")];var yr=class extends(B0=Oe,U0=[ut({type:String,reflect:!0})],B0){constructor(){super();ke(this,"csWebclientInstance",new Eu);ke(this,"csWebclientRan",!1);Yt(this,ll,fe(tn,8,this,"light")),fe(tn,11,this);this.setAttribute("show","false")}render(){return Be`
|
|
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,""")}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,"<$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?"":""}};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"
|
|
421
|
+
<div class="text-container">
|
|
24
422
|
<div class="toptext">
|
|
25
|
-
|
|
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
|
|
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=${
|
|
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=${
|
|
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=${
|
|
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(),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
transform: translate(3px, 0);
|
|
166
|
-
}
|
|
167
|
-
50% {
|
|
168
|
-
transform: translate(-3px, 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)};
|
|
169
470
|
}
|
|
170
|
-
100% {
|
|
171
|
-
transform: translate(0, 0);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
471
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
-
|
|
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
|
-
`),fe(tn,1,yr);var q0,pl,RE;q0=[at("consentsoftware-header")];var hi=class extends(RE=Oe){static demo=()=>Be`<consentsoftware-tabs></consentsoftware-tabs>`;static styles=Qe`
|
|
248
|
-
:host {
|
|
249
|
-
display: block;
|
|
250
|
-
line-height: 3em;
|
|
251
|
-
text-align: center;
|
|
252
|
-
font-family: ${Mi};
|
|
253
|
-
border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.heading {
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
`;constructor(){super()}render(){return Be`
|
|
477
|
+
`];render(){return et`
|
|
260
478
|
<div class="heading">
|
|
261
|
-
|
|
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
|
|
262
485
|
</div>
|
|
263
|
-
`}};
|
|
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(
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
507
|
+
.maincontainer {
|
|
508
|
+
display: grid;
|
|
509
|
+
grid-template-columns: repeat(4, 1fr);
|
|
510
|
+
padding: 8px 0;
|
|
511
|
+
}
|
|
288
512
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
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.
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
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
|
-
|
|
323
|
-
|
|
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
|
-
|
|
327
|
-
|
|
328
|
-
|
|
576
|
+
.toggle {
|
|
577
|
+
user-select: none;
|
|
578
|
+
}
|
|
329
579
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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
|
-
|
|
344
|
-
|
|
345
|
-
|
|
593
|
+
.toggleKnobArea:hover {
|
|
594
|
+
border-color: ${fe.bdTheme(V.light.ring,V.dark.ring)};
|
|
595
|
+
}
|
|
346
596
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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
|
-
|
|
368
|
-
|
|
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
|
-
|
|
372
|
-
|
|
373
|
-
|
|
619
|
+
.toggleKnobInner.dragging {
|
|
620
|
+
transition: background 0.15s ease;
|
|
621
|
+
}
|
|
374
622
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
}
|
|
623
|
+
:host([selected]) .toggleKnobInner {
|
|
624
|
+
background: ${fe.bdTheme(V.light.primaryForeground,V.dark.primaryForeground)};
|
|
625
|
+
}
|
|
379
626
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
`),fe(Lt,1,xr);var J0,xl,WE;J0=[at("consentsoftware-tabs")];var yi=class extends(WE=Oe){static demo=()=>Be`<consentsoftware-tabs></consentsoftware-tabs>`;static styles=Qe`
|
|
384
|
-
:host {
|
|
385
|
-
display: block;
|
|
386
|
-
position: relative;
|
|
387
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
388
|
-
}
|
|
627
|
+
:host([required]) .toggleKnobArea {
|
|
628
|
+
cursor: not-allowed;
|
|
629
|
+
}
|
|
389
630
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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
|
+
}
|
|
394
635
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
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
|
+
}
|
|
400
650
|
|
|
401
|
-
/* Media query for mobile devices: stack buttons vertically */
|
|
402
|
-
@media (max-width: 600px) {
|
|
403
651
|
.tabs .tab {
|
|
652
|
+
text-align: center;
|
|
653
|
+
padding: 8px 0;
|
|
404
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;
|
|
405
659
|
}
|
|
406
|
-
}
|
|
407
660
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
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`
|
|
418
683
|
<div class="tabs">
|
|
419
684
|
<div class="tab" @click=${this.handleClick}>Consent</div>
|
|
420
685
|
<div class="tab" @click=${this.handleClick}>Details</div>
|
|
421
686
|
<div class="tab" @click=${this.handleClick}>Cookie Policy</div>
|
|
422
687
|
</div>
|
|
423
688
|
<div class="selector"></div>
|
|
424
|
-
`}async handleClick(
|
|
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
|
|
@@ -453,8 +735,10 @@ randomatic/index.js:
|
|
|
453
735
|
@lit/reactive-element/reactive-element.js:
|
|
454
736
|
lit-html/lit-html.js:
|
|
455
737
|
lit-element/lit-element.js:
|
|
456
|
-
@lit/reactive-element/decorators/custom-element.js:
|
|
457
738
|
@lit/reactive-element/decorators/property.js:
|
|
739
|
+
lit-html/directive.js:
|
|
740
|
+
lit-html/directives/unsafe-html.js:
|
|
741
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
458
742
|
@lit/reactive-element/decorators/state.js:
|
|
459
743
|
@lit/reactive-element/decorators/event-options.js:
|
|
460
744
|
@lit/reactive-element/decorators/base.js:
|
|
@@ -462,6 +746,10 @@ lit-element/lit-element.js:
|
|
|
462
746
|
@lit/reactive-element/decorators/query-all.js:
|
|
463
747
|
@lit/reactive-element/decorators/query-async.js:
|
|
464
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:
|
|
465
753
|
(**
|
|
466
754
|
* @license
|
|
467
755
|
* Copyright 2017 Google LLC
|
|
@@ -475,7 +763,16 @@ lit-html/is-server.js:
|
|
|
475
763
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
476
764
|
*)
|
|
477
765
|
|
|
766
|
+
lit-html/static.js:
|
|
767
|
+
lit-html/directive-helpers.js:
|
|
768
|
+
(**
|
|
769
|
+
* @license
|
|
770
|
+
* Copyright 2020 Google LLC
|
|
771
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
772
|
+
*)
|
|
773
|
+
|
|
478
774
|
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
775
|
+
lit-html/directives/private-async-helpers.js:
|
|
479
776
|
(**
|
|
480
777
|
* @license
|
|
481
778
|
* Copyright 2021 Google LLC
|