@design.estate/dees-document 1.0.91
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 +865 -0
- package/dist_bundle/bundle.js.map +7 -0
- package/dist_ts/00_commitinfo_data.d.ts +8 -0
- package/dist_ts/00_commitinfo_data.js +9 -0
- package/dist_ts/classes.pdfservice.d.ts +23 -0
- package/dist_ts/classes.pdfservice.js +39 -0
- package/dist_ts/helpers.d.ts +1 -0
- package/dist_ts/helpers.js +6 -0
- package/dist_ts/index.d.ts +2 -0
- package/dist_ts/index.js +3 -0
- package/dist_ts/paths.d.ts +4 -0
- package/dist_ts/paths.js +7 -0
- package/dist_ts/plugins.d.ts +9 -0
- package/dist_ts/plugins.js +13 -0
- package/dist_ts_web/00_commitinfo_data.d.ts +8 -0
- package/dist_ts_web/00_commitinfo_data.js +9 -0
- package/dist_ts_web/elements/contentinvoice.d.ts +34 -0
- package/dist_ts_web/elements/contentinvoice.js +335 -0
- package/dist_ts_web/elements/document.d.ts +20 -0
- package/dist_ts_web/elements/document.js +157 -0
- package/dist_ts_web/elements/index.d.ts +8 -0
- package/dist_ts_web/elements/index.js +9 -0
- package/dist_ts_web/elements/letterheader.d.ts +16 -0
- package/dist_ts_web/elements/letterheader.js +123 -0
- package/dist_ts_web/elements/page.d.ts +19 -0
- package/dist_ts_web/elements/page.js +144 -0
- package/dist_ts_web/elements/pagecontainer.d.ts +14 -0
- package/dist_ts_web/elements/pagecontainer.js +66 -0
- package/dist_ts_web/elements/pagecontent.d.ts +18 -0
- package/dist_ts_web/elements/pagecontent.js +144 -0
- package/dist_ts_web/elements/pagefooter.d.ts +16 -0
- package/dist_ts_web/elements/pagefooter.js +130 -0
- package/dist_ts_web/elements/pageheader.d.ts +16 -0
- package/dist_ts_web/elements/pageheader.js +95 -0
- package/dist_ts_web/elements/shared/demoletter.d.ts +2 -0
- package/dist_ts_web/elements/shared/demoletter.js +117 -0
- package/dist_ts_web/elements/shared/index.d.ts +5 -0
- package/dist_ts_web/elements/shared/index.js +6 -0
- package/dist_ts_web/index.d.ts +1 -0
- package/dist_ts_web/index.js +2 -0
- package/dist_ts_web/pages/index.d.ts +2 -0
- package/dist_ts_web/pages/index.js +3 -0
- package/dist_ts_web/pages/page1.d.ts +1 -0
- package/dist_ts_web/pages/page1.js +18 -0
- package/dist_ts_web/pages/page2.d.ts +1 -0
- package/dist_ts_web/pages/page2.js +5 -0
- package/dist_ts_web/plugins.d.ts +7 -0
- package/dist_ts_web/plugins.js +11 -0
- package/dist_watch/bundle.js +21871 -0
- package/dist_watch/bundle.js.map +7 -0
- package/dist_watch/index.html +28 -0
- package/license +19 -0
- package/npmextra.json +20 -0
- package/package.json +65 -0
- package/readme.md +7 -0
- package/ts/00_commitinfo_data.ts +8 -0
- package/ts/classes.pdfservice.ts +51 -0
- package/ts/helpers.ts +6 -0
- package/ts/index.ts +2 -0
- package/ts/paths.ts +9 -0
- package/ts/plugins.ts +26 -0
- package/ts_web/00_commitinfo_data.ts +8 -0
- package/ts_web/elements/contentinvoice.ts +385 -0
- package/ts_web/elements/document.ts +168 -0
- package/ts_web/elements/index.ts +8 -0
- package/ts_web/elements/letterheader.ts +125 -0
- package/ts_web/elements/page.ts +142 -0
- package/ts_web/elements/pagecontainer.ts +69 -0
- package/ts_web/elements/pagecontent.ts +147 -0
- package/ts_web/elements/pagefooter.ts +132 -0
- package/ts_web/elements/pageheader.ts +96 -0
- package/ts_web/elements/shared/demoletter.ts +121 -0
- package/ts_web/elements/shared/index.ts +6 -0
- package/ts_web/index.ts +1 -0
- package/ts_web/pages/index.ts +2 -0
- package/ts_web/pages/page1.ts +18 -0
- package/ts_web/pages/page2.ts +5 -0
- package/ts_web/plugins.ts +15 -0
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
var Jg=Object.create;var Lo=Object.defineProperty;var Kl=Object.getOwnPropertyDescriptor;var Yg=Object.getOwnPropertyNames;var Qg=Object.getPrototypeOf,Zg=Object.prototype.hasOwnProperty;var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),X=(t,e)=>{for(var r in e)Lo(t,r,{get:e[r],enumerable:!0})},Xg=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Yg(e))!Zg.call(t,o)&&o!==r&&Lo(t,o,{get:()=>e[o],enumerable:!(n=Kl(e,o))||n.enumerable});return t};var Be=(t,e,r)=>(r=t!=null?Jg(Qg(t)):{},Xg(e||!t||!t.__esModule?Lo(r,"default",{value:t,enumerable:!0}):r,t));var V=(t,e,r,n)=>{for(var o=n>1?void 0:n?Kl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(n?s(e,r,o):s(o))||o);return n&&o&&Lo(e,r,o),o};var Xo=M(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.uni=void 0;var ry=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;Zo.uni=ry});var nf=M((ha,da)=>{(function(t,e){typeof ha=="object"&&typeof da<"u"?da.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ha,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",u="week",l="month",c="quarter",p="year",h="date",y="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,B={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($){var S=["th","st","nd","rd"],E=$%100;return"["+$+(S[(E-20)%10]||S[E]||S[0])+"]"}},_=function($,S,E){var P=String($);return!P||P.length>=S?$:""+Array(S+1-P.length).join(E)+$},A={s:_,z:function($){var S=-$.utcOffset(),E=Math.abs(S),P=Math.floor(E/60),T=E%60;return(S<=0?"+":"-")+_(P,2,"0")+":"+_(T,2,"0")},m:function $(S,E){if(S.date()<E.date())return-$(E,S);var P=12*(E.year()-S.year())+(E.month()-S.month()),T=S.clone().add(P,l),k=E-T<0,b=S.clone().add(P+(k?-1:1),l);return+(-(P+(E-T)/(k?T-b:b-T))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:l,y:p,w:u,d:a,D:h,h:s,m:i,s:o,ms:n,Q:c}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},O="en",N={};N[O]=B;var j="$isDayjsObject",U=function($){return $ instanceof te||!(!$||!$[j])},J=function $(S,E,P){var T;if(!S)return O;if(typeof S=="string"){var k=S.toLowerCase();N[k]&&(T=k),E&&(N[k]=E,T=k);var b=S.split("-");if(!T&&b.length>1)return $(b[0])}else{var I=S.name;N[I]=S,T=I}return!P&&T&&(O=T),T||!P&&O},F=function($,S){if(U($))return $.clone();var E=typeof S=="object"?S:{};return E.date=$,E.args=arguments,new te(E)},D=A;D.l=J,D.i=U,D.w=function($,S){return F($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var te=function(){function $(E){this.$L=J(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[j]=!0}var S=$.prototype;return S.parse=function(E){this.$d=function(P){var T=P.date,k=P.utc;if(T===null)return new Date(NaN);if(D.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var b=T.match(w);if(b){var I=b[2]-1||0,R=(b[7]||"0").substring(0,3);return k?new Date(Date.UTC(b[1],I,b[3]||1,b[4]||0,b[5]||0,b[6]||0,R)):new Date(b[1],I,b[3]||1,b[4]||0,b[5]||0,b[6]||0,R)}}return new Date(T)}(E),this.init()},S.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},S.$utils=function(){return D},S.isValid=function(){return this.$d.toString()!==y},S.isSame=function(E,P){var T=F(E);return this.startOf(P)<=T&&T<=this.endOf(P)},S.isAfter=function(E,P){return F(E)<this.startOf(P)},S.isBefore=function(E,P){return this.endOf(P)<F(E)},S.$g=function(E,P,T){return D.u(E)?this[P]:this.set(T,E)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(E,P){var T=this,k=!!D.u(P)||P,b=D.p(E),I=function(m,f){var d=D.w(T.$u?Date.UTC(T.$y,f,m):new Date(T.$y,f,m),T);return k?d:d.endOf(a)},R=function(m,f){return D.w(T.toDate()[m].apply(T.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(f)),T)},q=this.$W,z=this.$M,K=this.$D,re="set"+(this.$u?"UTC":"");switch(b){case p:return k?I(1,0):I(31,11);case l:return k?I(1,z):I(0,z+1);case u:var fe=this.$locale().weekStart||0,Se=(q<fe?q+7:q)-fe;return I(k?K-Se:K+(6-Se),z);case a:case h:return R(re+"Hours",0);case s:return R(re+"Minutes",1);case i:return R(re+"Seconds",2);case o:return R(re+"Milliseconds",3);default:return this.clone()}},S.endOf=function(E){return this.startOf(E,!1)},S.$set=function(E,P){var T,k=D.p(E),b="set"+(this.$u?"UTC":""),I=(T={},T[a]=b+"Date",T[h]=b+"Date",T[l]=b+"Month",T[p]=b+"FullYear",T[s]=b+"Hours",T[i]=b+"Minutes",T[o]=b+"Seconds",T[n]=b+"Milliseconds",T)[k],R=k===a?this.$D+(P-this.$W):P;if(k===l||k===p){var q=this.clone().set(h,1);q.$d[I](R),q.init(),this.$d=q.set(h,Math.min(this.$D,q.daysInMonth())).$d}else I&&this.$d[I](R);return this.init(),this},S.set=function(E,P){return this.clone().$set(E,P)},S.get=function(E){return this[D.p(E)]()},S.add=function(E,P){var T,k=this;E=Number(E);var b=D.p(P),I=function(z){var K=F(k);return D.w(K.date(K.date()+Math.round(z*E)),k)};if(b===l)return this.set(l,this.$M+E);if(b===p)return this.set(p,this.$y+E);if(b===a)return I(1);if(b===u)return I(7);var R=(T={},T[i]=e,T[s]=r,T[o]=t,T)[b]||1,q=this.$d.getTime()+E*R;return D.w(q,this)},S.subtract=function(E,P){return this.add(-1*E,P)},S.format=function(E){var P=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var k=E||"YYYY-MM-DDTHH:mm:ssZ",b=D.z(this),I=this.$H,R=this.$m,q=this.$M,z=T.weekdays,K=T.months,re=T.meridiem,fe=function(f,d,g,v){return f&&(f[d]||f(P,k))||g[d].slice(0,v)},Se=function(f){return D.s(I%12||12,f,"0")},m=re||function(f,d,g){var v=f<12?"AM":"PM";return g?v.toLowerCase():v};return k.replace(C,function(f,d){return d||function(g){switch(g){case"YY":return String(P.$y).slice(-2);case"YYYY":return D.s(P.$y,4,"0");case"M":return q+1;case"MM":return D.s(q+1,2,"0");case"MMM":return fe(T.monthsShort,q,K,3);case"MMMM":return fe(K,q);case"D":return P.$D;case"DD":return D.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return fe(T.weekdaysMin,P.$W,z,2);case"ddd":return fe(T.weekdaysShort,P.$W,z,3);case"dddd":return z[P.$W];case"H":return String(I);case"HH":return D.s(I,2,"0");case"h":return Se(1);case"hh":return Se(2);case"a":return m(I,R,!0);case"A":return m(I,R,!1);case"m":return String(R);case"mm":return D.s(R,2,"0");case"s":return String(P.$s);case"ss":return D.s(P.$s,2,"0");case"SSS":return D.s(P.$ms,3,"0");case"Z":return b}return null}(f)||b.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(E,P,T){var k,b=this,I=D.p(P),R=F(E),q=(R.utcOffset()-this.utcOffset())*e,z=this-R,K=function(){return D.m(b,R)};switch(I){case p:k=K()/12;break;case l:k=K();break;case c:k=K()/3;break;case u:k=(z-q)/6048e5;break;case a:k=(z-q)/864e5;break;case s:k=z/r;break;case i:k=z/e;break;case o:k=z/t;break;default:k=z}return T?k:D.a(k)},S.daysInMonth=function(){return this.endOf(l).$D},S.$locale=function(){return N[this.$L]},S.locale=function(E,P){if(!E)return this.$L;var T=this.clone(),k=J(E,P,!0);return k&&(T.$L=k),T},S.clone=function(){return D.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()},$}(),we=te.prototype;return F.prototype=we,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",l],["$y",p],["$D",h]].forEach(function($){we[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),F.extend=function($,S){return $.$i||($(S,te,F),$.$i=!0),F},F.locale=J,F.isDayjs=U,F.unix=function($){return F(1e3*$)},F.en=N[O],F.Ls=N,F.p={},F})});var of=M((ma,ga)=>{(function(t,e){typeof ma=="object"&&typeof ga<"u"?ga.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(ma,function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}})});var uf=M((g2,af)=>{"use strict";af.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 cf=M((y2,lf)=>{"use strict";lf.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var mf=M((x2,df)=>{"use strict";var ff=Symbol(),pf=Symbol(),kt=Symbol(),hf=Symbol(),it=class{constructor(e,r,n,o){this[ff]=e,this[pf]=r,this[kt]=n,this[hf]=o}next(){let e=this[ff],r=this[hf],n=this[pf];if(!this[kt])return{done:!0,value:n};let o=this[kt];return r===1?this[kt]=e._node(o).previousSibling:r===2?this[kt]=e._node(o).nextSibling:r===3?this[kt]=e._node(o).parent:r===4?this[kt]=e.preceding(o,{root:n}):this[kt]=e.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(it.prototype,Symbol.iterator,{value:function(){return this},writable:!1});it.PREV=1;it.NEXT=2;it.PARENT=3;it.PRECEDING=4;it.FOLLOWING=5;Object.freeze(it);Object.freeze(it.prototype);df.exports=it});var yf=M((v2,gf)=>{"use strict";var Jy=uf(),jt=cf(),Ge=mf();function _a(){return!0}function Vr(t,e){return t[t.length-1-e]}var Ci=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 Jy)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let r,n=e;for(;r=this._node(n).lastChild;)n=r;return n}preceding(e,r){let n=r&&r.root;if(e===n)return null;let o=this._node(e).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(e).parent}following(e,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(e).firstChild;if(i)return i;let s=e;do{if(s===n)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||_a,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,u=0;for(;a;){let l=this._node(a);l.setCachedIndex(s,u),o.call(i,a)&&n.push(a),a=l.nextSibling,++u}return n}ancestorsToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||_a,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||_a,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,o=this._node(e);return new Ge(this,e,n?o.lastChild:o.firstChild,n?Ge.PREV:Ge.NEXT)}previousSiblingsIterator(e){return new Ge(this,e,this._node(e).previousSibling,Ge.PREV)}nextSiblingsIterator(e){return new Ge(this,e,this._node(e).nextSibling,Ge.NEXT)}ancestorsIterator(e){return new Ge(this,e,e,Ge.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new Ge(this,e,n?this.lastInclusiveDescendant(e):e,n?Ge.PRECEDING:Ge.FOLLOWING)}index(e){let r=this._node(e),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let i=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);i=s.nextSibling,o=s.getCachedIndex(n)+1}for(;i;){let s=this._node(i);if(s.setCachedIndex(n,o),i===e)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=e,o}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let n=[];{let c=e;for(;c;){if(c===r)return jt.CONTAINS|jt.PRECEDING;n.push(c),c=this.parent(c)}}let o=[];{let c=r;for(;c;){if(c===e)return jt.CONTAINED_BY|jt.FOLLOWING;o.push(c),c=this.parent(c)}}let i=Vr(n,0);if(!i||i!==Vr(o,0))return jt.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let c=0;c<a;++c){let p=Vr(n,c),h=Vr(o,c);if(p!==h)break;s=c}let u=this.index(Vr(n,s+1));return this.index(Vr(o,s+1))<u?jt.PRECEDING:jt.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),i&&(i.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),e}insertBefore(e,r){let n=this._node(e),o=this._node(n.previousSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=n.previousSibling,i.nextSibling=e,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===e&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),o=this._node(n.nextSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=e,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===e&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(e,r){let n=this._node(e),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};gf.exports=Ci;Ci.TreePosition=jt});var wf=M(Ai=>{"use strict";Ai.byteLength=Zy;Ai.toByteArray=Ky;Ai.fromByteArray=r0;var ct=[],Je=[],Qy=typeof Uint8Array<"u"?Uint8Array:Array,Ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(gr=0,vf=Ba.length;gr<vf;++gr)ct[gr]=Ba[gr],Je[Ba.charCodeAt(gr)]=gr;var gr,vf;Je["-".charCodeAt(0)]=62;Je["_".charCodeAt(0)]=63;function bf(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Zy(t){var e=bf(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Xy(t,e,r){return(e+r)*3/4-r}function Ky(t){var e,r=bf(t),n=r[0],o=r[1],i=new Qy(Xy(t,n,o)),s=0,a=o>0?n-4:n,u;for(u=0;u<a;u+=4)e=Je[t.charCodeAt(u)]<<18|Je[t.charCodeAt(u+1)]<<12|Je[t.charCodeAt(u+2)]<<6|Je[t.charCodeAt(u+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=Je[t.charCodeAt(u)]<<2|Je[t.charCodeAt(u+1)]>>4,i[s++]=e&255),o===1&&(e=Je[t.charCodeAt(u)]<<10|Je[t.charCodeAt(u+1)]<<4|Je[t.charCodeAt(u+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function e0(t){return ct[t>>18&63]+ct[t>>12&63]+ct[t>>6&63]+ct[t&63]}function t0(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(e0(n));return o.join("")}function r0(t){for(var e,r=t.length,n=r%3,o=[],i=16383,s=0,a=r-n;s<a;s+=i)o.push(t0(t,s,s+i>a?a:s+i));return n===1?(e=t[r-1],o.push(ct[e>>2]+ct[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(ct[e>>10]+ct[e>>4&63]+ct[e<<2&63]+"=")),o.join("")}});var Sf=M(Oa=>{Oa.read=function(t,e,r,n,o){var i,s,a=o*8-n-1,u=(1<<a)-1,l=u>>1,c=-7,p=r?o-1:0,h=r?-1:1,y=t[e+p];for(p+=h,i=y&(1<<-c)-1,y>>=-c,c+=a;c>0;i=i*256+t[e+p],p+=h,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=s*256+t[e+p],p+=h,c-=8);if(i===0)i=1-l;else{if(i===u)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-l}return(y?-1:1)*s*Math.pow(2,i-n)};Oa.write=function(t,e,r,n,o,i){var s,a,u,l=i*8-o-1,c=(1<<l)-1,p=c>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:i-1,w=n?1:-1,C=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+p>=1?e+=h/u:e+=h*Math.pow(2,1-p),e*u>=2&&(s++,u/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(e*u-1)*Math.pow(2,o),s=s+p):(a=e*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;t[r+y]=a&255,y+=w,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;t[r+y]=s&255,y+=w,s/=256,l-=8);t[r+y-w]|=C*128}});var Lf=M(Zr=>{"use strict";var Da=wf(),Yr=Sf(),Ef=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zr.Buffer=x;Zr.SlowBuffer=u0;Zr.INSPECT_MAX_BYTES=50;var Ii=2147483647;Zr.kMaxLength=Ii;x.TYPED_ARRAY_SUPPORT=n0();!x.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n0(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}});Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function _t(t){if(t>Ii)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,x.prototype),e}function x(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return La(t)}return Af(t,e,r)}x.poolSize=8192;function Af(t,e,r){if(typeof t=="string")return i0(t,e);if(ArrayBuffer.isView(t))return s0(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ft(t,ArrayBuffer)||t&&ft(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ft(t,SharedArrayBuffer)||t&&ft(t.buffer,SharedArrayBuffer)))return Fa(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return x.from(n,e,r);let o=a0(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return x.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}x.from=function(t,e,r){return Af(t,e,r)};Object.setPrototypeOf(x.prototype,Uint8Array.prototype);Object.setPrototypeOf(x,Uint8Array);function If(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function o0(t,e,r){return If(t),t<=0?_t(t):e!==void 0?typeof r=="string"?_t(t).fill(e,r):_t(t).fill(e):_t(t)}x.alloc=function(t,e,r){return o0(t,e,r)};function La(t){return If(t),_t(t<0?0:ka(t)|0)}x.allocUnsafe=function(t){return La(t)};x.allocUnsafeSlow=function(t){return La(t)};function i0(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Mf(t,e)|0,n=_t(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function Ra(t){let e=t.length<0?0:ka(t.length)|0,r=_t(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function s0(t){if(ft(t,Uint8Array)){let e=new Uint8Array(t);return Fa(e.buffer,e.byteOffset,e.byteLength)}return Ra(t)}function Fa(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,x.prototype),n}function a0(t){if(x.isBuffer(t)){let e=ka(t.length)|0,r=_t(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||qa(t.length)?_t(0):Ra(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Ra(t.data)}function ka(t){if(t>=Ii)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ii.toString(16)+" bytes");return t|0}function u0(t){return+t!=t&&(t=0),x.alloc(+t)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype};x.compare=function(e,r){if(ft(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),ft(r,Uint8Array)&&(r=x.from(r,r.offset,r.byteLength)),!x.isBuffer(e)||!x.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,o=r.length;for(let i=0,s=Math.min(n,o);i<s;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};x.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};x.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let o=x.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){let s=e[n];if(ft(s,Uint8Array))i+s.length>o.length?(x.isBuffer(s)||(s=x.from(s)),s.copy(o,i)):Uint8Array.prototype.set.call(o,s,i);else if(x.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function Mf(t,e){if(x.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ft(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ua(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Uf(t).length;default:if(o)return n?-1:Ua(t).length;e=(""+e).toLowerCase(),o=!0}}x.byteLength=Mf;function l0(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return v0(this,e,r);case"utf8":case"utf-8":return $f(this,e,r);case"ascii":return y0(this,e,r);case"latin1":case"binary":return x0(this,e,r);case"base64":return m0(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b0(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}x.prototype._isBuffer=!0;function yr(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}x.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)yr(this,r,r+1);return this};x.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)yr(this,r,r+3),yr(this,r+1,r+2);return this};x.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)yr(this,r,r+7),yr(this,r+1,r+6),yr(this,r+2,r+5),yr(this,r+3,r+4);return this};x.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?$f(this,0,e):l0.apply(this,arguments)};x.prototype.toLocaleString=x.prototype.toString;x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0};x.prototype.inspect=function(){let e="",r=Zr.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Ef&&(x.prototype[Ef]=x.prototype.inspect);x.prototype.compare=function(e,r,n,o,i){if(ft(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let s=i-o,a=n-r,u=Math.min(s,a),l=this.slice(o,i),c=e.slice(r,n);for(let p=0;p<u;++p)if(l[p]!==c[p]){s=l[p],a=c[p];break}return s<a?-1:a<s?1:0};function Pf(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,qa(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=x.from(e,n)),x.isBuffer(e))return e.length===0?-1:Tf(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Tf(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Tf(t,e,r,n,o){let i=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,s/=2,a/=2,r/=2}function u(c,p){return i===1?c[p]:c.readUInt16BE(p*i)}let l;if(o){let c=-1;for(l=r;l<s;l++)if(u(t,l)===u(e,c===-1?0:l-c)){if(c===-1&&(c=l),l-c+1===a)return c*i}else c!==-1&&(l-=l-c),c=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){let c=!0;for(let p=0;p<a;p++)if(u(t,l+p)!==u(e,p)){c=!1;break}if(c)return l}return-1}x.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};x.prototype.indexOf=function(e,r,n){return Pf(this,e,r,n,!0)};x.prototype.lastIndexOf=function(e,r,n){return Pf(this,e,r,n,!1)};function c0(t,e,r,n){r=Number(r)||0;let o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let i=e.length;n>i/2&&(n=i/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(qa(a))return s;t[r+s]=a}return s}function f0(t,e,r,n){return Mi(Ua(e,t.length-r),t,r,n)}function p0(t,e,r,n){return Mi(T0(e),t,r,n)}function h0(t,e,r,n){return Mi(Uf(e),t,r,n)}function d0(t,e,r,n){return Mi(_0(e,t.length-r),t,r,n)}x.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return c0(this,e,r,n);case"utf8":case"utf-8":return f0(this,e,r,n);case"ascii":case"latin1":case"binary":return p0(this,e,r,n);case"base64":return h0(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d0(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m0(t,e,r){return e===0&&r===t.length?Da.fromByteArray(t):Da.fromByteArray(t.slice(e,r))}function $f(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){let u,l,c,p;switch(a){case 1:i<128&&(s=i);break;case 2:u=t[o+1],(u&192)===128&&(p=(i&31)<<6|u&63,p>127&&(s=p));break;case 3:u=t[o+1],l=t[o+2],(u&192)===128&&(l&192)===128&&(p=(i&15)<<12|(u&63)<<6|l&63,p>2047&&(p<55296||p>57343)&&(s=p));break;case 4:u=t[o+1],l=t[o+2],c=t[o+3],(u&192)===128&&(l&192)===128&&(c&192)===128&&(p=(i&15)<<18|(u&63)<<12|(l&63)<<6|c&63,p>65535&&p<1114112&&(s=p))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return g0(n)}var _f=4096;function g0(t){let e=t.length;if(e<=_f)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=_f));return r}function y0(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function x0(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function v0(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=e;i<r;++i)o+=C0[t[i]];return o}function b0(t,e,r){let n=t.slice(e,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}x.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let o=this.subarray(e,r);return Object.setPrototypeOf(o,x.prototype),o};function Me(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Me(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return o};x.prototype.readUintBE=x.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Me(e,r,this.length);let o=this[e+--r],i=1;for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o};x.prototype.readUint8=x.prototype.readUInt8=function(e,r){return e=e>>>0,r||Me(e,1,this.length),this[e]};x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Me(e,2,this.length),this[e]|this[e+1]<<8};x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Me(e,2,this.length),this[e]<<8|this[e+1]};x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Me(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Me(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};x.prototype.readBigUInt64LE=qt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&no(e,this.length-8);let o=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});x.prototype.readBigUInt64BE=qt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&no(e,this.length-8);let o=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(i)});x.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Me(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};x.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Me(e,r,this.length);let o=r,i=1,s=this[e+--o];for(;o>0&&(i*=256);)s+=this[e+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};x.prototype.readInt8=function(e,r){return e=e>>>0,r||Me(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};x.prototype.readInt16LE=function(e,r){e=e>>>0,r||Me(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};x.prototype.readInt16BE=function(e,r){e=e>>>0,r||Me(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};x.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Me(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};x.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Me(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};x.prototype.readBigInt64LE=qt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&no(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});x.prototype.readBigInt64BE=qt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&no(e,this.length-8);let o=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});x.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Me(e,4,this.length),Yr.read(this,e,!0,23,4)};x.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Me(e,4,this.length),Yr.read(this,e,!1,23,4)};x.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Me(e,8,this.length),Yr.read(this,e,!0,52,8)};x.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Me(e,8,this.length),Yr.read(this,e,!1,52,8)};function ke(t,e,r,n,o,i){if(!x.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;ke(this,e,r,n,a,0)}let i=1,s=0;for(this[r]=e&255;++s<n&&(i*=256);)this[r+s]=e/i&255;return r+n};x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;ke(this,e,r,n,a,0)}let i=n-1,s=1;for(this[r+i]=e&255;--i>=0&&(s*=256);)this[r+i]=e/s&255;return r+n};x.prototype.writeUint8=x.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,1,255,0),this[r]=e&255,r+1};x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Nf(t,e,r,n,o){Ff(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function Bf(t,e,r,n,o){Ff(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i=i>>8,t[r+6]=i,i=i>>8,t[r+5]=i,i=i>>8,t[r+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}x.prototype.writeBigUInt64LE=qt(function(e,r=0){return Nf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeBigUInt64BE=qt(function(e,r=0){return Bf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let u=Math.pow(2,8*n-1);ke(this,e,r,n,u-1,-u)}let i=0,s=1,a=0;for(this[r]=e&255;++i<n&&(s*=256);)e<0&&a===0&&this[r+i-1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};x.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let u=Math.pow(2,8*n-1);ke(this,e,r,n,u-1,-u)}let i=n-1,s=1,a=0;for(this[r+i]=e&255;--i>=0&&(s*=256);)e<0&&a===0&&this[r+i+1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};x.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};x.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};x.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};x.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};x.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||ke(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};x.prototype.writeBigInt64LE=qt(function(e,r=0){return Nf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});x.prototype.writeBigInt64BE=qt(function(e,r=0){return Bf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Of(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Df(t,e,r,n,o){return e=+e,r=r>>>0,o||Of(t,e,r,4,34028234663852886e22,-34028234663852886e22),Yr.write(t,e,r,n,23,4),r+4}x.prototype.writeFloatLE=function(e,r,n){return Df(this,e,r,!0,n)};x.prototype.writeFloatBE=function(e,r,n){return Df(this,e,r,!1,n)};function Rf(t,e,r,n,o){return e=+e,r=r>>>0,o||Of(t,e,r,8,17976931348623157e292,-17976931348623157e292),Yr.write(t,e,r,n,52,8),r+8}x.prototype.writeDoubleLE=function(e,r,n){return Rf(this,e,r,!0,n)};x.prototype.writeDoubleBE=function(e,r,n){return Rf(this,e,r,!1,n)};x.prototype.copy=function(e,r,n,o){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);let i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};x.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!x.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let s=e.charCodeAt(0);(o==="utf8"&&s<128||o==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else{let s=x.isBuffer(e)?e:x.from(e,o),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=s[i%a]}return this};var Jr={};function ja(t,e,r){Jr[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}ja("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);ja("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);ja("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=Cf(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=Cf(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function Cf(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function w0(t,e,r){Qr(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&no(e,t.length-(r+1))}function Ff(t,e,r,n,o,i){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw i>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:a=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new Jr.ERR_OUT_OF_RANGE("value",a,t)}w0(n,o,i)}function Qr(t,e){if(typeof t!="number")throw new Jr.ERR_INVALID_ARG_TYPE(e,"number",t)}function no(t,e,r){throw Math.floor(t)!==t?(Qr(t,r),new Jr.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Jr.ERR_BUFFER_OUT_OF_BOUNDS:new Jr.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var S0=/[^+/0-9A-Za-z-_]/g;function E0(t){if(t=t.split("=")[0],t=t.trim().replace(S0,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ua(t,e){e=e||1/0;let r,n=t.length,o=null,i=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function T0(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function _0(t,e){let r,n,o,i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Uf(t){return Da.toByteArray(E0(t))}function Mi(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function ft(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function qa(t){return t!==t}var C0=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function qt(t){return typeof BigInt>"u"?A0:t}function A0(){throw new Error("BigInt not supported")}});var kf=M((Xr,Kr)=>{(function(t){var e=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,r=typeof Kr=="object"&&Kr&&!Kr.nodeType&&Kr,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var o,i=2147483647,s=36,a=1,u=26,l=38,c=700,p=72,h=128,y="-",w=/^xn--/,C=/[^\x20-\x7E]/,B=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=s-a,O=Math.floor,N=String.fromCharCode,j;function U(b){throw new RangeError(_[b])}function J(b,I){for(var R=b.length,q=[];R--;)q[R]=I(b[R]);return q}function F(b,I){var R=b.split("@"),q="";R.length>1&&(q=R[0]+"@",b=R[1]),b=b.replace(B,".");var z=b.split("."),K=J(z,I).join(".");return q+K}function D(b){for(var I=[],R=0,q=b.length,z,K;R<q;)z=b.charCodeAt(R++),z>=55296&&z<=56319&&R<q?(K=b.charCodeAt(R++),(K&64512)==56320?I.push(((z&1023)<<10)+(K&1023)+65536):(I.push(z),R--)):I.push(z);return I}function te(b){return J(b,function(I){var R="";return I>65535&&(I-=65536,R+=N(I>>>10&1023|55296),I=56320|I&1023),R+=N(I),R}).join("")}function we(b){return b-48<10?b-22:b-65<26?b-65:b-97<26?b-97:s}function $(b,I){return b+22+75*(b<26)-((I!=0)<<5)}function S(b,I,R){var q=0;for(b=R?O(b/c):b>>1,b+=O(b/I);b>A*u>>1;q+=s)b=O(b/A);return O(q+(A+1)*b/(b+l))}function E(b){var I=[],R=b.length,q,z=0,K=h,re=p,fe,Se,m,f,d,g,v,L,ne;for(fe=b.lastIndexOf(y),fe<0&&(fe=0),Se=0;Se<fe;++Se)b.charCodeAt(Se)>=128&&U("not-basic"),I.push(b.charCodeAt(Se));for(m=fe>0?fe+1:0;m<R;){for(f=z,d=1,g=s;m>=R&&U("invalid-input"),v=we(b.charCodeAt(m++)),(v>=s||v>O((i-z)/d))&&U("overflow"),z+=v*d,L=g<=re?a:g>=re+u?u:g-re,!(v<L);g+=s)ne=s-L,d>O(i/ne)&&U("overflow"),d*=ne;q=I.length+1,re=S(z-f,q,f==0),O(z/q)>i-K&&U("overflow"),K+=O(z/q),z%=q,I.splice(z++,0,K)}return te(I)}function P(b){var I,R,q,z,K,re,fe,Se,m,f,d,g=[],v,L,ne,oe;for(b=D(b),v=b.length,I=h,R=0,K=p,re=0;re<v;++re)d=b[re],d<128&&g.push(N(d));for(q=z=g.length,z&&g.push(y);q<v;){for(fe=i,re=0;re<v;++re)d=b[re],d>=I&&d<fe&&(fe=d);for(L=q+1,fe-I>O((i-R)/L)&&U("overflow"),R+=(fe-I)*L,I=fe,re=0;re<v;++re)if(d=b[re],d<I&&++R>i&&U("overflow"),d==I){for(Se=R,m=s;f=m<=K?a:m>=K+u?u:m-K,!(Se<f);m+=s)oe=Se-f,ne=s-f,g.push(N($(f+oe%ne,0))),Se=O(oe/ne);g.push(N($(Se,0))),K=S(R,L,q==z),R=0,++q}++R,++I}return g.join("")}function T(b){return F(b,function(I){return w.test(I)?E(I.slice(4).toLowerCase()):I})}function k(b){return F(b,function(I){return C.test(I)?"xn--"+P(I):I})}if(o={version:"1.4.1",ucs2:{decode:D,encode:te},decode:E,encode:P,toASCII:k,toUnicode:T},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return o});else if(e&&r)if(Kr.exports==e)r.exports=o;else for(j in o)o.hasOwnProperty(j)&&(e[j]=o[j]);else t.punycode=o})(Xr)});var qf=M((rM,jf)=>{"use strict";jf.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}});var zf=M((nM,Wf)=>{"use strict";var Hf=typeof Symbol<"u"&&Symbol,I0=qf();Wf.exports=function(){return typeof Hf!="function"||typeof Symbol!="function"||typeof Hf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:I0()}});var Jf=M((oM,Gf)=>{"use strict";var Vf={foo:{}},M0=Object;Gf.exports=function(){return{__proto__:Vf}.foo===Vf.foo&&!({__proto__:null}instanceof M0)}});var Zf=M((iM,Qf)=>{"use strict";var P0="Function.prototype.bind called on incompatible ",$0=Object.prototype.toString,N0=Math.max,B0="[object Function]",Yf=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},O0=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},D0=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};Qf.exports=function(e){var r=this;if(typeof r!="function"||$0.apply(r)!==B0)throw new TypeError(P0+r);for(var n=O0(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,Yf(n,arguments));return Object(c)===c?c:this}return r.apply(e,Yf(n,arguments))},s=N0(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+D0(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}});var Ha=M((sM,Xf)=>{"use strict";var R0=Zf();Xf.exports=Function.prototype.bind||R0});var tp=M((aM,ep)=>{"use strict";var Kf={}.hasOwnProperty,Wa=Function.prototype.call;ep.exports=Wa.bind?Wa.bind(Kf):function(t,e){return Wa.call(Kf,t,e)}});var Ni=M((uM,sp)=>{"use strict";var Z,nn=SyntaxError,ip=Function,rn=TypeError,za=function(t){try{return ip('"use strict"; return ('+t+").constructor;")()}catch{}},xr=Object.getOwnPropertyDescriptor;if(xr)try{xr({},"")}catch{xr=null}var Va=function(){throw new rn},F0=xr?function(){try{return arguments.callee,Va}catch{try{return xr(arguments,"callee").get}catch{return Va}}}():Va,en=zf()(),U0=Jf()(),Pe=Object.getPrototypeOf||(U0?function(t){return t.__proto__}:null),tn={},L0=typeof Uint8Array>"u"||!Pe?Z:Pe(Uint8Array),vr={"%AggregateError%":typeof AggregateError>"u"?Z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Z:ArrayBuffer,"%ArrayIteratorPrototype%":en&&Pe?Pe([][Symbol.iterator]()):Z,"%AsyncFromSyncIteratorPrototype%":Z,"%AsyncFunction%":tn,"%AsyncGenerator%":tn,"%AsyncGeneratorFunction%":tn,"%AsyncIteratorPrototype%":tn,"%Atomics%":typeof Atomics>"u"?Z:Atomics,"%BigInt%":typeof BigInt>"u"?Z:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Z:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Z:FinalizationRegistry,"%Function%":ip,"%GeneratorFunction%":tn,"%Int8Array%":typeof Int8Array>"u"?Z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":en&&Pe?Pe(Pe([][Symbol.iterator]())):Z,"%JSON%":typeof JSON=="object"?JSON:Z,"%Map%":typeof Map>"u"?Z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!en||!Pe?Z:Pe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Z:Promise,"%Proxy%":typeof Proxy>"u"?Z:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Z:Set,"%SetIteratorPrototype%":typeof Set>"u"||!en||!Pe?Z:Pe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":en&&Pe?Pe(""[Symbol.iterator]()):Z,"%Symbol%":en?Symbol:Z,"%SyntaxError%":nn,"%ThrowTypeError%":F0,"%TypedArray%":L0,"%TypeError%":rn,"%Uint8Array%":typeof Uint8Array>"u"?Z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Z:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Z:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Z:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Z:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Z:WeakSet};if(Pe)try{null.error}catch(t){rp=Pe(Pe(t)),vr["%Error.prototype%"]=rp}var rp,k0=function t(e){var r;if(e==="%AsyncFunction%")r=za("async function () {}");else if(e==="%GeneratorFunction%")r=za("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=za("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&Pe&&(r=Pe(o.prototype))}return vr[e]=r,r},np={"%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"]},oo=Ha(),Pi=tp(),j0=oo.call(Function.call,Array.prototype.concat),q0=oo.call(Function.apply,Array.prototype.splice),op=oo.call(Function.call,String.prototype.replace),$i=oo.call(Function.call,String.prototype.slice),H0=oo.call(Function.call,RegExp.prototype.exec),W0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z0=/\\(\\)?/g,V0=function(e){var r=$i(e,0,1),n=$i(e,-1);if(r==="%"&&n!=="%")throw new nn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new nn("invalid intrinsic syntax, expected opening `%`");var o=[];return op(e,W0,function(i,s,a,u){o[o.length]=a?op(u,z0,"$1"):s||i}),o},G0=function(e,r){var n=e,o;if(Pi(np,n)&&(o=np[n],n="%"+o[0]+"%"),Pi(vr,n)){var i=vr[n];if(i===tn&&(i=k0(n)),typeof i>"u"&&!r)throw new rn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new nn("intrinsic "+e+" does not exist!")};sp.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new rn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new rn('"allowMissing" argument must be a boolean');if(H0(/^%?[^%]*%?$/,e)===null)throw new nn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=V0(e),o=n.length>0?n[0]:"",i=G0("%"+o+"%",r),s=i.name,a=i.value,u=!1,l=i.alias;l&&(o=l[0],q0(n,j0([0,1],l)));for(var c=1,p=!0;c<n.length;c+=1){var h=n[c],y=$i(h,0,1),w=$i(h,-1);if((y==='"'||y==="'"||y==="`"||w==='"'||w==="'"||w==="`")&&y!==w)throw new nn("property names with quotes must have matching quotes");if((h==="constructor"||!p)&&(u=!0),o+="."+h,s="%"+o+"%",Pi(vr,s))a=vr[s];else if(a!=null){if(!(h in a)){if(!r)throw new rn("base intrinsic for "+e+" exists, but the property is not available.");return}if(xr&&c+1>=n.length){var C=xr(a,h);p=!!C,p&&"get"in C&&!("originalValue"in C.get)?a=C.get:a=a[h]}else p=Pi(a,h),a=a[h];p&&!u&&(vr[s]=a)}}return a}});var pp=M((lM,Bi)=>{"use strict";var Ga=Ha(),on=Ni(),lp=on("%Function.prototype.apply%"),cp=on("%Function.prototype.call%"),fp=on("%Reflect.apply%",!0)||Ga.call(cp,lp),ap=on("%Object.getOwnPropertyDescriptor%",!0),br=on("%Object.defineProperty%",!0),J0=on("%Math.max%");if(br)try{br({},"a",{value:1})}catch{br=null}Bi.exports=function(e){var r=fp(Ga,cp,arguments);if(ap&&br){var n=ap(r,"length");n.configurable&&br(r,"length",{value:1+J0(0,e.length-(arguments.length-1))})}return r};var up=function(){return fp(Ga,lp,arguments)};br?br(Bi.exports,"apply",{value:up}):Bi.exports.apply=up});var gp=M((cM,mp)=>{"use strict";var hp=Ni(),dp=pp(),Y0=dp(hp("String.prototype.indexOf"));mp.exports=function(e,r){var n=hp(e,!!r);return typeof n=="function"&&Y0(e,".prototype.")>-1?dp(n):n}});var yp=M(()=>{});var Fp=M((hM,Rp)=>{var nu=typeof Map=="function"&&Map.prototype,Ja=Object.getOwnPropertyDescriptor&&nu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Di=nu&&Ja&&typeof Ja.get=="function"?Ja.get:null,xp=nu&&Map.prototype.forEach,ou=typeof Set=="function"&&Set.prototype,Ya=Object.getOwnPropertyDescriptor&&ou?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ri=ou&&Ya&&typeof Ya.get=="function"?Ya.get:null,vp=ou&&Set.prototype.forEach,Q0=typeof WeakMap=="function"&&WeakMap.prototype,so=Q0?WeakMap.prototype.has:null,Z0=typeof WeakSet=="function"&&WeakSet.prototype,ao=Z0?WeakSet.prototype.has:null,X0=typeof WeakRef=="function"&&WeakRef.prototype,bp=X0?WeakRef.prototype.deref:null,K0=Boolean.prototype.valueOf,ex=Object.prototype.toString,tx=Function.prototype.toString,rx=String.prototype.match,iu=String.prototype.slice,Wt=String.prototype.replace,nx=String.prototype.toUpperCase,wp=String.prototype.toLowerCase,Pp=RegExp.prototype.test,Sp=Array.prototype.concat,pt=Array.prototype.join,ox=Array.prototype.slice,Ep=Math.floor,Xa=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Qa=Object.getOwnPropertySymbols,Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sn||"symbol")?Symbol.toStringTag:null,$p=Object.prototype.propertyIsEnumerable,Tp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function _p(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Pp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ep(-t):Ep(t);if(n!==t){var o=String(n),i=iu.call(e,o.length+1);return Wt.call(o,r,"$&_")+"."+Wt.call(Wt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wt.call(e,r,"$&_")}var eu=yp(),Cp=eu.custom,Ap=Bp(Cp)?Cp:null;Rp.exports=function t(e,r,n,o){var i=r||{};if(Ht(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ht(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=Ht(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(Ht(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(Ht(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 Dp(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?_p(e,u):u}if(typeof e=="bigint"){var l=String(e)+"n";return a?_p(e,l):l}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return tu(e)?"[Array]":"[Object]";var p=Sx(i,n);if(typeof o>"u")o=[];else if(Op(o,e)>=0)return"[Circular]";function h(S,E,P){if(E&&(o=ox.call(o),o.push(E)),P){var T={depth:i.depth};return Ht(i,"quoteStyle")&&(T.quoteStyle=i.quoteStyle),t(S,T,n+1,o)}return t(S,i,n+1,o)}if(typeof e=="function"&&!Ip(e)){var y=hx(e),w=Oi(e,h);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(w.length>0?" { "+pt.call(w,", ")+" }":"")}if(Bp(e)){var C=sn?Wt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ka.call(e);return typeof e=="object"&&!sn?io(C):C}if(vx(e)){for(var B="<"+wp.call(String(e.nodeName)),_=e.attributes||[],A=0;A<_.length;A++)B+=" "+_[A].name+"="+Np(ix(_[A].value),"double",i);return B+=">",e.childNodes&&e.childNodes.length&&(B+="..."),B+="</"+wp.call(String(e.nodeName))+">",B}if(tu(e)){if(e.length===0)return"[]";var O=Oi(e,h);return p&&!wx(O)?"["+ru(O,p)+"]":"[ "+pt.call(O,", ")+" ]"}if(ax(e)){var N=Oi(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!$p.call(e,"cause")?"{ ["+String(e)+"] "+pt.call(Sp.call("[cause]: "+h(e.cause),N),", ")+" }":N.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+pt.call(N,", ")+" }"}if(typeof e=="object"&&s){if(Ap&&typeof e[Ap]=="function"&&eu)return eu(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(dx(e)){var j=[];return xp&&xp.call(e,function(S,E){j.push(h(E,e,!0)+" => "+h(S,e))}),Mp("Map",Di.call(e),j,p)}if(yx(e)){var U=[];return vp&&vp.call(e,function(S){U.push(h(S,e))}),Mp("Set",Ri.call(e),U,p)}if(mx(e))return Za("WeakMap");if(xx(e))return Za("WeakSet");if(gx(e))return Za("WeakRef");if(lx(e))return io(h(Number(e)));if(fx(e))return io(h(Xa.call(e)));if(cx(e))return io(K0.call(e));if(ux(e))return io(h(String(e)));if(!sx(e)&&!Ip(e)){var J=Oi(e,h),F=Tp?Tp(e)===Object.prototype:e instanceof Object||e.constructor===Object,D=e instanceof Object?"":"null prototype",te=!F&&Fe&&Object(e)===e&&Fe in e?iu.call(zt(e),8,-1):D?"Object":"",we=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",$=we+(te||D?"["+pt.call(Sp.call([],te||[],D||[]),": ")+"] ":"");return J.length===0?$+"{}":p?$+"{"+ru(J,p)+"}":$+"{ "+pt.call(J,", ")+" }"}return String(e)};function Np(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function ix(t){return Wt.call(String(t),/"/g,""")}function tu(t){return zt(t)==="[object Array]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function sx(t){return zt(t)==="[object Date]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Ip(t){return zt(t)==="[object RegExp]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function ax(t){return zt(t)==="[object Error]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function ux(t){return zt(t)==="[object String]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function lx(t){return zt(t)==="[object Number]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function cx(t){return zt(t)==="[object Boolean]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Bp(t){if(sn)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ka)return!1;try{return Ka.call(t),!0}catch{}return!1}function fx(t){if(!t||typeof t!="object"||!Xa)return!1;try{return Xa.call(t),!0}catch{}return!1}var px=Object.prototype.hasOwnProperty||function(t){return t in this};function Ht(t,e){return px.call(t,e)}function zt(t){return ex.call(t)}function hx(t){if(t.name)return t.name;var e=rx.call(tx.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Op(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function dx(t){if(!Di||!t||typeof t!="object")return!1;try{Di.call(t);try{Ri.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function mx(t){if(!so||!t||typeof t!="object")return!1;try{so.call(t,so);try{ao.call(t,ao)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function gx(t){if(!bp||!t||typeof t!="object")return!1;try{return bp.call(t),!0}catch{}return!1}function yx(t){if(!Ri||!t||typeof t!="object")return!1;try{Ri.call(t);try{Di.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function xx(t){if(!ao||!t||typeof t!="object")return!1;try{ao.call(t,ao);try{so.call(t,so)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function vx(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Dp(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Dp(iu.call(t,0,e.maxStringLength),e)+n}var o=Wt.call(Wt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bx);return Np(o,"single",e)}function bx(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":"")+nx.call(e.toString(16))}function io(t){return"Object("+t+")"}function Za(t){return t+" { ? }"}function Mp(t,e,r,n){var o=n?ru(r,n):pt.call(r,", ");return t+" ("+e+") {"+o+"}"}function wx(t){for(var e=0;e<t.length;e++)if(Op(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Sx(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=pt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:pt.call(Array(e+1),r)}}function ru(t,e){if(t.length===0)return"";var r=`
|
|
3
|
+
`+e.prev+e.base;return r+pt.call(t,","+r)+`
|
|
4
|
+
`+e.prev}function Oi(t,e){var r=tu(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=Ht(t,o)?e(t[o],t):""}var i=typeof Qa=="function"?Qa(t):[],s;if(sn){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Ht(t,u)&&(r&&String(Number(u))===u&&u<t.length||sn&&s["$"+u]instanceof Symbol||(Pp.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof Qa=="function")for(var l=0;l<i.length;l++)$p.call(t,i[l])&&n.push("["+e(i[l])+"]: "+e(t[i[l]],t));return n}});var Lp=M((dM,Up)=>{"use strict";var su=Ni(),an=gp(),Ex=Fp(),Tx=su("%TypeError%"),Fi=su("%WeakMap%",!0),Ui=su("%Map%",!0),_x=an("WeakMap.prototype.get",!0),Cx=an("WeakMap.prototype.set",!0),Ax=an("WeakMap.prototype.has",!0),Ix=an("Map.prototype.get",!0),Mx=an("Map.prototype.set",!0),Px=an("Map.prototype.has",!0),au=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},$x=function(t,e){var r=au(t,e);return r&&r.value},Nx=function(t,e,r){var n=au(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Bx=function(t,e){return!!au(t,e)};Up.exports=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new Tx("Side channel does not contain "+Ex(i))},get:function(i){if(Fi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return _x(e,i)}else if(Ui){if(r)return Ix(r,i)}else if(n)return $x(n,i)},has:function(i){if(Fi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Ax(e,i)}else if(Ui){if(r)return Px(r,i)}else if(n)return Bx(n,i);return!1},set:function(i,s){Fi&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Fi),Cx(e,i,s)):Ui?(r||(r=new Ui),Mx(r,i,s)):(n||(n={key:{},next:null}),Nx(n,i,s))}};return o}});var Li=M((mM,kp)=>{"use strict";var Ox=String.prototype.replace,Dx=/%20/g,uu={RFC1738:"RFC1738",RFC3986:"RFC3986"};kp.exports={default:uu.RFC3986,formatters:{RFC1738:function(t){return Ox.call(t,Dx,"+")},RFC3986:function(t){return String(t)}},RFC1738:uu.RFC1738,RFC3986:uu.RFC3986}});var cu=M((gM,qp)=>{"use strict";var Rx=Li(),lu=Object.prototype.hasOwnProperty,wr=Array.isArray,ht=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Fx=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(wr(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},jp=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},Ux=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(wr(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!lu.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return wr(e)&&!wr(r)&&(o=jp(e,n)),wr(e)&&wr(r)?(r.forEach(function(i,s){if(lu.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,n):e.push(i)}else e[s]=i}),e):Object.keys(r).reduce(function(i,s){var a=r[s];return lu.call(i,s)?i[s]=t(i[s],a,n):i[s]=a,i},o)},Lx=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},kx=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},jx=function(e,r,n,o,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;++u){var l=s.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Rx.RFC1738&&(l===40||l===41)){a+=s.charAt(u);continue}if(l<128){a=a+ht[l];continue}if(l<2048){a=a+(ht[192|l>>6]+ht[128|l&63]);continue}if(l<55296||l>=57344){a=a+(ht[224|l>>12]+ht[128|l>>6&63]+ht[128|l&63]);continue}u+=1,l=65536+((l&1023)<<10|s.charCodeAt(u)&1023),a+=ht[240|l>>18]+ht[128|l>>12&63]+ht[128|l>>6&63]+ht[128|l&63]}return a},qx=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var l=a[u],c=s[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:l}),n.push(c))}return Fx(r),e},Hx=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Wx=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},zx=function(e,r){return[].concat(e,r)},Vx=function(e,r){if(wr(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)};qp.exports={arrayToObject:jp,assign:Lx,combine:zx,compact:qx,decode:kx,encode:jx,isBuffer:Wx,isRegExp:Hx,maybeMap:Vx,merge:Ux}});var Jp=M((yM,Gp)=>{"use strict";var zp=Lp(),ki=cu(),uo=Li(),Gx=Object.prototype.hasOwnProperty,Hp={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Ct=Array.isArray,Jx=Array.prototype.push,Vp=function(t,e){Jx.apply(t,Ct(e)?e:[e])},Yx=Date.prototype.toISOString,Wp=uo.default,Ue={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ki.encode,encodeValuesOnly:!1,format:Wp,formatter:uo.formatters[Wp],indices:!1,serializeDate:function(e){return Yx.call(e)},skipNulls:!1,strictNullHandling:!1},Qx=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},fu={},Zx=function t(e,r,n,o,i,s,a,u,l,c,p,h,y,w,C,B){for(var _=e,A=B,O=0,N=!1;(A=A.get(fu))!==void 0&&!N;){var j=A.get(e);if(O+=1,typeof j<"u"){if(j===O)throw new RangeError("Cyclic object value");N=!0}typeof A.get(fu)>"u"&&(O=0)}if(typeof u=="function"?_=u(r,_):_ instanceof Date?_=p(_):n==="comma"&&Ct(_)&&(_=ki.maybeMap(_,function(T){return T instanceof Date?p(T):T})),_===null){if(i)return a&&!w?a(r,Ue.encoder,C,"key",h):r;_=""}if(Qx(_)||ki.isBuffer(_)){if(a){var U=w?r:a(r,Ue.encoder,C,"key",h);return[y(U)+"="+y(a(_,Ue.encoder,C,"value",h))]}return[y(r)+"="+y(String(_))]}var J=[];if(typeof _>"u")return J;var F;if(n==="comma"&&Ct(_))w&&a&&(_=ki.maybeMap(_,a)),F=[{value:_.length>0?_.join(",")||null:void 0}];else if(Ct(u))F=u;else{var D=Object.keys(_);F=l?D.sort(l):D}for(var te=o&&Ct(_)&&_.length===1?r+"[]":r,we=0;we<F.length;++we){var $=F[we],S=typeof $=="object"&&typeof $.value<"u"?$.value:_[$];if(!(s&&S===null)){var E=Ct(_)?typeof n=="function"?n(te,$):te:te+(c?"."+$:"["+$+"]");B.set(e,O);var P=zp();P.set(fu,B),Vp(J,t(S,E,n,o,i,s,n==="comma"&&w&&Ct(_)?null:a,u,l,c,p,h,y,w,C,P))}}return J},Xx=function(e){if(!e)return Ue;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||Ue.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=uo.default;if(typeof e.format<"u"){if(!Gx.call(uo.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=uo.formatters[n],i=Ue.filter;return(typeof e.filter=="function"||Ct(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Ue.addQueryPrefix,allowDots:typeof e.allowDots>"u"?Ue.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ue.charsetSentinel,delimiter:typeof e.delimiter>"u"?Ue.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Ue.encode,encoder:typeof e.encoder=="function"?e.encoder:Ue.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Ue.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Ue.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Ue.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ue.strictNullHandling}};Gp.exports=function(t,e){var r=t,n=Xx(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Ct(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in Hp?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var u=Hp[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=u==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var c=zp(),p=0;p<o.length;++p){var h=o[p];n.skipNulls&&r[h]===null||Vp(s,Zx(r[h],h,u,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var y=s.join(n.delimiter),w=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),y.length>0?w+y:""}});var Zp=M((xM,Qp)=>{"use strict";var un=cu(),pu=Object.prototype.hasOwnProperty,Kx=Array.isArray,$e={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:un.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ev=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Yp=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},tv="utf8=%26%2310003%3B",rv="utf8=%E2%9C%93",nv=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===rv?l="utf-8":s[u]===tv&&(l="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var c=s[u],p=c.indexOf("]="),h=p===-1?c.indexOf("="):p+1,y,w;h===-1?(y=r.decoder(c,$e.decoder,l,"key"),w=r.strictNullHandling?null:""):(y=r.decoder(c.slice(0,h),$e.decoder,l,"key"),w=un.maybeMap(Yp(c.slice(h+1),r),function(C){return r.decoder(C,$e.decoder,l,"value")})),w&&r.interpretNumericEntities&&l==="iso-8859-1"&&(w=ev(w)),c.indexOf("[]=")>-1&&(w=Kx(w)?[w]:w),pu.call(n,y)?n[y]=un.combine(n[y],w):n[y]=w}return n},ov=function(t,e,r,n){for(var o=n?e:Yp(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,l=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[],s[l]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},iv=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=n.depth>0&&s.exec(i),l=u?i.slice(0,u.index):i,c=[];if(l){if(!n.plainObjects&&pu.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var p=0;n.depth>0&&(u=a.exec(i))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&pu.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),ov(c,r,n,o)}},sv=function(e){if(!e)return $e;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?$e.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?$e.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:$e.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:$e.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:$e.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:$e.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:$e.comma,decoder:typeof e.decoder=="function"?e.decoder:$e.decoder,delimiter:typeof e.delimiter=="string"||un.isRegExp(e.delimiter)?e.delimiter:$e.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:$e.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:$e.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:$e.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:$e.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:$e.strictNullHandling}};Qp.exports=function(t,e){var r=sv(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?nv(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],u=iv(a,n[a],r,typeof t=="string");o=un.merge(o,u,r)}return r.allowSparse===!0?o:un.compact(o)}});var Kp=M((vM,Xp)=>{"use strict";var av=Jp(),uv=Zp(),lv=Li();Xp.exports={formats:lv,parse:uv,stringify:av}});var nh=M(cn=>{"use strict";var cv=kf();function Ye(){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 fv=/^([a-z0-9.+-]+:)/i,pv=/:[0-9]*$/,hv=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,dv=["<",">",'"',"`"," ","\r",`
|
|
5
|
+
`," "],mv=["{","}","|","\\","^","`"].concat(dv),hu=["'"].concat(mv),eh=["%","/","?",";","#"].concat(hu),th=["/","?","#"],gv=255,rh=/^[+a-z0-9A-Z_-]{0,63}$/,yv=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xv={javascript:!0,"javascript:":!0},du={javascript:!0,"javascript:":!0},ln={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},mu=Kp();function lo(t,e,r){if(t&&typeof t=="object"&&t instanceof Ye)return t;var n=new Ye;return n.parse(t,e,r),n}Ye.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=n!==-1&&n<t.indexOf("#")?"?":"#",i=t.split(o),s=/\\/g;i[0]=i[0].replace(s,"/"),t=i.join(o);var a=t;if(a=a.trim(),!r&&t.split("#").length===1){var u=hv.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=mu.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var l=fv.exec(a);if(l){l=l[0];var c=l.toLowerCase();this.protocol=c,a=a.substr(l.length)}if(r||l||a.match(/^\/\/[^@/]+@[^@/]+/)){var p=a.substr(0,2)==="//";p&&!(l&&du[l])&&(a=a.substr(2),this.slashes=!0)}if(!du[l]&&(p||l&&!ln[l])){for(var h=-1,y=0;y<th.length;y++){var w=a.indexOf(th[y]);w!==-1&&(h===-1||w<h)&&(h=w)}var C,B;h===-1?B=a.lastIndexOf("@"):B=a.lastIndexOf("@",h),B!==-1&&(C=a.slice(0,B),a=a.slice(B+1),this.auth=decodeURIComponent(C)),h=-1;for(var y=0;y<eh.length;y++){var w=a.indexOf(eh[y]);w!==-1&&(h===-1||w<h)&&(h=w)}h===-1&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var A=this.hostname.split(/\./),y=0,O=A.length;y<O;y++){var N=A[y];if(N&&!N.match(rh)){for(var j="",U=0,J=N.length;U<J;U++)N.charCodeAt(U)>127?j+="x":j+=N[U];if(!j.match(rh)){var F=A.slice(0,y),D=A.slice(y+1),te=N.match(yv);te&&(F.push(te[1]),D.unshift(te[2])),D.length&&(a="/"+D.join(".")+a),this.hostname=F.join(".");break}}}this.hostname.length>gv?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=cv.toASCII(this.hostname));var we=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+we,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!xv[c])for(var y=0,O=hu.length;y<O;y++){var S=hu[y];if(a.indexOf(S)!==-1){var E=encodeURIComponent(S);E===S&&(E=escape(S)),a=a.split(S).join(E)}}var P=a.indexOf("#");P!==-1&&(this.hash=a.substr(P),a=a.slice(0,P));var T=a.indexOf("?");if(T!==-1?(this.search=a.substr(T),this.query=a.substr(T+1),e&&(this.query=mu.parse(this.query)),a=a.slice(0,T)):e&&(this.search="",this.query={}),a&&(this.pathname=a),ln[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var we=this.pathname||"",k=this.search||"";this.path=we+k}return this.href=this.format(),this};function vv(t){return typeof t=="string"&&(t=lo(t)),t instanceof Ye?t.format():Ye.prototype.format.call(t)}Ye.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=mu.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ln[e])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),e+o+r+s+n};function bv(t,e){return lo(t,!1,!0).resolve(e)}Ye.prototype.resolve=function(t){return this.resolveObject(lo(t,!1,!0)).format()};function wv(t,e){return t?lo(t,!1,!0).resolveObject(e):e}Ye.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new Ye;e.parse(t,!1,!0),t=e}for(var r=new Ye,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];u!=="protocol"&&(r[u]=t[u])}return ln[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(!ln[t.protocol]){for(var l=Object.keys(t),c=0;c<l.length;c++){var p=l[c];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!du[t.protocol]){for(var O=(t.pathname||"").split("/");O.length&&!(t.host=O.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),O[0]!==""&&O.unshift(""),O.length<2&&O.unshift(""),r.pathname=O.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var h=r.pathname||"",y=r.search||"";r.path=h+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var w=r.pathname&&r.pathname.charAt(0)==="/",C=t.host||t.pathname&&t.pathname.charAt(0)==="/",B=C||w||r.host&&t.pathname,_=B,A=r.pathname&&r.pathname.split("/")||[],O=t.pathname&&t.pathname.split("/")||[],N=r.protocol&&!ln[r.protocol];if(N&&(r.hostname="",r.port=null,r.host&&(A[0]===""?A[0]=r.host:A.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(O[0]===""?O[0]=t.host:O.unshift(t.host)),t.host=null),B=B&&(O[0]===""||A[0]==="")),C)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,A=O;else if(O.length)A||(A=[]),A.pop(),A=A.concat(O),r.search=t.search,r.query=t.query;else if(t.search!=null){if(N){r.host=A.shift(),r.hostname=r.host;var j=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;j&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)}return r.search=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!A.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var U=A.slice(-1)[0],J=(r.host||t.host||A.length>1)&&(U==="."||U==="..")||U==="",F=0,D=A.length;D>=0;D--)U=A[D],U==="."?A.splice(D,1):U===".."?(A.splice(D,1),F++):F&&(A.splice(D,1),F--);if(!B&&!_)for(;F--;F)A.unshift("..");B&&A[0]!==""&&(!A[0]||A[0].charAt(0)!=="/")&&A.unshift(""),J&&A.join("/").substr(-1)!=="/"&&A.push("");var te=A[0]===""||A[0]&&A[0].charAt(0)==="/";if(N){r.hostname=te?"":A.length?A.shift():"",r.host=r.hostname;var j=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;j&&(r.auth=j.shift(),r.hostname=j.shift(),r.host=r.hostname)}return B=B||r.host&&A.length,B&&!te&&A.unshift(""),A.length>0?r.pathname=A.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};Ye.prototype.parseHost=function(){var t=this.host,e=pv.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};cn.parse=lo;cn.resolve=bv;cn.resolveObject=wv;cn.format=vv;cn.Url=Ye});var Eh=M((SM,Sh)=>{"use strict";Sh.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Ch=M((TM,_h)=>{"use strict";_h.exports=(t,e,r,n)=>{if(!Buffer.isBuffer(t))throw new TypeError(`Expected a \`Buffer\`, got \`${typeof t}\``);if(!(typeof e=="string"&&e.length>0)||!(typeof r=="string"||typeof r=="function"))return t;n=Object.assign({fromIndex:0},n);let o=0,i=s=>{let a=o===0?n.fromIndex:0,u=s.indexOf(e,a);if(u===-1)return s;o++;let l=Buffer.from(typeof r=="string"?r:r(e,o,t)),c=Buffer.from(e),p=s.slice(0,u),h=i(s.slice(u+c.length)),y=u+l.length+h.length;return Buffer.concat([p,l,h],y)};return i(t)}});var Ph=M((CM,Mh)=>{"use strict";Mh.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 Bh=M((AM,Nh)=>{var Ov=Object.prototype.toString;Nh.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 Lv(e)?"generatorfunction":"function";if(Dv(e))return"array";if(qv(e))return"buffer";if(jv(e))return"arguments";if(Fv(e))return"date";if(Rv(e))return"error";if(Uv(e))return"regexp";switch($h(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(kv(e))return"generator";switch(r=Ov.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 $h(t){return typeof t.constructor=="function"?t.constructor.name:null}function Dv(t){return Array.isArray?Array.isArray(t):t instanceof Array}function Rv(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Fv(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Uv(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function Lv(t,e){return $h(t)==="GeneratorFunction"}function kv(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function jv(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 qv(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Dh=M((IM,Oh)=>{Oh.exports=function(t){var e="Uint32Array"in t,r=t.crypto||t.msCrypto,n=r&&typeof r.getRandomValues=="function",o=e&&n;if(!o)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Uh=M((MM,bu)=>{"use strict";var Hv=Ph(),Rh=Bh(),Fh=Dh();bu.exports=Wv;bu.exports.isCrypto=!!Fh.cryptographic;var dt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};dt.all=dt.lower+dt.upper+dt.number+dt.special;function Wv(t,e,r){if(typeof t>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof t=="string"?e=t.length:Hv(t)&&(r={},e=t,t="*")),Rh(e)==="object"&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,n=!0);var o=r||{},i="",s="";if(t.indexOf("?")!==-1&&(i+=o.chars),t.indexOf("a")!==-1&&(i+=dt.lower),t.indexOf("A")!==-1&&(i+=dt.upper),t.indexOf("0")!==-1&&(i+=dt.number),t.indexOf("!")!==-1&&(i+=dt.special),t.indexOf("*")!==-1&&(i+=dt.all),n&&(i+=t),o.exclude){var a=Rh(o.exclude)==="string"?o.exclude:o.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),o.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=i.charAt(parseInt(Fh()*i.length,10));return s}});var $d=M((ho,dn)=>{var nb=200,td="__lodash_hash_undefined__",rd=9007199254740991,Ru="[object Arguments]",ob="[object Array]",nd="[object Boolean]",od="[object Date]",ib="[object Error]",Fu="[object Function]",id="[object GeneratorFunction]",Yi="[object Map]",sd="[object Number]",Uu="[object Object]",Wh="[object Promise]",ad="[object RegExp]",Qi="[object Set]",ud="[object String]",ld="[object Symbol]",Pu="[object WeakMap]",cd="[object ArrayBuffer]",Zi="[object DataView]",fd="[object Float32Array]",pd="[object Float64Array]",hd="[object Int8Array]",dd="[object Int16Array]",md="[object Int32Array]",gd="[object Uint8Array]",yd="[object Uint8ClampedArray]",xd="[object Uint16Array]",vd="[object Uint32Array]",sb=/[\\^$.*+?()[\]{}|]/g,ab=/\w*$/,ub=/^\[object .+?Constructor\]$/,lb=/^(?:0|[1-9]\d*)$/,ue={};ue[Ru]=ue[ob]=ue[cd]=ue[Zi]=ue[nd]=ue[od]=ue[fd]=ue[pd]=ue[hd]=ue[dd]=ue[md]=ue[Yi]=ue[sd]=ue[Uu]=ue[ad]=ue[Qi]=ue[ud]=ue[ld]=ue[gd]=ue[yd]=ue[xd]=ue[vd]=!0;ue[ib]=ue[Fu]=ue[Pu]=!1;var cb=typeof global=="object"&&global&&global.Object===Object&&global,fb=typeof self=="object"&&self&&self.Object===Object&&self,At=cb||fb||Function("return this")(),bd=typeof ho=="object"&&ho&&!ho.nodeType&&ho,zh=bd&&typeof dn=="object"&&dn&&!dn.nodeType&&dn,pb=zh&&zh.exports===bd;function hb(t,e){return t.set(e[0],e[1]),t}function db(t,e){return t.add(e),t}function mb(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function gb(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function wd(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function yb(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function xb(t,e){return t?.[e]}function Sd(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function Vh(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Lu(t,e){return function(r){return t(e(r))}}function Gh(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var vb=Array.prototype,bb=Function.prototype,Xi=Object.prototype,Mu=At["__core-js_shared__"],Jh=function(){var t=/[^.]+$/.exec(Mu&&Mu.keys&&Mu.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ed=bb.toString,Vt=Xi.hasOwnProperty,Ki=Xi.toString,wb=RegExp("^"+Ed.call(Vt).replace(sb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yh=pb?At.Buffer:void 0,Qh=At.Symbol,Zh=At.Uint8Array,Sb=Lu(Object.getPrototypeOf,Object),Eb=Object.create,Tb=Xi.propertyIsEnumerable,_b=vb.splice,Xh=Object.getOwnPropertySymbols,Cb=Yh?Yh.isBuffer:void 0,Ab=Lu(Object.keys,Object),$u=yn(At,"DataView"),mo=yn(At,"Map"),Nu=yn(At,"Promise"),Bu=yn(At,"Set"),Ou=yn(At,"WeakMap"),go=yn(Object,"create"),Ib=Tr($u),Mb=Tr(mo),Pb=Tr(Nu),$b=Tr(Bu),Nb=Tr(Ou),Kh=Qh?Qh.prototype:void 0,ed=Kh?Kh.valueOf:void 0;function Er(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Bb(){this.__data__=go?go(null):{}}function Ob(t){return this.has(t)&&delete this.__data__[t]}function Db(t){var e=this.__data__;if(go){var r=e[t];return r===td?void 0:r}return Vt.call(e,t)?e[t]:void 0}function Rb(t){var e=this.__data__;return go?e[t]!==void 0:Vt.call(e,t)}function Fb(t,e){var r=this.__data__;return r[t]=go&&e===void 0?td:e,this}Er.prototype.clear=Bb;Er.prototype.delete=Ob;Er.prototype.get=Db;Er.prototype.has=Rb;Er.prototype.set=Fb;function It(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ub(){this.__data__=[]}function Lb(t){var e=this.__data__,r=es(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():_b.call(e,r,1),!0}function kb(t){var e=this.__data__,r=es(e,t);return r<0?void 0:e[r][1]}function jb(t){return es(this.__data__,t)>-1}function qb(t,e){var r=this.__data__,n=es(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}It.prototype.clear=Ub;It.prototype.delete=Lb;It.prototype.get=kb;It.prototype.has=jb;It.prototype.set=qb;function mn(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Hb(){this.__data__={hash:new Er,map:new(mo||It),string:new Er}}function Wb(t){return ts(this,t).delete(t)}function zb(t){return ts(this,t).get(t)}function Vb(t){return ts(this,t).has(t)}function Gb(t,e){return ts(this,t).set(t,e),this}mn.prototype.clear=Hb;mn.prototype.delete=Wb;mn.prototype.get=zb;mn.prototype.has=Vb;mn.prototype.set=Gb;function gn(t){this.__data__=new It(t)}function Jb(){this.__data__=new It}function Yb(t){return this.__data__.delete(t)}function Qb(t){return this.__data__.get(t)}function Zb(t){return this.__data__.has(t)}function Xb(t,e){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!mo||n.length<nb-1)return n.push([t,e]),this;r=this.__data__=new mn(n)}return r.set(t,e),this}gn.prototype.clear=Jb;gn.prototype.delete=Yb;gn.prototype.get=Qb;gn.prototype.has=Zb;gn.prototype.set=Xb;function Kb(t,e){var r=ju(t)||Ew(t)?yb(t.length,String):[],n=r.length,o=!!n;for(var i in t)(e||Vt.call(t,i))&&!(o&&(i=="length"||vw(i,n)))&&r.push(i);return r}function Td(t,e,r){var n=t[e];(!(Vt.call(t,e)&&Id(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function es(t,e){for(var r=t.length;r--;)if(Id(t[r][0],e))return r;return-1}function ew(t,e){return t&&_d(e,qu(e),t)}function Du(t,e,r,n,o,i,s){var a;if(n&&(a=i?n(t,o,i,s):n(t)),a!==void 0)return a;if(!rs(t))return t;var u=ju(t);if(u){if(a=gw(t),!e)return hw(t,a)}else{var l=Sr(t),c=l==Fu||l==id;if(_w(t))return sw(t,e);if(l==Uu||l==Ru||c&&!i){if(Sd(t))return i?t:{};if(a=yw(c?{}:t),!e)return dw(t,ew(a,t))}else{if(!ue[l])return i?t:{};a=xw(t,l,Du,e)}}s||(s=new gn);var p=s.get(t);if(p)return p;if(s.set(t,a),!u)var h=r?mw(t):qu(t);return mb(h||t,function(y,w){h&&(w=y,y=t[w]),Td(a,w,Du(y,e,r,n,w,t,s))}),a}function tw(t){return rs(t)?Eb(t):{}}function rw(t,e,r){var n=e(t);return ju(t)?n:gb(n,r(t))}function nw(t){return Ki.call(t)}function ow(t){if(!rs(t)||ww(t))return!1;var e=Pd(t)||Sd(t)?wb:ub;return e.test(Tr(t))}function iw(t){if(!Ad(t))return Ab(t);var e=[];for(var r in Object(t))Vt.call(t,r)&&r!="constructor"&&e.push(r);return e}function sw(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function ku(t){var e=new t.constructor(t.byteLength);return new Zh(e).set(new Zh(t)),e}function aw(t,e){var r=e?ku(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function uw(t,e,r){var n=e?r(Vh(t),!0):Vh(t);return wd(n,hb,new t.constructor)}function lw(t){var e=new t.constructor(t.source,ab.exec(t));return e.lastIndex=t.lastIndex,e}function cw(t,e,r){var n=e?r(Gh(t),!0):Gh(t);return wd(n,db,new t.constructor)}function fw(t){return ed?Object(ed.call(t)):{}}function pw(t,e){var r=e?ku(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function hw(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function _d(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n?n(r[s],t[s],s,r,t):void 0;Td(r,s,a===void 0?t[s]:a)}return r}function dw(t,e){return _d(t,Cd(t),e)}function mw(t){return rw(t,qu,Cd)}function ts(t,e){var r=t.__data__;return bw(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yn(t,e){var r=xb(t,e);return ow(r)?r:void 0}var Cd=Xh?Lu(Xh,Object):Iw,Sr=nw;($u&&Sr(new $u(new ArrayBuffer(1)))!=Zi||mo&&Sr(new mo)!=Yi||Nu&&Sr(Nu.resolve())!=Wh||Bu&&Sr(new Bu)!=Qi||Ou&&Sr(new Ou)!=Pu)&&(Sr=function(t){var e=Ki.call(t),r=e==Uu?t.constructor:void 0,n=r?Tr(r):void 0;if(n)switch(n){case Ib:return Zi;case Mb:return Yi;case Pb:return Wh;case $b:return Qi;case Nb:return Pu}return e});function gw(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Vt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function yw(t){return typeof t.constructor=="function"&&!Ad(t)?tw(Sb(t)):{}}function xw(t,e,r,n){var o=t.constructor;switch(e){case cd:return ku(t);case nd:case od:return new o(+t);case Zi:return aw(t,n);case fd:case pd:case hd:case dd:case md:case gd:case yd:case xd:case vd:return pw(t,n);case Yi:return uw(t,n,r);case sd:case ud:return new o(t);case ad:return lw(t);case Qi:return cw(t,n,r);case ld:return fw(t)}}function vw(t,e){return e=e??rd,!!e&&(typeof t=="number"||lb.test(t))&&t>-1&&t%1==0&&t<e}function bw(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function ww(t){return!!Jh&&Jh in t}function Ad(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Xi;return t===r}function Tr(t){if(t!=null){try{return Ed.call(t)}catch{}try{return t+""}catch{}}return""}function Sw(t){return Du(t,!0,!0)}function Id(t,e){return t===e||t!==t&&e!==e}function Ew(t){return Tw(t)&&Vt.call(t,"callee")&&(!Tb.call(t,"callee")||Ki.call(t)==Ru)}var ju=Array.isArray;function Md(t){return t!=null&&Cw(t.length)&&!Pd(t)}function Tw(t){return Aw(t)&&Md(t)}var _w=Cb||Mw;function Pd(t){var e=rs(t)?Ki.call(t):"";return e==Fu||e==id}function Cw(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=rd}function rs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Aw(t){return!!t&&typeof t=="object"}function qu(t){return Md(t)?Kb(t):iw(t)}function Iw(){return[]}function Mw(){return!1}dn.exports=Sw});var Bd=M((WM,Nd)=>{"use strict";Nd.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&function(i){return function(s){return function(a,u){var l={key:a,value:s[a]},c={key:u,value:s[u]};return i(l,c)}}}(e.cmp),o=[];return function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,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(o.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var l=o.push(s)-1,c=Object.keys(s).sort(n&&n(s));for(u="",a=0;a<c.length;a++){var p=c[a],h=i(s[p]);h&&(u&&(u+=","),u+=JSON.stringify(p)+":"+h)}return o.splice(l,1),"{"+u+"}"}}(t)}});var Ld=M((zM,Ud)=>{function Pw(t,e){return JSON.stringify(t,Od,e)}function $w(t){return JSON.parse(t,Dd)}function Od(t,e){return Rd(e)&&Hu(e.data)&&(e.data.length>0?e.data="base64:"+Buffer.from(e.data).toString("base64"):e.data=""),e}function Dd(t,e){if(Rd(e)){if(Hu(e.data))return Buffer.from(e.data);if(Fd(e.data))return e.data.startsWith("base64:")?Buffer.from(e.data.slice(7),"base64"):Buffer.from(e.data)}return e}function Rd(t){return Nw(t)&&t.type==="Buffer"&&(Hu(t.data)||Fd(t.data))}function Hu(t){return Array.isArray(t)}function Fd(t){return typeof t=="string"}function Nw(t){return typeof t=="object"&&t!==null}Ud.exports={stringify:Pw,parse:$w,replacer:Od,reviver:Dd}});var fm=M(()=>{});var wm=M(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.getFirstTrueOrFalse=xe.timeoutAndContinue=xe.timeoutWrap=xe.map=xe.rejectedPromise=xe.resolvedPromise=xe.defer=xe.Deferred=void 0;var fs=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};xe.Deferred=fs;xe.defer=()=>new fs;xe.resolvedPromise=t=>Promise.resolve(t);xe.rejectedPromise=t=>Promise.reject(t);xe.map=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n};xe.timeoutWrap=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)});xe.timeoutAndContinue=async(t,e=6e4)=>xe.timeoutWrap(t,e,!1);xe.getFirstTrueOrFalse=async t=>{let e=xe.defer();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise}});var _m=M((gl,yl)=>{(function(t,e){typeof gl=="object"&&typeof yl<"u"?yl.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(gl,function(){"use strict";var t=function(){return t=Object.assign||function(f){for(var d,g=1,v=arguments.length;g<v;g++){d=arguments[g];for(var L in d)Object.prototype.hasOwnProperty.call(d,L)&&(f[L]=d[L])}return f},t.apply(this,arguments)},e=!!(typeof window<"u"&&window.document&&window.document.createElement),r=e?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=function(){var m=!1;if(!e)return m;try{var f=window,d=Object.defineProperty({},"passive",{get:function(){m=!0}});f.addEventListener("test",null,d),f.removeEventListener("test",null,d)}catch{}return m}(),o=function(m){return typeof m=="string"},i=function(m){return typeof m=="function"},s=function(m){return Array.isArray(m)},a=function(m){return!s(m)&&m-parseFloat(m)+1>=0},u=function(m,f){return m&&m.hasOwnProperty(f)},l=e?window.requestAnimationFrame.bind(window):null,c=e?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,y=Math.pow,w=Math.sqrt,C=Math.PI,B={linear:function(m){return m},easeInQuad:function(m,f,d,g,v){return g*(f/=v)*f+d},easeOutQuad:function(m,f,d,g,v){return-g*(f/=v)*(f-2)+d},easeInOutQuad:function(m,f,d,g,v){return(f/=v/2)<1?g/2*f*f+d:-g/2*(--f*(f-2)-1)+d},easeInCubic:function(m,f,d,g,v){return g*(f/=v)*f*f+d},easeOutCubic:function(m,f,d,g,v){return g*((f=f/v-1)*f*f+1)+d},easeInOutCubic:function(m,f,d,g,v){return(f/=v/2)<1?g/2*f*f*f+d:g/2*((f-=2)*f*f+2)+d},easeInQuart:function(m,f,d,g,v){return g*(f/=v)*f*f*f+d},easeOutQuart:function(m,f,d,g,v){return-g*((f=f/v-1)*f*f*f-1)+d},easeInOutQuart:function(m,f,d,g,v){return(f/=v/2)<1?g/2*f*f*f*f+d:-g/2*((f-=2)*f*f*f-2)+d},easeInQuint:function(m,f,d,g,v){return g*(f/=v)*f*f*f*f+d},easeOutQuint:function(m,f,d,g,v){return g*((f=f/v-1)*f*f*f*f+1)+d},easeInOutQuint:function(m,f,d,g,v){return(f/=v/2)<1?g/2*f*f*f*f*f+d:g/2*((f-=2)*f*f*f*f+2)+d},easeInSine:function(m,f,d,g,v){return-g*p(f/v*(C/2))+g+d},easeOutSine:function(m,f,d,g,v){return g*h(f/v*(C/2))+d},easeInOutSine:function(m,f,d,g,v){return-g/2*(p(C*f/v)-1)+d},easeInExpo:function(m,f,d,g,v){return f===0?d:g*y(2,10*(f/v-1))+d},easeOutExpo:function(m,f,d,g,v){return f===v?d+g:g*(-y(2,-10*f/v)+1)+d},easeInOutExpo:function(m,f,d,g,v){return f===0?d:f===v?d+g:(f/=v/2)<1?g/2*y(2,10*(f-1))+d:g/2*(-y(2,-10*--f)+2)+d},easeInCirc:function(m,f,d,g,v){return-g*(w(1-(f/=v)*f)-1)+d},easeOutCirc:function(m,f,d,g,v){return g*w(1-(f=f/v-1)*f)+d},easeInOutCirc:function(m,f,d,g,v){return(f/=v/2)<1?-g/2*(w(1-f*f)-1)+d:g/2*(w(1-(f-=2)*f)+1)+d}},_=function(m){return Array.prototype.slice.call(m?document.querySelectorAll(m):[])},A=function(m){return _(m).shift()||null},O=function(m){return m instanceof Element},N=function(m){return m===window},j=function(m){return m===document.documentElement||m===document.body},U=function(m,f){if(O(f))return m===f;for(var d=_(f),g=d.length;--g>=0&&d[g]!==m;);return g>-1},J=function(m){return Math.max(m.scrollHeight,m.clientHeight,m.offsetHeight)},F=function(m){return Math.max(m.scrollWidth,m.clientWidth,m.offsetWidth)},D=function(m){return{width:F(m),height:J(m)}},te=function(m){var f=N(m)||j(m);return{viewport:{width:f?Math.min(window.innerWidth,document.documentElement.clientWidth):m.clientWidth,height:f?window.innerHeight:m.clientHeight},size:f?{width:Math.max(F(document.body),F(document.documentElement)),height:Math.max(J(document.body),J(document.documentElement))}:D(m)}},we={y:"scrollTop",x:"scrollLeft"},$={y:"pageYOffset",x:"pageXOffset"},S=function(m,f){return N(m)?m[$[f]]:m[we[f]]},E=function(m,f,d){if(N(m)){var g=d==="y";m.scrollTo(g?m.pageXOffset:f,g?f:m.pageYOffset)}else m[we[d]]=f},P=function(m,f){var d=m.getBoundingClientRect();if(d.width||d.height){var g={top:0,left:0},v=void 0;if(N(f)||j(f))v=document.documentElement,g.top=window[$.y],g.left=window[$.x];else{v=f;var L=v.getBoundingClientRect();g.top=L.top*-1+v[we.y],g.left=L.left*-1+v[we.x]}return{top:d.top+g.top-v.clientTop,left:d.left+g.left-v.clientLeft}}return d},T=function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),k=function(m){return m==="wheel"?T:m},b=function(m,f,d,g,v){d.split(" ").forEach(function(L){m[f](k(L),g,n?{passive:v}:!1)})},I=function(m,f,d,g){return b(m,"addEventListener",f,d,g)},R=function(m,f,d,g){return b(m,"removeEventListener",f,d,g)},q=/^(\+|-)=(\d+(?:\.\d+)?)$/,z=function(m,f){var d={top:0,left:0,relative:!1};if(u(m,"top")||u(m,"left"))d=t({},d,m);else if(s(m))if(m.length>1)d.top=m[0],d.left=m[1];else if(m.length===1)d.top=f?m[0]:0,d.left=f?0:m[0];else return null;else if(a(m))f?d.top=m:d.left=m;else if(o(m)){var g=m.trim().match(q);if(!g)return null;var v=g[1],L=parseInt(g[2],10);v==="+"?(d.top=f?L:0,d.left=f?0:L):(d.top=f?-L:0,d.left=f?0:-L),d.relative=!0}else return null;return d},K={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},re="click",fe="wheel touchstart touchmove",Se=function(){function m(f,d){var g=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(L){var ne=g,oe=ne.$el,se=ne.ctx;if(se.start||(se.start=L),!se.progress||!oe){g.stop();return}var gt=se.opts,qe=se.pos,et=se.start,Dr=se.startPos,Un=se.easing,yt=gt.duration,Ft={top:"y",left:"x"},ut=L-et,Ae=Math.min(1,Math.max(ut/yt,0));Object.keys(qe).forEach(function(Rr){var Fo=qe[Rr],Ln=Dr[Rr],kn=Fo-Ln;if(kn!==0){var Uo=Un(Ae,yt*Ae,0,1,yt);E(oe,Math.round(Ln+kn*Uo),Ft[Rr])}}),ut<=yt?(g.hook(gt,"step",Ae),se.id=m.raf(g.loop)):g.stop(!0)},this.handleClick=function(L){for(var ne=g.opts,oe=L.target;oe&&oe!==document;oe=oe.parentNode)if(U(oe,ne.trigger)){var se=JSON.parse(oe.getAttribute("data-scroll-options")||"{}"),gt=oe.getAttribute("data-scroll"),qe=gt||oe.getAttribute("href"),et=t({},ne,se),Dr=et.preventDefault,Un=et.stopPropagation,yt=et.vertical,Ft=et.horizontal;Dr&&L.preventDefault(),Un&&L.stopPropagation(),g.ctx.$trigger=oe,Ft&&yt?g.to(qe,et):yt?g.toTop(qe,et):Ft&&g.toLeft(qe,et);break}},this.handleStop=function(L){var ne=g.ctx,oe=ne.opts;oe&&oe.cancellable?(ne.cancel=!0,g.stop()):L.preventDefault()},this.opts=t({},K,f||{});var v=null;e&&(typeof d=="string"?v=A(d):d!=null?v=d:v=window),this.$el=v,v&&this.bind(!0,!1)}return m.create=function(f,d){return new m(f,d)},m.prototype.to=function(f,d){if(e){var g=this,v=g.$el,L=g.ctx,ne=g.opts,oe=L.$trigger,se=t({},ne,d||{}),gt=se.offset,qe=se.vertical,et=se.horizontal,Dr=O(se.header)?se.header:A(se.header),Un=/^#/,yt=o(f)&&Un.test(f)?f:null;if(L.opts=se,L.cancel=!1,L.hash=yt,this.stop(),!!v){var Ft=z(gt,qe),ut=z(f,qe),Ae={top:0,left:0};if(ut)if(ut.relative){var Rr=S(v,qe?"y":"x");Ae.top=qe?Rr+ut.top:ut.top,Ae.left=qe?ut.left:Rr+ut.left}else Ae=ut;else if(o(f)&&f!=="#"){var Fo=A(f);if(!Fo)return;Ae=P(Fo,v)}Ft&&(Ae.top+=Ft.top,Ae.left+=Ft.left),Dr&&(Ae.top=Math.max(0,Ae.top-D(Dr).height));var Ln=te(v),kn=Ln.viewport,Uo=Ln.size;if(Ae.top=qe?Math.max(0,Math.min(Uo.height-kn.height,Ae.top)):S(v,"y"),Ae.left=et?Math.max(0,Math.min(Uo.width-kn.width,Ae.left)):S(v,"x"),this.hook(se,"before",Ae,oe)===!1){L.opts=null;return}L.pos=Ae,this.start(se),this.bind(!1,!0)}}},m.prototype.toTop=function(f,d){this.to(f,t({},d||{},{vertical:!0,horizontal:!1}))},m.prototype.toLeft=function(f,d){this.to(f,t({},d||{},{vertical:!1,horizontal:!0}))},m.prototype.toElement=function(f,d){var g=this.$el;!e||!g||this.to(P(f,g),d||{})},m.prototype.stop=function(f){f===void 0&&(f=!1);var d=this,g=d.$el,v=d.ctx,L=v.pos;!g||!v.progress||(m.caf(v.id),v.progress=!1,v.start=0,v.id=0,f&&L&&(E(g,L.left,"x"),E(g,L.top,"y")),this.complete())},m.prototype.update=function(f){if(this.$el){var d=t({},this.opts,f);this.stop(),this.unbind(!0,!0),this.opts=d,this.bind(!0,!1)}},m.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},m.prototype.onBefore=function(f,d){return!0},m.prototype.onStep=function(f){},m.prototype.onAfter=function(f,d){},m.prototype.onCancel=function(){},m.prototype.onComplete=function(f){},m.prototype.start=function(f){var d=this.ctx;d.opts=f,d.progress=!0,d.easing=i(f.easing)?f.easing:B[f.easing];var g=this.$el,v={top:S(g,"y"),left:S(g,"x")};d.startPos=v,d.id=m.raf(this.loop)},m.prototype.complete=function(){var f=this,d=f.$el,g=f.ctx,v=g.hash,L=g.cancel,ne=g.opts,oe=g.pos,se=g.$trigger;if(!(!d||!ne)){if(v!=null&&v!==window.location.hash){var gt=ne.updateURL;e&&r&>!==!1&&window.history[gt==="replace"?"replaceState":"pushState"](null,"",v)}this.unbind(!1,!0),g.opts=null,g.$trigger=null,L?this.hook(ne,"cancel"):this.hook(ne,"after",oe,se),this.hook(ne,"complete",L)}},m.prototype.hook=function(f,d){for(var g=[],v=2;v<arguments.length;v++)g[v-2]=arguments[v];var L,ne=f[d],oe,se;return i(ne)&&(oe=ne.apply(this,g.concat([this]))),se=(L=this)["on"+(d[0].toUpperCase()+d.slice(1))].apply(L,g),oe!==void 0?oe:se},m.prototype.bind=function(f,d){var g=this,v=g.$el,L=g.ctx.opts;v&&(f&&I(v,re,this.handleClick,!1),d&&I(v,fe,this.handleStop,L?L.cancellable:!0))},m.prototype.unbind=function(f,d){var g=this,v=g.$el,L=g.ctx.opts;v&&(f&&R(v,re,this.handleClick,!1),d&&R(v,fe,this.handleStop,L?L.cancellable:!0))},m.raf=l,m.caf=c,m}();return Se})});var qm=M((gR,jm)=>{jm.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Qt=M(Mr=>{var Pl,OS=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Mr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Mr.getSymbolTotalCodewords=function(e){return OS[e]};Mr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Mr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Pl=e};Mr.isKanjiModeEnabled=function(){return typeof Pl<"u"};Mr.toSJIS=function(e){return Pl(e)}});var Ts=M(Xe=>{Xe.L={bit:1};Xe.M={bit:0};Xe.Q={bit:3};Xe.H={bit:2};function DS(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Xe.L;case"m":case"medium":return Xe.M;case"q":case"quartile":return Xe.Q;case"h":case"high":return Xe.H;default:throw new Error("Unknown EC Level: "+t)}}Xe.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Xe.from=function(e,r){if(Xe.isValid(e))return e;try{return DS(e)}catch{return r}}});var zm=M((vR,Wm)=>{function Hm(){this.buffer=[],this.length=0}Hm.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};Wm.exports=Hm});var Gm=M((bR,Vm)=>{function Mo(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Mo.prototype.set=function(t,e,r,n){let o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)};Mo.prototype.get=function(t,e){return this.data[t*this.size+e]};Mo.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Mo.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};Vm.exports=Mo});var Jm=M(_s=>{var RS=Qt().getSymbolSize;_s.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=RS(e),o=n===145?26:Math.ceil((n-13)/(2*r-2))*2,i=[n-7];for(let s=1;s<r-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};_s.getPositions=function(e){let r=[],n=_s.getRowColCoords(e),o=n.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||r.push([n[i],n[s]]);return r}});var Zm=M(Qm=>{var FS=Qt().getSymbolSize,Ym=7;Qm.getPositions=function(e){let r=FS(e);return[[0,0],[r-Ym,0],[0,r-Ym]]}});var Xm=M(le=>{le.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Pr={N1:3,N2:3,N3:40,N4:10};le.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};le.from=function(e){return le.isValid(e)?parseInt(e,10):void 0};le.getPenaltyN1=function(e){let r=e.size,n=0,o=0,i=0,s=null,a=null;for(let u=0;u<r;u++){o=i=0,s=a=null;for(let l=0;l<r;l++){let c=e.get(u,l);c===s?o++:(o>=5&&(n+=Pr.N1+(o-5)),s=c,o=1),c=e.get(l,u),c===a?i++:(i>=5&&(n+=Pr.N1+(i-5)),a=c,i=1)}o>=5&&(n+=Pr.N1+(o-5)),i>=5&&(n+=Pr.N1+(i-5))}return n};le.getPenaltyN2=function(e){let r=e.size,n=0;for(let o=0;o<r-1;o++)for(let i=0;i<r-1;i++){let s=e.get(o,i)+e.get(o,i+1)+e.get(o+1,i)+e.get(o+1,i+1);(s===4||s===0)&&n++}return n*Pr.N2};le.getPenaltyN3=function(e){let r=e.size,n=0,o=0,i=0;for(let s=0;s<r;s++){o=i=0;for(let a=0;a<r;a++)o=o<<1&2047|e.get(s,a),a>=10&&(o===1488||o===93)&&n++,i=i<<1&2047|e.get(a,s),a>=10&&(i===1488||i===93)&&n++}return n*Pr.N3};le.getPenaltyN4=function(e){let r=0,n=e.data.length;for(let i=0;i<n;i++)r+=e.data[i];return Math.abs(Math.ceil(r*100/n/5)-10)*Pr.N4};function US(t,e,r){switch(t){case le.Patterns.PATTERN000:return(e+r)%2===0;case le.Patterns.PATTERN001:return e%2===0;case le.Patterns.PATTERN010:return r%3===0;case le.Patterns.PATTERN011:return(e+r)%3===0;case le.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case le.Patterns.PATTERN101:return e*r%2+e*r%3===0;case le.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case le.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}le.applyMask=function(e,r){let n=r.size;for(let o=0;o<n;o++)for(let i=0;i<n;i++)r.isReserved(i,o)||r.xor(i,o,US(e,i,o))};le.getBestMask=function(e,r){let n=Object.keys(le.Patterns).length,o=0,i=1/0;for(let s=0;s<n;s++){r(s),le.applyMask(s,e);let a=le.getPenaltyN1(e)+le.getPenaltyN2(e)+le.getPenaltyN3(e)+le.getPenaltyN4(e);le.applyMask(s,e),a<i&&(i=a,o=s)}return o}});var Nl=M($l=>{var Zt=Ts(),Cs=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],As=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];$l.getBlocksCount=function(e,r){switch(r){case Zt.L:return Cs[(e-1)*4+0];case Zt.M:return Cs[(e-1)*4+1];case Zt.Q:return Cs[(e-1)*4+2];case Zt.H:return Cs[(e-1)*4+3];default:return}};$l.getTotalCodewordsCount=function(e,r){switch(r){case Zt.L:return As[(e-1)*4+0];case Zt.M:return As[(e-1)*4+1];case Zt.Q:return As[(e-1)*4+2];case Zt.H:return As[(e-1)*4+3];default:return}}});var Km=M(Ms=>{var Po=new Uint8Array(512),Is=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)Po[r]=e,Is[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)Po[r]=Po[r-255]})();Ms.log=function(e){if(e<1)throw new Error("log("+e+")");return Is[e]};Ms.exp=function(e){return Po[e]};Ms.mul=function(e,r){return e===0||r===0?0:Po[Is[e]+Is[r]]}});var eg=M($o=>{var Bl=Km();$o.mul=function(e,r){let n=new Uint8Array(e.length+r.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<r.length;i++)n[o+i]^=Bl.mul(e[o],r[i]);return n};$o.mod=function(e,r){let n=new Uint8Array(e);for(;n.length-r.length>=0;){let o=n[0];for(let s=0;s<r.length;s++)n[s]^=Bl.mul(r[s],o);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n};$o.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=$o.mul(r,new Uint8Array([1,Bl.exp(n)]));return r}});var ng=M((AR,rg)=>{var tg=eg();function Ol(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Ol.prototype.initialize=function(e){this.degree=e,this.genPoly=tg.generateECPolynomial(this.degree)};Ol.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(e.length+this.degree);r.set(e);let n=tg.mod(r,this.genPoly),o=this.degree-n.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(n,o),i}return n};rg.exports=Ol});var Dl=M(og=>{og.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Rl=M(Nt=>{var ig="[0-9]+",LS="[A-Z $%*+\\-./:]+",No="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";No=No.replace(/u/g,"\\u");var kS="(?:(?![A-Z0-9 $%*+\\-./:]|"+No+`)(?:.|[\r
|
|
6
|
+
]))+`;Nt.KANJI=new RegExp(No,"g");Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Nt.BYTE=new RegExp(kS,"g");Nt.NUMERIC=new RegExp(ig,"g");Nt.ALPHANUMERIC=new RegExp(LS,"g");var jS=new RegExp("^"+No+"$"),qS=new RegExp("^"+ig+"$"),HS=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Nt.testKanji=function(e){return jS.test(e)};Nt.testNumeric=function(e){return qS.test(e)};Nt.testAlphanumeric=function(e){return HS.test(e)}});var Xt=M(be=>{var WS=Dl(),Fl=Rl();be.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};be.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};be.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};be.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};be.MIXED={bit:-1};be.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!WS.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};be.getBestModeForData=function(e){return Fl.testNumeric(e)?be.NUMERIC:Fl.testAlphanumeric(e)?be.ALPHANUMERIC:Fl.testKanji(e)?be.KANJI:be.BYTE};be.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};be.isValid=function(e){return e&&e.bit&&e.ccBits};function zS(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return be.NUMERIC;case"alphanumeric":return be.ALPHANUMERIC;case"kanji":return be.KANJI;case"byte":return be.BYTE;default:throw new Error("Unknown mode: "+t)}}be.from=function(e,r){if(be.isValid(e))return e;try{return zS(e)}catch{return r}}});var cg=M($r=>{var Ps=Qt(),VS=Nl(),sg=Ts(),Kt=Xt(),Ul=Dl(),ug=7973,ag=Ps.getBCHDigit(ug);function GS(t,e,r){for(let n=1;n<=40;n++)if(e<=$r.getCapacity(n,r,t))return n}function lg(t,e){return Kt.getCharCountIndicator(t,e)+4}function JS(t,e){let r=0;return t.forEach(function(n){let o=lg(n.mode,e);r+=o+n.getBitsLength()}),r}function YS(t,e){for(let r=1;r<=40;r++)if(JS(t,r)<=$r.getCapacity(r,e,Kt.MIXED))return r}$r.from=function(e,r){return Ul.isValid(e)?parseInt(e,10):r};$r.getCapacity=function(e,r,n){if(!Ul.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Kt.BYTE);let o=Ps.getSymbolTotalCodewords(e),i=VS.getTotalCodewordsCount(e,r),s=(o-i)*8;if(n===Kt.MIXED)return s;let a=s-lg(n,e);switch(n){case Kt.NUMERIC:return Math.floor(a/10*3);case Kt.ALPHANUMERIC:return Math.floor(a/11*2);case Kt.KANJI:return Math.floor(a/13);case Kt.BYTE:default:return Math.floor(a/8)}};$r.getBestVersionForData=function(e,r){let n,o=sg.from(r,sg.M);if(Array.isArray(e)){if(e.length>1)return YS(e,o);if(e.length===0)return 1;n=e[0]}else n=e;return GS(n.mode,n.getLength(),o)};$r.getEncodedBits=function(e){if(!Ul.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;Ps.getBCHDigit(r)-ag>=0;)r^=ug<<Ps.getBCHDigit(r)-ag;return e<<12|r}});var dg=M(hg=>{var Ll=Qt(),pg=1335,QS=21522,fg=Ll.getBCHDigit(pg);hg.getEncodedBits=function(e,r){let n=e.bit<<3|r,o=n<<10;for(;Ll.getBCHDigit(o)-fg>=0;)o^=pg<<Ll.getBCHDigit(o)-fg;return(n<<10|o)^QS}});var gg=M((BR,mg)=>{var ZS=Xt();function Pn(t){this.mode=ZS.NUMERIC,this.data=t.toString()}Pn.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Pn.prototype.getLength=function(){return this.data.length};Pn.prototype.getBitsLength=function(){return Pn.getBitsLength(this.data.length)};Pn.prototype.write=function(e){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),e.put(o,10);let i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),e.put(o,i*3+1))};mg.exports=Pn});var xg=M((OR,yg)=>{var XS=Xt(),kl=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function $n(t){this.mode=XS.ALPHANUMERIC,this.data=t}$n.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};$n.prototype.getLength=function(){return this.data.length};$n.prototype.getBitsLength=function(){return $n.getBitsLength(this.data.length)};$n.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=kl.indexOf(this.data[r])*45;n+=kl.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(kl.indexOf(this.data[r]),6)};yg.exports=$n});var bg=M((DR,vg)=>{"use strict";vg.exports=function(e){for(var r=[],n=e.length,o=0;o<n;o++){var i=e.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var s=e.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var Sg=M((RR,wg)=>{var KS=bg(),eE=Xt();function Nn(t){this.mode=eE.BYTE,typeof t=="string"&&(t=KS(t)),this.data=new Uint8Array(t)}Nn.getBitsLength=function(e){return e*8};Nn.prototype.getLength=function(){return this.data.length};Nn.prototype.getBitsLength=function(){return Nn.getBitsLength(this.data.length)};Nn.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};wg.exports=Nn});var Tg=M((FR,Eg)=>{var tE=Xt(),rE=Qt();function Bn(t){this.mode=tE.KANJI,this.data=t}Bn.getBitsLength=function(e){return e*13};Bn.prototype.getLength=function(){return this.data.length};Bn.prototype.getBitsLength=function(){return Bn.getBitsLength(this.data.length)};Bn.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=rE.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
7
|
+
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};Eg.exports=Bn});var _g=M((UR,jl)=>{"use strict";var Bo={single_source_shortest_paths:function(t,e,r){var n={},o={};o[e]=0;var i=Bo.PriorityQueue.make();i.push(e,0);for(var s,a,u,l,c,p,h,y,w;!i.empty();){s=i.pop(),a=s.value,l=s.cost,c=t[a]||{};for(u in c)c.hasOwnProperty(u)&&(p=c[u],h=l+p,y=o[u],w=typeof o[u]>"u",(w||y>h)&&(o[u]=h,i.push(u,h),n[u]=a))}if(typeof r<"u"&&typeof o[r]>"u"){var C=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(C)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,o;n;)r.push(n),o=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=Bo.single_source_shortest_paths(t,e,r);return Bo.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=Bo.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof jl<"u"&&(jl.exports=Bo)});var Bg=M(On=>{var ee=Xt(),Ig=gg(),Mg=xg(),Pg=Sg(),$g=Tg(),Oo=Rl(),$s=Qt(),nE=_g();function Cg(t){return unescape(encodeURIComponent(t)).length}function Do(t,e,r){let n=[],o;for(;(o=t.exec(r))!==null;)n.push({data:o[0],index:o.index,mode:e,length:o[0].length});return n}function Ng(t){let e=Do(Oo.NUMERIC,ee.NUMERIC,t),r=Do(Oo.ALPHANUMERIC,ee.ALPHANUMERIC,t),n,o;return $s.isKanjiModeEnabled()?(n=Do(Oo.BYTE,ee.BYTE,t),o=Do(Oo.KANJI,ee.KANJI,t)):(n=Do(Oo.BYTE_KANJI,ee.BYTE,t),o=[]),e.concat(r,n,o).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function ql(t,e){switch(e){case ee.NUMERIC:return Ig.getBitsLength(t);case ee.ALPHANUMERIC:return Mg.getBitsLength(t);case ee.KANJI:return $g.getBitsLength(t);case ee.BYTE:return Pg.getBitsLength(t)}}function oE(t){return t.reduce(function(e,r){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function iE(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];switch(n.mode){case ee.NUMERIC:e.push([n,{data:n.data,mode:ee.ALPHANUMERIC,length:n.length},{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.ALPHANUMERIC:e.push([n,{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.KANJI:e.push([n,{data:n.data,mode:ee.BYTE,length:Cg(n.data)}]);break;case ee.BYTE:e.push([{data:n.data,mode:ee.BYTE,length:Cg(n.data)}])}}return e}function sE(t,e){let r={},n={start:{}},o=["start"];for(let i=0;i<t.length;i++){let s=t[i],a=[];for(let u=0;u<s.length;u++){let l=s[u],c=""+i+u;a.push(c),r[c]={node:l,lastCount:0},n[c]={};for(let p=0;p<o.length;p++){let h=o[p];r[h]&&r[h].node.mode===l.mode?(n[h][c]=ql(r[h].lastCount+l.length,l.mode)-ql(r[h].lastCount,l.mode),r[h].lastCount+=l.length):(r[h]&&(r[h].lastCount=l.length),n[h][c]=ql(l.length,l.mode)+4+ee.getCharCountIndicator(l.mode,e))}}o=a}for(let i=0;i<o.length;i++)n[o[i]].end=0;return{map:n,table:r}}function Ag(t,e){let r,n=ee.getBestModeForData(t);if(r=ee.from(e,n),r!==ee.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+ee.toString(r)+`.
|
|
8
|
+
Suggested mode is: `+ee.toString(n));switch(r===ee.KANJI&&!$s.isKanjiModeEnabled()&&(r=ee.BYTE),r){case ee.NUMERIC:return new Ig(t);case ee.ALPHANUMERIC:return new Mg(t);case ee.KANJI:return new $g(t);case ee.BYTE:return new Pg(t)}}On.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(Ag(n,null)):n.data&&r.push(Ag(n.data,n.mode)),r},[])};On.fromString=function(e,r){let n=Ng(e,$s.isKanjiModeEnabled()),o=iE(n),i=sE(o,r),s=nE.find_path(i.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(i.table[s[u]].node);return On.fromArray(oE(a))};On.rawSplit=function(e){return On.fromArray(Ng(e,$s.isKanjiModeEnabled()))}});var Dg=M(Og=>{var Bs=Qt(),Hl=Ts(),aE=zm(),uE=Gm(),lE=Jm(),cE=Zm(),Vl=Xm(),Gl=Nl(),fE=ng(),Ns=cg(),pE=dg(),hE=Xt(),Wl=Bg();function dE(t,e){let r=t.size,n=cE.getPositions(e);for(let o=0;o<n.length;o++){let i=n[o][0],s=n[o][1];for(let a=-1;a<=7;a++)if(!(i+a<=-1||r<=i+a))for(let u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(i+a,s+u,!0,!0):t.set(i+a,s+u,!1,!0))}}function mE(t){let e=t.size;for(let r=8;r<e-8;r++){let n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function gE(t,e){let r=lE.getPositions(e);for(let n=0;n<r.length;n++){let o=r[n][0],i=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?t.set(o+s,i+a,!0,!0):t.set(o+s,i+a,!1,!0)}}function yE(t,e){let r=t.size,n=Ns.getEncodedBits(e),o,i,s;for(let a=0;a<18;a++)o=Math.floor(a/3),i=a%3+r-8-3,s=(n>>a&1)===1,t.set(o,i,s,!0),t.set(i,o,s,!0)}function zl(t,e,r){let n=t.size,o=pE.getEncodedBits(e,r),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(n-15+i,8,s,!0),i<8?t.set(8,n-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(n-8,8,1,!0)}function xE(t,e){let r=t.size,n=-1,o=r-1,i=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!t.isReserved(o,a-u)){let l=!1;s<e.length&&(l=(e[s]>>>i&1)===1),t.set(o,a-u,l),i--,i===-1&&(s++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function vE(t,e,r){let n=new aE;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),hE.getCharCountIndicator(u.mode,t)),u.write(n)});let o=Bs.getSymbolTotalCodewords(t),i=Gl.getTotalCodewordsCount(t,e),s=(o-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let u=0;u<a;u++)n.put(u%2?17:236,8);return bE(n,t,e)}function bE(t,e,r){let n=Bs.getSymbolTotalCodewords(e),o=Gl.getTotalCodewordsCount(e,r),i=n-o,s=Gl.getBlocksCount(e,r),a=n%s,u=s-a,l=Math.floor(n/s),c=Math.floor(i/s),p=c+1,h=l-c,y=new fE(h),w=0,C=new Array(s),B=new Array(s),_=0,A=new Uint8Array(t.buffer);for(let J=0;J<s;J++){let F=J<u?c:p;C[J]=A.slice(w,w+F),B[J]=y.encode(C[J]),w+=F,_=Math.max(_,F)}let O=new Uint8Array(n),N=0,j,U;for(j=0;j<_;j++)for(U=0;U<s;U++)j<C[U].length&&(O[N++]=C[U][j]);for(j=0;j<h;j++)for(U=0;U<s;U++)O[N++]=B[U][j];return O}function wE(t,e,r,n){let o;if(Array.isArray(t))o=Wl.fromArray(t);else if(typeof t=="string"){let l=e;if(!l){let c=Wl.rawSplit(t);l=Ns.getBestVersionForData(c,r)}o=Wl.fromString(t,l||40)}else throw new Error("Invalid data");let i=Ns.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
|
|
9
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
10
|
+
Minimum version required to store current data is: `+i+`.
|
|
11
|
+
`);let s=vE(e,r,o),a=Bs.getSymbolSize(e),u=new uE(a);return dE(u,e),mE(u),gE(u,e),zl(u,r,0),e>=7&&yE(u,e),xE(u,s),isNaN(n)&&(n=Vl.getBestMask(u,zl.bind(null,u,r))),Vl.applyMask(n,u),zl(u,r,n),{modules:u,version:e,errorCorrectionLevel:r,maskPattern:n,segments:o}}Og.create=function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Hl.M,o,i;return typeof r<"u"&&(n=Hl.from(r.errorCorrectionLevel,Hl.M),o=Ns.from(r.version),i=Vl.from(r.maskPattern),r.toSJISFunc&&Bs.setToSJISFunction(r.toSJISFunc)),wE(e,o,n,i)}});var Jl=M(Nr=>{function Rg(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}Nr.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:Rg(e.color.dark||"#000000ff"),light:Rg(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Nr.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Nr.getImageWidth=function(e,r){let n=Nr.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Nr.qrToImageData=function(e,r,n){let o=r.modules.size,i=r.modules.data,s=Nr.getScale(o,n),a=Math.floor((o+n.margin*2)*s),u=n.margin*s,l=[n.color.light,n.color.dark];for(let c=0;c<a;c++)for(let p=0;p<a;p++){let h=(c*a+p)*4,y=n.color.light;if(c>=u&&p>=u&&c<a-u&&p<a-u){let w=Math.floor((c-u)/s),C=Math.floor((p-u)/s);y=l[i[w*o+C]?1:0]}e[h++]=y.r,e[h++]=y.g,e[h++]=y.b,e[h]=y.a}}});var Fg=M(Os=>{var Yl=Jl();function SE(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function EE(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}Os.render=function(e,r,n){let o=n,i=r;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),r||(i=EE()),o=Yl.getOptions(o);let s=Yl.getImageWidth(e.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return Yl.qrToImageData(u.data,e,o),SE(a,i,s),a.putImageData(u,0,0),i};Os.renderToDataURL=function(e,r,n){let o=n;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),o||(o={});let i=Os.render(e,r,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}});var kg=M(Lg=>{var TE=Jl();function Ug(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function Ql(t,e,r){let n=t+e;return typeof r<"u"&&(n+=" "+r),n}function _E(t,e,r){let n="",o=0,i=!1,s=0;for(let a=0;a<t.length;a++){let u=Math.floor(a%e),l=Math.floor(a/e);!u&&!i&&(i=!0),t[a]?(s++,a>0&&u>0&&t[a-1]||(n+=i?Ql("M",u+r,.5+l+r):Ql("m",o,0),o=0,i=!1),u+1<e&&t[a+1]||(n+=Ql("h",s),s=0)):o++}return n}Lg.render=function(e,r,n){let o=TE.getOptions(r),i=e.modules.size,s=e.modules.data,a=i+o.margin*2,u=o.color.light.a?"<path "+Ug(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+Ug(o.color.dark,"stroke")+' d="'+_E(s,i,o.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+c+' shape-rendering="crispEdges">'+u+l+`</svg>
|
|
12
|
+
`;return typeof n=="function"&&n(null,h),h}});var qg=M(Ro=>{var CE=qm(),Zl=Dg(),jg=Fg(),AE=kg();function Xl(t,e,r,n,o){let i=[].slice.call(arguments,1),s=i.length,a=typeof i[s-1]=="function";if(!a&&!CE())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=e,e=n=void 0):s===3&&(e.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=e,e=n=void 0):s===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(u,l){try{let c=Zl.create(r,n);u(t(c,e,n))}catch(c){l(c)}})}try{let u=Zl.create(r,n);o(null,t(u,e,n))}catch(u){o(u)}}Ro.create=Zl.create;Ro.toCanvas=Xl.bind(null,jg.render);Ro.toDataURL=Xl.bind(null,jg.renderToDataURL);Ro.toString=Xl.bind(null,function(t,e,r){return AE.render(t,r)})});var ko=window,jo=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ds=Symbol(),ec=new WeakMap,jn=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Ds)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(jo&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ec.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ec.set(r,e))}return e}toString(){return this.cssText}},H=t=>new jn(typeof t=="string"?t:t+"",void 0,Ds),ae=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new jn(r,t,Ds)},Rs=(t,e)=>{jo?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),o=ko.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},qo=jo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return H(r)})(t):t;var Fs,Ho=window,tc=Ho.trustedTypes,Kg=tc?tc.emptyScript:"",rc=Ho.reactiveElementPolyfillSupport,Ls={toAttribute(t,e){switch(e){case Boolean:t=t?Kg: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}},nc=(t,e)=>e!==t&&(e==e||t==t),Us={attribute:!0,type:String,converter:Ls,reflect:!1,hasChanged:nc},ks="finalized",xt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),e.push(o))}),e}static createProperty(e,r=Us){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,n,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(o){let i=this[e];this[r]=o,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Us}static finalize(){if(this.hasOwnProperty(ks))return!1;this[ks]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)r.unshift(qo(o))}else e!==void 0&&r.push(qo(e));return r}static _$Ep(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Rs(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=Us){var o;let i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){let s=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Ls).toAttribute(r,n.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,r){var n;let o=this.constructor,i=o._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=o.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Ls;this._$El=i,this[i]=a.fromAttribute(r,s.type),this._$El=null}}requestUpdate(e,r,n){let o=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||nc)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};xt[ks]=!0,xt.elementProperties=new Map,xt.elementStyles=[],xt.shadowRootOptions={mode:"open"},rc?.({ReactiveElement:xt}),((Fs=Ho.reactiveElementVersions)!==null&&Fs!==void 0?Fs:Ho.reactiveElementVersions=[]).push("1.6.3");var js,Wo=window,Fr=Wo.trustedTypes,oc=Fr?Fr.createPolicy("lit-html",{createHTML:t=>t}):void 0,zo="$lit$",vt=`lit$${(Math.random()+"").slice(9)}$`,Hs="?"+vt,ey=`<${Hs}>`,nr=document,Hn=()=>nr.createComment(""),Wn=t=>t===null||typeof t!="object"&&typeof t!="function",fc=Array.isArray,pc=t=>fc(t)||typeof t?.[Symbol.iterator]=="function",qs=`[
|
|
13
|
+
\f\r]`,qn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ic=/-->/g,sc=/>/g,tr=RegExp(`>|${qs}(?:([^\\s"'>=/]+)(${qs}*=${qs}*(?:[^
|
|
14
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ac=/'/g,uc=/"/g,hc=/^(?:script|style|textarea|title)$/i,dc=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),W=dc(1),BE=dc(2),Ee=Symbol.for("lit-noChange"),de=Symbol.for("lit-nothing"),lc=new WeakMap,rr=nr.createTreeWalker(nr,129,null,!1);function mc(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return oc!==void 0?oc.createHTML(e):e}var gc=(t,e)=>{let r=t.length-1,n=[],o,i=e===2?"<svg>":"",s=qn;for(let a=0;a<r;a++){let u=t[a],l,c,p=-1,h=0;for(;h<u.length&&(s.lastIndex=h,c=s.exec(u),c!==null);)h=s.lastIndex,s===qn?c[1]==="!--"?s=ic:c[1]!==void 0?s=sc:c[2]!==void 0?(hc.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=tr):c[3]!==void 0&&(s=tr):s===tr?c[0]===">"?(s=o??qn,p=-1):c[1]===void 0?p=-2:(p=s.lastIndex-c[2].length,l=c[1],s=c[3]===void 0?tr:c[3]==='"'?uc:ac):s===uc||s===ac?s=tr:s===ic||s===sc?s=qn:(s=tr,o=void 0);let y=s===tr&&t[a+1].startsWith("/>")?" ":"";i+=s===qn?u+ey:p>=0?(n.push(l),u.slice(0,p)+zo+u.slice(p)+vt+y):u+vt+(p===-2?(n.push(void 0),a):y)}return[mc(t,i+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},zn=class t{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=e.length-1,u=this.parts,[l,c]=gc(e,r);if(this.el=t.createElement(l,n),rr.currentNode=this.el.content,r===2){let p=this.el.content,h=p.firstChild;h.remove(),p.append(...h.childNodes)}for(;(o=rr.nextNode())!==null&&u.length<a;){if(o.nodeType===1){if(o.hasAttributes()){let p=[];for(let h of o.getAttributeNames())if(h.endsWith(zo)||h.startsWith(vt)){let y=c[s++];if(p.push(h),y!==void 0){let w=o.getAttribute(y.toLowerCase()+zo).split(vt),C=/([.?@])?(.*)/.exec(y);u.push({type:1,index:i,name:C[2],strings:w,ctor:C[1]==="."?Go:C[1]==="?"?Jo:C[1]==="@"?Yo:ir})}else u.push({type:6,index:i})}for(let h of p)o.removeAttribute(h)}if(hc.test(o.tagName)){let p=o.textContent.split(vt),h=p.length-1;if(h>0){o.textContent=Fr?Fr.emptyScript:"";for(let y=0;y<h;y++)o.append(p[y],Hn()),rr.nextNode(),u.push({type:2,index:++i});o.append(p[h],Hn())}}}else if(o.nodeType===8)if(o.data===Hs)u.push({type:2,index:i});else{let p=-1;for(;(p=o.data.indexOf(vt,p+1))!==-1;)u.push({type:7,index:i}),p+=vt.length-1}i++}}static createElement(e,r){let n=nr.createElement("template");return n.innerHTML=e,n}};function or(t,e,r=t,n){var o,i,s,a;if(e===Ee)return e;let u=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl,l=Wn(e)?void 0:e._$litDirective$;return u?.constructor!==l&&((i=u?._$AO)===null||i===void 0||i.call(u,!1),l===void 0?u=void 0:(u=new l(t),u._$AT(t,r,n)),n!==void 0?((s=(a=r)._$Co)!==null&&s!==void 0?s:a._$Co=[])[n]=u:r._$Cl=u),u!==void 0&&(e=or(t,u._$AS(t,e.values),u,n)),e}var Vo=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){var r;let{el:{content:n},parts:o}=this._$AD,i=((r=e?.creationScope)!==null&&r!==void 0?r:nr).importNode(n,!0);rr.currentNode=i;let s=rr.nextNode(),a=0,u=0,l=o[0];for(;l!==void 0;){if(a===l.index){let c;l.type===2?c=new Ur(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new Qo(s,this,e)),this._$AV.push(c),l=o[++u]}a!==l?.index&&(s=rr.nextNode(),a++)}return rr.currentNode=nr,i}v(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Ur=class t{constructor(e,r,n,o){var i;this.type=2,this._$AH=de,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cp=(i=o?.isConnected)===null||i===void 0||i}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cp}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=or(this,e,r),Wn(e)?e===de||e==null||e===""?(this._$AH!==de&&this._$AR(),this._$AH=de):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):pc(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==de&&Wn(this._$AH)?this._$AA.nextSibling.data=e:this.$(nr.createTextNode(e)),this._$AH=e}g(e){var r;let{values:n,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=zn.createElement(mc(o.h,o.h[0]),this.options)),o);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===i)this._$AH.v(n);else{let s=new Vo(i,this),a=s.u(this.options);s.v(n),this.$(a),this._$AH=s}}_$AC(e){let r=lc.get(e.strings);return r===void 0&&lc.set(e.strings,r=new zn(e)),r}T(e){fc(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of e)o===r.length?r.push(n=new t(this.k(Hn()),this.k(Hn()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){var r;this._$AM===void 0&&(this._$Cp=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},ir=class{constructor(e,r,n,o,i){this.type=1,this._$AH=de,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=de}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)e=or(this,e,r,0),s=!Wn(e)||e!==this._$AH&&e!==Ee,s&&(this._$AH=e);else{let a=e,u,l;for(e=i[0],u=0;u<i.length-1;u++)l=or(this,a[n+u],r,u),l===Ee&&(l=this._$AH[u]),s||(s=!Wn(l)||l!==this._$AH[u]),l===de?e=de:e!==de&&(e+=(l??"")+i[u+1]),this._$AH[u]=l}s&&!o&&this.j(e)}j(e){e===de?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Go=class extends ir{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===de?void 0:e}},ty=Fr?Fr.emptyScript:"",Jo=class extends ir{constructor(){super(...arguments),this.type=4}j(e){e&&e!==de?this.element.setAttribute(this.name,ty):this.element.removeAttribute(this.name)}},Yo=class extends ir{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){var n;if((e=(n=or(this,e,r,0))!==null&&n!==void 0?n:de)===Ee)return;let o=this._$AH,i=e===de&&o!==de||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==de&&(o===de||i);i&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}},Qo=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){or(this,e)}},yc={O:zo,P:vt,A:Hs,C:1,M:gc,L:Vo,R:pc,D:or,I:Ur,V:ir,H:Jo,N:Yo,U:Go,F:Qo},cc=Wo.litHtmlPolyfillSupport;cc?.(zn,Ur),((js=Wo.litHtmlVersions)!==null&&js!==void 0?js:Wo.litHtmlVersions=[]).push("2.8.0");var Vn=(t,e,r)=>{var n,o;let i=(n=r?.renderBefore)!==null&&n!==void 0?n:e,s=i._$litPart$;if(s===void 0){let a=(o=r?.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=s=new Ur(e.insertBefore(Hn(),a),a,void 0,r??{})}return s._$AI(t),s};var Ws,zs;var Ut=class extends xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let n=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=n.firstChild),n}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Vn(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ee}};Ut.finalized=!0,Ut._$litElement$=!0,(Ws=globalThis.litElementHydrateSupport)===null||Ws===void 0||Ws.call(globalThis,{LitElement:Ut});var xc=globalThis.litElementPolyfillSupport;xc?.({LitElement:Ut});((zs=globalThis.litElementVersions)!==null&&zs!==void 0?zs:globalThis.litElementVersions=[]).push("3.3.3");var Am=Be(Xo(),1);var ye={};X(ye,{ObservableIntake:()=>aa,Observablemap:()=>sa,rxjs:()=>hr});var Y={};X(Y,{CumulativeDeferred:()=>ei,Deferred:()=>Ko,cumulativeDefer:()=>ny,defer:()=>sr,getFirstTrueOrFalse:()=>uy,map:()=>sy,rejectedPromise:()=>iy,resolvedPromise:()=>oy,timeoutAndContinue:()=>ay,timeoutWrap:()=>vc});var Ko=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},sr=()=>new Ko;var ei=class{constructor(){this.accumulatedPromises=[],this.deferred=sr(),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)}},ny=()=>new ei;var oy=t=>Promise.resolve(t),iy=t=>Promise.reject(t),sy=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},vc=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),ay=async(t,e=6e4)=>vc(t,e,!1),uy=async t=>{let e=sr();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var hr={};X(hr,{Observable:()=>ce,ReplaySubject:()=>Zs,Subject:()=>wt,Subscription:()=>rt,from:()=>Zn,fromEvent:()=>pr,ops:()=>Oy});var Vs=function(t,e){return Vs=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])},Vs(t,e)};function Re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Vs(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function bc(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{l(n.next(c))}catch(p){s(p)}}function u(c){try{l(n.throw(c))}catch(p){s(p)}}function l(c){c.done?i(c.value):o(c.value).then(a,u)}l((n=n.apply(t,e||[])).next())})}function ti(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(c){l=[6,c],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function bt(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function tt(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function ar(t){return this instanceof ar?(this.v=t,this):new ar(t)}function wc(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){n[h]&&(o[h]=function(y){return new Promise(function(w,C){i.push([h,y,w,C])>1||a(h,y)})})}function a(h,y){try{u(n[h](y))}catch(w){p(i[0][3],w)}}function u(h){h.value instanceof ar?Promise.resolve(h.value.v).then(l,c):p(i[0][2],h)}function l(h){a("next",h)}function c(h){a("throw",h)}function p(h,y){h(y),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Sc(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 bt=="function"?bt(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}}function G(t){return typeof t=="function"}function ri(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ni=ri(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
15
|
+
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function ur(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var rt=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=bt(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(C){e={error:C}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var c=this.initialTeardown;if(G(c))try{c()}catch(C){i=C instanceof ni?C.errors:[C]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=bt(p),y=h.next();!y.done;y=h.next()){var w=y.value;try{Ec(w)}catch(C){i=i??[],C instanceof ni?i=tt(tt([],He(i)),He(C.errors)):i.push(C)}}}catch(C){n={error:C}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new ni(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Ec(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)&&ur(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&ur(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var Gs=rt.EMPTY;function oi(t){return t instanceof rt||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function Ec(t){G(t)?t():t.unsubscribe()}var nt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Lr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Lr.delegate;return o?.setTimeout?o.setTimeout.apply(o,tt([t,e],He(r))):setTimeout.apply(void 0,tt([t,e],He(r)))},clearTimeout:function(t){var e=Lr.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ii(t){Lr.setTimeout(function(){var e=nt.onUnhandledError;if(e)e(t);else throw t})}function lr(){}var Tc=function(){return Js("C",void 0,void 0)}();function _c(t){return Js("E",void 0,t)}function Cc(t){return Js("N",t,void 0)}function Js(t,e,r){return{kind:t,value:e,error:r}}var cr=null;function kr(t){if(nt.useDeprecatedSynchronousErrorHandling){var e=!cr;if(e&&(cr={errorThrown:!1,error:null}),t(),e){var r=cr,n=r.errorThrown,o=r.error;if(cr=null,n)throw o}}else t()}function Ac(t){nt.useDeprecatedSynchronousErrorHandling&&cr&&(cr.errorThrown=!0,cr.error=t)}var Gn=function(t){Re(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,oi(r)&&r.add(n)):n.destination=hy,n}return e.create=function(r,n,o){return new ai(r,n,o)},e.prototype.next=function(r){this.isStopped?Qs(Cc(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?Qs(_c(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?Qs(Tc,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}(rt);var cy=Function.prototype.bind;function Ys(t,e){return cy.call(t,e)}var fy=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){si(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){si(n)}else si(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){si(r)}},t}(),ai=function(t){Re(e,t);function e(r,n,o){var i=t.call(this)||this,s;if(G(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&nt.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Ys(r.next,a),error:r.error&&Ys(r.error,a),complete:r.complete&&Ys(r.complete,a)}):s=r}return i.destination=new fy(s),i}return e}(Gn);function si(t){nt.useDeprecatedSynchronousErrorHandling?Ac(t):ii(t)}function py(t){throw t}function Qs(t,e){var r=nt.onStoppedNotification;r&&Lr.setTimeout(function(){return r(t,e)})}var hy={closed:!0,next:lr,error:py,complete:lr};var jr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ui(t){return t}function Ic(t){return t.length===0?ui:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var ce=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,i=my(e)?e:new ai(e,r,n);return kr(function(){var s=o,a=s.operator,u=s.source;i.add(a?a.call(i,u):u?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=Mc(r),new r(function(o,i){var s=new ai({next:function(a){try{e(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[jr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ic(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Mc(e),new e(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},t.create=function(e){return new t(e)},t}();function Mc(t){var e;return(e=t??nt.Promise)!==null&&e!==void 0?e:Promise}function dy(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}function my(t){return t&&t instanceof Gn||dy(t)&&oi(t)}function gy(t){return G(t?.lift)}function ge(t){return function(e){if(gy(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(t,e,r,n,o){return new yy(t,e,r,n,o)}var yy=function(t){Re(e,t);function e(r,n,o,i,s,a){var u=t.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=n?function(l){try{n(l)}catch(c){r.error(c)}}:t.prototype._next,u._error=i?function(l){try{i(l)}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=o?function(){try{o()}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,u}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Gn);var Pc=ri(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var wt=function(t){Re(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new $c(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Pc},e.prototype.next=function(r){var n=this;kr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=bt(n.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(r){var n=this;kr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;kr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Gs:(this.currentObservers=null,a.push(r),new rt(function(){n.currentObservers=null,ur(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new ce;return r.source=this,r},e.create=function(r,n){return new $c(r,n)},e}(ce);var $c=function(t){Re(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Gs},e}(wt);var Jn={now:function(){return(Jn.delegate||Date).now()},delegate:void 0};var Zs=function(t){Re(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Jn);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return e.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;o||(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 n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=i?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var u=o.now(),l=0,c=1;c<i.length&&i[c]<=u;c+=2)l=c;l&&i.splice(0,l+1)}},e}(wt);var Nc=function(t){Re(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e}(rt);var Yn={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Yn.delegate;return o?.setInterval?o.setInterval.apply(o,tt([t,e],He(r))):setInterval.apply(void 0,tt([t,e],He(r)))},clearInterval:function(t){var e=Yn.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Bc=function(t){Re(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return e.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,n),this},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Yn.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Yn.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ur(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Nc);var Xs=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Jn.now,t}();var Oc=function(t){Re(e,t);function e(r,n){n===void 0&&(n=Xs.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},e}(Xs);var Qn=new Oc(Bc),Dc=Qn;function li(t){return t&&G(t.schedule)}function xy(t){return t[t.length-1]}function ci(t){return li(xy(t))?t.pop():void 0}var qr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function fi(t){return G(t?.then)}function pi(t){return G(t[jr])}function hi(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function di(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 vy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mi=vy();function gi(t){return G(t?.[mi])}function yi(t){return wc(this,arguments,function(){var r,n,o,i;return ti(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,ar(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,ar(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,ar(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 xi(t){return G(t?.getReader)}function Ie(t){if(t instanceof ce)return t;if(t!=null){if(pi(t))return by(t);if(qr(t))return wy(t);if(fi(t))return Sy(t);if(hi(t))return Rc(t);if(gi(t))return Ey(t);if(xi(t))return Ty(t)}throw di(t)}function by(t){return new ce(function(e){var r=t[jr]();if(G(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wy(t){return new ce(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Sy(t){return new ce(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,ii)})}function Ey(t){return new ce(function(e){var r,n;try{for(var o=bt(t),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function Rc(t){return new ce(function(e){_y(t,e).catch(function(r){return e.error(r)})})}function Ty(t){return Rc(yi(t))}function _y(t,e){var r,n,o,i;return bc(this,void 0,void 0,function(){var s,a;return ti(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Sc(t),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(s=n.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(),o={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),n&&!n.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(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Ve(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function vi(t,e){return e===void 0&&(e=0),ge(function(r,n){r.subscribe(Te(n,function(o){return Ve(n,t,function(){return n.next(o)},e)},function(){return Ve(n,t,function(){return n.complete()},e)},function(o){return Ve(n,t,function(){return n.error(o)},e)}))})}function bi(t,e){return e===void 0&&(e=0),ge(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function Fc(t,e){return Ie(t).pipe(bi(e),vi(e))}function Uc(t,e){return Ie(t).pipe(bi(e),vi(e))}function Lc(t,e){return new ce(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function kc(t,e){return new ce(function(r){var n;return Ve(r,e,function(){n=t[mi](),Ve(r,e,function(){var o,i,s;try{o=n.next(),i=o.value,s=o.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return G(n?.return)&&n.return()}})}function wi(t,e){if(!t)throw new Error("Iterable cannot be null");return new ce(function(r){Ve(r,e,function(){var n=t[Symbol.asyncIterator]();Ve(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function jc(t,e){return wi(yi(t),e)}function qc(t,e){if(t!=null){if(pi(t))return Fc(t,e);if(qr(t))return Lc(t,e);if(fi(t))return Uc(t,e);if(hi(t))return wi(t,e);if(gi(t))return kc(t,e);if(xi(t))return jc(t,e)}throw di(t)}function Zn(t,e){return e?qc(t,e):Ie(t)}function Hc(t){return t instanceof Date&&!isNaN(t)}function fr(t,e){return ge(function(r,n){var o=0;r.subscribe(Te(n,function(i){n.next(t.call(e,i,o++))}))})}var Cy=Array.isArray;function Ay(t,e){return Cy(e)?t.apply(void 0,tt([],He(e))):t(e)}function Wc(t){return fr(function(e){return Ay(t,e)})}function zc(t,e,r,n,o,i,s,a){var u=[],l=0,c=0,p=!1,h=function(){p&&!u.length&&!l&&e.complete()},y=function(C){return l<n?w(C):u.push(C)},w=function(C){i&&e.next(C),l++;var B=!1;Ie(r(C,c++)).subscribe(Te(e,function(_){o?.(_),i?y(_):e.next(_)},function(){B=!0},void 0,function(){if(B)try{l--;for(var _=function(){var A=u.shift();s?Ve(e,s,function(){return w(A)}):w(A)};u.length&&l<n;)_();h()}catch(A){e.error(A)}}))};return t.subscribe(Te(e,y,function(){p=!0,h()})),function(){a?.()}}function Xn(t,e,r){return r===void 0&&(r=1/0),G(e)?Xn(function(n,o){return fr(function(i,s){return e(n,i,o,s)})(Ie(t(n,o)))},r):(typeof e=="number"&&(r=e),ge(function(n,o){return zc(n,o,t,r)}))}function Vc(t){return t===void 0&&(t=1/0),Xn(ui,t)}function Gc(){return Vc(1)}function Ks(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Gc()(Zn(t,ci(t)))}var Iy=["addListener","removeListener"],My=["addEventListener","removeEventListener"],Py=["on","off"];function pr(t,e,r,n){if(G(r)&&(n=r,r=void 0),n)return pr(t,e,r).pipe(Wc(n));var o=He(By(t)?My.map(function(a){return function(u){return t[a](e,u,r)}}):$y(t)?Iy.map(Jc(t,e)):Ny(t)?Py.map(Jc(t,e)):[],2),i=o[0],s=o[1];if(!i&&qr(t))return Xn(function(a){return pr(a,e,r)})(Ie(t));if(!i)throw new TypeError("Invalid event target");return new ce(function(a){var u=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return a.next(1<l.length?l:l[0])};return i(u),function(){return s(u)}})}function Jc(t,e){return function(r){return function(n){return t[r](e,n)}}}function $y(t){return G(t.addListener)&&G(t.removeListener)}function Ny(t){return G(t.on)&&G(t.off)}function By(t){return G(t.addEventListener)&&G(t.removeEventListener)}function Yc(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Dc);var n=-1;return e!=null&&(li(e)?r=e:n=e),new ce(function(o){var i=Hc(t)?+t-r.now():t;i<0&&(i=0);var s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function ea(t,e){return ge(function(r,n){var o=0;r.subscribe(Te(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function ta(t){return ge(function(e,r){var n=!1,o=null,i=null,s=function(){if(i?.unsubscribe(),i=null,n){n=!1;var a=o;o=null,r.next(a)}};e.subscribe(Te(r,function(a){i?.unsubscribe(),n=!0,o=a,i=Te(r,s,lr),Ie(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function ra(t,e){return e===void 0&&(e=Qn),ge(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var l=i;i=null,n.next(l)}};function u(){var l=s+t,c=e.now();if(c<l){o=this.schedule(void 0,l-c),n.add(o);return}a()}r.subscribe(Te(n,function(l){i=l,s=e.now(),o||(o=e.schedule(u,t),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function na(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=ci(t);return ge(function(n,o){(r?Ks(t,n,r):Ks(t,n)).subscribe(o)})}function oa(t){return ge(function(e,r){Ie(t).subscribe(Te(r,function(){return r.complete()},lr)),!r.closed&&e.subscribe(r)})}function Qc(t,e){return ge(function(r,n){var o=e??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,u=a===void 0?!1:a,l=!1,c=null,p=null,h=!1,y=function(){p?.unsubscribe(),p=null,u&&(B(),h&&n.complete())},w=function(){p=null,h&&n.complete()},C=function(_){return p=Ie(t(_)).subscribe(Te(n,y,w))},B=function(){if(l){l=!1;var _=c;c=null,n.next(_),!h&&C(_)}};r.subscribe(Te(n,function(_){l=!0,c=_,!(p&&!p.closed)&&(s?B():C(_))},function(){h=!0,!(u&&l&&p&&!p.closed)&&n.complete()}))})}function ia(t,e,r){e===void 0&&(e=Qn);var n=Yc(t,e);return Qc(function(){return n},r)}var Oy={debounce:ta,debounceTime:ra,map:fr,startWith:na,takeUntil:oa,throttleTime:ia,filter:ea};var sa=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let o=pr(e,r),i=new wt;o.subscribe(i);let s={subject:i,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let i={subject:new wt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var aa=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new ce(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=Y.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};var Dy=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},Ry=(t,e,r)=>{e.constructor.createProperty(r,t)};function Q(t){return(e,r)=>r!==void 0?Ry(t,e,r):Dy(t,e)}var Ne={};X(Ne,{DomTools:()=>pe,TypedRequest:()=>bo,breakpoints:()=>$t,css:()=>_l,elementBasic:()=>Ce,plugins:()=>TS,rxjs:()=>hr});var Ce={};X(Ce,{setup:()=>SS,staticStyles:()=>bS,styles:()=>wS});var as={};X(as,{DeesComms:()=>ul});var ie={};X(ie,{Timeout:()=>Si,delayFor:()=>Zc,delayForRandom:()=>Fy});var Zc=async(t,e,r=!1)=>(await new Si(t,null,r).promise,e),Fy=async(t,e,r,n=!1)=>(await Zc(Math.random()*(e-t)+t,null,n),r),Si=class{constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=sr(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var Ze={};X(Ze,{TypedHandler:()=>el,TypedRequest:()=>bo,TypedResponseError:()=>_r,TypedRouter:()=>tl,TypedTarget:()=>rl});var Yd=Be(Xo(),1);var lt={};X(lt,{AsyncExecutionStack:()=>Aa,FastMap:()=>mr,Interest:()=>eo,InterestMap:()=>Ia,LimitedArray:()=>Ma,LoopTracker:()=>Pa,ObjectMap:()=>Tt,Stringmap:()=>to,TimedAggregtor:()=>$a,Tree:()=>Na,uni:()=>xf});var Ti={};X(Ti,{SmartMatch:()=>ca});var Ei={};X(Ei,{isMatch:()=>ky,matcher:()=>Ly});function ua(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var la=new Map,Xc=(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})},Uy=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(la.has(r))return la.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=ua(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,la.set(r,o),o},Kc=(t,e,r,n)=>{if(t=Xc(t,"inputs"),e=Xc(e,"patterns"),e.length===0)return[];e=e.map(s=>Uy(s,r));let{allPatterns:o}=r||{},i=[];for(let s of t){let a,u=[...e].fill(!1);for(let[l,c]of e.entries())if(c.test(s)&&(u[l]=!0,a=!c.negated,!a))break;if(!(a===!1||a===void 0&&e.some(l=>!l.negated)||o&&u.some((l,c)=>!l&&!e[c].negated))&&(i.push(s),n))break}return i};function Ly(t,e,r){return Kc(t,e,r,!1)}function ky(t,e,r){return Kc(t,e,r,!0).length>0}var ca=class{constructor(e){this.wildcard=e}match(e){return Ei.isMatch(e,this.wildcard)}};var Et={};X(Et,{CronJob:()=>Kn,CronManager:()=>ba,ExtendedDate:()=>wa,HrtMeasurement:()=>Sa,Interval:()=>Ea,TimeStamp:()=>zr,Timer:()=>Ta,getMilliSecondsAsHumanReadableString:()=>va,getMilliSecondsFromUnits:()=>xa,units:()=>Lt});function Le(t,e,r,n,o,i,s,a){return Le.fromTZ(Le.tp(t,e,r,n,o,i,s),a)}Le.fromTZISO=(t,e,r)=>Le.fromTZ(qy(t,e),r);Le.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),n=fa(t.tz,r),o=new Date(r.getTime()-n),i=fa(t.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=fa(t.tz,s);if(a-i===0)return s;if(!e&&a-i>0)return s;if(e)throw new Error("Invalid date passed to fromTZ()");return o}};Le.toTZ=function(t,e){let r=new Date(t.toLocaleString("sv-SE",{timeZone:e}));return{y:r.getFullYear(),m:r.getMonth()+1,d:r.getDate(),h:r.getHours(),i:r.getMinutes(),s:r.getSeconds(),tz:e}};Le.tp=(t,e,r,n,o,i,s)=>({y:t,m:e,d:r,h:n,i:o,s:i,tz:s});function fa(t,e=new Date){let r=e.toLocaleString("en",{timeZone:t,timeStyle:"long"}).split(" ").slice(-1)[0],n=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function qy(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=t.substring(9);return t.includes("Z")||n.includes("-")||n.includes("+")?Le.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Le.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Le.minitz=Le;function Hy(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval,10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset,10),t.unref=t.unref===void 0?!1:t.unref,t.kill=!1,t.startAt&&(t.startAt=new _e(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new _e(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}var tf=[31,28,31,30,31,30,31,31,30,31,30,31],St=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function _e(t,e){if(this.tz=e,t&&t instanceof Date)if(!isNaN(t))this.fromDate(t);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(t===void 0)this.fromDate(new Date);else if(t&&typeof t=="string")this.fromString(t);else if(t instanceof _e)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}_e.prototype.fromDate=function(t){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes()+this.tz,this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),this.apply();else{let e=Le.toTZ(t,this.tz);this.ms=t.getMilliseconds(),this.second=e.s,this.minute=e.i,this.hour=e.h,this.day=e.d,this.month=e.m-1,this.year=e.y}else this.ms=t.getMilliseconds(),this.second=t.getSeconds(),this.minute=t.getMinutes(),this.hour=t.getHours(),this.day=t.getDate(),this.month=t.getMonth(),this.year=t.getFullYear()};_e.prototype.fromCronDate=function(t){this.tz=t.tz,this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.ms=t.ms};_e.prototype.apply=function(){if(this.month>11||this.day>tf[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};_e.prototype.fromString=function(t){return this.fromDate(Le.fromTZISO(t,this.tz))};_e.prototype.findNext=function(t,e,r,n){let o=this[e],i;r.lastDayOfMonth&&(this.month!==1?i=tf[this.month]:i=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&e=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[e]+n;a<r[e].length;a++){let u=r[e][a];if(e==="day"&&r.lastDayOfMonth&&a-n==i&&(u=!0),e==="day"&&!r.starDOW){let l=r.dow[(s+(a-n-1))%7];t.legacyMode&&!r.starDOM?u=u||l:u=u&&l}if(u)return this[e]=a-n,o!==this[e]?2:1}return 3};_e.prototype.recurse=function(t,e,r){let n=this.findNext(e,St[r][0],t,St[r][2]);if(n>1){let o=r+1;for(;o<St.length;)this[St[o][0]]=-St[o][2],o++;if(n===3)return this[St[r][1]]++,this[St[r][0]]=-St[r][2],this.apply(),this.recurse(t,e,0);if(this.apply())return this.recurse(t,e,r-1)}return r+=1,r>=St.length?this:this.year>=3e3?null:this.recurse(t,e,r)};_e.prototype.increment=function(t,e,r){return e.interval>1&&r?this.second+=e.interval:this.second+=1,this.ms=0,this.apply(),this.recurse(t,e,0)};_e.prototype.getDate=function(t){return t||this.tz===void 0&&this.utcOffset===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):Le(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};_e.prototype.getTime=function(){return this.getDate().getTime()};function ot(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dow=Array(8).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}ot.prototype.parse=function(){if(!(typeof this.pattern=="string"||this.pattern.constructor===String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new _e(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds()),t[1]=t[1].replace("?",e.getMinutes()),t[2]=t[2].replace("?",e.getHours()),this.starDOM||(t[3]=t[3].replace("?",e.getDate())),t[4]=t[4].replace("?",e.getMonth()+1),this.starDOW||(t[5]=t[5].replace("?",e.getDay()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0),this.partToArray("minute",t[1],0),this.partToArray("hour",t[2],0),this.partToArray("day",t[3],-1),this.partToArray("month",t[4],-1),this.partToArray("dow",t[5],0),this.dow[7]&&(this.dow[0]=1)};ot.prototype.partToArray=function(t,e,r){let n=this[t];if(e==="*")return n.fill(1);let o=e.split(",");if(o.length>1)for(let i=0;i<o.length;i++)this.partToArray(t,o[i],r);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r):e.indexOf("-")!==-1?this.handleRange(e,t,r):e.indexOf("/")!==-1?this.handleStepping(e,t,r):e!==""&&this.handleNumber(e,t,r)};ot.prototype.throwAtIllegalCharacters=function(t){let e=/[^/*0-9,-]+/;for(let r=0;r<t.length;r++)if(e.test(t[r]))throw new TypeError("CronPattern: configuration entry "+r+" ("+t[r]+") contains illegal characters.")};ot.prototype.handleNumber=function(t,e,r){let n=parseInt(t,10)+r;if(isNaN(n))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");if(n<0||n>=this[e].length)throw new TypeError("CronPattern: "+e+" value out of range: '"+t+"'");this[e][n]=1};ot.prototype.handleRangeWithStepping=function(t,e,r){let n=t.match(/^(\d+)-(\d+)\/(\d+)$/);if(n===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,o,i,s]=n;if(o=parseInt(o,10)+r,i=parseInt(i,10)+r,s=parseInt(s,10),isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(i))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(s===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(s>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(o<0||i>=this[e].length)throw new TypeError("CronPattern: Value out of range: '"+t+"'");if(o>i)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let a=o;a<=i;a+=s)this[e][a]=1};ot.prototype.handleRange=function(t,e,r){let n=t.split("-");if(n.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let o=parseInt(n[0],10)+r,i=parseInt(n[1],10)+r;if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(i))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(o<0||i>=this[e].length)throw new TypeError("CronPattern: Value out of range: '"+t+"'");if(o>i)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let s=o;s<=i;s++)this[e][s]=1};ot.prototype.handleStepping=function(t,e){let r=t.split("/");if(r.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");let n=0;r[0]!=="*"&&(n=parseInt(r[0],10));let o=parseInt(r[1],10);if(isNaN(o))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(o===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(o>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let i=n;i<this[e].length;i+=o)this[e][i]=1};ot.prototype.replaceAlphaDays=function(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")};ot.prototype.replaceAlphaMonths=function(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")};ot.prototype.handleNicknames=function(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t};var ef=Math.pow(2,32-1)-1,pa=[];function rf(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function Wy(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}function he(t,e,r){if(!(this instanceof he))return new he(t,e,r);let n,o;if(typeof e=="function")o=e;else if(typeof e=="object")n=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(typeof r=="function")o=r;else if(typeof r=="object")n=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=n?n.name:void 0,this.options=Hy(n),this.once=void 0,this.pattern=void 0,this.blocking=!1,this.previousrun=void 0,this.runstarted=void 0,t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this.once=new _e(t,this.options.timezone||this.options.utcOffset):this.pattern=new ot(t,this.options.timezone),o!==void 0&&(this.fn=o,this.schedule()),this.name){if(pa.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");pa.push(this)}return this}he.prototype.next=function(t){let e=this._next(t);return e?e.getDate():null};he.prototype.enumerate=function(t,e){t>this.options.maxRuns&&(t=this.options.maxRuns);let r=[],n=e||this.previousrun;for(;t--&&(n=this.next(n));)r.push(n);return r};he.prototype.running=function(){let t=this.msToNext(this.previousrun),e=!this.options.paused&&this.fn!==void 0;return t!==null&&e};he.prototype.busy=function(){return this.blocking};he.prototype.started=function(){return this.runstarted?this.runstarted.getDate():null};he.prototype.previous=function(){return this.previousrun?this.previousrun.getDate():null};he.prototype.msToNext=function(t){let e=this._next(t);return t=new _e(t,this.options.timezone||this.options.utcOffset),e?e.getTime(!0)-t.getTime(!0):null};he.prototype.stop=function(){this.options.kill=!0,this.currentTimeout&&clearTimeout(this.currentTimeout)};he.prototype.pause=function(){return(this.options.paused=!0)&&!this.options.kill};he.prototype.resume=function(){return!(this.options.paused=!1)&&!this.options.kill};he.prototype.schedule=function(t,e){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let r=this.msToNext(e||this.previousrun),n=this.next(e||this.previousrun);return r===null||n===null?this:(r>ef&&(r=ef),this.currentTimeout=setTimeout(()=>this._checkTrigger(n),r),this.currentTimeout&&this.options.unref&&Wy(this.currentTimeout),this)};he.prototype._trigger=async function(t){if(this.blocking=!0,this.runstarted=new _e(t,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(e){rf(this.options.catch)&&(r=>r.options.catch(e,r))(this)}finally{this.blocking=!1}else await this.fn(this,this.options.context),this.blocking=!1};he.prototype._checkTrigger=function(t){let e=new Date,r=!this.options.paused&&e.getTime()>=t,n=this.blocking&&this.options.protect;r&&!n?(this.options.maxRuns--,this._trigger(),this.previousrun=new _e(void 0,this.options.timezone||this.options.utcOffset),this.schedule()):(r&&n&&rf(this.options.protect)&&(async o=>o.options.protect(o))(this),this.schedule(void 0,e))};he.prototype._next=function(t){let e=!!(t||this.previousrun);t=new _e(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let r=this.once||new _e(t,this.options.timezone||this.options.utcOffset).increment(this.pattern,this.options,e);return this.once&&this.once.getTime()<=t.getTime()||r===null||this.options.maxRuns<=0||this.options.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};he.Cron=he;he.scheduledJobs=pa;var Hr=Be(nf(),1),sf=Be(of(),1);function ya(t){if(typeof t!="number")throw new TypeError("Expected a number");let e=t>0?Math.floor:Math.ceil;return{days:e(t/864e5),hours:e(t/36e5)%24,minutes:e(t/6e4)%60,seconds:e(t/1e3)%60,milliseconds:e(t)%1e3,microseconds:e(t*1e3)%1e3,nanoseconds:e(t*1e6)%1e3}}var zy=(t,e)=>e===1?t:`${t}s`,Vy=1e-7;function _i(t,e={}){if(!Number.isFinite(t))throw new TypeError("Expected a finite number");e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let u=Math.floor(s*10**a+Vy);return(Math.round(u)/10**a).toFixed(a)},o=(s,a,u,l)=>{if((r.length===0||!e.colonNotation)&&s===0&&!(e.colonNotation&&u==="m"))return;l=(l||s||"0").toString();let c,p;if(e.colonNotation){c=r.length>0?":":"",p="";let h=l.includes(".")?l.split(".")[0].length:l.length,y=r.length>0?2:1;l="0".repeat(Math.max(0,y-h))+l}else c="",p=e.verbose?" "+zy(a,s):u;r.push(c+l+p)},i=ya(t);if(o(Math.trunc(i.days/365),"year","y"),o(i.days%365,"day","d"),o(i.hours,"hour","h"),o(i.minutes,"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3)if(o(i.seconds,"second","s"),e.formatSubMilliseconds)o(i.milliseconds,"millisecond","ms"),o(i.microseconds,"microsecond","\xB5s"),o(i.nanoseconds,"nanosecond","ns");else{let s=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,a=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,u=s>=1?Math.round(s):Math.ceil(s),l=a?s.toFixed(a):u;o(Number.parseFloat(l),"millisecond","ms",l)}else{let s=t/1e3%60,a=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,u=n(s,a),l=e.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");o(Number.parseFloat(l),"second","s",l)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");if(e.compact)return r[0];if(typeof e.unitCount=="number"){let s=e.colonNotation?"":" ";return r.slice(0,Math.max(e.unitCount,1)).join(s)}return e.colonNotation?r.join(""):r.join(" ")}Hr.default.extend(sf.default);var Kn=class{constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=he(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 Lt={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},xa=t=>{let e=0,r=n=>{e=e+n};return t.years&&r(Lt.years(t.years)),t.months&&r(Lt.months(t.months)),t.weeks&&r(Lt.weeks(t.weeks)),t.days&&r(Lt.days(t.days)),t.hours&&r(Lt.hours(t.hours)),t.minutes&&r(Lt.minutes(t.minutes)),t.seconds&&r(Lt.seconds(t.seconds)),e},va=t=>_i(t);var ba=class{constructor(){this.status="stopped",this.cronjobs=new lt.ObjectMap}addCronjob(e,r){let n=new Kn(this,e,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let r of this.cronjobs.getArray())r.start();(async()=>{this.executionTimeout=new ie.Timeout(0);do{let r;for(let n of this.cronjobs.getArray())n.checkExecution(),(!r||n.getTimeToNextExecution()<r.getTimeToNextExecution())&&(r=n);r?(this.executionTimeout=new ie.Timeout(r.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${va(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new ie.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 wa=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(o)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(e),i=l=>`0${l}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,u=Hr.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 Hr.default(this.getTime()).format(e)}isToday(){return Hr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=xa(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Sa=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 Ea=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 ie.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 zr=class t{static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let n=new t().epochtime-e,o=new t(n);return this.isYoungerThanOtherTimeStamp(o)}};var Ta=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=Y.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new zr;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=zr.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 Ca=Be(yf(),1);var Aa=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let n=Y.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=Y.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=await Promise.race([e.funcToExecute(),ie.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(r)}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async n=>{try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),ie.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 mr=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject[e]=r,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let r=this.getByKey(e);return delete this.mapObject[e],r}getKeys(){let e=[];for(let r in this.mapObject)this.mapObject[r]&&e.push(r);return e}clean(){this.mapObject={}}concat(e){let r=new t;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of e.getKeys())r.addToMap(n,e.getByKey(n),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let n=this.getByKey(r);if(await e(n))return n}}};var xf=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),Tt=class t{constructor(){this.fastMap=new mr,this.eventSubject=new ye.rxjs.Subject}addMappedUnique(e,r){this.fastMap.addToMap(e,r)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.getMappedUnique(e)}add(e){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===e)return n;let r=xf("key");return this.addMappedUnique(r,e),this.eventSubject.next({operation:"add",payload:e}),r}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===e)r=n;else continue;return r}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let e=[];for(let r of this.fastMap.getKeys())e.push(this.fastMap.getByKey(r));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let r=this.getKeyForObject(e),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let r=new t;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap),r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}};var eo=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,r,n,o){this.destructionTimer=new Et.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new Y.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&ie.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 Ia=class{constructor(e,r={}){this.interestObjectMap=new Tt,this.interestObservable=new ye.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,i=new eo(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,o=a,o.renew())}),o||(o=i,this.interestObjectMap.add(o)),this.interestObservable.push(o),o}removeInterest(e){let r=this.interestObjectMap.findOneAndRemoveSync(n=>e.comparisonString===n.comparisonString)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return!!this.interestObjectMap.findSync(n=>n.comparisonString===e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var Ma=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 Pa=class{constructor(){this.referenceObjectMap=new Tt}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var to=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 Ti.SmartMatch(e),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let n=Y.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=e(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}};var $a=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Et.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 Na=class{constructor(){this.symbolTree=new Ca.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,r){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=this.treeIterator(e,{});for(let n of r)console.log(n)}fromJsonWithHierachy(e){}};var vo={};X(vo,{WebRequest:()=>Ku});var Gr={};X(Gr,{Smartenv:()=>ro});var ro=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Y.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var me={};X(me,{Smartjson:()=>zu,deepEqualObjects:()=>Uw,foldDec:()=>Fw,parse:()=>Vu,parseBase64:()=>Rw,stringify:()=>xn,stringifyBase64:()=>Dw,stringifyPretty:()=>Ow});var po={};X(po,{Base64:()=>Vi,Domain:()=>Gi,GitRepo:()=>Ji,base64:()=>hn,create:()=>Su,docker:()=>Eu,indent:()=>Cu,normalize:()=>Au,type:()=>Iu});var Su={};X(Su,{createCryptoRandomString:()=>Gv,createRandomString:()=>Vv});var Lh=Be(Xo(),1),kh=Be(Lf(),1),jh=Be(nh(),1);var lh="3.7.5",Sv=lh,Ev=typeof atob=="function",Tv=typeof btoa=="function",pn=typeof Buffer=="function",oh=typeof TextDecoder=="function"?new TextDecoder:void 0,ih=typeof TextEncoder=="function"?new TextEncoder:void 0,_v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",co=Array.prototype.slice.call(_v),ji=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(co),Cv=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Oe=String.fromCharCode.bind(String),sh=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),ch=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),fh=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),ph=t=>{let e,r,n,o,i="",s=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,i+=co[e>>18&63]+co[e>>12&63]+co[e>>6&63]+co[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},xu=Tv?t=>btoa(t):pn?t=>Buffer.from(t,"binary").toString("base64"):ph,gu=pn?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,o=t.length;n<o;n+=4096)r.push(Oe.apply(null,t.subarray(n,n+4096)));return xu(r.join(""))},qi=(t,e=!1)=>e?ch(gu(t)):gu(t),Av=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Oe(192|e>>>6)+Oe(128|e&63):Oe(224|e>>>12&15)+Oe(128|e>>>6&63)+Oe(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Oe(240|e>>>18&7)+Oe(128|e>>>12&63)+Oe(128|e>>>6&63)+Oe(128|e&63)}},Iv=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,hh=t=>t.replace(Iv,Av),ah=pn?t=>Buffer.from(t,"utf8").toString("base64"):ih?t=>gu(ih.encode(t)):t=>xu(hh(t)),fn=(t,e=!1)=>e?ch(ah(t)):ah(t),uh=t=>fn(t,!0),Mv=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Pv=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return Oe((r>>>10)+55296)+Oe((r&1023)+56320);case 3:return Oe((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Oe((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},dh=t=>t.replace(Mv,Pv),mh=t=>{if(t=t.replace(/\s+/g,""),!Cv.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,o;for(let i=0;i<t.length;)e=ji[t.charAt(i++)]<<18|ji[t.charAt(i++)]<<12|(n=ji[t.charAt(i++)])<<6|(o=ji[t.charAt(i++)]),r+=n===64?Oe(e>>16&255):o===64?Oe(e>>16&255,e>>8&255):Oe(e>>16&255,e>>8&255,e&255);return r},vu=Ev?t=>atob(fh(t)):pn?t=>Buffer.from(t,"base64").toString("binary"):mh,gh=pn?t=>sh(Buffer.from(t,"base64")):t=>sh(vu(t).split("").map(e=>e.charCodeAt(0))),yh=t=>gh(xh(t)),$v=pn?t=>Buffer.from(t,"base64").toString("utf8"):oh?t=>oh.decode(gh(t)):t=>dh(vu(t)),xh=t=>fh(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),yu=t=>$v(xh(t)),Nv=t=>{if(typeof t!="string")return!1;let e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},vh=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),bh=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,vh(r));t("fromBase64",function(){return yu(this)}),t("toBase64",function(e){return fn(this,e)}),t("toBase64URI",function(){return fn(this,!0)}),t("toBase64URL",function(){return fn(this,!0)}),t("toUint8Array",function(){return yh(this)})},wh=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,vh(r));t("toBase64",function(e){return qi(this,e)}),t("toBase64URI",function(){return qi(this,!0)}),t("toBase64URL",function(){return qi(this,!0)})},Bv=()=>{bh(),wh()},fo={version:lh,VERSION:Sv,atob:vu,atobPolyfill:mh,btoa:xu,btoaPolyfill:ph,fromBase64:yu,toBase64:fn,encode:fn,encodeURI:uh,encodeURL:uh,utob:hh,btou:dh,decode:yu,isValid:Nv,fromUint8Array:qi,toUint8Array:yh,extendString:bh,extendUint8Array:wh,extendBuiltins:Bv};var Th=Be(Eh(),1);function Hi(t){let e=(0,Th.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var Ih=Be(Ch(),1),Ah=`\r
|
|
17
|
+
`;function Wi(t){if(typeof t!="string"&&!Buffer.isBuffer(t))throw new TypeError(`Expected a \`string\` or a \`Buffer\`, got \`${typeof t}\``);return Buffer.isBuffer(t)?(0,Ih.default)(t,Ah,`
|
|
18
|
+
`):t.replace(new RegExp(Ah,"g"),`
|
|
19
|
+
`)}var wu=Be(Uh(),1),zv=new ro;zv.isBrowser&&(globalThis.Buffer=kh.Buffer);var Vv=(t,e,r)=>wu.default(t,e,r),Gv=()=>Lh.uni();var Eu={};X(Eu,{makeEnvObject:()=>Jv});var Jv=function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n in t){let o=r.exec(t[n]);e[o[1]]=o[2]}return e};var Cu={};X(Cu,{indent:()=>Qv,indentWithPrefix:()=>Zv,normalize:()=>Xv});var Tu=t=>{let e=t.split(`
|
|
20
|
+
`);return Yv(e)},_u=t=>{let e="";for(let r of t)e=e+r+`
|
|
21
|
+
`;return e},Yv=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},Qv=(t,e)=>{let r=Tu(t);for(let o of r)o=" ".repeat(e)+o;return _u(r)},Zv=(t,e)=>{let r,n=Tu(t),o=[];for(let i of n)o.push(e+i);return r=_u(o),r},Xv=t=>{let e,r=Tu(t),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let u=o.exec(a)[1];(typeof n>"u"||u.length<n)&&!i.test(a)&&(n=u.length)}let s=[];for(let a of r)s.push(a.substr(n));return e=_u(s),e};var Au={};X(Au,{replaceAll:()=>qh,standard:()=>Kv});var qh=(t,e,r)=>t.replace(new RegExp(e,"g"),r),Kv=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=Hi(r)),(!e||e.normalizeNewline)&&(r=Wi(r)),(!e||e.replaceTabs)&&(r=qh(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var Iu={};X(Iu,{isBase64:()=>tb,isUtf8:()=>eb});var Vi=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=hn.decode(e);break;case"base64uri":this.refString=hn.decode(e)}}get simpleString(){return this.refString}get base64String(){return hn.encode(this.refString)}get base64UriString(){return hn.encodeUri(this.refString)}},hn={encode:t=>fo.encode(t),encodeUri:t=>fo.encodeURI(t),decode:t=>fo.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var eb=t=>{let e=Buffer.from(t),r=0;for(;r<e.length;){if(e[r]===9||e[r]===10||e[r]===13||32<=e[r]&&e[r]<=126){r+=1;continue}if(194<=e[r]&&e[r]<=223&&128<=e[r+1]&&e[r+1]<=191){r+=2;continue}if(e[r]===224&&160<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||(225<=e[r]&&e[r]<=236||e[r]===238||e[r]===239)&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||e[r]===237&&128<=e[r+1]&&e[r+1]<=159&&128<=e[r+2]&&e[r+2]<=191){r+=3;continue}if(e[r]===240&&144<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||241<=e[r]&&e[r]<=243&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||e[r]===244&&128<=e[r+1]&&e[r+1]<=143&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191){r+=4;continue}return!1}return!0},tb=t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let n=t.indexOf("=");return n===-1||n===r-1||n===r-2&&t[r-1]==="="};var Gi=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=jh.parse(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let o=r[n-1];this["level"+n.toString()]=o,this.fullName===""?this.fullName=o:this.fullName=o+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(e){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(e);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}_portRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}};var Ji=class{constructor(e,r){let n=rb(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=Hh(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Hh(this.host,this.user,this.repo,this.accessToken,"https")}},rb=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},Hh=function(t,e,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+t+"/"+e+"/"+r+".git";break;case"ssh":i="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var Wu=Be($d(),1),kd=Be(Bd(),1),ns=Be(Ld(),1);var jd=kd.default;var Vu=ns.default.parse,xn=(t,e,r={})=>{let n=ns.default.stringify(t);return t=JSON.parse(n),jd(t,r)},Ow=t=>{let e=xn(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},Dw=(...t)=>{let e=xn(...t);return po.base64.encodeUri(e)},Rw=t=>{let e=po.base64.decode(t);return Vu(e)},zu=class t{static enfoldFromObject(e){let r=new this;for(let n in e)r.saveableProperties.indexOf(n)!==-1&&(r[n]=e[n]);return r}static enfoldFromJson(e){let r=Vu(e);return this.enfoldFromObject(r)}foldToObject(){let e={},r=[];for(let n of this.saveableProperties){let o=this[n];if(o instanceof t){if(r.includes(o))throw new Error("cycle detected");r.push(o),o=o.foldToObject()}e[n]=Wu.default(o)}return e}foldToJson(){let e=this.foldToObject();return xn(e)}},Fw=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},Uw=(t,e)=>{let r=xn(t),n=xn(e);return r===n};var Gt={};X(Gt,{TypedrequestCache:()=>Xu,WebStore:()=>xo});var os={};X(os,{deleteDB:()=>Gw,openDB:()=>Vw,unwrap:()=>yo,wrap:()=>Qe});var Lw=(t,e)=>e.some(r=>t instanceof r),qd,Hd;function kw(){return qd||(qd=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function jw(){return Hd||(Hd=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Wd=new WeakMap,Ju=new WeakMap,zd=new WeakMap,Gu=new WeakMap,Qu=new WeakMap;function qw(t){let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(Qe(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&Wd.set(r,t)}).catch(()=>{}),Qu.set(e,t),e}function Hw(t){if(Ju.has(t))return;let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Ju.set(t,e)}var Yu={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Ju.get(t);if(e==="objectStoreNames")return t.objectStoreNames||zd.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Qe(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 Vd(t){Yu=t(Yu)}function Ww(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){let n=t.call(yo(this),e,...r);return zd.set(n,e.sort?e.sort():[e]),Qe(n)}:jw().includes(t)?function(...e){return t.apply(yo(this),e),Qe(Wd.get(this))}:function(...e){return Qe(t.apply(yo(this),e))}}function zw(t){return typeof t=="function"?Ww(t):(t instanceof IDBTransaction&&Hw(t),Lw(t,kw())?new Proxy(t,Yu):t)}function Qe(t){if(t instanceof IDBRequest)return qw(t);if(Gu.has(t))return Gu.get(t);let e=zw(t);return e!==t&&(Gu.set(t,e),Qu.set(e,t)),e}var yo=t=>Qu.get(t);function Vw(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(t,e),a=Qe(s);return n&&s.addEventListener("upgradeneeded",u=>{n(Qe(s.result),u.oldVersion,u.newVersion,Qe(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{i&&u.addEventListener("close",()=>i()),o&&u.addEventListener("versionchange",l=>o(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}function Gw(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",n=>e(n.oldVersion,n)),Qe(r).then(()=>{})}var Jw=["get","getKey","getAll","getAllKeys","count"],Yw=["put","add","delete","clear"],Zu=new Map;function Gd(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Zu.get(e))return Zu.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,o=Yw.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||Jw.includes(r)))return;let i=async function(s,...a){let u=this.transaction(s,o?"readwrite":"readonly"),l=u.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),o&&u.done]))[0]};return Zu.set(e,i),i}Vd(t=>({...t,get:(e,r,n)=>Gd(e,r)||t.get(e,r,n),has:(e,r)=>!!Gd(e,r)||t.has(e,r)}));var xo=class{constructor(e){this.initCalled=!1,this.readyDeferred=Y.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new Gr.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 os.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 Xu=class{constructor(e="default"){this.webstore=new xo({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return me.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 Ku=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Gt.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...e}}async getJson(e,r=!1){let o=await(await this.request(e,{method:"GET",useCache:r})).text();return me.parse(o)}async postJson(e,r,n=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:me.stringify(r),useCache:n})).text();return me.parse(i)}async putJson(e,r,n=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:me.stringify(r)})).text();return me.parse(i)}async deleteJson(e,r=!1){let o=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return me.parse(o)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;ie.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=Y.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(e)){let a=await this.cacheStore.get(e);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(e,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await o.promise?(i=!0,o.promise):a);if(r.useCache&&await o.promise&&s.status===500&&(i=!0,s=await o.promise),!i&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(e,a)}return this.log(`${e} answers with status: ${s.status}`),s}async requestMultiEndpoint(e,r){let n,o=0;Array.isArray(e)?n=e:n=[e];let i=[],s=async l=>{i.push(l),l==="429"&&(console.log("got 429, so waiting a little bit."),await ie.delayFor(Math.floor(Math.random()*(2e3-1e3+1))+1e3));let c=0;for(let p of i)p===l&&c++;c>2*n.length*o&&o++},a=async l=>{if(!l)throw new Error("request failed permanently");this.log(`Getting ${l} with method ${r.method}`);let c=await fetch(l,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${l} 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(e){this.options.logging&&console.log(e)}};var _r=class{constructor(e,r){this.errorText=e,this.errorData=r}};var el=class{constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=await this.handlerFunction(e.request).catch(o=>{o instanceof _r?r=o:console.log(o)});return r&&(e.error={text:r.errorText,data:r.errorData}),n&&(e.response=n),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var tl=class{constructor(){this.routerMap=new lt.ObjectMap,this.handlerMap=new lt.ObjectMap,this.fireEventInterestMap=new lt.InterestMap(e=>e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e)}addTypedRouter(e){this.routerMap.findSync(n=>n===e)||(this.routerMap.add(e),e.addTypedRouter(this))}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===e),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n}async routeAndAddResponse(e,r=!1){if(e?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(e.method);return n?(e=await n.addResponse(e),e):(console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e)}else return e?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("received weirdly shaped request"),console.log(e),null)}};var rl=class{constructor(e){if(e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=e}async post(e){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,e));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(e),i;return r?i=await r.interestFullfilled:o?i=o:i=e,i}};var Xw=new vo.WebRequest,bo=class{constructor(e,r){typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let n={method:this.method,request:e,response:null,correlation:{id:Yd.uni(),phase:"request"}},o;if(this.urlEndPoint?o=await Xw.postJson(this.urlEndPoint,n,r):o=await this.typedTarget.post(n),o.error){if(console.error(`Got an error ${o.error.text} with data ${JSON.stringify(o.error.data)}`),!o.retry)throw new _r(o.error.text,o.error.data);return null}return o.retry?(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await ie.delayFor(o.retry.waitForMs),await this.fire(e)):o.response}};function Xd(t){return!!(t&&typeof t.then=="function")}function is(t){return t||(t=0),new Promise(function(e){return setTimeout(e,t)})}function Kd(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function wo(){return Math.random().toString(36).substring(2)}var Zd=0,nl=0;function Jt(){var t=new Date().getTime();return t===Zd?(nl++,t*1e3+nl):(Zd=t,nl=0,t*1e3)}var Mt=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var Kw=Jt,e1="native";function t1(t){var e={messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(r){e.messagesCallback&&e.messagesCallback(r.data)},e}function r1(t){t.bc.close(),t.subFns=[]}function n1(t,e){try{return t.bc.postMessage(e,!1),Promise.resolve()}catch(r){return Promise.reject(r)}}function o1(t,e){t.messagesCallback=e}function i1(){if(Mt&&typeof window>"u")return!1;if(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 s1(){return 150}var em={create:t1,close:r1,onMessage:o1,postMessage:n1,canBeUsed:i1,type:e1,averageResponseTime:s1,microSeconds:Kw};var ss=function(){function t(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return t.prototype.has=function(e){return this.set.has(e)},t.prototype.add=function(e){var r=this;this.timeMap.set(e,tm()),this.set.add(e),setTimeout(function(){a1(r)},0)},t.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},t}();function a1(t){for(var e=tm()-t.ttl,r=t.set[Symbol.iterator]();;){var n=r.next().value;if(!n)return;var o=t.timeMap.get(n);if(o<e)t.timeMap.delete(n),t.set.delete(n);else return}}function tm(){return new Date().getTime()}function vn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}var u1=Jt,l1="pubkey.broadcast-channel-0-",Pt="messages",c1="idb";function rm(){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 f1(t){var e=rm(),r=l1+t,n=e.open(r,1);n.onupgradeneeded=function(i){var s=i.target.result;s.createObjectStore(Pt,{keyPath:"id",autoIncrement:!0})};var o=new Promise(function(i,s){n.onerror=function(a){return s(a)},n.onsuccess=function(){i(n.result)}});return o}function p1(t,e,r){var n=new Date().getTime(),o={uuid:e,time:n,data:r},i=t.transaction([Pt],"readwrite");return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(l){return a(l)};var u=i.objectStore(Pt);u.add(o)})}function h1(t,e){var r=t.transaction(Pt).objectStore(Pt),n=[];function o(){try{var i=IDBKeyRange.bound(e+1,1/0);return r.openCursor(i)}catch{return r.openCursor()}}return new Promise(function(i){o().onsuccess=function(s){var a=s.target.result;a?a.value.id<e+1?a.continue(e+1):(n.push(a.value),a.continue()):i(n)}})}function d1(t,e){var r=t.transaction([Pt],"readwrite").objectStore(Pt).delete(e);return new Promise(function(n){r.onsuccess=function(){return n()}})}function m1(t,e){var r=new Date().getTime()-e,n=t.transaction(Pt).objectStore(Pt),o=[];return new Promise(function(i){n.openCursor().onsuccess=function(s){var a=s.target.result;if(a){var u=a.value;if(u.time<r)o.push(u),a.continue();else{i(o);return}}else i(o)}})}function g1(t,e){return m1(t,e).then(function(r){return Promise.all(r.map(function(n){return d1(t,n.id)}))})}function y1(t,e){return e=vn(e),f1(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:wo(),eMIs:new ss(e.idb.ttl*2),writeBlockPromise:Promise.resolve(),messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,e.idb.onclose&&e.idb.onclose()},nm(n),n})}function nm(t){t.closed||om(t).then(function(){return is(t.options.idb.fallbackInterval)}).then(function(){return nm(t)})}function x1(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function om(t){return t.closed||!t.messagesCallback?Promise.resolve():h1(t.db,t.lastCursorId).then(function(e){var r=e.filter(function(n){return!!n}).map(function(n){return n.id>t.lastCursorId&&(t.lastCursorId=n.id),n}).filter(function(n){return x1(n,t)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){t.messagesCallback&&(t.eMIs.add(n.id),t.messagesCallback(n.data))}),Promise.resolve()})}function v1(t){t.closed=!0,t.db.close()}function b1(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return p1(t.db,t.uuid,e)}).then(function(){Kd(0,10)===0&&g1(t.db,t.options.idb.ttl)}),t.writeBlockPromise}function w1(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,om(t)}function S1(){if(Mt)return!1;var t=rm();return!!t}function E1(t){return t.idb.fallbackInterval*2}var im={create:y1,close:v1,onMessage:w1,postMessage:b1,canBeUsed:S1,type:c1,averageResponseTime:E1,microSeconds:u1};var T1=Jt,_1="pubkey.broadcastChannel-",C1="localstorage";function sm(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function am(t){return _1+t}function A1(t,e){return new Promise(function(r){is().then(function(){var n=am(t.channelName),o={token:wo(),time:new Date().getTime(),data:e,uuid:t.uuid},i=JSON.stringify(o);sm().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function I1(t,e){var r=am(t),n=function(i){i.key===r&&e(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function M1(t){window.removeEventListener("storage",t)}function P1(t,e){if(e=vn(e),!um())throw new Error("BroadcastChannel: localstorage cannot be used");var r=wo(),n=new ss(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=I1(t,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 $1(t){M1(t.listener)}function N1(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}function um(){if(Mt)return!1;var t=sm();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function B1(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var lm={create:P1,close:$1,onMessage:N1,postMessage:A1,canBeUsed:um,type:C1,averageResponseTime:B1,microSeconds:T1};var O1=Jt,D1="simulate",ol=new Set;function R1(t){var e={name:t,messagesCallback:null};return ol.add(e),e}function F1(t){ol.delete(t)}function U1(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(ol);n.filter(function(o){return o.name===t.name}).filter(function(o){return o!==t}).filter(function(o){return!!o.messagesCallback}).forEach(function(o){return o.messagesCallback(e)}),r()},5)})}function L1(t,e){t.messagesCallback=e}function k1(){return!0}function j1(){return 5}var cm={create:R1,close:F1,onMessage:L1,postMessage:U1,canBeUsed:k1,type:D1,averageResponseTime:j1,microSeconds:O1};var sl=[em,im,lm];Mt&&(il=fm(),typeof il.canBeUsed=="function"&&sl.push(il));var il;function pm(t){var e=[].concat(t.methods,sl).filter(Boolean);if(t.type){if(t.type==="simulate")return cm;var r=e.find(function(o){return o.type===t.type});if(r)return r;throw new Error("method-type "+t.type+" not found")}!t.webWorkerSupport&&!Mt&&(e=e.filter(function(o){return o.type!=="idb"}));var n=e.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No useable methode found:"+JSON.stringify(sl.map(function(o){return o.type})))}var bn=function(e,r){this.name=e,hm&&(r=hm),this.options=vn(r),this.method=pm(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,q1(this)};bn._pubkey=!0;var hm;bn.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return dm(this,"message",e)},postInternal:function(e){return dm(this,"internal",e)},set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};gm(this,"message",this._onML),t&&typeof t=="function"?(this._onML=r,mm(this,"message",r)):this._onML=null},addEventListener:function(e,r){var n=this.method.microSeconds(),o={time:n,fn:r};mm(this,e,o)},removeEventListener:function(e,r){var n=this._addEL[e].find(function(o){return o.fn===r});gm(this,e,n)},close:function(){var e=this;if(!this.closed){this.closed=!0;var r=this._prepP?this._prepP:Promise.resolve();return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function dm(t,e,r){var n=t.method.microSeconds(),o={time:n,type:e,data:r},i=t._prepP?t._prepP:Promise.resolve();return i.then(function(){var s=t.method.postMessage(t._state,o);return t._uMP.add(s),s.catch().then(function(){return t._uMP.delete(s)}),s})}function q1(t){var e=t.method.create(t.name,t.options);Xd(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}function ym(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function mm(t,e,r){t._addEL[e].push(r),H1(t)}function gm(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),W1(t)}function H1(t){if(!t._iL&&ym(t)){var e=function(o){t._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},r=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,r)}):(t._iL=!0,t.method.onMessage(t._state,e,r))}}function W1(t){if(t._iL&&!ym(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}var al=globalThis.BroadcastChannel;al||(al=bn);var ul=class{constructor(){this.broadcastChannel=new al("dees-comms"),this.typedrouter=new Ze.TypedRouter,this.typedtarget=new Ze.TypedTarget({postMethodWithTypedRouter:async e=>{this.postMessage(e)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async e=>{let r=e.method?e:e.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(e){return new Ze.TypedRequest(this.typedtarget,e)}async postMessage(e){this.broadcastChannel.postMessage(e)}async createTypedHandler(e,r){this.typedrouter.addTypedHandler(new Ze.TypedHandler(e,r))}};var cs={};X(cs,{SmartRouter:()=>pl});var us={};X(us,{compile:()=>G1,match:()=>J1,parse:()=>ll,pathToRegexp:()=>fl,regexpToFunction:()=>vm,tokensToFunction:()=>xm,tokensToRegexp:()=>bm});function V1(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var o="",i=r+1;i<t.length;){var s=t.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){o+=t[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:o}),r=i;continue}if(n==="("){var a=1,u="",i=r+1;if(t[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<t.length;){if(t[i]==="\\"){u+=t[i++]+t[i++];continue}if(t[i]===")"){if(a--,a===0){i++;break}}else if(t[i]==="("&&(a++,t[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));u+=t[i++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:u}),r=i;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function ll(t,e){e===void 0&&(e={});for(var r=V1(t),n=e.prefixes,o=n===void 0?"./":n,i="[^".concat(wn(e.delimiter||"/#?"),"]+?"),s=[],a=0,u=0,l="",c=function(U){if(u<r.length&&r[u].type===U)return r[u++].value},p=function(U){var J=c(U);if(J!==void 0)return J;var F=r[u],D=F.type,te=F.index;throw new TypeError("Unexpected ".concat(D," at ").concat(te,", expected ").concat(U))},h=function(){for(var U="",J;J=c("CHAR")||c("ESCAPED_CHAR");)U+=J;return U};u<r.length;){var y=c("CHAR"),w=c("NAME"),C=c("PATTERN");if(w||C){var B=y||"";o.indexOf(B)===-1&&(l+=B,B=""),l&&(s.push(l),l=""),s.push({name:w||a++,prefix:B,suffix:"",pattern:C||i,modifier:c("MODIFIER")||""});continue}var _=y||c("ESCAPED_CHAR");if(_){l+=_;continue}l&&(s.push(l),l="");var A=c("OPEN");if(A){var B=h(),O=c("NAME")||"",N=c("PATTERN")||"",j=h();p("CLOSE"),s.push({name:O||(N?a++:""),pattern:O&&!N?i:N,prefix:B,suffix:j,modifier:c("MODIFIER")||""});continue}p("END")}return s}function G1(t,e){return xm(ll(t,e),e)}function xm(t,e){e===void 0&&(e={});var r=cl(e),n=e.encode,o=n===void 0?function(u){return u}:n,i=e.validate,s=i===void 0?!0:i,a=t.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var l="",c=0;c<t.length;c++){var p=t[c];if(typeof p=="string"){l+=p;continue}var h=u?u[p.name]:void 0,y=p.modifier==="?"||p.modifier==="*",w=p.modifier==="*"||p.modifier==="+";if(Array.isArray(h)){if(!w)throw new TypeError('Expected "'.concat(p.name,'" to not repeat, but got an array'));if(h.length===0){if(y)continue;throw new TypeError('Expected "'.concat(p.name,'" to not be empty'))}for(var C=0;C<h.length;C++){var B=o(h[C],p);if(s&&!a[c].test(B))throw new TypeError('Expected all "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(B,'"'));l+=p.prefix+B+p.suffix}continue}if(typeof h=="string"||typeof h=="number"){var B=o(String(h),p);if(s&&!a[c].test(B))throw new TypeError('Expected "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(B,'"'));l+=p.prefix+B+p.suffix;continue}if(!y){var _=w?"an array":"a string";throw new TypeError('Expected "'.concat(p.name,'" to be ').concat(_))}}return l}}function J1(t,e){var r=[],n=fl(t,r,e);return vm(n,r,e)}function vm(t,e,r){r===void 0&&(r={});var n=r.decode,o=n===void 0?function(i){return i}:n;return function(i){var s=t.exec(i);if(!s)return!1;for(var a=s[0],u=s.index,l=Object.create(null),c=function(h){if(s[h]===void 0)return"continue";var y=e[h-1];y.modifier==="*"||y.modifier==="+"?l[y.name]=s[h].split(y.prefix+y.suffix).map(function(w){return o(w,y)}):l[y.name]=o(s[h],y)},p=1;p<s.length;p++)c(p);return{path:a,index:u,params:l}}}function wn(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function cl(t){return t&&t.sensitive?"":"i"}function Y1(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(t.source);o;)e.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(t.source);return t}function Q1(t,e,r){var n=t.map(function(o){return fl(o,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),cl(r))}function Z1(t,e,r){return bm(ll(t,r),e,r)}function bm(t,e,r){r===void 0&&(r={});for(var n=r.strict,o=n===void 0?!1:n,i=r.start,s=i===void 0?!0:i,a=r.end,u=a===void 0?!0:a,l=r.encode,c=l===void 0?function(te){return te}:l,p=r.delimiter,h=p===void 0?"/#?":p,y=r.endsWith,w=y===void 0?"":y,C="[".concat(wn(w),"]|$"),B="[".concat(wn(h),"]"),_=s?"^":"",A=0,O=t;A<O.length;A++){var N=O[A];if(typeof N=="string")_+=wn(c(N));else{var j=wn(c(N.prefix)),U=wn(c(N.suffix));if(N.pattern)if(e&&e.push(N),j||U)if(N.modifier==="+"||N.modifier==="*"){var J=N.modifier==="*"?"?":"";_+="(?:".concat(j,"((?:").concat(N.pattern,")(?:").concat(U).concat(j,"(?:").concat(N.pattern,"))*)").concat(U,")").concat(J)}else _+="(?:".concat(j,"(").concat(N.pattern,")").concat(U,")").concat(N.modifier);else N.modifier==="+"||N.modifier==="*"?_+="((?:".concat(N.pattern,")").concat(N.modifier,")"):_+="(".concat(N.pattern,")").concat(N.modifier);else _+="(?:".concat(j).concat(U,")").concat(N.modifier)}}if(u)o||(_+="".concat(B,"?")),_+=r.endsWith?"(?=".concat(C,")"):"$";else{var F=t[t.length-1],D=typeof F=="string"?B.indexOf(F[F.length-1])>-1:F===void 0;o||(_+="(?:".concat(B,"(?=").concat(C,"))?")),D||(_+="(?=".concat(B,"|").concat(C,")"))}return new RegExp(_,cl(r))}function fl(t,e,r){return t instanceof RegExp?Y1(t,e):Array.isArray(t)?Q1(t,e,r):Z1(t,e,r)}var ls=class{constructor(){}getAllAsObject(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}setQueryParam(e,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(e,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(e,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(e),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(e){return this.getAllAsObject()[e]}};var pl=class{constructor(e){this.options={debug:!1},this.queryParams=new ls,this.routes=[],this.options={...this.options,...e},window.addEventListener("popstate",r=>{r.preventDefault(),this._handleRouteState()})}async pushUrl(e="/",r={}){e!==window.location.pathname?window.history.pushState(r,window.document.title,e):window.history.replaceState(r,window.document.title,e),await this._handleRouteState()}on(e,r){this.routes.push({matchFunction:us.match(e),handler:r})}async _handleRouteState(){let e=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(e));for(let n of r){let o=n.matchFunction(e);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}};var Sn={};X(Sn,{Smartstate:()=>dl,StateAction:()=>So,StatePart:()=>Eo});var hs={};X(hs,{sha256FromString:()=>rS});var ps={};X(ps,{Smartenv:()=>hl});var Sm=Be(wm(),1);var hl=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Sm.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var tS=t=>{let e=[],r=new DataView(t);for(let n=0;n<r.byteLength;n+=4){let i=r.getUint32(n).toString(16),s="00000000",a=(s+i).slice(-s.length);e.push(a)}return e.join("")},rS=async t=>{let e=new ps.Smartenv;if(e.isBrowser){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return tS(n)}else if(e.isNode)return await(await e.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(t)};var So=class{constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){this.statePartRef.dispatchAction(this,e)}};var Eo=class{constructor(e,r){this.state=new ye.rxjs.Subject,this.cumulativeDeferred=Y.cumulativeDefer(),this.webStore=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Gt.WebStore(this.webStoreOptions),await this.webStore.init();let e=await this.webStore.get(String(this.name));e&&(this.stateStore=e,this.notifyChange())}}getState(){return this.stateStore}async setState(e){return this.stateStore=e,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),e),this.stateStore}notifyChange(){let e=r=>hs.sha256FromString(me.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&e(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(e){return e||(e=n=>n),this.state.pipe(ye.rxjs.ops.startWith(this.getState()),ye.rxjs.ops.map(n=>{try{return e(n)}catch{}}))}createAction(e){return new So(this,e)}async dispatchAction(e,r){await this.cumulativeDeferred.promise;let n=await e.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(e){let r=Y.defer(),o=this.select(e).subscribe(async s=>{s&&r.resolve(s)}),i=await r.promise;return o.unsubscribe(),i}async stateSetup(e){let r=e(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var dl=class{constructor(){this.statePartMap={}}async getStatePart(e,r,n){if(this.statePartMap[e]){if(r&&(!n||n!=="soft"))throw new Error(`${e} already exists, yet you try to set an initial state again`);return this.statePartMap[e]}else{if(!r)throw new Error(`${e} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(e,r,n)}}async createStatePart(e,r,n){let o=new Eo(e,n==="persistent"?{dbName:"smartstate",storeName:e}:null);await o.init();let i=o.getState();return await o.setState({...r,...i}),this.statePartMap[e]=o,o}};var En={};X(En,{Smarturl:()=>ml});var ml=class t{static createFromUrl(e,r){let n=new URL(e),o={},i=[];n.search&&n.search.replace("?","").split("&").map(l=>{i.push({key:l.split("=")[0],value:l.split("=")[1]})});for(let l of i)o[l.key]=l.value;if(r?.searchParams)for(let l of Object.keys(r.searchParams))o[l]=r.searchParams[l];let s=n.pathname||"";if(Object.keys(o).length>0){s+="?";let l=!0;for(let c of Object.keys(o))l?l=!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 u=new t;return Object.assign(u,a),u}static createFromParsedUrl(e){let r=new t;return Object.assign(r,e),r}constructor(){this.searchParams={}}toString(){let e="";return this.username&&!this.password&&(e=`${this.username}@`),this.username&&this.password&&(e=`${this.username}:${this.password}@`),`${this.protocol}//${e}${this.hostname}:${this.port}${this.path}`}};var _n={};X(_n,{CumulativeDeferred:()=>ms,Deferred:()=>ds,cumulativeDefer:()=>oS,defer:()=>Tn,getFirstTrueOrFalse:()=>lS,map:()=>aS,rejectedPromise:()=>sS,resolvedPromise:()=>iS,timeoutAndContinue:()=>uS,timeoutWrap:()=>Em});var ds=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Tn=()=>new ds;var ms=class{constructor(){this.accumulatedPromises=[],this.deferred=Tn(),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)}},oS=()=>new ms;var iS=t=>Promise.resolve(t),sS=t=>Promise.reject(t),aS=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Em=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),uS=async(t,e=6e4)=>Em(t,e,!1),lS=async t=>{let e=Tn();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var Yt=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 Cn=class t extends Yt{static createCompanyJsonLd(e){let r={"@context":"https://schema.org","@type":"Corporation",name:e.name,alternateName:e.name.replace(" GmbH",""),url:e.contact.website,logo:e.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:e.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return e.contact.facebookUrl&&r.sameAs.push(e.contact.facebookUrl),e.contact.twitterUrl&&r.sameAs.push(e.contact.twitterUrl),new t(r)}static createNewsArticleJsonLd(e){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[e.featuredImageUrl],datePublished:new Date(e.timestamp).toISOString(),dateModified:new Date(e.timestamp).toISOString(),author:{"@type":"Person",name:`${e.author.firstName} ${e.author.surName}`},publisher:{"@type":"Organization",name:e.author.surName,logo:{"@type":"ImageObject",url:e.author.surName}},description:e.author.firstName};return new t(r)}static createProductJsonLd(e,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,operatingSystem:e.os,applicationCategory:e.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new t(n)}constructor(e){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(e),this.elementRef=r}};var je=class t extends Yt{static createNewsArticleOgTags(e){let r=[];return r.push(new t("og:url",e.url)),r.push(new t("og:title",e.title)),r.push(new t("og:description",e.content)),r.push(new t("og:image",e.featuredImageUrl)),r}static createProductOgTags(e){let r=[];return r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",`${e.name} - ${e.slogan}`)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoLink)),r}constructor(e,r){super();let n=document.createElement("meta");n.setAttribute("property",e),n.content=r,this.elementRef=n}};var An=class{set title(e){this.titleStore=e,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(e,r){this.tags=[],this.state="disabled",this.tagManagerRef=e}addTag(e){if(e instanceof Array)for(let r of e)this.addTag(r);else this.tags.push(e),this.state==="enabled"&&e.appendToDom()}async addCompanyInfo(e){this.addTag(Cn.createCompanyJsonLd(e)),this.addTag(new je("og:type","business.business")),this.addTag(new je("og:title",e.name)),this.addTag(new je("og:url",e.contact.website)),this.addTag(new je("og:image",e.contact.logoUrl)),this.addTag(new je("business:contact_data:street_address",`${e.contact.address.streetName} ${e.contact.address.houseNumber}`)),this.addTag(new je("business:contact_data:locality",e.contact.address.postalCode)),this.addTag(new je("business:contact_data:region",e.contact.address.city)),this.addTag(new je("business:contact_data:postal_code",e.contact.address.postalCode)),this.addTag(new je("business:contact_data:country_name",e.contact.address.country))}addNewsArticleInfo(e){this.addTag(Cn.createNewsArticleJsonLd(e)),this.addTag(je.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(Cn.createProductJsonLd(e,r)),this.addTag(je.createProductOgTags(e))}async enable(){this.title&&(document.title=this.title);for(let e of this.tags)e.appendToDom();this.state="enabled"}async disable(){for(let e of this.tags)e.removeFromDom();this.state="disabled"}};var st=class extends Yt{constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var gs=class{constructor(){this.globalLevel=new An(this,"global"),this.baseLevel=new An(this,"base")}async setup(e){switch(this.globalLevel.addTag(new st("google","notranslate")),this.globalLevel.addTag(new st("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new st("twitter:card","summary_large_image")),this.globalLevel.addTag(new st("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new st("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new st("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new st("canonical",e.canonicalDomain)),!0){case(e.ldCompany&&!e.ldProduct):this.baseLevel.addCompanyInfo(e.ldCompany);break;case!!e.ldProduct:this.baseLevel.addProductInfo(e.ldProduct,e.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(e){let r=new An(this,"subpage");return r.title=e.title,e.description&&r.addTag(new st("description",e.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var ys=class{constructor(e){this.tagManager=new gs,this.readyDeferred=_n.defer(),this.readyForSmartssrDeferred=_n.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=e,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(e){e&&(this.options=e),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(e){return await this.tagManager.setSubPageLevel(e)}flashTitle(e){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var To=Be(_m(),1);var xl={ObjectMap:Tt,Stringmap:to,FastMap:mr};var $t={};X($t,{cssForDesktop:()=>mS,cssForNotebook:()=>gS,cssForPhablet:()=>xS,cssForPhone:()=>vS,cssForTablet:()=>yS,desktop:()=>vl,notebook:()=>bl,phablet:()=>Sl,phone:()=>El,tablet:()=>wl});var vl=1600,bl=1240,wl=1024,Sl=600,El=400,mS=t=>H(`
|
|
22
|
+
@container wccToolsViewport (min-width: ${vl}px) {
|
|
23
|
+
${t.cssText}
|
|
24
|
+
}
|
|
25
|
+
@media (min-width: ${vl}px) {
|
|
26
|
+
${t.cssText}
|
|
27
|
+
}
|
|
28
|
+
`),gS=t=>H(`
|
|
29
|
+
@container wccToolsViewport (max-width: ${bl}px) {
|
|
30
|
+
${t.cssText}
|
|
31
|
+
}
|
|
32
|
+
@media (max-width: ${bl}px) {
|
|
33
|
+
${t.cssText}
|
|
34
|
+
}
|
|
35
|
+
`),yS=t=>H(`
|
|
36
|
+
@container wccToolsViewport (max-width: ${wl}px) {
|
|
37
|
+
${t.cssText}
|
|
38
|
+
}
|
|
39
|
+
@media (max-width: ${wl}px) {
|
|
40
|
+
${t.cssText}
|
|
41
|
+
}
|
|
42
|
+
`),xS=t=>H(`
|
|
43
|
+
@container wccToolsViewport (max-width: ${Sl}px) {
|
|
44
|
+
${t.cssText}
|
|
45
|
+
}
|
|
46
|
+
@media (max-width: ${Sl}px) {
|
|
47
|
+
${t.cssText}
|
|
48
|
+
}
|
|
49
|
+
`),vS=t=>H(`
|
|
50
|
+
@container wccToolsViewport (max-width: ${El}px) {
|
|
51
|
+
${t.cssText}
|
|
52
|
+
}
|
|
53
|
+
@media (max-width: ${El}px) {
|
|
54
|
+
${t.cssText}
|
|
55
|
+
}
|
|
56
|
+
`);var vs=class{constructor(e){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new ye.rxjs.ReplaySubject(1),this.domtoolsRef=e,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async updateAllConnectedElements(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000"),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 Tl;(function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Shift=16]="Shift",t[t.Ctrl=17]="Ctrl",t[t.Alt=18]="Alt",t[t.PauseBreak=19]="PauseBreak",t[t.CapsLock=20]="CapsLock",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Zero=48]="Zero",t[t.ClosedParen=48]="ClosedParen",t[t.One=49]="One",t[t.ExclamationMark=49]="ExclamationMark",t[t.Two=50]="Two",t[t.AtSign=50]="AtSign",t[t.Three=51]="Three",t[t.PoundSign=51]="PoundSign",t[t.Hash=51]="Hash",t[t.Four=52]="Four",t[t.DollarSign=52]="DollarSign",t[t.Five=53]="Five",t[t.PercentSign=53]="PercentSign",t[t.Six=54]="Six",t[t.Caret=54]="Caret",t[t.Hat=54]="Hat",t[t.Seven=55]="Seven",t[t.Ampersand=55]="Ampersand",t[t.Eight=56]="Eight",t[t.Star=56]="Star",t[t.Asterik=56]="Asterik",t[t.Nine=57]="Nine",t[t.OpenParen=57]="OpenParen",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.LeftWindowKey=91]="LeftWindowKey",t[t.RightWindowKey=92]="RightWindowKey",t[t.SelectKey=93]="SelectKey",t[t.Numpad0=96]="Numpad0",t[t.Numpad1=97]="Numpad1",t[t.Numpad2=98]="Numpad2",t[t.Numpad3=99]="Numpad3",t[t.Numpad4=100]="Numpad4",t[t.Numpad5=101]="Numpad5",t[t.Numpad6=102]="Numpad6",t[t.Numpad7=103]="Numpad7",t[t.Numpad8=104]="Numpad8",t[t.Numpad9=105]="Numpad9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.DecimalPoint=110]="DecimalPoint",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.SemiColon=186]="SemiColon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.UnderScore=189]="UnderScore",t[t.PlusSign=187]="PlusSign",t[t.ForwardSlash=191]="ForwardSlash",t[t.Tilde=192]="Tilde",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.ClosedBracket=221]="ClosedBracket",t[t.Quote=222]="Quote"})(Tl||(Tl={}));var bs=class{constructor(e){this.domNode=e,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=Tl,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(e){let r=new ye.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){for(let r of e)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of e)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(e){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(e)})}areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){if(!this.mapCombosToHandlers.has(e))this.mapCombosToHandlers.set(e,r);else return this.mapCombosToHandlers.get(e)}};var pe=class t{static async setupDomTools(e={}){let r;if(!globalThis.deesDomTools&&!e.ignoreGlobal){globalThis.deesDomTools=new t(e),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.domReady.resolve())};document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}else e.ignoreGlobal?r=new t(e):r=globalThis.deesDomTools;return await r.domToolsReady.promise,r}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(e){this.elements={headElement:null,bodyElement:null},this.websetup=new ys({metaObject:{title:"loading..."}}),this.smartstate=new Sn.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new cs.SmartRouter({debug:!1}),this.convenience={typedrequest:Ze,smartdelay:ie,smartjson:me,smarturl:En},this.deesComms=new as.DeesComms,this.scroller=new To.default({}),this.themeManager=new vs(this),this.keyboard=new bs(document.body),this.domToolsReady=Y.defer(),this.domReady=Y.defer(),this.globalStylesReady=Y.defer(),this.runOnceTrackerStringMap=new xl.Stringmap,this.runOnceResultMap=new xl.FastMap}async runOnce(e,r){let n=`${e}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(e)){this.runOnceTrackerStringMap.addString(e),this.runOnceTrackerStringMap.addString(n);let o=await r();this.runOnceResultMap.addToMap(e,o),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>this.runOnceResultMap.getByKey(e))}async setGlobalStyles(e){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(e)),this.elements.headElement.appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=Y.defer(),n=document.createElement("script");n.src=e,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(e){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=e,document.head.append(r)}async setWebsiteInfo(e){await this.websetup.setup(e),await this.websetup.readyPromise}};var ws=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?ae``.cssText:"";return ae`
|
|
57
|
+
/* width */
|
|
58
|
+
::-webkit-scrollbar {
|
|
59
|
+
width: 0px;
|
|
60
|
+
}
|
|
61
|
+
body {
|
|
62
|
+
scrollbar-width: none;
|
|
63
|
+
}
|
|
64
|
+
`.cssText})(),Cm=ae`
|
|
65
|
+
/*
|
|
66
|
+
@font-face {
|
|
67
|
+
font-family: 'Material Icons';
|
|
68
|
+
font-style: normal;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
src: url(https://fonts.gstatic.com/s/materialicons/v42/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2)
|
|
71
|
+
format('woff2');
|
|
72
|
+
} */
|
|
73
|
+
|
|
74
|
+
/* global body styles */
|
|
75
|
+
body {
|
|
76
|
+
margin: 0px;
|
|
77
|
+
font-family: 'Roboto', 'Inter', sans-serif;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* scroll bar styles */
|
|
82
|
+
${H(ws)}
|
|
83
|
+
`.cssText;var bS=ae`
|
|
84
|
+
* {
|
|
85
|
+
transition: background 0.1s, color 0.1s;
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host {
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
font-family: 'Roboto', 'Inter', sans-serif;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
${H(ws)}
|
|
95
|
+
`,wS=W`
|
|
96
|
+
<style>
|
|
97
|
+
* {
|
|
98
|
+
transition: background 0.1s, color 0.1s;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host {
|
|
103
|
+
font-family: 'Roboto', 'Inter', sans-serif;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
${ws}
|
|
107
|
+
</style>
|
|
108
|
+
`,SS=async(t,e={})=>{let r=await pe.setupDomTools(e);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(Cm)}),r};var _l={};X(_l,{cssGridColumns:()=>ES});var ES=(t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r};var TS={smartdelay:ie,smartpromise:Y,SweetScroll:To.default,smartstate:Sn,smartrx:ye,smarturl:En,typedrequest:Ze};var Cr={css:ae,unsafeCSS:H,LitElement:Ut,property:Q};var Ss=class{constructor(){this.domtoolsPromise=pe.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(e,r)=>{let n="";for(let o=0;o<e;o++)n+=` calc((100%/${e}) - (${r*(e-1)}px/${e}))`;return Cr.unsafeCSS(n)},this.domtoolsPromise.then(async e=>{e.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await e.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return Ce.staticStyles}cssForDesktop(e){return H($t.cssForDesktop(e))}cssForNotebook(e){return H($t.cssForNotebook(e))}cssForTablet(e){return H($t.cssForTablet(e))}cssForPhablet(e){return H($t.cssForPhablet(e))}cssForPhone(e){return H($t.cssForPhone(e))}bdTheme(e,r){let n,o;pe.getGlobalDomToolsSync()?o=pe.getGlobalDomToolsSync().themeManager.goBrightBoolean?e:r:o=r;let i=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===e);if(i)n=i.cssVarName;else{let s={cssVarName:`--${Am.uni()}`,brightValue:e,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 Cr.unsafeCSS(`var(${n}, ${o})`)}};var Ir={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},We=t=>(...e)=>({_$litDirective$:t,values:e}),Ar=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var _o=class extends Ar{constructor(e){if(super(e),this.et=de,e.type!==Ir.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===de||e==null)return this.ft=void 0,this.et=e;if(e===Ee)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;let r=[e];return r.raw=r,this.ft={_$litType$:this.constructor.resultType,strings:r,values:[]}}};_o.directiveName="unsafeHTML",_o.resultType=1;var _S=We(_o);var De=t=>e=>typeof e=="function"?((r,n)=>(customElements.define(r,n),n))(t,e):((r,n)=>{let{kind:o,elements:i}=n;return{kind:o,elements:i,finisher(s){customElements.define(r,s)}}})(t,e);var Cl,ZO=((Cl=window.HTMLSlotElement)===null||Cl===void 0?void 0:Cl.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);var{I:CS}=yc,Pm=t=>t===null||typeof t!="object"&&typeof t!="function";var $m=t=>t.strings===void 0,Mm=()=>document.createComment(""),Nm=(t,e,r)=>{var n;let o=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=o.insertBefore(Mm(),i),a=o.insertBefore(Mm(),i);r=new CS(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,u=a!==t;if(u){let l;(n=r._$AQ)===null||n===void 0||n.call(r,t),r._$AM=t,r._$AP!==void 0&&(l=t._$AU)!==a._$AU&&r._$AP(l)}if(s!==i||u){let l=r._$AA;for(;l!==s;){let c=l.nextSibling;o.insertBefore(l,i),l=c}}}return r},Bm=(t,e,r=t)=>(t._$AI(e,r),t);var Om=t=>{t._$AR()};var Ao=(t,e)=>{var r,n;let o=t._$AN;if(o===void 0)return!1;for(let i of o)(n=(r=i)._$AO)===null||n===void 0||n.call(r,e,!1),Ao(i,e);return!0},Es=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Dm=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),MS(e)}};function AS(t){this._$AN!==void 0?(Es(this),this._$AM=t,Dm(this)):this._$AM=t}function IS(t,e=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(n))for(let i=r;i<n.length;i++)Ao(n[i],!1),Es(n[i]);else n!=null&&(Ao(n,!1),Es(n));else Ao(this,t)}var MS=t=>{var e,r,n,o;t.type==Ir.CHILD&&((e=(n=t)._$AP)!==null&&e!==void 0||(n._$AP=IS),(r=(o=t)._$AQ)!==null&&r!==void 0||(o._$AQ=AS))},mt=class extends Ar{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),Dm(this),this.isConnected=e._$AU}_$AO(e,r=!0){var n,o;e!==this.isConnected&&(this.isConnected=e,e?(n=this.reconnected)===null||n===void 0||n.call(this):(o=this.disconnected)===null||o===void 0||o.call(this)),r&&(Ao(this,e),Es(this))}setValue(e){if($m(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Rm=async(t,e)=>{for await(let r of t)if(await e(r)===!1)return},In=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},Mn=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var e;(e=this.Y)!==null&&e!==void 0||(this.Y=new Promise(r=>this.Z=r))}resume(){var e;(e=this.Z)===null||e===void 0||e.call(this),this.Y=this.Z=void 0}};var Fm=t=>!Pm(t)&&typeof t.then=="function",Um=1073741823,Al=class extends mt{constructor(){super(...arguments),this._$C_t=Um,this._$Cwt=[],this._$Cq=new In(this),this._$CK=new Mn}render(...e){var r;return(r=e.find(n=>!Fm(n)))!==null&&r!==void 0?r:Ee}update(e,r){let n=this._$Cwt,o=n.length;this._$Cwt=r;let i=this._$Cq,s=this._$CK;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$C_t);a++){let u=r[a];if(!Fm(u))return this._$C_t=a,u;a<o&&u===n[a]||(this._$C_t=Um,o=0,Promise.resolve(u).then(async l=>{for(;s.get();)await s.get();let c=i.deref();if(c!==void 0){let p=c._$Cwt.indexOf(u);p>-1&&p<c._$C_t&&(c._$C_t=p,c.setValue(l))}}))}return Ee}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},PS=We(Al);var Io=class extends mt{constructor(){super(...arguments),this._$Cq=new In(this),this._$CK=new Mn}render(e,r){return Ee}update(e,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CX)return;this._$CX=r;let o=0,{_$Cq:i,_$CK:s}=this;return Rm(r,async a=>{for(;s.get();)await s.get();let u=i.deref();if(u!==void 0){if(u._$CX!==r)return!1;n!==void 0&&(a=n(a,o)),u.commitValue(a,o),o++}return!0}),Ee}commitValue(e,r){this.setValue(e)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},ND=We(Io);var $S=We(class extends Io{constructor(t){if(super(t),t.type!==Ir.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){e===0&&Om(this._$CJ);let r=Nm(this._$CJ);Bm(r,t)}});var Lm=function(t,e,r,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(o<3?s(i):o>3?s(e,r,i):s(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},km=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},ve=class extends Cr.LitElement{constructor(e={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Ne.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.domtoolsPromise=Ne.elementBasic.setup(this,e),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let e=await this.domtoolsPromise;this.themeSubscription=e.themeManager.themeObservable.subscribe(r=>{this.goBright=r}),this.rxSubscriptions.push(this.themeSubscription),this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(e){super.firstUpdated(e),this.elementDomReadyDeferred.resolve()}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let e of this.rxSubscriptions)e.unsubscribe();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};Lm([Cr.property({type:Boolean}),km("design:type",Boolean)],ve.prototype,"goBright",void 0);Lm([Cr.property(),km("design:type",Ne.DomTools)],ve.prototype,"domtools",void 0);var Il=class extends mt{constructor(){super(...arguments),this.sub=null}render(e){return this.observable!==e&&(this.sub?.unsubscribe(),this.observable=e,this.isConnected&&this.subscribe(e)),Ee}subscribe(e){this.sub=e.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},NS=We(Il);var Ml=class extends mt{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(e){return this.promise!==e&&(this.promise=e,this.isConnected&&this.handlePromise(e)),Ee}handlePromise(e){this.hasPromiseSettled=!1,e.then(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},BS=We(Ml);var nR=new Ss;var Hg=Be(qg(),1);var zg={name:"Awesome From Company",type:"company",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"DE12345678",sepaConnection:{bic:"BPOTBEB1",iban:"BE01234567891616"},email:"hello@awesome.company",phone:"+49 421 1234567",fax:"+49 421 1234568"},Vg={name:"Awesome To GmbH",type:"company",customerNumber:"LL-CLIENT-123",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"BE12345678"},Dn={versionInfo:{type:"draft",version:"1.0.0"},accentColor:null,content:{textData:null,timesheetData:null,contractData:{contractDate:Date.now(),id:"someid"},invoiceData:{id:"LL-INV-48765",reverseCharge:!0,dueInDays:30,billedBy:zg,billedTo:Vg,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:null,printResult:null,items:[{name:"Item with 19% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:19,currency:"EUR"},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:7,currency:"EUR"},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:7,currency:"EUR"},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,currency:"EUR"},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,currency:"EUR"}]}},date:Date.now(),type:"invoice",needsCoverSheet:!1,objectActions:[],pdf:null,from:zg,to:Vg,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"};var Gg=1122,Rn=794,Ke=70,Fn=90;var Or=class extends ve{constructor(){super();this.getTotalNet=()=>{let r=0;if(!this.letterData)return r;for(let n of this.letterData.content.invoiceData.items)r+=n.unitNetPrice*n.unitQuantity;return r};this.getTotalGross=()=>{let r=0;if(!this.letterData)return r;for(let n of this.getVatGroups())r+=n.vatAmountSum;return this.getTotalNet()+r};this.getVatGroups=()=>{let r=[];if(!this.letterData)return r;let n=[];for(let o of this.letterData.content.invoiceData.items)n.includes(o.vatPercentage)||n.push(o.vatPercentage);for(let o of n){let i=this.letterData.content.invoiceData.items.filter(a=>a.vatPercentage===o),s=0;for(let a of i)s+=a.unitNetPrice*a.unitQuantity*(o/100);r.push({items:i,vatPercentage:o,vatAmountSum:Math.round(s*100)/100})}return r};pe.setupDomTools()}render(){return W`
|
|
109
|
+
<div class="trimmedContent"></div>
|
|
110
|
+
<div class="repeatedContent"></div>
|
|
111
|
+
<div class="currentContent"></div>
|
|
112
|
+
`}async getContentNodes(){return await this.elementDomReady,{currentContent:this.shadowRoot.querySelector(".currentContent"),trimmedContent:this.shadowRoot.querySelector(".trimmedContent"),repeatedContent:this.shadowRoot.querySelector(".repeatedContent")}}async getContentLength(){return await this.elementDomReady,(await this.getContentNodes()).currentContent.children.length}async trimEndByOne(){await this.elementDomReady,this.shadowRoot.querySelector(".trimmedContent").append((await this.getContentNodes()).currentContent.children.item((await this.getContentNodes()).currentContent.children.length-1))}async trimStartToOffset(r){await this.elementDomReady;let n=(await this.getContentNodes()).currentContent.children.length;for(;(await this.getContentNodes()).currentContent.children.length!==n-r;)(await this.getContentNodes()).trimmedContent.append((await this.getContentNodes()).currentContent.children.item(0)),console.log("hey"+this.shadowRoot.children.length);if((await this.getContentNodes()).currentContent.children.item(0).classList.contains("needsDataHeader")){let o=(await this.getContentNodes()).trimmedContent,i=o.children.length;for(;i>0;){let s=o.children.item(i-1);if(s.classList.contains("dataHeader")){(await this.getContentNodes()).repeatedContent.append(s);break}i--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();Vn(W`
|
|
113
|
+
<style>
|
|
114
|
+
.grid {
|
|
115
|
+
display: grid;
|
|
116
|
+
grid-template-columns: 40px auto 80px 80px 90px 90px;
|
|
117
|
+
}
|
|
118
|
+
.topLine {
|
|
119
|
+
margin-top: 5px;
|
|
120
|
+
background: #e7e7e7;
|
|
121
|
+
font-weight: bold;
|
|
122
|
+
}
|
|
123
|
+
.lineItem {
|
|
124
|
+
font-size: 12px;
|
|
125
|
+
padding: 5px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.invoiceLine {
|
|
129
|
+
border-bottom: 1px dotted #ccc;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.sums {
|
|
133
|
+
margin-top: 5px;
|
|
134
|
+
font-size: 12px;
|
|
135
|
+
padding-left: 50%;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.sums .sumline {
|
|
139
|
+
margin-top: 3px;
|
|
140
|
+
display: grid;
|
|
141
|
+
grid-template-columns: auto 90px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.sums .sumline .label {
|
|
145
|
+
padding: 2px 5px;
|
|
146
|
+
border-right: 1px solid #ccc;
|
|
147
|
+
text-align: right;
|
|
148
|
+
font-weight: bold;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.sums .sumline .value {
|
|
152
|
+
padding: 2px 5px;
|
|
153
|
+
font-weight: bold;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.divider {
|
|
157
|
+
margin-top: 8px;
|
|
158
|
+
border-top: 1px dotted #ccc;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.taxNote {
|
|
162
|
+
font-size: 12px;
|
|
163
|
+
padding: 4px;
|
|
164
|
+
background: #eeeeeb;
|
|
165
|
+
text-align: center;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.infoBox {
|
|
169
|
+
border-radius: 7px;
|
|
170
|
+
border: 1px solid #ddd;
|
|
171
|
+
border-left: 3px solid #c5e1a5;
|
|
172
|
+
padding: 8px;
|
|
173
|
+
margin-top: 16px;
|
|
174
|
+
line-height: 1.4em;
|
|
175
|
+
font-size: 16px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.infoBox .label {
|
|
179
|
+
padding-bottom: 2px;
|
|
180
|
+
font-size: 12px;
|
|
181
|
+
font-weight: bold;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.paymentCode {
|
|
185
|
+
text-align: center;
|
|
186
|
+
border-left: 2px solid #666;
|
|
187
|
+
}
|
|
188
|
+
</style>
|
|
189
|
+
<div>We hereby invoice products and services provided to you by Lossless GmbH:</div>
|
|
190
|
+
<div class="grid topLine dataHeader">
|
|
191
|
+
<div class="lineItem">Item Pos.</div>
|
|
192
|
+
<div class="lineItem">Description</div>
|
|
193
|
+
<div class="lineItem">Quantity</div>
|
|
194
|
+
<div class="lineItem">Unit Type</div>
|
|
195
|
+
<div class="lineItem">Unit Net Price</div>
|
|
196
|
+
<div class="lineItem">Total Net Price</div>
|
|
197
|
+
</div>
|
|
198
|
+
${(()=>{let o=1;return this.letterData?.content.invoiceData?.items?.map(i=>W`
|
|
199
|
+
<div class="grid invoiceLine needsDataHeader">
|
|
200
|
+
<div class="lineItem">${o++}</div>
|
|
201
|
+
<div class="lineItem">${i.name}</div>
|
|
202
|
+
<div class="lineItem">${i.unitQuantity}</div>
|
|
203
|
+
<div class="lineItem">${i.unitType}</div>
|
|
204
|
+
<div class="lineItem">${i.unitNetPrice} ${i.currency}</div>
|
|
205
|
+
<div class="lineItem">
|
|
206
|
+
${i.unitQuantity*i.unitNetPrice} ${i.currency}
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
`)})()}
|
|
210
|
+
<div class="sums">
|
|
211
|
+
<div class="sumline">
|
|
212
|
+
<div class="label">Total net</div>
|
|
213
|
+
<div class="value">${this.getTotalNet()} EUR</div>
|
|
214
|
+
</div>
|
|
215
|
+
${this.getVatGroups().map(o=>{let i="";for(let s of o.items){let a=this.letterData.content.invoiceData.items.indexOf(s);i+=` ${a+1},`}return W`
|
|
216
|
+
<div class="sumline">
|
|
217
|
+
<div class="label">
|
|
218
|
+
Vat ${o.vatPercentage}%<br />
|
|
219
|
+
<span style="font-weight: normal">(on item positions: ${i})</span>
|
|
220
|
+
</div>
|
|
221
|
+
<div class="value">${o.vatAmountSum} EUR</div>
|
|
222
|
+
</div>
|
|
223
|
+
`})}
|
|
224
|
+
<div class="sumline">
|
|
225
|
+
<div class="label">Total gross</div>
|
|
226
|
+
<div class="value">${this.getTotalGross()} EUR</div>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
<div class="divider"></div>
|
|
230
|
+
${this.letterData?.content.invoiceData.reverseCharge?W`
|
|
231
|
+
<div class="taxNote">
|
|
232
|
+
VAT arises on a reverse charge basis and is payable by the customer.
|
|
233
|
+
</div>
|
|
234
|
+
`:""}
|
|
235
|
+
<div class="infoBox">
|
|
236
|
+
<div class="label">Payment Terms:</div>
|
|
237
|
+
Payment is due within 30 days starting from the reception of this invoice. Please use the
|
|
238
|
+
following SEPA details:
|
|
239
|
+
<br /><br />
|
|
240
|
+
Beneficiary: ${this.letterData?.from.name}<br />
|
|
241
|
+
IBAN: ${this.letterData?.from?.sepaConnection?.iban}<br />
|
|
242
|
+
BIC: ${this.letterData?.from?.sepaConnection?.bic}<br />
|
|
243
|
+
Description: ${this.letterData?.content.invoiceData?.id}<br />
|
|
244
|
+
Amount: ${this.getTotalGross()} ${this.letterData?.content.invoiceData.items[0].currency}
|
|
245
|
+
</div>
|
|
246
|
+
${this.letterData?.content?.contractData?.contractDate?W`
|
|
247
|
+
<div class="infoBox">
|
|
248
|
+
<div class="label">Referenced contract:</div>
|
|
249
|
+
This invoice is adhering to agreements made by contract between the parties on
|
|
250
|
+
${Et.ExtendedDate.fromMillis(this.letterData?.content.contractData.contractDate).format("MMMM D, YYYY")}.
|
|
251
|
+
</div>
|
|
252
|
+
`:W``}
|
|
253
|
+
<div class="infoBox paymentCode">
|
|
254
|
+
<div class="label">Sepa Payment Code:</div>
|
|
255
|
+
</div>
|
|
256
|
+
`,r.currentContent);let n=document.createElement("canvas");Hg.toCanvas(n,`BCD
|
|
257
|
+
001
|
|
258
|
+
1
|
|
259
|
+
SCT
|
|
260
|
+
${this.letterData.content.invoiceData.billedBy.sepaConnection.bic}
|
|
261
|
+
${this.letterData.content.invoiceData.billedBy.name}
|
|
262
|
+
${this.letterData.content.invoiceData.billedBy.sepaConnection.iban}
|
|
263
|
+
EUR${this.getTotalGross()}
|
|
264
|
+
CHAR
|
|
265
|
+
${this.letterData.content.invoiceData.id}
|
|
266
|
+
${this.letterData.content.invoiceData.id}
|
|
267
|
+
EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.querySelector(".paymentCode").append(n)}};Or.demo=()=>W`
|
|
268
|
+
<style>
|
|
269
|
+
.demoContainer {
|
|
270
|
+
background: white;
|
|
271
|
+
padding: 50px;
|
|
272
|
+
}
|
|
273
|
+
</style>
|
|
274
|
+
<div class="demoContainer">
|
|
275
|
+
<dedocument-contentinvoice></dedocument-contentinvoice>
|
|
276
|
+
</div>
|
|
277
|
+
`,Or.styles=[Ce.staticStyles,ae`
|
|
278
|
+
:host {
|
|
279
|
+
color: #333;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.trimmedContent {
|
|
283
|
+
display: none;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.repeatedContent {
|
|
287
|
+
}
|
|
288
|
+
`],V([Q({type:Object,reflect:!0})],Or.prototype,"letterData",2),Or=V([De("dedocument-contentinvoice")],Or);var ze=class extends ve{constructor(){super();this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=Dn;this.printMode=!1;pe.setupDomTools()}render(){return W`
|
|
289
|
+
<dedocument-pagecontainer .printMode=${this.printMode}>
|
|
290
|
+
<dedocument-pageheader
|
|
291
|
+
.letterData=${this.letterData}
|
|
292
|
+
.pageNumber="${this.pageNumber}"
|
|
293
|
+
.pageTotalNumber="${this.pageTotalNumber}"
|
|
294
|
+
></dedocument-pageheader>
|
|
295
|
+
${this.pageNumber===1?W`
|
|
296
|
+
<dedocument-letterheader
|
|
297
|
+
.pageNumber="${this.pageNumber}"
|
|
298
|
+
.letterData=${this.letterData}
|
|
299
|
+
.pageTotalNumber="${this.pageTotalNumber}"
|
|
300
|
+
></dedocument-letterheader>
|
|
301
|
+
`:W``}
|
|
302
|
+
<dedocument-pagecontent
|
|
303
|
+
.pageNumber="${this.pageNumber}"
|
|
304
|
+
.pageTotalNumber="${this.pageTotalNumber}"
|
|
305
|
+
.letterData=${this.letterData}
|
|
306
|
+
><slot></slot
|
|
307
|
+
></dedocument-pagecontent>
|
|
308
|
+
<dedocument-pagefooter
|
|
309
|
+
.letterData=${this.letterData}
|
|
310
|
+
.pageNumber="${this.pageNumber}"
|
|
311
|
+
.pageTotalNumber="${this.pageTotalNumber}"
|
|
312
|
+
></dedocument-pagefooter>
|
|
313
|
+
<div class="versionOverlay">
|
|
314
|
+
${this.letterData.versionInfo.type==="draft"?W`
|
|
315
|
+
<div class="topInfo">
|
|
316
|
+
Please note: THIS IS A DRAFT ONLY. NO RIGHTS CAN BE DERIVED FROM THIS.<br>
|
|
317
|
+
-> Revision/Document version: ${this.letterData.versionInfo.version}
|
|
318
|
+
</div>
|
|
319
|
+
<div class="bigDraftText">DRAFT</div>
|
|
320
|
+
`:W``}
|
|
321
|
+
</div>
|
|
322
|
+
</dedocument-pagecontainer>
|
|
323
|
+
`}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}};ze.demo=()=>W` <dedocument-page .format="${"a4"}"></dedocument-page> `,ze.styles=[Ce.staticStyles,ae`
|
|
324
|
+
:host {
|
|
325
|
+
}
|
|
326
|
+
.versionOverlay {
|
|
327
|
+
pointer-events: none;
|
|
328
|
+
position: absolute;
|
|
329
|
+
top: 0px;
|
|
330
|
+
left: 0px;
|
|
331
|
+
right: 0px;
|
|
332
|
+
bottom: 0px;
|
|
333
|
+
font-family: monospace;
|
|
334
|
+
font-size: 16px;
|
|
335
|
+
|
|
336
|
+
z-index: 1000;
|
|
337
|
+
display: flex;
|
|
338
|
+
justify-content: center;
|
|
339
|
+
align-items: center;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.topInfo {
|
|
343
|
+
position: absolute;
|
|
344
|
+
top: 60px;
|
|
345
|
+
left: 40px;
|
|
346
|
+
color: red;
|
|
347
|
+
transform: rotate(-5deg);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.bigDraftText {
|
|
351
|
+
transform: rotate(-45deg);
|
|
352
|
+
font-size: 200px;
|
|
353
|
+
opacity: 0.05;
|
|
354
|
+
}
|
|
355
|
+
`],V([Q({type:String})],ze.prototype,"format",2),V([Q({type:Number})],ze.prototype,"pageNumber",2),V([Q({type:Number})],ze.prototype,"pageTotalNumber",2),V([Q({type:Object})],ze.prototype,"letterData",2),V([Q({type:Boolean,reflect:!0})],ze.prototype,"printMode",2),ze=V([De("dedocument-page")],ze);var at=class extends ve{constructor(){super();this.format="a4";this.viewWidth=Rn;this.printMode=!1;Ne.DomTools.setupDomTools()}render(){return W`
|
|
356
|
+
<style>
|
|
357
|
+
:host {
|
|
358
|
+
transform-origin: top left;
|
|
359
|
+
transform: ${this.viewWidth?H(`scale(${this.viewWidth/Rn}, ${this.viewWidth/Rn})`):H("")};
|
|
360
|
+
}
|
|
361
|
+
</style>
|
|
362
|
+
<div class="scaleport"></div>
|
|
363
|
+
`}async firstUpdated(r){if(this.letterDataUrl){let n=await fetch(this.letterDataUrl);this.letterData=await n.json()}this.renderDocument()}async renderDocument(){let r=await this.domtoolsPromise,n=this.shadowRoot.querySelector(".scaleport"),o=[],i=0,s=!1,a=document.createElement("dedocument-contentinvoice");a.letterData=this.letterData,document.body.appendChild(a),await r.convenience.smartdelay.delayFor(0);let u=0,l,c;for(;!s;){i++;let p=a.cloneNode(!0),h=new ze;if(h.printMode=this.printMode,h.letterData=this.letterData,o.push(h),h.pageNumber=i,h.append(p),h.pageTotalNumber=i,n.append(h),!this.printMode){let w=document.createElement("div");w.classList.add("betweenPagesSpacer"),n.append(w)}await p.elementDomReady,await p.trimStartToOffset(u);let y=await h.checkOverflow();for(c=0;y;)await p.trimEndByOne(),c++,y=await h.checkOverflow();l=await p.getContentLength(),u=u+l,c===0&&(s=!0),console.log(l)}document.body.removeChild(a);for(let p of o)p.pageTotalNumber=i}};at.demo=()=>W`
|
|
364
|
+
<dedocument-dedocument .format="${"a4"}" .letterData=${Dn}></dedocument-dedocument>
|
|
365
|
+
`,at.styles=[Ne.elementBasic.staticStyles,ae`
|
|
366
|
+
:host {
|
|
367
|
+
display: block;
|
|
368
|
+
color: #333;
|
|
369
|
+
padding: 0px;
|
|
370
|
+
position: relative;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.betweenPagesSpacer {
|
|
374
|
+
height: 20px;
|
|
375
|
+
}
|
|
376
|
+
`],V([Q({type:String})],at.prototype,"format",2),V([Q({type:Number})],at.prototype,"viewWidth",2),V([Q({type:Boolean})],at.prototype,"printMode",2),V([Q({type:Object,reflect:!0,converter:t=>typeof t=="string"?me.parseBase64(t):t})],at.prototype,"letterData",2),V([Q({type:String})],at.prototype,"letterDataUrl",2),at=V([De("dedocument-dedocument")],at);var Bt=class extends ve{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;pe.setupDomTools()}render(){return W`
|
|
377
|
+
<div class="date">
|
|
378
|
+
${new Date(this.letterData.date).getDate()}. ${new Date(this.letterData.date).toLocaleString("default",{month:"long"})}
|
|
379
|
+
${new Date(this.letterData.date).getFullYear()}
|
|
380
|
+
</div>
|
|
381
|
+
<div class="address">
|
|
382
|
+
<div class="from">
|
|
383
|
+
${this.letterData.from.name}, ${this.letterData.from.address.streetName}
|
|
384
|
+
${this.letterData.from.address.houseNumber}, ${this.letterData.from.address.postalCode}
|
|
385
|
+
${this.letterData.from.address.city}, ${this.letterData.from.address.country}
|
|
386
|
+
</div>
|
|
387
|
+
<div class="to">
|
|
388
|
+
${this.letterData.to.name}<br />
|
|
389
|
+
${this.letterData.to.address.streetName} ${this.letterData.to.address.houseNumber}<br />
|
|
390
|
+
${this.letterData.to.address.postalCode} ${this.letterData.to.address.city}<br />
|
|
391
|
+
${this.letterData.from.address.country}
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="recepientInfo">
|
|
395
|
+
<div class="label">your customer id:</div>
|
|
396
|
+
${this.letterData.to.customerNumber||"not registered"}
|
|
397
|
+
|
|
398
|
+
<div class="label">your vat id on file:</div>
|
|
399
|
+
${this.letterData.to.vatId||"not provided"}
|
|
400
|
+
</div>
|
|
401
|
+
`}};Bt.demo=()=>W`
|
|
402
|
+
<dedocument-letterheader .format="${"a4"}" .letterData=${Dn}></dedocument-letterheader>
|
|
403
|
+
`,Bt.styles=[Ce.staticStyles,ae`
|
|
404
|
+
:host {
|
|
405
|
+
color: #333;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.recepientInfo {
|
|
409
|
+
position: absolute;
|
|
410
|
+
display: block;
|
|
411
|
+
overflow: hidden;
|
|
412
|
+
top: 200px;
|
|
413
|
+
right: ${H(Ke+"px")};
|
|
414
|
+
width: 200px;
|
|
415
|
+
text-align: right;
|
|
416
|
+
}
|
|
417
|
+
.recepientInfo .label {
|
|
418
|
+
margin-top: 10px;
|
|
419
|
+
margin-bottom: 3px;
|
|
420
|
+
font-size: 10px;
|
|
421
|
+
font-weight: bold;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.date {
|
|
425
|
+
position: absolute;
|
|
426
|
+
top: 180px;
|
|
427
|
+
right: ${H(Ke+"px")};
|
|
428
|
+
text-align: right;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.address {
|
|
432
|
+
position: absolute;
|
|
433
|
+
top: 180px;
|
|
434
|
+
left: ${H(Fn+"px")};
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.address .from {
|
|
438
|
+
font-size: 10px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.address .to {
|
|
442
|
+
margin-top: 10px;
|
|
443
|
+
}
|
|
444
|
+
`],V([Q({type:Object,reflect:!0})],Bt.prototype,"letterData",2),V([Q({type:Number,reflect:!0})],Bt.prototype,"pageNumber",2),V([Q({type:Number,reflect:!0})],Bt.prototype,"pageTotalNumber",2),Bt=V([De("dedocument-letterheader")],Bt);var er=class extends ve{constructor(){super();this.format="a4";this.printMode=!1;pe.setupDomTools()}render(){return W`
|
|
445
|
+
<style>
|
|
446
|
+
:host {
|
|
447
|
+
box-shadow: ${this.printMode?"none":"0px 0px 10px rgba(0,0,0,0.3)"};
|
|
448
|
+
}
|
|
449
|
+
</style>
|
|
450
|
+
<slot></slot>
|
|
451
|
+
`}};er.demo=()=>W`
|
|
452
|
+
<dedocument-pagecontainer .format="${"a4"}"></dedocument-pagecontainer>
|
|
453
|
+
`,er.styles=[Ce.staticStyles,ae`
|
|
454
|
+
:host {
|
|
455
|
+
display: block;
|
|
456
|
+
background: white;
|
|
457
|
+
color: #333;
|
|
458
|
+
padding: 0px;
|
|
459
|
+
width: ${H(Rn+"px")};
|
|
460
|
+
height: ${H(Gg+"px")};
|
|
461
|
+
position: relative;
|
|
462
|
+
border-radius: 3px;
|
|
463
|
+
overflow: hidden;
|
|
464
|
+
}
|
|
465
|
+
`],V([Q({type:String})],er.prototype,"format",2),V([Q({type:Boolean})],er.prototype,"printMode",2),er=V([De("dedocument-pagecontainer")],er);var Ot=class extends ve{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;pe.setupDomTools()}render(){return W`
|
|
466
|
+
<style>
|
|
467
|
+
.content {
|
|
468
|
+
top: ${this.pageNumber===1?H("450px"):H("200px")};
|
|
469
|
+
}
|
|
470
|
+
</style>
|
|
471
|
+
<div class="content">
|
|
472
|
+
${this.pageNumber===1?W`<div class="subject">${this.letterData.subject}</div>`:W`
|
|
473
|
+
<div class="subjectRepeated">
|
|
474
|
+
${this.letterData.subject} (Page ${this.pageNumber})
|
|
475
|
+
</div>
|
|
476
|
+
`}
|
|
477
|
+
<slot></slot>
|
|
478
|
+
${this.pageTotalNumber!==this.pageNumber?W`<div class="continuesOnNextPage">Continues on page ${this.pageNumber+1}</div>`:W`<div class="finalPage">This is the final page of this document.</div>`}
|
|
479
|
+
</div>
|
|
480
|
+
`}firstUpdated(r){super.firstUpdated(r),this.checkOverflow()}async checkOverflow(){await this.elementDomReady;let r=this.shadowRoot.querySelector(".content");return r.scrollHeight>r.clientHeight?(console.log("overflows"),!0):(console.log("does not overflow!"),!1)}};Ot.demo=()=>W`
|
|
481
|
+
<dedocument-pagecontent .format="${"a4"}"></dedocument-pagecontent>
|
|
482
|
+
`,Ot.styles=[Ce.staticStyles,ae`
|
|
483
|
+
:host {
|
|
484
|
+
color: #333;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.content {
|
|
488
|
+
position: absolute;
|
|
489
|
+
|
|
490
|
+
left: ${H(Fn+"px")};
|
|
491
|
+
right: ${H(Ke+"px")};
|
|
492
|
+
bottom: 170px;
|
|
493
|
+
overflow: visible;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.content .subject {
|
|
497
|
+
font-size: 18px;
|
|
498
|
+
font-weight: bold;
|
|
499
|
+
margin-bottom: 20px;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.content .text {
|
|
503
|
+
text-align: left;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.subjectRepeated {
|
|
507
|
+
position: relative;
|
|
508
|
+
text-align: center;
|
|
509
|
+
background: #eeeeee;
|
|
510
|
+
color: #999;
|
|
511
|
+
border-radius: 50px;
|
|
512
|
+
padding: 5px 10px;
|
|
513
|
+
margin: auto;
|
|
514
|
+
margin-bottom: 10px;
|
|
515
|
+
font-size: 10px;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.continuesOnNextPage {
|
|
519
|
+
display: inline-block;
|
|
520
|
+
background: #eeeeee;
|
|
521
|
+
color: #999;
|
|
522
|
+
border-radius: 50px;
|
|
523
|
+
padding: 5px 10px;
|
|
524
|
+
margin-top: 8px;
|
|
525
|
+
font-size: 10px;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.finalPage {
|
|
529
|
+
display: inline-block;
|
|
530
|
+
background: #29b000;
|
|
531
|
+
color: #fff;
|
|
532
|
+
border-radius: 50px;
|
|
533
|
+
padding: 5px 10px;
|
|
534
|
+
margin-top: 8px;
|
|
535
|
+
font-size: 10px;
|
|
536
|
+
}
|
|
537
|
+
`],V([Q({type:Number})],Ot.prototype,"letterData",2),V([Q({type:Number})],Ot.prototype,"pageNumber",2),V([Q({type:Number})],Ot.prototype,"pageTotalNumber",2),Ot=V([De("dedocument-pagecontent")],Ot);var Dt=class extends ve{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;pe.setupDomTools()}render(){return W`
|
|
538
|
+
<div class="bottomstripe">
|
|
539
|
+
<div>
|
|
540
|
+
<strong>Address:</strong><br />
|
|
541
|
+
${this.letterData.from.name}<br />
|
|
542
|
+
${this.letterData.from.address.streetName} ${this.letterData.from.address.houseNumber}<br />
|
|
543
|
+
${this.letterData.from.address.postalCode} ${this.letterData.from.address.city}<br />
|
|
544
|
+
${this.letterData.from.address.country}
|
|
545
|
+
</div>
|
|
546
|
+
<div>
|
|
547
|
+
<strong>Registration Info:</strong><br />
|
|
548
|
+
Amtsgericht Bremen<br />
|
|
549
|
+
<i>reg-#:</i> HRB 35230 HB<br />
|
|
550
|
+
<i>vat-id:</i> ${this.letterData.from.vatId}
|
|
551
|
+
</div>
|
|
552
|
+
<div>
|
|
553
|
+
<strong>Contact Info:</strong><br />
|
|
554
|
+
<i>email:</i> ${this.letterData.from.email}<br />
|
|
555
|
+
<i>phone:</i> ${this.letterData.from.phone}<br />
|
|
556
|
+
<i>fax:</i> ${this.letterData.from.fax}
|
|
557
|
+
</div>
|
|
558
|
+
<div>
|
|
559
|
+
<strong>Bank Connection:</strong><br />
|
|
560
|
+
<i>beneficiary:</i> ${this.letterData?.from?.name}<br />
|
|
561
|
+
<i>institution:</i> ${this.letterData?.from?.sepaConnection?.institution}<br />
|
|
562
|
+
<i>iban:</i> ${this.letterData?.from?.sepaConnection?.iban}<br />
|
|
563
|
+
<i>bic:</i> ${this.letterData?.from?.sepaConnection?.bic}<br />
|
|
564
|
+
</div>
|
|
565
|
+
<div class="documentTitle">Subject: <b>${this.letterData?.subject}</b>${(()=>{let r=W`/ Document-UID: <b>${W`<a href="https://uid.signature.digital/">https://uid.signature.digital/</a>`}</b>`;return""})()}</div>
|
|
566
|
+
<div class="pageNumber">page ${this.pageNumber} of ${this.pageTotalNumber}</div>
|
|
567
|
+
</div>
|
|
568
|
+
`}};Dt.demo=()=>W`
|
|
569
|
+
<dedocument-pagefooter .format="${"a4"}"></dedocument-pagefooter>
|
|
570
|
+
`,Dt.styles=[Ce.staticStyles,ae`
|
|
571
|
+
:host {
|
|
572
|
+
color: #333;
|
|
573
|
+
}
|
|
574
|
+
.bottomstripe {
|
|
575
|
+
position: absolute;
|
|
576
|
+
display: grid;
|
|
577
|
+
font-size: 11px;
|
|
578
|
+
overflow: visible;
|
|
579
|
+
bottom: 0px;
|
|
580
|
+
left: 0px;
|
|
581
|
+
right: 0px;
|
|
582
|
+
height: 130px;
|
|
583
|
+
content: '';
|
|
584
|
+
padding: 30px ${H(Ke+"px")} 10px ${H(Fn+"px")};
|
|
585
|
+
grid-template-columns: calc(100% / 4) calc(100% / 4) calc(100% / 4) calc(100% / 4);
|
|
586
|
+
grid-gap: 5px;
|
|
587
|
+
border-top: 2px solid #e4002b;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.bottomstripe .pageNumber {
|
|
591
|
+
position: absolute;
|
|
592
|
+
top: 0px;
|
|
593
|
+
right: ${H(Ke+"px")};
|
|
594
|
+
background: #e4002b;
|
|
595
|
+
padding: 3px;
|
|
596
|
+
font-size: 9px;
|
|
597
|
+
color: #fff;
|
|
598
|
+
border-bottom-left-radius: 3px;
|
|
599
|
+
border-bottom-right-radius: 3px;
|
|
600
|
+
}
|
|
601
|
+
.bottomstripe .documentTitle {
|
|
602
|
+
position: absolute;
|
|
603
|
+
top: -18px;
|
|
604
|
+
right: ${H(Ke+"px")};
|
|
605
|
+
background: #dddddd;
|
|
606
|
+
padding: 3px;
|
|
607
|
+
font-size: 9px;
|
|
608
|
+
color: #333;
|
|
609
|
+
border-top-left-radius: 3px;
|
|
610
|
+
border-top-right-radius: 3px;
|
|
611
|
+
}
|
|
612
|
+
`],V([Q({type:Object})],Dt.prototype,"letterData",2),V([Q({type:Number})],Dt.prototype,"pageNumber",2),V([Q({type:Number})],Dt.prototype,"pageTotalNumber",2),Dt=V([De("dedocument-pagefooter")],Dt);var Rt=class extends ve{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;pe.setupDomTools()}render(){return W`
|
|
613
|
+
<div class="topstripe">
|
|
614
|
+
<img src="https://assetbroker.lossless.one/brandfiles/lossless/svg-minimal-bright.svg" />
|
|
615
|
+
</div>
|
|
616
|
+
<div class="topstripe2">${this.letterData?.from?.description||"[no letterData.from.description set]"}</div>
|
|
617
|
+
`}};Rt.demo=()=>W`
|
|
618
|
+
<dedocument-pageheader .format="${"a4"}"></dedocument-pageheader>
|
|
619
|
+
`,Rt.styles=[Ce.staticStyles,ae`
|
|
620
|
+
:host {
|
|
621
|
+
color: #333;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.topstripe {
|
|
625
|
+
position: absolute;
|
|
626
|
+
overflow: hidden;
|
|
627
|
+
top: 0px;
|
|
628
|
+
left: 0px;
|
|
629
|
+
right: 0px;
|
|
630
|
+
height: 130px;
|
|
631
|
+
color: #333;
|
|
632
|
+
text-align: center;
|
|
633
|
+
border-bottom: 2px solid #00000020;
|
|
634
|
+
}
|
|
635
|
+
.topstripe2 {
|
|
636
|
+
position: absolute;
|
|
637
|
+
overflow: hidden;
|
|
638
|
+
top: 130px;
|
|
639
|
+
left: auto;
|
|
640
|
+
right: ${H(Ke+"px")};
|
|
641
|
+
height: 20px;
|
|
642
|
+
line-height: 20px;
|
|
643
|
+
color: #333;
|
|
644
|
+
font-size: 10px;
|
|
645
|
+
}
|
|
646
|
+
.topstripe img {
|
|
647
|
+
filter: invert(1);
|
|
648
|
+
position: absolute;
|
|
649
|
+
bottom: 10px;
|
|
650
|
+
height: 25px;
|
|
651
|
+
left: auto;
|
|
652
|
+
right: ${H(Ke+"px")};
|
|
653
|
+
}
|
|
654
|
+
`],V([Q({type:Object})],Rt.prototype,"letterData",2),V([Q({type:Number})],Rt.prototype,"pageNumber",2),V([Q({type:Number})],Rt.prototype,"pageTotalNumber",2),Rt=V([De("dedocument-pageheader")],Rt);export{Or as DeContentInvoice,at as DeDocument,Bt as DeLetterHeader,ze as DePage,er as DePageContainer,Ot as DePageContent,Dt as DePageFooter,Rt as DePageHeader};
|
|
655
|
+
/*! Bundled license information:
|
|
656
|
+
|
|
657
|
+
ieee754/index.js:
|
|
658
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
659
|
+
|
|
660
|
+
buffer/index.js:
|
|
661
|
+
(*!
|
|
662
|
+
* The buffer module from node.js, for the browser.
|
|
663
|
+
*
|
|
664
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
665
|
+
* @license MIT
|
|
666
|
+
*)
|
|
667
|
+
|
|
668
|
+
punycode/punycode.js:
|
|
669
|
+
(*! https://mths.be/punycode v1.4.1 by @mathias *)
|
|
670
|
+
|
|
671
|
+
is-number/index.js:
|
|
672
|
+
(*!
|
|
673
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
674
|
+
*
|
|
675
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
676
|
+
* Released under the MIT License.
|
|
677
|
+
*)
|
|
678
|
+
|
|
679
|
+
randomatic/index.js:
|
|
680
|
+
(*!
|
|
681
|
+
* randomatic <https://github.com/jonschlinkert/randomatic>
|
|
682
|
+
*
|
|
683
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
684
|
+
* Released under the MIT License.
|
|
685
|
+
*)
|
|
686
|
+
|
|
687
|
+
sweet-scroll/sweet-scroll.js:
|
|
688
|
+
(*! @preserve sweet-scroll v4.0.0 - tsuyoshiwada | MIT License *)
|
|
689
|
+
(*! *****************************************************************************
|
|
690
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
691
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
692
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
693
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
694
|
+
|
|
695
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
696
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
697
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
698
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
699
|
+
|
|
700
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
701
|
+
and limitations under the License.
|
|
702
|
+
***************************************************************************** *)
|
|
703
|
+
|
|
704
|
+
@lit/reactive-element/css-tag.js:
|
|
705
|
+
(**
|
|
706
|
+
* @license
|
|
707
|
+
* Copyright 2019 Google LLC
|
|
708
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
709
|
+
*)
|
|
710
|
+
|
|
711
|
+
@lit/reactive-element/reactive-element.js:
|
|
712
|
+
(**
|
|
713
|
+
* @license
|
|
714
|
+
* Copyright 2017 Google LLC
|
|
715
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
716
|
+
*)
|
|
717
|
+
|
|
718
|
+
lit-html/lit-html.js:
|
|
719
|
+
(**
|
|
720
|
+
* @license
|
|
721
|
+
* Copyright 2017 Google LLC
|
|
722
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
723
|
+
*)
|
|
724
|
+
|
|
725
|
+
lit-element/lit-element.js:
|
|
726
|
+
(**
|
|
727
|
+
* @license
|
|
728
|
+
* Copyright 2017 Google LLC
|
|
729
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
730
|
+
*)
|
|
731
|
+
|
|
732
|
+
lit-html/is-server.js:
|
|
733
|
+
(**
|
|
734
|
+
* @license
|
|
735
|
+
* Copyright 2022 Google LLC
|
|
736
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
737
|
+
*)
|
|
738
|
+
|
|
739
|
+
@lit/reactive-element/decorators/property.js:
|
|
740
|
+
(**
|
|
741
|
+
* @license
|
|
742
|
+
* Copyright 2017 Google LLC
|
|
743
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
744
|
+
*)
|
|
745
|
+
|
|
746
|
+
lit-html/directive.js:
|
|
747
|
+
(**
|
|
748
|
+
* @license
|
|
749
|
+
* Copyright 2017 Google LLC
|
|
750
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
751
|
+
*)
|
|
752
|
+
|
|
753
|
+
lit-html/directives/unsafe-html.js:
|
|
754
|
+
(**
|
|
755
|
+
* @license
|
|
756
|
+
* Copyright 2017 Google LLC
|
|
757
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
758
|
+
*)
|
|
759
|
+
|
|
760
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
761
|
+
(**
|
|
762
|
+
* @license
|
|
763
|
+
* Copyright 2017 Google LLC
|
|
764
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
765
|
+
*)
|
|
766
|
+
|
|
767
|
+
@lit/reactive-element/decorators/state.js:
|
|
768
|
+
(**
|
|
769
|
+
* @license
|
|
770
|
+
* Copyright 2017 Google LLC
|
|
771
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
772
|
+
*)
|
|
773
|
+
|
|
774
|
+
@lit/reactive-element/decorators/base.js:
|
|
775
|
+
(**
|
|
776
|
+
* @license
|
|
777
|
+
* Copyright 2017 Google LLC
|
|
778
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
779
|
+
*)
|
|
780
|
+
|
|
781
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
782
|
+
(**
|
|
783
|
+
* @license
|
|
784
|
+
* Copyright 2017 Google LLC
|
|
785
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
786
|
+
*)
|
|
787
|
+
|
|
788
|
+
@lit/reactive-element/decorators/query.js:
|
|
789
|
+
(**
|
|
790
|
+
* @license
|
|
791
|
+
* Copyright 2017 Google LLC
|
|
792
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
793
|
+
*)
|
|
794
|
+
|
|
795
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
796
|
+
(**
|
|
797
|
+
* @license
|
|
798
|
+
* Copyright 2017 Google LLC
|
|
799
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
800
|
+
*)
|
|
801
|
+
|
|
802
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
803
|
+
(**
|
|
804
|
+
* @license
|
|
805
|
+
* Copyright 2017 Google LLC
|
|
806
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
807
|
+
*)
|
|
808
|
+
|
|
809
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
810
|
+
(**
|
|
811
|
+
* @license
|
|
812
|
+
* Copyright 2021 Google LLC
|
|
813
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
814
|
+
*)
|
|
815
|
+
|
|
816
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
817
|
+
(**
|
|
818
|
+
* @license
|
|
819
|
+
* Copyright 2017 Google LLC
|
|
820
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
821
|
+
*)
|
|
822
|
+
|
|
823
|
+
lit-html/directive-helpers.js:
|
|
824
|
+
(**
|
|
825
|
+
* @license
|
|
826
|
+
* Copyright 2020 Google LLC
|
|
827
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
828
|
+
*)
|
|
829
|
+
|
|
830
|
+
lit-html/async-directive.js:
|
|
831
|
+
(**
|
|
832
|
+
* @license
|
|
833
|
+
* Copyright 2017 Google LLC
|
|
834
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
835
|
+
*)
|
|
836
|
+
|
|
837
|
+
lit-html/directives/private-async-helpers.js:
|
|
838
|
+
(**
|
|
839
|
+
* @license
|
|
840
|
+
* Copyright 2021 Google LLC
|
|
841
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
842
|
+
*)
|
|
843
|
+
|
|
844
|
+
lit-html/directives/until.js:
|
|
845
|
+
(**
|
|
846
|
+
* @license
|
|
847
|
+
* Copyright 2017 Google LLC
|
|
848
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
849
|
+
*)
|
|
850
|
+
|
|
851
|
+
lit-html/directives/async-replace.js:
|
|
852
|
+
(**
|
|
853
|
+
* @license
|
|
854
|
+
* Copyright 2017 Google LLC
|
|
855
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
856
|
+
*)
|
|
857
|
+
|
|
858
|
+
lit-html/directives/async-append.js:
|
|
859
|
+
(**
|
|
860
|
+
* @license
|
|
861
|
+
* Copyright 2017 Google LLC
|
|
862
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
863
|
+
*)
|
|
864
|
+
*/
|
|
865
|
+
//# sourceMappingURL=bundle.js.map
|