diff --git a/assets/D2Renderer.worker-533100e6.js b/assets/D2Renderer.worker-57d004c7.js similarity index 77% rename from assets/D2Renderer.worker-533100e6.js rename to assets/D2Renderer.worker-57d004c7.js index ed539850..cd0ca012 100644 --- a/assets/D2Renderer.worker-533100e6.js +++ b/assets/D2Renderer.worker-57d004c7.js @@ -25,4 +25,4 @@ function print() { __p += __j.call(arguments, '') } `:`; `)+M+`return __p }`;var J=Hc(function(){return fn(h,N+"return "+M).apply(i,v)});if(J.source=M,cf(J))throw J;return J}function Ry(n){return an(n).toLowerCase()}function Oy(n){return an(n).toUpperCase()}function Iy(n,e,r){if(n=an(n),n&&(r||e===i))return Us(n);if(!n||!(e=Kn(e)))return n;var o=le(n),a=le(e),h=Ks(o,a),v=zs(o,a)+1;return Ve(o,h,v).join("")}function Fy(n,e,r){if(n=an(n),n&&(r||e===i))return n.slice(0,Vs(n)+1);if(!n||!(e=Kn(e)))return n;var o=le(n),a=zs(o,le(e))+1;return Ve(o,0,a).join("")}function Cy(n,e,r){if(n=an(n),n&&(r||e===i))return n.replace(so,"");if(!n||!(e=Kn(e)))return n;var o=le(n),a=Ks(o,le(e));return Ve(o,a).join("")}function By(n,e){var r=de,o=Ee;if(dn(e)){var a="separator"in e?e.separator:a;r="length"in e?Z(e.length):r,o="omission"in e?Kn(e.omission):o}n=an(n);var h=n.length;if(Ht(n)){var v=le(n);h=v.length}if(r>=h)return n;var _=r-Dt(o);if(_<1)return o;var x=v?Ve(v,0,_).join(""):n.slice(0,_);if(a===i)return x+o;if(v&&(_+=x.length-_),hf(a)){if(n.slice(_).search(a)){var O,I=x;for(a.global||(a=Oo(a.source,an(ps.exec(a))+"g")),a.lastIndex=0;O=a.exec(I);)var M=O.index;x=x.slice(0,M===i?_:M)}}else if(n.indexOf(Kn(a),_)!=_){var D=x.lastIndexOf(a);D>-1&&(x=x.slice(0,D))}return x+o}function Ty(n){return n=an(n),n&&Xg.test(n)?n.replace(ls,f0):n}var My=Wt(function(n,e,r){return n+(r?" ":"")+e.toUpperCase()}),df=Dl("toUpperCase");function Pc(n,e,r){return n=an(n),e=r?i:e,e===i?t0(n)?l0(n):zd(n):n.match(e)||[]}var Hc=Q(function(n,e){try{return Wn(n,i,e)}catch(r){return cf(r)?r:new k(r)}}),Ly=Be(function(n,e){return jn(e,function(r){r=be(r),Fe(n,r,sf(n[r],n))}),n});function Py(n){var e=n==null?0:n.length,r=X();return n=e?gn(n,function(o){if(typeof o[1]!="function")throw new ne(p);return[r(o[0]),o[1]]}):[],Q(function(o){for(var a=-1;++aGn)return[];var r=me,o=Tn(n,me);e=X(e),n-=me;for(var a=So(o,e);++r0||e<0)?new un(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),e!==i&&(e=Z(e),r=e<0?r.dropRight(-e):r.take(e-n)),r)},un.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},un.prototype.toArray=function(){return this.take(me)},_e(un.prototype,function(n,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),a=l[o?"take"+(e=="last"?"Right":""):e],h=o||/^find/.test(e);a&&(l.prototype[e]=function(){var v=this.__wrapped__,_=o?[1]:arguments,x=v instanceof un,O=_[0],I=x||V(v),M=function(rn){var on=a.apply(l,Xe([rn],_));return o&&D?on[0]:on};I&&r&&typeof O=="function"&&O.length!=1&&(x=I=!1);var D=this.__chain__,N=!!this.__actions__.length,W=h&&!D,J=x&&!N;if(!h&&I){v=J?v:new un(this);var U=n.apply(v,_);return U.__actions__.push({func:Di,args:[M],thisArg:i}),new ee(U,D)}return W&&J?n.apply(this,_):(U=this.thru(M),W?o?U.value()[0]:U.value():U)})}),jn(["pop","push","shift","sort","splice","unshift"],function(n){var e=si[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",o=/^(?:pop|shift)$/.test(n);l.prototype[n]=function(){var a=arguments;if(o&&!this.__chain__){var h=this.value();return e.apply(V(h)?h:[],a)}return this[r](function(v){return e.apply(V(v)?v:[],a)})}}),_e(un.prototype,function(n,e){var r=l[e];if(r){var o=r.name+"";sn.call($t,o)||($t[o]=[]),$t[o].push({name:e,func:r})}}),$t[Ci(i,B).name]=[{name:"wrapper",func:i}],un.prototype.clone=T0,un.prototype.reverse=M0,un.prototype.value=L0,l.prototype.at=sm,l.prototype.chain=lm,l.prototype.commit=cm,l.prototype.next=hm,l.prototype.plant=gm,l.prototype.reverse=dm,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=vm,l.prototype.first=l.prototype.head,_r&&(l.prototype[_r]=pm),l},qt=c0();lt?((lt.exports=qt)._=qt,vo._=qt):Fn._=qt}).call(cn)}(Mr,Mr.exports);var _n=Mr.exports,Wc=function(){},Uc=Wc(),Qe=function(t){return t!==Uc&&t!==null},Kc=Qe,zc=Array.prototype.forEach,kc=Object.create,Vc=function(t,u){var i;for(i in t)u[i]=t[i]},Af=function(t){var u=kc(null);return zc.call(arguments,function(i){Kc(i)&&Vc(Object(i),u)}),u},Zc=function(){var t=Math.sign;return typeof t!="function"?!1:t(10)===1&&t(-20)===-1},Ki,Sf;function Jc(){return Sf||(Sf=1,Ki=function(t){return t=Number(t),isNaN(t)||t===0?t:t>0?1:-1}),Ki}var Qc=Zc()?Math.sign:Jc(),jc=Qc,nh=Math.abs,eh=Math.floor,th=function(t){return isNaN(t)?0:(t=Number(t),t===0||!isFinite(t)?t:jc(t)*eh(nh(t)))},rh=th,ih=Math.max,je=function(t){return ih(0,rh(t))},uh=je,Ef=function(t,u,i){var f;return isNaN(t)?(f=u,f>=0?i&&f?f-1:f:1):t===!1?!1:uh(t)},He=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},oh=Qe,yt=function(t){if(!oh(t))throw new TypeError("Cannot use null or undefined");return t},fh=He,ah=yt,sh=Function.prototype.bind,Rf=Function.prototype.call,lh=Object.keys,ch=Object.prototype.propertyIsEnumerable,hh=function(t,u){return function(i,f){var s,c=arguments[2],p=arguments[3];return i=Object(ah(i)),fh(f),s=lh(i),p&&s.sort(typeof p=="function"?sh.call(p,i):void 0),typeof t!="function"&&(t=s[t]),Rf.call(t,s,function(g,m){return ch.call(i,g)?Rf.call(f,c,i[g],g,i,m):u})}},Lr=hh("forEach"),nt={},Of={exports:{}},ph=function(){var t=Object.assign,u;return typeof t!="function"?!1:(u={foo:"raz"},t(u,{bar:"dwa"},{trzy:"trzy"}),u.foo+u.bar+u.trzy==="razdwatrzy")},zi,If;function gh(){return If||(If=1,zi=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),zi}var ki,Ff;function dh(){if(Ff)return ki;Ff=1;var t=Qe,u=Object.keys;return ki=function(i){return u(t(i)?Object(i):i)},ki}var Vi,Cf;function vh(){return Cf||(Cf=1,Vi=gh()()?Object.keys:dh()),Vi}var Zi,Bf;function mh(){if(Bf)return Zi;Bf=1;var t=vh(),u=yt,i=Math.max;return Zi=function(f,s){var c,p,g=i(arguments.length,2),m;for(f=Object(u(f)),m=function(d){try{f[d]=s[d]}catch(y){c||(c=y)}},p=1;p-1},eu}var Hh=Lh()?String.prototype.contains:Ph(),Pr=Yf,Wf=Mh,Uf=Tf,Kf=Af,kt=Hh,Dh=$f.exports=function(t,u){var i,f,s,c,p;return arguments.length<2||typeof t!="string"?(c=u,u=t,t=null):c=arguments[2],Pr(t)?(i=kt.call(t,"c"),f=kt.call(t,"e"),s=kt.call(t,"w")):(i=s=!0,f=!1),p={value:u,configurable:i,enumerable:f,writable:s},c?Uf(Kf(c),p):p};Dh.gs=function(t,u,i){var f,s,c,p;return typeof t!="string"?(c=i,i=u,u=t,t=null):c=arguments[3],Pr(u)?Wf(u)?Pr(i)?Wf(i)||(c=i,i=void 0):i=void 0:(c=u,u=i=void 0):u=void 0,Pr(t)?(f=kt.call(t,"c"),s=kt.call(t,"e")):(f=!0,s=!1),p={get:u,set:i,configurable:f,enumerable:s},c?Uf(Kf(c),p):p};var et=$f.exports,tu={exports:{}};(function(t,u){var i=et,f=He,s=Function.prototype.apply,c=Function.prototype.call,p=Object.create,g=Object.defineProperty,m=Object.defineProperties,d=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0},w,C,F,P,q,E,B;w=function(T,S){var L;return f(S),d.call(this,"__ee__")?L=this.__ee__:(L=y.value=p(null),g(this,"__ee__",y),y.value=null),L[T]?typeof L[T]=="object"?L[T].push(S):L[T]=[L[T],S]:L[T]=S,this},C=function(T,S){var L,H;return f(S),H=this,w.call(this,T,L=function(){F.call(H,T,L),s.call(S,this,arguments)}),L.__eeOnceListener__=S,this},F=function(T,S){var L,H,$,K;if(f(S),!d.call(this,"__ee__"))return this;if(L=this.__ee__,!L[T])return this;if(H=L[T],typeof H=="object")for(K=0;$=H[K];++K)($===S||$.__eeOnceListener__===S)&&(H.length===2?L[T]=H[K?0:1]:H.splice(K,1));else(H===S||H.__eeOnceListener__===S)&&delete L[T];return this},P=function(T){var S,L,H,$,K;if(d.call(this,"__ee__")&&($=this.__ee__[T],!!$))if(typeof $=="object"){for(L=arguments.length,K=new Array(L-1),S=1;S=55296&&L<=56319&&(nn+=C[++E])),nn=F?d.call(F,P,nn,B):nn,q?(y.value=nn,w(T,B,y)):T[B]=nn,++B;S=B}}if(S===void 0)for(S=f(C.length),q&&(T=new q(S)),E=0;E=0?y=p(y):y=u(this.length)-p(c(y)),m=y;m"}},Nu}var $u,Ha;function Tp(){if(Ha)return $u;Ha=1;var t=Bp(),u=/[\n\r\u2028\u2029]/g;return $u=function(i){var f=t(i);return f.length>100&&(f=f.slice(0,99)+"…"),f=f.replace(u,function(s){return JSON.stringify(s).slice(1,-1)}),f},$u}var Nr={exports:{}},Da;function qa(){if(Da)return Nr.exports;Da=1,Nr.exports=t,Nr.exports.default=t;function t(u){return!!u&&(typeof u=="object"||typeof u=="function")&&typeof u.then=="function"}return Nr.exports}var Ga;function Mp(){if(Ga)return Fa;Ga=1;var t=Ra(),u=Ip(),i=Cp(),f=Tp(),s=qa(),c=Pu(),p=Object.create,g=u("then","then:finally","done","done:finally");return nt.promise=function(m,d){var y=p(null),w=p(null),C=p(null);if(m===!0)m=null;else if(m=i(m),!g[m])throw new TypeError("'"+f(m)+"' is not valid promise mode");d.on("set",function(F,P,q){var E=!1;if(!s(q)){w[F]=q,d.emit("setasync",F,1);return}y[F]=1,C[F]=q;var B=function(H){var $=y[F];if(E)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`);$&&(delete y[F],w[F]=H,d.emit("setasync",F,$))},T=function(){E=!0,y[F]&&(delete y[F],delete C[F],d.delete(F))},S=m;if(S||(S="then"),S==="then"){var L=function(){c(T)};q=q.then(function(H){c(B.bind(this,H))},L),typeof q.finally=="function"&&q.finally(L)}else if(S==="done"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");q.done(B,T)}else if(S==="done:finally"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof q.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");q.done(B),q.finally(T)}}),d.on("get",function(F,P,q){var E;if(y[F]){++y[F];return}E=C[F];var B=function(){d.emit("getasync",F,P,q)};s(E)?typeof E.done=="function"?E.done(B):E.then(function(){c(B)}):B()}),d.on("delete",function(F){if(delete C[F],y[F]){delete y[F];return}if(hasOwnProperty.call(w,F)){var P=w[F];delete w[F],d.emit("deleteasync",F,[P])}}),d.on("clear",function(){var F=w;w=p(null),y=p(null),C=p(null),d.emit("clearasync",t(F,function(P){return[P]}))})},Fa}var Na={},$a;function Lp(){if($a)return Na;$a=1;var t=He,u=Lr,i=nt,f=Function.prototype.apply;return i.dispose=function(s,c,p){var g;if(t(s),p.async&&i.async||p.promise&&i.promise){c.on("deleteasync",g=function(m,d){f.call(s,null,d)}),c.on("clearasync",function(m){u(m,function(d,y){g(y,d)})});return}c.on("delete",g=function(m,d){s(d)}),c.on("clear",function(m){u(m,function(d,y){g(y,d)})})},Na}var Ya={},Yu,Xa;function Pp(){return Xa||(Xa=1,Yu=2147483647),Yu}var Xu,Wa;function Hp(){if(Wa)return Xu;Wa=1;var t=je,u=Pp();return Xu=function(i){if(i=t(i),i>u)throw new TypeError(i+" exceeds maximum possible timeout");return i},Xu}var Ua;function Dp(){if(Ua)return Ya;Ua=1;var t=bu(),u=Lr,i=Pu(),f=qa(),s=Hp(),c=nt,p=Function.prototype,g=Math.max,m=Math.min,d=Object.create;return c.maxAge=function(y,w,C){var F,P,q,E;y=s(y),y&&(F=d(null),P=C.async&&c.async||C.promise&&c.promise?"async":"",w.on("set"+P,function(B){F[B]=setTimeout(function(){w.delete(B)},y),typeof F[B].unref=="function"&&F[B].unref(),E&&(E[B]&&E[B]!=="nextTick"&&clearTimeout(E[B]),E[B]=setTimeout(function(){delete E[B]},q),typeof E[B].unref=="function"&&E[B].unref())}),w.on("delete"+P,function(B){clearTimeout(F[B]),delete F[B],E&&(E[B]!=="nextTick"&&clearTimeout(E[B]),delete E[B])}),C.preFetch&&(C.preFetch===!0||isNaN(C.preFetch)?q=.333:q=g(m(Number(C.preFetch),1),0),q&&(E={},q=(1-q)*y,w.on("get"+P,function(B,T,S){E[B]||(E[B]="nextTick",i(function(){var L;E[B]==="nextTick"&&(delete E[B],w.delete(B),C.async&&(T=t(T),T.push(p)),L=w.memoized.apply(S,T),C.promise&&f(L)&&(typeof L.done=="function"?L.done(p,p):L.then(p,p)))}))}))),w.on("clear"+P,function(){u(F,function(B){clearTimeout(B)}),F={},E&&(u(E,function(B){B!=="nextTick"&&clearTimeout(B)}),E={})}))},Ya}var Ka={},Wu,za;function qp(){if(za)return Wu;za=1;var t=je,u=Object.create,i=Object.prototype.hasOwnProperty;return Wu=function(f){var s=0,c=1,p=u(null),g=u(null),m=0,d;return f=t(f),{hit:function(y){var w=g[y],C=++m;if(p[C]=y,g[y]=C,!w)return++s,s<=f?void 0:(y=p[c],d(y),y);if(delete p[w],c===w)for(;!i.call(p,++c););},delete:d=function(y){var w=g[y];if(w&&(delete p[w],delete g[y],--s,c===w)){if(!s){m=0,c=1;return}for(;!i.call(p,++c););}},clear:function(){s=0,c=1,p=u(null),g=u(null),m=0}}},Wu}var ka;function Gp(){if(ka)return Ka;ka=1;var t=je,u=qp(),i=nt;return i.max=function(f,s,c){var p,g,m;f=t(f),f&&(g=u(f),p=c.async&&i.async||c.promise&&i.promise?"async":"",s.on("set"+p,m=function(d){d=g.hit(d),d!==void 0&&s.delete(d)}),s.on("get"+p,m),s.on("delete"+p,g.delete),s.on("clear"+p,g.clear))},Ka}var Va={},Za;function Np(){if(Za)return Va;Za=1;var t=et,u=nt,i=Object.create,f=Object.defineProperties;return u.refCounter=function(s,c,p){var g,m;g=i(null),m=p.async&&u.async||p.promise&&u.promise?"async":"",c.on("set"+m,function(d,y){g[d]=y||1}),c.on("get"+m,function(d){++g[d]}),c.on("delete"+m,function(d){delete g[d]}),c.on("clear"+m,function(){g={}}),f(c.memoized,{deleteRef:t(function(){var d=c.get(arguments);return d===null||!g[d]?null:--g[d]?!1:(c.delete(d),!0)}),getRefCount:t(function(){var d=c.get(arguments);return d===null||!g[d]?0:g[d]})})},Va}var $p=Af,Yp=Ef,Xp=_p,Wp=function(t){var u=$p(arguments[1]),i;return u.normalizer||(i=u.length=Yp(u.length,t.length,u.async),i!==0&&(u.primitive?i===!1?u.normalizer=yp():i>1&&(u.normalizer=bp()(i)):i===!1?u.normalizer=Sp()():i===1?u.normalizer=Ep()():u.normalizer=Rp()(i))),u.async&&Op(),u.promise&&Mp(),u.dispose&&Lp(),u.maxAge&&Dp(),u.max&&Gp(),u.refCounter&&Np(),Xp(t,u)},Up=xn(Wp);function Kp(t,u,i,f,s){Ja(t,u,i||0,f||t.length-1,s||zp)}function Ja(t,u,i,f,s){for(;f>i;){if(f-i>600){var c=f-i+1,p=u-i+1,g=Math.log(c),m=.5*Math.exp(2*g/3),d=.5*Math.sqrt(g*m*(c-m)/c)*(p-c/2<0?-1:1),y=Math.max(i,Math.floor(u-p*m/c+d)),w=Math.min(f,Math.floor(u+(c-p)*m/c+d));Ja(t,u,y,w,s)}var C=t[u],F=i,P=f;for(Zt(t,i,u),s(t[f],C)>0&&Zt(t,i,f);F0;)P--}s(t[i],C)===0?Zt(t,i,P):(P++,Zt(t,P,f)),P<=u&&(i=P+1),u<=P&&(f=P-1)}}function Zt(t,u,i){var f=t[u];t[u]=t[i],t[i]=f}function zp(t,u){return tu?1:0}class kp{constructor(u=9){this._maxEntries=Math.max(4,u),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(u){let i=this.data;const f=[];if(!Yr(u,i))return f;const s=this.toBBox,c=[];for(;i;){for(let p=0;p=0&&c[i].children.length>this._maxEntries;)this._split(c,i),i--;this._adjustParentBBoxes(s,c,i)}_split(u,i){const f=u[i],s=f.children.length,c=this._minEntries;this._chooseSplitAxis(f,c,s);const p=this._chooseSplitIndex(f,c,s),g=xt(f.children.splice(p,f.children.length-p));g.height=f.height,g.leaf=f.leaf,bt(f,this.toBBox),bt(g,this.toBBox),i?u[i-1].children.push(g):this._splitRoot(f,g)}_splitRoot(u,i){this.data=xt([u,i]),this.data.height=u.height+1,this.data.leaf=!1,bt(this.data,this.toBBox)}_chooseSplitIndex(u,i,f){let s,c=1/0,p=1/0;for(let g=i;g<=f-i;g++){const m=Jt(u,0,g,this.toBBox),d=Jt(u,g,f,this.toBBox),y=jp(m,d),w=Uu(m)+Uu(d);y=i;d--){const y=u.children[d];Qt(g,u.leaf?c(y):y),m+=$r(g)}return m}_adjustParentBBoxes(u,i,f){for(let s=f;s>=0;s--)Qt(i[s],u)}_condense(u){for(let i=u.length-1,f;i>=0;i--)u[i].children.length===0?i>0?(f=u[i-1].children,f.splice(f.indexOf(u[i]),1)):this.clear():bt(u[i],this.toBBox)}}function Vp(t,u,i){if(!i)return u.indexOf(t);for(let f=0;f=t.minX&&u.maxY>=t.minY}function xt(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Qa(t,u,i,f,s){const c=[u,i];for(;c.length;){if(i=c.pop(),u=c.pop(),i-u<=f)continue;const p=u+Math.ceil((i-u)/f/2)*f;Kp(t,p,u,i,s),c.push(u,p,p,i)}}class ng extends kp{toBBox(u){return{minX:u.left,minY:u.top,maxX:u.right,maxY:u.bottom}}compareMinX(u,i){return u.left-i.left}compareMinY(u,i){return u.top-i.top}}const eg={screenSize:{width:256,height:256},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:75,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:1.5,minScale:1,dtMax:1.5,dtMin:1.1}};var ja={exports:{}};(function(t){var u=Object.prototype.hasOwnProperty,i="~";function f(){}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(i=!1));function s(m,d,y){this.fn=m,this.context=d,this.once=y||!1}function c(m,d,y,w,C){if(typeof y!="function")throw new TypeError("The listener must be a function");var F=new s(y,w||m,C),P=i?i+d:d;return m._events[P]?m._events[P].fn?m._events[P]=[m._events[P],F]:m._events[P].push(F):(m._events[P]=F,m._eventsCount++),m}function p(m,d){--m._eventsCount===0?m._events=new f:delete m._events[d]}function g(){this._events=new f,this._eventsCount=0}g.prototype.eventNames=function(){var d=[],y,w;if(this._eventsCount===0)return d;for(w in y=this._events)u.call(y,w)&&d.push(i?w.slice(1):w);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(y)):d},g.prototype.listeners=function(d){var y=i?i+d:d,w=this._events[y];if(!w)return[];if(w.fn)return[w.fn];for(var C=0,F=w.length,P=new Array(F);C=6&&(i-=6),Y(i<1?255*((u-t)*i+t):i<3?255*u:i<4?255*((u-t)*(4-i)+t):255*t)},On=function(t,u,i){u/=100;var f=(i/=100)<=.5?i*(u+1):i+u-i*u,s=2*i-f;return{r:Zu(s,f,(t/=60)+2),g:Zu(s,f,t),b:Zu(s,f,t-2)}},Ju=function(t,u,i,f){return{r:Y(255*(1-t)*(f=1-f)),g:Y(255*(1-u)*f),b:Y(255*(1-i)*f)}},ts=function(t,u,i){t/=255,u/=255,i/=255;var f=1-Math.max(t,u,i),s=1-f,c=s&&(s-u)/s,p=s&&(s-i)/s;return{c:Y(100*(s&&(s-t)/s)),m:Y(100*c),y:Y(100*p),k:Y(100*f)}},At=function(t,u,i,f){f===void 0&&(f=1),t/=255,u/=255,i/=255,f=Math.min(f,1);var s=Math.max(t,u,i),c=Math.min(t,u,i),p=s-c,g=0,m=0,d=(s+c)/2;if(p!==0){switch(s){case t:g=(u-i)/p%6;break;case u:g=(i-t)/p+2;break;case i:g=(t-u)/p+4}(g=Y(60*g))<0&&(g+=360),m=p/(1-Math.abs(2*d-1))}return{h:g,s:Y(100*m),l:Y(100*d),a:f}},rs=function(t,u){if(t<0&&(t+=360),t>360&&(t-=360),t===360||t===0)return t;var i=[[0,120],[120,180],[180,240],[240,360]],f=[[0,60],[60,120],[120,240],[240,360]],s=u?f:i,c=0,p=0,g=0,m=0;return(u?i:f).find(function(d,y){return t>=d[0]&&t360||t<0)&&(t-=360*Math.floor(t/360)),t},Ln=function(t){return typeof t=="string"&&(t=wt.test(t)?Wr(t)/100:+t),isNaN(+t)||t>1?1:Y(t)},St=function(t,u,i){return u.reduce(function(f,s){return zu(zu([],f,!0),[en(en({},t),{h:i===qn.ADDITIVE?ir(t.h+s):ir(rs(rs(t.h,!1)+s,!0))})],!1)},[en({},t)])},lg=function(t,u){return St(t,[30,-30],u)},cg=function(t,u){return St(t,[180],u)},hg=function(t,u){return St(t,[150,-150],u)},pg=function(t,u){return St(t,[120,-120],u)},gg=function(t,u){return St(t,[60,-120,180],u)},dg=function(t,u){return St(t,[90,-90,180],u)},Zn=function(t){return typeof t=="string"?function(u){var i;if(Object.keys(z).some(function(f){if(rr[f].test(u))return i=f,!0}),!i&&~ns.indexOf(u)&&(i=z.HEX),!i)throw new Error(ag);return i}(t):function(u){var i,f=!1,s=es(Object.keys(u));if(ku[s]&&(i=ku[s]),i&&i===z.RGB){var c=Object.entries(u).some(function(g){return!Vu.test("".concat(g[1]))}),p=Object.entries(u).some(function(g){return!(wt.test("".concat(g[1]))||!Vu.test("".concat(g[1]))&&!isNaN(+g[1])&&+g[1]<=255)});c&&p&&(f=!0),c||(i=z.HEX)}if(!i||f)throw new Error(sg);return i}(t)},vg=((er={})[z.HEX]=function(t){var u=(~ns.indexOf(t)?Xr[t]:t).match(rr.HEX),i={r:Kr(u[1]||u[5]),g:Kr(u[2]||u[6]),b:Kr(u[3]||u[7])},f=u[4]||u[8];return f!==void 0&&(i.a=Kr(f)/255),i},er[z.RGB]=function(t){var u=t.match(rr.RGB),i=it(u[1]||u[5]),f=it(u[2]||u[6]),s=it(u[3]||u[7]),c=u[4]||u[8],p={r:Math.min(i,255),g:Math.min(f,255),b:Math.min(s,255)};return c!==void 0&&(p.a=Ln(c)),p},er[z.HSL]=function(t){var u=t.match(rr.HSL),i=ir(u[1]||u[5]),f=Ur(u[2]||u[6]),s=Ur(u[3]||u[7]),c=u[4]||u[8],p=On(i,f,s);return c!==void 0&&(p.a=Ln(c)),p},er[z.CMYK]=function(t){var u=t.match(rr.CMYK),i=De(u[1]||u[6]),f=De(u[2]||u[7]),s=De(u[3]||u[8]),c=De(u[4]||u[9]),p=u[5]||u[10],g=Ju(i,f,s,c);return p!==void 0&&(g.a=Ln(p)),g},er),mg=((tr={})[z.HEX]=function(t){var u={r:it("".concat(t.r)),g:it("".concat(t.g)),b:it("".concat(t.b))};return Bn(t,"a")&&(u.a=Math.min(it("".concat(t.a),!0),1)),u},tr[z.RGB]=function(t){return this.HEX(t)},tr[z.HSL]=function(t){var u=Ur("".concat(t.s)),i=Ur("".concat(t.l)),f=On(ir(t.h),u,i);return Bn(t,"a")&&(f.a=Ln(t.a)),f},tr[z.CMYK]=function(t){var u=De("".concat(t.c)),i=De("".concat(t.m)),f=De("".concat(t.y)),s=De("".concat(t.k)),c=Ju(u,i,f,s);return Bn(t,"a")&&(c.a=Ln(t.a)),c},tr),ut=function(t,u){return u===void 0&&(u=Zn(t)),typeof t=="string"?vg[u](t):mg[u](t)},tn=((Se={})[z.HEX]=function(t){return{r:zr(t.r),g:zr(t.g),b:zr(t.b)}},Se.HEXA=function(t){var u=tn.HEX(t);return u.a=Bn(t,"a")?zr(255*t.a):"0xFF",u},Se[z.RGB]=function(t,u){return Bn(t,"a")&&delete t.a,ot(t,u)},Se.RGBA=function(t,u){return t.a=Bn(t,"a")?Y(t.a):1,ot(t,u)},Se[z.HSL]=function(t,u){var i=At(t.r,t.g,t.b);return delete i.a,Ot(i,u)},Se.HSLA=function(t,u){var i=tn.HSL(t,u);return i.a=Bn(t,"a")?Y(t.a,u):1,i},Se[z.CMYK]=function(t,u){return _g(ts(t.r,t.g,t.b),u)},Se.CMYKA=function(t,u){var i=tn.CMYK(t,u);return i.a=Bn(t,"a")?Y(t.a,u):1,i},Se),is=function(t,u,i,f){var s=Zn(t),c=typeof t=="string",p=ut(t,s),g=typeof t=="string"&&Bn(p,"a")||typeof t!="string"&&Bn(t,"a"),m=At(p.r,p.g,p.b,p.a);g||delete m.a;var d=i?m.l/(u+1):(100-m.l)/(u+1),y=Array(u).fill(null).map(function(w,C){return en(en({},m),{l:m.l+d*(C+1)*(1-2*+i)})});switch(s){case z.HEX:default:return y.map(function(w){var C=On(w.h,w.s,w.l);return g&&(C.a=w.a),c?g?j.HEX(ot(en(en({},C),{a:Y(255*C.a)}),f)):j.HEX(ot(C,f)):g?tn.HEXA(C):tn.HEX(C)});case z.RGB:return y.map(function(w){var C=On(w.h,w.s,w.l);return g&&(C.a=w.a),c?j.RGB(ot(C,f)):g?tn.RGBA(C,f):tn.RGB(C,f)});case z.HSL:return y.map(function(w){return c?j.HSL(Ot(w,f)):g?tn.HSLA(en(en({},On(w.h,w.s,w.l)),{a:w.a}),f):tn.HSL(On(w.h,w.s,w.l),f)})}},Et=((tt={buildHarmony:function(t,u,i,f){var s=Zn(t),c=ut(t,s),p=At(c.r,c.g,c.b,c.a),g=typeof t=="string"&&Bn(c,"a")||typeof t!="string"&&Bn(t,"a"),m=typeof t=="string";switch(s){case z.HEX:default:return g?this.HEXA(Ot(p,0),u,i,m):this.HEX(Ot(p,0),u,i,m);case z.HSL:return g?this.HSLA(p,u,i,m,f):this.HSL(p,u,i,m,f);case z.RGB:return g?this.RGBA(p,u,i,m,f):this.RGB(p,u,i,m,f)}}})[z.HEX]=function(t,u,i,f){return u(t,i).map(function(s){return f?j.HEX(On(s.h,s.s,s.l)):tn.HEX(On(s.h,s.s,s.l))})},tt.HEXA=function(t,u,i,f){return u(t,i).map(function(s){return f?j.HEX(en(en({},On(s.h,s.s,s.l)),{a:255*Ln(s.a)})):tn.HEXA(en(en({},On(s.h,s.s,s.l)),{a:Ln(s.a)}))})},tt[z.RGB]=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.RGB(ot(On(c.h,c.s,c.l),s)):tn.RGB(On(c.h,c.s,c.l),s)})},tt.RGBA=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.RGB(ot(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)):tn.RGBA(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)})},tt[z.HSL]=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.HSL(Ot({h:c.h,s:c.s,l:c.l},s)):tn.HSL(On(c.h,c.s,c.l),s)})},tt.HSLA=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.HSL(Ot(en(en({},c),{a:Ln(c.a)}),s)):tn.HSLA(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)})},tt),Rt=((rt={mix:function(t,u){var i,f,s,c,p,g,m,d,y,w,C,F,P,q,E,B=t.map(function(H){var $=Zn(H);return ut(H,$)}),T=u===qn.SUBTRACTIVE?B.map(function(H){var $,K,nn,vn,de,Ee,ve,fr,at,ar,sr,fe,Gn,Bt,st=($=H.r,K=H.g,nn=H.b,vn=Math.min($,K,nn),de=Math.min(255-$,255-K,255-nn),Ee=$-vn,ve=K-vn,fr=nn-vn,at=Math.min(Ee,ve),ar=Ee-at,sr=(ve+at)/2,fe=(fr+ve-at)/2,Gn=Math.max(ar,sr,fe)/Math.max(Ee,ve,fr),Bt=isNaN(Gn)||Gn===1/0||Gn<=0?1:Gn,{r:ar/Bt+de,y:sr/Bt+de,b:fe/Bt+de});return Bn(H,"a")&&(st.a=H.a),st}):null;function S(H){var $=u===qn.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return H.reduce(function(K,nn){var vn=Bn(nn,"a")?nn.a:1,de={r:Math.min(K.r+nn.r*vn,255),b:Math.min(K.b+nn.b*vn,255),a:1-(1-vn)*(1-K.a)},Ee="g"in K?K.g:K.y,ve="g"in nn?nn.g:nn.y;return en(en({},de),u===qn.ADDITIVE?{g:Math.min(Ee+ve*vn,255)}:{y:Math.min(Ee+ve*vn,255)})},$)}if(u===qn.ADDITIVE)i=S(B);else{var L=S(T);f=L.r,s=L.y,c=L.b,p=Math.min(f,s,c),g=Math.min(255-f,255-s,255-c),m=f-p,d=s-p,y=c-p,w=Math.min(d,y),C=m+d-w,F=d+w,P=2*(y-w),q=Math.max(C,F,P)/Math.max(m,d,y),E=isNaN(q)||q===1/0||q<=0?1:q,(i={r:C/E+g,g:F/E+g,b:P/E+g}).a=L.a}return{r:Y(i.r),g:Y(i.g),b:Y(i.b),a:oe(i.a,0,1)}}})[z.HEX]=function(t,u,i){var f=this.mix(t,u);return delete f.a,i?j.HEX(f):tn.HEX(f)},rt.HEXA=function(t,u,i){var f=this.mix(t,u);return f.a=i?255*Ln(f.a):Ln(f.a),i?j.HEX(f):tn.HEXA(f)},rt[z.RGB]=function(t,u,i,f){var s=this.mix(t,u);return delete s.a,i?j.RGB(s):tn.RGB(s,f)},rt.RGBA=function(t,u,i,f){var s=this.mix(t,u);return i?j.RGB(s):tn.RGBA(s,f)},rt[z.HSL]=function(t,u,i,f){var s=this.mix(t,u),c=At(s.r,s.g,s.b);return delete s.a,delete c.a,i?j.HSL(c):tn.HSL(s,f)},rt.HSLA=function(t,u,i,f){var s=this.mix(t,u),c=At(s.r,s.g,s.b,s.a);return i?j.HSL(c):tn.HSLA(s,f)},rt),ot=function(t,u){return en({r:Y(t.r,u),g:Y(t.g,u),b:Y(t.b,u)},Bn(t,"a")?{a:Y(t.a,u)}:{})},Ot=function(t,u){return en({h:Y(t.h,u),s:Y(t.s,u),l:Y(t.l,u)},Bn(t,"a")?{a:Y(t.a,u)}:{})},_g=function(t,u){return{c:Y(t.c,u),m:Y(t.m,u),y:Y(t.y,u),k:Y(t.k,u)}},qe=function(t,u,i,f,s,c){var p=s(ut(t,u),f);return i?c(p):p},It=function(t,u,i,f,s,c,p){i<1&&(i=5);var g=function(m,d,y){var w=y-1,C=(d.r-m.r)/w,F=(d.g-m.g)/w,P=(d.b-m.b)/w,q=Ln(m.a),E=(Ln(d.a)-q)/w;return Array(y).fill(null).map(function(B,T){return T===0?m:T===w?d:{r:Y(m.r+C*T),g:Y(m.g+F*T),b:Y(m.b+P*T),a:Y(q+E*T)}})}(ut(t),ut(u),i);return g.map(function(m){var d=c(m,s);return f?p(d):d})},yg=function(){function t(u,i){i===void 0&&(i=6),this.rgb=ut(u),this._decimals=i,this.updateHSL(),this.updateCMYK()}return t.prototype.updateRGB=function(){this.rgb=en(en({},On(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},t.prototype.updateRGBFromCMYK=function(){this.rgb=en(en({},Ju(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},t.prototype.updateHSL=function(){this.hsl=At(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},t.prototype.updateCMYK=function(){this.cmyk=ts(this.rgb.r,this.rgb.g,this.rgb.b)},t.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},t.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},t.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},t.prototype.setDecimals=function(u){return this._decimals=u,this},t.prototype.setH=function(u){return this.hsl.h=ir(u),this.updateRGBAndCMYK()},t.prototype.setS=function(u){return this.hsl.s=oe(u,0,100),this.updateRGBAndCMYK()},t.prototype.setL=function(u){return this.hsl.l=oe(u,0,100),this.updateRGBAndCMYK()},t.prototype.setR=function(u){return this.rgb.r=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setG=function(u){return this.rgb.g=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setB=function(u){return this.rgb.b=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setA=function(u){return this.hsl.a=this.rgb.a=oe(u,0,1),this},t.prototype.setC=function(u){return this.cmyk.c=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setM=function(u){return this.cmyk.m=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setY=function(u){return this.cmyk.y=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setK=function(u){return this.cmyk.k=oe(u,0,100),this.updateRGBAndHSL()},Object.defineProperty(t.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"H",{get:function(){return Y(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"S",{get:function(){return Y(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"L",{get:function(){return Y(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"R",{get:function(){return Y(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"G",{get:function(){return Y(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"B",{get:function(){return Y(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"A",{get:function(){return Y(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"C",{get:function(){return Y(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"M",{get:function(){return Y(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Y",{get:function(){return Y(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"K",{get:function(){return Y(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXObject",{get:function(){return tn.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXAObject",{get:function(){return tn.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBAObject",{get:function(){return en(en({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLAObject",{get:function(){return en(en({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKAObject",{get:function(){return en(en({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEX",{get:function(){return j.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXA",{get:function(){return j.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGB",{get:function(){return j.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBA",{get:function(){return j.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSL",{get:function(){return j.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLA",{get:function(){return j.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYK",{get:function(){return j.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKA",{get:function(){return j.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),t.toHEX=function(u,i){i===void 0&&(i=!0);var f=Zn(u);return qe(u,f,i,0,tn.HEX,j.HEX)},t.toHEXA=function(u,i){i===void 0&&(i=!0);var f=Zn(u);return qe(u,f,i,0,tn.HEXA,j.HEX)},t.toRGB=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.RGB,j.RGB)},t.toRGBA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.RGBA,j.RGB)},t.toHSL=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.HSL,j.HSL)},t.toHSLA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.HSLA,j.HSL)},t.toCMYK=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.CMYK,j.CMYK)},t.toCMYKA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.CMYKA,j.CMYK)},t.getBlendHEX=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HEX,j.HEX)},t.getBlendHEXA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HEXA,j.HEX)},t.getBlendRGB=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.RGB,j.RGB)},t.getBlendRGBA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.RGBA,j.RGB)},t.getBlendHSL=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HSL,j.HSL)},t.getBlendHSLA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HSLA,j.HSL)},t.getMixHEX=function(u,i,f){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),Rt.HEX(u,i,f)},t.getMixHEXA=function(u,i,f){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),Rt.HEXA(u,i,f)},t.getMixRGB=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.RGB(u,i,f,s)},t.getMixRGBA=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.RGBA(u,i,f,s)},t.getMixHSL=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.HSL(u,i,f,s)},t.getMixHSLA=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.HSLA(u,i,f,s)},t.getShades=function(u,i,f){return f===void 0&&(f=6),is(u,i,!0,f)},t.getTints=function(u,i,f){return f===void 0&&(f=6),is(u,i,!1,f)},t.getHarmony=function(u,i,f,s){return i===void 0&&(i=Ae.COMPLEMENTARY),f===void 0&&(f=qn.ADDITIVE),s===void 0&&(s=6),function(c,p,g,m){var d;return(d={},d[Ae.ANALOGOUS]=Et.buildHarmony(p,lg,m,g),d[Ae.COMPLEMENTARY]=Et.buildHarmony(p,cg,m,g),d[Ae.SPLIT_COMPLEMENTARY]=Et.buildHarmony(p,hg,m,g),d[Ae.TRIADIC]=Et.buildHarmony(p,pg,m,g),d[Ae.TETRADIC]=Et.buildHarmony(p,gg,m,g),d[Ae.SQUARE]=Et.buildHarmony(p,dg,m,g),d)[c]}(i,u,s,f)},t}();const bg={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:In,PI:xg}=Math,ur=(t,u)=>new yg(t).setA(u??bg.alpha).RGBA,wg=(t,u)=>ur(t,u);function Ge(t,u){return{width:t.width*u.scale.x,height:t.height*u.scale.y,x:t.x*u.scale.x+u.x,y:t.y*u.scale.y+u.y}}const Qu={text:{draw(t,u,i){if(t.text){const f=Ge(t,{x:t.textX,y:t.textY,scale:{x:1,y:1}}),s=Ge(f,i);u.font=`${t.fontSize*i.scale.x}px Arial`,u.fillStyle=ur(t.fontColor,t.alpha),u.fillText(t.text,s.x,s.y)}},test(t){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},path:{draw(t,u,i){const[f,...s]=t.points;u.beginPath(),u.lineCap="round",u.lineJoin="round",u.strokeStyle=wg(t.fill,t.alpha);const{x:c,y:p,width:g}=Ge({...f,width:t.lineWidth,height:0},i);u.lineWidth=In(g),u.moveTo(In(c),In(p));for(const m of s){const{x:d,y}=Ge({...m,width:0,height:0},i);u.lineTo(In(d),In(y))}u.stroke()},test(t){var u,i,f,s;return{left:((u=_n.minBy(t.points,"x"))==null?void 0:u.x)??0-t.lineWidth??0,right:((i=_n.maxBy(t.points,"x"))==null?void 0:i.x)??0+t.lineWidth??0,top:((f=_n.minBy(t.points,"y"))==null?void 0:f.y)??0-t.lineWidth??0,bottom:((s=_n.maxBy(t.points,"y"))==null?void 0:s.y)??0+t.lineWidth??0}}},rect:{draw(t,u,i){const{x:f,y:s,width:c,height:p}=Ge(t,i);u.fillStyle=ur(t.fill,t.alpha),u.fillRect(In(f),In(s),In(c)||1,In(p)||1)},test(t){return{left:t.x,right:t.x+t.width,top:t.y,bottom:t.y+t.height}}},polygon:{draw(t,u,i){const[f,...s]=t.points;u.beginPath(),u.fillStyle=ur(t.fill,t.alpha);const{x:c,y:p}=Ge({...f,width:0,height:0},i);u.moveTo(In(c),In(p));for(const g of s){const{x:m,y:d}=Ge({...g,width:0,height:0},i);u.lineTo(In(m),In(d))}u.closePath(),u.fill()},test(t){var u,i,f,s;return{left:((u=_n.minBy(t.points,"x"))==null?void 0:u.x)??0,right:((i=_n.maxBy(t.points,"x"))==null?void 0:i.x)??0,top:((f=_n.minBy(t.points,"y"))==null?void 0:f.y)??0,bottom:((s=_n.maxBy(t.points,"y"))==null?void 0:s.y)??0}}},circle:{draw(t,u,i){u.fillStyle=ur(t.fill,t.alpha),u.beginPath();const f=Ge({...t,width:t.radius,height:t.radius},i);u.ellipse(In(f.x),In(f.y),In(f.width),In(f.height),0,0,2*xg),u.fill()},test(t){return{left:t.x-t.radius,right:t.x+t.radius,top:t.y-t.radius,bottom:t.y+t.radius}}}},Ag=t=>new Error(`The component ${t.$} is not supported by this renderer.`);function us(t,u,i,f){if(t in Qu)Qu[t].draw(u,i,f);else throw Ag(u)}const Sg=(t,u,i)=>{us(t.$,t,u,i),t.text&&us("text",t,u,i)},Eg=({x:t,y:u})=>{const i=Math.abs(t),f=Math.abs(u),s=Math.max(i,f),c=2*s,p=Math.pow(c-1,2);return t==s&&u>-s?p+u-(-s+1):u==s?p+s-t+c-1:t==-s?p+s-u+2*c-1:u==-s?p+t+s+3*c-1:0},{log2:Rg,max:Og}=Math,os=t=>_n.floor(Rg(t+1));function Ig({right:t,left:u,bottom:i,top:f},s){const c=Og(os(t-u),os(i-f))-s,p=2**c,g={left:_n.floor(u/p),right:_n.ceil((t+1)/p),top:_n.floor(f/p),bottom:_n.ceil((i+1)/p)};return{zoom:c,order:p,tiles:_n.shuffle(Xc({x:_n.range(g.left,g.right+1),y:_n.range(g.top,g.bottom+1)}).map(m=>{const d=m.x*p,y=m.y*p;return{tile:m,bounds:{left:d-p/2,right:d+p/2,top:y-p/2,bottom:y+p/2}}}))}}const Fg=200;class Cg extends ig{constructor(){super(...arguments);ge(this,Zr);ge(this,ft);ge(this,Jr);ge(this,Qr);ge(this,Jn,void 0);ge(this,Ft,void 0);ge(this,Ne,void 0);ge(this,$e,void 0);ge(this,or,void 0);ge(this,Ct,void 0);xe(this,Jn,eg),xe(this,Ft,{bottom:256,top:0,left:0,right:256}),xe(this,Ne,new ng(16)),xe(this,$e,{}),xe(this,or,0),xe(this,Ct,_n.once(()=>_n.debounce(()=>this.render(),wn(this,Jn).refreshInterval,{leading:!1,trailing:!0}))),this.renderTile=Up((i,f)=>Je(this,Qr,Yc).call(this,i,f),{normalizer:JSON.stringify,max:Fg})}getView(){return{system:wn(this,Ne),world:wn(this,$e)}}setFrustum(i){xe(this,Ft,i),wn(this,Ct).call(this)()}setTileResolution(i){_n.isEqual(i,wn(this,Jn).tileResolution)||(Object.assign(wn(this,Jn),{tileResolution:i}),Je(this,ft,Tr).call(this))}add(i,f){const s=_n.map(i,c=>({...Qu[c.$].test(c),component:c,index:Je(this,Zr,Nc).call(this)}));wn(this,Ne).load(s),wn(this,$e)[f]=s,Je(this,ft,Tr).call(this)}remove(i){for(const f of wn(this,$e)[i])wn(this,Ne).remove(f);delete wn(this,$e)[i],Je(this,ft,Tr).call(this)}setup(i){xe(this,Jn,i),Je(this,ft,Tr).call(this)}async render(){for(const{tile:i,bounds:f}of Ig(wn(this,Ft),wn(this,Jn).tileSubdivision).tiles)if(Je(this,Jr,$c).call(this,i)){const s=this.renderTile(f,wn(this,Jn).tileResolution);this.emit("message",{action:"update",payload:{bounds:f,bitmap:s}},[])}}}Jn=new WeakMap,Ft=new WeakMap,Ne=new WeakMap,$e=new WeakMap,or=new WeakMap,Zr=new WeakSet,Nc=function(){return Gc(this,or)._++},ft=new WeakSet,Tr=function(){this.renderTile.clear(),wn(this,Ct).call(this)()},Ct=new WeakMap,Jr=new WeakSet,$c=function({x:i,y:f}){const{workerCount:s,workerIndex:c}=wn(this,Jn);return Eg({x:i,y:f})%s===c},Qr=new WeakSet,Yc=function(i,f){const{top:s,right:c,bottom:p,left:g}=i,m={x:f.width/(c-g),y:f.height/(p-s)},d=new OffscreenCanvas(f.width,f.height),y=d.getContext("2d",{alpha:!1});y.imageSmoothingEnabled=!1,y.fillStyle=wn(this,Jn).backgroundColor,y.fillRect(0,0,f.width,f.height);for(const{component:w}of _n.sortBy(wn(this,Ne).search({minX:g,maxX:c,maxY:p,minY:s}),"index"))Sg(w,y,{scale:m,x:-g*m.x,y:-s*m.y});return d.transferToImageBitmap()};const fs=new Cg;fs.on("message",(t,u)=>self.postMessage(t,u)),self.onmessage=t=>{const{action:u,payload:i}=t.data;fs[u](...i)}})(); +Consider to rely on 'then' or 'done' mode instead.`);$&&(delete y[F],w[F]=H,d.emit("setasync",F,$))},T=function(){E=!0,y[F]&&(delete y[F],delete C[F],d.delete(F))},S=m;if(S||(S="then"),S==="then"){var L=function(){c(T)};q=q.then(function(H){c(B.bind(this,H))},L),typeof q.finally=="function"&&q.finally(L)}else if(S==="done"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");q.done(B,T)}else if(S==="done:finally"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof q.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");q.done(B),q.finally(T)}}),d.on("get",function(F,P,q){var E;if(y[F]){++y[F];return}E=C[F];var B=function(){d.emit("getasync",F,P,q)};s(E)?typeof E.done=="function"?E.done(B):E.then(function(){c(B)}):B()}),d.on("delete",function(F){if(delete C[F],y[F]){delete y[F];return}if(hasOwnProperty.call(w,F)){var P=w[F];delete w[F],d.emit("deleteasync",F,[P])}}),d.on("clear",function(){var F=w;w=p(null),y=p(null),C=p(null),d.emit("clearasync",t(F,function(P){return[P]}))})},Fa}var Na={},$a;function Lp(){if($a)return Na;$a=1;var t=He,u=Lr,i=nt,f=Function.prototype.apply;return i.dispose=function(s,c,p){var g;if(t(s),p.async&&i.async||p.promise&&i.promise){c.on("deleteasync",g=function(m,d){f.call(s,null,d)}),c.on("clearasync",function(m){u(m,function(d,y){g(y,d)})});return}c.on("delete",g=function(m,d){s(d)}),c.on("clear",function(m){u(m,function(d,y){g(y,d)})})},Na}var Ya={},Yu,Xa;function Pp(){return Xa||(Xa=1,Yu=2147483647),Yu}var Xu,Wa;function Hp(){if(Wa)return Xu;Wa=1;var t=je,u=Pp();return Xu=function(i){if(i=t(i),i>u)throw new TypeError(i+" exceeds maximum possible timeout");return i},Xu}var Ua;function Dp(){if(Ua)return Ya;Ua=1;var t=bu(),u=Lr,i=Pu(),f=qa(),s=Hp(),c=nt,p=Function.prototype,g=Math.max,m=Math.min,d=Object.create;return c.maxAge=function(y,w,C){var F,P,q,E;y=s(y),y&&(F=d(null),P=C.async&&c.async||C.promise&&c.promise?"async":"",w.on("set"+P,function(B){F[B]=setTimeout(function(){w.delete(B)},y),typeof F[B].unref=="function"&&F[B].unref(),E&&(E[B]&&E[B]!=="nextTick"&&clearTimeout(E[B]),E[B]=setTimeout(function(){delete E[B]},q),typeof E[B].unref=="function"&&E[B].unref())}),w.on("delete"+P,function(B){clearTimeout(F[B]),delete F[B],E&&(E[B]!=="nextTick"&&clearTimeout(E[B]),delete E[B])}),C.preFetch&&(C.preFetch===!0||isNaN(C.preFetch)?q=.333:q=g(m(Number(C.preFetch),1),0),q&&(E={},q=(1-q)*y,w.on("get"+P,function(B,T,S){E[B]||(E[B]="nextTick",i(function(){var L;E[B]==="nextTick"&&(delete E[B],w.delete(B),C.async&&(T=t(T),T.push(p)),L=w.memoized.apply(S,T),C.promise&&f(L)&&(typeof L.done=="function"?L.done(p,p):L.then(p,p)))}))}))),w.on("clear"+P,function(){u(F,function(B){clearTimeout(B)}),F={},E&&(u(E,function(B){B!=="nextTick"&&clearTimeout(B)}),E={})}))},Ya}var Ka={},Wu,za;function qp(){if(za)return Wu;za=1;var t=je,u=Object.create,i=Object.prototype.hasOwnProperty;return Wu=function(f){var s=0,c=1,p=u(null),g=u(null),m=0,d;return f=t(f),{hit:function(y){var w=g[y],C=++m;if(p[C]=y,g[y]=C,!w)return++s,s<=f?void 0:(y=p[c],d(y),y);if(delete p[w],c===w)for(;!i.call(p,++c););},delete:d=function(y){var w=g[y];if(w&&(delete p[w],delete g[y],--s,c===w)){if(!s){m=0,c=1;return}for(;!i.call(p,++c););}},clear:function(){s=0,c=1,p=u(null),g=u(null),m=0}}},Wu}var ka;function Gp(){if(ka)return Ka;ka=1;var t=je,u=qp(),i=nt;return i.max=function(f,s,c){var p,g,m;f=t(f),f&&(g=u(f),p=c.async&&i.async||c.promise&&i.promise?"async":"",s.on("set"+p,m=function(d){d=g.hit(d),d!==void 0&&s.delete(d)}),s.on("get"+p,m),s.on("delete"+p,g.delete),s.on("clear"+p,g.clear))},Ka}var Va={},Za;function Np(){if(Za)return Va;Za=1;var t=et,u=nt,i=Object.create,f=Object.defineProperties;return u.refCounter=function(s,c,p){var g,m;g=i(null),m=p.async&&u.async||p.promise&&u.promise?"async":"",c.on("set"+m,function(d,y){g[d]=y||1}),c.on("get"+m,function(d){++g[d]}),c.on("delete"+m,function(d){delete g[d]}),c.on("clear"+m,function(){g={}}),f(c.memoized,{deleteRef:t(function(){var d=c.get(arguments);return d===null||!g[d]?null:--g[d]?!1:(c.delete(d),!0)}),getRefCount:t(function(){var d=c.get(arguments);return d===null||!g[d]?0:g[d]})})},Va}var $p=Af,Yp=Ef,Xp=_p,Wp=function(t){var u=$p(arguments[1]),i;return u.normalizer||(i=u.length=Yp(u.length,t.length,u.async),i!==0&&(u.primitive?i===!1?u.normalizer=yp():i>1&&(u.normalizer=bp()(i)):i===!1?u.normalizer=Sp()():i===1?u.normalizer=Ep()():u.normalizer=Rp()(i))),u.async&&Op(),u.promise&&Mp(),u.dispose&&Lp(),u.maxAge&&Dp(),u.max&&Gp(),u.refCounter&&Np(),Xp(t,u)},Up=xn(Wp);function Kp(t,u,i,f,s){Ja(t,u,i||0,f||t.length-1,s||zp)}function Ja(t,u,i,f,s){for(;f>i;){if(f-i>600){var c=f-i+1,p=u-i+1,g=Math.log(c),m=.5*Math.exp(2*g/3),d=.5*Math.sqrt(g*m*(c-m)/c)*(p-c/2<0?-1:1),y=Math.max(i,Math.floor(u-p*m/c+d)),w=Math.min(f,Math.floor(u+(c-p)*m/c+d));Ja(t,u,y,w,s)}var C=t[u],F=i,P=f;for(Zt(t,i,u),s(t[f],C)>0&&Zt(t,i,f);F0;)P--}s(t[i],C)===0?Zt(t,i,P):(P++,Zt(t,P,f)),P<=u&&(i=P+1),u<=P&&(f=P-1)}}function Zt(t,u,i){var f=t[u];t[u]=t[i],t[i]=f}function zp(t,u){return tu?1:0}class kp{constructor(u=9){this._maxEntries=Math.max(4,u),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(u){let i=this.data;const f=[];if(!Yr(u,i))return f;const s=this.toBBox,c=[];for(;i;){for(let p=0;p=0&&c[i].children.length>this._maxEntries;)this._split(c,i),i--;this._adjustParentBBoxes(s,c,i)}_split(u,i){const f=u[i],s=f.children.length,c=this._minEntries;this._chooseSplitAxis(f,c,s);const p=this._chooseSplitIndex(f,c,s),g=xt(f.children.splice(p,f.children.length-p));g.height=f.height,g.leaf=f.leaf,bt(f,this.toBBox),bt(g,this.toBBox),i?u[i-1].children.push(g):this._splitRoot(f,g)}_splitRoot(u,i){this.data=xt([u,i]),this.data.height=u.height+1,this.data.leaf=!1,bt(this.data,this.toBBox)}_chooseSplitIndex(u,i,f){let s,c=1/0,p=1/0;for(let g=i;g<=f-i;g++){const m=Jt(u,0,g,this.toBBox),d=Jt(u,g,f,this.toBBox),y=jp(m,d),w=Uu(m)+Uu(d);y=i;d--){const y=u.children[d];Qt(g,u.leaf?c(y):y),m+=$r(g)}return m}_adjustParentBBoxes(u,i,f){for(let s=f;s>=0;s--)Qt(i[s],u)}_condense(u){for(let i=u.length-1,f;i>=0;i--)u[i].children.length===0?i>0?(f=u[i-1].children,f.splice(f.indexOf(u[i]),1)):this.clear():bt(u[i],this.toBBox)}}function Vp(t,u,i){if(!i)return u.indexOf(t);for(let f=0;f=t.minX&&u.maxY>=t.minY}function xt(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Qa(t,u,i,f,s){const c=[u,i];for(;c.length;){if(i=c.pop(),u=c.pop(),i-u<=f)continue;const p=u+Math.ceil((i-u)/f/2)*f;Kp(t,p,u,i,s),c.push(u,p,p,i)}}class ng extends kp{toBBox(u){return{minX:u.left,minY:u.top,maxX:u.right,maxY:u.bottom}}compareMinX(u,i){return u.left-i.left}compareMinY(u,i){return u.top-i.top}}const eg={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:75,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:2,minScale:1,dtMax:1.5,dtMin:1.1}};var ja={exports:{}};(function(t){var u=Object.prototype.hasOwnProperty,i="~";function f(){}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(i=!1));function s(m,d,y){this.fn=m,this.context=d,this.once=y||!1}function c(m,d,y,w,C){if(typeof y!="function")throw new TypeError("The listener must be a function");var F=new s(y,w||m,C),P=i?i+d:d;return m._events[P]?m._events[P].fn?m._events[P]=[m._events[P],F]:m._events[P].push(F):(m._events[P]=F,m._eventsCount++),m}function p(m,d){--m._eventsCount===0?m._events=new f:delete m._events[d]}function g(){this._events=new f,this._eventsCount=0}g.prototype.eventNames=function(){var d=[],y,w;if(this._eventsCount===0)return d;for(w in y=this._events)u.call(y,w)&&d.push(i?w.slice(1):w);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(y)):d},g.prototype.listeners=function(d){var y=i?i+d:d,w=this._events[y];if(!w)return[];if(w.fn)return[w.fn];for(var C=0,F=w.length,P=new Array(F);C=6&&(i-=6),Y(i<1?255*((u-t)*i+t):i<3?255*u:i<4?255*((u-t)*(4-i)+t):255*t)},On=function(t,u,i){u/=100;var f=(i/=100)<=.5?i*(u+1):i+u-i*u,s=2*i-f;return{r:Zu(s,f,(t/=60)+2),g:Zu(s,f,t),b:Zu(s,f,t-2)}},Ju=function(t,u,i,f){return{r:Y(255*(1-t)*(f=1-f)),g:Y(255*(1-u)*f),b:Y(255*(1-i)*f)}},ts=function(t,u,i){t/=255,u/=255,i/=255;var f=1-Math.max(t,u,i),s=1-f,c=s&&(s-u)/s,p=s&&(s-i)/s;return{c:Y(100*(s&&(s-t)/s)),m:Y(100*c),y:Y(100*p),k:Y(100*f)}},At=function(t,u,i,f){f===void 0&&(f=1),t/=255,u/=255,i/=255,f=Math.min(f,1);var s=Math.max(t,u,i),c=Math.min(t,u,i),p=s-c,g=0,m=0,d=(s+c)/2;if(p!==0){switch(s){case t:g=(u-i)/p%6;break;case u:g=(i-t)/p+2;break;case i:g=(t-u)/p+4}(g=Y(60*g))<0&&(g+=360),m=p/(1-Math.abs(2*d-1))}return{h:g,s:Y(100*m),l:Y(100*d),a:f}},rs=function(t,u){if(t<0&&(t+=360),t>360&&(t-=360),t===360||t===0)return t;var i=[[0,120],[120,180],[180,240],[240,360]],f=[[0,60],[60,120],[120,240],[240,360]],s=u?f:i,c=0,p=0,g=0,m=0;return(u?i:f).find(function(d,y){return t>=d[0]&&t360||t<0)&&(t-=360*Math.floor(t/360)),t},Ln=function(t){return typeof t=="string"&&(t=wt.test(t)?Wr(t)/100:+t),isNaN(+t)||t>1?1:Y(t)},St=function(t,u,i){return u.reduce(function(f,s){return zu(zu([],f,!0),[en(en({},t),{h:i===qn.ADDITIVE?ir(t.h+s):ir(rs(rs(t.h,!1)+s,!0))})],!1)},[en({},t)])},lg=function(t,u){return St(t,[30,-30],u)},cg=function(t,u){return St(t,[180],u)},hg=function(t,u){return St(t,[150,-150],u)},pg=function(t,u){return St(t,[120,-120],u)},gg=function(t,u){return St(t,[60,-120,180],u)},dg=function(t,u){return St(t,[90,-90,180],u)},Zn=function(t){return typeof t=="string"?function(u){var i;if(Object.keys(z).some(function(f){if(rr[f].test(u))return i=f,!0}),!i&&~ns.indexOf(u)&&(i=z.HEX),!i)throw new Error(ag);return i}(t):function(u){var i,f=!1,s=es(Object.keys(u));if(ku[s]&&(i=ku[s]),i&&i===z.RGB){var c=Object.entries(u).some(function(g){return!Vu.test("".concat(g[1]))}),p=Object.entries(u).some(function(g){return!(wt.test("".concat(g[1]))||!Vu.test("".concat(g[1]))&&!isNaN(+g[1])&&+g[1]<=255)});c&&p&&(f=!0),c||(i=z.HEX)}if(!i||f)throw new Error(sg);return i}(t)},vg=((er={})[z.HEX]=function(t){var u=(~ns.indexOf(t)?Xr[t]:t).match(rr.HEX),i={r:Kr(u[1]||u[5]),g:Kr(u[2]||u[6]),b:Kr(u[3]||u[7])},f=u[4]||u[8];return f!==void 0&&(i.a=Kr(f)/255),i},er[z.RGB]=function(t){var u=t.match(rr.RGB),i=it(u[1]||u[5]),f=it(u[2]||u[6]),s=it(u[3]||u[7]),c=u[4]||u[8],p={r:Math.min(i,255),g:Math.min(f,255),b:Math.min(s,255)};return c!==void 0&&(p.a=Ln(c)),p},er[z.HSL]=function(t){var u=t.match(rr.HSL),i=ir(u[1]||u[5]),f=Ur(u[2]||u[6]),s=Ur(u[3]||u[7]),c=u[4]||u[8],p=On(i,f,s);return c!==void 0&&(p.a=Ln(c)),p},er[z.CMYK]=function(t){var u=t.match(rr.CMYK),i=De(u[1]||u[6]),f=De(u[2]||u[7]),s=De(u[3]||u[8]),c=De(u[4]||u[9]),p=u[5]||u[10],g=Ju(i,f,s,c);return p!==void 0&&(g.a=Ln(p)),g},er),mg=((tr={})[z.HEX]=function(t){var u={r:it("".concat(t.r)),g:it("".concat(t.g)),b:it("".concat(t.b))};return Bn(t,"a")&&(u.a=Math.min(it("".concat(t.a),!0),1)),u},tr[z.RGB]=function(t){return this.HEX(t)},tr[z.HSL]=function(t){var u=Ur("".concat(t.s)),i=Ur("".concat(t.l)),f=On(ir(t.h),u,i);return Bn(t,"a")&&(f.a=Ln(t.a)),f},tr[z.CMYK]=function(t){var u=De("".concat(t.c)),i=De("".concat(t.m)),f=De("".concat(t.y)),s=De("".concat(t.k)),c=Ju(u,i,f,s);return Bn(t,"a")&&(c.a=Ln(t.a)),c},tr),ut=function(t,u){return u===void 0&&(u=Zn(t)),typeof t=="string"?vg[u](t):mg[u](t)},tn=((Se={})[z.HEX]=function(t){return{r:zr(t.r),g:zr(t.g),b:zr(t.b)}},Se.HEXA=function(t){var u=tn.HEX(t);return u.a=Bn(t,"a")?zr(255*t.a):"0xFF",u},Se[z.RGB]=function(t,u){return Bn(t,"a")&&delete t.a,ot(t,u)},Se.RGBA=function(t,u){return t.a=Bn(t,"a")?Y(t.a):1,ot(t,u)},Se[z.HSL]=function(t,u){var i=At(t.r,t.g,t.b);return delete i.a,Ot(i,u)},Se.HSLA=function(t,u){var i=tn.HSL(t,u);return i.a=Bn(t,"a")?Y(t.a,u):1,i},Se[z.CMYK]=function(t,u){return _g(ts(t.r,t.g,t.b),u)},Se.CMYKA=function(t,u){var i=tn.CMYK(t,u);return i.a=Bn(t,"a")?Y(t.a,u):1,i},Se),is=function(t,u,i,f){var s=Zn(t),c=typeof t=="string",p=ut(t,s),g=typeof t=="string"&&Bn(p,"a")||typeof t!="string"&&Bn(t,"a"),m=At(p.r,p.g,p.b,p.a);g||delete m.a;var d=i?m.l/(u+1):(100-m.l)/(u+1),y=Array(u).fill(null).map(function(w,C){return en(en({},m),{l:m.l+d*(C+1)*(1-2*+i)})});switch(s){case z.HEX:default:return y.map(function(w){var C=On(w.h,w.s,w.l);return g&&(C.a=w.a),c?g?j.HEX(ot(en(en({},C),{a:Y(255*C.a)}),f)):j.HEX(ot(C,f)):g?tn.HEXA(C):tn.HEX(C)});case z.RGB:return y.map(function(w){var C=On(w.h,w.s,w.l);return g&&(C.a=w.a),c?j.RGB(ot(C,f)):g?tn.RGBA(C,f):tn.RGB(C,f)});case z.HSL:return y.map(function(w){return c?j.HSL(Ot(w,f)):g?tn.HSLA(en(en({},On(w.h,w.s,w.l)),{a:w.a}),f):tn.HSL(On(w.h,w.s,w.l),f)})}},Et=((tt={buildHarmony:function(t,u,i,f){var s=Zn(t),c=ut(t,s),p=At(c.r,c.g,c.b,c.a),g=typeof t=="string"&&Bn(c,"a")||typeof t!="string"&&Bn(t,"a"),m=typeof t=="string";switch(s){case z.HEX:default:return g?this.HEXA(Ot(p,0),u,i,m):this.HEX(Ot(p,0),u,i,m);case z.HSL:return g?this.HSLA(p,u,i,m,f):this.HSL(p,u,i,m,f);case z.RGB:return g?this.RGBA(p,u,i,m,f):this.RGB(p,u,i,m,f)}}})[z.HEX]=function(t,u,i,f){return u(t,i).map(function(s){return f?j.HEX(On(s.h,s.s,s.l)):tn.HEX(On(s.h,s.s,s.l))})},tt.HEXA=function(t,u,i,f){return u(t,i).map(function(s){return f?j.HEX(en(en({},On(s.h,s.s,s.l)),{a:255*Ln(s.a)})):tn.HEXA(en(en({},On(s.h,s.s,s.l)),{a:Ln(s.a)}))})},tt[z.RGB]=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.RGB(ot(On(c.h,c.s,c.l),s)):tn.RGB(On(c.h,c.s,c.l),s)})},tt.RGBA=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.RGB(ot(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)):tn.RGBA(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)})},tt[z.HSL]=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.HSL(Ot({h:c.h,s:c.s,l:c.l},s)):tn.HSL(On(c.h,c.s,c.l),s)})},tt.HSLA=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.HSL(Ot(en(en({},c),{a:Ln(c.a)}),s)):tn.HSLA(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)})},tt),Rt=((rt={mix:function(t,u){var i,f,s,c,p,g,m,d,y,w,C,F,P,q,E,B=t.map(function(H){var $=Zn(H);return ut(H,$)}),T=u===qn.SUBTRACTIVE?B.map(function(H){var $,K,nn,vn,de,Ee,ve,fr,at,ar,sr,fe,Gn,Bt,st=($=H.r,K=H.g,nn=H.b,vn=Math.min($,K,nn),de=Math.min(255-$,255-K,255-nn),Ee=$-vn,ve=K-vn,fr=nn-vn,at=Math.min(Ee,ve),ar=Ee-at,sr=(ve+at)/2,fe=(fr+ve-at)/2,Gn=Math.max(ar,sr,fe)/Math.max(Ee,ve,fr),Bt=isNaN(Gn)||Gn===1/0||Gn<=0?1:Gn,{r:ar/Bt+de,y:sr/Bt+de,b:fe/Bt+de});return Bn(H,"a")&&(st.a=H.a),st}):null;function S(H){var $=u===qn.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return H.reduce(function(K,nn){var vn=Bn(nn,"a")?nn.a:1,de={r:Math.min(K.r+nn.r*vn,255),b:Math.min(K.b+nn.b*vn,255),a:1-(1-vn)*(1-K.a)},Ee="g"in K?K.g:K.y,ve="g"in nn?nn.g:nn.y;return en(en({},de),u===qn.ADDITIVE?{g:Math.min(Ee+ve*vn,255)}:{y:Math.min(Ee+ve*vn,255)})},$)}if(u===qn.ADDITIVE)i=S(B);else{var L=S(T);f=L.r,s=L.y,c=L.b,p=Math.min(f,s,c),g=Math.min(255-f,255-s,255-c),m=f-p,d=s-p,y=c-p,w=Math.min(d,y),C=m+d-w,F=d+w,P=2*(y-w),q=Math.max(C,F,P)/Math.max(m,d,y),E=isNaN(q)||q===1/0||q<=0?1:q,(i={r:C/E+g,g:F/E+g,b:P/E+g}).a=L.a}return{r:Y(i.r),g:Y(i.g),b:Y(i.b),a:oe(i.a,0,1)}}})[z.HEX]=function(t,u,i){var f=this.mix(t,u);return delete f.a,i?j.HEX(f):tn.HEX(f)},rt.HEXA=function(t,u,i){var f=this.mix(t,u);return f.a=i?255*Ln(f.a):Ln(f.a),i?j.HEX(f):tn.HEXA(f)},rt[z.RGB]=function(t,u,i,f){var s=this.mix(t,u);return delete s.a,i?j.RGB(s):tn.RGB(s,f)},rt.RGBA=function(t,u,i,f){var s=this.mix(t,u);return i?j.RGB(s):tn.RGBA(s,f)},rt[z.HSL]=function(t,u,i,f){var s=this.mix(t,u),c=At(s.r,s.g,s.b);return delete s.a,delete c.a,i?j.HSL(c):tn.HSL(s,f)},rt.HSLA=function(t,u,i,f){var s=this.mix(t,u),c=At(s.r,s.g,s.b,s.a);return i?j.HSL(c):tn.HSLA(s,f)},rt),ot=function(t,u){return en({r:Y(t.r,u),g:Y(t.g,u),b:Y(t.b,u)},Bn(t,"a")?{a:Y(t.a,u)}:{})},Ot=function(t,u){return en({h:Y(t.h,u),s:Y(t.s,u),l:Y(t.l,u)},Bn(t,"a")?{a:Y(t.a,u)}:{})},_g=function(t,u){return{c:Y(t.c,u),m:Y(t.m,u),y:Y(t.y,u),k:Y(t.k,u)}},qe=function(t,u,i,f,s,c){var p=s(ut(t,u),f);return i?c(p):p},It=function(t,u,i,f,s,c,p){i<1&&(i=5);var g=function(m,d,y){var w=y-1,C=(d.r-m.r)/w,F=(d.g-m.g)/w,P=(d.b-m.b)/w,q=Ln(m.a),E=(Ln(d.a)-q)/w;return Array(y).fill(null).map(function(B,T){return T===0?m:T===w?d:{r:Y(m.r+C*T),g:Y(m.g+F*T),b:Y(m.b+P*T),a:Y(q+E*T)}})}(ut(t),ut(u),i);return g.map(function(m){var d=c(m,s);return f?p(d):d})},yg=function(){function t(u,i){i===void 0&&(i=6),this.rgb=ut(u),this._decimals=i,this.updateHSL(),this.updateCMYK()}return t.prototype.updateRGB=function(){this.rgb=en(en({},On(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},t.prototype.updateRGBFromCMYK=function(){this.rgb=en(en({},Ju(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},t.prototype.updateHSL=function(){this.hsl=At(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},t.prototype.updateCMYK=function(){this.cmyk=ts(this.rgb.r,this.rgb.g,this.rgb.b)},t.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},t.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},t.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},t.prototype.setDecimals=function(u){return this._decimals=u,this},t.prototype.setH=function(u){return this.hsl.h=ir(u),this.updateRGBAndCMYK()},t.prototype.setS=function(u){return this.hsl.s=oe(u,0,100),this.updateRGBAndCMYK()},t.prototype.setL=function(u){return this.hsl.l=oe(u,0,100),this.updateRGBAndCMYK()},t.prototype.setR=function(u){return this.rgb.r=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setG=function(u){return this.rgb.g=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setB=function(u){return this.rgb.b=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setA=function(u){return this.hsl.a=this.rgb.a=oe(u,0,1),this},t.prototype.setC=function(u){return this.cmyk.c=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setM=function(u){return this.cmyk.m=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setY=function(u){return this.cmyk.y=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setK=function(u){return this.cmyk.k=oe(u,0,100),this.updateRGBAndHSL()},Object.defineProperty(t.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"H",{get:function(){return Y(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"S",{get:function(){return Y(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"L",{get:function(){return Y(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"R",{get:function(){return Y(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"G",{get:function(){return Y(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"B",{get:function(){return Y(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"A",{get:function(){return Y(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"C",{get:function(){return Y(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"M",{get:function(){return Y(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Y",{get:function(){return Y(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"K",{get:function(){return Y(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXObject",{get:function(){return tn.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXAObject",{get:function(){return tn.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBAObject",{get:function(){return en(en({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLAObject",{get:function(){return en(en({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKAObject",{get:function(){return en(en({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEX",{get:function(){return j.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXA",{get:function(){return j.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGB",{get:function(){return j.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBA",{get:function(){return j.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSL",{get:function(){return j.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLA",{get:function(){return j.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYK",{get:function(){return j.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKA",{get:function(){return j.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),t.toHEX=function(u,i){i===void 0&&(i=!0);var f=Zn(u);return qe(u,f,i,0,tn.HEX,j.HEX)},t.toHEXA=function(u,i){i===void 0&&(i=!0);var f=Zn(u);return qe(u,f,i,0,tn.HEXA,j.HEX)},t.toRGB=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.RGB,j.RGB)},t.toRGBA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.RGBA,j.RGB)},t.toHSL=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.HSL,j.HSL)},t.toHSLA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.HSLA,j.HSL)},t.toCMYK=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.CMYK,j.CMYK)},t.toCMYKA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.CMYKA,j.CMYK)},t.getBlendHEX=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HEX,j.HEX)},t.getBlendHEXA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HEXA,j.HEX)},t.getBlendRGB=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.RGB,j.RGB)},t.getBlendRGBA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.RGBA,j.RGB)},t.getBlendHSL=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HSL,j.HSL)},t.getBlendHSLA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HSLA,j.HSL)},t.getMixHEX=function(u,i,f){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),Rt.HEX(u,i,f)},t.getMixHEXA=function(u,i,f){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),Rt.HEXA(u,i,f)},t.getMixRGB=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.RGB(u,i,f,s)},t.getMixRGBA=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.RGBA(u,i,f,s)},t.getMixHSL=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.HSL(u,i,f,s)},t.getMixHSLA=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.HSLA(u,i,f,s)},t.getShades=function(u,i,f){return f===void 0&&(f=6),is(u,i,!0,f)},t.getTints=function(u,i,f){return f===void 0&&(f=6),is(u,i,!1,f)},t.getHarmony=function(u,i,f,s){return i===void 0&&(i=Ae.COMPLEMENTARY),f===void 0&&(f=qn.ADDITIVE),s===void 0&&(s=6),function(c,p,g,m){var d;return(d={},d[Ae.ANALOGOUS]=Et.buildHarmony(p,lg,m,g),d[Ae.COMPLEMENTARY]=Et.buildHarmony(p,cg,m,g),d[Ae.SPLIT_COMPLEMENTARY]=Et.buildHarmony(p,hg,m,g),d[Ae.TRIADIC]=Et.buildHarmony(p,pg,m,g),d[Ae.TETRADIC]=Et.buildHarmony(p,gg,m,g),d[Ae.SQUARE]=Et.buildHarmony(p,dg,m,g),d)[c]}(i,u,s,f)},t}();const bg={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:In,PI:xg}=Math,ur=(t,u)=>new yg(t).setA(u??bg.alpha).RGBA,wg=(t,u)=>ur(t,u);function Ge(t,u){return{width:t.width*u.scale.x,height:t.height*u.scale.y,x:t.x*u.scale.x+u.x,y:t.y*u.scale.y+u.y}}const Qu={text:{draw(t,u,i){if(t.text){const f=Ge(t,{x:t.textX,y:t.textY,scale:{x:1,y:1}}),s=Ge(f,i);u.font=`${t.fontSize*i.scale.x}px Arial`,u.fillStyle=ur(t.fontColor,t.alpha),u.fillText(t.text,s.x,s.y)}},test(t){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},path:{draw(t,u,i){const[f,...s]=t.points;u.beginPath(),u.lineCap="round",u.lineJoin="round",u.strokeStyle=wg(t.fill,t.alpha);const{x:c,y:p,width:g}=Ge({...f,width:t.lineWidth,height:0},i);u.lineWidth=In(g),u.moveTo(In(c),In(p));for(const m of s){const{x:d,y}=Ge({...m,width:0,height:0},i);u.lineTo(In(d),In(y))}u.stroke()},test(t){var u,i,f,s;return{left:((u=_n.minBy(t.points,"x"))==null?void 0:u.x)??0-t.lineWidth??0,right:((i=_n.maxBy(t.points,"x"))==null?void 0:i.x)??0+t.lineWidth??0,top:((f=_n.minBy(t.points,"y"))==null?void 0:f.y)??0-t.lineWidth??0,bottom:((s=_n.maxBy(t.points,"y"))==null?void 0:s.y)??0+t.lineWidth??0}}},rect:{draw(t,u,i){const{x:f,y:s,width:c,height:p}=Ge(t,i);u.fillStyle=ur(t.fill,t.alpha),u.fillRect(In(f),In(s),In(c)||1,In(p)||1)},test(t){return{left:t.x,right:t.x+t.width,top:t.y,bottom:t.y+t.height}}},polygon:{draw(t,u,i){const[f,...s]=t.points;u.beginPath(),u.fillStyle=ur(t.fill,t.alpha);const{x:c,y:p}=Ge({...f,width:0,height:0},i);u.moveTo(In(c),In(p));for(const g of s){const{x:m,y:d}=Ge({...g,width:0,height:0},i);u.lineTo(In(m),In(d))}u.closePath(),u.fill()},test(t){var u,i,f,s;return{left:((u=_n.minBy(t.points,"x"))==null?void 0:u.x)??0,right:((i=_n.maxBy(t.points,"x"))==null?void 0:i.x)??0,top:((f=_n.minBy(t.points,"y"))==null?void 0:f.y)??0,bottom:((s=_n.maxBy(t.points,"y"))==null?void 0:s.y)??0}}},circle:{draw(t,u,i){u.fillStyle=ur(t.fill,t.alpha),u.beginPath();const f=Ge({...t,width:t.radius,height:t.radius},i);u.ellipse(In(f.x),In(f.y),In(f.width),In(f.height),0,0,2*xg),u.fill()},test(t){return{left:t.x-t.radius,right:t.x+t.radius,top:t.y-t.radius,bottom:t.y+t.radius}}}},Ag=t=>new Error(`The component ${t.$} is not supported by this renderer.`);function us(t,u,i,f){if(t in Qu)Qu[t].draw(u,i,f);else throw Ag(u)}const Sg=(t,u,i)=>{us(t.$,t,u,i),t.text&&us("text",t,u,i)},Eg=({x:t,y:u})=>{const i=Math.abs(t),f=Math.abs(u),s=Math.max(i,f),c=2*s,p=Math.pow(c-1,2);return t==s&&u>-s?p+u-(-s+1):u==s?p+s-t+c-1:t==-s?p+s-u+2*c-1:u==-s?p+t+s+3*c-1:0},{log2:Rg,max:Og}=Math,os=t=>_n.floor(Rg(t+1));function Ig({right:t,left:u,bottom:i,top:f},s){const c=Og(os(t-u),os(i-f))-s,p=2**c,g={left:_n.floor(u/p),right:_n.ceil((t+1)/p),top:_n.floor(f/p),bottom:_n.ceil((i+1)/p)};return{zoom:c,order:p,tiles:_n.shuffle(Xc({x:_n.range(g.left,g.right+1),y:_n.range(g.top,g.bottom+1)}).map(m=>{const d=m.x*p,y=m.y*p;return{tile:m,bounds:{left:d-p/2,right:d+p/2,top:y-p/2,bottom:y+p/2}}}))}}const Fg=200;class Cg extends ig{constructor(){super(...arguments);ge(this,Zr);ge(this,ft);ge(this,Jr);ge(this,Qr);ge(this,Jn,void 0);ge(this,Ft,void 0);ge(this,Ne,void 0);ge(this,$e,void 0);ge(this,or,void 0);ge(this,Ct,void 0);xe(this,Jn,eg),xe(this,Ft,{bottom:256,top:0,left:0,right:256}),xe(this,Ne,new ng(16)),xe(this,$e,{}),xe(this,or,0),xe(this,Ct,_n.once(()=>_n.debounce(()=>this.render(),wn(this,Jn).refreshInterval,{leading:!1,trailing:!0}))),this.renderTile=Up((i,f)=>Je(this,Qr,Yc).call(this,i,f),{normalizer:JSON.stringify,max:Fg})}getView(){return{system:wn(this,Ne),world:wn(this,$e)}}setFrustum(i){xe(this,Ft,i),wn(this,Ct).call(this)()}setTileResolution(i){_n.isEqual(i,wn(this,Jn).tileResolution)||(Object.assign(wn(this,Jn),{tileResolution:i}),Je(this,ft,Tr).call(this))}add(i,f){const s=_n.map(i,c=>({...Qu[c.$].test(c),component:c,index:Je(this,Zr,Nc).call(this)}));wn(this,Ne).load(s),wn(this,$e)[f]=s,Je(this,ft,Tr).call(this)}remove(i){for(const f of wn(this,$e)[i])wn(this,Ne).remove(f);delete wn(this,$e)[i],Je(this,ft,Tr).call(this)}setup(i){xe(this,Jn,i),Je(this,ft,Tr).call(this)}async render(){for(const{tile:i,bounds:f}of Ig(wn(this,Ft),wn(this,Jn).tileSubdivision).tiles)if(Je(this,Jr,$c).call(this,i)){const s=this.renderTile(f,wn(this,Jn).tileResolution);this.emit("message",{action:"update",payload:{bounds:f,bitmap:s}},[])}}}Jn=new WeakMap,Ft=new WeakMap,Ne=new WeakMap,$e=new WeakMap,or=new WeakMap,Zr=new WeakSet,Nc=function(){return Gc(this,or)._++},ft=new WeakSet,Tr=function(){this.renderTile.clear(),wn(this,Ct).call(this)()},Ct=new WeakMap,Jr=new WeakSet,$c=function({x:i,y:f}){const{workerCount:s,workerIndex:c}=wn(this,Jn);return Eg({x:i,y:f})%s===c},Qr=new WeakSet,Yc=function(i,f){const{top:s,right:c,bottom:p,left:g}=i,m={x:f.width/(c-g),y:f.height/(p-s)},d=new OffscreenCanvas(f.width,f.height),y=d.getContext("2d",{alpha:!1});y.imageSmoothingEnabled=!1,y.fillStyle=wn(this,Jn).backgroundColor,y.fillRect(0,0,f.width,f.height);for(const{component:w}of _n.sortBy(wn(this,Ne).search({minX:g,maxX:c,maxY:p,minY:s}),"index"))Sg(w,y,{scale:m,x:-g*m.x,y:-s*m.y});return d.transferToImageBitmap()};const fs=new Cg;fs.on("message",(t,u)=>self.postMessage(t,u)),self.onmessage=t=>{const{action:u,payload:i}=t.data;fs[u](...i)}})(); diff --git a/assets/index-9433f878.js b/assets/index-60b1781c.js similarity index 57% rename from assets/index-9433f878.js rename to assets/index-60b1781c.js index bfdadebe..85803454 100644 --- a/assets/index-9433f878.js +++ b/assets/index-60b1781c.js @@ -1,4 +1,4 @@ -var Coe=Object.defineProperty;var Toe=(e,t,n)=>t in e?Coe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var hm=(e,t,n)=>(Toe(e,typeof t!="symbol"?t+"":t,n),n),oD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var rt=(e,t,n)=>(oD(e,t,"read from private field"),n?n.call(e):t.get(e)),yr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},uu=(e,t,n,r)=>(oD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var YU=(e,t,n,r)=>({set _(i){uu(e,t,i,n)},get _(){return rt(e,t,r)}}),oo=(e,t,n)=>(oD(e,t,"access private method"),n);function koe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Kq={exports:{}},IT={},Qq={exports:{}},hn={};/** +var Ooe=Object.defineProperty;var Moe=(e,t,n)=>t in e?Ooe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gm=(e,t,n)=>(Moe(e,typeof t!="symbol"?t+"":t,n),n),sD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var rt=(e,t,n)=>(sD(e,t,"read from private field"),n?n.call(e):t.get(e)),yr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},du=(e,t,n,r)=>(sD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ZU=(e,t,n,r)=>({set _(i){du(e,t,i,n)},get _(){return rt(e,t,r)}}),oo=(e,t,n)=>(sD(e,t,"access private method"),n);function Loe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var nX={exports:{}},RT={},rX={exports:{}},hn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Coe=Object.defineProperty;var Toe=(e,t,n)=>t in e?Coe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var pw=Symbol.for("react.element"),Aoe=Symbol.for("react.portal"),Ioe=Symbol.for("react.fragment"),Roe=Symbol.for("react.strict_mode"),Poe=Symbol.for("react.profiler"),Ooe=Symbol.for("react.provider"),Moe=Symbol.for("react.context"),Loe=Symbol.for("react.forward_ref"),Doe=Symbol.for("react.suspense"),Noe=Symbol.for("react.memo"),Boe=Symbol.for("react.lazy"),KU=Symbol.iterator;function $oe(e){return e===null||typeof e!="object"?null:(e=KU&&e[KU]||e["@@iterator"],typeof e=="function"?e:null)}var Jq={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zq=Object.assign,eX={};function hv(e,t,n){this.props=e,this.context=t,this.refs=eX,this.updater=n||Jq}hv.prototype.isReactComponent={};hv.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tX(){}tX.prototype=hv.prototype;function o4(e,t,n){this.props=e,this.context=t,this.refs=eX,this.updater=n||Jq}var s4=o4.prototype=new tX;s4.constructor=o4;Zq(s4,hv.prototype);s4.isPureReactComponent=!0;var QU=Array.isArray,nX=Object.prototype.hasOwnProperty,a4={current:null},rX={key:!0,ref:!0,__self:!0,__source:!0};function iX(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)nX.call(t,r)&&!rX.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?Coe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Hoe=P,Woe=Symbol.for("react.element"),Goe=Symbol.for("react.fragment"),Voe=Object.prototype.hasOwnProperty,qoe=Hoe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xoe={key:!0,ref:!0,__self:!0,__source:!0};function oX(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Voe.call(t,r)&&!Xoe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Woe,type:e,key:o,ref:s,props:i,_owner:qoe.current}}IT.Fragment=Goe;IT.jsx=oX;IT.jsxs=oX;Kq.exports=IT;var C=Kq.exports;const Yoe={black:"#000",white:"#fff"},Rg=Yoe,Koe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},dd=Koe,Qoe={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},sX=Qoe,Joe={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},qh=Joe,Zoe={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},aX=Zoe,ese={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},tse=ese,nse={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fd=nse,rse={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xh=rse,ise={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},ose=ise,sse={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},ase=sse,lse={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},hd=lse,cse={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},use=cse,dse={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},fse=dse,hse={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},lX=hse,pse={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},mse=pse,gse={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},sp=gse,vse={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},yse=vse,bse={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},xse=bse,wse={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},c4=wse,_se={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},Sse=_se,cX=Object.freeze(Object.defineProperty({__proto__:null,amber:mse,blue:fd,blueGrey:Sse,brown:xse,common:Rg,cyan:ose,deepOrange:yse,deepPurple:aX,green:hd,grey:c4,indigo:tse,lightBlue:Xh,lightGreen:use,lime:fse,orange:sp,pink:sX,purple:qh,red:dd,teal:ase,yellow:lX},Symbol.toStringTag,{value:"Module"}));function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=uX(e[n])}),t}function ts(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return ap(e)&&ap(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ap(t[i])&&i in e&&ap(e[i])?r[i]=ts(e[i],t[i],n):n.clone?r[i]=ap(t[i])?uX(t[i]):t[i]:r[i]=t[i])}),r}var dX={exports:{}},Ese="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Cse=Ese,Tse=Cse;function fX(){}function hX(){}hX.resetWarningCache=fX;var kse=function(){function e(r,i,o,s,a,c){if(c!==Tse){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:hX,resetWarningCache:fX};return n.PropTypes=n,n};dX.exports=kse();var mw=dX.exports;const mb=us(mw);function Jd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function RT(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function XS(e,t){var n,r;return P.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Fr(e){return e&&e.ownerDocument||document}function Du(e){return Fr(e).defaultView||window}function q$(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ase=typeof window<"u"?P.useLayoutEffect:P.useEffect,jo=Ase;let e6=0;function Ise(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(e6+=1,n(`mui-${e6}`))},[t]),r}const t6=$E["useId".toString()];function u4(e){if(t6!==void 0){const t=t6();return e??t}return Ise(e)}function i1({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=P.useRef(e!==void 0),[o,s]=P.useState(t),a=i?e:o,c=P.useCallback(u=>{i||s(u)},[]);return[a,c]}function mo(e){const t=P.useRef(e);return jo(()=>{t.current=e}),P.useCallback((...n)=>(0,t.current)(...n),[])}function Tr(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{q$(n,t)})},e)}let PT=!0,X$=!1,n6;const Rse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pse(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Rse[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ose(e){e.metaKey||e.altKey||e.ctrlKey||(PT=!0)}function aD(){PT=!1}function Mse(){this.visibilityState==="hidden"&&X$&&(PT=!0)}function Lse(e){e.addEventListener("keydown",Ose,!0),e.addEventListener("mousedown",aD,!0),e.addEventListener("pointerdown",aD,!0),e.addEventListener("touchstart",aD,!0),e.addEventListener("visibilitychange",Mse,!0)}function Dse(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return PT||Pse(t)}function d4(){const e=P.useCallback(i=>{i!=null&&Lse(i.ownerDocument)},[]),t=P.useRef(!1);function n(){return t.current?(X$=!0,window.clearTimeout(n6),n6=window.setTimeout(()=>{X$=!1},100),t.current=!1,!0):!1}function r(i){return Dse(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function pX(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let pm;function mX(){if(pm)return pm;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),pm="reverse",e.scrollLeft>0?pm="default":(e.scrollLeft=1,e.scrollLeft===0&&(pm="negative")),document.body.removeChild(e),pm}function Nse(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(mX()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Bse={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},$se=Bse;function f4(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=$({},o),Object.keys(i).forEach(s=>{n[r][s]=f4(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function At(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const r6=e=>e,Fse=()=>{let e=r6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=r6}}},zse=Fse(),gX=zse,jse={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ct(e,t,n="Mui"){const r=jse[t];return r?`${n}-${r}`:`${gX.generate(e)}-${t}`}function It(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ct(e,i,n)}),r}const Rp="$$material";function Ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function vX(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Use=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Hse=vX(function(e){return Use.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Wse(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yi(pv,--ls):0,Pg--,ii===10&&(Pg=1,MT--),ii}function Us(){return ii=ls2||s1(ii)>3?"":" "}function rae(e,t){for(;--t&&Us()&&!(ii<48||ii>102||ii>57&&ii<65||ii>70&&ii<97););return gw(e,YS()+(t<6&&Jl()==32&&Us()==32))}function K$(e){for(;Us();)switch(ii){case e:return ls;case 34:case 39:e!==34&&e!==39&&K$(ii);break;case 40:e===41&&K$(e);break;case 92:Us();break}return ls}function iae(e,t){for(;Us()&&e+ii!==47+10;)if(e+ii===42+42&&Jl()===47)break;return"/*"+gw(t,ls-1)+"*"+OT(e===47?e:Us())}function oae(e){for(;!s1(Jl());)Us();return gw(e,ls)}function sae(e){return SX(QS("",null,null,null,[""],e=_X(e),0,[0],e))}function QS(e,t,n,r,i,o,s,a,c){for(var u=0,f=0,h=s,p=0,g=0,v=0,y=1,S=1,w=1,b=0,x="",E=i,I=o,A=r,k=x;S;)switch(v=b,b=Us()){case 40:if(v!=108&&Yi(k,h-1)==58){Y$(k+=Mn(KS(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=KS(b);break;case 9:case 10:case 13:case 32:k+=nae(v);break;case 92:k+=rae(YS()-1,7);continue;case 47:switch(Jl()){case 42:case 47:s_(aae(iae(Us(),YS()),t,n),c);break;default:k+="/"}break;case 123*y:a[u++]=Hl(k)*w;case 125*y:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+f:w==-1&&(k=Mn(k,/\f/g,"")),g>0&&Hl(k)-h&&s_(g>32?o6(k+";",r,n,h-1):o6(Mn(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(s_(A=i6(k,t,n,u,f,i,a,x,E=[],I=[],h),o),b===123)if(f===0)QS(k,t,A,A,E,o,h,a,I);else switch(p===99&&Yi(k,3)===110?100:p){case 100:case 108:case 109:case 115:QS(e,A,A,r&&s_(i6(e,A,A,0,0,i,a,x,i,E=[],h),I),i,I,h,a,r?E:I);break;default:QS(k,A,A,A,[""],I,0,a,I)}}u=f=g=0,y=w=1,x=k="",h=s;break;case 58:h=1+Hl(k),g=v;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&tae()==125)continue}switch(k+=OT(b),b*y){case 38:w=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(Hl(k)-1)*w,w=1;break;case 64:Jl()===45&&(k+=KS(Us())),p=Jl(),f=h=Hl(x=k+=oae(YS())),b++;break;case 45:v===45&&Hl(k)==2&&(y=0)}}return o}function i6(e,t,n,r,i,o,s,a,c,u,f){for(var h=i-1,p=i===0?o:[""],g=m4(p),v=0,y=0,S=0;v0?p[w]+" "+b:Mn(b,/&\f/g,p[w])))&&(c[S++]=x);return LT(e,t,n,i===0?h4:a,c,u,f)}function aae(e,t,n){return LT(e,t,n,yX,OT(eae()),o1(e,2,-2),0)}function o6(e,t,n,r){return LT(e,t,n,p4,o1(e,0,r),o1(e,r+1,-1),r)}function ug(e,t){for(var n="",r=m4(e),i=0;i6)switch(Yi(e,t+1)){case 109:if(Yi(e,t+4)!==45)break;case 102:return Mn(e,/(.+:)(.+)-([^]+)/,"$1"+On+"$2-$3$1"+FE+(Yi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Y$(e,"stretch")?EX(Mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yi(e,t+1)!==115)break;case 6444:switch(Yi(e,Hl(e)-3-(~Y$(e,"!important")&&10))){case 107:return Mn(e,":",":"+On)+e;case 101:return Mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+On+(Yi(e,14)===45?"inline-":"")+"box$3$1"+On+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Yi(e,t+11)){case 114:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return On+e+lo+e+e}return e}var gae=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case p4:t.return=EX(t.value,t.length);break;case bX:return ug([gb(t,{value:Mn(t.value,"@","@"+On)})],i);case h4:if(t.length)return Zse(t.props,function(o){switch(Jse(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ug([gb(t,{props:[Mn(o,/:(read-\w+)/,":"+FE+"$1")]})],i);case"::placeholder":return ug([gb(t,{props:[Mn(o,/:(plac\w+)/,":"+On+"input-$1")]}),gb(t,{props:[Mn(o,/:(plac\w+)/,":"+FE+"$1")]}),gb(t,{props:[Mn(o,/:(plac\w+)/,lo+"input-$1")]})],i)}return""})}},vae=[gae],yae=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||vae,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),w=1;w{t[n]=gX(e[n])}),t}function ns(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return lp(e)&&lp(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(lp(t[i])&&i in e&&lp(e[i])?r[i]=ns(e[i],t[i],n):n.clone?r[i]=lp(t[i])?gX(t[i]):t[i]:r[i]=t[i])}),r}var vX={exports:{}},Pse="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ose=Pse,Mse=Ose;function yX(){}function bX(){}bX.resetWarningCache=yX;var Lse=function(){function e(r,i,o,s,a,c){if(c!==Mse){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:bX,resetWarningCache:yX};return n.PropTypes=n,n};vX.exports=Lse();var pw=vX.exports;const pb=ds(pw);function Jd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function PT(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function KS(e,t){var n,r;return R.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Fr(e){return e&&e.ownerDocument||document}function Du(e){return Fr(e).defaultView||window}function X$(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Dse=typeof window<"u"?R.useLayoutEffect:R.useEffect,jo=Dse;let i6=0;function Nse(e){const[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t==null&&(i6+=1,n(`mui-${i6}`))},[t]),r}const o6=zE["useId".toString()];function d4(e){if(o6!==void 0){const t=o6();return e??t}return Nse(e)}function r1({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=R.useRef(e!==void 0),[o,s]=R.useState(t),a=i?e:o,c=R.useCallback(u=>{i||s(u)},[]);return[a,c]}function mo(e){const t=R.useRef(e);return jo(()=>{t.current=e}),R.useCallback((...n)=>(0,t.current)(...n),[])}function Tr(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{X$(n,t)})},e)}let OT=!0,Y$=!1,s6;const Bse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $se(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Bse[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Fse(e){e.metaKey||e.altKey||e.ctrlKey||(OT=!0)}function lD(){OT=!1}function zse(){this.visibilityState==="hidden"&&Y$&&(OT=!0)}function jse(e){e.addEventListener("keydown",Fse,!0),e.addEventListener("mousedown",lD,!0),e.addEventListener("pointerdown",lD,!0),e.addEventListener("touchstart",lD,!0),e.addEventListener("visibilitychange",zse,!0)}function Use(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return OT||$se(t)}function f4(){const e=R.useCallback(i=>{i!=null&&jse(i.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(Y$=!0,window.clearTimeout(s6),s6=window.setTimeout(()=>{Y$=!1},100),t.current=!1,!0):!1}function r(i){return Use(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function xX(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let vm;function wX(){if(vm)return vm;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),vm="reverse",e.scrollLeft>0?vm="default":(e.scrollLeft=1,e.scrollLeft===0&&(vm="negative")),document.body.removeChild(e),vm}function Hse(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(wX()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Wse={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Gse=Wse;function h4(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=$({},o),Object.keys(i).forEach(s=>{n[r][s]=h4(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function At(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const a6=e=>e,Vse=()=>{let e=a6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a6}}},qse=Vse(),_X=qse,Xse={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ct(e,t,n="Mui"){const r=Xse[t];return r?`${n}-${r}`:`${_X.generate(e)}-${t}`}function It(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ct(e,i,n)}),r}const Pp="$$material";function Ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function SX(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yse=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kse=SX(function(e){return Yse.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Qse(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yi(gv,--cs):0,Lg--,ii===10&&(Lg=1,LT--),ii}function Hs(){return ii=cs2||o1(ii)>3?"":" "}function uae(e,t){for(;--t&&Hs()&&!(ii<48||ii>102||ii>57&&ii<65||ii>70&&ii<97););return mw(e,QS()+(t<6&&Jl()==32&&Hs()==32))}function Q$(e){for(;Hs();)switch(ii){case e:return cs;case 34:case 39:e!==34&&e!==39&&Q$(ii);break;case 40:e===41&&Q$(e);break;case 92:Hs();break}return cs}function dae(e,t){for(;Hs()&&e+ii!==47+10;)if(e+ii===42+42&&Jl()===47)break;return"/*"+mw(t,cs-1)+"*"+MT(e===47?e:Hs())}function fae(e){for(;!o1(Jl());)Hs();return mw(e,cs)}function hae(e){return IX(ZS("",null,null,null,[""],e=AX(e),0,[0],e))}function ZS(e,t,n,r,i,o,s,a,c){for(var u=0,f=0,h=s,p=0,g=0,v=0,y=1,S=1,w=1,b=0,x="",E=i,I=o,A=r,k=x;S;)switch(v=b,b=Hs()){case 40:if(v!=108&&Yi(k,h-1)==58){K$(k+=Mn(JS(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=JS(b);break;case 9:case 10:case 13:case 32:k+=cae(v);break;case 92:k+=uae(QS()-1,7);continue;case 47:switch(Jl()){case 42:case 47:a_(pae(dae(Hs(),QS()),t,n),c);break;default:k+="/"}break;case 123*y:a[u++]=Hl(k)*w;case 125*y:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+f:w==-1&&(k=Mn(k,/\f/g,"")),g>0&&Hl(k)-h&&a_(g>32?c6(k+";",r,n,h-1):c6(Mn(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(a_(A=l6(k,t,n,u,f,i,a,x,E=[],I=[],h),o),b===123)if(f===0)ZS(k,t,A,A,E,o,h,a,I);else switch(p===99&&Yi(k,3)===110?100:p){case 100:case 108:case 109:case 115:ZS(e,A,A,r&&a_(l6(e,A,A,0,0,i,a,x,i,E=[],h),I),i,I,h,a,r?E:I);break;default:ZS(k,A,A,A,[""],I,0,a,I)}}u=f=g=0,y=w=1,x=k="",h=s;break;case 58:h=1+Hl(k),g=v;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&lae()==125)continue}switch(k+=MT(b),b*y){case 38:w=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(Hl(k)-1)*w,w=1;break;case 64:Jl()===45&&(k+=JS(Hs())),p=Jl(),f=h=Hl(x=k+=fae(QS())),b++;break;case 45:v===45&&Hl(k)==2&&(y=0)}}return o}function l6(e,t,n,r,i,o,s,a,c,u,f){for(var h=i-1,p=i===0?o:[""],g=g4(p),v=0,y=0,S=0;v0?p[w]+" "+b:Mn(b,/&\f/g,p[w])))&&(c[S++]=x);return DT(e,t,n,i===0?p4:a,c,u,f)}function pae(e,t,n){return DT(e,t,n,EX,MT(aae()),i1(e,2,-2),0)}function c6(e,t,n,r){return DT(e,t,n,m4,i1(e,0,r),i1(e,r+1,-1),r)}function hg(e,t){for(var n="",r=g4(e),i=0;i6)switch(Yi(e,t+1)){case 109:if(Yi(e,t+4)!==45)break;case 102:return Mn(e,/(.+:)(.+)-([^]+)/,"$1"+On+"$2-$3$1"+jE+(Yi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~K$(e,"stretch")?RX(Mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yi(e,t+1)!==115)break;case 6444:switch(Yi(e,Hl(e)-3-(~K$(e,"!important")&&10))){case 107:return Mn(e,":",":"+On)+e;case 101:return Mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+On+(Yi(e,14)===45?"inline-":"")+"box$3$1"+On+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Yi(e,t+11)){case 114:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return On+e+lo+e+e}return e}var Sae=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case m4:t.return=RX(t.value,t.length);break;case CX:return hg([mb(t,{value:Mn(t.value,"@","@"+On)})],i);case p4:if(t.length)return sae(t.props,function(o){switch(oae(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hg([mb(t,{props:[Mn(o,/:(read-\w+)/,":"+jE+"$1")]})],i);case"::placeholder":return hg([mb(t,{props:[Mn(o,/:(plac\w+)/,":"+On+"input-$1")]}),mb(t,{props:[Mn(o,/:(plac\w+)/,":"+jE+"$1")]}),mb(t,{props:[Mn(o,/:(plac\w+)/,lo+"input-$1")]})],i)}return""})}},Eae=[Sae],Cae=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Eae,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),w=1;w=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Nae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bae=/[A-Z]|^ms/g,$ae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PX=function(t){return t.charCodeAt(1)===45},d6=function(t){return t!=null&&typeof t!="boolean"},lD=vX(function(e){return PX(e)?e:e.replace(Bae,"-$&").toLowerCase()}),f6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace($ae,function(r,i,o){return Wl={name:i,styles:o,next:Wl},i})}return Nae[t]!==1&&!PX(t)&&typeof n=="number"&&n!==0?n+"px":n};function a1(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Wl={name:n.name,styles:n.styles,next:Wl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Wl={name:r.name,styles:r.styles,next:Wl},r=r.next;var i=n.styles+";";return i}return Fae(e,t,n)}case"function":{if(e!==void 0){var o=Wl,s=n(e);return Wl=o,a1(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function Fae(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Hae:Wae},g6=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Gae=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return IX(n,r,i),jae(function(){return RX(n,r,i)}),null},Vae=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=g6(t,n,r),c=a||m6(i),u=!c("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,g=1;gt(Xae(i)?n:i):t;return C.jsx(Uae,{styles:r})}/** + */var Li=typeof Symbol=="function"&&Symbol.for,v4=Li?Symbol.for("react.element"):60103,y4=Li?Symbol.for("react.portal"):60106,NT=Li?Symbol.for("react.fragment"):60107,BT=Li?Symbol.for("react.strict_mode"):60108,$T=Li?Symbol.for("react.profiler"):60114,FT=Li?Symbol.for("react.provider"):60109,zT=Li?Symbol.for("react.context"):60110,b4=Li?Symbol.for("react.async_mode"):60111,jT=Li?Symbol.for("react.concurrent_mode"):60111,UT=Li?Symbol.for("react.forward_ref"):60112,HT=Li?Symbol.for("react.suspense"):60113,Tae=Li?Symbol.for("react.suspense_list"):60120,WT=Li?Symbol.for("react.memo"):60115,GT=Li?Symbol.for("react.lazy"):60116,kae=Li?Symbol.for("react.block"):60121,Aae=Li?Symbol.for("react.fundamental"):60117,Iae=Li?Symbol.for("react.responder"):60118,Rae=Li?Symbol.for("react.scope"):60119;function ra(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case v4:switch(e=e.type,e){case b4:case jT:case NT:case $T:case BT:case HT:return e;default:switch(e=e&&e.$$typeof,e){case zT:case UT:case GT:case WT:case FT:return e;default:return t}}case y4:return t}}}function OX(e){return ra(e)===jT}Hn.AsyncMode=b4;Hn.ConcurrentMode=jT;Hn.ContextConsumer=zT;Hn.ContextProvider=FT;Hn.Element=v4;Hn.ForwardRef=UT;Hn.Fragment=NT;Hn.Lazy=GT;Hn.Memo=WT;Hn.Portal=y4;Hn.Profiler=$T;Hn.StrictMode=BT;Hn.Suspense=HT;Hn.isAsyncMode=function(e){return OX(e)||ra(e)===b4};Hn.isConcurrentMode=OX;Hn.isContextConsumer=function(e){return ra(e)===zT};Hn.isContextProvider=function(e){return ra(e)===FT};Hn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===v4};Hn.isForwardRef=function(e){return ra(e)===UT};Hn.isFragment=function(e){return ra(e)===NT};Hn.isLazy=function(e){return ra(e)===GT};Hn.isMemo=function(e){return ra(e)===WT};Hn.isPortal=function(e){return ra(e)===y4};Hn.isProfiler=function(e){return ra(e)===$T};Hn.isStrictMode=function(e){return ra(e)===BT};Hn.isSuspense=function(e){return ra(e)===HT};Hn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===NT||e===jT||e===$T||e===BT||e===HT||e===Tae||typeof e=="object"&&e!==null&&(e.$$typeof===GT||e.$$typeof===WT||e.$$typeof===FT||e.$$typeof===zT||e.$$typeof===UT||e.$$typeof===Aae||e.$$typeof===Iae||e.$$typeof===Rae||e.$$typeof===kae)};Hn.typeOf=ra;PX.exports=Hn;var Pae=PX.exports,x4=Pae,Oae={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mae={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Lae={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w4={};w4[x4.ForwardRef]=Lae;w4[x4.Memo]=MX;function d6(e){return x4.isMemo(e)?MX:w4[e.$$typeof]||Oae}var Dae=Object.defineProperty,Nae=Object.getOwnPropertyNames,f6=Object.getOwnPropertySymbols,Bae=Object.getOwnPropertyDescriptor,$ae=Object.getPrototypeOf,h6=Object.prototype;function LX(e,t,n){if(typeof t!="string"){if(h6){var r=$ae(t);r&&r!==h6&&LX(e,r,n)}var i=Nae(t);f6&&(i=i.concat(f6(t)));for(var o=d6(e),s=d6(t),a=0;a=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Hae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wae=/[A-Z]|^ms/g,Gae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BX=function(t){return t.charCodeAt(1)===45},m6=function(t){return t!=null&&typeof t!="boolean"},cD=SX(function(e){return BX(e)?e:e.replace(Wae,"-$&").toLowerCase()}),g6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Gae,function(r,i,o){return Wl={name:i,styles:o,next:Wl},i})}return Hae[t]!==1&&!BX(t)&&typeof n=="number"&&n!==0?n+"px":n};function s1(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Wl={name:n.name,styles:n.styles,next:Wl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Wl={name:r.name,styles:r.styles,next:Wl},r=r.next;var i=n.styles+";";return i}return Vae(e,t,n)}case"function":{if(e!==void 0){var o=Wl,s=n(e);return Wl=o,s1(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function Vae(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Kae:Qae},x6=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Jae=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return DX(n,r,i),Xae(function(){return NX(n,r,i)}),null},Zae=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=x6(t,n,r),c=a||b6(i),u=!c("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,g=1;gt(tle(i)?n:i):t;return C.jsx(Yae,{styles:r})}/** * @mui/styled-engine v5.14.11 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function DX(e,t){return Q$(e,t)}const Kae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Qae=["values","unit","step"],Jae=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>$({},n,{[r.key]:r.val}),{})};function Zae(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ne(e,Qae),o=Jae(t),s=Object.keys(o);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const v=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:g)-r/100}${n})`}function f(p){return s.indexOf(p)+1`@media (min-width:${_4[e]}px)`};function kl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||v6;return t.reduce((s,a,c)=>(s[o.up(o.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const o=r.breakpoints||v6;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||_4).indexOf(a)!==-1){const c=o.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function NX(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function BX(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function nle(e,...t){const n=NX(e),r=[n,...t].reduce((i,o)=>ts(i,o),{});return BX(Object.keys(n),r)}function rle(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function cD({values:e,breakpoints:t,base:n}){const r=n||rle(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function VT(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function zE(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=VT(e,n)||r,t&&(i=t(i,r,e)),i}function Dn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,u=VT(c,r)||{};return kl(s,a,h=>{let p=zE(u,i,h);return h===p&&typeof h=="string"&&(p=zE(u,i,`${t}${h==="default"?"":Le(h)}`,h)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function ile(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ole={m:"margin",p:"padding"},sle={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},y6={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ale=ile(e=>{if(e.length>2)if(y6[e])e=y6[e];else return[e];const[t,n]=e.split(""),r=ole[t],i=sle[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),S4=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],E4=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...S4,...E4];function vw(e,t,n,r){var i;const o=(i=VT(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function C4(e){return vw(e,"spacing",8)}function Pp(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function lle(e,t){return n=>e.reduce((r,i)=>(r[i]=Pp(t,n),r),{})}function cle(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=ale(n),o=lle(i,r),s=e[n];return kl(e,s,o)}function $X(e,t){const n=C4(e.theme);return Object.keys(e).map(r=>cle(e,t,r,n)).reduce(Ex,{})}function Gr(e){return $X(e,S4)}Gr.propTypes={};Gr.filterProps=S4;function Vr(e){return $X(e,E4)}Vr.propTypes={};Vr.filterProps=E4;function ule(e=8){if(e.mui)return e;const t=C4({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function qT(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Ex(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ql(e){return typeof e!="number"?e:`${e}px solid`}const dle=Dn({prop:"border",themeKey:"borders",transform:ql}),fle=Dn({prop:"borderTop",themeKey:"borders",transform:ql}),hle=Dn({prop:"borderRight",themeKey:"borders",transform:ql}),ple=Dn({prop:"borderBottom",themeKey:"borders",transform:ql}),mle=Dn({prop:"borderLeft",themeKey:"borders",transform:ql}),gle=Dn({prop:"borderColor",themeKey:"palette"}),vle=Dn({prop:"borderTopColor",themeKey:"palette"}),yle=Dn({prop:"borderRightColor",themeKey:"palette"}),ble=Dn({prop:"borderBottomColor",themeKey:"palette"}),xle=Dn({prop:"borderLeftColor",themeKey:"palette"}),XT=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vw(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Pp(t,r)});return kl(e,e.borderRadius,n)}return null};XT.propTypes={};XT.filterProps=["borderRadius"];qT(dle,fle,hle,ple,mle,gle,vle,yle,ble,xle,XT);const YT=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vw(e.theme,"spacing",8),n=r=>({gap:Pp(t,r)});return kl(e,e.gap,n)}return null};YT.propTypes={};YT.filterProps=["gap"];const KT=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vw(e.theme,"spacing",8),n=r=>({columnGap:Pp(t,r)});return kl(e,e.columnGap,n)}return null};KT.propTypes={};KT.filterProps=["columnGap"];const QT=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vw(e.theme,"spacing",8),n=r=>({rowGap:Pp(t,r)});return kl(e,e.rowGap,n)}return null};QT.propTypes={};QT.filterProps=["rowGap"];const wle=Dn({prop:"gridColumn"}),_le=Dn({prop:"gridRow"}),Sle=Dn({prop:"gridAutoFlow"}),Ele=Dn({prop:"gridAutoColumns"}),Cle=Dn({prop:"gridAutoRows"}),Tle=Dn({prop:"gridTemplateColumns"}),kle=Dn({prop:"gridTemplateRows"}),Ale=Dn({prop:"gridTemplateAreas"}),Ile=Dn({prop:"gridArea"});qT(YT,KT,QT,wle,_le,Sle,Ele,Cle,Tle,kle,Ale,Ile);function dg(e,t){return t==="grey"?t:e}const Rle=Dn({prop:"color",themeKey:"palette",transform:dg}),Ple=Dn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:dg}),Ole=Dn({prop:"backgroundColor",themeKey:"palette",transform:dg});qT(Rle,Ple,Ole);function Ns(e){return e<=1&&e!==0?`${e*100}%`:e}const Mle=Dn({prop:"width",transform:Ns}),T4=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||_4[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ns(n)}};return kl(e,e.maxWidth,t)}return null};T4.filterProps=["maxWidth"];const Lle=Dn({prop:"minWidth",transform:Ns}),Dle=Dn({prop:"height",transform:Ns}),Nle=Dn({prop:"maxHeight",transform:Ns}),Ble=Dn({prop:"minHeight",transform:Ns});Dn({prop:"size",cssProperty:"width",transform:Ns});Dn({prop:"size",cssProperty:"height",transform:Ns});const $le=Dn({prop:"boxSizing"});qT(Mle,T4,Lle,Dle,Nle,Ble,$le);const Fle={border:{themeKey:"borders",transform:ql},borderTop:{themeKey:"borders",transform:ql},borderRight:{themeKey:"borders",transform:ql},borderBottom:{themeKey:"borders",transform:ql},borderLeft:{themeKey:"borders",transform:ql},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:XT},color:{themeKey:"palette",transform:dg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:dg},backgroundColor:{themeKey:"palette",transform:dg},p:{style:Vr},pt:{style:Vr},pr:{style:Vr},pb:{style:Vr},pl:{style:Vr},px:{style:Vr},py:{style:Vr},padding:{style:Vr},paddingTop:{style:Vr},paddingRight:{style:Vr},paddingBottom:{style:Vr},paddingLeft:{style:Vr},paddingX:{style:Vr},paddingY:{style:Vr},paddingInline:{style:Vr},paddingInlineStart:{style:Vr},paddingInlineEnd:{style:Vr},paddingBlock:{style:Vr},paddingBlockStart:{style:Vr},paddingBlockEnd:{style:Vr},m:{style:Gr},mt:{style:Gr},mr:{style:Gr},mb:{style:Gr},ml:{style:Gr},mx:{style:Gr},my:{style:Gr},margin:{style:Gr},marginTop:{style:Gr},marginRight:{style:Gr},marginBottom:{style:Gr},marginLeft:{style:Gr},marginX:{style:Gr},marginY:{style:Gr},marginInline:{style:Gr},marginInlineStart:{style:Gr},marginInlineEnd:{style:Gr},marginBlock:{style:Gr},marginBlockStart:{style:Gr},marginBlockEnd:{style:Gr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:YT},rowGap:{style:QT},columnGap:{style:KT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ns},maxWidth:{style:T4},minWidth:{transform:Ns},height:{transform:Ns},maxHeight:{transform:Ns},minHeight:{transform:Ns},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},JT=Fle;function zle(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function jle(e,t){return typeof e=="function"?e(t):e}function Ule(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:f,style:h}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=VT(i,u)||{};return h?h(s):kl(s,r,v=>{let y=zE(p,f,v);return v===y&&typeof v=="string"&&(y=zE(p,f,`${n}${v==="default"?"":Le(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:JT;function a(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const f=NX(o.breakpoints),h=Object.keys(f);let p=f;return Object.keys(u).forEach(g=>{const v=jle(u[g],o);if(v!=null)if(typeof v=="object")if(s[g])p=Ex(p,e(g,v,o,s));else{const y=kl({theme:o},v,S=>({[g]:S}));zle(y,v)?p[g]=t({sx:v,theme:o}):p=Ex(p,y)}else p=Ex(p,e(g,v,o,s))}),BX(h,p)}return Array.isArray(i)?i.map(a):a(i)}return t}const FX=Ule();FX.filterProps=["sx"];const ZT=FX,Hle=["breakpoints","palette","spacing","shape"];function ek(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Ne(e,Hle),a=Zae(n),c=ule(i);let u=ts({breakpoints:a,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:c,shape:$({},tle,o)},s);return u=t.reduce((f,h)=>ts(f,h),u),u.unstable_sxConfig=$({},JT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return ZT({sx:h,theme:this})},u}function Wle(e){return Object.keys(e).length===0}function tk(e=null){const t=P.useContext(GT);return!t||Wle(t)?e:t}const Gle=ek();function nk(e=Gle){return tk(e)}function Vle({styles:e,themeId:t,defaultTheme:n={}}){const r=nk(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(Yae,{styles:i})}const qle=["sx"],Xle=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:JT;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function k4(e){const{sx:t}=e,n=Ne(e,qle),{systemProps:r,otherProps:i}=Xle(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return ap(a)?$({},r,a):r}:o=$({},r,t),$({},i,{sx:o})}function zX(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(ZT);return P.forwardRef(function(c,u){const f=nk(n),h=k4(c),{className:p,component:g="div"}=h,v=Ne(h,Yle);return C.jsx(o,$({as:g,ref:u,className:Ue(p,i?i(r):r),theme:t&&f[t]||f},v))})}const Qle=["variant"];function b6(e){return e.length===0}function jX(e){const{variant:t}=e,n=Ne(e,Qle);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=b6(r)?e[i]:Le(e[i]):r+=`${b6(r)?i:Le(i)}${Le(e[i].toString())}`}),r}const Jle=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zle(e){return Object.keys(e).length===0}function ece(e){return typeof e=="string"&&e.charCodeAt(0)>96}const tce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,nce=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=jX(i.props);r[o]=i.style}),r},rce=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,s=[],a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return a&&a.forEach(c=>{let u=!0;Object.keys(c.props).forEach(f=>{o[f]!==c.props[f]&&e[f]!==c.props[f]&&(u=!1)}),u&&s.push(t[jX(c.props)])}),s};function Cx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ice=ek(),oce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function vb({defaultTheme:e,theme:t,themeId:n}){return Zle(t)?e:t[n]||t}function sce(e){return e?(t,n)=>n[e]:null}function UX(e={}){const{themeId:t,defaultTheme:n=ice,rootShouldForwardProp:r=Cx,slotShouldForwardProp:i=Cx}=e,o=s=>ZT($({},s,{theme:vb($({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{Kae(s,E=>E.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:p=sce(oce(u))}=a,g=Ne(a,Jle),v=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let S,w=Cx;u==="Root"||u==="root"?w=r:u?w=i:ece(s)&&(w=void 0);const b=DX(s,$({shouldForwardProp:w,label:S},g)),x=(E,...I)=>{const A=I?I.map(N=>typeof N=="function"&&N.__emotion_real!==N?H=>N($({},H,{theme:vb($({},H,{defaultTheme:n,themeId:t}))})):N):[];let k=E;c&&p&&A.push(N=>{const H=vb($({},N,{defaultTheme:n,themeId:t})),G=tce(c,H);if(G){const z={};return Object.entries(G).forEach(([L,F])=>{z[L]=typeof F=="function"?F($({},N,{theme:H})):F}),p(N,z)}return null}),c&&!v&&A.push(N=>{const H=vb($({},N,{defaultTheme:n,themeId:t}));return rce(N,nce(c,H),H,c)}),y||A.push(o);const O=A.length-I.length;if(Array.isArray(E)&&O>0){const N=new Array(O).fill("");k=[...E,...N],k.raw=[...E.raw,...N]}else typeof E=="function"&&E.__emotion_real!==E&&(k=N=>E($({},N,{theme:vb($({},N,{defaultTheme:n,themeId:t}))})));const D=b(k,...A);return s.muiName&&(D.muiName=s.muiName),D};return b.withConfig&&(x.withConfig=b.withConfig),x}}const ace=UX(),lce=ace;function HX(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:f4(t.components[n].defaultProps,r)}function WX({props:e,name:t,defaultTheme:n,themeId:r}){let i=nk(n);return r&&(i=i[r]||i),HX({theme:i,name:t,props:e})}function A4(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function cce(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Op(e){if(e.type)return e;if(e.charAt(0)==="#")return Op(cce(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Jd(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Jd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function rk(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function uce(e){e=Op(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),rk({type:a,values:c})}function J$(e){e=Op(e);let t=e.type==="hsl"||e.type==="hsla"?Op(uce(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Z$(e,t){const n=J$(e),r=J$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function kn(e,t){return e=Op(e),t=A4(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rk(e)}function gv(e,t){if(e=Op(e),t=A4(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rk(e)}function vv(e,t){if(e=Op(e),t=A4(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rk(e)}function dce(e,t=.15){return J$(e)>.5?gv(e,t):vv(e,t)}const fce=P.createContext(null),GX=fce;function VX(){return P.useContext(GX)}const hce=typeof Symbol=="function"&&Symbol.for,pce=hce?Symbol.for("mui.nested"):"__THEME_NESTED__";function mce(e,t){return typeof t=="function"?t(e):$({},e,t)}function gce(e){const{children:t,theme:n}=e,r=VX(),i=P.useMemo(()=>{const o=r===null?n:mce(r,n);return o!=null&&(o[pce]=r!==null),o},[n,r]);return C.jsx(GX.Provider,{value:i,children:t})}const x6={};function w6(e,t,n,r=!1){return P.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?$({},t,{[e]:o}):o;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function vce(e){const{children:t,theme:n,themeId:r}=e,i=tk(x6),o=VX()||x6,s=w6(r,i,n),a=w6(r,o,n,!0);return C.jsx(gce,{theme:a,children:C.jsx(GT.Provider,{value:s,children:t})})}const yce=["component","direction","spacing","divider","children","className","useFlexGap"],bce=ek(),xce=lce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wce(e){return WX({props:e,name:"MuiStack",defaultTheme:bce})}function _ce(e,t){const n=P.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Ece=({ownerState:e,theme:t})=>{let n=$({display:"flex",flexDirection:"column"},kl({theme:t},cD({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=C4(t),i=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),o=cD({values:e.direction,base:i}),s=cD({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((c,u,f)=>{if(!o[c]){const p=u>0?o[f[u-1]]:"column";o[c]=p}}),n=ts(n,kl({theme:t},s,(c,u)=>e.useFlexGap?{gap:Pp(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Sce(u?o[u]:e.direction)}`]:Pp(r,c)}}))}return n=nle(t.breakpoints,n),n};function Cce(e={}){const{createStyledComponent:t=xce,useThemeProps:n=wce,componentName:r="MuiStack"}=e,i=()=>At({root:["root"]},c=>Ct(r,c),{}),o=t(Ece);return P.forwardRef(function(c,u){const f=n(c),h=k4(f),{component:p="div",direction:g="column",spacing:v=0,divider:y,children:S,className:w,useFlexGap:b=!1}=h,x=Ne(h,yce),E={direction:g,spacing:v,useFlexGap:b},I=i();return C.jsx(o,$({as:p,ownerState:E,ref:u,className:Ue(I.root,w)},x,{children:y?_ce(S,y):S}))})}function Tce(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const kce=["mode","contrastThreshold","tonalOffset"],_6={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rg.white,default:Rg.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},uD={text:{primary:Rg.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Rg.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S6(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=vv(e.main,i):t==="dark"&&(e.dark=gv(e.main,o)))}function Ace(e="light"){return e==="dark"?{main:fd[200],light:fd[50],dark:fd[400]}:{main:fd[700],light:fd[400],dark:fd[800]}}function Ice(e="light"){return e==="dark"?{main:qh[200],light:qh[50],dark:qh[400]}:{main:qh[500],light:qh[300],dark:qh[700]}}function Rce(e="light"){return e==="dark"?{main:dd[500],light:dd[300],dark:dd[700]}:{main:dd[700],light:dd[400],dark:dd[800]}}function Pce(e="light"){return e==="dark"?{main:Xh[400],light:Xh[300],dark:Xh[700]}:{main:Xh[700],light:Xh[500],dark:Xh[900]}}function Oce(e="light"){return e==="dark"?{main:hd[400],light:hd[300],dark:hd[700]}:{main:hd[800],light:hd[500],dark:hd[900]}}function Mce(e="light"){return e==="dark"?{main:sp[400],light:sp[300],dark:sp[700]}:{main:"#ed6c02",light:sp[500],dark:sp[900]}}function Lce(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ne(e,kce),o=e.primary||Ace(t),s=e.secondary||Ice(t),a=e.error||Rce(t),c=e.info||Pce(t),u=e.success||Oce(t),f=e.warning||Mce(t);function h(y){return Z$(y,uD.text.primary)>=n?uD.text.primary:_6.text.primary}const p=({color:y,name:S,mainShade:w=500,lightShade:b=300,darkShade:x=700})=>{if(y=$({},y),!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(Jd(11,S?` (${S})`:"",w));if(typeof y.main!="string")throw new Error(Jd(12,S?` (${S})`:"",JSON.stringify(y.main)));return S6(y,"light",b,r),S6(y,"dark",x,r),y.contrastText||(y.contrastText=h(y.main)),y},g={dark:uD,light:_6};return ts($({common:$({},Rg),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:c4,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},g[t]),i)}const Dce=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Nce(e){return Math.round(e*1e5)/1e5}const E6={textTransform:"uppercase"},C6='"Roboto", "Helvetica", "Arial", sans-serif';function Bce(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=C6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:f,pxToRem:h}=n,p=Ne(n,Dce),g=i/14,v=h||(w=>`${w/u*g}rem`),y=(w,b,x,E,I)=>$({fontFamily:r,fontWeight:w,fontSize:v(b),lineHeight:x},r===C6?{letterSpacing:`${Nce(E/b)}em`}:{},I,f),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(a,14,1.75,.4,E6),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,E6),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ts($({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},S),p,{clone:!1})}const $ce=.2,Fce=.14,zce=.12;function wr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$ce})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fce})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zce})`].join(",")}const jce=["none",wr(0,2,1,-1,0,1,1,0,0,1,3,0),wr(0,3,1,-2,0,2,2,0,0,1,5,0),wr(0,3,3,-2,0,3,4,0,0,1,8,0),wr(0,2,4,-1,0,4,5,0,0,1,10,0),wr(0,3,5,-1,0,5,8,0,0,1,14,0),wr(0,3,5,-1,0,6,10,0,0,1,18,0),wr(0,4,5,-2,0,7,10,1,0,2,16,1),wr(0,5,5,-3,0,8,10,1,0,3,14,2),wr(0,5,6,-3,0,9,12,1,0,3,16,2),wr(0,6,6,-3,0,10,14,1,0,4,18,3),wr(0,6,7,-4,0,11,15,1,0,4,20,3),wr(0,7,8,-4,0,12,17,2,0,5,22,4),wr(0,7,8,-4,0,13,19,2,0,5,24,4),wr(0,7,9,-4,0,14,21,2,0,5,26,4),wr(0,8,9,-5,0,15,22,2,0,6,28,5),wr(0,8,10,-5,0,16,24,2,0,6,30,5),wr(0,8,11,-5,0,17,26,2,0,6,32,5),wr(0,9,11,-5,0,18,28,2,0,7,34,6),wr(0,9,12,-6,0,19,29,2,0,7,36,6),wr(0,10,13,-6,0,20,31,3,0,8,38,7),wr(0,10,13,-6,0,21,33,3,0,8,40,7),wr(0,10,14,-6,0,22,35,3,0,8,42,7),wr(0,11,14,-7,0,23,36,3,0,9,44,8),wr(0,11,15,-7,0,24,38,3,0,9,46,8)],Uce=jce,Hce=["duration","easing","delay"],Wce={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},qX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function T6(e){return`${Math.round(e)}ms`}function Gce(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Vce(e){const t=$({},Wce,e.easing),n=$({},qX,e.duration);return $({getAutoHeightDuration:Gce,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=o;return Ne(o,Hce),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:T6(s)} ${a} ${typeof c=="string"?c:T6(c)}`).join(",")}},e,{easing:t,duration:n})}const qce={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xce=qce,Yce=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function I4(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Ne(e,Yce);if(e.vars)throw new Error(Jd(18));const a=Lce(r),c=ek(e);let u=ts(c,{mixins:Tce(c.breakpoints,n),palette:a,shadows:Uce.slice(),typography:Bce(a,o),transitions:Vce(i),zIndex:$({},Xce)});return u=ts(u,s),u=t.reduce((f,h)=>ts(f,h),u),u.unstable_sxConfig=$({},JT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return ZT({sx:h,theme:this})},u}const Kce=I4(),ik=Kce;function Ln(){const e=nk(ik);return e[Rp]||e}function Rt({props:e,name:t}){return WX({props:e,name:t,defaultTheme:ik,themeId:Rp})}const Ma=e=>Cx(e)&&e!=="classes",R4=Cx,Qce=UX({themeId:Rp,defaultTheme:ik,rootShouldForwardProp:Ma}),Ce=Qce,Jce=["theme"];function Zce(e){let{theme:t}=e,n=Ne(e,Jce);const r=t[Rp];return C.jsx(vce,$({},n,{themeId:r?Rp:void 0,theme:r||t}))}const eue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},k6=eue;function tue(e){return Ct("MuiSvgIcon",e)}It("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],rue=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(n)}`]};return At(i,tue,r)},iue=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Le(n.color)}`],t[`fontSize${Le(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,c,u,f,h,p,g,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),XX=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,g=Ne(r,nue),v=P.isValidElement(i)&&i.type==="svg",y=$({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:v}),S={};f||(S.viewBox=p);const w=rue(y);return C.jsxs(iue,$({as:a,className:Ue(w.root,o),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},S,g,v&&i.props,{ownerState:y,children:[v?i.props.children:i,h?C.jsx("title",{children:h}):null]}))});XX.muiName="SvgIcon";const A6=XX;function zt(e,t){function n(r,i){return C.jsx(A6,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=A6.muiName,P.memo(P.forwardRef(n))}var Xn={};/** + */function jX(e,t){return J$(e,t)}const rle=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ile=["values","unit","step"],ole=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>$({},n,{[r.key]:r.val}),{})};function sle(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ne(e,ile),o=ole(t),s=Object.keys(o);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const v=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:g)-r/100}${n})`}function f(p){return s.indexOf(p)+1`@media (min-width:${S4[e]}px)`};function kl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||w6;return t.reduce((s,a,c)=>(s[o.up(o.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const o=r.breakpoints||w6;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||S4).indexOf(a)!==-1){const c=o.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function UX(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function HX(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function cle(e,...t){const n=UX(e),r=[n,...t].reduce((i,o)=>ns(i,o),{});return HX(Object.keys(n),r)}function ule(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function uD({values:e,breakpoints:t,base:n}){const r=n||ule(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function qT(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function UE(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=qT(e,n)||r,t&&(i=t(i,r,e)),i}function Ln(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,u=qT(c,r)||{};return kl(s,a,h=>{let p=UE(u,i,h);return h===p&&typeof h=="string"&&(p=UE(u,i,`${t}${h==="default"?"":Le(h)}`,h)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function dle(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fle={m:"margin",p:"padding"},hle={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_6={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ple=dle(e=>{if(e.length>2)if(_6[e])e=_6[e];else return[e];const[t,n]=e.split(""),r=fle[t],i=hle[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),E4=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],C4=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...E4,...C4];function gw(e,t,n,r){var i;const o=(i=qT(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function T4(e){return gw(e,"spacing",8)}function Op(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function mle(e,t){return n=>e.reduce((r,i)=>(r[i]=Op(t,n),r),{})}function gle(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=ple(n),o=mle(i,r),s=e[n];return kl(e,s,o)}function WX(e,t){const n=T4(e.theme);return Object.keys(e).map(r=>gle(e,t,r,n)).reduce(_x,{})}function Gr(e){return WX(e,E4)}Gr.propTypes={};Gr.filterProps=E4;function Vr(e){return WX(e,C4)}Vr.propTypes={};Vr.filterProps=C4;function vle(e=8){if(e.mui)return e;const t=T4({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function XT(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?_x(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ql(e){return typeof e!="number"?e:`${e}px solid`}const yle=Ln({prop:"border",themeKey:"borders",transform:ql}),ble=Ln({prop:"borderTop",themeKey:"borders",transform:ql}),xle=Ln({prop:"borderRight",themeKey:"borders",transform:ql}),wle=Ln({prop:"borderBottom",themeKey:"borders",transform:ql}),_le=Ln({prop:"borderLeft",themeKey:"borders",transform:ql}),Sle=Ln({prop:"borderColor",themeKey:"palette"}),Ele=Ln({prop:"borderTopColor",themeKey:"palette"}),Cle=Ln({prop:"borderRightColor",themeKey:"palette"}),Tle=Ln({prop:"borderBottomColor",themeKey:"palette"}),kle=Ln({prop:"borderLeftColor",themeKey:"palette"}),YT=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=gw(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Op(t,r)});return kl(e,e.borderRadius,n)}return null};YT.propTypes={};YT.filterProps=["borderRadius"];XT(yle,ble,xle,wle,_le,Sle,Ele,Cle,Tle,kle,YT);const KT=e=>{if(e.gap!==void 0&&e.gap!==null){const t=gw(e.theme,"spacing",8),n=r=>({gap:Op(t,r)});return kl(e,e.gap,n)}return null};KT.propTypes={};KT.filterProps=["gap"];const QT=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=gw(e.theme,"spacing",8),n=r=>({columnGap:Op(t,r)});return kl(e,e.columnGap,n)}return null};QT.propTypes={};QT.filterProps=["columnGap"];const JT=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=gw(e.theme,"spacing",8),n=r=>({rowGap:Op(t,r)});return kl(e,e.rowGap,n)}return null};JT.propTypes={};JT.filterProps=["rowGap"];const Ale=Ln({prop:"gridColumn"}),Ile=Ln({prop:"gridRow"}),Rle=Ln({prop:"gridAutoFlow"}),Ple=Ln({prop:"gridAutoColumns"}),Ole=Ln({prop:"gridAutoRows"}),Mle=Ln({prop:"gridTemplateColumns"}),Lle=Ln({prop:"gridTemplateRows"}),Dle=Ln({prop:"gridTemplateAreas"}),Nle=Ln({prop:"gridArea"});XT(KT,QT,JT,Ale,Ile,Rle,Ple,Ole,Mle,Lle,Dle,Nle);function pg(e,t){return t==="grey"?t:e}const Ble=Ln({prop:"color",themeKey:"palette",transform:pg}),$le=Ln({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pg}),Fle=Ln({prop:"backgroundColor",themeKey:"palette",transform:pg});XT(Ble,$le,Fle);function Bs(e){return e<=1&&e!==0?`${e*100}%`:e}const zle=Ln({prop:"width",transform:Bs}),k4=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||S4[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Bs(n)}};return kl(e,e.maxWidth,t)}return null};k4.filterProps=["maxWidth"];const jle=Ln({prop:"minWidth",transform:Bs}),Ule=Ln({prop:"height",transform:Bs}),Hle=Ln({prop:"maxHeight",transform:Bs}),Wle=Ln({prop:"minHeight",transform:Bs});Ln({prop:"size",cssProperty:"width",transform:Bs});Ln({prop:"size",cssProperty:"height",transform:Bs});const Gle=Ln({prop:"boxSizing"});XT(zle,k4,jle,Ule,Hle,Wle,Gle);const Vle={border:{themeKey:"borders",transform:ql},borderTop:{themeKey:"borders",transform:ql},borderRight:{themeKey:"borders",transform:ql},borderBottom:{themeKey:"borders",transform:ql},borderLeft:{themeKey:"borders",transform:ql},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:YT},color:{themeKey:"palette",transform:pg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pg},backgroundColor:{themeKey:"palette",transform:pg},p:{style:Vr},pt:{style:Vr},pr:{style:Vr},pb:{style:Vr},pl:{style:Vr},px:{style:Vr},py:{style:Vr},padding:{style:Vr},paddingTop:{style:Vr},paddingRight:{style:Vr},paddingBottom:{style:Vr},paddingLeft:{style:Vr},paddingX:{style:Vr},paddingY:{style:Vr},paddingInline:{style:Vr},paddingInlineStart:{style:Vr},paddingInlineEnd:{style:Vr},paddingBlock:{style:Vr},paddingBlockStart:{style:Vr},paddingBlockEnd:{style:Vr},m:{style:Gr},mt:{style:Gr},mr:{style:Gr},mb:{style:Gr},ml:{style:Gr},mx:{style:Gr},my:{style:Gr},margin:{style:Gr},marginTop:{style:Gr},marginRight:{style:Gr},marginBottom:{style:Gr},marginLeft:{style:Gr},marginX:{style:Gr},marginY:{style:Gr},marginInline:{style:Gr},marginInlineStart:{style:Gr},marginInlineEnd:{style:Gr},marginBlock:{style:Gr},marginBlockStart:{style:Gr},marginBlockEnd:{style:Gr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:KT},rowGap:{style:JT},columnGap:{style:QT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bs},maxWidth:{style:k4},minWidth:{transform:Bs},height:{transform:Bs},maxHeight:{transform:Bs},minHeight:{transform:Bs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ZT=Vle;function qle(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Xle(e,t){return typeof e=="function"?e(t):e}function Yle(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:f,style:h}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=qT(i,u)||{};return h?h(s):kl(s,r,v=>{let y=UE(p,f,v);return v===y&&typeof v=="string"&&(y=UE(p,f,`${n}${v==="default"?"":Le(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:ZT;function a(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const f=UX(o.breakpoints),h=Object.keys(f);let p=f;return Object.keys(u).forEach(g=>{const v=Xle(u[g],o);if(v!=null)if(typeof v=="object")if(s[g])p=_x(p,e(g,v,o,s));else{const y=kl({theme:o},v,S=>({[g]:S}));qle(y,v)?p[g]=t({sx:v,theme:o}):p=_x(p,y)}else p=_x(p,e(g,v,o,s))}),HX(h,p)}return Array.isArray(i)?i.map(a):a(i)}return t}const GX=Yle();GX.filterProps=["sx"];const ek=GX,Kle=["breakpoints","palette","spacing","shape"];function tk(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Ne(e,Kle),a=sle(n),c=vle(i);let u=ns({breakpoints:a,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:c,shape:$({},lle,o)},s);return u=t.reduce((f,h)=>ns(f,h),u),u.unstable_sxConfig=$({},ZT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return ek({sx:h,theme:this})},u}function Qle(e){return Object.keys(e).length===0}function nk(e=null){const t=R.useContext(VT);return!t||Qle(t)?e:t}const Jle=tk();function rk(e=Jle){return nk(e)}function Zle({styles:e,themeId:t,defaultTheme:n={}}){const r=rk(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(nle,{styles:i})}const ece=["sx"],tce=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ZT;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function A4(e){const{sx:t}=e,n=Ne(e,ece),{systemProps:r,otherProps:i}=tce(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return lp(a)?$({},r,a):r}:o=$({},r,t),$({},i,{sx:o})}function VX(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(ek);return R.forwardRef(function(c,u){const f=rk(n),h=A4(c),{className:p,component:g="div"}=h,v=Ne(h,nce);return C.jsx(o,$({as:g,ref:u,className:Ue(p,i?i(r):r),theme:t&&f[t]||f},v))})}const ice=["variant"];function S6(e){return e.length===0}function qX(e){const{variant:t}=e,n=Ne(e,ice);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=S6(r)?e[i]:Le(e[i]):r+=`${S6(r)?i:Le(i)}${Le(e[i].toString())}`}),r}const oce=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function sce(e){return Object.keys(e).length===0}function ace(e){return typeof e=="string"&&e.charCodeAt(0)>96}const lce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,cce=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=qX(i.props);r[o]=i.style}),r},uce=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,s=[],a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return a&&a.forEach(c=>{let u=!0;Object.keys(c.props).forEach(f=>{o[f]!==c.props[f]&&e[f]!==c.props[f]&&(u=!1)}),u&&s.push(t[qX(c.props)])}),s};function Sx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dce=tk(),fce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gb({defaultTheme:e,theme:t,themeId:n}){return sce(t)?e:t[n]||t}function hce(e){return e?(t,n)=>n[e]:null}function XX(e={}){const{themeId:t,defaultTheme:n=dce,rootShouldForwardProp:r=Sx,slotShouldForwardProp:i=Sx}=e,o=s=>ek($({},s,{theme:gb($({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{rle(s,E=>E.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:p=hce(fce(u))}=a,g=Ne(a,oce),v=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let S,w=Sx;u==="Root"||u==="root"?w=r:u?w=i:ace(s)&&(w=void 0);const b=jX(s,$({shouldForwardProp:w,label:S},g)),x=(E,...I)=>{const A=I?I.map(N=>typeof N=="function"&&N.__emotion_real!==N?H=>N($({},H,{theme:gb($({},H,{defaultTheme:n,themeId:t}))})):N):[];let k=E;c&&p&&A.push(N=>{const H=gb($({},N,{defaultTheme:n,themeId:t})),G=lce(c,H);if(G){const z={};return Object.entries(G).forEach(([L,F])=>{z[L]=typeof F=="function"?F($({},N,{theme:H})):F}),p(N,z)}return null}),c&&!v&&A.push(N=>{const H=gb($({},N,{defaultTheme:n,themeId:t}));return uce(N,cce(c,H),H,c)}),y||A.push(o);const O=A.length-I.length;if(Array.isArray(E)&&O>0){const N=new Array(O).fill("");k=[...E,...N],k.raw=[...E.raw,...N]}else typeof E=="function"&&E.__emotion_real!==E&&(k=N=>E($({},N,{theme:gb($({},N,{defaultTheme:n,themeId:t}))})));const D=b(k,...A);return s.muiName&&(D.muiName=s.muiName),D};return b.withConfig&&(x.withConfig=b.withConfig),x}}const pce=XX(),mce=pce;function YX(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:h4(t.components[n].defaultProps,r)}function KX({props:e,name:t,defaultTheme:n,themeId:r}){let i=rk(n);return r&&(i=i[r]||i),YX({theme:i,name:t,props:e})}function I4(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function gce(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Mp(e){if(e.type)return e;if(e.charAt(0)==="#")return Mp(gce(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Jd(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Jd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function ik(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vce(e){e=Mp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),ik({type:a,values:c})}function Z$(e){e=Mp(e);let t=e.type==="hsl"||e.type==="hsla"?Mp(vce(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function eF(e,t){const n=Z$(e),r=Z$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function kn(e,t){return e=Mp(e),t=I4(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ik(e)}function yv(e,t){if(e=Mp(e),t=I4(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ik(e)}function bv(e,t){if(e=Mp(e),t=I4(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ik(e)}function yce(e,t=.15){return Z$(e)>.5?yv(e,t):bv(e,t)}const bce=R.createContext(null),QX=bce;function JX(){return R.useContext(QX)}const xce=typeof Symbol=="function"&&Symbol.for,wce=xce?Symbol.for("mui.nested"):"__THEME_NESTED__";function _ce(e,t){return typeof t=="function"?t(e):$({},e,t)}function Sce(e){const{children:t,theme:n}=e,r=JX(),i=R.useMemo(()=>{const o=r===null?n:_ce(r,n);return o!=null&&(o[wce]=r!==null),o},[n,r]);return C.jsx(QX.Provider,{value:i,children:t})}const E6={};function C6(e,t,n,r=!1){return R.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?$({},t,{[e]:o}):o;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function Ece(e){const{children:t,theme:n,themeId:r}=e,i=nk(E6),o=JX()||E6,s=C6(r,i,n),a=C6(r,o,n,!0);return C.jsx(Sce,{theme:a,children:C.jsx(VT.Provider,{value:s,children:t})})}const Cce=["component","direction","spacing","divider","children","className","useFlexGap"],Tce=tk(),kce=mce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ace(e){return KX({props:e,name:"MuiStack",defaultTheme:Tce})}function Ice(e,t){const n=R.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Pce=({ownerState:e,theme:t})=>{let n=$({display:"flex",flexDirection:"column"},kl({theme:t},uD({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=T4(t),i=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),o=uD({values:e.direction,base:i}),s=uD({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((c,u,f)=>{if(!o[c]){const p=u>0?o[f[u-1]]:"column";o[c]=p}}),n=ns(n,kl({theme:t},s,(c,u)=>e.useFlexGap?{gap:Op(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Rce(u?o[u]:e.direction)}`]:Op(r,c)}}))}return n=cle(t.breakpoints,n),n};function Oce(e={}){const{createStyledComponent:t=kce,useThemeProps:n=Ace,componentName:r="MuiStack"}=e,i=()=>At({root:["root"]},c=>Ct(r,c),{}),o=t(Pce);return R.forwardRef(function(c,u){const f=n(c),h=A4(f),{component:p="div",direction:g="column",spacing:v=0,divider:y,children:S,className:w,useFlexGap:b=!1}=h,x=Ne(h,Cce),E={direction:g,spacing:v,useFlexGap:b},I=i();return C.jsx(o,$({as:p,ownerState:E,ref:u,className:Ue(I.root,w)},x,{children:y?Ice(S,y):S}))})}function Mce(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Lce=["mode","contrastThreshold","tonalOffset"],T6={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Mg.white,default:Mg.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dD={text:{primary:Mg.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Mg.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k6(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=bv(e.main,i):t==="dark"&&(e.dark=yv(e.main,o)))}function Dce(e="light"){return e==="dark"?{main:dd[200],light:dd[50],dark:dd[400]}:{main:dd[700],light:dd[400],dark:dd[800]}}function Nce(e="light"){return e==="dark"?{main:Xh[200],light:Xh[50],dark:Xh[400]}:{main:Xh[500],light:Xh[300],dark:Xh[700]}}function Bce(e="light"){return e==="dark"?{main:ud[500],light:ud[300],dark:ud[700]}:{main:ud[700],light:ud[400],dark:ud[800]}}function $ce(e="light"){return e==="dark"?{main:Yh[400],light:Yh[300],dark:Yh[700]}:{main:Yh[700],light:Yh[500],dark:Yh[900]}}function Fce(e="light"){return e==="dark"?{main:fd[400],light:fd[300],dark:fd[700]}:{main:fd[800],light:fd[500],dark:fd[900]}}function zce(e="light"){return e==="dark"?{main:ap[400],light:ap[300],dark:ap[700]}:{main:"#ed6c02",light:ap[500],dark:ap[900]}}function jce(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ne(e,Lce),o=e.primary||Dce(t),s=e.secondary||Nce(t),a=e.error||Bce(t),c=e.info||$ce(t),u=e.success||Fce(t),f=e.warning||zce(t);function h(y){return eF(y,dD.text.primary)>=n?dD.text.primary:T6.text.primary}const p=({color:y,name:S,mainShade:w=500,lightShade:b=300,darkShade:x=700})=>{if(y=$({},y),!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(Jd(11,S?` (${S})`:"",w));if(typeof y.main!="string")throw new Error(Jd(12,S?` (${S})`:"",JSON.stringify(y.main)));return k6(y,"light",b,r),k6(y,"dark",x,r),y.contrastText||(y.contrastText=h(y.main)),y},g={dark:dD,light:T6};return ns($({common:$({},Mg),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:u4,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},g[t]),i)}const Uce=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Hce(e){return Math.round(e*1e5)/1e5}const A6={textTransform:"uppercase"},I6='"Roboto", "Helvetica", "Arial", sans-serif';function Wce(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=I6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:f,pxToRem:h}=n,p=Ne(n,Uce),g=i/14,v=h||(w=>`${w/u*g}rem`),y=(w,b,x,E,I)=>$({fontFamily:r,fontWeight:w,fontSize:v(b),lineHeight:x},r===I6?{letterSpacing:`${Hce(E/b)}em`}:{},I,f),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(a,14,1.75,.4,A6),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,A6),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ns($({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},S),p,{clone:!1})}const Gce=.2,Vce=.14,qce=.12;function wr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Gce})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Vce})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qce})`].join(",")}const Xce=["none",wr(0,2,1,-1,0,1,1,0,0,1,3,0),wr(0,3,1,-2,0,2,2,0,0,1,5,0),wr(0,3,3,-2,0,3,4,0,0,1,8,0),wr(0,2,4,-1,0,4,5,0,0,1,10,0),wr(0,3,5,-1,0,5,8,0,0,1,14,0),wr(0,3,5,-1,0,6,10,0,0,1,18,0),wr(0,4,5,-2,0,7,10,1,0,2,16,1),wr(0,5,5,-3,0,8,10,1,0,3,14,2),wr(0,5,6,-3,0,9,12,1,0,3,16,2),wr(0,6,6,-3,0,10,14,1,0,4,18,3),wr(0,6,7,-4,0,11,15,1,0,4,20,3),wr(0,7,8,-4,0,12,17,2,0,5,22,4),wr(0,7,8,-4,0,13,19,2,0,5,24,4),wr(0,7,9,-4,0,14,21,2,0,5,26,4),wr(0,8,9,-5,0,15,22,2,0,6,28,5),wr(0,8,10,-5,0,16,24,2,0,6,30,5),wr(0,8,11,-5,0,17,26,2,0,6,32,5),wr(0,9,11,-5,0,18,28,2,0,7,34,6),wr(0,9,12,-6,0,19,29,2,0,7,36,6),wr(0,10,13,-6,0,20,31,3,0,8,38,7),wr(0,10,13,-6,0,21,33,3,0,8,40,7),wr(0,10,14,-6,0,22,35,3,0,8,42,7),wr(0,11,14,-7,0,23,36,3,0,9,44,8),wr(0,11,15,-7,0,24,38,3,0,9,46,8)],Yce=Xce,Kce=["duration","easing","delay"],Qce={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ZX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R6(e){return`${Math.round(e)}ms`}function Jce(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Zce(e){const t=$({},Qce,e.easing),n=$({},ZX,e.duration);return $({getAutoHeightDuration:Jce,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=o;return Ne(o,Kce),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:R6(s)} ${a} ${typeof c=="string"?c:R6(c)}`).join(",")}},e,{easing:t,duration:n})}const eue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tue=eue,nue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function R4(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Ne(e,nue);if(e.vars)throw new Error(Jd(18));const a=jce(r),c=tk(e);let u=ns(c,{mixins:Mce(c.breakpoints,n),palette:a,shadows:Yce.slice(),typography:Wce(a,o),transitions:Zce(i),zIndex:$({},tue)});return u=ns(u,s),u=t.reduce((f,h)=>ns(f,h),u),u.unstable_sxConfig=$({},ZT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return ek({sx:h,theme:this})},u}const rue=R4(),ok=rue;function Dn(){const e=rk(ok);return e[Pp]||e}function Rt({props:e,name:t}){return KX({props:e,name:t,defaultTheme:ok,themeId:Pp})}const Ma=e=>Sx(e)&&e!=="classes",P4=Sx,iue=XX({themeId:Pp,defaultTheme:ok,rootShouldForwardProp:Ma}),Ce=iue,oue=["theme"];function sue(e){let{theme:t}=e,n=Ne(e,oue);const r=t[Pp];return C.jsx(Ece,$({},n,{themeId:r?Pp:void 0,theme:r||t}))}const aue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},P6=aue;function lue(e){return Ct("MuiSvgIcon",e)}It("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],uue=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(n)}`]};return At(i,lue,r)},due=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Le(n.color)}`],t[`fontSize${Le(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,c,u,f,h,p,g,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),eY=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,g=Ne(r,cue),v=R.isValidElement(i)&&i.type==="svg",y=$({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:v}),S={};f||(S.viewBox=p);const w=uue(y);return C.jsxs(due,$({as:a,className:Ue(w.root,o),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},S,g,v&&i.props,{ownerState:y,children:[v?i.props.children:i,h?C.jsx("title",{children:h}):null]}))});eY.muiName="SvgIcon";const O6=eY;function zt(e,t){function n(r,i){return C.jsx(O6,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=O6.muiName,R.memo(R.forwardRef(n))}var Xn={};/** * @license React * react-is.production.min.js * @@ -35,7 +35,7 @@ var Coe=Object.defineProperty;var Toe=(e,t,n)=>t in e?Coe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var P4=Symbol.for("react.element"),O4=Symbol.for("react.portal"),ok=Symbol.for("react.fragment"),sk=Symbol.for("react.strict_mode"),ak=Symbol.for("react.profiler"),lk=Symbol.for("react.provider"),ck=Symbol.for("react.context"),oue=Symbol.for("react.server_context"),uk=Symbol.for("react.forward_ref"),dk=Symbol.for("react.suspense"),fk=Symbol.for("react.suspense_list"),hk=Symbol.for("react.memo"),pk=Symbol.for("react.lazy"),sue=Symbol.for("react.offscreen"),YX;YX=Symbol.for("react.module.reference");function La(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case P4:switch(e=e.type,e){case ok:case ak:case sk:case dk:case fk:return e;default:switch(e=e&&e.$$typeof,e){case oue:case ck:case uk:case pk:case hk:case lk:return e;default:return t}}case O4:return t}}}Xn.ContextConsumer=ck;Xn.ContextProvider=lk;Xn.Element=P4;Xn.ForwardRef=uk;Xn.Fragment=ok;Xn.Lazy=pk;Xn.Memo=hk;Xn.Portal=O4;Xn.Profiler=ak;Xn.StrictMode=sk;Xn.Suspense=dk;Xn.SuspenseList=fk;Xn.isAsyncMode=function(){return!1};Xn.isConcurrentMode=function(){return!1};Xn.isContextConsumer=function(e){return La(e)===ck};Xn.isContextProvider=function(e){return La(e)===lk};Xn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===P4};Xn.isForwardRef=function(e){return La(e)===uk};Xn.isFragment=function(e){return La(e)===ok};Xn.isLazy=function(e){return La(e)===pk};Xn.isMemo=function(e){return La(e)===hk};Xn.isPortal=function(e){return La(e)===O4};Xn.isProfiler=function(e){return La(e)===ak};Xn.isStrictMode=function(e){return La(e)===sk};Xn.isSuspense=function(e){return La(e)===dk};Xn.isSuspenseList=function(e){return La(e)===fk};Xn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ok||e===ak||e===sk||e===dk||e===fk||e===sue||typeof e=="object"&&e!==null&&(e.$$typeof===pk||e.$$typeof===hk||e.$$typeof===lk||e.$$typeof===ck||e.$$typeof===uk||e.$$typeof===YX||e.getModuleId!==void 0)};Xn.typeOf=La;function eF(e,t){return eF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},eF(e,t)}function mk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eF(e,t)}var KX={exports:{}},ra={},QX={exports:{}},JX={};/** + */var O4=Symbol.for("react.element"),M4=Symbol.for("react.portal"),sk=Symbol.for("react.fragment"),ak=Symbol.for("react.strict_mode"),lk=Symbol.for("react.profiler"),ck=Symbol.for("react.provider"),uk=Symbol.for("react.context"),fue=Symbol.for("react.server_context"),dk=Symbol.for("react.forward_ref"),fk=Symbol.for("react.suspense"),hk=Symbol.for("react.suspense_list"),pk=Symbol.for("react.memo"),mk=Symbol.for("react.lazy"),hue=Symbol.for("react.offscreen"),tY;tY=Symbol.for("react.module.reference");function La(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case O4:switch(e=e.type,e){case sk:case lk:case ak:case fk:case hk:return e;default:switch(e=e&&e.$$typeof,e){case fue:case uk:case dk:case mk:case pk:case ck:return e;default:return t}}case M4:return t}}}Xn.ContextConsumer=uk;Xn.ContextProvider=ck;Xn.Element=O4;Xn.ForwardRef=dk;Xn.Fragment=sk;Xn.Lazy=mk;Xn.Memo=pk;Xn.Portal=M4;Xn.Profiler=lk;Xn.StrictMode=ak;Xn.Suspense=fk;Xn.SuspenseList=hk;Xn.isAsyncMode=function(){return!1};Xn.isConcurrentMode=function(){return!1};Xn.isContextConsumer=function(e){return La(e)===uk};Xn.isContextProvider=function(e){return La(e)===ck};Xn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===O4};Xn.isForwardRef=function(e){return La(e)===dk};Xn.isFragment=function(e){return La(e)===sk};Xn.isLazy=function(e){return La(e)===mk};Xn.isMemo=function(e){return La(e)===pk};Xn.isPortal=function(e){return La(e)===M4};Xn.isProfiler=function(e){return La(e)===lk};Xn.isStrictMode=function(e){return La(e)===ak};Xn.isSuspense=function(e){return La(e)===fk};Xn.isSuspenseList=function(e){return La(e)===hk};Xn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sk||e===lk||e===ak||e===fk||e===hk||e===hue||typeof e=="object"&&e!==null&&(e.$$typeof===mk||e.$$typeof===pk||e.$$typeof===ck||e.$$typeof===uk||e.$$typeof===dk||e.$$typeof===tY||e.getModuleId!==void 0)};Xn.typeOf=La;function tF(e,t){return tF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tF(e,t)}function gk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tF(e,t)}var nY={exports:{}},ia={},rY={exports:{}},iY={};/** * @license React * scheduler.production.min.js * @@ -43,7 +43,7 @@ var Coe=Object.defineProperty;var Toe=(e,t,n)=>t in e?Coe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(W,K){var X=W.length;W.push(K);e:for(;0>>1,re=W[Q];if(0>>1;Qi(se,X))Ji(ae,se)?(W[Q]=ae,W[J]=X,Q=J):(W[Q]=se,W[ue]=X,Q=ue);else if(Ji(ae,X))W[Q]=ae,W[J]=X,Q=J;else break e}}return K}function i(W,K){var X=W.sortIndex-K.sortIndex;return X!==0?X:W.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],u=[],f=1,h=null,p=3,g=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(W){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=W)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function E(W){if(y=!1,x(W),!v)if(n(c)!==null)v=!0,j(I);else{var K=n(u);K!==null&&V(E,K.startTime-W)}}function I(W,K){v=!1,y&&(y=!1,w(O),O=-1),g=!0;var X=p;try{for(x(K),h=n(c);h!==null&&(!(h.expirationTime>K)||W&&!H());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,p=h.priorityLevel;var re=Q(h.expirationTime<=K);K=e.unstable_now(),typeof re=="function"?h.callback=re:h===n(c)&&r(c),x(K)}else r(c);h=n(c)}if(h!==null)var ce=!0;else{var ue=n(u);ue!==null&&V(E,ue.startTime-K),ce=!1}return ce}finally{h=null,p=X,g=!1}}var A=!1,k=null,O=-1,D=5,N=-1;function H(){return!(e.unstable_now()-NW||125Q?(W.sortIndex=X,t(u,W),n(c)===null&&W===n(u)&&(y?(w(O),O=-1):y=!0,V(E,X-Q))):(W.sortIndex=re,t(c,W),v||g||(v=!0,j(I))),W},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(W){var K=p;return function(){var X=p;p=K;try{return W.apply(this,arguments)}finally{p=X}}}})(JX);QX.exports=JX;var aue=QX.exports;/** + */(function(e){function t(W,K){var X=W.length;W.push(K);e:for(;0>>1,ie=W[Q];if(0>>1;Qi(se,X))Ji(ae,se)?(W[Q]=ae,W[J]=X,Q=J):(W[Q]=se,W[ue]=X,Q=ue);else if(Ji(ae,X))W[Q]=ae,W[J]=X,Q=J;else break e}}return K}function i(W,K){var X=W.sortIndex-K.sortIndex;return X!==0?X:W.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],u=[],f=1,h=null,p=3,g=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(W){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=W)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function E(W){if(y=!1,x(W),!v)if(n(c)!==null)v=!0,j(I);else{var K=n(u);K!==null&&V(E,K.startTime-W)}}function I(W,K){v=!1,y&&(y=!1,w(O),O=-1),g=!0;var X=p;try{for(x(K),h=n(c);h!==null&&(!(h.expirationTime>K)||W&&!H());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,p=h.priorityLevel;var ie=Q(h.expirationTime<=K);K=e.unstable_now(),typeof ie=="function"?h.callback=ie:h===n(c)&&r(c),x(K)}else r(c);h=n(c)}if(h!==null)var ce=!0;else{var ue=n(u);ue!==null&&V(E,ue.startTime-K),ce=!1}return ce}finally{h=null,p=X,g=!1}}var A=!1,k=null,O=-1,D=5,N=-1;function H(){return!(e.unstable_now()-NW||125Q?(W.sortIndex=X,t(u,W),n(c)===null&&W===n(u)&&(y?(w(O),O=-1):y=!0,V(E,X-Q))):(W.sortIndex=ie,t(c,W),v||g||(v=!0,j(I))),W},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(W){var K=p;return function(){var X=p;p=K;try{return W.apply(this,arguments)}finally{p=X}}}})(iY);rY.exports=iY;var pue=rY.exports;/** * @license React * react-dom.production.min.js * @@ -51,14 +51,14 @@ var Coe=Object.defineProperty;var Toe=(e,t,n)=>t in e?Coe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ZX=P,Qs=aue;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tF=Object.prototype.hasOwnProperty,lue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,I6={},R6={};function cue(e){return tF.call(R6,e)?!0:tF.call(I6,e)?!1:lue.test(e)?R6[e]=!0:(I6[e]=!0,!1)}function uue(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function due(e,t,n,r){if(t===null||typeof t>"u"||uue(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ho(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ro={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ro[e]=new Ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ro[t]=new Ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ro[e]=new Ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ro[e]=new Ho(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ro[e]=new Ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ro[e]=new Ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ro[e]=new Ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ro[e]=new Ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ro[e]=new Ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var M4=/[\-:]([a-z])/g;function L4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M4,L4);ro[t]=new Ho(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M4,L4);ro[t]=new Ho(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M4,L4);ro[t]=new Ho(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ro[e]=new Ho(e,1,!1,e.toLowerCase(),null,!1,!1)});ro.xlinkHref=new Ho("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ro[e]=new Ho(e,1,!1,e.toLowerCase(),null,!0,!0)});function D4(e,t,n,r){var i=ro.hasOwnProperty(t)?ro[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nF=Object.prototype.hasOwnProperty,mue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,M6={},L6={};function gue(e){return nF.call(L6,e)?!0:nF.call(M6,e)?!1:mue.test(e)?L6[e]=!0:(M6[e]=!0,!1)}function vue(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yue(e,t,n,r){if(t===null||typeof t>"u"||vue(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ho(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ro={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ro[e]=new Ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ro[t]=new Ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ro[e]=new Ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ro[e]=new Ho(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ro[e]=new Ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ro[e]=new Ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ro[e]=new Ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ro[e]=new Ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ro[e]=new Ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var L4=/[\-:]([a-z])/g;function D4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L4,D4);ro[t]=new Ho(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(L4,D4);ro[t]=new Ho(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(L4,D4);ro[t]=new Ho(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ro[e]=new Ho(e,1,!1,e.toLowerCase(),null,!1,!1)});ro.xlinkHref=new Ho("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ro[e]=new Ho(e,1,!1,e.toLowerCase(),null,!0,!0)});function N4(e,t,n,r){var i=ro.hasOwnProperty(t)?ro[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var c=` -`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{fD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tx(e):""}function fue(e){switch(e.tag){case 5:return tx(e.type);case 16:return tx("Lazy");case 13:return tx("Suspense");case 19:return tx("SuspenseList");case 0:case 2:case 15:return e=hD(e.type,!1),e;case 11:return e=hD(e.type.render,!1),e;case 1:return e=hD(e.type,!0),e;default:return""}}function oF(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case jm:return"Fragment";case zm:return"Portal";case nF:return"Profiler";case N4:return"StrictMode";case rF:return"Suspense";case iF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nY:return(e.displayName||"Context")+".Consumer";case tY:return(e._context.displayName||"Context")+".Provider";case B4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $4:return t=e.displayName||null,t!==null?t:oF(e.type)||"Memo";case pd:t=e._payload,e=e._init;try{return oF(e(t))}catch{}}return null}function hue(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oF(t);case 8:return t===N4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function iY(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pue(e){var t=iY(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function l_(e){e._valueTracker||(e._valueTracker=pue(e))}function oY(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=iY(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jE(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function sF(e,t){var n=t.checked;return jr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function O6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zd(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sY(e,t){t=t.checked,t!=null&&D4(e,"checked",t,!1)}function aF(e,t){sY(e,t);var n=Zd(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lF(e,t.type,n):t.hasOwnProperty("defaultValue")&&lF(e,t.type,Zd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function M6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function lF(e,t,n){(t!=="number"||jE(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nx=Array.isArray;function fg(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=c_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function c1(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tx={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mue=["Webkit","ms","Moz","O"];Object.keys(Tx).forEach(function(e){mue.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tx[t]=Tx[e]})});function uY(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tx.hasOwnProperty(e)&&Tx[e]?(""+t).trim():t+"px"}function dY(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=uY(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var gue=jr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dF(e,t){if(t){if(gue[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function fF(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hF=null;function F4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pF=null,hg=null,pg=null;function N6(e){if(e=xw(e)){if(typeof pF!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=xk(t),pF(e.stateNode,e.type,t))}}function fY(e){hg?pg?pg.push(e):pg=[e]:hg=e}function hY(){if(hg){var e=hg,t=pg;if(pg=hg=null,N6(e),t)for(e=0;e>>=0,e===0?32:31-(kue(e)/Aue|0)|0}var u_=64,d_=4194304;function rx(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function GE(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=rx(a):(o&=s,o!==0&&(r=rx(o)))}else s=n&~i,s!==0?r=rx(s):o!==0&&(r=rx(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yw(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bl(t),e[t]=n}function Oue(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ax),G6=String.fromCharCode(32),V6=!1;function MY(e,t){switch(e){case"keyup":return sde.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LY(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Um=!1;function lde(e,t){switch(e){case"compositionend":return LY(t);case"keypress":return t.which!==32?null:(V6=!0,G6);case"textInput":return e=t.data,e===G6&&V6?null:e;default:return null}}function cde(e,t){if(Um)return e==="compositionend"||!q4&&MY(e,t)?(e=PY(),ZS=W4=Td=null,Um=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=K6(n)}}function $Y(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$Y(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FY(){for(var e=window,t=jE();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=jE(e.document)}return t}function X4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function yde(e){var t=FY(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$Y(n.ownerDocument.documentElement,n)){if(r!==null&&X4(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Q6(n,o);var s=Q6(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hm=null,xF=null,Rx=null,wF=!1;function J6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wF||Hm==null||Hm!==jE(r)||(r=Hm,"selectionStart"in r&&X4(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rx&&m1(Rx,r)||(Rx=r,r=XE(xF,"onSelect"),0Vm||(e.current=kF[Vm],kF[Vm]=null,Vm--)}function cr(e,t){Vm++,kF[Vm]=e.current,e.current=t}var ef={},yo=hf(ef),ns=hf(!1),Mp=ef;function Mg(e,t){var n=e.type.contextTypes;if(!n)return ef;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function rs(e){return e=e.childContextTypes,e!=null}function KE(){xr(ns),xr(yo)}function o8(e,t,n){if(yo.current!==ef)throw Error(Me(168));cr(yo,t),cr(ns,n)}function XY(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Me(108,hue(e)||"Unknown",i));return jr({},n,r)}function QE(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ef,Mp=yo.current,cr(yo,e),cr(ns,ns.current),!0}function s8(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=XY(e,t,Mp),r.__reactInternalMemoizedMergedChildContext=e,xr(ns),xr(yo),cr(yo,e)):xr(ns),cr(ns,n)}var bu=null,wk=!1,kD=!1;function YY(e){bu===null?bu=[e]:bu.push(e)}function Rde(e){wk=!0,YY(e)}function pf(){if(!kD&&bu!==null){kD=!0;var e=0,t=jn;try{var n=bu;for(jn=1;e>=s,i-=s,Eu=1<<32-bl(t)+i|n<O?(D=k,k=null):D=k.sibling;var N=p(w,k,x[O],E);if(N===null){k===null&&(k=D);break}e&&k&&N.alternate===null&&t(w,k),b=o(N,b,O),A===null?I=N:A.sibling=N,A=N,k=D}if(O===x.length)return n(w,k),_r&&Yh(w,O),I;if(k===null){for(;OO?(D=k,k=null):D=k.sibling;var H=p(w,k,N.value,E);if(H===null){k===null&&(k=D);break}e&&k&&H.alternate===null&&t(w,k),b=o(H,b,O),A===null?I=H:A.sibling=H,A=H,k=D}if(N.done)return n(w,k),_r&&Yh(w,O),I;if(k===null){for(;!N.done;O++,N=x.next())N=h(w,N.value,E),N!==null&&(b=o(N,b,O),A===null?I=N:A.sibling=N,A=N);return _r&&Yh(w,O),I}for(k=r(w,k);!N.done;O++,N=x.next())N=g(k,w,O,N.value,E),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?O:N.key),b=o(N,b,O),A===null?I=N:A.sibling=N,A=N);return e&&k.forEach(function(G){return t(w,G)}),_r&&Yh(w,O),I}function S(w,b,x,E){if(typeof x=="object"&&x!==null&&x.type===jm&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case a_:e:{for(var I=x.key,A=b;A!==null;){if(A.key===I){if(I=x.type,I===jm){if(A.tag===7){n(w,A.sibling),b=i(A,x.props.children),b.return=w,w=b;break e}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===pd&&h8(I)===A.type){n(w,A.sibling),b=i(A,x.props),b.ref=Sb(w,A,x),b.return=w,w=b;break e}n(w,A);break}else t(w,A);A=A.sibling}x.type===jm?(b=xp(x.props.children,w.mode,E,x.key),b.return=w,w=b):(E=aE(x.type,x.key,x.props,null,w.mode,E),E.ref=Sb(w,b,x),E.return=w,w=E)}return s(w);case zm:e:{for(A=x.key;b!==null;){if(b.key===A)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(w,b.sibling),b=i(b,x.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=DD(x,w.mode,E),b.return=w,w=b}return s(w);case pd:return A=x._init,S(w,b,A(x._payload),E)}if(nx(x))return v(w,b,x,E);if(yb(x))return y(w,b,x,E);y_(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(w,b.sibling),b=i(b,x),b.return=w,w=b):(n(w,b),b=LD(x,w.mode,E),b.return=w,w=b),s(w)):n(w,b)}return S}var Dg=rK(!0),iK=rK(!1),ww={},ec=hf(ww),b1=hf(ww),x1=hf(ww);function dp(e){if(e===ww)throw Error(Me(174));return e}function rz(e,t){switch(cr(x1,t),cr(b1,e),cr(ec,ww),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:uF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=uF(t,e)}xr(ec),cr(ec,t)}function Ng(){xr(ec),xr(b1),xr(x1)}function oK(e){dp(x1.current);var t=dp(ec.current),n=uF(t,e.type);t!==n&&(cr(b1,e),cr(ec,n))}function iz(e){b1.current===e&&(xr(ec),xr(b1))}var Nr=hf(0);function rC(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var AD=[];function oz(){for(var e=0;en?n:4,e(!0);var r=ID.transition;ID.transition={};try{e(!1),t()}finally{jn=n,ID.transition=r}}function wK(){return Ra().memoizedState}function Lde(e,t,n){var r=Ud(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_K(e))SK(t,n);else if(n=ZY(e,t,n,r),n!==null){var i=zo();xl(n,e,r,i),EK(n,t,r)}}function Dde(e,t,n){var r=Ud(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_K(e))SK(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Al(a,s)){var c=t.interleaved;c===null?(i.next=i,tz(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=ZY(e,t,i,r),n!==null&&(i=zo(),xl(n,e,r,i),EK(n,t,r))}}function _K(e){var t=e.alternate;return e===zr||t!==null&&t===zr}function SK(e,t){Px=iC=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function EK(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,j4(e,n)}}var oC={readContext:Ia,useCallback:so,useContext:so,useEffect:so,useImperativeHandle:so,useInsertionEffect:so,useLayoutEffect:so,useMemo:so,useReducer:so,useRef:so,useState:so,useDebugValue:so,useDeferredValue:so,useTransition:so,useMutableSource:so,useSyncExternalStore:so,useId:so,unstable_isNewReconciler:!1},Nde={readContext:Ia,useCallback:function(e,t){return jl().memoizedState=[e,t===void 0?null:t],e},useContext:Ia,useEffect:m8,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rE(4194308,4,gK.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rE(4194308,4,e,t)},useInsertionEffect:function(e,t){return rE(4,2,e,t)},useMemo:function(e,t){var n=jl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Lde.bind(null,zr,e),[r.memoizedState,e]},useRef:function(e){var t=jl();return e={current:e},t.memoizedState=e},useState:p8,useDebugValue:uz,useDeferredValue:function(e){return jl().memoizedState=e},useTransition:function(){var e=p8(!1),t=e[0];return e=Mde.bind(null,e[1]),jl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zr,i=jl();if(_r){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),Ri===null)throw Error(Me(349));Dp&30||lK(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,m8(uK.bind(null,r,o,e),[e]),r.flags|=2048,S1(9,cK.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=jl(),t=Ri.identifierPrefix;if(_r){var n=Cu,r=Eu;n=(r&~(1<<32-bl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=w1++,0")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{hD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ex(e):""}function bue(e){switch(e.tag){case 5:return ex(e.type);case 16:return ex("Lazy");case 13:return ex("Suspense");case 19:return ex("SuspenseList");case 0:case 2:case 15:return e=pD(e.type,!1),e;case 11:return e=pD(e.type.render,!1),e;case 1:return e=pD(e.type,!0),e;default:return""}}function sF(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wm:return"Fragment";case Hm:return"Portal";case rF:return"Profiler";case B4:return"StrictMode";case iF:return"Suspense";case oF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lY:return(e.displayName||"Context")+".Consumer";case aY:return(e._context.displayName||"Context")+".Provider";case $4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F4:return t=e.displayName||null,t!==null?t:sF(e.type)||"Memo";case hd:t=e._payload,e=e._init;try{return sF(e(t))}catch{}}return null}function xue(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sF(t);case 8:return t===B4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uY(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wue(e){var t=uY(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function c_(e){e._valueTracker||(e._valueTracker=wue(e))}function dY(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uY(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function HE(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function aF(e,t){var n=t.checked;return jr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function N6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zd(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fY(e,t){t=t.checked,t!=null&&N4(e,"checked",t,!1)}function lF(e,t){fY(e,t);var n=Zd(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cF(e,t.type,n):t.hasOwnProperty("defaultValue")&&cF(e,t.type,Zd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function B6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function cF(e,t,n){(t!=="number"||HE(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tx=Array.isArray;function mg(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=u_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function l1(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ex={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_ue=["Webkit","ms","Moz","O"];Object.keys(Ex).forEach(function(e){_ue.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ex[t]=Ex[e]})});function gY(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ex.hasOwnProperty(e)&&Ex[e]?(""+t).trim():t+"px"}function vY(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=gY(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Sue=jr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fF(e,t){if(t){if(Sue[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function hF(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pF=null;function z4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mF=null,gg=null,vg=null;function z6(e){if(e=bw(e)){if(typeof mF!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=wk(t),mF(e.stateNode,e.type,t))}}function yY(e){gg?vg?vg.push(e):vg=[e]:gg=e}function bY(){if(gg){var e=gg,t=vg;if(vg=gg=null,z6(e),t)for(e=0;e>>=0,e===0?32:31-(Lue(e)/Due|0)|0}var d_=64,f_=4194304;function nx(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qE(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=nx(a):(o&=s,o!==0&&(r=nx(o)))}else s=n&~i,s!==0?r=nx(s):o!==0&&(r=nx(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vw(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bl(t),e[t]=n}function Fue(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Tx),Y6=String.fromCharCode(32),K6=!1;function FY(e,t){switch(e){case"keyup":return hde.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zY(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gm=!1;function mde(e,t){switch(e){case"compositionend":return zY(t);case"keypress":return t.which!==32?null:(K6=!0,Y6);case"textInput":return e=t.data,e===Y6&&K6?null:e;default:return null}}function gde(e,t){if(Gm)return e==="compositionend"||!X4&&FY(e,t)?(e=BY(),tE=G4=Td=null,Gm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=e8(n)}}function WY(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WY(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function GY(){for(var e=window,t=HE();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=HE(e.document)}return t}function Y4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Cde(e){var t=GY(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WY(n.ownerDocument.documentElement,n)){if(r!==null&&Y4(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=t8(n,o);var s=t8(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vm=null,wF=null,Ax=null,_F=!1;function n8(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_F||Vm==null||Vm!==HE(r)||(r=Vm,"selectionStart"in r&&Y4(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ax&&p1(Ax,r)||(Ax=r,r=KE(wF,"onSelect"),0Ym||(e.current=AF[Ym],AF[Ym]=null,Ym--)}function cr(e,t){Ym++,AF[Ym]=e.current,e.current=t}var ef={},yo=hf(ef),rs=hf(!1),Lp=ef;function Ng(e,t){var n=e.type.contextTypes;if(!n)return ef;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function is(e){return e=e.childContextTypes,e!=null}function JE(){xr(rs),xr(yo)}function c8(e,t,n){if(yo.current!==ef)throw Error(Me(168));cr(yo,t),cr(rs,n)}function eK(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Me(108,xue(e)||"Unknown",i));return jr({},n,r)}function ZE(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ef,Lp=yo.current,cr(yo,e),cr(rs,rs.current),!0}function u8(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=eK(e,t,Lp),r.__reactInternalMemoizedMergedChildContext=e,xr(rs),xr(yo),cr(yo,e)):xr(rs),cr(rs,n)}var xu=null,_k=!1,AD=!1;function tK(e){xu===null?xu=[e]:xu.push(e)}function Bde(e){_k=!0,tK(e)}function pf(){if(!AD&&xu!==null){AD=!0;var e=0,t=jn;try{var n=xu;for(jn=1;e>=s,i-=s,Eu=1<<32-bl(t)+i|n<O?(D=k,k=null):D=k.sibling;var N=p(w,k,x[O],E);if(N===null){k===null&&(k=D);break}e&&k&&N.alternate===null&&t(w,k),b=o(N,b,O),A===null?I=N:A.sibling=N,A=N,k=D}if(O===x.length)return n(w,k),_r&&Kh(w,O),I;if(k===null){for(;OO?(D=k,k=null):D=k.sibling;var H=p(w,k,N.value,E);if(H===null){k===null&&(k=D);break}e&&k&&H.alternate===null&&t(w,k),b=o(H,b,O),A===null?I=H:A.sibling=H,A=H,k=D}if(N.done)return n(w,k),_r&&Kh(w,O),I;if(k===null){for(;!N.done;O++,N=x.next())N=h(w,N.value,E),N!==null&&(b=o(N,b,O),A===null?I=N:A.sibling=N,A=N);return _r&&Kh(w,O),I}for(k=r(w,k);!N.done;O++,N=x.next())N=g(k,w,O,N.value,E),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?O:N.key),b=o(N,b,O),A===null?I=N:A.sibling=N,A=N);return e&&k.forEach(function(G){return t(w,G)}),_r&&Kh(w,O),I}function S(w,b,x,E){if(typeof x=="object"&&x!==null&&x.type===Wm&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case l_:e:{for(var I=x.key,A=b;A!==null;){if(A.key===I){if(I=x.type,I===Wm){if(A.tag===7){n(w,A.sibling),b=i(A,x.props.children),b.return=w,w=b;break e}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===hd&&v8(I)===A.type){n(w,A.sibling),b=i(A,x.props),b.ref=_b(w,A,x),b.return=w,w=b;break e}n(w,A);break}else t(w,A);A=A.sibling}x.type===Wm?(b=wp(x.props.children,w.mode,E,x.key),b.return=w,w=b):(E=cE(x.type,x.key,x.props,null,w.mode,E),E.ref=_b(w,b,x),E.return=w,w=E)}return s(w);case Hm:e:{for(A=x.key;b!==null;){if(b.key===A)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(w,b.sibling),b=i(b,x.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=ND(x,w.mode,E),b.return=w,w=b}return s(w);case hd:return A=x._init,S(w,b,A(x._payload),E)}if(tx(x))return v(w,b,x,E);if(vb(x))return y(w,b,x,E);b_(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(w,b.sibling),b=i(b,x),b.return=w,w=b):(n(w,b),b=DD(x,w.mode,E),b.return=w,w=b),s(w)):n(w,b)}return S}var $g=cK(!0),uK=cK(!1),xw={},ec=hf(xw),y1=hf(xw),b1=hf(xw);function fp(e){if(e===xw)throw Error(Me(174));return e}function iz(e,t){switch(cr(b1,t),cr(y1,e),cr(ec,xw),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dF(t,e)}xr(ec),cr(ec,t)}function Fg(){xr(ec),xr(y1),xr(b1)}function dK(e){fp(b1.current);var t=fp(ec.current),n=dF(t,e.type);t!==n&&(cr(y1,e),cr(ec,n))}function oz(e){y1.current===e&&(xr(ec),xr(y1))}var Nr=hf(0);function oC(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ID=[];function sz(){for(var e=0;en?n:4,e(!0);var r=RD.transition;RD.transition={};try{e(!1),t()}finally{jn=n,RD.transition=r}}function kK(){return Ra().memoizedState}function jde(e,t,n){var r=Ud(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},AK(e))IK(t,n);else if(n=oK(e,t,n,r),n!==null){var i=zo();xl(n,e,r,i),RK(n,t,r)}}function Ude(e,t,n){var r=Ud(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(AK(e))IK(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Al(a,s)){var c=t.interleaved;c===null?(i.next=i,nz(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=oK(e,t,i,r),n!==null&&(i=zo(),xl(n,e,r,i),RK(n,t,r))}}function AK(e){var t=e.alternate;return e===zr||t!==null&&t===zr}function IK(e,t){Ix=sC=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function RK(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,U4(e,n)}}var aC={readContext:Ia,useCallback:so,useContext:so,useEffect:so,useImperativeHandle:so,useInsertionEffect:so,useLayoutEffect:so,useMemo:so,useReducer:so,useRef:so,useState:so,useDebugValue:so,useDeferredValue:so,useTransition:so,useMutableSource:so,useSyncExternalStore:so,useId:so,unstable_isNewReconciler:!1},Hde={readContext:Ia,useCallback:function(e,t){return jl().memoizedState=[e,t===void 0?null:t],e},useContext:Ia,useEffect:b8,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oE(4194308,4,_K.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oE(4194308,4,e,t)},useInsertionEffect:function(e,t){return oE(4,2,e,t)},useMemo:function(e,t){var n=jl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jde.bind(null,zr,e),[r.memoizedState,e]},useRef:function(e){var t=jl();return e={current:e},t.memoizedState=e},useState:y8,useDebugValue:dz,useDeferredValue:function(e){return jl().memoizedState=e},useTransition:function(){var e=y8(!1),t=e[0];return e=zde.bind(null,e[1]),jl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zr,i=jl();if(_r){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),Pi===null)throw Error(Me(349));Np&30||pK(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,b8(gK.bind(null,r,o,e),[e]),r.flags|=2048,_1(9,mK.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=jl(),t=Pi.identifierPrefix;if(_r){var n=Cu,r=Eu;n=(r&~(1<<32-bl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=x1++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xl]=t,e[y1]=r,MK(e,t,!1,!1),t.stateNode=e;e:{switch(s=fF(n,r),n){case"dialog":br("cancel",e),br("close",e),i=r;break;case"iframe":case"object":case"embed":br("load",e),i=r;break;case"video":case"audio":for(i=0;i$g&&(t.flags|=128,r=!0,Eb(o,!1),t.lanes=4194304)}else{if(!r)if(e=rC(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Eb(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!_r)return ao(t),null}else 2*ei()-o.renderingStartTime>$g&&n!==1073741824&&(t.flags|=128,r=!0,Eb(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ei(),t.sibling=null,n=Nr.current,cr(Nr,r?n&1|2:n&1),t):(ao(t),null);case 22:case 23:return gz(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ls&1073741824&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function Wde(e,t){switch(K4(t),t.tag){case 1:return rs(t.type)&&KE(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ng(),xr(ns),xr(yo),oz(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iz(t),null;case 13:if(xr(Nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));Lg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xr(Nr),null;case 4:return Ng(),null;case 10:return ez(t.type._context),null;case 22:case 23:return gz(),null;case 24:return null;default:return null}}var x_=!1,uo=!1,Gde=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Km(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xr(e,t,r)}else n.current=null}function FF(e,t,n){try{n()}catch(r){Xr(e,t,r)}}var E8=!1;function Vde(e,t){if(_F=VE,e=FY(),X4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,c=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++f===r&&(c=s),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(SF={focusedElem:e,selectionRange:n},VE=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){t=lt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?y:sl(t.type,y),S);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){Xr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}return v=E8,E8=!1,v}function Ox(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&FF(t,n,o)}i=i.next}while(i!==r)}}function Ek(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zF(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function NK(e){var t=e.alternate;t!==null&&(e.alternate=null,NK(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xl],delete t[y1],delete t[TF],delete t[Ade],delete t[Ide])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function BK(e){return e.tag===5||e.tag===3||e.tag===4}function C8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BK(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=YE));else if(r!==4&&(e=e.child,e!==null))for(jF(e,t,n),e=e.sibling;e!==null;)jF(e,t,n),e=e.sibling}function UF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(UF(e,t,n),e=e.sibling;e!==null;)UF(e,t,n),e=e.sibling}var qi=null,ll=!1;function rd(e,t,n){for(n=n.child;n!==null;)$K(e,t,n),n=n.sibling}function $K(e,t,n){if(Zl&&typeof Zl.onCommitFiberUnmount=="function")try{Zl.onCommitFiberUnmount(gk,n)}catch{}switch(n.tag){case 5:uo||Km(n,t);case 6:var r=qi,i=ll;qi=null,rd(e,t,n),qi=r,ll=i,qi!==null&&(ll?(e=qi,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qi.removeChild(n.stateNode));break;case 18:qi!==null&&(ll?(e=qi,n=n.stateNode,e.nodeType===8?TD(e.parentNode,n):e.nodeType===1&&TD(e,n),h1(e)):TD(qi,n.stateNode));break;case 4:r=qi,i=ll,qi=n.stateNode.containerInfo,ll=!0,rd(e,t,n),qi=r,ll=i;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&FF(n,t,s),i=i.next}while(i!==r)}rd(e,t,n);break;case 1:if(!uo&&(Km(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Xr(n,t,a)}rd(e,t,n);break;case 21:rd(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,rd(e,t,n),uo=r):rd(e,t,n);break;default:rd(e,t,n)}}function T8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gde),t.forEach(function(r){var i=tfe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ja(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ei()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xde(r/1960))-r,10e?16:e,kd===null)var r=!1;else{if(e=kd,kd=null,lC=0,Tn&6)throw Error(Me(331));var i=Tn;for(Tn|=4,lt=e.current;lt!==null;){var o=lt,s=o.child;if(lt.flags&16){var a=o.deletions;if(a!==null){for(var c=0;cei()-pz?bp(e,0):hz|=n),is(e,t)}function VK(e,t){t===0&&(e.mode&1?(t=d_,d_<<=1,!(d_&130023424)&&(d_=4194304)):t=1);var n=zo();e=$u(e,t),e!==null&&(yw(e,t,n),is(e,n))}function efe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),VK(e,n)}function tfe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),VK(e,n)}var qK;qK=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ns.current)Zo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Zo=!1,Ude(e,t,n);Zo=!!(e.flags&131072)}else Zo=!1,_r&&t.flags&1048576&&KY(t,ZE,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iE(e,t),e=t.pendingProps;var i=Mg(t,yo.current);gg(t,n),i=az(null,t,r,e,i,n);var o=lz();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rs(r)?(o=!0,QE(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,nz(t),i.updater=_k,t.stateNode=i,i._reactInternals=t,OF(t,r,e,n),t=DF(null,t,r,!0,o,n)):(t.tag=0,_r&&o&&Y4(t),Do(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=rfe(r),e=sl(r,e),i){case 0:t=LF(null,t,r,e,n);break e;case 1:t=w8(null,t,r,e,n);break e;case 11:t=b8(null,t,r,e,n);break e;case 14:t=x8(null,t,r,sl(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),LF(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),w8(e,t,r,i,n);case 3:e:{if(RK(t),e===null)throw Error(Me(387));r=t.pendingProps,o=t.memoizedState,i=o.element,eK(e,t),nC(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Bg(Error(Me(423)),t),t=_8(e,t,r,n,i);break e}else if(r!==i){i=Bg(Error(Me(424)),t),t=_8(e,t,r,n,i);break e}else for(Fs=Fd(t.stateNode.containerInfo.firstChild),Hs=t,_r=!0,ul=null,n=iK(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lg(),r===i){t=Fu(e,t,n);break e}Do(e,t,r,n)}t=t.child}return t;case 5:return oK(t),e===null&&IF(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,EF(r,i)?s=null:o!==null&&EF(r,o)&&(t.flags|=32),IK(e,t),Do(e,t,s,n),t.child;case 6:return e===null&&IF(t),null;case 13:return PK(e,t,n);case 4:return rz(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dg(t,null,r,n):Do(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),b8(e,t,r,i,n);case 7:return Do(e,t,t.pendingProps,n),t.child;case 8:return Do(e,t,t.pendingProps.children,n),t.child;case 12:return Do(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,cr(eC,r._currentValue),r._currentValue=s,o!==null)if(Al(o.value,s)){if(o.children===i.children&&!ns.current){t=Fu(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Iu(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),RF(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),RF(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Do(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,gg(t,n),i=Ia(i),r=r(i),t.flags|=1,Do(e,t,r,n),t.child;case 14:return r=t.type,i=sl(r,t.pendingProps),i=sl(r.type,i),x8(e,t,r,i,n);case 15:return kK(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),iE(e,t),t.tag=1,rs(r)?(e=!0,QE(t)):e=!1,gg(t,n),nK(t,r,i),OF(t,r,i,n),DF(null,t,r,!0,e,n);case 19:return OK(e,t,n);case 22:return AK(e,t,n)}throw Error(Me(156,t.tag))};function XK(e,t){return xY(e,t)}function nfe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ga(e,t,n,r){return new nfe(e,t,n,r)}function yz(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rfe(e){if(typeof e=="function")return yz(e)?1:0;if(e!=null){if(e=e.$$typeof,e===B4)return 11;if(e===$4)return 14}return 2}function Hd(e,t){var n=e.alternate;return n===null?(n=ga(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function aE(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")yz(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case jm:return xp(n.children,i,o,t);case N4:s=8,i|=8;break;case nF:return e=ga(12,n,t,i|2),e.elementType=nF,e.lanes=o,e;case rF:return e=ga(13,n,t,i),e.elementType=rF,e.lanes=o,e;case iF:return e=ga(19,n,t,i),e.elementType=iF,e.lanes=o,e;case rY:return Tk(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tY:s=10;break e;case nY:s=9;break e;case B4:s=11;break e;case $4:s=14;break e;case pd:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=ga(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function xp(e,t,n,r){return e=ga(7,e,r,t),e.lanes=n,e}function Tk(e,t,n,r){return e=ga(22,e,r,t),e.elementType=rY,e.lanes=n,e.stateNode={isHidden:!1},e}function LD(e,t,n){return e=ga(6,e,null,t),e.lanes=n,e}function DD(e,t,n){return t=ga(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ife(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mD(0),this.expirationTimes=mD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mD(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function bz(e,t,n,r,i,o,s,a,c){return e=new ife(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ga(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nz(o),e}function ofe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JK)}catch(e){console.error(e)}}JK(),KX.exports=ra;var xv=KX.exports;const Jm=us(xv),L8={disabled:!1},dC=de.createContext(null);var ufe=function(t){return t.scrollTop},ox="unmounted",Qh="exited",Jh="entering",Am="entered",qF="exiting",Xu=function(e){mk(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?a?(c=Qh,o.appearStatus=Jh):c=Am:r.unmountOnExit||r.mountOnEnter?c=ox:c=Qh,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===ox?{status:Qh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Jh&&s!==Am&&(o=Jh):(s===Jh||s===Am)&&(o=qF)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Jh){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Jm.findDOMNode(this);s&&ufe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qh&&this.setState({status:ox})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,c=this.props.nodeRef?[a]:[Jm.findDOMNode(this),a],u=c[0],f=c[1],h=this.getTimeouts(),p=a?h.appear:h.enter;if(!i&&!s||L8.disabled){this.safeSetState({status:Am},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Jh},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Am},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Jm.findDOMNode(this);if(!o||L8.disabled){this.safeSetState({status:Qh},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:qF},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Qh},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Jm.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],f=c[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ox)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=Ne(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return de.createElement(dC.Provider,{value:null},typeof s=="function"?s(i,a):de.cloneElement(de.Children.only(s),a))},t}(de.Component);Xu.contextType=dC;Xu.propTypes={};function gm(){}Xu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gm,onEntering:gm,onEntered:gm,onExit:gm,onExiting:gm,onExited:gm};Xu.UNMOUNTED=ox;Xu.EXITED=Qh;Xu.ENTERING=Jh;Xu.ENTERED=Am;Xu.EXITING=qF;const Sz=Xu;function dfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ez(e,t){var n=function(o){return t&&P.isValidElement(o)?t(o):o},r=Object.create(null);return e&&P.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function ffe(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var c in t){if(r[c])for(s=0;se.scrollTop;function Fg(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function yfe(e){return Ct("MuiCollapse",e)}It("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const bfe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],xfe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return At(r,yfe,n)},wfe=Ce("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),_fe=Ce("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Sfe=Ce("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),eQ=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:c,easing:u,in:f,onEnter:h,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:S,orientation:w="vertical",style:b,timeout:x=qX.standard,TransitionComponent:E=Sz}=r,I=Ne(r,bfe),A=$({},r,{orientation:w,collapsedSize:a}),k=xfe(A),O=Ln(),D=P.useRef(),N=P.useRef(null),H=P.useRef(),G=typeof a=="number"?`${a}px`:a,z=w==="horizontal",L=z?"width":"height";P.useEffect(()=>()=>{clearTimeout(D.current)},[]);const F=P.useRef(null),j=Tr(n,F),V=J=>ae=>{if(J){const le=F.current;ae===void 0?J(le):J(le,ae)}},W=()=>N.current?N.current[z?"clientWidth":"clientHeight"]:0,K=V((J,ae)=>{N.current&&z&&(N.current.style.position="absolute"),J.style[L]=G,h&&h(J,ae)}),X=V((J,ae)=>{const le=W();N.current&&z&&(N.current.style.position="");const{duration:he,easing:pe}=Fg({style:b,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const ve=O.transitions.getAutoHeightDuration(le);J.style.transitionDuration=`${ve}ms`,H.current=ve}else J.style.transitionDuration=typeof he=="string"?he:`${he}ms`;J.style[L]=`${le}px`,J.style.transitionTimingFunction=pe,g&&g(J,ae)}),Q=V((J,ae)=>{J.style[L]="auto",p&&p(J,ae)}),re=V(J=>{J.style[L]=`${W()}px`,v&&v(J)}),ce=V(y),ue=V(J=>{const ae=W(),{duration:le,easing:he}=Fg({style:b,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const pe=O.transitions.getAutoHeightDuration(ae);J.style.transitionDuration=`${pe}ms`,H.current=pe}else J.style.transitionDuration=typeof le=="string"?le:`${le}ms`;J.style[L]=G,J.style.transitionTimingFunction=he,S&&S(J)}),se=J=>{x==="auto"&&(D.current=setTimeout(J,H.current||0)),i&&i(F.current,J)};return C.jsx(E,$({in:f,onEnter:K,onEntered:Q,onEntering:X,onExit:re,onExited:ce,onExiting:ue,addEndListener:se,nodeRef:F,timeout:x==="auto"?null:x},I,{children:(J,ae)=>C.jsx(wfe,$({as:c,className:Ue(k.root,s,{entered:k.entered,exited:!f&&G==="0px"&&k.hidden}[J]),style:$({[z?"minWidth":"minHeight"]:G},b),ownerState:$({},A,{state:J}),ref:j},ae,{children:C.jsx(_fe,{ownerState:$({},A,{state:J}),className:k.wrapper,ref:N,children:C.jsx(Sfe,{ownerState:$({},A,{state:J}),className:k.wrapperInner,children:o})})}))}))});eQ.muiSupportAuto=!0;const ND=eQ;function Efe(e){return Ct("MuiPaper",e)}It("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Cfe=["className","component","elevation","square","variant"],Tfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return At(o,Efe,i)},kfe=Ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${kn("#fff",k6(t.elevation))}, ${kn("#fff",k6(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Afe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,u=Ne(r,Cfe),f=$({},r,{component:o,elevation:s,square:a,variant:c}),h=Tfe(f);return C.jsx(kfe,$({as:o,ownerState:f,className:Ue(h.root,i),ref:n},u))}),wv=Afe;function Ife(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:c,timeout:u}=e,[f,h]=P.useState(!1),p=Ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},v=Ue(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&h(!0),P.useEffect(()=>{if(!a&&c!=null){const y=setTimeout(c,u);return()=>{clearTimeout(y)}}},[c,a,u]),C.jsx("span",{className:p,style:g,children:C.jsx("span",{className:v})})}const Rfe=It("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ua=Rfe,Pfe=["center","classes","className"];let Pk=e=>e,D8,N8,B8,$8;const XF=550,Ofe=80,Mfe=df(D8||(D8=Pk` +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function MD(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function LF(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Vde=typeof WeakMap=="function"?WeakMap:Map;function PK(e,t,n){n=Iu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cC||(cC=!0,WF=r),LF(e,t)},n}function OK(e,t,n){n=Iu(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){LF(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){LF(e,t),typeof r!="function"&&(jd===null?jd=new Set([this]):jd.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function x8(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vde;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=sfe.bind(null,e,t,n),t.then(e,e))}function w8(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function _8(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Iu(-1,1),t.tag=2,zd(n,t,1))),n.lanes|=1),e)}var qde=qu.ReactCurrentOwner,es=!1;function Do(e,t,n,r){t.child=e===null?uK(t,null,n,r):$g(t,e.child,n,r)}function S8(e,t,n,r,i){n=n.render;var o=t.ref;return bg(t,i),r=lz(e,t,n,r,o,i),n=cz(),e!==null&&!es?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fu(e,t,i)):(_r&&n&&K4(t),t.flags|=1,Do(e,t,r,i),t.child)}function E8(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!bz(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,MK(e,t,o,r,i)):(e=cE(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:p1,n(s,r)&&e.ref===t.ref)return Fu(e,t,i)}return t.flags|=1,e=Hd(o,r),e.ref=t.ref,e.return=t,t.child=e}function MK(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(p1(o,r)&&e.ref===t.ref)if(es=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(es=!0);else return t.lanes=e.lanes,Fu(e,t,i)}return DF(e,t,n,r,i)}function LK(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},cr(eg,Ds),Ds|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,cr(eg,Ds),Ds|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,cr(eg,Ds),Ds|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,cr(eg,Ds),Ds|=r;return Do(e,t,i,n),t.child}function DK(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function DF(e,t,n,r,i){var o=is(n)?Lp:yo.current;return o=Ng(t,o),bg(t,i),n=lz(e,t,n,r,o,i),r=cz(),e!==null&&!es?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fu(e,t,i)):(_r&&r&&K4(t),t.flags|=1,Do(e,t,n,i),t.child)}function C8(e,t,n,r,i){if(is(n)){var o=!0;ZE(t)}else o=!1;if(bg(t,i),t.stateNode===null)sE(e,t),lK(t,n,r),MF(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ia(u):(u=is(n)?Lp:yo.current,u=Ng(t,u));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==u)&&g8(t,s,r,u),pd=!1;var p=t.memoizedState;s.state=p,iC(t,r,s,i),c=t.memoizedState,a!==r||p!==c||rs.current||pd?(typeof f=="function"&&(OF(t,n,f,r),c=t.memoizedState),(a=pd||m8(t,n,a,r,p,c,u))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,sK(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:sl(t.type,a),s.props=u,h=t.pendingProps,p=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ia(c):(c=is(n)?Lp:yo.current,c=Ng(t,c));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||p!==c)&&g8(t,s,r,c),pd=!1,p=t.memoizedState,s.state=p,iC(t,r,s,i);var v=t.memoizedState;a!==h||p!==v||rs.current||pd?(typeof g=="function"&&(OF(t,n,g,r),v=t.memoizedState),(u=pd||m8(t,n,u,r,p,v,c)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=c,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return NF(e,t,n,r,o,i)}function NF(e,t,n,r,i,o){DK(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&u8(t,n,!1),Fu(e,t,o);r=t.stateNode,qde.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=$g(t,e.child,null,o),t.child=$g(t,null,a,o)):Do(e,t,a,o),t.memoizedState=r.state,i&&u8(t,n,!0),t.child}function NK(e){var t=e.stateNode;t.pendingContext?c8(e,t.pendingContext,t.pendingContext!==t.context):t.context&&c8(e,t.context,!1),iz(e,t.containerInfo)}function T8(e,t,n,r,i){return Bg(),J4(i),t.flags|=256,Do(e,t,n,r),t.child}var BF={dehydrated:null,treeContext:null,retryLane:0};function $F(e){return{baseLanes:e,cachePool:null,transitions:null}}function BK(e,t,n){var r=t.pendingProps,i=Nr.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),cr(Nr,i&1),e===null)return RF(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=kk(s,r,0,null),e=wp(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=$F(n),t.memoizedState=BF,e):fz(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Xde(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Hd(i,c),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Hd(a,o):(o=wp(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?$F(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=BF,r}return o=e.child,e=o.sibling,r=Hd(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function fz(e,t){return t=kk({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function x_(e,t,n,r){return r!==null&&J4(r),$g(t,e.child,null,n),e=fz(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xde(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=MD(Error(Me(422))),x_(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=kk({mode:"visible",children:r.children},i,0,null),o=wp(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&$g(t,e.child,null,s),t.child.memoizedState=$F(s),t.memoizedState=BF,o);if(!(t.mode&1))return x_(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Me(419)),r=MD(o,r,void 0),x_(e,t,s,r)}if(a=(s&e.childLanes)!==0,es||a){if(r=Pi,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,$u(e,i),xl(r,e,i,-1))}return yz(),r=MD(Error(Me(421))),x_(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=afe.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,zs=Fd(i.nextSibling),Ws=t,_r=!0,ul=null,e!==null&&(fa[ha++]=Eu,fa[ha++]=Cu,fa[ha++]=Dp,Eu=e.id,Cu=e.overflow,Dp=t),t=fz(t,r.children),t.flags|=4096,t)}function k8(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),PF(e.return,t,n)}function LD(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $K(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Do(e,t,r.children,n),r=Nr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&k8(e,n,t);else if(e.tag===19)k8(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(cr(Nr,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&oC(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),LD(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&oC(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}LD(t,!0,n,null,o);break;case"together":LD(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sE(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fu(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bp|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Me(153));if(t.child!==null){for(e=t.child,n=Hd(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hd(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yde(e,t,n){switch(t.tag){case 3:NK(t),Bg();break;case 5:dK(t);break;case 1:is(t.type)&&ZE(t);break;case 4:iz(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;cr(nC,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(cr(Nr,Nr.current&1),t.flags|=128,null):n&t.child.childLanes?BK(e,t,n):(cr(Nr,Nr.current&1),e=Fu(e,t,n),e!==null?e.sibling:null);cr(Nr,Nr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $K(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),cr(Nr,Nr.current),r)break;return null;case 22:case 23:return t.lanes=0,LK(e,t,n)}return Fu(e,t,n)}var FK,FF,zK,jK;FK=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};FF=function(){};zK=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,fp(ec.current);var o=null;switch(n){case"input":i=aF(e,i),r=aF(e,r),o=[];break;case"select":i=jr({},i,{value:void 0}),r=jr({},r,{value:void 0}),o=[];break;case"textarea":i=uF(e,i),r=uF(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=QE)}fF(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(a1.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(a1.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&br("scroll",e),o||a===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};jK=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sb(e,t){if(!_r)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ao(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kde(e,t,n){var r=t.pendingProps;switch(Q4(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ao(t),null;case 1:return is(t.type)&&JE(),ao(t),null;case 3:return r=t.stateNode,Fg(),xr(rs),xr(yo),sz(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(y_(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ul!==null&&(qF(ul),ul=null))),FF(e,t),ao(t),null;case 5:oz(t);var i=fp(b1.current);if(n=t.type,e!==null&&t.stateNode!=null)zK(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Me(166));return ao(t),null}if(e=fp(ec.current),y_(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Xl]=t,r[v1]=o,e=(t.mode&1)!==0,n){case"dialog":br("cancel",r),br("close",r);break;case"iframe":case"object":case"embed":br("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xl]=t,e[v1]=r,FK(e,t,!1,!1),t.stateNode=e;e:{switch(s=hF(n,r),n){case"dialog":br("cancel",e),br("close",e),i=r;break;case"iframe":case"object":case"embed":br("load",e),i=r;break;case"video":case"audio":for(i=0;ijg&&(t.flags|=128,r=!0,Sb(o,!1),t.lanes=4194304)}else{if(!r)if(e=oC(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sb(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!_r)return ao(t),null}else 2*ei()-o.renderingStartTime>jg&&n!==1073741824&&(t.flags|=128,r=!0,Sb(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ei(),t.sibling=null,n=Nr.current,cr(Nr,r?n&1|2:n&1),t):(ao(t),null);case 22:case 23:return vz(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ds&1073741824&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function Qde(e,t){switch(Q4(t),t.tag){case 1:return is(t.type)&&JE(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fg(),xr(rs),xr(yo),sz(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oz(t),null;case 13:if(xr(Nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));Bg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xr(Nr),null;case 4:return Fg(),null;case 10:return tz(t.type._context),null;case 22:case 23:return vz(),null;case 24:return null;default:return null}}var w_=!1,uo=!1,Jde=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Zm(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xr(e,t,r)}else n.current=null}function zF(e,t,n){try{n()}catch(r){Xr(e,t,r)}}var A8=!1;function Zde(e,t){if(SF=XE,e=GY(),Y4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,c=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++f===r&&(c=s),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(EF={focusedElem:e,selectionRange:n},XE=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){t=lt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?y:sl(t.type,y),S);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){Xr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}return v=A8,A8=!1,v}function Rx(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&zF(t,n,o)}i=i.next}while(i!==r)}}function Ck(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jF(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function UK(e){var t=e.alternate;t!==null&&(e.alternate=null,UK(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xl],delete t[v1],delete t[kF],delete t[Dde],delete t[Nde])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function HK(e){return e.tag===5||e.tag===3||e.tag===4}function I8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||HK(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function UF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=QE));else if(r!==4&&(e=e.child,e!==null))for(UF(e,t,n),e=e.sibling;e!==null;)UF(e,t,n),e=e.sibling}function HF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(HF(e,t,n),e=e.sibling;e!==null;)HF(e,t,n),e=e.sibling}var qi=null,ll=!1;function nd(e,t,n){for(n=n.child;n!==null;)WK(e,t,n),n=n.sibling}function WK(e,t,n){if(Zl&&typeof Zl.onCommitFiberUnmount=="function")try{Zl.onCommitFiberUnmount(vk,n)}catch{}switch(n.tag){case 5:uo||Zm(n,t);case 6:var r=qi,i=ll;qi=null,nd(e,t,n),qi=r,ll=i,qi!==null&&(ll?(e=qi,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qi.removeChild(n.stateNode));break;case 18:qi!==null&&(ll?(e=qi,n=n.stateNode,e.nodeType===8?kD(e.parentNode,n):e.nodeType===1&&kD(e,n),f1(e)):kD(qi,n.stateNode));break;case 4:r=qi,i=ll,qi=n.stateNode.containerInfo,ll=!0,nd(e,t,n),qi=r,ll=i;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&zF(n,t,s),i=i.next}while(i!==r)}nd(e,t,n);break;case 1:if(!uo&&(Zm(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Xr(n,t,a)}nd(e,t,n);break;case 21:nd(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,nd(e,t,n),uo=r):nd(e,t,n);break;default:nd(e,t,n)}}function R8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jde),t.forEach(function(r){var i=lfe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ja(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ei()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tfe(r/1960))-r,10e?16:e,kd===null)var r=!1;else{if(e=kd,kd=null,uC=0,Tn&6)throw Error(Me(331));var i=Tn;for(Tn|=4,lt=e.current;lt!==null;){var o=lt,s=o.child;if(lt.flags&16){var a=o.deletions;if(a!==null){for(var c=0;cei()-mz?xp(e,0):pz|=n),os(e,t)}function JK(e,t){t===0&&(e.mode&1?(t=f_,f_<<=1,!(f_&130023424)&&(f_=4194304)):t=1);var n=zo();e=$u(e,t),e!==null&&(vw(e,t,n),os(e,n))}function afe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),JK(e,n)}function lfe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),JK(e,n)}var ZK;ZK=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rs.current)es=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return es=!1,Yde(e,t,n);es=!!(e.flags&131072)}else es=!1,_r&&t.flags&1048576&&nK(t,tC,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sE(e,t),e=t.pendingProps;var i=Ng(t,yo.current);bg(t,n),i=lz(null,t,r,e,i,n);var o=cz();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,is(r)?(o=!0,ZE(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rz(t),i.updater=Sk,t.stateNode=i,i._reactInternals=t,MF(t,r,e,n),t=NF(null,t,r,!0,o,n)):(t.tag=0,_r&&o&&K4(t),Do(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ufe(r),e=sl(r,e),i){case 0:t=DF(null,t,r,e,n);break e;case 1:t=C8(null,t,r,e,n);break e;case 11:t=S8(null,t,r,e,n);break e;case 14:t=E8(null,t,r,sl(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),DF(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),C8(e,t,r,i,n);case 3:e:{if(NK(t),e===null)throw Error(Me(387));r=t.pendingProps,o=t.memoizedState,i=o.element,sK(e,t),iC(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zg(Error(Me(423)),t),t=T8(e,t,r,n,i);break e}else if(r!==i){i=zg(Error(Me(424)),t),t=T8(e,t,r,n,i);break e}else for(zs=Fd(t.stateNode.containerInfo.firstChild),Ws=t,_r=!0,ul=null,n=uK(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bg(),r===i){t=Fu(e,t,n);break e}Do(e,t,r,n)}t=t.child}return t;case 5:return dK(t),e===null&&RF(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,CF(r,i)?s=null:o!==null&&CF(r,o)&&(t.flags|=32),DK(e,t),Do(e,t,s,n),t.child;case 6:return e===null&&RF(t),null;case 13:return BK(e,t,n);case 4:return iz(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$g(t,null,r,n):Do(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),S8(e,t,r,i,n);case 7:return Do(e,t,t.pendingProps,n),t.child;case 8:return Do(e,t,t.pendingProps.children,n),t.child;case 12:return Do(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,cr(nC,r._currentValue),r._currentValue=s,o!==null)if(Al(o.value,s)){if(o.children===i.children&&!rs.current){t=Fu(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Iu(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),PF(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),PF(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Do(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bg(t,n),i=Ia(i),r=r(i),t.flags|=1,Do(e,t,r,n),t.child;case 14:return r=t.type,i=sl(r,t.pendingProps),i=sl(r.type,i),E8(e,t,r,i,n);case 15:return MK(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),sE(e,t),t.tag=1,is(r)?(e=!0,ZE(t)):e=!1,bg(t,n),lK(t,r,i),MF(t,r,i,n),NF(null,t,r,!0,e,n);case 19:return $K(e,t,n);case 22:return LK(e,t,n)}throw Error(Me(156,t.tag))};function eQ(e,t){return TY(e,t)}function cfe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new cfe(e,t,n,r)}function bz(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ufe(e){if(typeof e=="function")return bz(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$4)return 11;if(e===F4)return 14}return 2}function Hd(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function cE(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")bz(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wm:return wp(n.children,i,o,t);case B4:s=8,i|=8;break;case rF:return e=va(12,n,t,i|2),e.elementType=rF,e.lanes=o,e;case iF:return e=va(13,n,t,i),e.elementType=iF,e.lanes=o,e;case oF:return e=va(19,n,t,i),e.elementType=oF,e.lanes=o,e;case cY:return kk(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case aY:s=10;break e;case lY:s=9;break e;case $4:s=11;break e;case F4:s=14;break e;case hd:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=va(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function wp(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function kk(e,t,n,r){return e=va(22,e,r,t),e.elementType=cY,e.lanes=n,e.stateNode={isHidden:!1},e}function DD(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function ND(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dfe(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gD(0),this.expirationTimes=gD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gD(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xz(e,t,n,r,i,o,s,a,c){return e=new dfe(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=va(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rz(o),e}function ffe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iQ)}catch(e){console.error(e)}}iQ(),nY.exports=ia;var _v=nY.exports;const tg=ds(_v),$8={disabled:!1},hC=de.createContext(null);var vfe=function(t){return t.scrollTop},ix="unmounted",Jh="exited",Zh="entering",Pm="entered",XF="exiting",Xu=function(e){gk(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?a?(c=Jh,o.appearStatus=Zh):c=Pm:r.unmountOnExit||r.mountOnEnter?c=ix:c=Jh,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===ix?{status:Jh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Zh&&s!==Pm&&(o=Zh):(s===Zh||s===Pm)&&(o=XF)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Zh){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:tg.findDOMNode(this);s&&vfe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jh&&this.setState({status:ix})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,c=this.props.nodeRef?[a]:[tg.findDOMNode(this),a],u=c[0],f=c[1],h=this.getTimeouts(),p=a?h.appear:h.enter;if(!i&&!s||$8.disabled){this.safeSetState({status:Pm},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Zh},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Pm},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:tg.findDOMNode(this);if(!o||$8.disabled){this.safeSetState({status:Jh},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:XF},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Jh},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:tg.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],f=c[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ix)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=Ne(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return de.createElement(hC.Provider,{value:null},typeof s=="function"?s(i,a):de.cloneElement(de.Children.only(s),a))},t}(de.Component);Xu.contextType=hC;Xu.propTypes={};function bm(){}Xu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bm,onEntering:bm,onEntered:bm,onExit:bm,onExiting:bm,onExited:bm};Xu.UNMOUNTED=ix;Xu.EXITED=Jh;Xu.ENTERING=Zh;Xu.ENTERED=Pm;Xu.EXITING=XF;const Ez=Xu;function yfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cz(e,t){var n=function(o){return t&&R.isValidElement(o)?t(o):o},r=Object.create(null);return e&&R.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function bfe(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var c in t){if(r[c])for(s=0;se.scrollTop;function Ug(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function Cfe(e){return Ct("MuiCollapse",e)}It("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Tfe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],kfe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return At(r,Cfe,n)},Afe=Ce("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Ife=Ce("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Rfe=Ce("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),sQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:c,easing:u,in:f,onEnter:h,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:S,orientation:w="vertical",style:b,timeout:x=ZX.standard,TransitionComponent:E=Ez}=r,I=Ne(r,Tfe),A=$({},r,{orientation:w,collapsedSize:a}),k=kfe(A),O=Dn(),D=R.useRef(),N=R.useRef(null),H=R.useRef(),G=typeof a=="number"?`${a}px`:a,z=w==="horizontal",L=z?"width":"height";R.useEffect(()=>()=>{clearTimeout(D.current)},[]);const F=R.useRef(null),j=Tr(n,F),V=J=>ae=>{if(J){const le=F.current;ae===void 0?J(le):J(le,ae)}},W=()=>N.current?N.current[z?"clientWidth":"clientHeight"]:0,K=V((J,ae)=>{N.current&&z&&(N.current.style.position="absolute"),J.style[L]=G,h&&h(J,ae)}),X=V((J,ae)=>{const le=W();N.current&&z&&(N.current.style.position="");const{duration:he,easing:pe}=Ug({style:b,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const ve=O.transitions.getAutoHeightDuration(le);J.style.transitionDuration=`${ve}ms`,H.current=ve}else J.style.transitionDuration=typeof he=="string"?he:`${he}ms`;J.style[L]=`${le}px`,J.style.transitionTimingFunction=pe,g&&g(J,ae)}),Q=V((J,ae)=>{J.style[L]="auto",p&&p(J,ae)}),ie=V(J=>{J.style[L]=`${W()}px`,v&&v(J)}),ce=V(y),ue=V(J=>{const ae=W(),{duration:le,easing:he}=Ug({style:b,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const pe=O.transitions.getAutoHeightDuration(ae);J.style.transitionDuration=`${pe}ms`,H.current=pe}else J.style.transitionDuration=typeof le=="string"?le:`${le}ms`;J.style[L]=G,J.style.transitionTimingFunction=he,S&&S(J)}),se=J=>{x==="auto"&&(D.current=setTimeout(J,H.current||0)),i&&i(F.current,J)};return C.jsx(E,$({in:f,onEnter:K,onEntered:Q,onEntering:X,onExit:ie,onExited:ce,onExiting:ue,addEndListener:se,nodeRef:F,timeout:x==="auto"?null:x},I,{children:(J,ae)=>C.jsx(Afe,$({as:c,className:Ue(k.root,s,{entered:k.entered,exited:!f&&G==="0px"&&k.hidden}[J]),style:$({[z?"minWidth":"minHeight"]:G},b),ownerState:$({},A,{state:J}),ref:j},ae,{children:C.jsx(Ife,{ownerState:$({},A,{state:J}),className:k.wrapper,ref:N,children:C.jsx(Rfe,{ownerState:$({},A,{state:J}),className:k.wrapperInner,children:o})})}))}))});sQ.muiSupportAuto=!0;const BD=sQ;function Pfe(e){return Ct("MuiPaper",e)}It("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ofe=["className","component","elevation","square","variant"],Mfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return At(o,Pfe,i)},Lfe=Ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${kn("#fff",P6(t.elevation))}, ${kn("#fff",P6(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dfe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,u=Ne(r,Ofe),f=$({},r,{component:o,elevation:s,square:a,variant:c}),h=Mfe(f);return C.jsx(Lfe,$({as:o,ownerState:f,className:Ue(h.root,i),ref:n},u))}),Sv=Dfe;function Nfe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:c,timeout:u}=e,[f,h]=R.useState(!1),p=Ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},v=Ue(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&h(!0),R.useEffect(()=>{if(!a&&c!=null){const y=setTimeout(c,u);return()=>{clearTimeout(y)}}},[c,a,u]),C.jsx("span",{className:p,style:g,children:C.jsx("span",{className:v})})}const Bfe=It("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),da=Bfe,$fe=["center","classes","className"];let Ok=e=>e,F8,z8,j8,U8;const YF=550,Ffe=80,zfe=df(F8||(F8=Ok` 0% { transform: scale(0); opacity: 0.1; @@ -68,7 +68,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),Lfe=df(N8||(N8=Pk` +`)),jfe=df(z8||(z8=Ok` 0% { opacity: 1; } @@ -76,7 +76,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),Dfe=df(B8||(B8=Pk` +`)),Ufe=df(j8||(j8=Ok` 0% { transform: scale(1); } @@ -88,7 +88,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),Nfe=Ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Bfe=Ce(Ife,{name:"MuiTouchRipple",slot:"Ripple"})($8||($8=Pk` +`)),Hfe=Ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Wfe=Ce(Nfe,{name:"MuiTouchRipple",slot:"Ripple"})(U8||(U8=Ok` opacity: 0; position: absolute; @@ -131,8 +131,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),ua.rippleVisible,Mfe,XF,({theme:e})=>e.transitions.easing.easeInOut,ua.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ua.child,ua.childLeaving,Lfe,XF,({theme:e})=>e.transitions.easing.easeInOut,ua.childPulsate,Dfe,({theme:e})=>e.transitions.easing.easeInOut),$fe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=Ne(r,Pfe),[c,u]=P.useState([]),f=P.useRef(0),h=P.useRef(null);P.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const p=P.useRef(!1),g=P.useRef(0),v=P.useRef(null),y=P.useRef(null);P.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const S=P.useCallback(E=>{const{pulsate:I,rippleX:A,rippleY:k,rippleSize:O,cb:D}=E;u(N=>[...N,C.jsx(Bfe,{classes:{ripple:Ue(o.ripple,ua.ripple),rippleVisible:Ue(o.rippleVisible,ua.rippleVisible),ripplePulsate:Ue(o.ripplePulsate,ua.ripplePulsate),child:Ue(o.child,ua.child),childLeaving:Ue(o.childLeaving,ua.childLeaving),childPulsate:Ue(o.childPulsate,ua.childPulsate)},timeout:XF,pulsate:I,rippleX:A,rippleY:k,rippleSize:O},f.current)]),f.current+=1,h.current=D},[o]),w=P.useCallback((E={},I={},A=()=>{})=>{const{pulsate:k=!1,center:O=i||I.pulsate,fakeElement:D=!1}=I;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const N=D?null:y.current,H=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let G,z,L;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)G=Math.round(H.width/2),z=Math.round(H.height/2);else{const{clientX:F,clientY:j}=E.touches&&E.touches.length>0?E.touches[0]:E;G=Math.round(F-H.left),z=Math.round(j-H.top)}if(O)L=Math.sqrt((2*H.width**2+H.height**2)/3),L%2===0&&(L+=1);else{const F=Math.max(Math.abs((N?N.clientWidth:0)-G),G)*2+2,j=Math.max(Math.abs((N?N.clientHeight:0)-z),z)*2+2;L=Math.sqrt(F**2+j**2)}E!=null&&E.touches?v.current===null&&(v.current=()=>{S({pulsate:k,rippleX:G,rippleY:z,rippleSize:L,cb:A})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Ofe)):S({pulsate:k,rippleX:G,rippleY:z,rippleSize:L,cb:A})},[i,S]),b=P.useCallback(()=>{w({},{pulsate:!0})},[w]),x=P.useCallback((E,I)=>{if(clearTimeout(g.current),(E==null?void 0:E.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{x(E,I)});return}v.current=null,u(A=>A.length>0?A.slice(1):A),h.current=I},[]);return P.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:x}),[b,w,x]),C.jsx(Nfe,$({className:Ue(ua.root,o.root,s),ref:y},a,{children:C.jsx(vfe,{component:null,exit:!0,children:c})}))}),Ffe=$fe;function zfe(e){return Ct("MuiButtonBase",e)}const jfe=It("MuiButtonBase",["root","disabled","focusVisible"]),Ufe=jfe,Hfe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Wfe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=At({root:["root",t&&"disabled",n&&"focusVisible"]},zfe,i);return n&&r&&(s.root+=` ${r}`),s},Gfe=Ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ufe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vfe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:c="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:S,onDragLeave:w,onFocus:b,onFocusVisible:x,onKeyDown:E,onKeyUp:I,onMouseDown:A,onMouseLeave:k,onMouseUp:O,onTouchEnd:D,onTouchMove:N,onTouchStart:H,tabIndex:G=0,TouchRippleProps:z,touchRippleRef:L,type:F}=r,j=Ne(r,Hfe),V=P.useRef(null),W=P.useRef(null),K=Tr(W,L),{isFocusVisibleRef:X,onFocus:Q,onBlur:re,ref:ce}=d4(),[ue,se]=P.useState(!1);u&&ue&&se(!1),P.useImperativeHandle(i,()=>({focusVisible:()=>{se(!0),V.current.focus()}}),[]);const[J,ae]=P.useState(!1);P.useEffect(()=>{ae(!0)},[]);const le=J&&!f&&!u;P.useEffect(()=>{ue&&p&&!f&&J&&W.current.pulsate()},[f,p,ue,J]);function he(Be,Pt,dt=h){return mo(Ie=>(Pt&&Pt(Ie),!dt&&W.current&&W.current[Be](Ie),!0))}const pe=he("start",A),ve=he("stop",S),ye=he("stop",w),xe=he("stop",O),me=he("stop",Be=>{ue&&Be.preventDefault(),k&&k(Be)}),be=he("start",H),Ze=he("stop",D),Xe=he("stop",N),ct=he("stop",Be=>{re(Be),X.current===!1&&se(!1),v&&v(Be)},!1),Bt=mo(Be=>{V.current||(V.current=Be.currentTarget),Q(Be),X.current===!0&&(se(!0),x&&x(Be)),b&&b(Be)}),Pe=()=>{const Be=V.current;return c&&c!=="button"&&!(Be.tagName==="A"&&Be.href)},ze=P.useRef(!1),st=mo(Be=>{p&&!ze.current&&ue&&W.current&&Be.key===" "&&(ze.current=!0,W.current.stop(Be,()=>{W.current.start(Be)})),Be.target===Be.currentTarget&&Pe()&&Be.key===" "&&Be.preventDefault(),E&&E(Be),Be.target===Be.currentTarget&&Pe()&&Be.key==="Enter"&&!u&&(Be.preventDefault(),y&&y(Be))}),gt=mo(Be=>{p&&Be.key===" "&&W.current&&ue&&!Be.defaultPrevented&&(ze.current=!1,W.current.stop(Be,()=>{W.current.pulsate(Be)})),I&&I(Be),y&&Be.target===Be.currentTarget&&Pe()&&Be.key===" "&&!Be.defaultPrevented&&y(Be)});let vt=c;vt==="button"&&(j.href||j.to)&&(vt=g);const _e={};vt==="button"?(_e.type=F===void 0?"button":F,_e.disabled=u):(!j.href&&!j.to&&(_e.role="button"),u&&(_e["aria-disabled"]=u));const je=Tr(n,ce,V),Ke=$({},r,{centerRipple:o,component:c,disabled:u,disableRipple:f,disableTouchRipple:h,focusRipple:p,tabIndex:G,focusVisible:ue}),Fe=Wfe(Ke);return C.jsxs(Gfe,$({as:vt,className:Ue(Fe.root,a),ownerState:Ke,onBlur:ct,onClick:y,onContextMenu:ve,onFocus:Bt,onKeyDown:st,onKeyUp:gt,onMouseDown:pe,onMouseLeave:me,onMouseUp:xe,onDragLeave:ye,onTouchEnd:Ze,onTouchMove:Xe,onTouchStart:be,ref:je,tabIndex:u?-1:G,type:F},_e,j,{children:[s,le?C.jsx(Ffe,$({ref:K,center:o},z)):null]}))}),Yu=Vfe;function qfe(e){return Ct("MuiIconButton",e)}const Xfe=It("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Yfe=Xfe,Kfe=["edge","children","className","color","disabled","disableFocusRipple","size"],Qfe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Le(r)}`,i&&`edge${Le(i)}`,`size${Le(o)}`]};return At(s,qfe,t)},Jfe=Ce(Yu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Le(n.color)}`],n.edge&&t[`edge${Le(n.edge)}`],t[`size${Le(n.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":$({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Yfe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Zfe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium"}=r,h=Ne(r,Kfe),p=$({},r,{edge:i,color:a,disabled:c,disableFocusRipple:u,size:f}),g=Qfe(p);return C.jsx(Jfe,$({className:Ue(g.root,s),centerRipple:!0,focusRipple:!u,disabled:c,ref:n,ownerState:p},h,{children:o}))}),$p=Zfe;function ehe(e){return Ct("MuiTypography",e)}It("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const the=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],nhe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${Le(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return At(a,ehe,s)},rhe=Ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),F8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ihe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ohe=e=>ihe[e]||e,she=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTypography"}),i=ohe(r.color),o=k4($({},r,{color:i})),{align:s="inherit",className:a,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=F8}=o,v=Ne(o,the),y=$({},o,{align:s,color:i,className:a,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:p,variantMapping:g}),S=c||(h?"p":g[p]||F8[p])||"span",w=nhe(y);return C.jsx(rhe,$({as:S,ref:n,ownerState:y,className:Ue(w.root,a)},v))}),Xt=she;function ahe(e){return Ct("MuiAppBar",e)}It("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const lhe=["className","color","enableColorOnDark","position"],che=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Le(t)}`,`position${Le(n)}`]};return At(i,ahe,r)},S_=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,uhe=Ce(wv,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Le(n.position)}`],t[`color${Le(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:S_(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:S_(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:S_(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:S_(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),dhe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=Ne(r,lhe),u=$({},r,{color:o,position:a,enableColorOnDark:s}),f=che(u);return C.jsx(uhe,$({square:!0,component:"header",ownerState:u,elevation:4,className:Ue(f.root,i,a==="fixed"&&"mui-fixed"),ref:n},c))}),fhe=dhe;function tc(e){return typeof e=="string"}function sx(e,t,n){return e===void 0||tc(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function hhe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const phe={disableDefaultClasses:!1},mhe=P.createContext(phe);function ghe(e){const{disableDefaultClasses:t}=P.useContext(mhe);return n=>t?"":e(n)}function fC(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function vhe(e,t,n){return typeof e=="function"?e(t,n):e}function z8(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function yhe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Ue(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),v=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=$({},n,i,r);return g.length>0&&(y.className=g),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=fC($({},i,r)),a=z8(r),c=z8(i),u=t(s),f=Ue(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=$({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},u,n,c,a);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:u.ref}}const bhe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ti(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Ne(e,bhe),a=o?{}:vhe(r,i),{props:c,internalRef:u}=yhe($({},s,{externalSlotProps:a})),f=Tr(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return sx(n,$({},c,{ref:f}),i)}function j8(e){return e.substring(2).toLowerCase()}function xhe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Tr(t.ref,a),h=mo(v=>{const y=u.current;u.current=!1;const S=Fr(a.current);if(!c.current||!a.current||"clientX"in v&&xhe(v,S))return;if(s.current){s.current=!1;return}let w;v.composedPath?w=v.composedPath().indexOf(a.current)>-1:w=!S.documentElement.contains(v.target)||a.current.contains(v.target),!w&&(n||!y)&&i(v)}),p=v=>y=>{u.current=!0;const S=t.props[v];S&&S(y)},g={ref:f};return o!==!1&&(g[o]=p(o)),P.useEffect(()=>{if(o!==!1){const v=j8(o),y=Fr(a.current),S=()=>{s.current=!0};return y.addEventListener(v,h),y.addEventListener("touchmove",S),()=>{y.removeEventListener(v,h),y.removeEventListener("touchmove",S)}}},[h,o]),r!==!1&&(g[r]=p(r)),P.useEffect(()=>{if(r!==!1){const v=j8(r),y=Fr(a.current);return y.addEventListener(v,h),()=>{y.removeEventListener(v,h)}}},[h,r]),C.jsx(P.Fragment,{children:P.cloneElement(t,g)})}const _he=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function She(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Ehe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Che(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ehe(e))}function The(e){const t=[],n=[];return Array.from(e.querySelectorAll(_he)).forEach((r,i)=>{const o=She(r);o===-1||!Che(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function khe(){return!0}function Ahe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=The,isEnabled:s=khe,open:a}=e,c=P.useRef(!1),u=P.useRef(null),f=P.useRef(null),h=P.useRef(null),p=P.useRef(null),g=P.useRef(!1),v=P.useRef(null),y=Tr(t.ref,v),S=P.useRef(null);P.useEffect(()=>{!a||!v.current||(g.current=!n)},[n,a]),P.useEffect(()=>{if(!a||!v.current)return;const x=Fr(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),g.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),P.useEffect(()=>{if(!a||!v.current)return;const x=Fr(v.current),E=k=>{S.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===v.current&&k.shiftKey&&(c.current=!0,f.current&&f.current.focus())},I=()=>{const k=v.current;if(k===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let O=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(O=o(v.current)),O.length>0){var D,N;const H=!!((D=S.current)!=null&&D.shiftKey&&((N=S.current)==null?void 0:N.key)==="Tab"),G=O[0],z=O[O.length-1];typeof G!="string"&&typeof z!="string"&&(H?z.focus():G.focus())}else k.focus()};x.addEventListener("focusin",I),x.addEventListener("keydown",E,!0);const A=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(A),x.removeEventListener("focusin",I),x.removeEventListener("keydown",E,!0)}},[n,r,i,s,a,o]);const w=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,p.current=x.target;const E=t.props.onFocus;E&&E(x)},b=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return C.jsxs(P.Fragment,{children:[C.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:y,onFocus:w}),C.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var os="top",Pa="bottom",Oa="right",ss="left",Tz="auto",_w=[os,Pa,Oa,ss],zg="start",C1="end",Ihe="clippingParents",tQ="viewport",Tb="popper",Rhe="reference",U8=_w.reduce(function(e,t){return e.concat([t+"-"+zg,t+"-"+C1])},[]),nQ=[].concat(_w,[Tz]).reduce(function(e,t){return e.concat([t,t+"-"+zg,t+"-"+C1])},[]),Phe="beforeRead",Ohe="read",Mhe="afterRead",Lhe="beforeMain",Dhe="main",Nhe="afterMain",Bhe="beforeWrite",$he="write",Fhe="afterWrite",zhe=[Phe,Ohe,Mhe,Lhe,Dhe,Nhe,Bhe,$he,Fhe];function uc(e){return e?(e.nodeName||"").toLowerCase():null}function Js(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fp(e){var t=Js(e).Element;return e instanceof t||e instanceof Element}function Sa(e){var t=Js(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function kz(e){if(typeof ShadowRoot>"u")return!1;var t=Js(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function jhe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Sa(o)||!uc(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Uhe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,u){return c[u]="",c},{});!Sa(i)||!uc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Hhe={name:"applyStyles",enabled:!0,phase:"write",fn:jhe,effect:Uhe,requires:["computeStyles"]};function nc(e){return e.split("-")[0]}var wp=Math.max,hC=Math.min,jg=Math.round;function YF(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function rQ(){return!/^((?!chrome|android).)*safari/i.test(YF())}function Ug(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Sa(e)&&(i=e.offsetWidth>0&&jg(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&jg(r.height)/e.offsetHeight||1);var s=Fp(e)?Js(e):window,a=s.visualViewport,c=!rQ()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/i,f=(r.top+(c&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:u+h,bottom:f+p,left:u,x:u,y:f}}function Az(e){var t=Ug(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function iQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&kz(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zu(e){return Js(e).getComputedStyle(e)}function Whe(e){return["table","td","th"].indexOf(uc(e))>=0}function mf(e){return((Fp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ok(e){return uc(e)==="html"?e:e.assignedSlot||e.parentNode||(kz(e)?e.host:null)||mf(e)}function H8(e){return!Sa(e)||zu(e).position==="fixed"?null:e.offsetParent}function Ghe(e){var t=/firefox/i.test(YF()),n=/Trident/i.test(YF());if(n&&Sa(e)){var r=zu(e);if(r.position==="fixed")return null}var i=Ok(e);for(kz(i)&&(i=i.host);Sa(i)&&["html","body"].indexOf(uc(i))<0;){var o=zu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Sw(e){for(var t=Js(e),n=H8(e);n&&Whe(n)&&zu(n).position==="static";)n=H8(n);return n&&(uc(n)==="html"||uc(n)==="body"&&zu(n).position==="static")?t:n||Ghe(e)||t}function Iz(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dx(e,t,n){return wp(e,hC(t,n))}function Vhe(e,t,n){var r=Dx(e,t,n);return r>n?n:r}function oQ(){return{top:0,right:0,bottom:0,left:0}}function sQ(e){return Object.assign({},oQ(),e)}function aQ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var qhe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,sQ(typeof t!="number"?t:aQ(t,_w))};function Xhe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=nc(n.placement),c=Iz(a),u=[ss,Oa].indexOf(a)>=0,f=u?"height":"width";if(!(!o||!s)){var h=qhe(i.padding,n),p=Az(o),g=c==="y"?os:ss,v=c==="y"?Pa:Oa,y=n.rects.reference[f]+n.rects.reference[c]-s[c]-n.rects.popper[f],S=s[c]-n.rects.reference[c],w=Sw(o),b=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=y/2-S/2,E=h[g],I=b-p[f]-h[v],A=b/2-p[f]/2+x,k=Dx(E,A,I),O=c;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-A,t)}}function Yhe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||iQ(t.elements.popper,i)&&(t.elements.arrow=i))}const Khe={name:"arrow",enabled:!0,phase:"main",fn:Xhe,effect:Yhe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hg(e){return e.split("-")[1]}var Qhe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jhe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:jg(n*i)/i||0,y:jg(r*i)/i||0}}function W8(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,g=p===void 0?0:p,v=s.y,y=v===void 0?0:v,S=typeof f=="function"?f({x:g,y}):{x:g,y};g=S.x,y=S.y;var w=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=ss,E=os,I=window;if(u){var A=Sw(n),k="clientHeight",O="clientWidth";if(A===Js(n)&&(A=mf(n),zu(A).position!=="static"&&a==="absolute"&&(k="scrollHeight",O="scrollWidth")),A=A,i===os||(i===ss||i===Oa)&&o===C1){E=Pa;var D=h&&A===I&&I.visualViewport?I.visualViewport.height:A[k];y-=D-r.height,y*=c?1:-1}if(i===ss||(i===os||i===Pa)&&o===C1){x=Oa;var N=h&&A===I&&I.visualViewport?I.visualViewport.width:A[O];g-=N-r.width,g*=c?1:-1}}var H=Object.assign({position:a},u&&Qhe),G=f===!0?Jhe({x:g,y},Js(n)):{x:g,y};if(g=G.x,y=G.y,c){var z;return Object.assign({},H,(z={},z[E]=b?"0":"",z[x]=w?"0":"",z.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",z))}return Object.assign({},H,(t={},t[E]=b?y+"px":"",t[x]=w?g+"px":"",t.transform="",t))}function Zhe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:nc(t.placement),variation:Hg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,W8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,W8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const epe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zhe,data:{}};var E_={passive:!0};function tpe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,c=Js(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,E_)}),a&&c.addEventListener("resize",n.update,E_),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,E_)}),a&&c.removeEventListener("resize",n.update,E_)}}const npe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tpe,data:{}};var rpe={left:"right",right:"left",bottom:"top",top:"bottom"};function lE(e){return e.replace(/left|right|bottom|top/g,function(t){return rpe[t]})}var ipe={start:"end",end:"start"};function G8(e){return e.replace(/start|end/g,function(t){return ipe[t]})}function Rz(e){var t=Js(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Pz(e){return Ug(mf(e)).left+Rz(e).scrollLeft}function ope(e,t){var n=Js(e),r=mf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var u=rQ();(u||!u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+Pz(e),y:c}}function spe(e){var t,n=mf(e),r=Rz(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=wp(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=wp(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Pz(e),c=-r.scrollTop;return zu(i||n).direction==="rtl"&&(a+=wp(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function Oz(e){var t=zu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function lQ(e){return["html","body","#document"].indexOf(uc(e))>=0?e.ownerDocument.body:Sa(e)&&Oz(e)?e:lQ(Ok(e))}function Nx(e,t){var n;t===void 0&&(t=[]);var r=lQ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Js(r),s=i?[o].concat(o.visualViewport||[],Oz(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Nx(Ok(s)))}function KF(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ape(e,t){var n=Ug(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function V8(e,t,n){return t===tQ?KF(ope(e,n)):Fp(t)?ape(t,n):KF(spe(mf(e)))}function lpe(e){var t=Nx(Ok(e)),n=["absolute","fixed"].indexOf(zu(e).position)>=0,r=n&&Sa(e)?Sw(e):e;return Fp(r)?t.filter(function(i){return Fp(i)&&iQ(i,r)&&uc(i)!=="body"}):[]}function cpe(e,t,n,r){var i=t==="clippingParents"?lpe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(c,u){var f=V8(e,u,r);return c.top=wp(f.top,c.top),c.right=hC(f.right,c.right),c.bottom=hC(f.bottom,c.bottom),c.left=wp(f.left,c.left),c},V8(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function cQ(e){var t=e.reference,n=e.element,r=e.placement,i=r?nc(r):null,o=r?Hg(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(i){case os:c={x:s,y:t.y-n.height};break;case Pa:c={x:s,y:t.y+t.height};break;case Oa:c={x:t.x+t.width,y:a};break;case ss:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=i?Iz(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case zg:c[u]=c[u]-(t[f]/2-n[f]/2);break;case C1:c[u]=c[u]+(t[f]/2-n[f]/2);break}}return c}function T1(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,c=a===void 0?Ihe:a,u=n.rootBoundary,f=u===void 0?tQ:u,h=n.elementContext,p=h===void 0?Tb:h,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,S=y===void 0?0:y,w=sQ(typeof S!="number"?S:aQ(S,_w)),b=p===Tb?Rhe:Tb,x=e.rects.popper,E=e.elements[v?b:p],I=cpe(Fp(E)?E:E.contextElement||mf(e.elements.popper),c,f,s),A=Ug(e.elements.reference),k=cQ({reference:A,element:x,strategy:"absolute",placement:i}),O=KF(Object.assign({},x,k)),D=p===Tb?O:A,N={top:I.top-D.top+w.top,bottom:D.bottom-I.bottom+w.bottom,left:I.left-D.left+w.left,right:D.right-I.right+w.right},H=e.modifiersData.offset;if(p===Tb&&H){var G=H[i];Object.keys(N).forEach(function(z){var L=[Oa,Pa].indexOf(z)>=0?1:-1,F=[os,Pa].indexOf(z)>=0?"y":"x";N[z]+=G[F]*L})}return N}function upe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?nQ:c,f=Hg(r),h=f?a?U8:U8.filter(function(v){return Hg(v)===f}):_w,p=h.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=h);var g=p.reduce(function(v,y){return v[y]=T1(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[nc(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function dpe(e){if(nc(e)===Tz)return[];var t=lE(e);return[G8(e),t,G8(t)]}function fpe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,S=t.options.placement,w=nc(S),b=w===S,x=c||(b||!v?[lE(S)]:dpe(S)),E=[S].concat(x).reduce(function(ue,se){return ue.concat(nc(se)===Tz?upe(t,{placement:se,boundary:f,rootBoundary:h,padding:u,flipVariations:v,allowedAutoPlacements:y}):se)},[]),I=t.rects.reference,A=t.rects.popper,k=new Map,O=!0,D=E[0],N=0;N=0,F=L?"width":"height",j=T1(t,{placement:H,boundary:f,rootBoundary:h,altBoundary:p,padding:u}),V=L?z?Oa:ss:z?Pa:os;I[F]>A[F]&&(V=lE(V));var W=lE(V),K=[];if(o&&K.push(j[G]<=0),a&&K.push(j[V]<=0,j[W]<=0),K.every(function(ue){return ue})){D=H,O=!1;break}k.set(H,K)}if(O)for(var X=v?3:1,Q=function(se){var J=E.find(function(ae){var le=k.get(ae);if(le)return le.slice(0,se).every(function(he){return he})});if(J)return D=J,"break"},re=X;re>0;re--){var ce=Q(re);if(ce==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const hpe={name:"flip",enabled:!0,phase:"main",fn:fpe,requiresIfExists:["offset"],data:{_skip:!1}};function q8(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function X8(e){return[os,Oa,Pa,ss].some(function(t){return e[t]>=0})}function ppe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=T1(t,{elementContext:"reference"}),a=T1(t,{altBoundary:!0}),c=q8(s,r),u=q8(a,i,o),f=X8(c),h=X8(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const mpe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ppe};function gpe(e,t,n){var r=nc(e),i=[ss,os].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[ss,Oa].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function vpe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=nQ.reduce(function(f,h){return f[h]=gpe(h,t.rects,o),f},{}),a=s[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const ype={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vpe};function bpe(e){var t=e.state,n=e.name;t.modifiersData[n]=cQ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xpe={name:"popperOffsets",enabled:!0,phase:"read",fn:bpe,data:{}};function wpe(e){return e==="x"?"y":"x"}function _pe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,S=T1(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:f}),w=nc(t.placement),b=Hg(t.placement),x=!b,E=Iz(w),I=wpe(E),A=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(A){if(o){var z,L=E==="y"?os:ss,F=E==="y"?Pa:Oa,j=E==="y"?"height":"width",V=A[E],W=V+S[L],K=V-S[F],X=g?-O[j]/2:0,Q=b===zg?k[j]:O[j],re=b===zg?-O[j]:-k[j],ce=t.elements.arrow,ue=g&&ce?Az(ce):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oQ(),J=se[L],ae=se[F],le=Dx(0,k[j],ue[j]),he=x?k[j]/2-X-le-J-N.mainAxis:Q-le-J-N.mainAxis,pe=x?-k[j]/2+X+le+ae+N.mainAxis:re+le+ae+N.mainAxis,ve=t.elements.arrow&&Sw(t.elements.arrow),ye=ve?E==="y"?ve.clientTop||0:ve.clientLeft||0:0,xe=(z=H==null?void 0:H[E])!=null?z:0,me=V+he-xe-ye,be=V+pe-xe,Ze=Dx(g?hC(W,me):W,V,g?wp(K,be):K);A[E]=Ze,G[E]=Ze-V}if(a){var Xe,ct=E==="x"?os:ss,Bt=E==="x"?Pa:Oa,Pe=A[I],ze=I==="y"?"height":"width",st=Pe+S[ct],gt=Pe-S[Bt],vt=[os,ss].indexOf(w)!==-1,_e=(Xe=H==null?void 0:H[I])!=null?Xe:0,je=vt?st:Pe-k[ze]-O[ze]-_e+N.altAxis,Ke=vt?Pe+k[ze]+O[ze]-_e-N.altAxis:gt,Fe=g&&vt?Vhe(je,Pe,Ke):Dx(g?je:st,Pe,g?Ke:gt);A[I]=Fe,G[I]=Fe-Pe}t.modifiersData[r]=G}}const Spe={name:"preventOverflow",enabled:!0,phase:"main",fn:_pe,requiresIfExists:["offset"]};function Epe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cpe(e){return e===Js(e)||!Sa(e)?Rz(e):Epe(e)}function Tpe(e){var t=e.getBoundingClientRect(),n=jg(t.width)/e.offsetWidth||1,r=jg(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kpe(e,t,n){n===void 0&&(n=!1);var r=Sa(t),i=Sa(t)&&Tpe(t),o=mf(t),s=Ug(e,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((uc(t)!=="body"||Oz(o))&&(a=Cpe(t)),Sa(t)?(c=Ug(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Pz(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Ape(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Ipe(e){var t=Ape(e);return zhe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Rpe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ppe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Y8={placement:"bottom",modifiers:[],strategy:"absolute"};function K8(){for(var e=arguments.length,t=new Array(e),n=0;n{o||a(Dpe(i)||document.body)},[i,o]),jo(()=>{if(s&&!o)return q$(n,s),()=>{q$(n,null)}},[n,s,o]),o){if(P.isValidElement(r)){const u={ref:c};return P.cloneElement(r,u)}return C.jsx(P.Fragment,{children:r})}return C.jsx(P.Fragment,{children:s&&xv.createPortal(r,s)})});function Npe(e){return Ct("MuiPopper",e)}It("MuiPopper",["root"]);const Bpe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],$pe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Fpe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function QF(e){return typeof e=="function"?e():e}function zpe(e){return e.nodeType!==void 0}const jpe=()=>At({root:["root"]},ghe(Npe)),Upe={},Hpe=P.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:c,open:u,placement:f,popperOptions:h,popperRef:p,slotProps:g={},slots:v={},TransitionProps:y}=t,S=Ne(t,Bpe),w=P.useRef(null),b=Tr(w,n),x=P.useRef(null),E=Tr(x,p),I=P.useRef(E);jo(()=>{I.current=E},[E]),P.useImperativeHandle(p,()=>x.current,[]);const A=Fpe(f,s),[k,O]=P.useState(A),[D,N]=P.useState(QF(i));P.useEffect(()=>{x.current&&x.current.forceUpdate()}),P.useEffect(()=>{i&&N(QF(i))},[i]),jo(()=>{if(!D||!u)return;const F=W=>{O(W.placement)};let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{F(W)}}];c!=null&&(j=j.concat(c)),h&&h.modifiers!=null&&(j=j.concat(h.modifiers));const V=Lpe(D,w.current,$({placement:A},h,{modifiers:j}));return I.current(V),()=>{V.destroy(),I.current(null)}},[D,a,c,u,h,A]);const H={placement:k};y!==null&&(H.TransitionProps=y);const G=jpe(),z=(r=v.root)!=null?r:"div",L=ti({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:G.root});return C.jsx(z,$({},L,{children:typeof o=="function"?o(H):o}))}),Wpe=P.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:u,open:f,placement:h="bottom",popperOptions:p=Upe,popperRef:g,style:v,transition:y=!1,slotProps:S={},slots:w={}}=t,b=Ne(t,$pe),[x,E]=P.useState(!0),I=()=>{E(!1)},A=()=>{E(!0)};if(!c&&!f&&(!y||x))return null;let k;if(o)k=o;else if(r){const N=QF(r);k=N&&zpe(N)?Fr(N).body:Fr(null).body}const O=!f&&c&&(!y||x)?"none":void 0,D=y?{in:f,onEnter:I,onExited:A}:void 0;return C.jsx(uQ,{disablePortal:a,container:k,children:C.jsx(Hpe,$({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:y?!x:f,placement:h,popperOptions:p,popperRef:g,slotProps:S,slots:w},b,{style:$({position:"fixed",top:0,left:0,display:O},v),TransitionProps:D,children:i}))})});function Gpe(e){const t=Fr(e);return t.body===e?Du(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Bx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Q8(e){return parseInt(Du(e).getComputedStyle(e).paddingRight,10)||0}function Vpe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function J8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=o.indexOf(s)===-1,c=!Vpe(s);a&&c&&Bx(s,i)})}function BD(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function qpe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Gpe(r)){const s=pX(Fr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Q8(r)+s}px`;const a=Fr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Q8(c)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Fr(r).body;else{const s=r.parentElement,a=Du(r);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function Xpe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Ype{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Bx(t.modalRef,!1);const i=Xpe(n);J8(n,t.mount,t.modalRef,i,!0);const o=BD(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=BD(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=qpe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=BD(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Bx(t.modalRef,n),J8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Bx(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Kpe(e){return typeof e=="function"?e():e}function Qpe(e){return e?e.props.hasOwnProperty("in"):!1}const Jpe=new Ype;function Zpe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Jpe,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:c,onClose:u,open:f,rootRef:h}=e,p=P.useRef({}),g=P.useRef(null),v=P.useRef(null),y=Tr(v,h),[S,w]=P.useState(!f),b=Qpe(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Fr(g.current),I=()=>(p.current.modalRef=v.current,p.current.mount=g.current,p.current),A=()=>{i.mount(I(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=mo(()=>{const j=Kpe(t)||E().body;i.add(I(),j),v.current&&A()}),O=P.useCallback(()=>i.isTopModal(I()),[i]),D=mo(j=>{g.current=j,j&&(f&&O()?A():v.current&&Bx(v.current,x))}),N=P.useCallback(()=>{i.remove(I(),x)},[x,i]);P.useEffect(()=>()=>{N()},[N]),P.useEffect(()=>{f?k():(!b||!o)&&N()},[f,N,b,o,k]);const H=j=>V=>{var W;(W=j.onKeyDown)==null||W.call(j,V),!(V.key!=="Escape"||!O())&&(n||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},G=j=>V=>{var W;(W=j.onClick)==null||W.call(j,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(j={})=>{const V=fC(e);delete V.onTransitionEnter,delete V.onTransitionExited;const W=$({},V,j);return $({role:"presentation"},W,{onKeyDown:H(W),ref:y})},getBackdropProps:(j={})=>{const V=j;return $({"aria-hidden":!0},V,{onClick:G(V),open:f})},getTransitionProps:()=>{const j=()=>{w(!1),s&&s()},V=()=>{w(!0),a&&a(),o&&N()};return{onEnter:ZU(j,c==null?void 0:c.props.onEnter),onExited:ZU(V,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:D,isTopModal:O,exited:S,hasTransition:b}}const eme=2;function dQ(e,t){return e-t}function kb(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function Z8(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const a=Math.abs(t-o);return i===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},ome=e=>e;let A_;function $D(){return A_===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?A_=CSS.supports("touch-action","none"):A_=!0),A_}function sme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:c=0,name:u,onChange:f,onChangeCommitted:h,orientation:p="horizontal",rootRef:g,scale:v=ome,step:y=1,tabIndex:S,value:w}=e,b=P.useRef(),[x,E]=P.useState(-1),[I,A]=P.useState(-1),[k,O]=P.useState(!1),D=P.useRef(0),[N,H]=i1({controlled:w,default:n??c,name:"Slider"}),G=f&&((_e,je,Ke)=>{const Fe=_e.nativeEvent||_e,Be=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Be,"target",{writable:!0,value:{value:je,name:u}}),f(Be,je,Ke)}),z=Array.isArray(N);let L=z?N.slice().sort(dQ):[N];L=L.map(_e=>kb(_e,c,a));const F=s===!0&&y!==null?[...Array(Math.floor((a-c)/y)+1)].map((_e,je)=>({value:c+y*je})):s||[],j=F.map(_e=>_e.value),{isFocusVisibleRef:V,onBlur:W,onFocus:K,ref:X}=d4(),[Q,re]=P.useState(-1),ce=P.useRef(),ue=Tr(X,ce),se=Tr(g,ue),J=_e=>je=>{var Ke;const Fe=Number(je.currentTarget.getAttribute("data-index"));K(je),V.current===!0&&re(Fe),A(Fe),_e==null||(Ke=_e.onFocus)==null||Ke.call(_e,je)},ae=_e=>je=>{var Ke;W(je),V.current===!1&&re(-1),A(-1),_e==null||(Ke=_e.onBlur)==null||Ke.call(_e,je)};jo(()=>{if(r&&ce.current.contains(document.activeElement)){var _e;(_e=document.activeElement)==null||_e.blur()}},[r]),r&&x!==-1&&E(-1),r&&Q!==-1&&re(-1);const le=_e=>je=>{var Ke;(Ke=_e.onChange)==null||Ke.call(_e,je);const Fe=Number(je.currentTarget.getAttribute("data-index")),Be=L[Fe],Pt=j.indexOf(Be);let dt=je.target.valueAsNumber;if(F&&y==null){const Ie=j[j.length-1];dt>Ie?dt=Ie:dt{const{current:Ke}=ce,{width:Fe,height:Be,bottom:Pt,left:dt}=Ke.getBoundingClientRect();let Ie;pe.indexOf("vertical")===0?Ie=(Pt-_e.y)/Be:Ie=(_e.x-dt)/Fe,pe.indexOf("-reverse")!==-1&&(Ie=1-Ie);let at;if(at=tme(Ie,c,a),y)at=rme(at,y,c);else{const Re=Z8(j,at);at=j[Re]}at=kb(at,c,a);let $t=0;if(z){je?$t=he.current:$t=Z8(L,at),i&&(at=kb(at,L[$t-1]||-1/0,L[$t+1]||1/0));const Re=at;at=eH({values:L,newValue:at,index:$t}),i&&je||($t=at.indexOf(Re),he.current=$t)}return{newValue:at,activeIndex:$t}},ye=mo(_e=>{const je=C_(_e,b);if(!je)return;if(D.current+=1,_e.type==="mousemove"&&_e.buttons===0){xe(_e);return}const{newValue:Ke,activeIndex:Fe}=ve({finger:je,move:!0});T_({sliderRef:ce,activeIndex:Fe,setActive:E}),H(Ke),!k&&D.current>eme&&O(!0),G&&!k_(Ke,N)&&G(_e,Ke,Fe)}),xe=mo(_e=>{const je=C_(_e,b);if(O(!1),!je)return;const{newValue:Ke}=ve({finger:je,move:!0});E(-1),_e.type==="touchend"&&A(-1),h&&h(_e,Ke),b.current=void 0,be()}),me=mo(_e=>{if(r)return;$D()||_e.preventDefault();const je=_e.changedTouches[0];je!=null&&(b.current=je.identifier);const Ke=C_(_e,b);if(Ke!==!1){const{newValue:Be,activeIndex:Pt}=ve({finger:Ke});T_({sliderRef:ce,activeIndex:Pt,setActive:E}),H(Be),G&&!k_(Be,N)&&G(_e,Be,Pt)}D.current=0;const Fe=Fr(ce.current);Fe.addEventListener("touchmove",ye),Fe.addEventListener("touchend",xe)}),be=P.useCallback(()=>{const _e=Fr(ce.current);_e.removeEventListener("mousemove",ye),_e.removeEventListener("mouseup",xe),_e.removeEventListener("touchmove",ye),_e.removeEventListener("touchend",xe)},[xe,ye]);P.useEffect(()=>{const{current:_e}=ce;return _e.addEventListener("touchstart",me,{passive:$D()}),()=>{_e.removeEventListener("touchstart",me,{passive:$D()}),be()}},[be,me]),P.useEffect(()=>{r&&be()},[r,be]);const Ze=_e=>je=>{var Ke;if((Ke=_e.onMouseDown)==null||Ke.call(_e,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Fe=C_(je,b);if(Fe!==!1){const{newValue:Pt,activeIndex:dt}=ve({finger:Fe});T_({sliderRef:ce,activeIndex:dt,setActive:E}),H(Pt),G&&!k_(Pt,N)&&G(je,Pt,dt)}D.current=0;const Be=Fr(ce.current);Be.addEventListener("mousemove",ye),Be.addEventListener("mouseup",xe)},Xe=pC(z?L[0]:c,c,a),ct=pC(L[L.length-1],c,a)-Xe,Bt=(_e={})=>{const je={onMouseDown:Ze(_e||{})},Ke=$({},_e,je);return $({ref:se},Ke)},Pe=_e=>je=>{var Ke;(Ke=_e.onMouseOver)==null||Ke.call(_e,je);const Fe=Number(je.currentTarget.getAttribute("data-index"));A(Fe)},ze=_e=>je=>{var Ke;(Ke=_e.onMouseLeave)==null||Ke.call(_e,je),A(-1)};return{active:x,axis:pe,axisProps:ime,dragging:k,focusedThumbIndex:Q,getHiddenInputProps:(_e={})=>{var je;const Ke={onChange:le(_e||{}),onFocus:J(_e||{}),onBlur:ae(_e||{})},Fe=$({},_e,Ke);return $({tabIndex:S,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(a),"aria-valuemin":v(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Fe,{style:$({},$se,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(_e={})=>{const je={onMouseOver:Pe(_e||{}),onMouseLeave:ze(_e||{})};return $({},_e,je)},marks:F,open:I,range:z,rootRef:se,trackLeap:ct,trackOffset:Xe,values:L,getThumbStyle:_e=>({pointerEvents:x!==-1&&x!==_e?"none":void 0})}}function ame(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=P.useRef();P.useEffect(()=>{if(!i)return;function w(b){b.defaultPrevented||(b.key==="Escape"||b.key==="Esc")&&(r==null||r(b,"escapeKeyDown"))}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[i,r]);const a=mo((w,b)=>{r==null||r(w,b)}),c=mo(w=>{!r||w==null||(clearTimeout(s.current),s.current=setTimeout(()=>{a(null,"timeout")},w))});P.useEffect(()=>(i&&c(t),()=>{clearTimeout(s.current)}),[i,t,c]);const u=w=>{r==null||r(w,"clickaway")},f=()=>{clearTimeout(s.current)},h=P.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),p=w=>b=>{const x=w.onBlur;x==null||x(b),h()},g=w=>b=>{const x=w.onFocus;x==null||x(b),f()},v=w=>b=>{const x=w.onMouseEnter;x==null||x(b),f()},y=w=>b=>{const x=w.onMouseLeave;x==null||x(b),h()};return P.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[n,h,i]),{getRootProps:(w={})=>{const b=$({},fC(e),fC(w));return $({role:"presentation"},w,b,{onBlur:p(b),onFocus:g(b),onMouseEnter:v(b),onMouseLeave:y(b)})},onClickAway:u}}const lme=["onChange","maxRows","minRows","style","value"];function I_(e){return parseInt(e,10)||0}const cme={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tH(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const ume=P.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a}=t,c=Ne(t,lme),{current:u}=P.useRef(a!=null),f=P.useRef(null),h=Tr(n,f),p=P.useRef(null),g=P.useRef(0),[v,y]=P.useState({outerHeightStyle:0}),S=P.useCallback(()=>{const E=f.current,A=Du(E).getComputedStyle(E);if(A.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=A.width,k.value=E.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const O=A.boxSizing,D=I_(A.paddingBottom)+I_(A.paddingTop),N=I_(A.borderBottomWidth)+I_(A.borderTopWidth),H=k.scrollHeight;k.value="x";const G=k.scrollHeight;let z=H;o&&(z=Math.max(Number(o)*G,z)),i&&(z=Math.min(Number(i)*G,z)),z=Math.max(z,G);const L=z+(O==="border-box"?D+N:0),F=Math.abs(z-H)<=1;return{outerHeightStyle:L,overflow:F}},[i,o,t.placeholder]),w=(E,I)=>{const{outerHeightStyle:A,overflow:k}=I;return g.current<20&&(A>0&&Math.abs((E.outerHeightStyle||0)-A)>1||E.overflow!==k)?(g.current+=1,{overflow:k,outerHeightStyle:A}):E},b=P.useCallback(()=>{const E=S();tH(E)||y(I=>w(I,E))},[S]);jo(()=>{const E=()=>{const H=S();tH(H)||xv.flushSync(()=>{y(G=>w(G,H))})},I=()=>{g.current=0,E()};let A;const k=RT(I),O=f.current,D=Du(O);D.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(I),N.observe(O)),()=>{k.clear(),cancelAnimationFrame(A),D.removeEventListener("resize",k),N&&N.disconnect()}},[S]),jo(()=>{b()}),P.useEffect(()=>{g.current=0},[a]);const x=E=>{g.current=0,u||b(),r&&r(E)};return C.jsxs(P.Fragment,{children:[C.jsx("textarea",$({value:a,onChange:x,ref:h,rows:o,style:$({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},c)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},cme.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),dme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],fme=Ce(Wpe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hme=P.forwardRef(function(t,n){var r;const i=tk(),o=Rt({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:u,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:w,transition:b,slots:x,slotProps:E}=o,I=Ne(o,dme),A=(r=x==null?void 0:x.root)!=null?r:c==null?void 0:c.Root,k=$({anchorEl:s,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:w,transition:b},I);return C.jsx(fme,$({as:a,direction:i==null?void 0:i.direction,slots:{root:A},slotProps:E??u},k,{ref:n}))}),fQ=hme;function pme(e){return Ct("MuiListSubheader",e)}It("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const mme=["className","color","component","disableGutters","disableSticky","inset"],gme=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${Le(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return At(s,pme,t)},vme=Ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Le(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>$({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),hQ=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:u=!1}=r,f=Ne(r,mme),h=$({},r,{color:o,component:s,disableGutters:a,disableSticky:c,inset:u}),p=gme(h);return C.jsx(vme,$({as:s,className:Ue(p.root,i),ref:n,ownerState:h},f))});hQ.muiSkipListHighlight=!0;const yme=hQ;function Jp({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const bme=P.createContext(void 0),Mz=bme;function gf(){return P.useContext(Mz)}function pQ(e){return C.jsx(Vle,$({},e,{defaultTheme:ik,themeId:Rp}))}function nH(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mC(e,t=!1){return e&&(nH(e.value)&&e.value!==""||t&&nH(e.defaultValue)&&e.defaultValue!=="")}function xme(e){return e.startAdornment}function wme(e){return Ct("MuiInputBase",e)}const _me=It("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Wg=_me,Sme=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Mk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Lk=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Eme=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:c,hiddenLabel:u,multiline:f,readOnly:h,size:p,startAdornment:g,type:v}=e,y={root:["root",`color${Le(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${Le(p)}`,f&&"multiline",g&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return At(y,wme,t)},Dk=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mk})(({theme:e,ownerState:t})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Wg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Nk=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Lk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return $({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Wg.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Wg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Cme=C.jsx(pQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Tme=P.forwardRef(function(t,n){var r;const i=Rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:c,components:u={},componentsProps:f={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:S,inputComponent:w="input",inputProps:b={},inputRef:x,maxRows:E,minRows:I,multiline:A=!1,name:k,onBlur:O,onChange:D,onClick:N,onFocus:H,onKeyDown:G,onKeyUp:z,placeholder:L,readOnly:F,renderSuffix:j,rows:V,slotProps:W={},slots:K={},startAdornment:X,type:Q="text",value:re}=i,ce=Ne(i,Sme),ue=b.value!=null?b.value:re,{current:se}=P.useRef(ue!=null),J=P.useRef(),ae=P.useCallback(Fe=>{},[]),le=Tr(J,x,b.ref,ae),[he,pe]=P.useState(!1),ve=gf(),ye=Jp({props:i,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ve?ve.focused:he,P.useEffect(()=>{!ve&&p&&he&&(pe(!1),O&&O())},[ve,p,he,O]);const xe=ve&&ve.onFilled,me=ve&&ve.onEmpty,be=P.useCallback(Fe=>{mC(Fe)?xe&&xe():me&&me()},[xe,me]);jo(()=>{se&&be({value:ue})},[ue,be,se]);const Ze=Fe=>{if(ye.disabled){Fe.stopPropagation();return}H&&H(Fe),b.onFocus&&b.onFocus(Fe),ve&&ve.onFocus?ve.onFocus(Fe):pe(!0)},Xe=Fe=>{O&&O(Fe),b.onBlur&&b.onBlur(Fe),ve&&ve.onBlur?ve.onBlur(Fe):pe(!1)},ct=(Fe,...Be)=>{if(!se){const Pt=Fe.target||J.current;if(Pt==null)throw new Error(Jd(1));be({value:Pt.value})}b.onChange&&b.onChange(Fe,...Be),D&&D(Fe,...Be)};P.useEffect(()=>{be(J.current)},[]);const Bt=Fe=>{J.current&&Fe.currentTarget===Fe.target&&J.current.focus(),N&&N(Fe)};let Pe=w,ze=b;A&&Pe==="input"&&(V?ze=$({type:void 0,minRows:V,maxRows:V},ze):ze=$({type:void 0,maxRows:E,minRows:I},ze),Pe=ume);const st=Fe=>{be(Fe.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};P.useEffect(()=>{ve&&ve.setAdornedStart(!!X)},[ve,X]);const gt=$({},i,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:v,error:ye.error,focused:ye.focused,formControl:ve,fullWidth:y,hiddenLabel:ye.hiddenLabel,multiline:A,size:ye.size,startAdornment:X,type:Q}),vt=Eme(gt),_e=K.root||u.Root||Dk,je=W.root||f.root||{},Ke=K.input||u.Input||Nk;return ze=$({},ze,(r=W.input)!=null?r:f.input),C.jsxs(P.Fragment,{children:[!g&&Cme,C.jsxs(_e,$({},je,!tc(_e)&&{ownerState:$({},gt,je.ownerState)},{ref:n,onClick:Bt},ce,{className:Ue(vt.root,je.className,c,F&&"MuiInputBase-readOnly"),children:[X,C.jsx(Mz.Provider,{value:null,children:C.jsx(Ke,$({ownerState:gt,"aria-invalid":ye.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:h,disabled:ye.disabled,id:S,onAnimationStart:st,name:k,placeholder:L,readOnly:F,required:ye.required,rows:V,value:ue,onKeyDown:G,onKeyUp:z,type:Q},ze,!tc(Ke)&&{as:Pe,ownerState:$({},gt,ze.ownerState)},{ref:le,className:Ue(vt.input,ze.className,F&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:ct,onFocus:Ze}))}),v,j?j($({},ye,{startAdornment:X})):null]}))]})}),Bk=Tme;function kme(e){return Ct("MuiInput",e)}const Ame=$({},Wg,It("MuiInput",["root","underline","input"])),Ab=Ame;function Ime(e){return Ct("MuiOutlinedInput",e)}const Rme=$({},Wg,It("MuiOutlinedInput",["root","notchedOutline","input"])),id=Rme;function Pme(e){return Ct("MuiFilledInput",e)}const Ome=$({},Wg,It("MuiFilledInput",["root","underline","input"])),Fh=Ome,Mme=zt(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Lme=zt(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Dme(e){return Ct("MuiAvatar",e)}It("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Nme=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Bme=e=>{const{classes:t,variant:n,colorDefault:r}=e;return At({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Dme,t)},$me=Ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&$({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Fme=Ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),zme=Ce(Lme,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function jme({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=P.useState(!1);return P.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const Ume=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",imgProps:c,sizes:u,src:f,srcSet:h,variant:p="circular"}=r,g=Ne(r,Nme);let v=null;const y=jme($({},c,{src:f,srcSet:h})),S=f||h,w=S&&y!=="error",b=$({},r,{colorDefault:!w,component:a,variant:p}),x=Bme(b);return w?v=C.jsx(Fme,$({alt:i,srcSet:h,src:f,sizes:u,ownerState:b,className:x.img},c)):o!=null?v=o:S&&i?v=i[0]:v=C.jsx(zme,{ownerState:b,className:x.fallback}),C.jsx($me,$({as:a,ownerState:b,className:Ue(x.root,s),ref:n},g,{children:v}))}),Hme=Ume,Wme=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gme={entering:{opacity:1},entered:{opacity:1}},Vme=P.forwardRef(function(t,n){const r=Ln(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:c,in:u,onEnter:f,onEntered:h,onEntering:p,onExit:g,onExited:v,onExiting:y,style:S,timeout:w=i,TransitionComponent:b=Sz}=t,x=Ne(t,Wme),E=P.useRef(null),I=Tr(E,a.ref,n),A=L=>F=>{if(L){const j=E.current;F===void 0?L(j):L(j,F)}},k=A(p),O=A((L,F)=>{ZK(L);const j=Fg({style:S,timeout:w,easing:c},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",j),L.style.transition=r.transitions.create("opacity",j),f&&f(L,F)}),D=A(h),N=A(y),H=A(L=>{const F=Fg({style:S,timeout:w,easing:c},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",F),L.style.transition=r.transitions.create("opacity",F),g&&g(L)}),G=A(v),z=L=>{o&&o(E.current,L)};return C.jsx(b,$({appear:s,in:u,nodeRef:E,onEnter:O,onEntered:D,onEntering:k,onExit:H,onExited:G,onExiting:N,addEndListener:z,timeout:w},x,{children:(L,F)=>P.cloneElement(a,$({style:$({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},Gme[L],S,a.props.style),ref:I},F))}))}),zp=Vme;function qme(e){return Ct("MuiBackdrop",e)}It("MuiBackdrop",["root","invisible"]);const Xme=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Yme=e=>{const{classes:t,invisible:n}=e;return At({root:["root",n&&"invisible"]},qme,t)},Kme=Ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Qme=P.forwardRef(function(t,n){var r,i,o;const s=Rt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:u="div",components:f={},componentsProps:h={},invisible:p=!1,open:g,slotProps:v={},slots:y={},TransitionComponent:S=zp,transitionDuration:w}=s,b=Ne(s,Xme),x=$({},s,{component:u,invisible:p}),E=Yme(x),I=(r=v.root)!=null?r:h.root;return C.jsx(S,$({in:g,timeout:w},b,{children:C.jsx(Kme,$({"aria-hidden":!0},I,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:u,className:Ue(E.root,c,I==null?void 0:I.className),ownerState:$({},x,I==null?void 0:I.ownerState),classes:E,ref:n,children:a}))}))}),mQ=Qme,Jme=I4(),Zme=Kle({themeId:Rp,defaultTheme:Jme,defaultClassName:"MuiBox-root",generateClassName:gX.generate}),mt=Zme;function ege(e){return Ct("MuiButton",e)}const tge=It("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),R_=tge,nge=P.createContext({}),rge=nge,ige=P.createContext(void 0),oge=ige,sge=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],age=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,a={root:["root",o,`${o}${Le(t)}`,`size${Le(i)}`,`${o}Size${Le(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Le(i)}`],endIcon:["endIcon",`iconSize${Le(i)}`]},c=At(a,ege,s);return $({},s,c)},gQ=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),lge=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Le(n.color)}`],t[`size${Le(n.size)}`],t[`${n.variant}Size${Le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${R_.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${R_.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${kn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${R_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${R_.disabled}`]:{boxShadow:"none"}}),cge=Ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},gQ(e))),uge=Ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},gQ(e))),dge=P.forwardRef(function(t,n){const r=P.useContext(rge),i=P.useContext(oge),o=f4(r,t),s=Rt({props:o,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:f,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:v,focusVisibleClassName:y,fullWidth:S=!1,size:w="medium",startIcon:b,type:x,variant:E="text"}=s,I=Ne(s,sge),A=$({},s,{color:c,component:u,disabled:h,disableElevation:p,disableFocusRipple:g,fullWidth:S,size:w,type:x,variant:E}),k=age(A),O=b&&C.jsx(cge,{className:k.startIcon,ownerState:A,children:b}),D=v&&C.jsx(uge,{className:k.endIcon,ownerState:A,children:v}),N=i||"";return C.jsxs(lge,$({ownerState:A,className:Ue(r.className,k.root,f,N),component:u,disabled:h,focusRipple:!g,focusVisibleClassName:Ue(k.focusVisible,y),ref:n,type:x},I,{classes:k,children:[O,a,D]}))}),Lz=dge;function fge(e){return Ct("MuiCard",e)}It("MuiCard",["root"]);const hge=["className","raised"],pge=e=>{const{classes:t}=e;return At({root:["root"]},fge,t)},mge=Ce(wv,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),gge=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=Ne(r,hge),a=$({},r,{raised:o}),c=pge(a);return C.jsx(mge,$({className:Ue(c.root,i),elevation:o?8:void 0,ref:n,ownerState:a},s))}),vge=gge;function yge(e){return Ct("PrivateSwitchBase",e)}It("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bge=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],xge=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Le(i)}`],input:["input"]};return At(o,yge,t)},wge=Ce(Yu)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),_ge=Ce("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Sge=P.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:a,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:p,inputProps:g,inputRef:v,name:y,onBlur:S,onChange:w,onFocus:b,readOnly:x,required:E=!1,tabIndex:I,type:A,value:k}=t,O=Ne(t,bge),[D,N]=i1({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),H=gf(),G=K=>{b&&b(K),H&&H.onFocus&&H.onFocus(K)},z=K=>{S&&S(K),H&&H.onBlur&&H.onBlur(K)},L=K=>{if(K.nativeEvent.defaultPrevented)return;const X=K.target.checked;N(X),w&&w(K,X)};let F=c;H&&typeof F>"u"&&(F=H.disabled);const j=A==="checkbox"||A==="radio",V=$({},t,{checked:D,disabled:F,disableFocusRipple:u,edge:f}),W=xge(V);return C.jsxs(wge,$({component:"span",className:Ue(W.root,s),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:G,onBlur:z,ownerState:V,ref:n},O,{children:[C.jsx(_ge,$({autoFocus:r,checked:i,defaultChecked:a,className:W.input,disabled:F,id:j?p:void 0,name:y,onChange:L,readOnly:x,ref:v,required:E,ownerState:V,tabIndex:I,type:A},A==="checkbox"&&k===void 0?{}:{value:k},g)),D?o:h]}))}),vQ=Sge,Ege=zt(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Cge=zt(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Tge=zt(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function kge(e){return Ct("MuiCheckbox",e)}const Age=It("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),FD=Age,Ige=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Rge=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${Le(r)}`,`size${Le(i)}`]},s=At(o,kge,t);return $({},t,s)},Pge=Ce(vQ,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Le(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${FD.checked}, &.${FD.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${FD.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Oge=C.jsx(Cge,{}),Mge=C.jsx(Ege,{}),Lge=C.jsx(Tge,{}),Dge=P.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=Oge,color:a="primary",icon:c=Mge,indeterminate:u=!1,indeterminateIcon:f=Lge,inputProps:h,size:p="medium",className:g}=o,v=Ne(o,Ige),y=u?f:c,S=u?f:s,w=$({},o,{color:a,indeterminate:u,size:p}),b=Rge(w);return C.jsx(Pge,$({type:"checkbox",inputProps:$({"data-indeterminate":u},h),icon:P.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:P.cloneElement(S,{fontSize:(i=S.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:Ue(b.root,g)},v,{classes:b}))}),Nge=Dge;function Bge(e){return Ct("MuiCircularProgress",e)}It("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $ge=["className","color","disableShrink","size","style","thickness","value","variant"];let $k=e=>e,rH,iH,oH,sH;const od=44,Fge=df(rH||(rH=$k` +`),da.rippleVisible,zfe,YF,({theme:e})=>e.transitions.easing.easeInOut,da.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,da.child,da.childLeaving,jfe,YF,({theme:e})=>e.transitions.easing.easeInOut,da.childPulsate,Ufe,({theme:e})=>e.transitions.easing.easeInOut),Gfe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=Ne(r,$fe),[c,u]=R.useState([]),f=R.useRef(0),h=R.useRef(null);R.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const p=R.useRef(!1),g=R.useRef(0),v=R.useRef(null),y=R.useRef(null);R.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const S=R.useCallback(E=>{const{pulsate:I,rippleX:A,rippleY:k,rippleSize:O,cb:D}=E;u(N=>[...N,C.jsx(Wfe,{classes:{ripple:Ue(o.ripple,da.ripple),rippleVisible:Ue(o.rippleVisible,da.rippleVisible),ripplePulsate:Ue(o.ripplePulsate,da.ripplePulsate),child:Ue(o.child,da.child),childLeaving:Ue(o.childLeaving,da.childLeaving),childPulsate:Ue(o.childPulsate,da.childPulsate)},timeout:YF,pulsate:I,rippleX:A,rippleY:k,rippleSize:O},f.current)]),f.current+=1,h.current=D},[o]),w=R.useCallback((E={},I={},A=()=>{})=>{const{pulsate:k=!1,center:O=i||I.pulsate,fakeElement:D=!1}=I;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const N=D?null:y.current,H=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let G,z,L;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)G=Math.round(H.width/2),z=Math.round(H.height/2);else{const{clientX:F,clientY:j}=E.touches&&E.touches.length>0?E.touches[0]:E;G=Math.round(F-H.left),z=Math.round(j-H.top)}if(O)L=Math.sqrt((2*H.width**2+H.height**2)/3),L%2===0&&(L+=1);else{const F=Math.max(Math.abs((N?N.clientWidth:0)-G),G)*2+2,j=Math.max(Math.abs((N?N.clientHeight:0)-z),z)*2+2;L=Math.sqrt(F**2+j**2)}E!=null&&E.touches?v.current===null&&(v.current=()=>{S({pulsate:k,rippleX:G,rippleY:z,rippleSize:L,cb:A})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Ffe)):S({pulsate:k,rippleX:G,rippleY:z,rippleSize:L,cb:A})},[i,S]),b=R.useCallback(()=>{w({},{pulsate:!0})},[w]),x=R.useCallback((E,I)=>{if(clearTimeout(g.current),(E==null?void 0:E.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{x(E,I)});return}v.current=null,u(A=>A.length>0?A.slice(1):A),h.current=I},[]);return R.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:x}),[b,w,x]),C.jsx(Hfe,$({className:Ue(da.root,o.root,s),ref:y},a,{children:C.jsx(Efe,{component:null,exit:!0,children:c})}))}),Vfe=Gfe;function qfe(e){return Ct("MuiButtonBase",e)}const Xfe=It("MuiButtonBase",["root","disabled","focusVisible"]),Yfe=Xfe,Kfe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Qfe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=At({root:["root",t&&"disabled",n&&"focusVisible"]},qfe,i);return n&&r&&(s.root+=` ${r}`),s},Jfe=Ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Yfe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Zfe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:c="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:S,onDragLeave:w,onFocus:b,onFocusVisible:x,onKeyDown:E,onKeyUp:I,onMouseDown:A,onMouseLeave:k,onMouseUp:O,onTouchEnd:D,onTouchMove:N,onTouchStart:H,tabIndex:G=0,TouchRippleProps:z,touchRippleRef:L,type:F}=r,j=Ne(r,Kfe),V=R.useRef(null),W=R.useRef(null),K=Tr(W,L),{isFocusVisibleRef:X,onFocus:Q,onBlur:ie,ref:ce}=f4(),[ue,se]=R.useState(!1);u&&ue&&se(!1),R.useImperativeHandle(i,()=>({focusVisible:()=>{se(!0),V.current.focus()}}),[]);const[J,ae]=R.useState(!1);R.useEffect(()=>{ae(!0)},[]);const le=J&&!f&&!u;R.useEffect(()=>{ue&&p&&!f&&J&&W.current.pulsate()},[f,p,ue,J]);function he(Be,Pt,dt=h){return mo(Ie=>(Pt&&Pt(Ie),!dt&&W.current&&W.current[Be](Ie),!0))}const pe=he("start",A),ve=he("stop",S),ye=he("stop",w),xe=he("stop",O),me=he("stop",Be=>{ue&&Be.preventDefault(),k&&k(Be)}),be=he("start",H),Ze=he("stop",D),Xe=he("stop",N),ct=he("stop",Be=>{ie(Be),X.current===!1&&se(!1),v&&v(Be)},!1),Bt=mo(Be=>{V.current||(V.current=Be.currentTarget),Q(Be),X.current===!0&&(se(!0),x&&x(Be)),b&&b(Be)}),Pe=()=>{const Be=V.current;return c&&c!=="button"&&!(Be.tagName==="A"&&Be.href)},ze=R.useRef(!1),st=mo(Be=>{p&&!ze.current&&ue&&W.current&&Be.key===" "&&(ze.current=!0,W.current.stop(Be,()=>{W.current.start(Be)})),Be.target===Be.currentTarget&&Pe()&&Be.key===" "&&Be.preventDefault(),E&&E(Be),Be.target===Be.currentTarget&&Pe()&&Be.key==="Enter"&&!u&&(Be.preventDefault(),y&&y(Be))}),gt=mo(Be=>{p&&Be.key===" "&&W.current&&ue&&!Be.defaultPrevented&&(ze.current=!1,W.current.stop(Be,()=>{W.current.pulsate(Be)})),I&&I(Be),y&&Be.target===Be.currentTarget&&Pe()&&Be.key===" "&&!Be.defaultPrevented&&y(Be)});let vt=c;vt==="button"&&(j.href||j.to)&&(vt=g);const _e={};vt==="button"?(_e.type=F===void 0?"button":F,_e.disabled=u):(!j.href&&!j.to&&(_e.role="button"),u&&(_e["aria-disabled"]=u));const je=Tr(n,ce,V),Ke=$({},r,{centerRipple:o,component:c,disabled:u,disableRipple:f,disableTouchRipple:h,focusRipple:p,tabIndex:G,focusVisible:ue}),Fe=Qfe(Ke);return C.jsxs(Jfe,$({as:vt,className:Ue(Fe.root,a),ownerState:Ke,onBlur:ct,onClick:y,onContextMenu:ve,onFocus:Bt,onKeyDown:st,onKeyUp:gt,onMouseDown:pe,onMouseLeave:me,onMouseUp:xe,onDragLeave:ye,onTouchEnd:Ze,onTouchMove:Xe,onTouchStart:be,ref:je,tabIndex:u?-1:G,type:F},_e,j,{children:[s,le?C.jsx(Vfe,$({ref:K,center:o},z)):null]}))}),Yu=Zfe;function ehe(e){return Ct("MuiIconButton",e)}const the=It("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nhe=the,rhe=["edge","children","className","color","disabled","disableFocusRipple","size"],ihe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Le(r)}`,i&&`edge${Le(i)}`,`size${Le(o)}`]};return At(s,ehe,t)},ohe=Ce(Yu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Le(n.color)}`],n.edge&&t[`edge${Le(n.edge)}`],t[`size${Le(n.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":$({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${nhe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),she=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium"}=r,h=Ne(r,rhe),p=$({},r,{edge:i,color:a,disabled:c,disableFocusRipple:u,size:f}),g=ihe(p);return C.jsx(ohe,$({className:Ue(g.root,s),centerRipple:!0,focusRipple:!u,disabled:c,ref:n,ownerState:p},h,{children:o}))}),Fp=she;function ahe(e){return Ct("MuiTypography",e)}It("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const lhe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],che=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${Le(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return At(a,ahe,s)},uhe=Ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),H8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dhe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fhe=e=>dhe[e]||e,hhe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTypography"}),i=fhe(r.color),o=A4($({},r,{color:i})),{align:s="inherit",className:a,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=H8}=o,v=Ne(o,lhe),y=$({},o,{align:s,color:i,className:a,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:p,variantMapping:g}),S=c||(h?"p":g[p]||H8[p])||"span",w=che(y);return C.jsx(uhe,$({as:S,ref:n,ownerState:y,className:Ue(w.root,a)},v))}),jt=hhe;function phe(e){return Ct("MuiAppBar",e)}It("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const mhe=["className","color","enableColorOnDark","position"],ghe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Le(t)}`,`position${Le(n)}`]};return At(i,phe,r)},E_=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,vhe=Ce(Sv,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Le(n.position)}`],t[`color${Le(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:E_(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:E_(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:E_(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:E_(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),yhe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=Ne(r,mhe),u=$({},r,{color:o,position:a,enableColorOnDark:s}),f=ghe(u);return C.jsx(vhe,$({square:!0,component:"header",ownerState:u,elevation:4,className:Ue(f.root,i,a==="fixed"&&"mui-fixed"),ref:n},c))}),bhe=yhe;function tc(e){return typeof e=="string"}function ox(e,t,n){return e===void 0||tc(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function xhe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const whe={disableDefaultClasses:!1},_he=R.createContext(whe);function She(e){const{disableDefaultClasses:t}=R.useContext(_he);return n=>t?"":e(n)}function pC(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Ehe(e,t,n){return typeof e=="function"?e(t,n):e}function W8(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Che(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Ue(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),v=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=$({},n,i,r);return g.length>0&&(y.className=g),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=pC($({},i,r)),a=W8(r),c=W8(i),u=t(s),f=Ue(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=$({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},u,n,c,a);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:u.ref}}const The=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ti(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Ne(e,The),a=o?{}:Ehe(r,i),{props:c,internalRef:u}=Che($({},s,{externalSlotProps:a})),f=Tr(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return ox(n,$({},c,{ref:f}),i)}function G8(e){return e.substring(2).toLowerCase()}function khe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Tr(t.ref,a),h=mo(v=>{const y=u.current;u.current=!1;const S=Fr(a.current);if(!c.current||!a.current||"clientX"in v&&khe(v,S))return;if(s.current){s.current=!1;return}let w;v.composedPath?w=v.composedPath().indexOf(a.current)>-1:w=!S.documentElement.contains(v.target)||a.current.contains(v.target),!w&&(n||!y)&&i(v)}),p=v=>y=>{u.current=!0;const S=t.props[v];S&&S(y)},g={ref:f};return o!==!1&&(g[o]=p(o)),R.useEffect(()=>{if(o!==!1){const v=G8(o),y=Fr(a.current),S=()=>{s.current=!0};return y.addEventListener(v,h),y.addEventListener("touchmove",S),()=>{y.removeEventListener(v,h),y.removeEventListener("touchmove",S)}}},[h,o]),r!==!1&&(g[r]=p(r)),R.useEffect(()=>{if(r!==!1){const v=G8(r),y=Fr(a.current);return y.addEventListener(v,h),()=>{y.removeEventListener(v,h)}}},[h,r]),C.jsx(R.Fragment,{children:R.cloneElement(t,g)})}const Ihe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rhe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Phe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ohe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Phe(e))}function Mhe(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ihe)).forEach((r,i)=>{const o=Rhe(r);o===-1||!Ohe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function Lhe(){return!0}function Dhe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Mhe,isEnabled:s=Lhe,open:a}=e,c=R.useRef(!1),u=R.useRef(null),f=R.useRef(null),h=R.useRef(null),p=R.useRef(null),g=R.useRef(!1),v=R.useRef(null),y=Tr(t.ref,v),S=R.useRef(null);R.useEffect(()=>{!a||!v.current||(g.current=!n)},[n,a]),R.useEffect(()=>{if(!a||!v.current)return;const x=Fr(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),g.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),R.useEffect(()=>{if(!a||!v.current)return;const x=Fr(v.current),E=k=>{S.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===v.current&&k.shiftKey&&(c.current=!0,f.current&&f.current.focus())},I=()=>{const k=v.current;if(k===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let O=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(O=o(v.current)),O.length>0){var D,N;const H=!!((D=S.current)!=null&&D.shiftKey&&((N=S.current)==null?void 0:N.key)==="Tab"),G=O[0],z=O[O.length-1];typeof G!="string"&&typeof z!="string"&&(H?z.focus():G.focus())}else k.focus()};x.addEventListener("focusin",I),x.addEventListener("keydown",E,!0);const A=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(A),x.removeEventListener("focusin",I),x.removeEventListener("keydown",E,!0)}},[n,r,i,s,a,o]);const w=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,p.current=x.target;const E=t.props.onFocus;E&&E(x)},b=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return C.jsxs(R.Fragment,{children:[C.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:y,onFocus:w}),C.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var ss="top",Pa="bottom",Oa="right",as="left",kz="auto",ww=[ss,Pa,Oa,as],Hg="start",E1="end",Nhe="clippingParents",aQ="viewport",Cb="popper",Bhe="reference",V8=ww.reduce(function(e,t){return e.concat([t+"-"+Hg,t+"-"+E1])},[]),lQ=[].concat(ww,[kz]).reduce(function(e,t){return e.concat([t,t+"-"+Hg,t+"-"+E1])},[]),$he="beforeRead",Fhe="read",zhe="afterRead",jhe="beforeMain",Uhe="main",Hhe="afterMain",Whe="beforeWrite",Ghe="write",Vhe="afterWrite",qhe=[$he,Fhe,zhe,jhe,Uhe,Hhe,Whe,Ghe,Vhe];function uc(e){return e?(e.nodeName||"").toLowerCase():null}function Zs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zp(e){var t=Zs(e).Element;return e instanceof t||e instanceof Element}function Ea(e){var t=Zs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Az(e){if(typeof ShadowRoot>"u")return!1;var t=Zs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Xhe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ea(o)||!uc(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Yhe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,u){return c[u]="",c},{});!Ea(i)||!uc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Khe={name:"applyStyles",enabled:!0,phase:"write",fn:Xhe,effect:Yhe,requires:["computeStyles"]};function nc(e){return e.split("-")[0]}var _p=Math.max,mC=Math.min,Wg=Math.round;function KF(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cQ(){return!/^((?!chrome|android).)*safari/i.test(KF())}function Gg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ea(e)&&(i=e.offsetWidth>0&&Wg(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Wg(r.height)/e.offsetHeight||1);var s=zp(e)?Zs(e):window,a=s.visualViewport,c=!cQ()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/i,f=(r.top+(c&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:u+h,bottom:f+p,left:u,x:u,y:f}}function Iz(e){var t=Gg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function uQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Az(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zu(e){return Zs(e).getComputedStyle(e)}function Qhe(e){return["table","td","th"].indexOf(uc(e))>=0}function mf(e){return((zp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mk(e){return uc(e)==="html"?e:e.assignedSlot||e.parentNode||(Az(e)?e.host:null)||mf(e)}function q8(e){return!Ea(e)||zu(e).position==="fixed"?null:e.offsetParent}function Jhe(e){var t=/firefox/i.test(KF()),n=/Trident/i.test(KF());if(n&&Ea(e)){var r=zu(e);if(r.position==="fixed")return null}var i=Mk(e);for(Az(i)&&(i=i.host);Ea(i)&&["html","body"].indexOf(uc(i))<0;){var o=zu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function _w(e){for(var t=Zs(e),n=q8(e);n&&Qhe(n)&&zu(n).position==="static";)n=q8(n);return n&&(uc(n)==="html"||uc(n)==="body"&&zu(n).position==="static")?t:n||Jhe(e)||t}function Rz(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mx(e,t,n){return _p(e,mC(t,n))}function Zhe(e,t,n){var r=Mx(e,t,n);return r>n?n:r}function dQ(){return{top:0,right:0,bottom:0,left:0}}function fQ(e){return Object.assign({},dQ(),e)}function hQ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var epe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,fQ(typeof t!="number"?t:hQ(t,ww))};function tpe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=nc(n.placement),c=Rz(a),u=[as,Oa].indexOf(a)>=0,f=u?"height":"width";if(!(!o||!s)){var h=epe(i.padding,n),p=Iz(o),g=c==="y"?ss:as,v=c==="y"?Pa:Oa,y=n.rects.reference[f]+n.rects.reference[c]-s[c]-n.rects.popper[f],S=s[c]-n.rects.reference[c],w=_w(o),b=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=y/2-S/2,E=h[g],I=b-p[f]-h[v],A=b/2-p[f]/2+x,k=Mx(E,A,I),O=c;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-A,t)}}function npe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||uQ(t.elements.popper,i)&&(t.elements.arrow=i))}const rpe={name:"arrow",enabled:!0,phase:"main",fn:tpe,effect:npe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vg(e){return e.split("-")[1]}var ipe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ope(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Wg(n*i)/i||0,y:Wg(r*i)/i||0}}function X8(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,g=p===void 0?0:p,v=s.y,y=v===void 0?0:v,S=typeof f=="function"?f({x:g,y}):{x:g,y};g=S.x,y=S.y;var w=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=as,E=ss,I=window;if(u){var A=_w(n),k="clientHeight",O="clientWidth";if(A===Zs(n)&&(A=mf(n),zu(A).position!=="static"&&a==="absolute"&&(k="scrollHeight",O="scrollWidth")),A=A,i===ss||(i===as||i===Oa)&&o===E1){E=Pa;var D=h&&A===I&&I.visualViewport?I.visualViewport.height:A[k];y-=D-r.height,y*=c?1:-1}if(i===as||(i===ss||i===Pa)&&o===E1){x=Oa;var N=h&&A===I&&I.visualViewport?I.visualViewport.width:A[O];g-=N-r.width,g*=c?1:-1}}var H=Object.assign({position:a},u&&ipe),G=f===!0?ope({x:g,y},Zs(n)):{x:g,y};if(g=G.x,y=G.y,c){var z;return Object.assign({},H,(z={},z[E]=b?"0":"",z[x]=w?"0":"",z.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",z))}return Object.assign({},H,(t={},t[E]=b?y+"px":"",t[x]=w?g+"px":"",t.transform="",t))}function spe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:nc(t.placement),variation:Vg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,X8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,X8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ape={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:spe,data:{}};var C_={passive:!0};function lpe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,c=Zs(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,C_)}),a&&c.addEventListener("resize",n.update,C_),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,C_)}),a&&c.removeEventListener("resize",n.update,C_)}}const cpe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lpe,data:{}};var upe={left:"right",right:"left",bottom:"top",top:"bottom"};function uE(e){return e.replace(/left|right|bottom|top/g,function(t){return upe[t]})}var dpe={start:"end",end:"start"};function Y8(e){return e.replace(/start|end/g,function(t){return dpe[t]})}function Pz(e){var t=Zs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Oz(e){return Gg(mf(e)).left+Pz(e).scrollLeft}function fpe(e,t){var n=Zs(e),r=mf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var u=cQ();(u||!u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+Oz(e),y:c}}function hpe(e){var t,n=mf(e),r=Pz(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=_p(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=_p(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Oz(e),c=-r.scrollTop;return zu(i||n).direction==="rtl"&&(a+=_p(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function Mz(e){var t=zu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function pQ(e){return["html","body","#document"].indexOf(uc(e))>=0?e.ownerDocument.body:Ea(e)&&Mz(e)?e:pQ(Mk(e))}function Lx(e,t){var n;t===void 0&&(t=[]);var r=pQ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Zs(r),s=i?[o].concat(o.visualViewport||[],Mz(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Lx(Mk(s)))}function QF(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ppe(e,t){var n=Gg(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function K8(e,t,n){return t===aQ?QF(fpe(e,n)):zp(t)?ppe(t,n):QF(hpe(mf(e)))}function mpe(e){var t=Lx(Mk(e)),n=["absolute","fixed"].indexOf(zu(e).position)>=0,r=n&&Ea(e)?_w(e):e;return zp(r)?t.filter(function(i){return zp(i)&&uQ(i,r)&&uc(i)!=="body"}):[]}function gpe(e,t,n,r){var i=t==="clippingParents"?mpe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(c,u){var f=K8(e,u,r);return c.top=_p(f.top,c.top),c.right=mC(f.right,c.right),c.bottom=mC(f.bottom,c.bottom),c.left=_p(f.left,c.left),c},K8(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function mQ(e){var t=e.reference,n=e.element,r=e.placement,i=r?nc(r):null,o=r?Vg(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(i){case ss:c={x:s,y:t.y-n.height};break;case Pa:c={x:s,y:t.y+t.height};break;case Oa:c={x:t.x+t.width,y:a};break;case as:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=i?Rz(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Hg:c[u]=c[u]-(t[f]/2-n[f]/2);break;case E1:c[u]=c[u]+(t[f]/2-n[f]/2);break}}return c}function C1(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,c=a===void 0?Nhe:a,u=n.rootBoundary,f=u===void 0?aQ:u,h=n.elementContext,p=h===void 0?Cb:h,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,S=y===void 0?0:y,w=fQ(typeof S!="number"?S:hQ(S,ww)),b=p===Cb?Bhe:Cb,x=e.rects.popper,E=e.elements[v?b:p],I=gpe(zp(E)?E:E.contextElement||mf(e.elements.popper),c,f,s),A=Gg(e.elements.reference),k=mQ({reference:A,element:x,strategy:"absolute",placement:i}),O=QF(Object.assign({},x,k)),D=p===Cb?O:A,N={top:I.top-D.top+w.top,bottom:D.bottom-I.bottom+w.bottom,left:I.left-D.left+w.left,right:D.right-I.right+w.right},H=e.modifiersData.offset;if(p===Cb&&H){var G=H[i];Object.keys(N).forEach(function(z){var L=[Oa,Pa].indexOf(z)>=0?1:-1,F=[ss,Pa].indexOf(z)>=0?"y":"x";N[z]+=G[F]*L})}return N}function vpe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?lQ:c,f=Vg(r),h=f?a?V8:V8.filter(function(v){return Vg(v)===f}):ww,p=h.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=h);var g=p.reduce(function(v,y){return v[y]=C1(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[nc(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function ype(e){if(nc(e)===kz)return[];var t=uE(e);return[Y8(e),t,Y8(t)]}function bpe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,S=t.options.placement,w=nc(S),b=w===S,x=c||(b||!v?[uE(S)]:ype(S)),E=[S].concat(x).reduce(function(ue,se){return ue.concat(nc(se)===kz?vpe(t,{placement:se,boundary:f,rootBoundary:h,padding:u,flipVariations:v,allowedAutoPlacements:y}):se)},[]),I=t.rects.reference,A=t.rects.popper,k=new Map,O=!0,D=E[0],N=0;N=0,F=L?"width":"height",j=C1(t,{placement:H,boundary:f,rootBoundary:h,altBoundary:p,padding:u}),V=L?z?Oa:as:z?Pa:ss;I[F]>A[F]&&(V=uE(V));var W=uE(V),K=[];if(o&&K.push(j[G]<=0),a&&K.push(j[V]<=0,j[W]<=0),K.every(function(ue){return ue})){D=H,O=!1;break}k.set(H,K)}if(O)for(var X=v?3:1,Q=function(se){var J=E.find(function(ae){var le=k.get(ae);if(le)return le.slice(0,se).every(function(he){return he})});if(J)return D=J,"break"},ie=X;ie>0;ie--){var ce=Q(ie);if(ce==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const xpe={name:"flip",enabled:!0,phase:"main",fn:bpe,requiresIfExists:["offset"],data:{_skip:!1}};function Q8(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function J8(e){return[ss,Oa,Pa,as].some(function(t){return e[t]>=0})}function wpe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=C1(t,{elementContext:"reference"}),a=C1(t,{altBoundary:!0}),c=Q8(s,r),u=Q8(a,i,o),f=J8(c),h=J8(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const _pe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wpe};function Spe(e,t,n){var r=nc(e),i=[as,ss].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[as,Oa].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Epe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=lQ.reduce(function(f,h){return f[h]=Spe(h,t.rects,o),f},{}),a=s[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const Cpe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Epe};function Tpe(e){var t=e.state,n=e.name;t.modifiersData[n]=mQ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kpe={name:"popperOffsets",enabled:!0,phase:"read",fn:Tpe,data:{}};function Ape(e){return e==="x"?"y":"x"}function Ipe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,S=C1(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:f}),w=nc(t.placement),b=Vg(t.placement),x=!b,E=Rz(w),I=Ape(E),A=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(A){if(o){var z,L=E==="y"?ss:as,F=E==="y"?Pa:Oa,j=E==="y"?"height":"width",V=A[E],W=V+S[L],K=V-S[F],X=g?-O[j]/2:0,Q=b===Hg?k[j]:O[j],ie=b===Hg?-O[j]:-k[j],ce=t.elements.arrow,ue=g&&ce?Iz(ce):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:dQ(),J=se[L],ae=se[F],le=Mx(0,k[j],ue[j]),he=x?k[j]/2-X-le-J-N.mainAxis:Q-le-J-N.mainAxis,pe=x?-k[j]/2+X+le+ae+N.mainAxis:ie+le+ae+N.mainAxis,ve=t.elements.arrow&&_w(t.elements.arrow),ye=ve?E==="y"?ve.clientTop||0:ve.clientLeft||0:0,xe=(z=H==null?void 0:H[E])!=null?z:0,me=V+he-xe-ye,be=V+pe-xe,Ze=Mx(g?mC(W,me):W,V,g?_p(K,be):K);A[E]=Ze,G[E]=Ze-V}if(a){var Xe,ct=E==="x"?ss:as,Bt=E==="x"?Pa:Oa,Pe=A[I],ze=I==="y"?"height":"width",st=Pe+S[ct],gt=Pe-S[Bt],vt=[ss,as].indexOf(w)!==-1,_e=(Xe=H==null?void 0:H[I])!=null?Xe:0,je=vt?st:Pe-k[ze]-O[ze]-_e+N.altAxis,Ke=vt?Pe+k[ze]+O[ze]-_e-N.altAxis:gt,Fe=g&&vt?Zhe(je,Pe,Ke):Mx(g?je:st,Pe,g?Ke:gt);A[I]=Fe,G[I]=Fe-Pe}t.modifiersData[r]=G}}const Rpe={name:"preventOverflow",enabled:!0,phase:"main",fn:Ipe,requiresIfExists:["offset"]};function Ppe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ope(e){return e===Zs(e)||!Ea(e)?Pz(e):Ppe(e)}function Mpe(e){var t=e.getBoundingClientRect(),n=Wg(t.width)/e.offsetWidth||1,r=Wg(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Lpe(e,t,n){n===void 0&&(n=!1);var r=Ea(t),i=Ea(t)&&Mpe(t),o=mf(t),s=Gg(e,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((uc(t)!=="body"||Mz(o))&&(a=Ope(t)),Ea(t)?(c=Gg(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Oz(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Dpe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Npe(e){var t=Dpe(e);return qhe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Bpe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $pe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Z8={placement:"bottom",modifiers:[],strategy:"absolute"};function eH(){for(var e=arguments.length,t=new Array(e),n=0;n{o||a(Upe(i)||document.body)},[i,o]),jo(()=>{if(s&&!o)return X$(n,s),()=>{X$(n,null)}},[n,s,o]),o){if(R.isValidElement(r)){const u={ref:c};return R.cloneElement(r,u)}return C.jsx(R.Fragment,{children:r})}return C.jsx(R.Fragment,{children:s&&_v.createPortal(r,s)})});function Hpe(e){return Ct("MuiPopper",e)}It("MuiPopper",["root"]);const Wpe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Gpe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Vpe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function JF(e){return typeof e=="function"?e():e}function qpe(e){return e.nodeType!==void 0}const Xpe=()=>At({root:["root"]},She(Hpe)),Ype={},Kpe=R.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:c,open:u,placement:f,popperOptions:h,popperRef:p,slotProps:g={},slots:v={},TransitionProps:y}=t,S=Ne(t,Wpe),w=R.useRef(null),b=Tr(w,n),x=R.useRef(null),E=Tr(x,p),I=R.useRef(E);jo(()=>{I.current=E},[E]),R.useImperativeHandle(p,()=>x.current,[]);const A=Vpe(f,s),[k,O]=R.useState(A),[D,N]=R.useState(JF(i));R.useEffect(()=>{x.current&&x.current.forceUpdate()}),R.useEffect(()=>{i&&N(JF(i))},[i]),jo(()=>{if(!D||!u)return;const F=W=>{O(W.placement)};let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{F(W)}}];c!=null&&(j=j.concat(c)),h&&h.modifiers!=null&&(j=j.concat(h.modifiers));const V=jpe(D,w.current,$({placement:A},h,{modifiers:j}));return I.current(V),()=>{V.destroy(),I.current(null)}},[D,a,c,u,h,A]);const H={placement:k};y!==null&&(H.TransitionProps=y);const G=Xpe(),z=(r=v.root)!=null?r:"div",L=ti({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:G.root});return C.jsx(z,$({},L,{children:typeof o=="function"?o(H):o}))}),Qpe=R.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:u,open:f,placement:h="bottom",popperOptions:p=Ype,popperRef:g,style:v,transition:y=!1,slotProps:S={},slots:w={}}=t,b=Ne(t,Gpe),[x,E]=R.useState(!0),I=()=>{E(!1)},A=()=>{E(!0)};if(!c&&!f&&(!y||x))return null;let k;if(o)k=o;else if(r){const N=JF(r);k=N&&qpe(N)?Fr(N).body:Fr(null).body}const O=!f&&c&&(!y||x)?"none":void 0,D=y?{in:f,onEnter:I,onExited:A}:void 0;return C.jsx(gQ,{disablePortal:a,container:k,children:C.jsx(Kpe,$({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:y?!x:f,placement:h,popperOptions:p,popperRef:g,slotProps:S,slots:w},b,{style:$({position:"fixed",top:0,left:0,display:O},v),TransitionProps:D,children:i}))})});function Jpe(e){const t=Fr(e);return t.body===e?Du(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tH(e){return parseInt(Du(e).getComputedStyle(e).paddingRight,10)||0}function Zpe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function nH(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=o.indexOf(s)===-1,c=!Zpe(s);a&&c&&Dx(s,i)})}function $D(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function eme(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Jpe(r)){const s=xX(Fr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${tH(r)+s}px`;const a=Fr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${tH(c)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Fr(r).body;else{const s=r.parentElement,a=Du(r);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function tme(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class nme{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Dx(t.modalRef,!1);const i=tme(n);nH(n,t.mount,t.modalRef,i,!0);const o=$D(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=$D(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=eme(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=$D(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Dx(t.modalRef,n),nH(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Dx(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function rme(e){return typeof e=="function"?e():e}function ime(e){return e?e.props.hasOwnProperty("in"):!1}const ome=new nme;function sme(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=ome,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:c,onClose:u,open:f,rootRef:h}=e,p=R.useRef({}),g=R.useRef(null),v=R.useRef(null),y=Tr(v,h),[S,w]=R.useState(!f),b=ime(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Fr(g.current),I=()=>(p.current.modalRef=v.current,p.current.mount=g.current,p.current),A=()=>{i.mount(I(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=mo(()=>{const j=rme(t)||E().body;i.add(I(),j),v.current&&A()}),O=R.useCallback(()=>i.isTopModal(I()),[i]),D=mo(j=>{g.current=j,j&&(f&&O()?A():v.current&&Dx(v.current,x))}),N=R.useCallback(()=>{i.remove(I(),x)},[x,i]);R.useEffect(()=>()=>{N()},[N]),R.useEffect(()=>{f?k():(!b||!o)&&N()},[f,N,b,o,k]);const H=j=>V=>{var W;(W=j.onKeyDown)==null||W.call(j,V),!(V.key!=="Escape"||!O())&&(n||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},G=j=>V=>{var W;(W=j.onClick)==null||W.call(j,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(j={})=>{const V=pC(e);delete V.onTransitionEnter,delete V.onTransitionExited;const W=$({},V,j);return $({role:"presentation"},W,{onKeyDown:H(W),ref:y})},getBackdropProps:(j={})=>{const V=j;return $({"aria-hidden":!0},V,{onClick:G(V),open:f})},getTransitionProps:()=>{const j=()=>{w(!1),s&&s()},V=()=>{w(!0),a&&a(),o&&N()};return{onEnter:r6(j,c==null?void 0:c.props.onEnter),onExited:r6(V,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:D,isTopModal:O,exited:S,hasTransition:b}}const ame=2;function vQ(e,t){return e-t}function Tb(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function rH(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const a=Math.abs(t-o);return i===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},fme=e=>e;let I_;function FD(){return I_===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?I_=CSS.supports("touch-action","none"):I_=!0),I_}function hme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:c=0,name:u,onChange:f,onChangeCommitted:h,orientation:p="horizontal",rootRef:g,scale:v=fme,step:y=1,tabIndex:S,value:w}=e,b=R.useRef(),[x,E]=R.useState(-1),[I,A]=R.useState(-1),[k,O]=R.useState(!1),D=R.useRef(0),[N,H]=r1({controlled:w,default:n??c,name:"Slider"}),G=f&&((_e,je,Ke)=>{const Fe=_e.nativeEvent||_e,Be=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Be,"target",{writable:!0,value:{value:je,name:u}}),f(Be,je,Ke)}),z=Array.isArray(N);let L=z?N.slice().sort(vQ):[N];L=L.map(_e=>Tb(_e,c,a));const F=s===!0&&y!==null?[...Array(Math.floor((a-c)/y)+1)].map((_e,je)=>({value:c+y*je})):s||[],j=F.map(_e=>_e.value),{isFocusVisibleRef:V,onBlur:W,onFocus:K,ref:X}=f4(),[Q,ie]=R.useState(-1),ce=R.useRef(),ue=Tr(X,ce),se=Tr(g,ue),J=_e=>je=>{var Ke;const Fe=Number(je.currentTarget.getAttribute("data-index"));K(je),V.current===!0&&ie(Fe),A(Fe),_e==null||(Ke=_e.onFocus)==null||Ke.call(_e,je)},ae=_e=>je=>{var Ke;W(je),V.current===!1&&ie(-1),A(-1),_e==null||(Ke=_e.onBlur)==null||Ke.call(_e,je)};jo(()=>{if(r&&ce.current.contains(document.activeElement)){var _e;(_e=document.activeElement)==null||_e.blur()}},[r]),r&&x!==-1&&E(-1),r&&Q!==-1&&ie(-1);const le=_e=>je=>{var Ke;(Ke=_e.onChange)==null||Ke.call(_e,je);const Fe=Number(je.currentTarget.getAttribute("data-index")),Be=L[Fe],Pt=j.indexOf(Be);let dt=je.target.valueAsNumber;if(F&&y==null){const Ie=j[j.length-1];dt>Ie?dt=Ie:dt{const{current:Ke}=ce,{width:Fe,height:Be,bottom:Pt,left:dt}=Ke.getBoundingClientRect();let Ie;pe.indexOf("vertical")===0?Ie=(Pt-_e.y)/Be:Ie=(_e.x-dt)/Fe,pe.indexOf("-reverse")!==-1&&(Ie=1-Ie);let at;if(at=lme(Ie,c,a),y)at=ume(at,y,c);else{const Re=rH(j,at);at=j[Re]}at=Tb(at,c,a);let $t=0;if(z){je?$t=he.current:$t=rH(L,at),i&&(at=Tb(at,L[$t-1]||-1/0,L[$t+1]||1/0));const Re=at;at=iH({values:L,newValue:at,index:$t}),i&&je||($t=at.indexOf(Re),he.current=$t)}return{newValue:at,activeIndex:$t}},ye=mo(_e=>{const je=T_(_e,b);if(!je)return;if(D.current+=1,_e.type==="mousemove"&&_e.buttons===0){xe(_e);return}const{newValue:Ke,activeIndex:Fe}=ve({finger:je,move:!0});k_({sliderRef:ce,activeIndex:Fe,setActive:E}),H(Ke),!k&&D.current>ame&&O(!0),G&&!A_(Ke,N)&&G(_e,Ke,Fe)}),xe=mo(_e=>{const je=T_(_e,b);if(O(!1),!je)return;const{newValue:Ke}=ve({finger:je,move:!0});E(-1),_e.type==="touchend"&&A(-1),h&&h(_e,Ke),b.current=void 0,be()}),me=mo(_e=>{if(r)return;FD()||_e.preventDefault();const je=_e.changedTouches[0];je!=null&&(b.current=je.identifier);const Ke=T_(_e,b);if(Ke!==!1){const{newValue:Be,activeIndex:Pt}=ve({finger:Ke});k_({sliderRef:ce,activeIndex:Pt,setActive:E}),H(Be),G&&!A_(Be,N)&&G(_e,Be,Pt)}D.current=0;const Fe=Fr(ce.current);Fe.addEventListener("touchmove",ye),Fe.addEventListener("touchend",xe)}),be=R.useCallback(()=>{const _e=Fr(ce.current);_e.removeEventListener("mousemove",ye),_e.removeEventListener("mouseup",xe),_e.removeEventListener("touchmove",ye),_e.removeEventListener("touchend",xe)},[xe,ye]);R.useEffect(()=>{const{current:_e}=ce;return _e.addEventListener("touchstart",me,{passive:FD()}),()=>{_e.removeEventListener("touchstart",me,{passive:FD()}),be()}},[be,me]),R.useEffect(()=>{r&&be()},[r,be]);const Ze=_e=>je=>{var Ke;if((Ke=_e.onMouseDown)==null||Ke.call(_e,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Fe=T_(je,b);if(Fe!==!1){const{newValue:Pt,activeIndex:dt}=ve({finger:Fe});k_({sliderRef:ce,activeIndex:dt,setActive:E}),H(Pt),G&&!A_(Pt,N)&&G(je,Pt,dt)}D.current=0;const Be=Fr(ce.current);Be.addEventListener("mousemove",ye),Be.addEventListener("mouseup",xe)},Xe=gC(z?L[0]:c,c,a),ct=gC(L[L.length-1],c,a)-Xe,Bt=(_e={})=>{const je={onMouseDown:Ze(_e||{})},Ke=$({},_e,je);return $({ref:se},Ke)},Pe=_e=>je=>{var Ke;(Ke=_e.onMouseOver)==null||Ke.call(_e,je);const Fe=Number(je.currentTarget.getAttribute("data-index"));A(Fe)},ze=_e=>je=>{var Ke;(Ke=_e.onMouseLeave)==null||Ke.call(_e,je),A(-1)};return{active:x,axis:pe,axisProps:dme,dragging:k,focusedThumbIndex:Q,getHiddenInputProps:(_e={})=>{var je;const Ke={onChange:le(_e||{}),onFocus:J(_e||{}),onBlur:ae(_e||{})},Fe=$({},_e,Ke);return $({tabIndex:S,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(a),"aria-valuemin":v(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Fe,{style:$({},Gse,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(_e={})=>{const je={onMouseOver:Pe(_e||{}),onMouseLeave:ze(_e||{})};return $({},_e,je)},marks:F,open:I,range:z,rootRef:se,trackLeap:ct,trackOffset:Xe,values:L,getThumbStyle:_e=>({pointerEvents:x!==-1&&x!==_e?"none":void 0})}}function pme(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=R.useRef();R.useEffect(()=>{if(!i)return;function w(b){b.defaultPrevented||(b.key==="Escape"||b.key==="Esc")&&(r==null||r(b,"escapeKeyDown"))}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[i,r]);const a=mo((w,b)=>{r==null||r(w,b)}),c=mo(w=>{!r||w==null||(clearTimeout(s.current),s.current=setTimeout(()=>{a(null,"timeout")},w))});R.useEffect(()=>(i&&c(t),()=>{clearTimeout(s.current)}),[i,t,c]);const u=w=>{r==null||r(w,"clickaway")},f=()=>{clearTimeout(s.current)},h=R.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),p=w=>b=>{const x=w.onBlur;x==null||x(b),h()},g=w=>b=>{const x=w.onFocus;x==null||x(b),f()},v=w=>b=>{const x=w.onMouseEnter;x==null||x(b),f()},y=w=>b=>{const x=w.onMouseLeave;x==null||x(b),h()};return R.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[n,h,i]),{getRootProps:(w={})=>{const b=$({},pC(e),pC(w));return $({role:"presentation"},w,b,{onBlur:p(b),onFocus:g(b),onMouseEnter:v(b),onMouseLeave:y(b)})},onClickAway:u}}const mme=["onChange","maxRows","minRows","style","value"];function R_(e){return parseInt(e,10)||0}const gme={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oH(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const vme=R.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a}=t,c=Ne(t,mme),{current:u}=R.useRef(a!=null),f=R.useRef(null),h=Tr(n,f),p=R.useRef(null),g=R.useRef(0),[v,y]=R.useState({outerHeightStyle:0}),S=R.useCallback(()=>{const E=f.current,A=Du(E).getComputedStyle(E);if(A.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=A.width,k.value=E.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const O=A.boxSizing,D=R_(A.paddingBottom)+R_(A.paddingTop),N=R_(A.borderBottomWidth)+R_(A.borderTopWidth),H=k.scrollHeight;k.value="x";const G=k.scrollHeight;let z=H;o&&(z=Math.max(Number(o)*G,z)),i&&(z=Math.min(Number(i)*G,z)),z=Math.max(z,G);const L=z+(O==="border-box"?D+N:0),F=Math.abs(z-H)<=1;return{outerHeightStyle:L,overflow:F}},[i,o,t.placeholder]),w=(E,I)=>{const{outerHeightStyle:A,overflow:k}=I;return g.current<20&&(A>0&&Math.abs((E.outerHeightStyle||0)-A)>1||E.overflow!==k)?(g.current+=1,{overflow:k,outerHeightStyle:A}):E},b=R.useCallback(()=>{const E=S();oH(E)||y(I=>w(I,E))},[S]);jo(()=>{const E=()=>{const H=S();oH(H)||_v.flushSync(()=>{y(G=>w(G,H))})},I=()=>{g.current=0,E()};let A;const k=PT(I),O=f.current,D=Du(O);D.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(I),N.observe(O)),()=>{k.clear(),cancelAnimationFrame(A),D.removeEventListener("resize",k),N&&N.disconnect()}},[S]),jo(()=>{b()}),R.useEffect(()=>{g.current=0},[a]);const x=E=>{g.current=0,u||b(),r&&r(E)};return C.jsxs(R.Fragment,{children:[C.jsx("textarea",$({value:a,onChange:x,ref:h,rows:o,style:$({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},c)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},gme.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),yme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],bme=Ce(Qpe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xme=R.forwardRef(function(t,n){var r;const i=nk(),o=Rt({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:u,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:w,transition:b,slots:x,slotProps:E}=o,I=Ne(o,yme),A=(r=x==null?void 0:x.root)!=null?r:c==null?void 0:c.Root,k=$({anchorEl:s,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:w,transition:b},I);return C.jsx(bme,$({as:a,direction:i==null?void 0:i.direction,slots:{root:A},slotProps:E??u},k,{ref:n}))}),yQ=xme;function wme(e){return Ct("MuiListSubheader",e)}It("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const _me=["className","color","component","disableGutters","disableSticky","inset"],Sme=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${Le(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return At(s,wme,t)},Eme=Ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Le(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>$({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:u=!1}=r,f=Ne(r,_me),h=$({},r,{color:o,component:s,disableGutters:a,disableSticky:c,inset:u}),p=Sme(h);return C.jsx(Eme,$({as:s,className:Ue(p.root,i),ref:n,ownerState:h},f))});bQ.muiSkipListHighlight=!0;const Cme=bQ;function tm({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const Tme=R.createContext(void 0),Lz=Tme;function gf(){return R.useContext(Lz)}function xQ(e){return C.jsx(Zle,$({},e,{defaultTheme:ok,themeId:Pp}))}function sH(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vC(e,t=!1){return e&&(sH(e.value)&&e.value!==""||t&&sH(e.defaultValue)&&e.defaultValue!=="")}function kme(e){return e.startAdornment}function Ame(e){return Ct("MuiInputBase",e)}const Ime=It("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qg=Ime,Rme=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Lk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dk=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Pme=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:c,hiddenLabel:u,multiline:f,readOnly:h,size:p,startAdornment:g,type:v}=e,y={root:["root",`color${Le(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${Le(p)}`,f&&"multiline",g&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return At(y,Ame,t)},Nk=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Lk})(({theme:e,ownerState:t})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${qg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Bk=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return $({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${qg.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${qg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Ome=C.jsx(xQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Mme=R.forwardRef(function(t,n){var r;const i=Rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:c,components:u={},componentsProps:f={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:S,inputComponent:w="input",inputProps:b={},inputRef:x,maxRows:E,minRows:I,multiline:A=!1,name:k,onBlur:O,onChange:D,onClick:N,onFocus:H,onKeyDown:G,onKeyUp:z,placeholder:L,readOnly:F,renderSuffix:j,rows:V,slotProps:W={},slots:K={},startAdornment:X,type:Q="text",value:ie}=i,ce=Ne(i,Rme),ue=b.value!=null?b.value:ie,{current:se}=R.useRef(ue!=null),J=R.useRef(),ae=R.useCallback(Fe=>{},[]),le=Tr(J,x,b.ref,ae),[he,pe]=R.useState(!1),ve=gf(),ye=tm({props:i,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ve?ve.focused:he,R.useEffect(()=>{!ve&&p&&he&&(pe(!1),O&&O())},[ve,p,he,O]);const xe=ve&&ve.onFilled,me=ve&&ve.onEmpty,be=R.useCallback(Fe=>{vC(Fe)?xe&&xe():me&&me()},[xe,me]);jo(()=>{se&&be({value:ue})},[ue,be,se]);const Ze=Fe=>{if(ye.disabled){Fe.stopPropagation();return}H&&H(Fe),b.onFocus&&b.onFocus(Fe),ve&&ve.onFocus?ve.onFocus(Fe):pe(!0)},Xe=Fe=>{O&&O(Fe),b.onBlur&&b.onBlur(Fe),ve&&ve.onBlur?ve.onBlur(Fe):pe(!1)},ct=(Fe,...Be)=>{if(!se){const Pt=Fe.target||J.current;if(Pt==null)throw new Error(Jd(1));be({value:Pt.value})}b.onChange&&b.onChange(Fe,...Be),D&&D(Fe,...Be)};R.useEffect(()=>{be(J.current)},[]);const Bt=Fe=>{J.current&&Fe.currentTarget===Fe.target&&J.current.focus(),N&&N(Fe)};let Pe=w,ze=b;A&&Pe==="input"&&(V?ze=$({type:void 0,minRows:V,maxRows:V},ze):ze=$({type:void 0,maxRows:E,minRows:I},ze),Pe=vme);const st=Fe=>{be(Fe.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};R.useEffect(()=>{ve&&ve.setAdornedStart(!!X)},[ve,X]);const gt=$({},i,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:v,error:ye.error,focused:ye.focused,formControl:ve,fullWidth:y,hiddenLabel:ye.hiddenLabel,multiline:A,size:ye.size,startAdornment:X,type:Q}),vt=Pme(gt),_e=K.root||u.Root||Nk,je=W.root||f.root||{},Ke=K.input||u.Input||Bk;return ze=$({},ze,(r=W.input)!=null?r:f.input),C.jsxs(R.Fragment,{children:[!g&&Ome,C.jsxs(_e,$({},je,!tc(_e)&&{ownerState:$({},gt,je.ownerState)},{ref:n,onClick:Bt},ce,{className:Ue(vt.root,je.className,c,F&&"MuiInputBase-readOnly"),children:[X,C.jsx(Lz.Provider,{value:null,children:C.jsx(Ke,$({ownerState:gt,"aria-invalid":ye.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:h,disabled:ye.disabled,id:S,onAnimationStart:st,name:k,placeholder:L,readOnly:F,required:ye.required,rows:V,value:ue,onKeyDown:G,onKeyUp:z,type:Q},ze,!tc(Ke)&&{as:Pe,ownerState:$({},gt,ze.ownerState)},{ref:le,className:Ue(vt.input,ze.className,F&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:ct,onFocus:Ze}))}),v,j?j($({},ye,{startAdornment:X})):null]}))]})}),$k=Mme;function Lme(e){return Ct("MuiInput",e)}const Dme=$({},qg,It("MuiInput",["root","underline","input"])),kb=Dme;function Nme(e){return Ct("MuiOutlinedInput",e)}const Bme=$({},qg,It("MuiOutlinedInput",["root","notchedOutline","input"])),rd=Bme;function $me(e){return Ct("MuiFilledInput",e)}const Fme=$({},qg,It("MuiFilledInput",["root","underline","input"])),zh=Fme,zme=zt(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),jme=zt(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Ume(e){return Ct("MuiAvatar",e)}It("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Hme=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Wme=e=>{const{classes:t,variant:n,colorDefault:r}=e;return At({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Ume,t)},Gme=Ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&$({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Vme=Ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qme=Ce(jme,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Xme({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=R.useState(!1);return R.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const Yme=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",imgProps:c,sizes:u,src:f,srcSet:h,variant:p="circular"}=r,g=Ne(r,Hme);let v=null;const y=Xme($({},c,{src:f,srcSet:h})),S=f||h,w=S&&y!=="error",b=$({},r,{colorDefault:!w,component:a,variant:p}),x=Wme(b);return w?v=C.jsx(Vme,$({alt:i,srcSet:h,src:f,sizes:u,ownerState:b,className:x.img},c)):o!=null?v=o:S&&i?v=i[0]:v=C.jsx(qme,{ownerState:b,className:x.fallback}),C.jsx(Gme,$({as:a,ownerState:b,className:Ue(x.root,s),ref:n},g,{children:v}))}),Kme=Yme,Qme=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Jme={entering:{opacity:1},entered:{opacity:1}},Zme=R.forwardRef(function(t,n){const r=Dn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:c,in:u,onEnter:f,onEntered:h,onEntering:p,onExit:g,onExited:v,onExiting:y,style:S,timeout:w=i,TransitionComponent:b=Ez}=t,x=Ne(t,Qme),E=R.useRef(null),I=Tr(E,a.ref,n),A=L=>F=>{if(L){const j=E.current;F===void 0?L(j):L(j,F)}},k=A(p),O=A((L,F)=>{oQ(L);const j=Ug({style:S,timeout:w,easing:c},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",j),L.style.transition=r.transitions.create("opacity",j),f&&f(L,F)}),D=A(h),N=A(y),H=A(L=>{const F=Ug({style:S,timeout:w,easing:c},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",F),L.style.transition=r.transitions.create("opacity",F),g&&g(L)}),G=A(v),z=L=>{o&&o(E.current,L)};return C.jsx(b,$({appear:s,in:u,nodeRef:E,onEnter:O,onEntered:D,onEntering:k,onExit:H,onExited:G,onExiting:N,addEndListener:z,timeout:w},x,{children:(L,F)=>R.cloneElement(a,$({style:$({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},Jme[L],S,a.props.style),ref:I},F))}))}),jp=Zme;function ege(e){return Ct("MuiBackdrop",e)}It("MuiBackdrop",["root","invisible"]);const tge=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nge=e=>{const{classes:t,invisible:n}=e;return At({root:["root",n&&"invisible"]},ege,t)},rge=Ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),ige=R.forwardRef(function(t,n){var r,i,o;const s=Rt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:u="div",components:f={},componentsProps:h={},invisible:p=!1,open:g,slotProps:v={},slots:y={},TransitionComponent:S=jp,transitionDuration:w}=s,b=Ne(s,tge),x=$({},s,{component:u,invisible:p}),E=nge(x),I=(r=v.root)!=null?r:h.root;return C.jsx(S,$({in:g,timeout:w},b,{children:C.jsx(rge,$({"aria-hidden":!0},I,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:u,className:Ue(E.root,c,I==null?void 0:I.className),ownerState:$({},x,I==null?void 0:I.ownerState),classes:E,ref:n,children:a}))}))}),Dz=ige,oge=R4(),sge=rce({themeId:Pp,defaultTheme:oge,defaultClassName:"MuiBox-root",generateClassName:_X.generate}),ht=sge;function age(e){return Ct("MuiButton",e)}const lge=It("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),P_=lge,cge=R.createContext({}),uge=cge,dge=R.createContext(void 0),fge=dge,hge=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pge=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,a={root:["root",o,`${o}${Le(t)}`,`size${Le(i)}`,`${o}Size${Le(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Le(i)}`],endIcon:["endIcon",`iconSize${Le(i)}`]},c=At(a,age,s);return $({},s,c)},wQ=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),mge=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Le(n.color)}`],t[`size${Le(n.size)}`],t[`${n.variant}Size${Le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${P_.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${P_.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${kn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${P_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${P_.disabled}`]:{boxShadow:"none"}}),gge=Ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},wQ(e))),vge=Ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},wQ(e))),yge=R.forwardRef(function(t,n){const r=R.useContext(uge),i=R.useContext(fge),o=h4(r,t),s=Rt({props:o,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:f,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:v,focusVisibleClassName:y,fullWidth:S=!1,size:w="medium",startIcon:b,type:x,variant:E="text"}=s,I=Ne(s,hge),A=$({},s,{color:c,component:u,disabled:h,disableElevation:p,disableFocusRipple:g,fullWidth:S,size:w,type:x,variant:E}),k=pge(A),O=b&&C.jsx(gge,{className:k.startIcon,ownerState:A,children:b}),D=v&&C.jsx(vge,{className:k.endIcon,ownerState:A,children:v}),N=i||"";return C.jsxs(mge,$({ownerState:A,className:Ue(r.className,k.root,f,N),component:u,disabled:h,focusRipple:!g,focusVisibleClassName:Ue(k.focusVisible,y),ref:n,type:x},I,{classes:k,children:[O,a,D]}))}),Nz=yge;function bge(e){return Ct("MuiCard",e)}It("MuiCard",["root"]);const xge=["className","raised"],wge=e=>{const{classes:t}=e;return At({root:["root"]},bge,t)},_ge=Ce(Sv,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Sge=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=Ne(r,xge),a=$({},r,{raised:o}),c=wge(a);return C.jsx(_ge,$({className:Ue(c.root,i),elevation:o?8:void 0,ref:n,ownerState:a},s))}),Ege=Sge;function Cge(e){return Ct("PrivateSwitchBase",e)}It("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Tge=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kge=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Le(i)}`],input:["input"]};return At(o,Cge,t)},Age=Ce(Yu)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Ige=Ce("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Rge=R.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:a,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:p,inputProps:g,inputRef:v,name:y,onBlur:S,onChange:w,onFocus:b,readOnly:x,required:E=!1,tabIndex:I,type:A,value:k}=t,O=Ne(t,Tge),[D,N]=r1({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),H=gf(),G=K=>{b&&b(K),H&&H.onFocus&&H.onFocus(K)},z=K=>{S&&S(K),H&&H.onBlur&&H.onBlur(K)},L=K=>{if(K.nativeEvent.defaultPrevented)return;const X=K.target.checked;N(X),w&&w(K,X)};let F=c;H&&typeof F>"u"&&(F=H.disabled);const j=A==="checkbox"||A==="radio",V=$({},t,{checked:D,disabled:F,disableFocusRipple:u,edge:f}),W=kge(V);return C.jsxs(Age,$({component:"span",className:Ue(W.root,s),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:G,onBlur:z,ownerState:V,ref:n},O,{children:[C.jsx(Ige,$({autoFocus:r,checked:i,defaultChecked:a,className:W.input,disabled:F,id:j?p:void 0,name:y,onChange:L,readOnly:x,ref:v,required:E,ownerState:V,tabIndex:I,type:A},A==="checkbox"&&k===void 0?{}:{value:k},g)),D?o:h]}))}),_Q=Rge,Pge=zt(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Oge=zt(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Mge=zt(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Lge(e){return Ct("MuiCheckbox",e)}const Dge=It("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zD=Dge,Nge=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Bge=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${Le(r)}`,`size${Le(i)}`]},s=At(o,Lge,t);return $({},t,s)},$ge=Ce(_Q,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Le(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${zD.checked}, &.${zD.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${zD.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Fge=C.jsx(Oge,{}),zge=C.jsx(Pge,{}),jge=C.jsx(Mge,{}),Uge=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=Fge,color:a="primary",icon:c=zge,indeterminate:u=!1,indeterminateIcon:f=jge,inputProps:h,size:p="medium",className:g}=o,v=Ne(o,Nge),y=u?f:c,S=u?f:s,w=$({},o,{color:a,indeterminate:u,size:p}),b=Bge(w);return C.jsx($ge,$({type:"checkbox",inputProps:$({"data-indeterminate":u},h),icon:R.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:R.cloneElement(S,{fontSize:(i=S.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:Ue(b.root,g)},v,{classes:b}))}),Hge=Uge;function Wge(e){return Ct("MuiCircularProgress",e)}It("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Gge=["className","color","disableShrink","size","style","thickness","value","variant"];let Fk=e=>e,aH,lH,cH,uH;const id=44,Vge=df(aH||(aH=Fk` 0% { transform: rotate(0deg); } @@ -140,7 +140,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),zge=df(iH||(iH=$k` +`)),qge=df(lH||(lH=Fk` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -155,11 +155,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),jge=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Le(r)}`],svg:["svg"],circle:["circle",`circle${Le(n)}`,i&&"circleDisableShrink"]};return At(o,Bge,t)},Uge=Ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Le(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&mv(oH||(oH=$k` +`)),Xge=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Le(r)}`],svg:["svg"],circle:["circle",`circle${Le(n)}`,i&&"circleDisableShrink"]};return At(o,Wge,t)},Yge=Ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Le(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&vv(cH||(cH=Fk` animation: ${0} 1.4s linear infinite; - `),Fge)),Hge=Ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Wge=Ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&mv(sH||(sH=$k` + `),Vge)),Kge=Ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Qge=Ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&vv(uH||(uH=Fk` animation: ${0} 1.4s ease-in-out infinite; - `),zge)),Gge=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:c,thickness:u=3.6,value:f=0,variant:h="indeterminate"}=r,p=Ne(r,$ge),g=$({},r,{color:o,disableShrink:s,size:a,thickness:u,value:f,variant:h}),v=jge(g),y={},S={},w={};if(h==="determinate"){const b=2*Math.PI*((od-u)/2);y.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return C.jsx(Uge,$({className:Ue(v.root,i),style:$({width:a,height:a},S,c),ownerState:g,ref:n,role:"progressbar"},w,p,{children:C.jsx(Hge,{className:v.svg,ownerState:g,viewBox:`${od/2} ${od/2} ${od} ${od}`,children:C.jsx(Wge,{className:v.circle,style:y,ownerState:g,cx:od,cy:od,r:(od-u)/2,fill:"none",strokeWidth:u})})}))}),Fk=Gge,Vge=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qge=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Xge=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var c;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(c=a.palette)==null?void 0:c.mode}});let i=$({html:Vge(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},qge(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function Yge(e){const t=Rt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(P.Fragment,{children:[C.jsx(pQ,{styles:i=>Xge(i,r)}),n]})}function Kge(e){return Ct("MuiModal",e)}It("MuiModal",["root","hidden","backdrop"]);const Qge=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Jge=e=>{const{open:t,exited:n,classes:r}=e;return At({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Kge,r)},Zge=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),eve=Ce(mQ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),tve=P.forwardRef(function(t,n){var r,i,o,s,a,c;const u=Rt({name:"MuiModal",props:t}),{BackdropComponent:f=eve,BackdropProps:h,className:p,closeAfterTransition:g=!1,children:v,container:y,component:S,components:w={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:I=!1,disablePortal:A=!1,disableRestoreFocus:k=!1,disableScrollLock:O=!1,hideBackdrop:D=!1,keepMounted:N=!1,onBackdropClick:H,open:G,slotProps:z,slots:L}=u,F=Ne(u,Qge),j=$({},u,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:E,disableEscapeKeyDown:I,disablePortal:A,disableRestoreFocus:k,disableScrollLock:O,hideBackdrop:D,keepMounted:N}),{getRootProps:V,getBackdropProps:W,getTransitionProps:K,portalRef:X,isTopModal:Q,exited:re,hasTransition:ce}=Zpe($({},j,{rootRef:n})),ue=$({},j,{exited:re}),se=Jge(ue),J={};if(v.props.tabIndex===void 0&&(J.tabIndex="-1"),ce){const{onEnter:xe,onExited:me}=K();J.onEnter=xe,J.onExited=me}const ae=(r=(i=L==null?void 0:L.root)!=null?i:w.Root)!=null?r:Zge,le=(o=(s=L==null?void 0:L.backdrop)!=null?s:w.Backdrop)!=null?o:f,he=(a=z==null?void 0:z.root)!=null?a:b.root,pe=(c=z==null?void 0:z.backdrop)!=null?c:b.backdrop,ve=ti({elementType:ae,externalSlotProps:he,externalForwardedProps:F,getSlotProps:V,additionalProps:{ref:n,as:S},ownerState:ue,className:Ue(p,he==null?void 0:he.className,se==null?void 0:se.root,!ue.open&&ue.exited&&(se==null?void 0:se.hidden))}),ye=ti({elementType:le,externalSlotProps:pe,additionalProps:h,getSlotProps:xe=>W($({},xe,{onClick:me=>{H&&H(me),xe!=null&&xe.onClick&&xe.onClick(me)}})),className:Ue(pe==null?void 0:pe.className,h==null?void 0:h.className,se==null?void 0:se.backdrop),ownerState:ue});return!N&&!G&&(!ce||re)?null:C.jsx(uQ,{ref:X,container:y,disablePortal:A,children:C.jsxs(ae,$({},ve,{children:[!D&&f?C.jsx(le,$({},ye)):null,C.jsx(Ahe,{disableEnforceFocus:E,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:Q,open:G,children:P.cloneElement(v,J)})]}))})}),yQ=tve;function nve(e){return Ct("MuiDialog",e)}const rve=It("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),zD=rve,ive=P.createContext({}),ove=ive,sve=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ave=Ce(mQ,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),lve=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Le(n)}`],paper:["paper",`paperScroll${Le(n)}`,`paperWidth${Le(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return At(s,nve,t)},cve=Ce(yQ,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),uve=Ce("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Le(n.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),dve=Ce(wv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Le(n.scroll)}`],t[`paperWidth${Le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${zD.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${zD.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${zD.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),fve=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDialog"}),i=Ln(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:S,onClose:w,open:b,PaperComponent:x=wv,PaperProps:E={},scroll:I="paper",TransitionComponent:A=zp,transitionDuration:k=o,TransitionProps:O}=r,D=Ne(r,sve),N=$({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:v,maxWidth:y,scroll:I}),H=lve(N),G=P.useRef(),z=V=>{G.current=V.target===V.currentTarget},L=V=>{G.current&&(G.current=null,S&&S(V),w&&w(V,"backdropClick"))},F=u4(a),j=P.useMemo(()=>({titleId:F}),[F]);return C.jsx(cve,$({className:Ue(H.root,h),closeAfterTransition:!0,components:{Backdrop:ave},componentsProps:{backdrop:$({transitionDuration:k,as:c},u)},disableEscapeKeyDown:p,onClose:w,open:b,ref:n,onClick:L,ownerState:N},D,{children:C.jsx(A,$({appear:!0,in:b,timeout:k,role:"presentation"},O,{children:C.jsx(uve,{className:Ue(H.container),onMouseDown:z,ownerState:N,children:C.jsx(dve,$({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},E,{className:Ue(H.paper,E.className),ownerState:N,children:C.jsx(ove.Provider,{value:j,children:f})}))})}))}))}),hve=fve;function pve(e){return Ct("MuiDivider",e)}const mve=It("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),aH=mve,gve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],vve=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:c}=e;return At({root:["root",t&&"absolute",c,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},pve,r)},yve=Ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:kn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),bve=Ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),bQ=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:a=o?"div":"hr",flexItem:c=!1,light:u=!1,orientation:f="horizontal",role:h=a!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,v=Ne(r,gve),y=$({},r,{absolute:i,component:a,flexItem:c,light:u,orientation:f,role:h,textAlign:p,variant:g}),S=vve(y);return C.jsx(yve,$({as:a,className:Ue(S.root,s),role:h,ref:n,ownerState:y},v,{children:o?C.jsx(bve,{className:S.wrapper,ownerState:y,children:o}):null}))});bQ.muiSkipListHighlight=!0;const Ku=bQ,xve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],wve=e=>{const{classes:t,disableUnderline:n}=e,i=At({root:["root",!n&&"underline"],input:["input"]},Pme,t);return $({},t,i)},_ve=Ce(Dk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Mk(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Fh.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Fh.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fh.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fh.disabled}, .${Fh.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Fh.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Sve=Ce(Nk,{name:"MuiFilledInput",slot:"Input",overridesResolver:Lk})(({theme:e,ownerState:t})=>$({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),xQ=P.forwardRef(function(t,n){var r,i,o,s;const a=Rt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:v={},type:y="text"}=a,S=Ne(a,xve),w=$({},a,{fullWidth:f,inputComponent:h,multiline:p,type:y}),b=wve(a),x={root:{ownerState:w},input:{ownerState:w}},E=g??u?ts(g??u,x):x,I=(r=(i=v.root)!=null?i:c.Root)!=null?r:_ve,A=(o=(s=v.input)!=null?s:c.Input)!=null?o:Sve;return C.jsx(Bk,$({slots:{root:I,input:A},componentsProps:E,fullWidth:f,inputComponent:h,multiline:p,ref:n,type:y},S,{classes:b}))});xQ.muiName="Input";const wQ=xQ;function Eve(e){return Ct("MuiFormControl",e)}It("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Cve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Tve=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Le(n)}`,r&&"fullWidth"]};return At(i,Eve,t)},kve=Ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${Le(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Ave=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:a="div",disabled:c=!1,error:u=!1,focused:f,fullWidth:h=!1,hiddenLabel:p=!1,margin:g="none",required:v=!1,size:y="medium",variant:S="outlined"}=r,w=Ne(r,Cve),b=$({},r,{color:s,component:a,disabled:c,error:u,fullWidth:h,hiddenLabel:p,margin:g,required:v,size:y,variant:S}),x=Tve(b),[E,I]=P.useState(()=>{let z=!1;return i&&P.Children.forEach(i,L=>{if(!XS(L,["Input","Select"]))return;const F=XS(L,["Select"])?L.props.input:L;F&&xme(F.props)&&(z=!0)}),z}),[A,k]=P.useState(()=>{let z=!1;return i&&P.Children.forEach(i,L=>{XS(L,["Input","Select"])&&(mC(L.props,!0)||mC(L.props.inputProps,!0))&&(z=!0)}),z}),[O,D]=P.useState(!1);c&&O&&D(!1);const N=f!==void 0&&!c?f:O;let H;const G=P.useMemo(()=>({adornedStart:E,setAdornedStart:I,color:s,disabled:c,error:u,filled:A,focused:N,fullWidth:h,hiddenLabel:p,size:y,onBlur:()=>{D(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{D(!0)},registerEffect:H,required:v,variant:S}),[E,s,c,u,A,N,h,p,H,v,y,S]);return C.jsx(Mz.Provider,{value:G,children:C.jsx(kve,$({as:a,ownerState:b,className:Ue(x.root,o),ref:n},w,{children:i}))})}),Ive=Ave,Rve=Cce({createStyledComponent:Ce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Rt({props:e,name:"MuiStack"})}),Gg=Rve;function Pve(e){return Ct("MuiFormControlLabel",e)}const Ove=It("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ax=Ove,Mve=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Lve=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${Le(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return At(s,Pve,t)},Dve=Ce("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ax.label}`]:t.label},t.root,t[`labelPlacement${Le(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ax.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ax.label}`]:{[`&.${ax.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Nve=Ce("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ax.error}`]:{color:(e.vars||e).palette.error.main}})),Bve=P.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:u,disableTypography:f,label:h,labelPlacement:p="end",required:g,slotProps:v={}}=o,y=Ne(o,Mve),S=gf(),w=(r=u??c.props.disabled)!=null?r:S==null?void 0:S.disabled,b=g??c.props.required,x={disabled:w,required:b};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof c.props[D]>"u"&&typeof o[D]<"u"&&(x[D]=o[D])});const E=Jp({props:o,muiFormControl:S,states:["error"]}),I=$({},o,{disabled:w,labelPlacement:p,required:b,error:E.error}),A=Lve(I),k=(i=v.typography)!=null?i:a.typography;let O=h;return O!=null&&O.type!==Xt&&!f&&(O=C.jsx(Xt,$({component:"span"},k,{className:Ue(A.label,k==null?void 0:k.className),children:O}))),C.jsxs(Dve,$({className:Ue(A.root,s),ownerState:I,ref:n},y,{children:[P.cloneElement(c,x),b?C.jsxs(Gg,{direction:"row",alignItems:"center",children:[O,C.jsxs(Nve,{ownerState:I,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):O]}))}),$ve=Bve;function Fve(e){return Ct("MuiFormHelperText",e)}const zve=It("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),lH=zve;var cH;const jve=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Uve=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:a,required:c}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${Le(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return At(u,Fve,t)},Hve=Ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${lH.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lH.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Wve=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p"}=r,a=Ne(r,jve),c=gf(),u=Jp({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=$({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=Uve(f);return C.jsx(Hve,$({as:s,ownerState:f,className:Ue(h.root,o),ref:n},a,{children:i===" "?cH||(cH=C.jsx("span",{className:"notranslate",children:"​"})):i}))}),Gve=Wve;function Vve(e){return Ct("MuiFormLabel",e)}const qve=It("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$x=qve,Xve=["children","className","color","component","disabled","error","filled","focused","required"],Yve=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=e,c={root:["root",`color${Le(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return At(c,Vve,t)},Kve=Ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${$x.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$x.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$x.error}`]:{color:(e.vars||e).palette.error.main}})),Qve=Ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$x.error}`]:{color:(e.vars||e).palette.error.main}})),Jve=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:s="label"}=r,a=Ne(r,Xve),c=gf(),u=Jp({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=$({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=Yve(f);return C.jsxs(Kve,$({as:s,ownerState:f,className:Ue(h.root,o),ref:n},a,{children:[i,u.required&&C.jsxs(Qve,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Zve=Jve,eye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function JF(e){return`scale(${e}, ${e**2})`}const tye={entering:{opacity:1,transform:JF(1)},entered:{opacity:1,transform:"none"}},jD=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_Q=P.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:c,onEntered:u,onEntering:f,onExit:h,onExited:p,onExiting:g,style:v,timeout:y="auto",TransitionComponent:S=Sz}=t,w=Ne(t,eye),b=P.useRef(),x=P.useRef(),E=Ln(),I=P.useRef(null),A=Tr(I,o.ref,n),k=F=>j=>{if(F){const V=I.current;j===void 0?F(V):F(V,j)}},O=k(f),D=k((F,j)=>{ZK(F);const{duration:V,delay:W,easing:K}=Fg({style:v,timeout:y,easing:s},{mode:"enter"});let X;y==="auto"?(X=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=X):X=V,F.style.transition=[E.transitions.create("opacity",{duration:X,delay:W}),E.transitions.create("transform",{duration:jD?X:X*.666,delay:W,easing:K})].join(","),c&&c(F,j)}),N=k(u),H=k(g),G=k(F=>{const{duration:j,delay:V,easing:W}=Fg({style:v,timeout:y,easing:s},{mode:"exit"});let K;y==="auto"?(K=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=K):K=j,F.style.transition=[E.transitions.create("opacity",{duration:K,delay:V}),E.transitions.create("transform",{duration:jD?K:K*.666,delay:jD?V:V||K*.333,easing:W})].join(","),F.style.opacity=0,F.style.transform=JF(.75),h&&h(F)}),z=k(p),L=F=>{y==="auto"&&(b.current=setTimeout(F,x.current||0)),r&&r(I.current,F)};return P.useEffect(()=>()=>{clearTimeout(b.current)},[]),C.jsx(S,$({appear:i,in:a,nodeRef:I,onEnter:D,onEntered:N,onEntering:O,onExit:G,onExited:z,onExiting:H,addEndListener:L,timeout:y==="auto"?null:y},w,{children:(F,j)=>P.cloneElement(o,$({style:$({opacity:0,transform:JF(.75),visibility:F==="exited"&&!a?"hidden":void 0},tye[F],v,o.props.style),ref:A},j))}))});_Q.muiSupportAuto=!0;const gC=_Q;function nye(e,t,n,r,i){const[o,s]=P.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return jo(()=>{let a=!0;if(!n)return;const c=n(e),u=()=>{a&&s(c.matches)};return u(),c.addListener(u),()=>{a=!1,c.removeListener(u)}},[e,n]),o}const SQ=$E["useSyncExternalStore"];function rye(e,t,n,r,i){const o=P.useCallback(()=>t,[t]),s=P.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r,i,n]),[a,c]=P.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,n,e]);return SQ(c,a,s)}function iye(e,t={}){const n=tk(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=HX({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(SQ!==void 0?rye:nye)(c,i,o,s,a)}const oye=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],sye=e=>{const{classes:t,disableUnderline:n}=e,i=At({root:["root",!n&&"underline"],input:["input"]},kme,t);return $({},t,i)},aye=Ce(Dk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Mk(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ab.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ab.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ab.disabled}, .${Ab.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ab.disabled}:before`]:{borderBottomStyle:"dotted"}})}),lye=Ce(Nk,{name:"MuiInput",slot:"Input",overridesResolver:Lk})({}),EQ=P.forwardRef(function(t,n){var r,i,o,s;const a=Rt({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:f,fullWidth:h=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:S="text"}=a,w=Ne(a,oye),b=sye(a),E={root:{ownerState:{disableUnderline:c}}},I=v??f?ts(v??f,E):E,A=(r=(i=y.root)!=null?i:u.Root)!=null?r:aye,k=(o=(s=y.input)!=null?s:u.Input)!=null?o:lye;return C.jsx(Bk,$({slots:{root:A,input:k},slotProps:I,fullWidth:h,inputComponent:p,multiline:g,ref:n,type:S},w,{classes:b}))});EQ.muiName="Input";const CQ=EQ;function cye(e){return Ct("MuiInputLabel",e)}It("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const uye=["disableAnimation","margin","shrink","variant","className"],dye=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=e,c={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${Le(r)}`,s],asterisk:[a&&"asterisk"]},u=At(c,cye,t);return $({},t,u)},fye=Ce(Zve,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$x.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),hye=P.forwardRef(function(t,n){const r=Rt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:s}=r,a=Ne(r,uye),c=gf();let u=o;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const f=Jp({props:r,muiFormControl:c,states:["size","variant","required"]}),h=$({},r,{disableAnimation:i,formControl:c,shrink:u,size:f.size,variant:f.variant,required:f.required}),p=dye(h);return C.jsx(fye,$({"data-shrink":u,ownerState:h,ref:n,className:Ue(p.root,s)},a,{classes:p}))}),pye=hye;function mye(e){return Ct("MuiLinearProgress",e)}It("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const gye=["className","color","value","valueBuffer","variant"];let _v=e=>e,uH,dH,fH,hH,pH,mH;const ZF=4,vye=df(uH||(uH=_v` + `),qge)),Jge=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:c,thickness:u=3.6,value:f=0,variant:h="indeterminate"}=r,p=Ne(r,Gge),g=$({},r,{color:o,disableShrink:s,size:a,thickness:u,value:f,variant:h}),v=Xge(g),y={},S={},w={};if(h==="determinate"){const b=2*Math.PI*((id-u)/2);y.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return C.jsx(Yge,$({className:Ue(v.root,i),style:$({width:a,height:a},S,c),ownerState:g,ref:n,role:"progressbar"},w,p,{children:C.jsx(Kge,{className:v.svg,ownerState:g,viewBox:`${id/2} ${id/2} ${id} ${id}`,children:C.jsx(Qge,{className:v.circle,style:y,ownerState:g,cx:id,cy:id,r:(id-u)/2,fill:"none",strokeWidth:u})})}))}),Sw=Jge,Zge=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),eve=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),tve=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var c;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(c=a.palette)==null?void 0:c.mode}});let i=$({html:Zge(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},eve(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function nve(e){const t=Rt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(R.Fragment,{children:[C.jsx(xQ,{styles:i=>tve(i,r)}),n]})}function rve(e){return Ct("MuiModal",e)}It("MuiModal",["root","hidden","backdrop"]);const ive=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ove=e=>{const{open:t,exited:n,classes:r}=e;return At({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},rve,r)},sve=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ave=Ce(Dz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lve=R.forwardRef(function(t,n){var r,i,o,s,a,c;const u=Rt({name:"MuiModal",props:t}),{BackdropComponent:f=ave,BackdropProps:h,className:p,closeAfterTransition:g=!1,children:v,container:y,component:S,components:w={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:I=!1,disablePortal:A=!1,disableRestoreFocus:k=!1,disableScrollLock:O=!1,hideBackdrop:D=!1,keepMounted:N=!1,onBackdropClick:H,open:G,slotProps:z,slots:L}=u,F=Ne(u,ive),j=$({},u,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:E,disableEscapeKeyDown:I,disablePortal:A,disableRestoreFocus:k,disableScrollLock:O,hideBackdrop:D,keepMounted:N}),{getRootProps:V,getBackdropProps:W,getTransitionProps:K,portalRef:X,isTopModal:Q,exited:ie,hasTransition:ce}=sme($({},j,{rootRef:n})),ue=$({},j,{exited:ie}),se=ove(ue),J={};if(v.props.tabIndex===void 0&&(J.tabIndex="-1"),ce){const{onEnter:xe,onExited:me}=K();J.onEnter=xe,J.onExited=me}const ae=(r=(i=L==null?void 0:L.root)!=null?i:w.Root)!=null?r:sve,le=(o=(s=L==null?void 0:L.backdrop)!=null?s:w.Backdrop)!=null?o:f,he=(a=z==null?void 0:z.root)!=null?a:b.root,pe=(c=z==null?void 0:z.backdrop)!=null?c:b.backdrop,ve=ti({elementType:ae,externalSlotProps:he,externalForwardedProps:F,getSlotProps:V,additionalProps:{ref:n,as:S},ownerState:ue,className:Ue(p,he==null?void 0:he.className,se==null?void 0:se.root,!ue.open&&ue.exited&&(se==null?void 0:se.hidden))}),ye=ti({elementType:le,externalSlotProps:pe,additionalProps:h,getSlotProps:xe=>W($({},xe,{onClick:me=>{H&&H(me),xe!=null&&xe.onClick&&xe.onClick(me)}})),className:Ue(pe==null?void 0:pe.className,h==null?void 0:h.className,se==null?void 0:se.backdrop),ownerState:ue});return!N&&!G&&(!ce||ie)?null:C.jsx(gQ,{ref:X,container:y,disablePortal:A,children:C.jsxs(ae,$({},ve,{children:[!D&&f?C.jsx(le,$({},ye)):null,C.jsx(Dhe,{disableEnforceFocus:E,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:Q,open:G,children:R.cloneElement(v,J)})]}))})}),SQ=lve;function cve(e){return Ct("MuiDialog",e)}const uve=It("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),jD=uve,dve=R.createContext({}),fve=dve,hve=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],pve=Ce(Dz,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),mve=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Le(n)}`],paper:["paper",`paperScroll${Le(n)}`,`paperWidth${Le(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return At(s,cve,t)},gve=Ce(SQ,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),vve=Ce("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Le(n.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),yve=Ce(Sv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Le(n.scroll)}`],t[`paperWidth${Le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${jD.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${jD.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${jD.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),bve=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDialog"}),i=Dn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:S,onClose:w,open:b,PaperComponent:x=Sv,PaperProps:E={},scroll:I="paper",TransitionComponent:A=jp,transitionDuration:k=o,TransitionProps:O}=r,D=Ne(r,hve),N=$({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:v,maxWidth:y,scroll:I}),H=mve(N),G=R.useRef(),z=V=>{G.current=V.target===V.currentTarget},L=V=>{G.current&&(G.current=null,S&&S(V),w&&w(V,"backdropClick"))},F=d4(a),j=R.useMemo(()=>({titleId:F}),[F]);return C.jsx(gve,$({className:Ue(H.root,h),closeAfterTransition:!0,components:{Backdrop:pve},componentsProps:{backdrop:$({transitionDuration:k,as:c},u)},disableEscapeKeyDown:p,onClose:w,open:b,ref:n,onClick:L,ownerState:N},D,{children:C.jsx(A,$({appear:!0,in:b,timeout:k,role:"presentation"},O,{children:C.jsx(vve,{className:Ue(H.container),onMouseDown:z,ownerState:N,children:C.jsx(yve,$({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},E,{className:Ue(H.paper,E.className),ownerState:N,children:C.jsx(fve.Provider,{value:j,children:f})}))})}))}))}),xve=bve;function wve(e){return Ct("MuiDivider",e)}const _ve=It("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dH=_ve,Sve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Eve=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:c}=e;return At({root:["root",t&&"absolute",c,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},wve,r)},Cve=Ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:kn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Tve=Ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),EQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:a=o?"div":"hr",flexItem:c=!1,light:u=!1,orientation:f="horizontal",role:h=a!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,v=Ne(r,Sve),y=$({},r,{absolute:i,component:a,flexItem:c,light:u,orientation:f,role:h,textAlign:p,variant:g}),S=Eve(y);return C.jsx(Cve,$({as:a,className:Ue(S.root,s),role:h,ref:n,ownerState:y},v,{children:o?C.jsx(Tve,{className:S.wrapper,ownerState:y,children:o}):null}))});EQ.muiSkipListHighlight=!0;const Ku=EQ,kve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ave=e=>{const{classes:t,disableUnderline:n}=e,i=At({root:["root",!n&&"underline"],input:["input"]},$me,t);return $({},t,i)},Ive=Ce(Nk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Lk(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${zh.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${zh.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zh.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zh.disabled}, .${zh.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zh.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Rve=Ce(Bk,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dk})(({theme:e,ownerState:t})=>$({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),CQ=R.forwardRef(function(t,n){var r,i,o,s;const a=Rt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:v={},type:y="text"}=a,S=Ne(a,kve),w=$({},a,{fullWidth:f,inputComponent:h,multiline:p,type:y}),b=Ave(a),x={root:{ownerState:w},input:{ownerState:w}},E=g??u?ns(g??u,x):x,I=(r=(i=v.root)!=null?i:c.Root)!=null?r:Ive,A=(o=(s=v.input)!=null?s:c.Input)!=null?o:Rve;return C.jsx($k,$({slots:{root:I,input:A},componentsProps:E,fullWidth:f,inputComponent:h,multiline:p,ref:n,type:y},S,{classes:b}))});CQ.muiName="Input";const TQ=CQ;function Pve(e){return Ct("MuiFormControl",e)}It("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Ove=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mve=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Le(n)}`,r&&"fullWidth"]};return At(i,Pve,t)},Lve=Ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${Le(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Dve=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:a="div",disabled:c=!1,error:u=!1,focused:f,fullWidth:h=!1,hiddenLabel:p=!1,margin:g="none",required:v=!1,size:y="medium",variant:S="outlined"}=r,w=Ne(r,Ove),b=$({},r,{color:s,component:a,disabled:c,error:u,fullWidth:h,hiddenLabel:p,margin:g,required:v,size:y,variant:S}),x=Mve(b),[E,I]=R.useState(()=>{let z=!1;return i&&R.Children.forEach(i,L=>{if(!KS(L,["Input","Select"]))return;const F=KS(L,["Select"])?L.props.input:L;F&&kme(F.props)&&(z=!0)}),z}),[A,k]=R.useState(()=>{let z=!1;return i&&R.Children.forEach(i,L=>{KS(L,["Input","Select"])&&(vC(L.props,!0)||vC(L.props.inputProps,!0))&&(z=!0)}),z}),[O,D]=R.useState(!1);c&&O&&D(!1);const N=f!==void 0&&!c?f:O;let H;const G=R.useMemo(()=>({adornedStart:E,setAdornedStart:I,color:s,disabled:c,error:u,filled:A,focused:N,fullWidth:h,hiddenLabel:p,size:y,onBlur:()=>{D(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{D(!0)},registerEffect:H,required:v,variant:S}),[E,s,c,u,A,N,h,p,H,v,y,S]);return C.jsx(Lz.Provider,{value:G,children:C.jsx(Lve,$({as:a,ownerState:b,className:Ue(x.root,o),ref:n},w,{children:i}))})}),Nve=Dve,Bve=Oce({createStyledComponent:Ce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Rt({props:e,name:"MuiStack"})}),Up=Bve;function $ve(e){return Ct("MuiFormControlLabel",e)}const Fve=It("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sx=Fve,zve=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],jve=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${Le(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return At(s,$ve,t)},Uve=Ce("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sx.label}`]:t.label},t.root,t[`labelPlacement${Le(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sx.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${sx.label}`]:{[`&.${sx.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Hve=Ce("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sx.error}`]:{color:(e.vars||e).palette.error.main}})),Wve=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:u,disableTypography:f,label:h,labelPlacement:p="end",required:g,slotProps:v={}}=o,y=Ne(o,zve),S=gf(),w=(r=u??c.props.disabled)!=null?r:S==null?void 0:S.disabled,b=g??c.props.required,x={disabled:w,required:b};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof c.props[D]>"u"&&typeof o[D]<"u"&&(x[D]=o[D])});const E=tm({props:o,muiFormControl:S,states:["error"]}),I=$({},o,{disabled:w,labelPlacement:p,required:b,error:E.error}),A=jve(I),k=(i=v.typography)!=null?i:a.typography;let O=h;return O!=null&&O.type!==jt&&!f&&(O=C.jsx(jt,$({component:"span"},k,{className:Ue(A.label,k==null?void 0:k.className),children:O}))),C.jsxs(Uve,$({className:Ue(A.root,s),ownerState:I,ref:n},y,{children:[R.cloneElement(c,x),b?C.jsxs(Up,{direction:"row",alignItems:"center",children:[O,C.jsxs(Hve,{ownerState:I,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):O]}))}),Gve=Wve;function Vve(e){return Ct("MuiFormHelperText",e)}const qve=It("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),fH=qve;var hH;const Xve=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Yve=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:a,required:c}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${Le(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return At(u,Vve,t)},Kve=Ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${fH.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fH.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Qve=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p"}=r,a=Ne(r,Xve),c=gf(),u=tm({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=$({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=Yve(f);return C.jsx(Kve,$({as:s,ownerState:f,className:Ue(h.root,o),ref:n},a,{children:i===" "?hH||(hH=C.jsx("span",{className:"notranslate",children:"​"})):i}))}),Jve=Qve;function Zve(e){return Ct("MuiFormLabel",e)}const eye=It("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Nx=eye,tye=["children","className","color","component","disabled","error","filled","focused","required"],nye=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=e,c={root:["root",`color${Le(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return At(c,Zve,t)},rye=Ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Nx.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Nx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nx.error}`]:{color:(e.vars||e).palette.error.main}})),iye=Ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Nx.error}`]:{color:(e.vars||e).palette.error.main}})),oye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:s="label"}=r,a=Ne(r,tye),c=gf(),u=tm({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=$({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=nye(f);return C.jsxs(rye,$({as:s,ownerState:f,className:Ue(h.root,o),ref:n},a,{children:[i,u.required&&C.jsxs(iye,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),sye=oye,aye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ZF(e){return`scale(${e}, ${e**2})`}const lye={entering:{opacity:1,transform:ZF(1)},entered:{opacity:1,transform:"none"}},UD=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),kQ=R.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:c,onEntered:u,onEntering:f,onExit:h,onExited:p,onExiting:g,style:v,timeout:y="auto",TransitionComponent:S=Ez}=t,w=Ne(t,aye),b=R.useRef(),x=R.useRef(),E=Dn(),I=R.useRef(null),A=Tr(I,o.ref,n),k=F=>j=>{if(F){const V=I.current;j===void 0?F(V):F(V,j)}},O=k(f),D=k((F,j)=>{oQ(F);const{duration:V,delay:W,easing:K}=Ug({style:v,timeout:y,easing:s},{mode:"enter"});let X;y==="auto"?(X=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=X):X=V,F.style.transition=[E.transitions.create("opacity",{duration:X,delay:W}),E.transitions.create("transform",{duration:UD?X:X*.666,delay:W,easing:K})].join(","),c&&c(F,j)}),N=k(u),H=k(g),G=k(F=>{const{duration:j,delay:V,easing:W}=Ug({style:v,timeout:y,easing:s},{mode:"exit"});let K;y==="auto"?(K=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=K):K=j,F.style.transition=[E.transitions.create("opacity",{duration:K,delay:V}),E.transitions.create("transform",{duration:UD?K:K*.666,delay:UD?V:V||K*.333,easing:W})].join(","),F.style.opacity=0,F.style.transform=ZF(.75),h&&h(F)}),z=k(p),L=F=>{y==="auto"&&(b.current=setTimeout(F,x.current||0)),r&&r(I.current,F)};return R.useEffect(()=>()=>{clearTimeout(b.current)},[]),C.jsx(S,$({appear:i,in:a,nodeRef:I,onEnter:D,onEntered:N,onEntering:O,onExit:G,onExited:z,onExiting:H,addEndListener:L,timeout:y==="auto"?null:y},w,{children:(F,j)=>R.cloneElement(o,$({style:$({opacity:0,transform:ZF(.75),visibility:F==="exited"&&!a?"hidden":void 0},lye[F],v,o.props.style),ref:A},j))}))});kQ.muiSupportAuto=!0;const yC=kQ;function cye(e,t,n,r,i){const[o,s]=R.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return jo(()=>{let a=!0;if(!n)return;const c=n(e),u=()=>{a&&s(c.matches)};return u(),c.addListener(u),()=>{a=!1,c.removeListener(u)}},[e,n]),o}const AQ=zE["useSyncExternalStore"];function uye(e,t,n,r,i){const o=R.useCallback(()=>t,[t]),s=R.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r,i,n]),[a,c]=R.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,n,e]);return AQ(c,a,s)}function dye(e,t={}){const n=nk(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=YX({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(AQ!==void 0?uye:cye)(c,i,o,s,a)}const fye=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],hye=e=>{const{classes:t,disableUnderline:n}=e,i=At({root:["root",!n&&"underline"],input:["input"]},Lme,t);return $({},t,i)},pye=Ce(Nk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Lk(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${kb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kb.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kb.disabled}, .${kb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${kb.disabled}:before`]:{borderBottomStyle:"dotted"}})}),mye=Ce(Bk,{name:"MuiInput",slot:"Input",overridesResolver:Dk})({}),IQ=R.forwardRef(function(t,n){var r,i,o,s;const a=Rt({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:f,fullWidth:h=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:S="text"}=a,w=Ne(a,fye),b=hye(a),E={root:{ownerState:{disableUnderline:c}}},I=v??f?ns(v??f,E):E,A=(r=(i=y.root)!=null?i:u.Root)!=null?r:pye,k=(o=(s=y.input)!=null?s:u.Input)!=null?o:mye;return C.jsx($k,$({slots:{root:A,input:k},slotProps:I,fullWidth:h,inputComponent:p,multiline:g,ref:n,type:S},w,{classes:b}))});IQ.muiName="Input";const RQ=IQ;function gye(e){return Ct("MuiInputLabel",e)}It("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const vye=["disableAnimation","margin","shrink","variant","className"],yye=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=e,c={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${Le(r)}`,s],asterisk:[a&&"asterisk"]},u=At(c,gye,t);return $({},t,u)},bye=Ce(sye,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nx.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),xye=R.forwardRef(function(t,n){const r=Rt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:s}=r,a=Ne(r,vye),c=gf();let u=o;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const f=tm({props:r,muiFormControl:c,states:["size","variant","required"]}),h=$({},r,{disableAnimation:i,formControl:c,shrink:u,size:f.size,variant:f.variant,required:f.required}),p=yye(h);return C.jsx(bye,$({"data-shrink":u,ownerState:h,ref:n,className:Ue(p.root,s)},a,{classes:p}))}),wye=xye;function _ye(e){return Ct("MuiLinearProgress",e)}It("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Sye=["className","color","value","valueBuffer","variant"];let Ev=e=>e,pH,mH,gH,vH,yH,bH;const e3=4,Eye=df(pH||(pH=Ev` 0% { left: -35%; right: 100%; @@ -174,7 +174,7 @@ Error generating stack: `+o.message+` left: 100%; right: -90%; } -`)),yye=df(dH||(dH=_v` +`)),Cye=df(mH||(mH=Ev` 0% { left: -200%; right: 100%; @@ -189,7 +189,7 @@ Error generating stack: `+o.message+` left: 107%; right: -8%; } -`)),bye=df(fH||(fH=_v` +`)),Tye=df(gH||(gH=Ev` 0% { opacity: 1; background-position: 0 -23px; @@ -204,41 +204,41 @@ Error generating stack: `+o.message+` opacity: 1; background-position: -200px -23px; } -`)),xye=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${Le(r)}`,n],dashed:["dashed",`dashedColor${Le(r)}`],bar1:["bar",`barColor${Le(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Le(r)}`,n==="buffer"&&`color${Le(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return At(i,mye,t)},Dz=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?vv(e.palette[t].main,.62):gv(e.palette[t].main,.5),wye=Ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Le(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>$({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Dz(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),_ye=Ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Le(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=Dz(t,e.color);return $({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},mv(hH||(hH=_v` +`)),kye=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${Le(r)}`,n],dashed:["dashed",`dashedColor${Le(r)}`],bar1:["bar",`barColor${Le(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Le(r)}`,n==="buffer"&&`color${Le(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return At(i,_ye,t)},Bz=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?bv(e.palette[t].main,.62):yv(e.palette[t].main,.5),Aye=Ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Le(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>$({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Bz(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Iye=Ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Le(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=Bz(t,e.color);return $({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},vv(vH||(vH=Ev` animation: ${0} 3s infinite linear; - `),bye)),Sye=Ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Le(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${ZF}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${ZF}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&mv(pH||(pH=_v` + `),Tye)),Rye=Ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Le(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${e3}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${e3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&vv(yH||(yH=Ev` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),vye)),Eye=Ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Le(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:Dz(t,e.color),transition:`transform .${ZF}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&mv(mH||(mH=_v` + `),Eye)),Pye=Ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Le(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:Bz(t,e.color),transition:`transform .${e3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&vv(bH||(bH=Ev` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),yye)),Cye=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,u=Ne(r,gye),f=$({},r,{color:o,variant:c}),h=xye(f),p=Ln(),g={},v={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=s-100;p.direction==="rtl"&&(y=-y),v.bar1.transform=`translateX(${y}%)`}if(c==="buffer"&&a!==void 0){let y=(a||0)-100;p.direction==="rtl"&&(y=-y),v.bar2.transform=`translateX(${y}%)`}return C.jsxs(wye,$({className:Ue(h.root,i),ownerState:f,role:"progressbar"},g,{ref:n},u,{children:[c==="buffer"?C.jsx(_ye,{className:h.dashed,ownerState:f}):null,C.jsx(Sye,{className:h.bar1,ownerState:f,style:v.bar1}),c==="determinate"?null:C.jsx(Eye,{className:h.bar2,ownerState:f,style:v.bar2})]}))}),Tye=Cye,kye=P.createContext({}),Ea=kye;function Aye(e){return Ct("MuiList",e)}It("MuiList",["root","padding","dense","subheader"]);const Iye=["children","className","component","dense","disablePadding","subheader"],Rye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return At({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Aye,t)},Pye=Ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Oye=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:u}=r,f=Ne(r,Iye),h=P.useMemo(()=>({dense:a}),[a]),p=$({},r,{component:s,dense:a,disablePadding:c}),g=Rye(p);return C.jsx(Ea.Provider,{value:h,children:C.jsxs(Pye,$({as:s,className:Ue(g.root,o),ref:n,ownerState:p},f,{children:[u,i]}))})}),Vg=Oye;function Mye(e){return Ct("MuiListItem",e)}const Lye=It("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Im=Lye;function Dye(e){return Ct("MuiListItemButton",e)}const Nye=It("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Rm=Nye,Bye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],$ye=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Fye=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,u=At({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Dye,n);return $({},n,u)},zye=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:$ye})(({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Rm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Rm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),jye=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:c=!1,disableGutters:u=!1,divider:f=!1,focusVisibleClassName:h,selected:p=!1,className:g}=r,v=Ne(r,Bye),y=P.useContext(Ea),S=P.useMemo(()=>({dense:c||y.dense||!1,alignItems:i,disableGutters:u}),[i,y.dense,c,u]),w=P.useRef(null);jo(()=>{o&&w.current&&w.current.focus()},[o]);const b=$({},r,{alignItems:i,dense:S.dense,disableGutters:u,divider:f,selected:p}),x=Fye(b),E=Tr(w,n);return C.jsx(Ea.Provider,{value:S,children:C.jsx(zye,$({ref:E,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:Ue(x.focusVisible,h),ownerState:b,className:Ue(x.root,g)},v,{classes:x,children:a}))})}),e3=jye;function Uye(e){return Ct("MuiListItemSecondaryAction",e)}It("MuiListItemSecondaryAction",["root","disableGutters"]);const Hye=["className"],Wye=e=>{const{disableGutters:t,classes:n}=e;return At({root:["root",t&&"disableGutters"]},Uye,n)},Gye=Ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),TQ=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ne(r,Hye),s=P.useContext(Ea),a=$({},r,{disableGutters:s.disableGutters}),c=Wye(a);return C.jsx(Gye,$({className:Ue(c.root,i),ownerState:a,ref:n},o))});TQ.muiName="ListItemSecondaryAction";const Vye=TQ,qye=["className"],Xye=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Yye=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Kye=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:u,selected:f}=e;return At({root:["root",i&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},Mye,r)},Qye=Ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:Yye})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Rm.root}`]:{paddingRight:48}},{[`&.${Im.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Im.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Im.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Im.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Im.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Jye=Ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Zye=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:s=!1,children:a,className:c,component:u,components:f={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:v=!1,disabled:y=!1,disableGutters:S=!1,disablePadding:w=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:E,selected:I=!1,slotProps:A={},slots:k={}}=r,O=Ne(r.ContainerProps,qye),D=Ne(r,Xye),N=P.useContext(Ea),H=P.useMemo(()=>({dense:v||N.dense||!1,alignItems:i,disableGutters:S}),[i,N.dense,v,S]),G=P.useRef(null);jo(()=>{o&&G.current&&G.current.focus()},[o]);const z=P.Children.toArray(a),L=z.length&&XS(z[z.length-1],["ListItemSecondaryAction"]),F=$({},r,{alignItems:i,autoFocus:o,button:s,dense:H.dense,disabled:y,disableGutters:S,disablePadding:w,divider:b,hasSecondaryAction:L,selected:I}),j=Kye(F),V=Tr(G,n),W=k.root||f.Root||Qye,K=A.root||h.root||{},X=$({className:Ue(j.root,K.className,c),disabled:y},D);let Q=u||"li";return s&&(X.component=u||"div",X.focusVisibleClassName=Ue(Im.focusVisible,x),Q=Yu),L?(Q=!X.component&&!u?"div":Q,p==="li"&&(Q==="li"?Q="div":X.component==="li"&&(X.component="div")),C.jsx(Ea.Provider,{value:H,children:C.jsxs(Jye,$({as:p,className:Ue(j.container,g),ref:V,ownerState:F},O,{children:[C.jsx(W,$({},K,!tc(W)&&{as:Q,ownerState:$({},F,K.ownerState)},X,{children:z})),z.pop()]}))})):C.jsx(Ea.Provider,{value:H,children:C.jsxs(W,$({},K,{as:Q,ref:V},!tc(W)&&{ownerState:$({},F,K.ownerState)},X,{children:[z,E&&C.jsx(Vye,{children:E})]}))})}),Fx=Zye;function e0e(e){return Ct("MuiListItemAvatar",e)}It("MuiListItemAvatar",["root","alignItemsFlexStart"]);const t0e=["className"],n0e=e=>{const{alignItems:t,classes:n}=e;return At({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},e0e,n)},r0e=Ce("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>$({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),i0e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ne(r,t0e),s=P.useContext(Ea),a=$({},r,{alignItems:s.alignItems}),c=n0e(a);return C.jsx(r0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))}),o0e=i0e;function s0e(e){return Ct("MuiListItemIcon",e)}const a0e=It("MuiListItemIcon",["root","alignItemsFlexStart"]),gH=a0e,l0e=["className"],c0e=e=>{const{alignItems:t,classes:n}=e;return At({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},s0e,n)},u0e=Ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),d0e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ne(r,l0e),s=P.useContext(Ea),a=$({},r,{alignItems:s.alignItems}),c=c0e(a);return C.jsx(u0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))}),Wd=d0e;function f0e(e){return Ct("MuiListItemText",e)}const h0e=It("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),vC=h0e,p0e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],m0e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return At({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},f0e,t)},g0e=Ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vC.primary}`]:t.primary},{[`& .${vC.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),v0e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:h}=r,p=Ne(r,p0e),{dense:g}=P.useContext(Ea);let v=c??i,y=f;const S=$({},r,{disableTypography:s,inset:a,primary:!!v,secondary:!!y,dense:g}),w=m0e(S);return v!=null&&v.type!==Xt&&!s&&(v=C.jsx(Xt,$({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),y!=null&&y.type!==Xt&&!s&&(y=C.jsx(Xt,$({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},h,{children:y}))),C.jsxs(g0e,$({className:Ue(w.root,o),ownerState:S,ref:n},p,{children:[v,y]}))}),rc=v0e,y0e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function UD(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function vH(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function kQ(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ib(e,t,n,r,i,o){let s=!1,a=i(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!kQ(a,o)||c)a=i(e,a,n);else return a.focus(),!0}return!1}const b0e=P.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:f,variant:h="selectedMenu"}=t,p=Ne(t,y0e),g=P.useRef(null),v=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jo(()=>{i&&g.current.focus()},[i]),P.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const I=!g.current.style.width;if(x.clientHeight{const E=g.current,I=x.key,A=Fr(E).activeElement;if(I==="ArrowDown")x.preventDefault(),Ib(E,A,u,c,UD);else if(I==="ArrowUp")x.preventDefault(),Ib(E,A,u,c,vH);else if(I==="Home")x.preventDefault(),Ib(E,null,u,c,UD);else if(I==="End")x.preventDefault(),Ib(E,null,u,c,vH);else if(I.length===1){const k=v.current,O=I.toLowerCase(),D=performance.now();k.keys.length>0&&(D-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&O!==k.keys[0]&&(k.repeating=!1)),k.lastTime=D,k.keys.push(O);const N=A&&!k.repeating&&kQ(A,k);k.previousKeyMatched&&(N||Ib(E,A,!1,c,UD,k))?x.preventDefault():k.previousKeyMatched=!1}f&&f(x)},S=Tr(g,n);let w=-1;P.Children.forEach(s,(x,E)=>{if(!P.isValidElement(x)){w===E&&(w+=1,w>=s.length&&(w=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||w===-1)&&(w=E),w===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const b=P.Children.map(s,(x,E)=>{if(E===w){const I={};return o&&(I.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),P.cloneElement(x,I)}return x});return C.jsx(Vg,$({role:"menu",ref:S,className:a,onKeyDown:y,tabIndex:i?0:-1},p,{children:b}))}),zk=b0e;function x0e(e){return Ct("MuiPopover",e)}It("MuiPopover",["root","paper"]);const w0e=["onEntering"],_0e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],S0e=["slotProps"];function yH(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function bH(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function xH(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function HD(e){return typeof e=="function"?e():e}const E0e=e=>{const{classes:t}=e;return At({root:["root"],paper:["paper"]},x0e,t)},C0e=Ce(yQ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AQ=Ce(wv,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),T0e=P.forwardRef(function(t,n){var r,i,o;const s=Rt({props:t,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:p,className:g,container:v,elevation:y=8,marginThreshold:S=16,open:w,PaperProps:b={},slots:x,slotProps:E,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:A=gC,transitionDuration:k="auto",TransitionProps:{onEntering:O}={},disableScrollLock:D=!1}=s,N=Ne(s.TransitionProps,w0e),H=Ne(s,_0e),G=(r=E==null?void 0:E.paper)!=null?r:b,z=P.useRef(),L=Tr(z,G.ref),F=$({},s,{anchorOrigin:u,anchorReference:h,elevation:y,marginThreshold:S,externalPaperSlotProps:G,transformOrigin:I,TransitionComponent:A,transitionDuration:k,TransitionProps:N}),j=E0e(F),V=P.useCallback(()=>{if(h==="anchorPosition")return f;const xe=HD(c),be=(xe&&xe.nodeType===1?xe:Fr(z.current).body).getBoundingClientRect();return{top:be.top+yH(be,u.vertical),left:be.left+bH(be,u.horizontal)}},[c,u.horizontal,u.vertical,f,h]),W=P.useCallback(xe=>({vertical:yH(xe,I.vertical),horizontal:bH(xe,I.horizontal)}),[I.horizontal,I.vertical]),K=P.useCallback(xe=>{const me={width:xe.offsetWidth,height:xe.offsetHeight},be=W(me);if(h==="none")return{top:null,left:null,transformOrigin:xH(be)};const Ze=V();let Xe=Ze.top-be.vertical,ct=Ze.left-be.horizontal;const Bt=Xe+me.height,Pe=ct+me.width,ze=Du(HD(c)),st=ze.innerHeight-S,gt=ze.innerWidth-S;if(S!==null&&Xest){const vt=Bt-st;Xe-=vt,be.vertical+=vt}if(S!==null&&ctgt){const vt=Pe-gt;ct-=vt,be.horizontal+=vt}return{top:`${Math.round(Xe)}px`,left:`${Math.round(ct)}px`,transformOrigin:xH(be)}},[c,h,V,W,S]),[X,Q]=P.useState(w),re=P.useCallback(()=>{const xe=z.current;if(!xe)return;const me=K(xe);me.top!==null&&(xe.style.top=me.top),me.left!==null&&(xe.style.left=me.left),xe.style.transformOrigin=me.transformOrigin,Q(!0)},[K]);P.useEffect(()=>(D&&window.addEventListener("scroll",re),()=>window.removeEventListener("scroll",re)),[c,D,re]);const ce=(xe,me)=>{O&&O(xe,me),re()},ue=()=>{Q(!1)};P.useEffect(()=>{w&&re()}),P.useImperativeHandle(a,()=>w?{updatePosition:()=>{re()}}:null,[w,re]),P.useEffect(()=>{if(!w)return;const xe=RT(()=>{re()}),me=Du(c);return me.addEventListener("resize",xe),()=>{xe.clear(),me.removeEventListener("resize",xe)}},[c,w,re]);let se=k;k==="auto"&&!A.muiSupportAuto&&(se=void 0);const J=v||(c?Fr(HD(c)).body:void 0),ae=(i=x==null?void 0:x.root)!=null?i:C0e,le=(o=x==null?void 0:x.paper)!=null?o:AQ,he=ti({elementType:le,externalSlotProps:$({},G,{style:X?G.style:$({},G.style,{opacity:0})}),additionalProps:{elevation:y,ref:L},ownerState:F,className:Ue(j.paper,G==null?void 0:G.className)}),pe=ti({elementType:ae,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:H,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:F,className:Ue(j.root,g)}),{slotProps:ve}=pe,ye=Ne(pe,S0e);return C.jsx(ae,$({},ye,!tc(ae)&&{slotProps:ve,disableScrollLock:D},{children:C.jsx(A,$({appear:!0,in:w,onEntering:ce,onExited:ue,timeout:se},N,{children:C.jsx(le,$({},he,{children:p}))}))}))}),k0e=T0e;function A0e(e){return Ct("MuiMenu",e)}It("MuiMenu",["root","paper","list"]);const I0e=["onEntering"],R0e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],P0e={vertical:"top",horizontal:"right"},O0e={vertical:"top",horizontal:"left"},M0e=e=>{const{classes:t}=e;return At({root:["root"],paper:["paper"],list:["list"]},A0e,t)},L0e=Ce(k0e,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D0e=Ce(AQ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),N0e=Ce(zk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),B0e=P.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:c,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:h,open:p,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:w="selectedMenu",slots:b={},slotProps:x={}}=o,E=Ne(o.TransitionProps,I0e),I=Ne(o,R0e),A=Ln(),k=A.direction==="rtl",O=$({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:f,onEntering:S,PaperProps:g,transitionDuration:y,TransitionProps:E,variant:w}),D=M0e(O),N=s&&!u&&p,H=P.useRef(null),G=(K,X)=>{H.current&&H.current.adjustStyleForScrollbar(K,A),S&&S(K,X)},z=K=>{K.key==="Tab"&&(K.preventDefault(),h&&h(K,"tabKeyDown"))};let L=-1;P.Children.map(a,(K,X)=>{P.isValidElement(K)&&(K.props.disabled||(w==="selectedMenu"&&K.props.selected||L===-1)&&(L=X))});const F=(r=b.paper)!=null?r:D0e,j=(i=x.paper)!=null?i:g,V=ti({elementType:b.root,externalSlotProps:x.root,ownerState:O,className:[D.root,c]}),W=ti({elementType:F,externalSlotProps:j,ownerState:O,className:D.paper});return C.jsx(L0e,$({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?P0e:O0e,slots:{paper:F,root:b.root},slotProps:{root:V,paper:W},open:p,ref:n,transitionDuration:y,TransitionProps:$({onEntering:G},E),ownerState:O},I,{classes:v,children:C.jsx(N0e,$({onKeyDown:z,actions:H,autoFocus:s&&(L===-1||u),autoFocusItem:N,variant:w},f,{className:Ue(D.list,f.className),children:a}))}))}),Zp=B0e;function $0e(e){return Ct("MuiMenuItem",e)}const F0e=It("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Rb=F0e,z0e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],j0e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},U0e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,c=At({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},$0e,s);return $({},s,c)},H0e=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:j0e})(({theme:e,ownerState:t})=>$({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Rb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Rb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aH.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aH.inset}`]:{marginLeft:52},[`& .${vC.root}`]:{marginTop:0,marginBottom:0},[`& .${vC.inset}`]:{paddingLeft:36},[`& .${gH.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gH.root} svg`]:{fontSize:"1.25rem"}}))),W0e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:h,className:p}=r,g=Ne(r,z0e),v=P.useContext(Ea),y=P.useMemo(()=>({dense:s||v.dense||!1,disableGutters:c}),[v.dense,s,c]),S=P.useRef(null);jo(()=>{i&&S.current&&S.current.focus()},[i]);const w=$({},r,{dense:y.dense,divider:a,disableGutters:c}),b=U0e(r),x=Tr(S,n);let E;return r.disabled||(E=h!==void 0?h:-1),C.jsx(Ea.Provider,{value:y,children:C.jsx(H0e,$({ref:x,role:f,tabIndex:E,component:o,focusVisibleClassName:Ue(b.focusVisible,u),className:Ue(b.root,p)},g,{ownerState:w,classes:b}))})}),Ru=W0e;function G0e(e){return Ct("MuiNativeSelect",e)}const V0e=It("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Nz=V0e,q0e=["className","disabled","error","IconComponent","inputRef","variant"],X0e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Le(n)}`,o&&"iconOpen",r&&"disabled"]};return At(a,G0e,t)},IQ=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Nz.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Y0e=Ce("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ma,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Nz.multiple}`]:t.multiple}]}})(IQ),RQ=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Nz.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),K0e=Ce("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})(RQ),Q0e=P.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:s,inputRef:a,variant:c="standard"}=t,u=Ne(t,q0e),f=$({},t,{disabled:i,variant:c,error:o}),h=X0e(f);return C.jsxs(P.Fragment,{children:[C.jsx(Y0e,$({ownerState:f,className:Ue(h.select,r),disabled:i,ref:a||n},u)),t.multiple?null:C.jsx(K0e,{as:s,ownerState:f,className:h.icon})]})}),J0e=Q0e;var wH;const Z0e=["children","classes","className","label","notched"],ebe=Ce("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),tbe=Ce("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function nbe(e){const{className:t,label:n,notched:r}=e,i=Ne(e,Z0e),o=n!=null&&n!=="",s=$({},e,{notched:r,withLabel:o});return C.jsx(ebe,$({"aria-hidden":!0,className:t,ownerState:s},i,{children:C.jsx(tbe,{ownerState:s,children:o?C.jsx("span",{children:n}):wH||(wH=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const rbe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ibe=e=>{const{classes:t}=e,r=At({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ime,t);return $({},t,r)},obe=Ce(Dk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${id.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${id.focused} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${id.error} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${id.disabled} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),sbe=Ce(nbe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),abe=Ce(Nk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Lk})(({theme:e,ownerState:t})=>$({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),PQ=P.forwardRef(function(t,n){var r,i,o,s,a;const c=Rt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:h="input",label:p,multiline:g=!1,notched:v,slots:y={},type:S="text"}=c,w=Ne(c,rbe),b=ibe(c),x=gf(),E=Jp({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=$({},c,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:g,size:E.size,type:S}),A=(r=(i=y.root)!=null?i:u.Root)!=null?r:obe,k=(o=(s=y.input)!=null?s:u.Input)!=null?o:abe;return C.jsx(Bk,$({slots:{root:A,input:k},renderSuffix:O=>C.jsx(sbe,{ownerState:I,className:b.notchedOutline,label:p!=null&&p!==""&&E.required?a||(a=C.jsxs(P.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:f,inputComponent:h,multiline:g,ref:n,type:S},w,{classes:$({},b,{notchedOutline:null})}))});PQ.muiName="Input";const OQ=PQ;function lbe(e){return Ct("MuiSelect",e)}const cbe=It("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Pb=cbe;var _H;const ube=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dbe=Ce("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Pb.select}`]:t.select},{[`&.${Pb.select}`]:t[n.variant]},{[`&.${Pb.error}`]:t.error},{[`&.${Pb.multiple}`]:t.multiple}]}})(IQ,{[`&.${Pb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fbe=Ce("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})(RQ),hbe=Ce("input",{shouldForwardProp:e=>R4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function SH(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function pbe(e){return e==null||typeof e=="string"&&!e.trim()}const mbe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Le(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return At(a,lbe,t)},gbe=P.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:a,children:c,className:u,defaultOpen:f,defaultValue:h,disabled:p,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:S,labelId:w,MenuProps:b={},multiple:x,name:E,onBlur:I,onChange:A,onClose:k,onFocus:O,onOpen:D,open:N,readOnly:H,renderValue:G,SelectDisplayProps:z={},tabIndex:L,value:F,variant:j="standard"}=t,V=Ne(t,ube),[W,K]=i1({controlled:F,default:h,name:"Select"}),[X,Q]=i1({controlled:N,default:f,name:"Select"}),re=P.useRef(null),ce=P.useRef(null),[ue,se]=P.useState(null),{current:J}=P.useRef(N!=null),[ae,le]=P.useState(),he=Tr(n,S),pe=P.useCallback(Ie=>{ce.current=Ie,Ie&&se(Ie)},[]),ve=ue==null?void 0:ue.parentNode;P.useImperativeHandle(he,()=>({focus:()=>{ce.current.focus()},node:re.current,value:W}),[W]),P.useEffect(()=>{f&&X&&ue&&!J&&(le(a?null:ve.clientWidth),ce.current.focus())},[ue,a]),P.useEffect(()=>{s&&ce.current.focus()},[s]),P.useEffect(()=>{if(!w)return;const Ie=Fr(ce.current).getElementById(w);if(Ie){const at=()=>{getSelection().isCollapsed&&ce.current.focus()};return Ie.addEventListener("click",at),()=>{Ie.removeEventListener("click",at)}}},[w]);const ye=(Ie,at)=>{Ie?D&&D(at):k&&k(at),J||(le(a?null:ve.clientWidth),Q(Ie))},xe=Ie=>{Ie.button===0&&(Ie.preventDefault(),ce.current.focus(),ye(!0,Ie))},me=Ie=>{ye(!1,Ie)},be=P.Children.toArray(c),Ze=Ie=>{const at=be.find($t=>$t.props.value===Ie.target.value);at!==void 0&&(K(at.props.value),A&&A(Ie,at))},Xe=Ie=>at=>{let $t;if(at.currentTarget.hasAttribute("tabindex")){if(x){$t=Array.isArray(W)?W.slice():[];const Re=W.indexOf(Ie.props.value);Re===-1?$t.push(Ie.props.value):$t.splice(Re,1)}else $t=Ie.props.value;if(Ie.props.onClick&&Ie.props.onClick(at),W!==$t&&(K($t),A)){const Re=at.nativeEvent||at,He=new Re.constructor(Re.type,Re);Object.defineProperty(He,"target",{writable:!0,value:{value:$t,name:E}}),A(He,Ie)}x||ye(!1,at)}},ct=Ie=>{H||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ie.key)!==-1&&(Ie.preventDefault(),ye(!0,Ie))},Bt=ue!==null&&X,Pe=Ie=>{!Bt&&I&&(Object.defineProperty(Ie,"target",{writable:!0,value:{value:W,name:E}}),I(Ie))};delete V["aria-invalid"];let ze,st;const gt=[];let vt=!1;(mC({value:W})||g)&&(G?ze=G(W):vt=!0);const _e=be.map(Ie=>{if(!P.isValidElement(Ie))return null;let at;if(x){if(!Array.isArray(W))throw new Error(Jd(2));at=W.some($t=>SH($t,Ie.props.value)),at&&vt&>.push(Ie.props.children)}else at=SH(W,Ie.props.value),at&&vt&&(st=Ie.props.children);return P.cloneElement(Ie,{"aria-selected":at?"true":"false",onClick:Xe(Ie),onKeyUp:$t=>{$t.key===" "&&$t.preventDefault(),Ie.props.onKeyUp&&Ie.props.onKeyUp($t)},role:"option",selected:at,value:void 0,"data-value":Ie.props.value})});vt&&(x?gt.length===0?ze=null:ze=gt.reduce((Ie,at,$t)=>(Ie.push(at),$t{const{classes:t}=e;return t},Bz={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ma(e)&&e!=="variant",slot:"Root"},wbe=Ce(CQ,Bz)(""),_be=Ce(OQ,Bz)(""),Sbe=Ce(wQ,Bz)(""),MQ=P.forwardRef(function(t,n){const r=Rt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:f=Mme,id:h,input:p,inputProps:g,label:v,labelId:y,MenuProps:S,multiple:w=!1,native:b=!1,onClose:x,onOpen:E,open:I,renderValue:A,SelectDisplayProps:k,variant:O="outlined"}=r,D=Ne(r,ybe),N=b?J0e:vbe,H=gf(),G=Jp({props:r,muiFormControl:H,states:["variant","error"]}),z=G.variant||O,L=$({},r,{variant:z,classes:s}),F=xbe(L),j=Ne(F,bbe),V=p||{standard:C.jsx(wbe,{ownerState:L}),outlined:C.jsx(_be,{label:v,ownerState:L}),filled:C.jsx(Sbe,{ownerState:L})}[z],W=Tr(n,V.ref);return C.jsx(P.Fragment,{children:P.cloneElement(V,$({inputComponent:N,inputProps:$({children:o,error:G.error,IconComponent:f,variant:z,type:void 0,multiple:w},b?{id:h}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:y,MenuProps:S,onClose:x,onOpen:E,open:I,renderValue:A,SelectDisplayProps:$({id:h},k)},g,{classes:g?ts(j,g.classes):j},p?p.props.inputProps:{})},w&&b&&z==="outlined"?{notched:!0}:{},{ref:W,className:Ue(V.props.className,a,F.root)},!p&&{variant:z},D))})});MQ.muiName="Select";const Ebe=MQ,Cbe=e=>!e||!tc(e),Tbe=Cbe;function kbe(e){return Ct("MuiSlider",e)}const Abe=It("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),gl=Abe,Ibe=e=>{const{open:t}=e;return{offset:Ue(t&&gl.valueLabelOpen),circle:gl.valueLabelCircle,label:gl.valueLabelLabel}};function Rbe(e){const{children:t,className:n,value:r}=e,i=Ibe(e);return t?P.cloneElement(t,{className:Ue(t.props.className)},C.jsxs(P.Fragment,{children:[t.props.children,C.jsx("span",{className:Ue(i.offset,n),"aria-hidden":!0,children:C.jsx("span",{className:i.circle,children:C.jsx("span",{className:i.label,children:r})})})]})):null}const Pbe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function EH(e){return e}const Obe=Ce("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Le(n.color)}`],n.size!=="medium"&&t[`size${Le(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>$({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&$({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&$({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${gl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${gl.dragging}`]:{[`& .${gl.thumb}, & .${gl.track}`]:{transition:"none"}}})),Mbe=Ce("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>$({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),Lbe=Ce("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?vv(e.palette[t.color].main,.62):gv(e.palette[t.color].main,.5);return $({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Dbe=Ce("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Le(n.color)}`],n.size!=="medium"&&t[`thumbSize${Le(n.size)}`]]}})(({theme:e,ownerState:t})=>$({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":$({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${gl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:kn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${gl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:kn(e.palette[t.color].main,.16)}`},[`&.${gl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Nbe=Ce(Rbe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>$({[`&.${gl.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Bbe=Ce("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>R4(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>$({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),$be=Ce("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>R4(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Fbe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${Le(a)}`,c&&`size${Le(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Le(c)}`,a&&`thumbColor${Le(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return At(u,kbe,s)},zbe=({children:e})=>e,jbe=P.forwardRef(function(t,n){var r,i,o,s,a,c,u,f,h,p,g,v,y,S,w,b,x,E,I,A,k,O,D,N;const H=Rt({props:t,name:"MuiSlider"}),z=Ln().direction==="rtl",{"aria-label":L,"aria-valuetext":F,"aria-labelledby":j,component:V="span",components:W={},componentsProps:K={},color:X="primary",classes:Q,className:re,disableSwap:ce=!1,disabled:ue=!1,getAriaLabel:se,getAriaValueText:J,marks:ae=!1,max:le=100,min:he=0,orientation:pe="horizontal",size:ve="medium",step:ye=1,scale:xe=EH,slotProps:me,slots:be,track:Ze="normal",valueLabelDisplay:Xe="off",valueLabelFormat:ct=EH}=H,Bt=Ne(H,Pbe),Pe=$({},H,{isRtl:z,max:le,min:he,classes:Q,disabled:ue,disableSwap:ce,orientation:pe,marks:ae,color:X,size:ve,step:ye,scale:xe,track:Ze,valueLabelDisplay:Xe,valueLabelFormat:ct}),{axisProps:ze,getRootProps:st,getHiddenInputProps:gt,getThumbProps:vt,open:_e,active:je,axis:Ke,focusedThumbIndex:Fe,range:Be,dragging:Pt,marks:dt,values:Ie,trackOffset:at,trackLeap:$t,getThumbStyle:Re}=sme($({},Pe,{rootRef:n}));Pe.marked=dt.length>0&&dt.some(Kn=>Kn.label),Pe.dragging=Pt,Pe.focusedThumbIndex=Fe;const He=Fbe(Pe),xt=(r=(i=be==null?void 0:be.root)!=null?i:W.Root)!=null?r:Obe,Wt=(o=(s=be==null?void 0:be.rail)!=null?s:W.Rail)!=null?o:Mbe,yn=(a=(c=be==null?void 0:be.track)!=null?c:W.Track)!=null?a:Lbe,Yr=(u=(f=be==null?void 0:be.thumb)!=null?f:W.Thumb)!=null?u:Dbe,Hr=(h=(p=be==null?void 0:be.valueLabel)!=null?p:W.ValueLabel)!=null?h:Nbe,Wr=(g=(v=be==null?void 0:be.mark)!=null?v:W.Mark)!=null?g:Bbe,Kr=(y=(S=be==null?void 0:be.markLabel)!=null?S:W.MarkLabel)!=null?y:$be,ci=(w=(b=be==null?void 0:be.input)!=null?b:W.Input)!=null?w:"input",hs=(x=me==null?void 0:me.root)!=null?x:K.root,td=(E=me==null?void 0:me.rail)!=null?E:K.rail,oa=(I=me==null?void 0:me.track)!=null?I:K.track,xc=(A=me==null?void 0:me.thumb)!=null?A:K.thumb,wc=(k=me==null?void 0:me.valueLabel)!=null?k:K.valueLabel,Tf=(O=me==null?void 0:me.mark)!=null?O:K.mark,ps=(D=me==null?void 0:me.markLabel)!=null?D:K.markLabel,kf=(N=me==null?void 0:me.input)!=null?N:K.input,xo=ti({elementType:xt,getSlotProps:st,externalSlotProps:hs,externalForwardedProps:Bt,additionalProps:$({},Tbe(xt)&&{as:V}),ownerState:$({},Pe,hs==null?void 0:hs.ownerState),className:[He.root,re]}),_c=ti({elementType:Wt,externalSlotProps:td,ownerState:Pe,className:He.rail}),Li=ti({elementType:yn,externalSlotProps:oa,additionalProps:{style:$({},ze[Ke].offset(at),ze[Ke].leap($t))},ownerState:$({},Pe,oa==null?void 0:oa.ownerState),className:He.track}),ms=ti({elementType:Yr,getSlotProps:vt,externalSlotProps:xc,ownerState:$({},Pe,xc==null?void 0:xc.ownerState),className:He.thumb}),Af=ti({elementType:Hr,externalSlotProps:wc,ownerState:$({},Pe,wc==null?void 0:wc.ownerState),className:He.valueLabel}),gs=ti({elementType:Wr,externalSlotProps:Tf,ownerState:Pe,className:He.mark}),Na=ti({elementType:Kr,externalSlotProps:ps,ownerState:Pe,className:He.markLabel}),nd=ti({elementType:ci,getSlotProps:gt,externalSlotProps:kf,ownerState:Pe});return C.jsxs(xt,$({},xo,{children:[C.jsx(Wt,$({},_c)),C.jsx(yn,$({},Li)),dt.filter(Kn=>Kn.value>=he&&Kn.value<=le).map((Kn,lr)=>{const Ll=pC(Kn.value,he,le),Dl=ze[Ke].offset(Ll);let wo;return Ze===!1?wo=Ie.indexOf(Kn.value)!==-1:wo=Ze==="normal"&&(Be?Kn.value>=Ie[0]&&Kn.value<=Ie[Ie.length-1]:Kn.value<=Ie[0])||Ze==="inverted"&&(Be?Kn.value<=Ie[0]||Kn.value>=Ie[Ie.length-1]:Kn.value>=Ie[0]),C.jsxs(P.Fragment,{children:[C.jsx(Wr,$({"data-index":lr},gs,!tc(Wr)&&{markActive:wo},{style:$({},Dl,gs.style),className:Ue(gs.className,wo&&He.markActive)})),Kn.label!=null?C.jsx(Kr,$({"aria-hidden":!0,"data-index":lr},Na,!tc(Kr)&&{markLabelActive:wo},{style:$({},Dl,Na.style),className:Ue(He.markLabel,Na.className,wo&&He.markLabelActive),children:Kn.label})):null]},lr)}),Ie.map((Kn,lr)=>{const Ll=pC(Kn,he,le),Dl=ze[Ke].offset(Ll),wo=Xe==="off"?zbe:Hr;return C.jsx(wo,$({},!tc(wo)&&{valueLabelFormat:ct,valueLabelDisplay:Xe,value:typeof ct=="function"?ct(xe(Kn),lr):ct,index:lr,open:_e===lr||je===lr||Xe==="on",disabled:ue},Af,{children:C.jsx(Yr,$({"data-index":lr},ms,{className:Ue(He.thumb,ms.className,je===lr&&He.active,Fe===lr&&He.focusVisible),style:$({},Dl,Re(lr),ms.style),children:C.jsx(ci,$({"data-index":lr,"aria-label":se?se(lr):L,"aria-valuenow":xe(Kn),"aria-labelledby":j,"aria-valuetext":J?J(xe(Kn),lr):F,value:Ie[lr]},nd))}))}),lr)})]}))}),Ube=jbe;function Hbe(e){return Ct("MuiSnackbarContent",e)}It("MuiSnackbarContent",["root","message","action"]);const Wbe=["action","className","message","role"],Gbe=e=>{const{classes:t}=e;return At({root:["root"],action:["action"],message:["message"]},Hbe,t)},Vbe=Ce(wv,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=dce(e.palette.background.default,t);return $({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),qbe=Ce("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Xbe=Ce("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ybe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert"}=r,c=Ne(r,Wbe),u=r,f=Gbe(u);return C.jsxs(Vbe,$({role:a,square:!0,elevation:6,className:Ue(f.root,o),ownerState:u,ref:n},c,{children:[C.jsx(qbe,{className:f.message,ownerState:u,children:s}),i?C.jsx(Xbe,{className:f.action,ownerState:u,children:i}):null]}))}),Kbe=Ybe;function Qbe(e){return Ct("MuiSnackbar",e)}It("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Jbe=["onEnter","onExited"],Zbe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],exe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Le(n.vertical)}${Le(n.horizontal)}`]};return At(r,Qbe,t)},CH=Ce("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Le(n.anchorOrigin.vertical)}${Le(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return $({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:$({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),txe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSnackbar"}),i=Ln(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:f,className:h,ClickAwayListenerProps:p,ContentProps:g,disableWindowBlurListener:v=!1,message:y,open:S,TransitionComponent:w=gC,transitionDuration:b=o,TransitionProps:{onEnter:x,onExited:E}={}}=r,I=Ne(r.TransitionProps,Jbe),A=Ne(r,Zbe),k=$({},r,{anchorOrigin:{vertical:a,horizontal:c},autoHideDuration:u,disableWindowBlurListener:v,TransitionComponent:w,transitionDuration:b}),O=exe(k),{getRootProps:D,onClickAway:N}=ame($({},k)),[H,G]=P.useState(!0),z=ti({elementType:CH,getSlotProps:D,externalForwardedProps:A,ownerState:k,additionalProps:{ref:n},className:[O.root,h]}),L=j=>{G(!0),E&&E(j)},F=(j,V)=>{G(!1),x&&x(j,V)};return!S&&H?null:C.jsx(whe,$({onClickAway:N},p,{children:C.jsx(CH,$({},z,{children:C.jsx(w,$({appear:!0,in:S,timeout:b,direction:a==="top"?"down":"up",onEnter:F,onExited:L},I,{children:f||C.jsx(Kbe,$({message:y,action:s},g))}))}))}))}),nxe=txe;function rxe(e){return Ct("MuiTooltip",e)}const ixe=It("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ad=ixe,oxe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function sxe(e){return Math.round(e*1e5)/1e5}const axe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Le(o.split("-")[0])}`],arrow:["arrow"]};return At(s,rxe,t)},lxe=Ce(fQ,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ad.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ad.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ad.arrow}`]:$({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ad.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),cxe=Ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Le(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:kn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${sxe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ad.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ad.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ad.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ad.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),uxe=Ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:kn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let P_=!1,WD=null,Ob={x:0,y:0};function O_(e,t){return n=>{t&&t(n),e(n)}}const dxe=P.forwardRef(function(t,n){var r,i,o,s,a,c,u,f,h,p,g,v,y,S,w,b,x,E,I;const A=Rt({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:O,components:D={},componentsProps:N={},describeChild:H=!1,disableFocusListener:G=!1,disableHoverListener:z=!1,disableInteractive:L=!1,disableTouchListener:F=!1,enterDelay:j=100,enterNextDelay:V=0,enterTouchDelay:W=700,followCursor:K=!1,id:X,leaveDelay:Q=0,leaveTouchDelay:re=1500,onClose:ce,onOpen:ue,open:se,placement:J="bottom",PopperComponent:ae,PopperProps:le={},slotProps:he={},slots:pe={},title:ve,TransitionComponent:ye=gC,TransitionProps:xe}=A,me=Ne(A,oxe),be=P.isValidElement(O)?O:C.jsx("span",{children:O}),Ze=Ln(),Xe=Ze.direction==="rtl",[ct,Bt]=P.useState(),[Pe,ze]=P.useState(null),st=P.useRef(!1),gt=L||K,vt=P.useRef(),_e=P.useRef(),je=P.useRef(),Ke=P.useRef(),[Fe,Be]=i1({controlled:se,default:!1,name:"Tooltip",state:"open"});let Pt=Fe;const dt=u4(X),Ie=P.useRef(),at=P.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(Ke.current)},[]);P.useEffect(()=>()=>{clearTimeout(vt.current),clearTimeout(_e.current),clearTimeout(je.current),at()},[at]);const $t=en=>{clearTimeout(WD),P_=!0,Be(!0),ue&&!Pt&&ue(en)},Re=mo(en=>{clearTimeout(WD),WD=setTimeout(()=>{P_=!1},800+Q),Be(!1),ce&&Pt&&ce(en),clearTimeout(vt.current),vt.current=setTimeout(()=>{st.current=!1},Ze.transitions.duration.shortest)}),He=en=>{st.current&&en.type!=="touchstart"||(ct&&ct.removeAttribute("title"),clearTimeout(_e.current),clearTimeout(je.current),j||P_&&V?_e.current=setTimeout(()=>{$t(en)},P_?V:j):$t(en))},xt=en=>{clearTimeout(_e.current),clearTimeout(je.current),je.current=setTimeout(()=>{Re(en)},Q)},{isFocusVisibleRef:Wt,onBlur:yn,onFocus:Yr,ref:Hr}=d4(),[,Wr]=P.useState(!1),Kr=en=>{yn(en),Wt.current===!1&&(Wr(!1),xt(en))},ci=en=>{ct||Bt(en.currentTarget),Yr(en),Wt.current===!0&&(Wr(!0),He(en))},hs=en=>{st.current=!0;const Ar=be.props;Ar.onTouchStart&&Ar.onTouchStart(en)},td=He,oa=xt,xc=en=>{hs(en),clearTimeout(je.current),clearTimeout(vt.current),at(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ke.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,He(en)},W)},wc=en=>{be.props.onTouchEnd&&be.props.onTouchEnd(en),at(),clearTimeout(je.current),je.current=setTimeout(()=>{Re(en)},re)};P.useEffect(()=>{if(!Pt)return;function en(Ar){(Ar.key==="Escape"||Ar.key==="Esc")&&Re(Ar)}return document.addEventListener("keydown",en),()=>{document.removeEventListener("keydown",en)}},[Re,Pt]);const Tf=Tr(be.ref,Hr,Bt,n);!ve&&ve!==0&&(Pt=!1);const ps=P.useRef(),kf=en=>{const Ar=be.props;Ar.onMouseMove&&Ar.onMouseMove(en),Ob={x:en.clientX,y:en.clientY},ps.current&&ps.current.update()},xo={},_c=typeof ve=="string";H?(xo.title=!Pt&&_c&&!z?ve:null,xo["aria-describedby"]=Pt?dt:null):(xo["aria-label"]=_c?ve:null,xo["aria-labelledby"]=Pt&&!_c?dt:null);const Li=$({},xo,me,be.props,{className:Ue(me.className,be.props.className),onTouchStart:hs,ref:Tf},K?{onMouseMove:kf}:{}),ms={};F||(Li.onTouchStart=xc,Li.onTouchEnd=wc),z||(Li.onMouseOver=O_(td,Li.onMouseOver),Li.onMouseLeave=O_(oa,Li.onMouseLeave),gt||(ms.onMouseOver=td,ms.onMouseLeave=oa)),G||(Li.onFocus=O_(ci,Li.onFocus),Li.onBlur=O_(Kr,Li.onBlur),gt||(ms.onFocus=ci,ms.onBlur=Kr));const Af=P.useMemo(()=>{var en;let Ar=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(en=le.popperOptions)!=null&&en.modifiers&&(Ar=Ar.concat(le.popperOptions.modifiers)),$({},le.popperOptions,{modifiers:Ar})},[Pe,le]),gs=$({},A,{isRtl:Xe,arrow:k,disableInteractive:gt,placement:J,PopperComponentProp:ae,touch:st.current}),Na=axe(gs),nd=(r=(i=pe.popper)!=null?i:D.Popper)!=null?r:lxe,Kn=(o=(s=(a=pe.transition)!=null?a:D.Transition)!=null?s:ye)!=null?o:gC,lr=(c=(u=pe.tooltip)!=null?u:D.Tooltip)!=null?c:cxe,Ll=(f=(h=pe.arrow)!=null?h:D.Arrow)!=null?f:uxe,Dl=sx(nd,$({},le,(p=he.popper)!=null?p:N.popper,{className:Ue(Na.popper,le==null?void 0:le.className,(g=(v=he.popper)!=null?v:N.popper)==null?void 0:g.className)}),gs),wo=sx(Kn,$({},xe,(y=he.transition)!=null?y:N.transition),gs),Uv=sx(lr,$({},(S=he.tooltip)!=null?S:N.tooltip,{className:Ue(Na.tooltip,(w=(b=he.tooltip)!=null?b:N.tooltip)==null?void 0:w.className)}),gs),Hv=sx(Ll,$({},(x=he.arrow)!=null?x:N.arrow,{className:Ue(Na.arrow,(E=(I=he.arrow)!=null?I:N.arrow)==null?void 0:E.className)}),gs);return C.jsxs(P.Fragment,{children:[P.cloneElement(be,Li),C.jsx(nd,$({as:ae??fQ,placement:J,anchorEl:K?{getBoundingClientRect:()=>({top:Ob.y,left:Ob.x,right:Ob.x,bottom:Ob.y,width:0,height:0})}:ct,popperRef:ps,open:ct?Pt:!1,id:dt,transition:!0},ms,Dl,{popperOptions:Af,children:({TransitionProps:en})=>C.jsx(Kn,$({timeout:Ze.transitions.duration.shorter},en,wo,{children:C.jsxs(lr,$({},Uv,{children:[ve,k?C.jsx(Ll,$({},Hv,{ref:ze})):null]}))}))}))]})}),vf=dxe;function fxe(e){return Ct("MuiSwitch",e)}const hxe=It("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Lo=hxe,pxe=["className","color","edge","size","sx"],mxe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,a={root:["root",n&&`edge${Le(n)}`,`size${Le(r)}`],switchBase:["switchBase",`color${Le(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=At(a,fxe,t);return $({},t,c)},gxe=Ce("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Le(n.edge)}`],t[`size${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Lo.thumb}`]:{width:16,height:16},[`& .${Lo.switchBase}`]:{padding:4,[`&.${Lo.checked}`]:{transform:"translateX(16px)"}}})),vxe=Ce(vQ,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lo.input}`]:t.input},n.color!=="default"&&t[`color${Le(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lo.checked}`]:{transform:"translateX(20px)"},[`&.${Lo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lo.checked} + .${Lo.track}`]:{opacity:.5},[`&.${Lo.disabled} + .${Lo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Lo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?vv(e.palette[t.color].main,.62):gv(e.palette[t.color].main,.55)}`}},[`&.${Lo.checked} + .${Lo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),yxe=Ce("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),bxe=Ce("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),xxe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:a="medium",sx:c}=r,u=Ne(r,pxe),f=$({},r,{color:o,edge:s,size:a}),h=mxe(f),p=C.jsx(bxe,{className:h.thumb,ownerState:f});return C.jsxs(gxe,{className:Ue(h.root,i),sx:c,ownerState:f,children:[C.jsx(vxe,$({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},u,{classes:$({},h,{root:h.switchBase})})),C.jsx(yxe,{className:h.track,ownerState:f})]})}),qg=xxe;function wxe(e){return Ct("MuiTab",e)}const _xe=It("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),zh=_xe,Sxe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Exe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:a,disabled:c}=e,u={root:["root",o&&s&&"labelIcon",`textColor${Le(n)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return At(u,wxe,t)},Cxe=Ce(Yu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Le(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${zh.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${zh.selected}`]:{opacity:1},[`&.${zh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${zh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${zh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Txe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:u="top",indicator:f,label:h,onChange:p,onClick:g,onFocus:v,selected:y,selectionFollowsFocus:S,textColor:w="inherit",value:b,wrapped:x=!1}=r,E=Ne(r,Sxe),I=$({},r,{disabled:o,disableFocusRipple:s,selected:y,icon:!!c,iconPosition:u,label:!!h,fullWidth:a,textColor:w,wrapped:x}),A=Exe(I),k=c&&h&&P.isValidElement(c)?P.cloneElement(c,{className:Ue(A.iconWrapper,c.props.className)}):c,O=N=>{!y&&p&&p(N,b),g&&g(N)},D=N=>{S&&!y&&p&&p(N,b),v&&v(N)};return C.jsxs(Cxe,$({focusRipple:!s,className:Ue(A.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:O,onFocus:D,ownerState:I,tabIndex:y?0:-1},E,{children:[u==="top"||u==="start"?C.jsxs(P.Fragment,{children:[k,h]}):C.jsxs(P.Fragment,{children:[h,k]}),f]}))}),Zm=Txe;function kxe(e){return Ct("MuiToolbar",e)}It("MuiToolbar",["root","gutters","regular","dense"]);const Axe=["className","component","disableGutters","variant"],Ixe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return At({root:["root",!n&&"gutters",r]},kxe,t)},Rxe=Ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Pxe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,c=Ne(r,Axe),u=$({},r,{component:o,disableGutters:s,variant:a}),f=Ixe(u);return C.jsx(Rxe,$({as:o,className:Ue(f.root,i),ref:n,ownerState:u},c))}),Oxe=Pxe,Mxe=zt(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Lxe=zt(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Dxe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Nxe(e,t,n,r={},i=()=>{}){const{ease:o=Dxe,duration:s=300}=r;let a=null;const c=t[e];let u=!1;const f=()=>{u=!0},h=p=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=p);const g=Math.min(1,(p-a)/s);if(t[e]=o(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return c===n?(i(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const Bxe=["onChange"],$xe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Fxe(e){const{onChange:t}=e,n=Ne(e,Bxe),r=P.useRef(),i=P.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return jo(()=>{const s=RT(()=>{const c=r.current;o(),c!==r.current&&t(r.current)}),a=Du(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),P.useEffect(()=>{o(),t(r.current)},[t]),C.jsx("div",$({style:$xe,ref:i},n))}function zxe(e){return Ct("MuiTabScrollButton",e)}const jxe=It("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Uxe=jxe,Hxe=["className","slots","slotProps","direction","orientation","disabled"],Wxe=e=>{const{classes:t,orientation:n,disabled:r}=e;return At({root:["root",n,r&&"disabled"]},zxe,t)},Gxe=Ce(Yu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${Uxe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Vxe=P.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:u}=o,f=Ne(o,Hxe),p=Ln().direction==="rtl",g=$({isRtl:p},o),v=Wxe(g),y=(r=a.StartScrollButtonIcon)!=null?r:Mxe,S=(i=a.EndScrollButtonIcon)!=null?i:Lxe,w=ti({elementType:y,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),b=ti({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return C.jsx(Gxe,$({component:"div",className:Ue(v.root,s),ref:n,role:null,ownerState:g,tabIndex:null},f,{children:u==="left"?C.jsx(y,$({},w)):C.jsx(S,$({},b))}))}),qxe=Vxe;function Xxe(e){return Ct("MuiTabs",e)}const Yxe=It("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),GD=Yxe,Kxe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],TH=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,kH=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,M_=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},Qxe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return At({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Xxe,c)},Jxe=Ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${GD.scrollButtons}`]:t.scrollButtons},{[`& .${GD.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${GD.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Zxe=Ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),e1e=Ce("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),t1e=Ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),n1e=Ce(Fxe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),AH={},r1e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabs"}),i=Ln(),o=i.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:u=!1,children:f,className:h,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:v="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:w=qxe,scrollButtons:b="auto",selectionFollowsFocus:x,slots:E={},slotProps:I={},TabIndicatorProps:A={},TabScrollButtonProps:k={},textColor:O="primary",value:D,variant:N="standard",visibleScrollbar:H=!1}=r,G=Ne(r,Kxe),z=N==="scrollable",L=S==="vertical",F=L?"scrollTop":"scrollLeft",j=L?"top":"left",V=L?"bottom":"right",W=L?"clientHeight":"clientWidth",K=L?"height":"width",X=$({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:v,orientation:S,vertical:L,scrollButtons:b,textColor:O,variant:N,visibleScrollbar:H,fixed:!z,hideScrollbar:z&&!H,scrollableX:z&&!L,scrollableY:z&&L,centered:u&&!z,scrollButtonsHideMobile:!g}),Q=Qxe(X),re=ti({elementType:E.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:X}),ce=ti({elementType:E.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:X}),[ue,se]=P.useState(!1),[J,ae]=P.useState(AH),[le,he]=P.useState(!1),[pe,ve]=P.useState(!1),[ye,xe]=P.useState(!1),[me,be]=P.useState({overflow:"hidden",scrollbarWidth:0}),Ze=new Map,Xe=P.useRef(null),ct=P.useRef(null),Bt=()=>{const Re=Xe.current;let He;if(Re){const Wt=Re.getBoundingClientRect();He={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollLeftNormalized:Nse(Re,i.direction),scrollWidth:Re.scrollWidth,top:Wt.top,bottom:Wt.bottom,left:Wt.left,right:Wt.right}}let xt;if(Re&&D!==!1){const Wt=ct.current.children;if(Wt.length>0){const yn=Wt[Ze.get(D)];xt=yn?yn.getBoundingClientRect():null}}return{tabsMeta:He,tabMeta:xt}},Pe=mo(()=>{const{tabsMeta:Re,tabMeta:He}=Bt();let xt=0,Wt;if(L)Wt="top",He&&Re&&(xt=He.top-Re.top+Re.scrollTop);else if(Wt=o?"right":"left",He&&Re){const Yr=o?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;xt=(o?-1:1)*(He[Wt]-Re[Wt]+Yr)}const yn={[Wt]:xt,[K]:He?He[K]:0};if(isNaN(J[Wt])||isNaN(J[K]))ae(yn);else{const Yr=Math.abs(J[Wt]-yn[Wt]),Hr=Math.abs(J[K]-yn[K]);(Yr>=1||Hr>=1)&&ae(yn)}}),ze=(Re,{animation:He=!0}={})=>{He?Nxe(F,Xe.current,Re,{duration:i.transitions.duration.standard}):Xe.current[F]=Re},st=Re=>{let He=Xe.current[F];L?He+=Re:(He+=Re*(o?-1:1),He*=o&&mX()==="reverse"?-1:1),ze(He)},gt=()=>{const Re=Xe.current[W];let He=0;const xt=Array.from(ct.current.children);for(let Wt=0;WtRe){Wt===0&&(He=Re);break}He+=yn[W]}return He},vt=()=>{st(-1*gt())},_e=()=>{st(gt())},je=P.useCallback(Re=>{be({overflow:null,scrollbarWidth:Re})},[]),Ke=()=>{const Re={};Re.scrollbarSizeListener=z?C.jsx(n1e,{onChange:je,className:Ue(Q.scrollableX,Q.hideScrollbar)}):null;const xt=z&&(b==="auto"&&(le||pe)||b===!0);return Re.scrollButtonStart=xt?C.jsx(w,$({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:re},orientation:S,direction:o?"right":"left",onClick:vt,disabled:!le},k,{className:Ue(Q.scrollButtons,k.className)})):null,Re.scrollButtonEnd=xt?C.jsx(w,$({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:S,direction:o?"left":"right",onClick:_e,disabled:!pe},k,{className:Ue(Q.scrollButtons,k.className)})):null,Re},Fe=mo(Re=>{const{tabsMeta:He,tabMeta:xt}=Bt();if(!(!xt||!He)){if(xt[j]He[V]){const Wt=He[F]+(xt[V]-He[V]);ze(Wt,{animation:Re})}}}),Be=mo(()=>{z&&b!==!1&&xe(!ye)});P.useEffect(()=>{const Re=RT(()=>{Xe.current&&Pe()}),He=Du(Xe.current);He.addEventListener("resize",Re);let xt;return typeof ResizeObserver<"u"&&(xt=new ResizeObserver(Re),Array.from(ct.current.children).forEach(Wt=>{xt.observe(Wt)})),()=>{Re.clear(),He.removeEventListener("resize",Re),xt&&xt.disconnect()}},[Pe]),P.useEffect(()=>{const Re=Array.from(ct.current.children),He=Re.length;if(typeof IntersectionObserver<"u"&&He>0&&z&&b!==!1){const xt=Re[0],Wt=Re[He-1],yn={root:Xe.current,threshold:.99},Yr=ci=>{he(!ci[0].isIntersecting)},Hr=new IntersectionObserver(Yr,yn);Hr.observe(xt);const Wr=ci=>{ve(!ci[0].isIntersecting)},Kr=new IntersectionObserver(Wr,yn);return Kr.observe(Wt),()=>{Hr.disconnect(),Kr.disconnect()}}},[z,b,ye,f==null?void 0:f.length]),P.useEffect(()=>{se(!0)},[]),P.useEffect(()=>{Pe()}),P.useEffect(()=>{Fe(AH!==J)},[Fe,J]),P.useImperativeHandle(c,()=>({updateIndicator:Pe,updateScrollButtons:Be}),[Pe,Be]);const Pt=C.jsx(t1e,$({},A,{className:Ue(Q.indicator,A.className),ownerState:X,style:$({},J,A.style)}));let dt=0;const Ie=P.Children.map(f,Re=>{if(!P.isValidElement(Re))return null;const He=Re.props.value===void 0?dt:Re.props.value;Ze.set(He,dt);const xt=He===D;return dt+=1,P.cloneElement(Re,$({fullWidth:N==="fullWidth",indicator:xt&&!ue&&Pt,selected:xt,selectionFollowsFocus:x,onChange:y,textColor:O,value:He},dt===1&&D===!1&&!Re.props.tabIndex?{tabIndex:0}:{}))}),at=Re=>{const He=ct.current,xt=Fr(He).activeElement;if(xt.getAttribute("role")!=="tab")return;let yn=S==="horizontal"?"ArrowLeft":"ArrowUp",Yr=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(yn="ArrowRight",Yr="ArrowLeft"),Re.key){case yn:Re.preventDefault(),M_(He,xt,kH);break;case Yr:Re.preventDefault(),M_(He,xt,TH);break;case"Home":Re.preventDefault(),M_(He,null,TH);break;case"End":Re.preventDefault(),M_(He,null,kH);break}},$t=Ke();return C.jsxs(Jxe,$({className:Ue(Q.root,h),ownerState:X,ref:n,as:p},G,{children:[$t.scrollButtonStart,$t.scrollbarSizeListener,C.jsxs(Zxe,{className:Q.scroller,ownerState:X,style:{overflow:me.overflow,[L?`margin${o?"Left":"Right"}`:"marginBottom"]:H?void 0:-me.scrollbarWidth},ref:Xe,children:[C.jsx(e1e,{"aria-label":s,"aria-labelledby":a,"aria-orientation":S==="vertical"?"vertical":null,className:Q.flexContainer,ownerState:X,onKeyDown:at,ref:ct,role:"tablist",children:Ie}),ue&&Pt]}),$t.scrollButtonEnd]}))}),i1e=r1e;function o1e(e){return Ct("MuiTextField",e)}It("MuiTextField",["root"]);const s1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],a1e={standard:CQ,filled:wQ,outlined:OQ},l1e=e=>{const{classes:t}=e;return At({root:["root"]},o1e,t)},c1e=Ce(Ive,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),u1e=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:a,color:c="primary",defaultValue:u,disabled:f=!1,error:h=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:v,id:y,InputLabelProps:S,inputProps:w,InputProps:b,inputRef:x,label:E,maxRows:I,minRows:A,multiline:k=!1,name:O,onBlur:D,onChange:N,onFocus:H,placeholder:G,required:z=!1,rows:L,select:F=!1,SelectProps:j,type:V,value:W,variant:K="outlined"}=r,X=Ne(r,s1e),Q=$({},r,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:g,multiline:k,required:z,select:F,variant:K}),re=l1e(Q),ce={};K==="outlined"&&(S&&typeof S.shrink<"u"&&(ce.notched=S.shrink),ce.label=E),F&&((!j||!j.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const ue=u4(y),se=v&&ue?`${ue}-helper-text`:void 0,J=E&&ue?`${ue}-label`:void 0,ae=a1e[K],le=C.jsx(ae,$({"aria-describedby":se,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:g,multiline:k,name:O,rows:L,maxRows:I,minRows:A,type:V,value:W,id:ue,inputRef:x,onBlur:D,onChange:N,onFocus:H,placeholder:G,inputProps:w},ce,b));return C.jsxs(c1e,$({className:Ue(re.root,a),disabled:f,error:h,fullWidth:g,ref:n,required:z,color:c,variant:K,ownerState:Q},X,{children:[E!=null&&E!==""&&C.jsx(pye,$({htmlFor:ue,id:J},S,{children:E})),F?C.jsx(Ebe,$({"aria-describedby":se,id:ue,labelId:J,value:W,input:le},j,{children:s})):le,v&&C.jsx(Gve,$({id:se},p,{children:v}))]}))}),Ew=u1e;function En({vertical:e,...t}){return C.jsx(mt,{position:"relative",height:"100%",width:"100%",display:"flex",flexDirection:e?"column":"row",...t})}const LQ=zt(C.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z"}),"AccountTreeOutlined"),d1e=zt(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),f1e=zt(C.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),h1e=zt(C.jsx("path",{d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1z"}),"ArrowOutwardRounded"),p1e=zt(C.jsx("path",{d:"M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-3-3c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3-6c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-1.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm3 6c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-4c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm2-3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-3.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z"}),"BlurCircularOutlined"),m1e=zt(C.jsx("path",{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}),"BlurOnOutlined"),g1e=zt(C.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65C8.03 15.48 8 15.23 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18c.31-.08.63-.12.94-.12.32 0 .63.04.95.12l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"}),"BugReportOutlined"),v1e=zt(C.jsx("path",{d:"M17 12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5 5-2.24 5-5zm-5 3c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm-7 0H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}),"CenterFocusStrongOutlined"),y1e=zt(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined"),b1e=zt(C.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"ClearOutlined"),DQ=zt(C.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"CloseOutlined"),x1e=zt(C.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"CodeOutlined"),w1e=zt(C.jsx("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"}),"CropFreeOutlined"),_1e=zt(C.jsx("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleOutlined"),jk=zt(C.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),S1e=zt(C.jsx("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),NQ=zt(C.jsx("path",{d:"M15 22H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h8l6 6v6h-2V9h-5V4H6v16h9v2zm4-.34v-2.24l2.95 2.95 1.41-1.41L20.41 18h2.24v-2H17v5.66h2z"}),"FileOpenOutlined"),E1e=zt(C.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),C1e=zt(C.jsx("path",{d:"M2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.41L2.81 2.81zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.94 10.94C14.86 19.59 13.48 20 12 20zM7.94 5.12 6.49 3.66C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51l-1.46-1.46C19.59 14.86 20 13.48 20 12c0-4.41-3.59-8-8-8-1.48 0-2.86.41-4.06 1.12z"}),"HideSourceOutlined"),T1e=zt(C.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),k1e=zt(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),A1e=zt(C.jsx("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"}),"LabelOutlined"),Cw=zt(C.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}),"LayersOutlined"),BQ=zt(C.jsx("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"ListOutlined"),I1e=zt(C.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertOutlined"),R1e=zt(C.jsx("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"PauseOutlined"),P1e=zt(C.jsx("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}),"PlaceOutlined"),O1e=zt(C.jsx("path",{d:"M10 8.64 15.27 12 10 15.36V8.64M8 5v14l11-7L8 5z"}),"PlayArrowOutlined"),$Q=zt(C.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplayOutlined"),M1e=zt(C.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchOutlined"),L1e=zt(C.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),D1e=zt(C.jsx("path",{d:"m6 18 8.5-6L6 6v12zm2-8.14L11.03 12 8 14.14V9.86zM16 6h2v12h-2z"}),"SkipNextOutlined"),N1e=zt(C.jsx("path",{d:"M6 6h2v12H6zm3.5 6 8.5 6V6l-8.5 6zm6.5 2.14L12.97 12 16 9.86v4.28z"}),"SkipPreviousOutlined"),cE=zt(C.jsx("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortOutlined"),B1e=zt(C.jsx("path",{d:"M16 8v8H8V8h8m2-2H6v12h12V6z"}),"StopOutlined"),$1e=zt(C.jsx("path",{d:"M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"}),"TripOriginOutlined"),IH=zt(C.jsx("path",{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0 6H5v-4h14v4zm0-16H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 6H5V5h14v4z"}),"ViewAgendaOutlined"),FQ=zt(C.jsx("path",{d:"M3 4c0-.55.45-1 1-1h2V1H4C2.34 1 1 2.34 1 4v2h2V4zm0 16v-2H1v2c0 1.66 1.34 3 3 3h2v-2H4c-.55 0-1-.45-1-1zM20 1h-2v2h2c.55 0 1 .45 1 1v2h2V4c0-1.66-1.34-3-3-3zm1 19c0 .55-.45 1-1 1h-2v2h2c1.66 0 3-1.34 3-3v-2h-2v2zm-2-5.13V9.13c0-.72-.38-1.38-1-1.73l-5-2.88c-.31-.18-.65-.27-1-.27s-.69.09-1 .27L6 7.39c-.62.36-1 1.02-1 1.74v5.74c0 .72.38 1.38 1 1.73l5 2.88c.31.18.65.27 1 .27s.69-.09 1-.27l5-2.88c.62-.35 1-1.01 1-1.73zm-8 2.3-4-2.3v-4.63l4 2.33v4.6zm1-6.33L8.04 8.53 12 6.25l3.96 2.28L12 10.84zm5 4.03-4 2.3v-4.6l4-2.33v4.63z"}),"ViewInArOutlined"),F1e=zt(C.jsx("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),z1e=zt(C.jsx("path",{d:"m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"}),"WidgetsOutlined");var yC={exports:{}};/** + `),Cye)),Oye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,u=Ne(r,Sye),f=$({},r,{color:o,variant:c}),h=kye(f),p=Dn(),g={},v={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=s-100;p.direction==="rtl"&&(y=-y),v.bar1.transform=`translateX(${y}%)`}if(c==="buffer"&&a!==void 0){let y=(a||0)-100;p.direction==="rtl"&&(y=-y),v.bar2.transform=`translateX(${y}%)`}return C.jsxs(Aye,$({className:Ue(h.root,i),ownerState:f,role:"progressbar"},g,{ref:n},u,{children:[c==="buffer"?C.jsx(Iye,{className:h.dashed,ownerState:f}):null,C.jsx(Rye,{className:h.bar1,ownerState:f,style:v.bar1}),c==="determinate"?null:C.jsx(Pye,{className:h.bar2,ownerState:f,style:v.bar2})]}))}),Mye=Oye,Lye=R.createContext({}),Ca=Lye;function Dye(e){return Ct("MuiList",e)}It("MuiList",["root","padding","dense","subheader"]);const Nye=["children","className","component","dense","disablePadding","subheader"],Bye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return At({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Dye,t)},$ye=Ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:u}=r,f=Ne(r,Nye),h=R.useMemo(()=>({dense:a}),[a]),p=$({},r,{component:s,dense:a,disablePadding:c}),g=Bye(p);return C.jsx(Ca.Provider,{value:h,children:C.jsxs($ye,$({as:s,className:Ue(g.root,o),ref:n,ownerState:p},f,{children:[u,i]}))})}),Xg=Fye;function zye(e){return Ct("MuiListItem",e)}const jye=It("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Om=jye;function Uye(e){return Ct("MuiListItemButton",e)}const Hye=It("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Mm=Hye,Wye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Gye=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Vye=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,u=At({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Uye,n);return $({},n,u)},qye=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Gye})(({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Xye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:c=!1,disableGutters:u=!1,divider:f=!1,focusVisibleClassName:h,selected:p=!1,className:g}=r,v=Ne(r,Wye),y=R.useContext(Ca),S=R.useMemo(()=>({dense:c||y.dense||!1,alignItems:i,disableGutters:u}),[i,y.dense,c,u]),w=R.useRef(null);jo(()=>{o&&w.current&&w.current.focus()},[o]);const b=$({},r,{alignItems:i,dense:S.dense,disableGutters:u,divider:f,selected:p}),x=Vye(b),E=Tr(w,n);return C.jsx(Ca.Provider,{value:S,children:C.jsx(qye,$({ref:E,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:Ue(x.focusVisible,h),ownerState:b,className:Ue(x.root,g)},v,{classes:x,children:a}))})}),t3=Xye;function Yye(e){return Ct("MuiListItemSecondaryAction",e)}It("MuiListItemSecondaryAction",["root","disableGutters"]);const Kye=["className"],Qye=e=>{const{disableGutters:t,classes:n}=e;return At({root:["root",t&&"disableGutters"]},Yye,n)},Jye=Ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),PQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ne(r,Kye),s=R.useContext(Ca),a=$({},r,{disableGutters:s.disableGutters}),c=Qye(a);return C.jsx(Jye,$({className:Ue(c.root,i),ownerState:a,ref:n},o))});PQ.muiName="ListItemSecondaryAction";const Zye=PQ,e0e=["className"],t0e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],n0e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},r0e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:u,selected:f}=e;return At({root:["root",i&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},zye,r)},i0e=Ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:n0e})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Mm.root}`]:{paddingRight:48}},{[`&.${Om.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Om.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Om.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Om.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Om.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),o0e=Ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),s0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:s=!1,children:a,className:c,component:u,components:f={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:v=!1,disabled:y=!1,disableGutters:S=!1,disablePadding:w=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:E,selected:I=!1,slotProps:A={},slots:k={}}=r,O=Ne(r.ContainerProps,e0e),D=Ne(r,t0e),N=R.useContext(Ca),H=R.useMemo(()=>({dense:v||N.dense||!1,alignItems:i,disableGutters:S}),[i,N.dense,v,S]),G=R.useRef(null);jo(()=>{o&&G.current&&G.current.focus()},[o]);const z=R.Children.toArray(a),L=z.length&&KS(z[z.length-1],["ListItemSecondaryAction"]),F=$({},r,{alignItems:i,autoFocus:o,button:s,dense:H.dense,disabled:y,disableGutters:S,disablePadding:w,divider:b,hasSecondaryAction:L,selected:I}),j=r0e(F),V=Tr(G,n),W=k.root||f.Root||i0e,K=A.root||h.root||{},X=$({className:Ue(j.root,K.className,c),disabled:y},D);let Q=u||"li";return s&&(X.component=u||"div",X.focusVisibleClassName=Ue(Om.focusVisible,x),Q=Yu),L?(Q=!X.component&&!u?"div":Q,p==="li"&&(Q==="li"?Q="div":X.component==="li"&&(X.component="div")),C.jsx(Ca.Provider,{value:H,children:C.jsxs(o0e,$({as:p,className:Ue(j.container,g),ref:V,ownerState:F},O,{children:[C.jsx(W,$({},K,!tc(W)&&{as:Q,ownerState:$({},F,K.ownerState)},X,{children:z})),z.pop()]}))})):C.jsx(Ca.Provider,{value:H,children:C.jsxs(W,$({},K,{as:Q,ref:V},!tc(W)&&{ownerState:$({},F,K.ownerState)},X,{children:[z,E&&C.jsx(Zye,{children:E})]}))})}),Bx=s0e;function a0e(e){return Ct("MuiListItemAvatar",e)}It("MuiListItemAvatar",["root","alignItemsFlexStart"]);const l0e=["className"],c0e=e=>{const{alignItems:t,classes:n}=e;return At({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},a0e,n)},u0e=Ce("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>$({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),d0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ne(r,l0e),s=R.useContext(Ca),a=$({},r,{alignItems:s.alignItems}),c=c0e(a);return C.jsx(u0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))}),f0e=d0e;function h0e(e){return Ct("MuiListItemIcon",e)}const p0e=It("MuiListItemIcon",["root","alignItemsFlexStart"]),xH=p0e,m0e=["className"],g0e=e=>{const{alignItems:t,classes:n}=e;return At({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},h0e,n)},v0e=Ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),y0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ne(r,m0e),s=R.useContext(Ca),a=$({},r,{alignItems:s.alignItems}),c=g0e(a);return C.jsx(v0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))}),Wd=y0e;function b0e(e){return Ct("MuiListItemText",e)}const x0e=It("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bC=x0e,w0e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_0e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return At({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},b0e,t)},S0e=Ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bC.primary}`]:t.primary},{[`& .${bC.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),E0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:h}=r,p=Ne(r,w0e),{dense:g}=R.useContext(Ca);let v=c??i,y=f;const S=$({},r,{disableTypography:s,inset:a,primary:!!v,secondary:!!y,dense:g}),w=_0e(S);return v!=null&&v.type!==jt&&!s&&(v=C.jsx(jt,$({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),y!=null&&y.type!==jt&&!s&&(y=C.jsx(jt,$({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},h,{children:y}))),C.jsxs(S0e,$({className:Ue(w.root,o),ownerState:S,ref:n},p,{children:[v,y]}))}),rc=E0e,C0e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function HD(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function wH(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function OQ(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ab(e,t,n,r,i,o){let s=!1,a=i(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!OQ(a,o)||c)a=i(e,a,n);else return a.focus(),!0}return!1}const T0e=R.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:f,variant:h="selectedMenu"}=t,p=Ne(t,C0e),g=R.useRef(null),v=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jo(()=>{i&&g.current.focus()},[i]),R.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const I=!g.current.style.width;if(x.clientHeight{const E=g.current,I=x.key,A=Fr(E).activeElement;if(I==="ArrowDown")x.preventDefault(),Ab(E,A,u,c,HD);else if(I==="ArrowUp")x.preventDefault(),Ab(E,A,u,c,wH);else if(I==="Home")x.preventDefault(),Ab(E,null,u,c,HD);else if(I==="End")x.preventDefault(),Ab(E,null,u,c,wH);else if(I.length===1){const k=v.current,O=I.toLowerCase(),D=performance.now();k.keys.length>0&&(D-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&O!==k.keys[0]&&(k.repeating=!1)),k.lastTime=D,k.keys.push(O);const N=A&&!k.repeating&&OQ(A,k);k.previousKeyMatched&&(N||Ab(E,A,!1,c,HD,k))?x.preventDefault():k.previousKeyMatched=!1}f&&f(x)},S=Tr(g,n);let w=-1;R.Children.forEach(s,(x,E)=>{if(!R.isValidElement(x)){w===E&&(w+=1,w>=s.length&&(w=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||w===-1)&&(w=E),w===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const b=R.Children.map(s,(x,E)=>{if(E===w){const I={};return o&&(I.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),R.cloneElement(x,I)}return x});return C.jsx(Xg,$({role:"menu",ref:S,className:a,onKeyDown:y,tabIndex:i?0:-1},p,{children:b}))}),zk=T0e;function k0e(e){return Ct("MuiPopover",e)}It("MuiPopover",["root","paper"]);const A0e=["onEntering"],I0e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],R0e=["slotProps"];function _H(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function SH(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function EH(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function WD(e){return typeof e=="function"?e():e}const P0e=e=>{const{classes:t}=e;return At({root:["root"],paper:["paper"]},k0e,t)},O0e=Ce(SQ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MQ=Ce(Sv,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),M0e=R.forwardRef(function(t,n){var r,i,o;const s=Rt({props:t,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:p,className:g,container:v,elevation:y=8,marginThreshold:S=16,open:w,PaperProps:b={},slots:x,slotProps:E,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:A=yC,transitionDuration:k="auto",TransitionProps:{onEntering:O}={},disableScrollLock:D=!1}=s,N=Ne(s.TransitionProps,A0e),H=Ne(s,I0e),G=(r=E==null?void 0:E.paper)!=null?r:b,z=R.useRef(),L=Tr(z,G.ref),F=$({},s,{anchorOrigin:u,anchorReference:h,elevation:y,marginThreshold:S,externalPaperSlotProps:G,transformOrigin:I,TransitionComponent:A,transitionDuration:k,TransitionProps:N}),j=P0e(F),V=R.useCallback(()=>{if(h==="anchorPosition")return f;const xe=WD(c),be=(xe&&xe.nodeType===1?xe:Fr(z.current).body).getBoundingClientRect();return{top:be.top+_H(be,u.vertical),left:be.left+SH(be,u.horizontal)}},[c,u.horizontal,u.vertical,f,h]),W=R.useCallback(xe=>({vertical:_H(xe,I.vertical),horizontal:SH(xe,I.horizontal)}),[I.horizontal,I.vertical]),K=R.useCallback(xe=>{const me={width:xe.offsetWidth,height:xe.offsetHeight},be=W(me);if(h==="none")return{top:null,left:null,transformOrigin:EH(be)};const Ze=V();let Xe=Ze.top-be.vertical,ct=Ze.left-be.horizontal;const Bt=Xe+me.height,Pe=ct+me.width,ze=Du(WD(c)),st=ze.innerHeight-S,gt=ze.innerWidth-S;if(S!==null&&Xest){const vt=Bt-st;Xe-=vt,be.vertical+=vt}if(S!==null&&ctgt){const vt=Pe-gt;ct-=vt,be.horizontal+=vt}return{top:`${Math.round(Xe)}px`,left:`${Math.round(ct)}px`,transformOrigin:EH(be)}},[c,h,V,W,S]),[X,Q]=R.useState(w),ie=R.useCallback(()=>{const xe=z.current;if(!xe)return;const me=K(xe);me.top!==null&&(xe.style.top=me.top),me.left!==null&&(xe.style.left=me.left),xe.style.transformOrigin=me.transformOrigin,Q(!0)},[K]);R.useEffect(()=>(D&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[c,D,ie]);const ce=(xe,me)=>{O&&O(xe,me),ie()},ue=()=>{Q(!1)};R.useEffect(()=>{w&&ie()}),R.useImperativeHandle(a,()=>w?{updatePosition:()=>{ie()}}:null,[w,ie]),R.useEffect(()=>{if(!w)return;const xe=PT(()=>{ie()}),me=Du(c);return me.addEventListener("resize",xe),()=>{xe.clear(),me.removeEventListener("resize",xe)}},[c,w,ie]);let se=k;k==="auto"&&!A.muiSupportAuto&&(se=void 0);const J=v||(c?Fr(WD(c)).body:void 0),ae=(i=x==null?void 0:x.root)!=null?i:O0e,le=(o=x==null?void 0:x.paper)!=null?o:MQ,he=ti({elementType:le,externalSlotProps:$({},G,{style:X?G.style:$({},G.style,{opacity:0})}),additionalProps:{elevation:y,ref:L},ownerState:F,className:Ue(j.paper,G==null?void 0:G.className)}),pe=ti({elementType:ae,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:H,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:F,className:Ue(j.root,g)}),{slotProps:ve}=pe,ye=Ne(pe,R0e);return C.jsx(ae,$({},ye,!tc(ae)&&{slotProps:ve,disableScrollLock:D},{children:C.jsx(A,$({appear:!0,in:w,onEntering:ce,onExited:ue,timeout:se},N,{children:C.jsx(le,$({},he,{children:p}))}))}))}),L0e=M0e;function D0e(e){return Ct("MuiMenu",e)}It("MuiMenu",["root","paper","list"]);const N0e=["onEntering"],B0e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$0e={vertical:"top",horizontal:"right"},F0e={vertical:"top",horizontal:"left"},z0e=e=>{const{classes:t}=e;return At({root:["root"],paper:["paper"],list:["list"]},D0e,t)},j0e=Ce(L0e,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),U0e=Ce(MQ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),H0e=Ce(zk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),W0e=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:c,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:h,open:p,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:w="selectedMenu",slots:b={},slotProps:x={}}=o,E=Ne(o.TransitionProps,N0e),I=Ne(o,B0e),A=Dn(),k=A.direction==="rtl",O=$({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:f,onEntering:S,PaperProps:g,transitionDuration:y,TransitionProps:E,variant:w}),D=z0e(O),N=s&&!u&&p,H=R.useRef(null),G=(K,X)=>{H.current&&H.current.adjustStyleForScrollbar(K,A),S&&S(K,X)},z=K=>{K.key==="Tab"&&(K.preventDefault(),h&&h(K,"tabKeyDown"))};let L=-1;R.Children.map(a,(K,X)=>{R.isValidElement(K)&&(K.props.disabled||(w==="selectedMenu"&&K.props.selected||L===-1)&&(L=X))});const F=(r=b.paper)!=null?r:U0e,j=(i=x.paper)!=null?i:g,V=ti({elementType:b.root,externalSlotProps:x.root,ownerState:O,className:[D.root,c]}),W=ti({elementType:F,externalSlotProps:j,ownerState:O,className:D.paper});return C.jsx(j0e,$({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?$0e:F0e,slots:{paper:F,root:b.root},slotProps:{root:V,paper:W},open:p,ref:n,transitionDuration:y,TransitionProps:$({onEntering:G},E),ownerState:O},I,{classes:v,children:C.jsx(H0e,$({onKeyDown:z,actions:H,autoFocus:s&&(L===-1||u),autoFocusItem:N,variant:w},f,{className:Ue(D.list,f.className),children:a}))}))}),nm=W0e;function G0e(e){return Ct("MuiMenuItem",e)}const V0e=It("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ib=V0e,q0e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],X0e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Y0e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,c=At({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},G0e,s);return $({},s,c)},K0e=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:X0e})(({theme:e,ownerState:t})=>$({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ib.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ib.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ib.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ib.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ib.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dH.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dH.inset}`]:{marginLeft:52},[`& .${bC.root}`]:{marginTop:0,marginBottom:0},[`& .${bC.inset}`]:{paddingLeft:36},[`& .${xH.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xH.root} svg`]:{fontSize:"1.25rem"}}))),Q0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:h,className:p}=r,g=Ne(r,q0e),v=R.useContext(Ca),y=R.useMemo(()=>({dense:s||v.dense||!1,disableGutters:c}),[v.dense,s,c]),S=R.useRef(null);jo(()=>{i&&S.current&&S.current.focus()},[i]);const w=$({},r,{dense:y.dense,divider:a,disableGutters:c}),b=Y0e(r),x=Tr(S,n);let E;return r.disabled||(E=h!==void 0?h:-1),C.jsx(Ca.Provider,{value:y,children:C.jsx(K0e,$({ref:x,role:f,tabIndex:E,component:o,focusVisibleClassName:Ue(b.focusVisible,u),className:Ue(b.root,p)},g,{ownerState:w,classes:b}))})}),Ru=Q0e;function J0e(e){return Ct("MuiNativeSelect",e)}const Z0e=It("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$z=Z0e,ebe=["className","disabled","error","IconComponent","inputRef","variant"],tbe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Le(n)}`,o&&"iconOpen",r&&"disabled"]};return At(a,J0e,t)},LQ=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${$z.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),nbe=Ce("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ma,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$z.multiple}`]:t.multiple}]}})(LQ),DQ=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${$z.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),rbe=Ce("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})(DQ),ibe=R.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:s,inputRef:a,variant:c="standard"}=t,u=Ne(t,ebe),f=$({},t,{disabled:i,variant:c,error:o}),h=tbe(f);return C.jsxs(R.Fragment,{children:[C.jsx(nbe,$({ownerState:f,className:Ue(h.select,r),disabled:i,ref:a||n},u)),t.multiple?null:C.jsx(rbe,{as:s,ownerState:f,className:h.icon})]})}),obe=ibe;var CH;const sbe=["children","classes","className","label","notched"],abe=Ce("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),lbe=Ce("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function cbe(e){const{className:t,label:n,notched:r}=e,i=Ne(e,sbe),o=n!=null&&n!=="",s=$({},e,{notched:r,withLabel:o});return C.jsx(abe,$({"aria-hidden":!0,className:t,ownerState:s},i,{children:C.jsx(lbe,{ownerState:s,children:o?C.jsx("span",{children:n}):CH||(CH=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const ube=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],dbe=e=>{const{classes:t}=e,r=At({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nme,t);return $({},t,r)},fbe=Ce(Nk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Lk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${rd.focused} .${rd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rd.error} .${rd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rd.disabled} .${rd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),hbe=Ce(cbe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),pbe=Ce(Bk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dk})(({theme:e,ownerState:t})=>$({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),NQ=R.forwardRef(function(t,n){var r,i,o,s,a;const c=Rt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:h="input",label:p,multiline:g=!1,notched:v,slots:y={},type:S="text"}=c,w=Ne(c,ube),b=dbe(c),x=gf(),E=tm({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=$({},c,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:g,size:E.size,type:S}),A=(r=(i=y.root)!=null?i:u.Root)!=null?r:fbe,k=(o=(s=y.input)!=null?s:u.Input)!=null?o:pbe;return C.jsx($k,$({slots:{root:A,input:k},renderSuffix:O=>C.jsx(hbe,{ownerState:I,className:b.notchedOutline,label:p!=null&&p!==""&&E.required?a||(a=C.jsxs(R.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:f,inputComponent:h,multiline:g,ref:n,type:S},w,{classes:$({},b,{notchedOutline:null})}))});NQ.muiName="Input";const BQ=NQ;function mbe(e){return Ct("MuiSelect",e)}const gbe=It("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rb=gbe;var TH;const vbe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ybe=Ce("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rb.select}`]:t.select},{[`&.${Rb.select}`]:t[n.variant]},{[`&.${Rb.error}`]:t.error},{[`&.${Rb.multiple}`]:t.multiple}]}})(LQ,{[`&.${Rb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bbe=Ce("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})(DQ),xbe=Ce("input",{shouldForwardProp:e=>P4(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kH(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function wbe(e){return e==null||typeof e=="string"&&!e.trim()}const _be=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Le(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return At(a,mbe,t)},Sbe=R.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:a,children:c,className:u,defaultOpen:f,defaultValue:h,disabled:p,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:S,labelId:w,MenuProps:b={},multiple:x,name:E,onBlur:I,onChange:A,onClose:k,onFocus:O,onOpen:D,open:N,readOnly:H,renderValue:G,SelectDisplayProps:z={},tabIndex:L,value:F,variant:j="standard"}=t,V=Ne(t,vbe),[W,K]=r1({controlled:F,default:h,name:"Select"}),[X,Q]=r1({controlled:N,default:f,name:"Select"}),ie=R.useRef(null),ce=R.useRef(null),[ue,se]=R.useState(null),{current:J}=R.useRef(N!=null),[ae,le]=R.useState(),he=Tr(n,S),pe=R.useCallback(Ie=>{ce.current=Ie,Ie&&se(Ie)},[]),ve=ue==null?void 0:ue.parentNode;R.useImperativeHandle(he,()=>({focus:()=>{ce.current.focus()},node:ie.current,value:W}),[W]),R.useEffect(()=>{f&&X&&ue&&!J&&(le(a?null:ve.clientWidth),ce.current.focus())},[ue,a]),R.useEffect(()=>{s&&ce.current.focus()},[s]),R.useEffect(()=>{if(!w)return;const Ie=Fr(ce.current).getElementById(w);if(Ie){const at=()=>{getSelection().isCollapsed&&ce.current.focus()};return Ie.addEventListener("click",at),()=>{Ie.removeEventListener("click",at)}}},[w]);const ye=(Ie,at)=>{Ie?D&&D(at):k&&k(at),J||(le(a?null:ve.clientWidth),Q(Ie))},xe=Ie=>{Ie.button===0&&(Ie.preventDefault(),ce.current.focus(),ye(!0,Ie))},me=Ie=>{ye(!1,Ie)},be=R.Children.toArray(c),Ze=Ie=>{const at=be.find($t=>$t.props.value===Ie.target.value);at!==void 0&&(K(at.props.value),A&&A(Ie,at))},Xe=Ie=>at=>{let $t;if(at.currentTarget.hasAttribute("tabindex")){if(x){$t=Array.isArray(W)?W.slice():[];const Re=W.indexOf(Ie.props.value);Re===-1?$t.push(Ie.props.value):$t.splice(Re,1)}else $t=Ie.props.value;if(Ie.props.onClick&&Ie.props.onClick(at),W!==$t&&(K($t),A)){const Re=at.nativeEvent||at,He=new Re.constructor(Re.type,Re);Object.defineProperty(He,"target",{writable:!0,value:{value:$t,name:E}}),A(He,Ie)}x||ye(!1,at)}},ct=Ie=>{H||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ie.key)!==-1&&(Ie.preventDefault(),ye(!0,Ie))},Bt=ue!==null&&X,Pe=Ie=>{!Bt&&I&&(Object.defineProperty(Ie,"target",{writable:!0,value:{value:W,name:E}}),I(Ie))};delete V["aria-invalid"];let ze,st;const gt=[];let vt=!1;(vC({value:W})||g)&&(G?ze=G(W):vt=!0);const _e=be.map(Ie=>{if(!R.isValidElement(Ie))return null;let at;if(x){if(!Array.isArray(W))throw new Error(Jd(2));at=W.some($t=>kH($t,Ie.props.value)),at&&vt&>.push(Ie.props.children)}else at=kH(W,Ie.props.value),at&&vt&&(st=Ie.props.children);return R.cloneElement(Ie,{"aria-selected":at?"true":"false",onClick:Xe(Ie),onKeyUp:$t=>{$t.key===" "&&$t.preventDefault(),Ie.props.onKeyUp&&Ie.props.onKeyUp($t)},role:"option",selected:at,value:void 0,"data-value":Ie.props.value})});vt&&(x?gt.length===0?ze=null:ze=gt.reduce((Ie,at,$t)=>(Ie.push(at),$t{const{classes:t}=e;return t},Fz={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ma(e)&&e!=="variant",slot:"Root"},Abe=Ce(RQ,Fz)(""),Ibe=Ce(BQ,Fz)(""),Rbe=Ce(TQ,Fz)(""),$Q=R.forwardRef(function(t,n){const r=Rt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:f=zme,id:h,input:p,inputProps:g,label:v,labelId:y,MenuProps:S,multiple:w=!1,native:b=!1,onClose:x,onOpen:E,open:I,renderValue:A,SelectDisplayProps:k,variant:O="outlined"}=r,D=Ne(r,Cbe),N=b?obe:Ebe,H=gf(),G=tm({props:r,muiFormControl:H,states:["variant","error"]}),z=G.variant||O,L=$({},r,{variant:z,classes:s}),F=kbe(L),j=Ne(F,Tbe),V=p||{standard:C.jsx(Abe,{ownerState:L}),outlined:C.jsx(Ibe,{label:v,ownerState:L}),filled:C.jsx(Rbe,{ownerState:L})}[z],W=Tr(n,V.ref);return C.jsx(R.Fragment,{children:R.cloneElement(V,$({inputComponent:N,inputProps:$({children:o,error:G.error,IconComponent:f,variant:z,type:void 0,multiple:w},b?{id:h}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:y,MenuProps:S,onClose:x,onOpen:E,open:I,renderValue:A,SelectDisplayProps:$({id:h},k)},g,{classes:g?ns(j,g.classes):j},p?p.props.inputProps:{})},w&&b&&z==="outlined"?{notched:!0}:{},{ref:W,className:Ue(V.props.className,a,F.root)},!p&&{variant:z},D))})});$Q.muiName="Select";const Pbe=$Q,Obe=e=>!e||!tc(e),Mbe=Obe;function Lbe(e){return Ct("MuiSlider",e)}const Dbe=It("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),gl=Dbe,Nbe=e=>{const{open:t}=e;return{offset:Ue(t&&gl.valueLabelOpen),circle:gl.valueLabelCircle,label:gl.valueLabelLabel}};function Bbe(e){const{children:t,className:n,value:r}=e,i=Nbe(e);return t?R.cloneElement(t,{className:Ue(t.props.className)},C.jsxs(R.Fragment,{children:[t.props.children,C.jsx("span",{className:Ue(i.offset,n),"aria-hidden":!0,children:C.jsx("span",{className:i.circle,children:C.jsx("span",{className:i.label,children:r})})})]})):null}const $be=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function AH(e){return e}const Fbe=Ce("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Le(n.color)}`],n.size!=="medium"&&t[`size${Le(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>$({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&$({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&$({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${gl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${gl.dragging}`]:{[`& .${gl.thumb}, & .${gl.track}`]:{transition:"none"}}})),zbe=Ce("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>$({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),jbe=Ce("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?bv(e.palette[t.color].main,.62):yv(e.palette[t.color].main,.5);return $({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Ube=Ce("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Le(n.color)}`],n.size!=="medium"&&t[`thumbSize${Le(n.size)}`]]}})(({theme:e,ownerState:t})=>$({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":$({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${gl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:kn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${gl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:kn(e.palette[t.color].main,.16)}`},[`&.${gl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Hbe=Ce(Bbe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>$({[`&.${gl.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Wbe=Ce("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>P4(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>$({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),Gbe=Ce("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>P4(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Vbe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${Le(a)}`,c&&`size${Le(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Le(c)}`,a&&`thumbColor${Le(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return At(u,Lbe,s)},qbe=({children:e})=>e,Xbe=R.forwardRef(function(t,n){var r,i,o,s,a,c,u,f,h,p,g,v,y,S,w,b,x,E,I,A,k,O,D,N;const H=Rt({props:t,name:"MuiSlider"}),z=Dn().direction==="rtl",{"aria-label":L,"aria-valuetext":F,"aria-labelledby":j,component:V="span",components:W={},componentsProps:K={},color:X="primary",classes:Q,className:ie,disableSwap:ce=!1,disabled:ue=!1,getAriaLabel:se,getAriaValueText:J,marks:ae=!1,max:le=100,min:he=0,orientation:pe="horizontal",size:ve="medium",step:ye=1,scale:xe=AH,slotProps:me,slots:be,track:Ze="normal",valueLabelDisplay:Xe="off",valueLabelFormat:ct=AH}=H,Bt=Ne(H,$be),Pe=$({},H,{isRtl:z,max:le,min:he,classes:Q,disabled:ue,disableSwap:ce,orientation:pe,marks:ae,color:X,size:ve,step:ye,scale:xe,track:Ze,valueLabelDisplay:Xe,valueLabelFormat:ct}),{axisProps:ze,getRootProps:st,getHiddenInputProps:gt,getThumbProps:vt,open:_e,active:je,axis:Ke,focusedThumbIndex:Fe,range:Be,dragging:Pt,marks:dt,values:Ie,trackOffset:at,trackLeap:$t,getThumbStyle:Re}=hme($({},Pe,{rootRef:n}));Pe.marked=dt.length>0&&dt.some(Kn=>Kn.label),Pe.dragging=Pt,Pe.focusedThumbIndex=Fe;const He=Vbe(Pe),xt=(r=(i=be==null?void 0:be.root)!=null?i:W.Root)!=null?r:Fbe,Gt=(o=(s=be==null?void 0:be.rail)!=null?s:W.Rail)!=null?o:zbe,yn=(a=(c=be==null?void 0:be.track)!=null?c:W.Track)!=null?a:jbe,Yr=(u=(f=be==null?void 0:be.thumb)!=null?f:W.Thumb)!=null?u:Ube,Hr=(h=(p=be==null?void 0:be.valueLabel)!=null?p:W.ValueLabel)!=null?h:Hbe,Wr=(g=(v=be==null?void 0:be.mark)!=null?v:W.Mark)!=null?g:Wbe,Kr=(y=(S=be==null?void 0:be.markLabel)!=null?S:W.MarkLabel)!=null?y:Gbe,ci=(w=(b=be==null?void 0:be.input)!=null?b:W.Input)!=null?w:"input",ps=(x=me==null?void 0:me.root)!=null?x:K.root,ed=(E=me==null?void 0:me.rail)!=null?E:K.rail,sa=(I=me==null?void 0:me.track)!=null?I:K.track,wc=(A=me==null?void 0:me.thumb)!=null?A:K.thumb,_c=(k=me==null?void 0:me.valueLabel)!=null?k:K.valueLabel,kf=(O=me==null?void 0:me.mark)!=null?O:K.mark,ms=(D=me==null?void 0:me.markLabel)!=null?D:K.markLabel,Af=(N=me==null?void 0:me.input)!=null?N:K.input,xo=ti({elementType:xt,getSlotProps:st,externalSlotProps:ps,externalForwardedProps:Bt,additionalProps:$({},Mbe(xt)&&{as:V}),ownerState:$({},Pe,ps==null?void 0:ps.ownerState),className:[He.root,ie]}),Sc=ti({elementType:Gt,externalSlotProps:ed,ownerState:Pe,className:He.rail}),Di=ti({elementType:yn,externalSlotProps:sa,additionalProps:{style:$({},ze[Ke].offset(at),ze[Ke].leap($t))},ownerState:$({},Pe,sa==null?void 0:sa.ownerState),className:He.track}),gs=ti({elementType:Yr,getSlotProps:vt,externalSlotProps:wc,ownerState:$({},Pe,wc==null?void 0:wc.ownerState),className:He.thumb}),If=ti({elementType:Hr,externalSlotProps:_c,ownerState:$({},Pe,_c==null?void 0:_c.ownerState),className:He.valueLabel}),vs=ti({elementType:Wr,externalSlotProps:kf,ownerState:Pe,className:He.mark}),Na=ti({elementType:Kr,externalSlotProps:ms,ownerState:Pe,className:He.markLabel}),td=ti({elementType:ci,getSlotProps:gt,externalSlotProps:Af,ownerState:Pe});return C.jsxs(xt,$({},xo,{children:[C.jsx(Gt,$({},Sc)),C.jsx(yn,$({},Di)),dt.filter(Kn=>Kn.value>=he&&Kn.value<=le).map((Kn,lr)=>{const Ll=gC(Kn.value,he,le),Dl=ze[Ke].offset(Ll);let wo;return Ze===!1?wo=Ie.indexOf(Kn.value)!==-1:wo=Ze==="normal"&&(Be?Kn.value>=Ie[0]&&Kn.value<=Ie[Ie.length-1]:Kn.value<=Ie[0])||Ze==="inverted"&&(Be?Kn.value<=Ie[0]||Kn.value>=Ie[Ie.length-1]:Kn.value>=Ie[0]),C.jsxs(R.Fragment,{children:[C.jsx(Wr,$({"data-index":lr},vs,!tc(Wr)&&{markActive:wo},{style:$({},Dl,vs.style),className:Ue(vs.className,wo&&He.markActive)})),Kn.label!=null?C.jsx(Kr,$({"aria-hidden":!0,"data-index":lr},Na,!tc(Kr)&&{markLabelActive:wo},{style:$({},Dl,Na.style),className:Ue(He.markLabel,Na.className,wo&&He.markLabelActive),children:Kn.label})):null]},lr)}),Ie.map((Kn,lr)=>{const Ll=gC(Kn,he,le),Dl=ze[Ke].offset(Ll),wo=Xe==="off"?qbe:Hr;return C.jsx(wo,$({},!tc(wo)&&{valueLabelFormat:ct,valueLabelDisplay:Xe,value:typeof ct=="function"?ct(xe(Kn),lr):ct,index:lr,open:_e===lr||je===lr||Xe==="on",disabled:ue},If,{children:C.jsx(Yr,$({"data-index":lr},gs,{className:Ue(He.thumb,gs.className,je===lr&&He.active,Fe===lr&&He.focusVisible),style:$({},Dl,Re(lr),gs.style),children:C.jsx(ci,$({"data-index":lr,"aria-label":se?se(lr):L,"aria-valuenow":xe(Kn),"aria-labelledby":j,"aria-valuetext":J?J(xe(Kn),lr):F,value:Ie[lr]},td))}))}),lr)})]}))}),Ybe=Xbe;function Kbe(e){return Ct("MuiSnackbarContent",e)}It("MuiSnackbarContent",["root","message","action"]);const Qbe=["action","className","message","role"],Jbe=e=>{const{classes:t}=e;return At({root:["root"],action:["action"],message:["message"]},Kbe,t)},Zbe=Ce(Sv,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=yce(e.palette.background.default,t);return $({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),exe=Ce("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),txe=Ce("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),nxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert"}=r,c=Ne(r,Qbe),u=r,f=Jbe(u);return C.jsxs(Zbe,$({role:a,square:!0,elevation:6,className:Ue(f.root,o),ownerState:u,ref:n},c,{children:[C.jsx(exe,{className:f.message,ownerState:u,children:s}),i?C.jsx(txe,{className:f.action,ownerState:u,children:i}):null]}))}),rxe=nxe;function ixe(e){return Ct("MuiSnackbar",e)}It("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const oxe=["onEnter","onExited"],sxe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],axe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Le(n.vertical)}${Le(n.horizontal)}`]};return At(r,ixe,t)},IH=Ce("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Le(n.anchorOrigin.vertical)}${Le(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return $({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:$({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),lxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSnackbar"}),i=Dn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:f,className:h,ClickAwayListenerProps:p,ContentProps:g,disableWindowBlurListener:v=!1,message:y,open:S,TransitionComponent:w=yC,transitionDuration:b=o,TransitionProps:{onEnter:x,onExited:E}={}}=r,I=Ne(r.TransitionProps,oxe),A=Ne(r,sxe),k=$({},r,{anchorOrigin:{vertical:a,horizontal:c},autoHideDuration:u,disableWindowBlurListener:v,TransitionComponent:w,transitionDuration:b}),O=axe(k),{getRootProps:D,onClickAway:N}=pme($({},k)),[H,G]=R.useState(!0),z=ti({elementType:IH,getSlotProps:D,externalForwardedProps:A,ownerState:k,additionalProps:{ref:n},className:[O.root,h]}),L=j=>{G(!0),E&&E(j)},F=(j,V)=>{G(!1),x&&x(j,V)};return!S&&H?null:C.jsx(Ahe,$({onClickAway:N},p,{children:C.jsx(IH,$({},z,{children:C.jsx(w,$({appear:!0,in:S,timeout:b,direction:a==="top"?"down":"up",onEnter:F,onExited:L},I,{children:f||C.jsx(rxe,$({message:y,action:s},g))}))}))}))}),cxe=lxe;function uxe(e){return Ct("MuiTooltip",e)}const dxe=It("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ad=dxe,fxe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function hxe(e){return Math.round(e*1e5)/1e5}const pxe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Le(o.split("-")[0])}`],arrow:["arrow"]};return At(s,uxe,t)},mxe=Ce(yQ,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ad.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ad.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ad.arrow}`]:$({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ad.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),gxe=Ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Le(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:kn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${hxe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ad.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ad.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ad.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ad.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),vxe=Ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:kn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let O_=!1,GD=null,Pb={x:0,y:0};function M_(e,t){return n=>{t&&t(n),e(n)}}const yxe=R.forwardRef(function(t,n){var r,i,o,s,a,c,u,f,h,p,g,v,y,S,w,b,x,E,I;const A=Rt({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:O,components:D={},componentsProps:N={},describeChild:H=!1,disableFocusListener:G=!1,disableHoverListener:z=!1,disableInteractive:L=!1,disableTouchListener:F=!1,enterDelay:j=100,enterNextDelay:V=0,enterTouchDelay:W=700,followCursor:K=!1,id:X,leaveDelay:Q=0,leaveTouchDelay:ie=1500,onClose:ce,onOpen:ue,open:se,placement:J="bottom",PopperComponent:ae,PopperProps:le={},slotProps:he={},slots:pe={},title:ve,TransitionComponent:ye=yC,TransitionProps:xe}=A,me=Ne(A,fxe),be=R.isValidElement(O)?O:C.jsx("span",{children:O}),Ze=Dn(),Xe=Ze.direction==="rtl",[ct,Bt]=R.useState(),[Pe,ze]=R.useState(null),st=R.useRef(!1),gt=L||K,vt=R.useRef(),_e=R.useRef(),je=R.useRef(),Ke=R.useRef(),[Fe,Be]=r1({controlled:se,default:!1,name:"Tooltip",state:"open"});let Pt=Fe;const dt=d4(X),Ie=R.useRef(),at=R.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(Ke.current)},[]);R.useEffect(()=>()=>{clearTimeout(vt.current),clearTimeout(_e.current),clearTimeout(je.current),at()},[at]);const $t=en=>{clearTimeout(GD),O_=!0,Be(!0),ue&&!Pt&&ue(en)},Re=mo(en=>{clearTimeout(GD),GD=setTimeout(()=>{O_=!1},800+Q),Be(!1),ce&&Pt&&ce(en),clearTimeout(vt.current),vt.current=setTimeout(()=>{st.current=!1},Ze.transitions.duration.shortest)}),He=en=>{st.current&&en.type!=="touchstart"||(ct&&ct.removeAttribute("title"),clearTimeout(_e.current),clearTimeout(je.current),j||O_&&V?_e.current=setTimeout(()=>{$t(en)},O_?V:j):$t(en))},xt=en=>{clearTimeout(_e.current),clearTimeout(je.current),je.current=setTimeout(()=>{Re(en)},Q)},{isFocusVisibleRef:Gt,onBlur:yn,onFocus:Yr,ref:Hr}=f4(),[,Wr]=R.useState(!1),Kr=en=>{yn(en),Gt.current===!1&&(Wr(!1),xt(en))},ci=en=>{ct||Bt(en.currentTarget),Yr(en),Gt.current===!0&&(Wr(!0),He(en))},ps=en=>{st.current=!0;const Ar=be.props;Ar.onTouchStart&&Ar.onTouchStart(en)},ed=He,sa=xt,wc=en=>{ps(en),clearTimeout(je.current),clearTimeout(vt.current),at(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ke.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,He(en)},W)},_c=en=>{be.props.onTouchEnd&&be.props.onTouchEnd(en),at(),clearTimeout(je.current),je.current=setTimeout(()=>{Re(en)},ie)};R.useEffect(()=>{if(!Pt)return;function en(Ar){(Ar.key==="Escape"||Ar.key==="Esc")&&Re(Ar)}return document.addEventListener("keydown",en),()=>{document.removeEventListener("keydown",en)}},[Re,Pt]);const kf=Tr(be.ref,Hr,Bt,n);!ve&&ve!==0&&(Pt=!1);const ms=R.useRef(),Af=en=>{const Ar=be.props;Ar.onMouseMove&&Ar.onMouseMove(en),Pb={x:en.clientX,y:en.clientY},ms.current&&ms.current.update()},xo={},Sc=typeof ve=="string";H?(xo.title=!Pt&&Sc&&!z?ve:null,xo["aria-describedby"]=Pt?dt:null):(xo["aria-label"]=Sc?ve:null,xo["aria-labelledby"]=Pt&&!Sc?dt:null);const Di=$({},xo,me,be.props,{className:Ue(me.className,be.props.className),onTouchStart:ps,ref:kf},K?{onMouseMove:Af}:{}),gs={};F||(Di.onTouchStart=wc,Di.onTouchEnd=_c),z||(Di.onMouseOver=M_(ed,Di.onMouseOver),Di.onMouseLeave=M_(sa,Di.onMouseLeave),gt||(gs.onMouseOver=ed,gs.onMouseLeave=sa)),G||(Di.onFocus=M_(ci,Di.onFocus),Di.onBlur=M_(Kr,Di.onBlur),gt||(gs.onFocus=ci,gs.onBlur=Kr));const If=R.useMemo(()=>{var en;let Ar=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(en=le.popperOptions)!=null&&en.modifiers&&(Ar=Ar.concat(le.popperOptions.modifiers)),$({},le.popperOptions,{modifiers:Ar})},[Pe,le]),vs=$({},A,{isRtl:Xe,arrow:k,disableInteractive:gt,placement:J,PopperComponentProp:ae,touch:st.current}),Na=pxe(vs),td=(r=(i=pe.popper)!=null?i:D.Popper)!=null?r:mxe,Kn=(o=(s=(a=pe.transition)!=null?a:D.Transition)!=null?s:ye)!=null?o:yC,lr=(c=(u=pe.tooltip)!=null?u:D.Tooltip)!=null?c:gxe,Ll=(f=(h=pe.arrow)!=null?h:D.Arrow)!=null?f:vxe,Dl=ox(td,$({},le,(p=he.popper)!=null?p:N.popper,{className:Ue(Na.popper,le==null?void 0:le.className,(g=(v=he.popper)!=null?v:N.popper)==null?void 0:g.className)}),vs),wo=ox(Kn,$({},xe,(y=he.transition)!=null?y:N.transition),vs),jv=ox(lr,$({},(S=he.tooltip)!=null?S:N.tooltip,{className:Ue(Na.tooltip,(w=(b=he.tooltip)!=null?b:N.tooltip)==null?void 0:w.className)}),vs),Uv=ox(Ll,$({},(x=he.arrow)!=null?x:N.arrow,{className:Ue(Na.arrow,(E=(I=he.arrow)!=null?I:N.arrow)==null?void 0:E.className)}),vs);return C.jsxs(R.Fragment,{children:[R.cloneElement(be,Di),C.jsx(td,$({as:ae??yQ,placement:J,anchorEl:K?{getBoundingClientRect:()=>({top:Pb.y,left:Pb.x,right:Pb.x,bottom:Pb.y,width:0,height:0})}:ct,popperRef:ms,open:ct?Pt:!1,id:dt,transition:!0},gs,Dl,{popperOptions:If,children:({TransitionProps:en})=>C.jsx(Kn,$({timeout:Ze.transitions.duration.shorter},en,wo,{children:C.jsxs(lr,$({},jv,{children:[ve,k?C.jsx(Ll,$({},Uv,{ref:ze})):null]}))}))}))]})}),vf=yxe;function bxe(e){return Ct("MuiSwitch",e)}const xxe=It("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Lo=xxe,wxe=["className","color","edge","size","sx"],_xe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,a={root:["root",n&&`edge${Le(n)}`,`size${Le(r)}`],switchBase:["switchBase",`color${Le(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=At(a,bxe,t);return $({},t,c)},Sxe=Ce("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Le(n.edge)}`],t[`size${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Lo.thumb}`]:{width:16,height:16},[`& .${Lo.switchBase}`]:{padding:4,[`&.${Lo.checked}`]:{transform:"translateX(16px)"}}})),Exe=Ce(_Q,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lo.input}`]:t.input},n.color!=="default"&&t[`color${Le(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lo.checked}`]:{transform:"translateX(20px)"},[`&.${Lo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lo.checked} + .${Lo.track}`]:{opacity:.5},[`&.${Lo.disabled} + .${Lo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Lo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?bv(e.palette[t.color].main,.62):yv(e.palette[t.color].main,.55)}`}},[`&.${Lo.checked} + .${Lo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Cxe=Ce("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Txe=Ce("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),kxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:a="medium",sx:c}=r,u=Ne(r,wxe),f=$({},r,{color:o,edge:s,size:a}),h=_xe(f),p=C.jsx(Txe,{className:h.thumb,ownerState:f});return C.jsxs(Sxe,{className:Ue(h.root,i),sx:c,ownerState:f,children:[C.jsx(Exe,$({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},u,{classes:$({},h,{root:h.switchBase})})),C.jsx(Cxe,{className:h.track,ownerState:f})]})}),Yg=kxe;function Axe(e){return Ct("MuiTab",e)}const Ixe=It("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),jh=Ixe,Rxe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Pxe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:a,disabled:c}=e,u={root:["root",o&&s&&"labelIcon",`textColor${Le(n)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return At(u,Axe,t)},Oxe=Ce(Yu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Le(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${jh.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${jh.selected}`]:{opacity:1},[`&.${jh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${jh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${jh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${jh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${jh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Mxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:u="top",indicator:f,label:h,onChange:p,onClick:g,onFocus:v,selected:y,selectionFollowsFocus:S,textColor:w="inherit",value:b,wrapped:x=!1}=r,E=Ne(r,Rxe),I=$({},r,{disabled:o,disableFocusRipple:s,selected:y,icon:!!c,iconPosition:u,label:!!h,fullWidth:a,textColor:w,wrapped:x}),A=Pxe(I),k=c&&h&&R.isValidElement(c)?R.cloneElement(c,{className:Ue(A.iconWrapper,c.props.className)}):c,O=N=>{!y&&p&&p(N,b),g&&g(N)},D=N=>{S&&!y&&p&&p(N,b),v&&v(N)};return C.jsxs(Oxe,$({focusRipple:!s,className:Ue(A.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:O,onFocus:D,ownerState:I,tabIndex:y?0:-1},E,{children:[u==="top"||u==="start"?C.jsxs(R.Fragment,{children:[k,h]}):C.jsxs(R.Fragment,{children:[h,k]}),f]}))}),ng=Mxe;function Lxe(e){return Ct("MuiToolbar",e)}It("MuiToolbar",["root","gutters","regular","dense"]);const Dxe=["className","component","disableGutters","variant"],Nxe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return At({root:["root",!n&&"gutters",r]},Lxe,t)},Bxe=Ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),$xe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,c=Ne(r,Dxe),u=$({},r,{component:o,disableGutters:s,variant:a}),f=Nxe(u);return C.jsx(Bxe,$({as:o,className:Ue(f.root,i),ref:n,ownerState:u},c))}),Fxe=$xe,zxe=zt(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),jxe=zt(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Uxe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Hxe(e,t,n,r={},i=()=>{}){const{ease:o=Uxe,duration:s=300}=r;let a=null;const c=t[e];let u=!1;const f=()=>{u=!0},h=p=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=p);const g=Math.min(1,(p-a)/s);if(t[e]=o(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return c===n?(i(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const Wxe=["onChange"],Gxe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Vxe(e){const{onChange:t}=e,n=Ne(e,Wxe),r=R.useRef(),i=R.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return jo(()=>{const s=PT(()=>{const c=r.current;o(),c!==r.current&&t(r.current)}),a=Du(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),R.useEffect(()=>{o(),t(r.current)},[t]),C.jsx("div",$({style:Gxe,ref:i},n))}function qxe(e){return Ct("MuiTabScrollButton",e)}const Xxe=It("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Yxe=Xxe,Kxe=["className","slots","slotProps","direction","orientation","disabled"],Qxe=e=>{const{classes:t,orientation:n,disabled:r}=e;return At({root:["root",n,r&&"disabled"]},qxe,t)},Jxe=Ce(Yu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${Yxe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Zxe=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:u}=o,f=Ne(o,Kxe),p=Dn().direction==="rtl",g=$({isRtl:p},o),v=Qxe(g),y=(r=a.StartScrollButtonIcon)!=null?r:zxe,S=(i=a.EndScrollButtonIcon)!=null?i:jxe,w=ti({elementType:y,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),b=ti({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return C.jsx(Jxe,$({component:"div",className:Ue(v.root,s),ref:n,role:null,ownerState:g,tabIndex:null},f,{children:u==="left"?C.jsx(y,$({},w)):C.jsx(S,$({},b))}))}),e1e=Zxe;function t1e(e){return Ct("MuiTabs",e)}const n1e=It("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),VD=n1e,r1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],RH=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,PH=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,L_=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},i1e=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return At({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},t1e,c)},o1e=Ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${VD.scrollButtons}`]:t.scrollButtons},{[`& .${VD.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${VD.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),s1e=Ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),a1e=Ce("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),l1e=Ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),c1e=Ce(Vxe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),OH={},u1e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabs"}),i=Dn(),o=i.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:u=!1,children:f,className:h,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:v="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:w=e1e,scrollButtons:b="auto",selectionFollowsFocus:x,slots:E={},slotProps:I={},TabIndicatorProps:A={},TabScrollButtonProps:k={},textColor:O="primary",value:D,variant:N="standard",visibleScrollbar:H=!1}=r,G=Ne(r,r1e),z=N==="scrollable",L=S==="vertical",F=L?"scrollTop":"scrollLeft",j=L?"top":"left",V=L?"bottom":"right",W=L?"clientHeight":"clientWidth",K=L?"height":"width",X=$({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:v,orientation:S,vertical:L,scrollButtons:b,textColor:O,variant:N,visibleScrollbar:H,fixed:!z,hideScrollbar:z&&!H,scrollableX:z&&!L,scrollableY:z&&L,centered:u&&!z,scrollButtonsHideMobile:!g}),Q=i1e(X),ie=ti({elementType:E.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:X}),ce=ti({elementType:E.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:X}),[ue,se]=R.useState(!1),[J,ae]=R.useState(OH),[le,he]=R.useState(!1),[pe,ve]=R.useState(!1),[ye,xe]=R.useState(!1),[me,be]=R.useState({overflow:"hidden",scrollbarWidth:0}),Ze=new Map,Xe=R.useRef(null),ct=R.useRef(null),Bt=()=>{const Re=Xe.current;let He;if(Re){const Gt=Re.getBoundingClientRect();He={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollLeftNormalized:Hse(Re,i.direction),scrollWidth:Re.scrollWidth,top:Gt.top,bottom:Gt.bottom,left:Gt.left,right:Gt.right}}let xt;if(Re&&D!==!1){const Gt=ct.current.children;if(Gt.length>0){const yn=Gt[Ze.get(D)];xt=yn?yn.getBoundingClientRect():null}}return{tabsMeta:He,tabMeta:xt}},Pe=mo(()=>{const{tabsMeta:Re,tabMeta:He}=Bt();let xt=0,Gt;if(L)Gt="top",He&&Re&&(xt=He.top-Re.top+Re.scrollTop);else if(Gt=o?"right":"left",He&&Re){const Yr=o?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;xt=(o?-1:1)*(He[Gt]-Re[Gt]+Yr)}const yn={[Gt]:xt,[K]:He?He[K]:0};if(isNaN(J[Gt])||isNaN(J[K]))ae(yn);else{const Yr=Math.abs(J[Gt]-yn[Gt]),Hr=Math.abs(J[K]-yn[K]);(Yr>=1||Hr>=1)&&ae(yn)}}),ze=(Re,{animation:He=!0}={})=>{He?Hxe(F,Xe.current,Re,{duration:i.transitions.duration.standard}):Xe.current[F]=Re},st=Re=>{let He=Xe.current[F];L?He+=Re:(He+=Re*(o?-1:1),He*=o&&wX()==="reverse"?-1:1),ze(He)},gt=()=>{const Re=Xe.current[W];let He=0;const xt=Array.from(ct.current.children);for(let Gt=0;GtRe){Gt===0&&(He=Re);break}He+=yn[W]}return He},vt=()=>{st(-1*gt())},_e=()=>{st(gt())},je=R.useCallback(Re=>{be({overflow:null,scrollbarWidth:Re})},[]),Ke=()=>{const Re={};Re.scrollbarSizeListener=z?C.jsx(c1e,{onChange:je,className:Ue(Q.scrollableX,Q.hideScrollbar)}):null;const xt=z&&(b==="auto"&&(le||pe)||b===!0);return Re.scrollButtonStart=xt?C.jsx(w,$({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ie},orientation:S,direction:o?"right":"left",onClick:vt,disabled:!le},k,{className:Ue(Q.scrollButtons,k.className)})):null,Re.scrollButtonEnd=xt?C.jsx(w,$({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:S,direction:o?"left":"right",onClick:_e,disabled:!pe},k,{className:Ue(Q.scrollButtons,k.className)})):null,Re},Fe=mo(Re=>{const{tabsMeta:He,tabMeta:xt}=Bt();if(!(!xt||!He)){if(xt[j]He[V]){const Gt=He[F]+(xt[V]-He[V]);ze(Gt,{animation:Re})}}}),Be=mo(()=>{z&&b!==!1&&xe(!ye)});R.useEffect(()=>{const Re=PT(()=>{Xe.current&&Pe()}),He=Du(Xe.current);He.addEventListener("resize",Re);let xt;return typeof ResizeObserver<"u"&&(xt=new ResizeObserver(Re),Array.from(ct.current.children).forEach(Gt=>{xt.observe(Gt)})),()=>{Re.clear(),He.removeEventListener("resize",Re),xt&&xt.disconnect()}},[Pe]),R.useEffect(()=>{const Re=Array.from(ct.current.children),He=Re.length;if(typeof IntersectionObserver<"u"&&He>0&&z&&b!==!1){const xt=Re[0],Gt=Re[He-1],yn={root:Xe.current,threshold:.99},Yr=ci=>{he(!ci[0].isIntersecting)},Hr=new IntersectionObserver(Yr,yn);Hr.observe(xt);const Wr=ci=>{ve(!ci[0].isIntersecting)},Kr=new IntersectionObserver(Wr,yn);return Kr.observe(Gt),()=>{Hr.disconnect(),Kr.disconnect()}}},[z,b,ye,f==null?void 0:f.length]),R.useEffect(()=>{se(!0)},[]),R.useEffect(()=>{Pe()}),R.useEffect(()=>{Fe(OH!==J)},[Fe,J]),R.useImperativeHandle(c,()=>({updateIndicator:Pe,updateScrollButtons:Be}),[Pe,Be]);const Pt=C.jsx(l1e,$({},A,{className:Ue(Q.indicator,A.className),ownerState:X,style:$({},J,A.style)}));let dt=0;const Ie=R.Children.map(f,Re=>{if(!R.isValidElement(Re))return null;const He=Re.props.value===void 0?dt:Re.props.value;Ze.set(He,dt);const xt=He===D;return dt+=1,R.cloneElement(Re,$({fullWidth:N==="fullWidth",indicator:xt&&!ue&&Pt,selected:xt,selectionFollowsFocus:x,onChange:y,textColor:O,value:He},dt===1&&D===!1&&!Re.props.tabIndex?{tabIndex:0}:{}))}),at=Re=>{const He=ct.current,xt=Fr(He).activeElement;if(xt.getAttribute("role")!=="tab")return;let yn=S==="horizontal"?"ArrowLeft":"ArrowUp",Yr=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(yn="ArrowRight",Yr="ArrowLeft"),Re.key){case yn:Re.preventDefault(),L_(He,xt,PH);break;case Yr:Re.preventDefault(),L_(He,xt,RH);break;case"Home":Re.preventDefault(),L_(He,null,RH);break;case"End":Re.preventDefault(),L_(He,null,PH);break}},$t=Ke();return C.jsxs(o1e,$({className:Ue(Q.root,h),ownerState:X,ref:n,as:p},G,{children:[$t.scrollButtonStart,$t.scrollbarSizeListener,C.jsxs(s1e,{className:Q.scroller,ownerState:X,style:{overflow:me.overflow,[L?`margin${o?"Left":"Right"}`:"marginBottom"]:H?void 0:-me.scrollbarWidth},ref:Xe,children:[C.jsx(a1e,{"aria-label":s,"aria-labelledby":a,"aria-orientation":S==="vertical"?"vertical":null,className:Q.flexContainer,ownerState:X,onKeyDown:at,ref:ct,role:"tablist",children:Ie}),ue&&Pt]}),$t.scrollButtonEnd]}))}),d1e=u1e;function f1e(e){return Ct("MuiTextField",e)}It("MuiTextField",["root"]);const h1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],p1e={standard:RQ,filled:TQ,outlined:BQ},m1e=e=>{const{classes:t}=e;return At({root:["root"]},f1e,t)},g1e=Ce(Nve,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v1e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:a,color:c="primary",defaultValue:u,disabled:f=!1,error:h=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:v,id:y,InputLabelProps:S,inputProps:w,InputProps:b,inputRef:x,label:E,maxRows:I,minRows:A,multiline:k=!1,name:O,onBlur:D,onChange:N,onFocus:H,placeholder:G,required:z=!1,rows:L,select:F=!1,SelectProps:j,type:V,value:W,variant:K="outlined"}=r,X=Ne(r,h1e),Q=$({},r,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:g,multiline:k,required:z,select:F,variant:K}),ie=m1e(Q),ce={};K==="outlined"&&(S&&typeof S.shrink<"u"&&(ce.notched=S.shrink),ce.label=E),F&&((!j||!j.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const ue=d4(y),se=v&&ue?`${ue}-helper-text`:void 0,J=E&&ue?`${ue}-label`:void 0,ae=p1e[K],le=C.jsx(ae,$({"aria-describedby":se,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:g,multiline:k,name:O,rows:L,maxRows:I,minRows:A,type:V,value:W,id:ue,inputRef:x,onBlur:D,onChange:N,onFocus:H,placeholder:G,inputProps:w},ce,b));return C.jsxs(g1e,$({className:Ue(ie.root,a),disabled:f,error:h,fullWidth:g,ref:n,required:z,color:c,variant:K,ownerState:Q},X,{children:[E!=null&&E!==""&&C.jsx(wye,$({htmlFor:ue,id:J},S,{children:E})),F?C.jsx(Pbe,$({"aria-describedby":se,id:ue,labelId:J,value:W,input:le},j,{children:s})):le,v&&C.jsx(Jve,$({id:se},p,{children:v}))]}))}),Ew=v1e;function En({vertical:e,...t}){return C.jsx(ht,{position:"relative",height:"100%",width:"100%",display:"flex",flexDirection:e?"column":"row",...t})}const FQ=zt(C.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z"}),"AccountTreeOutlined"),y1e=zt(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),b1e=zt(C.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),x1e=zt(C.jsx("path",{d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1z"}),"ArrowOutwardRounded"),w1e=zt(C.jsx("path",{d:"M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-3-3c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3-6c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-1.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm3 6c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-4c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm2-3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-3.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z"}),"BlurCircularOutlined"),_1e=zt(C.jsx("path",{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}),"BlurOnOutlined"),S1e=zt(C.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65C8.03 15.48 8 15.23 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18c.31-.08.63-.12.94-.12.32 0 .63.04.95.12l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"}),"BugReportOutlined"),E1e=zt(C.jsx("path",{d:"M17 12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5 5-2.24 5-5zm-5 3c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm-7 0H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}),"CenterFocusStrongOutlined"),C1e=zt(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined"),T1e=zt(C.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"ClearOutlined"),zQ=zt(C.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"CloseOutlined"),k1e=zt(C.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"CodeOutlined"),A1e=zt(C.jsx("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"}),"CropFreeOutlined"),I1e=zt(C.jsx("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleOutlined"),jk=zt(C.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),R1e=zt(C.jsx("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),jQ=zt(C.jsx("path",{d:"M15 22H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h8l6 6v6h-2V9h-5V4H6v16h9v2zm4-.34v-2.24l2.95 2.95 1.41-1.41L20.41 18h2.24v-2H17v5.66h2z"}),"FileOpenOutlined"),P1e=zt(C.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),O1e=zt(C.jsx("path",{d:"M2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.41L2.81 2.81zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.94 10.94C14.86 19.59 13.48 20 12 20zM7.94 5.12 6.49 3.66C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51l-1.46-1.46C19.59 14.86 20 13.48 20 12c0-4.41-3.59-8-8-8-1.48 0-2.86.41-4.06 1.12z"}),"HideSourceOutlined"),M1e=zt(C.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),L1e=zt(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),D1e=zt(C.jsx("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"}),"LabelOutlined"),Cw=zt(C.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}),"LayersOutlined"),UQ=zt(C.jsx("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"ListOutlined"),N1e=zt(C.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertOutlined"),B1e=zt(C.jsx("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"PauseOutlined"),$1e=zt(C.jsx("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}),"PlaceOutlined"),F1e=zt(C.jsx("path",{d:"M10 8.64 15.27 12 10 15.36V8.64M8 5v14l11-7L8 5z"}),"PlayArrowOutlined"),HQ=zt(C.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplayOutlined"),z1e=zt(C.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchOutlined"),j1e=zt(C.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),U1e=zt(C.jsx("path",{d:"m6 18 8.5-6L6 6v12zm2-8.14L11.03 12 8 14.14V9.86zM16 6h2v12h-2z"}),"SkipNextOutlined"),H1e=zt(C.jsx("path",{d:"M6 6h2v12H6zm3.5 6 8.5 6V6l-8.5 6zm6.5 2.14L12.97 12 16 9.86v4.28z"}),"SkipPreviousOutlined"),dE=zt(C.jsx("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortOutlined"),W1e=zt(C.jsx("path",{d:"M16 8v8H8V8h8m2-2H6v12h12V6z"}),"StopOutlined"),G1e=zt(C.jsx("path",{d:"M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"}),"TripOriginOutlined"),MH=zt(C.jsx("path",{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0 6H5v-4h14v4zm0-16H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 6H5V5h14v4z"}),"ViewAgendaOutlined"),WQ=zt(C.jsx("path",{d:"M3 4c0-.55.45-1 1-1h2V1H4C2.34 1 1 2.34 1 4v2h2V4zm0 16v-2H1v2c0 1.66 1.34 3 3 3h2v-2H4c-.55 0-1-.45-1-1zM20 1h-2v2h2c.55 0 1 .45 1 1v2h2V4c0-1.66-1.34-3-3-3zm1 19c0 .55-.45 1-1 1h-2v2h2c1.66 0 3-1.34 3-3v-2h-2v2zm-2-5.13V9.13c0-.72-.38-1.38-1-1.73l-5-2.88c-.31-.18-.65-.27-1-.27s-.69.09-1 .27L6 7.39c-.62.36-1 1.02-1 1.74v5.74c0 .72.38 1.38 1 1.73l5 2.88c.31.18.65.27 1 .27s.69-.09 1-.27l5-2.88c.62-.35 1-1.01 1-1.73zm-8 2.3-4-2.3v-4.63l4 2.33v4.6zm1-6.33L8.04 8.53 12 6.25l3.96 2.28L12 10.84zm5 4.03-4 2.3v-4.6l4-2.33v4.63z"}),"ViewInArOutlined"),V1e=zt(C.jsx("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),q1e=zt(C.jsx("path",{d:"m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"}),"WidgetsOutlined");var xC={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */yC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,w=2,b=4,x=8,E=16,I=32,A=64,k=128,O=256,D=512,N=30,H="...",G=800,z=16,L=1,F=2,j=3,V=1/0,W=9007199254740991,K=17976931348623157e292,X=0/0,Q=4294967295,re=Q-1,ce=Q>>>1,ue=[["ary",k],["bind",S],["bindKey",w],["curry",x],["curryRight",E],["flip",D],["partial",I],["partialRight",A],["rearg",O]],se="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Ze="[object Null]",Xe="[object Object]",ct="[object Promise]",Bt="[object Proxy]",Pe="[object RegExp]",ze="[object Set]",st="[object String]",gt="[object Symbol]",vt="[object Undefined]",_e="[object WeakMap]",je="[object WeakSet]",Ke="[object ArrayBuffer]",Fe="[object DataView]",Be="[object Float32Array]",Pt="[object Float64Array]",dt="[object Int8Array]",Ie="[object Int16Array]",at="[object Int32Array]",$t="[object Uint8Array]",Re="[object Uint8ClampedArray]",He="[object Uint16Array]",xt="[object Uint32Array]",Wt=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,Kr=RegExp(Hr.source),ci=RegExp(Wr.source),hs=/<%-([\s\S]+?)%>/g,td=/<%([\s\S]+?)%>/g,oa=/<%=([\s\S]+?)%>/g,xc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wc=/^\w*$/,Tf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ps=/[\\^$.*+?()[\]{}|]/g,kf=RegExp(ps.source),xo=/^\s+/,_c=/\s/,Li=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ms=/\{\n\/\* \[wrapped with (.+)\] \*/,Af=/,? & /,gs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Na=/[()=,{}\[\]\/\s]/,nd=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lr=/\w*$/,Ll=/^[-+]0x[0-9a-f]+$/i,Dl=/^0b[01]+$/i,wo=/^\[object .+?Constructor\]$/,Uv=/^0o[0-7]+$/i,Hv=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=/($^)/,QA=/['\n\r\u2028\u2029\\]/g,Sc="\\ud800-\\udfff",JA="\\u0300-\\u036f",ZA="\\ufe20-\\ufe2f",eI="\\u20d0-\\u20ff",Wv=JA+ZA+eI,Gv="\\u2700-\\u27bf",Vv="a-z\\xdf-\\xf6\\xf8-\\xff",tI="\\xac\\xb1\\xd7\\xf7",nI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rI="\\u2000-\\u206f",iI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qv="A-Z\\xc0-\\xd6\\xd8-\\xde",Xv="\\ufe0e\\ufe0f",Yv=tI+nI+rI+iI,If="['’]",oI="["+Sc+"]",Kv="["+Yv+"]",Ec="["+Wv+"]",Qv="\\d+",sI="["+Gv+"]",Jv="["+Vv+"]",Zv="[^"+Sc+Yv+Qv+Gv+Vv+qv+"]",Rf="\\ud83c[\\udffb-\\udfff]",aI="(?:"+Ec+"|"+Rf+")",ey="[^"+Sc+"]",Pf="(?:\\ud83c[\\udde6-\\uddff]){2}",Of="[\\ud800-\\udbff][\\udc00-\\udfff]",vs="["+qv+"]",ty="\\u200d",ny="(?:"+Jv+"|"+Zv+")",lI="(?:"+vs+"|"+Zv+")",ry="(?:"+If+"(?:d|ll|m|re|s|t|ve))?",iy="(?:"+If+"(?:D|LL|M|RE|S|T|VE))?",oy=aI+"?",sy="["+Xv+"]?",cI="(?:"+ty+"(?:"+[ey,Pf,Of].join("|")+")"+sy+oy+")*",uI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ay=sy+oy+cI,fI="(?:"+[sI,Pf,Of].join("|")+")"+ay,hI="(?:"+[ey+Ec+"?",Ec,Pf,Of,oI].join("|")+")",pI=RegExp(If,"g"),mI=RegExp(Ec,"g"),Mf=RegExp(Rf+"(?="+Rf+")|"+hI+ay,"g"),gI=RegExp([vs+"?"+Jv+"+"+ry+"(?="+[Kv,vs,"$"].join("|")+")",lI+"+"+iy+"(?="+[Kv,vs+ny,"$"].join("|")+")",vs+"?"+ny+"+"+ry,vs+"+"+iy,dI,uI,Qv,fI].join("|"),"g"),vI=RegExp("["+ty+Sc+Wv+Xv+"]"),yI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xI=-1,Mt={};Mt[Be]=Mt[Pt]=Mt[dt]=Mt[Ie]=Mt[at]=Mt[$t]=Mt[Re]=Mt[He]=Mt[xt]=!0,Mt[se]=Mt[J]=Mt[Ke]=Mt[le]=Mt[Fe]=Mt[he]=Mt[ve]=Mt[ye]=Mt[me]=Mt[be]=Mt[Xe]=Mt[Pe]=Mt[ze]=Mt[st]=Mt[_e]=!1;var Tt={};Tt[se]=Tt[J]=Tt[Ke]=Tt[Fe]=Tt[le]=Tt[he]=Tt[Be]=Tt[Pt]=Tt[dt]=Tt[Ie]=Tt[at]=Tt[me]=Tt[be]=Tt[Xe]=Tt[Pe]=Tt[ze]=Tt[st]=Tt[gt]=Tt[$t]=Tt[Re]=Tt[He]=Tt[xt]=!0,Tt[ve]=Tt[ye]=Tt[_e]=!1;var wI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_I={"&":"&","<":"<",">":">",'"':""","'":"'"},SI={"&":"&","<":"<",">":">",""":'"',"'":"'"},EI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},CI=parseFloat,TI=parseInt,ly=typeof qt=="object"&&qt&&qt.Object===Object&&qt,kI=typeof self=="object"&&self&&self.Object===Object&&self,pn=ly||kI||Function("return this")(),Lf=t&&!t.nodeType&&t,_o=Lf&&!0&&e&&!e.nodeType&&e,cy=_o&&_o.exports===Lf,Df=cy&&ly.process,ur=function(){try{var q=_o&&_o.require&&_o.require("util").types;return q||Df&&Df.binding&&Df.binding("util")}catch{}}(),uy=ur&&ur.isArrayBuffer,dy=ur&&ur.isDate,fy=ur&&ur.isMap,hy=ur&&ur.isRegExp,py=ur&&ur.isSet,my=ur&&ur.isTypedArray;function Qn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function AI(q,ee,Z,ge){for(var De=-1,ft=q==null?0:q.length;++De-1}function Nf(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function Sy(q,ee){for(var Z=q.length;Z--&&ys(ee,q[Z],0)>-1;);return Z}function BI(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var $I=zf(wI),FI=zf(_I);function zI(q){return"\\"+EI[q]}function jI(q,ee){return q==null?n:q[ee]}function bs(q){return vI.test(q)}function UI(q){return yI.test(q)}function HI(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function Wf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Ey(q,ee){return function(Z){return q(ee(Z))}}function Bi(q,ee){for(var Z=-1,ge=q.length,De=0,ft=[];++Z-1}function RR(l,d){var m=this.__data__,_=Uc(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}ui.prototype.clear=TR,ui.prototype.delete=kR,ui.prototype.get=AR,ui.prototype.has=IR,ui.prototype.set=RR;function di(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function pr(l,d,m,_,T,M){var B,U=d&h,Y=d&p,te=d&g;if(m&&(B=T?m(l,_,T,M):m(l)),B!==n)return B;if(!Ft(l))return l;var ne=$e(l);if(ne){if(B=LP(l),!U)return Nn(l,B)}else{var oe=_n(l),fe=oe==ye||oe==xe;if(Hi(l))return s0(l,U);if(oe==Xe||oe==se||fe&&!T){if(B=Y||fe?{}:C0(l),!U)return Y?SP(l,VR(B,l)):_P(l,Ny(B,l))}else{if(!Tt[oe])return T?l:{};B=DP(l,oe,U)}}M||(M=new Rr);var we=M.get(l);if(we)return we;M.set(l,B),eb(l)?l.forEach(function(Ae){B.add(pr(Ae,d,m,Ae,l,M))}):J0(l)&&l.forEach(function(Ae,Je){B.set(Je,pr(Ae,d,m,Je,l,M))});var ke=te?Y?gh:mh:Y?$n:sn,qe=ne?n:ke(l);return dr(qe||l,function(Ae,Je){qe&&(Je=Ae,Ae=l[Je]),Ha(B,Je,pr(Ae,d,m,Je,l,M))}),B}function qR(l){var d=sn(l);return function(m){return By(m,l,d)}}function By(l,d,m){var _=m.length;if(l==null)return!_;for(l=St(l);_--;){var T=m[_],M=d[T],B=l[T];if(B===n&&!(T in l)||!M(B))return!1}return!0}function $y(l,d,m){if(typeof l!="function")throw new fr(s);return Ka(function(){l.apply(n,m)},d)}function Wa(l,d,m,_){var T=-1,M=Cc,B=!0,U=l.length,Y=[],te=d.length;if(!U)return Y;m&&(d=Nt(d,Jn(m))),_?(M=Nf,B=!1):d.length>=i&&(M=Ba,B=!1,d=new Co(d));e:for(;++TT?0:T+m),_=_===n||_>T?T:Ge(_),_<0&&(_+=T),_=m>_?0:nb(_);m<_;)l[m++]=d;return l}function zy(l,d){var m=[];return Fi(l,function(_,T,M){d(_,T,M)&&m.push(_)}),m}function mn(l,d,m,_,T){var M=-1,B=l.length;for(m||(m=BP),T||(T=[]);++M0&&m(U)?d>1?mn(U,d-1,m,_,T):Ni(T,U):_||(T[T.length]=U)}return T}var Qf=f0(),jy=f0(!0);function Qr(l,d){return l&&Qf(l,d,sn)}function Jf(l,d){return l&&jy(l,d,sn)}function Wc(l,d){return Di(d,function(m){return gi(l[m])})}function ko(l,d){d=ji(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Zr(d[m++])];return m&&m==_?l:n}function Uy(l,d,m){var _=d(l);return $e(l)?_:Ni(_,m(l))}function In(l){return l==null?l===n?vt:Ze:So&&So in St(l)?PP(l):WP(l)}function Zf(l,d){return l>d}function KR(l,d){return l!=null&&bt.call(l,d)}function QR(l,d){return l!=null&&d in St(l)}function JR(l,d,m){return l>=wn(d,m)&&l=120&&ne.length>=120)?new Co(B&&ne):n}ne=l[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==l&&Dc.call(U,Y,1),Dc.call(l,Y,1);return l}function Jy(l,d){for(var m=l?d.length:0,_=m-1;m--;){var T=d[m];if(m==_||T!==M){var M=T;mi(T)?Dc.call(l,T,1):lh(l,T)}}return l}function oh(l,d){return l+$c(Oy()*(d-l+1))}function dP(l,d,m,_){for(var T=-1,M=nn(Bc((d-l)/(m||1)),0),B=Z(M);M--;)B[_?M:++T]=l,l+=m;return B}function sh(l,d){var m="";if(!l||d<1||d>W)return m;do d%2&&(m+=l),d=$c(d/2),d&&(l+=l);while(d);return m}function Ye(l,d){return Sh(A0(l,d,Fn),l+"")}function fP(l){return Dy(Rs(l))}function hP(l,d){var m=Rs(l);return tu(m,To(d,0,m.length))}function qa(l,d,m,_){if(!Ft(l))return l;d=ji(d,l);for(var T=-1,M=d.length,B=M-1,U=l;U!=null&&++TT?0:T+d),m=m>T?T:m,m<0&&(m+=T),T=d>m?0:m-d>>>0,d>>>=0;for(var M=Z(T);++_>>1,B=l[M];B!==null&&!er(B)&&(m?B<=d:B=i){var te=d?null:kP(l);if(te)return kc(te);B=!1,T=Ba,Y=new Co}else Y=d?[]:U;e:for(;++_=_?l:mr(l,d,m)}var o0=iR||function(l){return pn.clearTimeout(l)};function s0(l,d){if(d)return l.slice();var m=l.length,_=ky?ky(m):new l.constructor(m);return l.copy(_),_}function fh(l){var d=new l.constructor(l.byteLength);return new Mc(d).set(new Mc(l)),d}function yP(l,d){var m=d?fh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function bP(l){var d=new l.constructor(l.source,lr.exec(l));return d.lastIndex=l.lastIndex,d}function xP(l){return Ua?St(Ua.call(l)):{}}function a0(l,d){var m=d?fh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function l0(l,d){if(l!==d){var m=l!==n,_=l===null,T=l===l,M=er(l),B=d!==n,U=d===null,Y=d===d,te=er(d);if(!U&&!te&&!M&&l>d||M&&B&&Y&&!U&&!te||_&&B&&Y||!m&&Y||!T)return 1;if(!_&&!M&&!te&&l=U)return Y;var te=m[_];return Y*(te=="desc"?-1:1)}}return l.index-d.index}function c0(l,d,m,_){for(var T=-1,M=l.length,B=m.length,U=-1,Y=d.length,te=nn(M-B,0),ne=Z(Y+te),oe=!_;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=l.length>3&&typeof M=="function"?(T--,M):n,B&&Rn(m[0],m[1],B)&&(M=T<3?n:M,T=1),d=St(d);++_-1?T[M?d[B]:B]:n}}function m0(l){return pi(function(d){var m=d.length,_=m,T=hr.prototype.thru;for(l&&d.reverse();_--;){var M=d[_];if(typeof M!="function")throw new fr(s);if(T&&!B&&Zc(M)=="wrapper")var B=new hr([],!0)}for(_=B?_:m;++_1&&it.reverse(),ne&&YU))return!1;var te=M.get(l),ne=M.get(d);if(te&&ne)return te==d&&ne==l;var oe=-1,fe=!0,we=m&y?new Co:n;for(M.set(l,d),M.set(d,l);++oe1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Li,`{ + */xC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,w=2,b=4,x=8,E=16,I=32,A=64,k=128,O=256,D=512,N=30,H="...",G=800,z=16,L=1,F=2,j=3,V=1/0,W=9007199254740991,K=17976931348623157e292,X=0/0,Q=4294967295,ie=Q-1,ce=Q>>>1,ue=[["ary",k],["bind",S],["bindKey",w],["curry",x],["curryRight",E],["flip",D],["partial",I],["partialRight",A],["rearg",O]],se="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Ze="[object Null]",Xe="[object Object]",ct="[object Promise]",Bt="[object Proxy]",Pe="[object RegExp]",ze="[object Set]",st="[object String]",gt="[object Symbol]",vt="[object Undefined]",_e="[object WeakMap]",je="[object WeakSet]",Ke="[object ArrayBuffer]",Fe="[object DataView]",Be="[object Float32Array]",Pt="[object Float64Array]",dt="[object Int8Array]",Ie="[object Int16Array]",at="[object Int32Array]",$t="[object Uint8Array]",Re="[object Uint8ClampedArray]",He="[object Uint16Array]",xt="[object Uint32Array]",Gt=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,Kr=RegExp(Hr.source),ci=RegExp(Wr.source),ps=/<%-([\s\S]+?)%>/g,ed=/<%([\s\S]+?)%>/g,sa=/<%=([\s\S]+?)%>/g,wc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_c=/^\w*$/,kf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/[\\^$.*+?()[\]{}|]/g,Af=RegExp(ms.source),xo=/^\s+/,Sc=/\s/,Di=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gs=/\{\n\/\* \[wrapped with (.+)\] \*/,If=/,? & /,vs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Na=/[()=,{}\[\]\/\s]/,td=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lr=/\w*$/,Ll=/^[-+]0x[0-9a-f]+$/i,Dl=/^0b[01]+$/i,wo=/^\[object .+?Constructor\]$/,jv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=/($^)/,JA=/['\n\r\u2028\u2029\\]/g,Ec="\\ud800-\\udfff",ZA="\\u0300-\\u036f",eI="\\ufe20-\\ufe2f",tI="\\u20d0-\\u20ff",Hv=ZA+eI+tI,Wv="\\u2700-\\u27bf",Gv="a-z\\xdf-\\xf6\\xf8-\\xff",nI="\\xac\\xb1\\xd7\\xf7",rI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",iI="\\u2000-\\u206f",oI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vv="A-Z\\xc0-\\xd6\\xd8-\\xde",qv="\\ufe0e\\ufe0f",Xv=nI+rI+iI+oI,Rf="['’]",sI="["+Ec+"]",Yv="["+Xv+"]",Cc="["+Hv+"]",Kv="\\d+",aI="["+Wv+"]",Qv="["+Gv+"]",Jv="[^"+Ec+Xv+Kv+Wv+Gv+Vv+"]",Pf="\\ud83c[\\udffb-\\udfff]",lI="(?:"+Cc+"|"+Pf+")",Zv="[^"+Ec+"]",Of="(?:\\ud83c[\\udde6-\\uddff]){2}",Mf="[\\ud800-\\udbff][\\udc00-\\udfff]",ys="["+Vv+"]",ey="\\u200d",ty="(?:"+Qv+"|"+Jv+")",cI="(?:"+ys+"|"+Jv+")",ny="(?:"+Rf+"(?:d|ll|m|re|s|t|ve))?",ry="(?:"+Rf+"(?:D|LL|M|RE|S|T|VE))?",iy=lI+"?",oy="["+qv+"]?",uI="(?:"+ey+"(?:"+[Zv,Of,Mf].join("|")+")"+oy+iy+")*",dI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sy=oy+iy+uI,hI="(?:"+[aI,Of,Mf].join("|")+")"+sy,pI="(?:"+[Zv+Cc+"?",Cc,Of,Mf,sI].join("|")+")",mI=RegExp(Rf,"g"),gI=RegExp(Cc,"g"),Lf=RegExp(Pf+"(?="+Pf+")|"+pI+sy,"g"),vI=RegExp([ys+"?"+Qv+"+"+ny+"(?="+[Yv,ys,"$"].join("|")+")",cI+"+"+ry+"(?="+[Yv,ys+ty,"$"].join("|")+")",ys+"?"+ty+"+"+ny,ys+"+"+ry,fI,dI,Kv,hI].join("|"),"g"),yI=RegExp("["+ey+Ec+Hv+qv+"]"),bI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wI=-1,Mt={};Mt[Be]=Mt[Pt]=Mt[dt]=Mt[Ie]=Mt[at]=Mt[$t]=Mt[Re]=Mt[He]=Mt[xt]=!0,Mt[se]=Mt[J]=Mt[Ke]=Mt[le]=Mt[Fe]=Mt[he]=Mt[ve]=Mt[ye]=Mt[me]=Mt[be]=Mt[Xe]=Mt[Pe]=Mt[ze]=Mt[st]=Mt[_e]=!1;var Tt={};Tt[se]=Tt[J]=Tt[Ke]=Tt[Fe]=Tt[le]=Tt[he]=Tt[Be]=Tt[Pt]=Tt[dt]=Tt[Ie]=Tt[at]=Tt[me]=Tt[be]=Tt[Xe]=Tt[Pe]=Tt[ze]=Tt[st]=Tt[gt]=Tt[$t]=Tt[Re]=Tt[He]=Tt[xt]=!0,Tt[ve]=Tt[ye]=Tt[_e]=!1;var _I={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},SI={"&":"&","<":"<",">":">",'"':""","'":"'"},EI={"&":"&","<":"<",">":">",""":'"',"'":"'"},CI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},TI=parseFloat,kI=parseInt,ay=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,AI=typeof self=="object"&&self&&self.Object===Object&&self,pn=ay||AI||Function("return this")(),Df=t&&!t.nodeType&&t,_o=Df&&!0&&e&&!e.nodeType&&e,ly=_o&&_o.exports===Df,Nf=ly&&ay.process,ur=function(){try{var q=_o&&_o.require&&_o.require("util").types;return q||Nf&&Nf.binding&&Nf.binding("util")}catch{}}(),cy=ur&&ur.isArrayBuffer,uy=ur&&ur.isDate,dy=ur&&ur.isMap,fy=ur&&ur.isRegExp,hy=ur&&ur.isSet,py=ur&&ur.isTypedArray;function Qn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function II(q,ee,Z,ge){for(var De=-1,ft=q==null?0:q.length;++De-1}function Bf(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function _y(q,ee){for(var Z=q.length;Z--&&bs(ee,q[Z],0)>-1;);return Z}function $I(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var FI=jf(_I),zI=jf(SI);function jI(q){return"\\"+CI[q]}function UI(q,ee){return q==null?n:q[ee]}function xs(q){return yI.test(q)}function HI(q){return bI.test(q)}function WI(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function Gf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Sy(q,ee){return function(Z){return q(ee(Z))}}function $i(q,ee){for(var Z=-1,ge=q.length,De=0,ft=[];++Z-1}function PR(l,d){var m=this.__data__,_=Hc(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}ui.prototype.clear=kR,ui.prototype.delete=AR,ui.prototype.get=IR,ui.prototype.has=RR,ui.prototype.set=PR;function di(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function pr(l,d,m,_,T,M){var B,U=d&h,Y=d&p,ne=d&g;if(m&&(B=T?m(l,_,T,M):m(l)),B!==n)return B;if(!Ft(l))return l;var re=$e(l);if(re){if(B=DP(l),!U)return Nn(l,B)}else{var oe=_n(l),fe=oe==ye||oe==xe;if(Wi(l))return o0(l,U);if(oe==Xe||oe==se||fe&&!T){if(B=Y||fe?{}:E0(l),!U)return Y?EP(l,qR(B,l)):SP(l,Dy(B,l))}else{if(!Tt[oe])return T?l:{};B=NP(l,oe,U)}}M||(M=new Rr);var we=M.get(l);if(we)return we;M.set(l,B),Z0(l)?l.forEach(function(Ae){B.add(pr(Ae,d,m,Ae,l,M))}):Q0(l)&&l.forEach(function(Ae,Je){B.set(Je,pr(Ae,d,m,Je,l,M))});var ke=ne?Y?vh:gh:Y?$n:sn,qe=re?n:ke(l);return dr(qe||l,function(Ae,Je){qe&&(Je=Ae,Ae=l[Je]),Ha(B,Je,pr(Ae,d,m,Je,l,M))}),B}function XR(l){var d=sn(l);return function(m){return Ny(m,l,d)}}function Ny(l,d,m){var _=m.length;if(l==null)return!_;for(l=St(l);_--;){var T=m[_],M=d[T],B=l[T];if(B===n&&!(T in l)||!M(B))return!1}return!0}function By(l,d,m){if(typeof l!="function")throw new fr(s);return Ka(function(){l.apply(n,m)},d)}function Wa(l,d,m,_){var T=-1,M=Tc,B=!0,U=l.length,Y=[],ne=d.length;if(!U)return Y;m&&(d=Nt(d,Jn(m))),_?(M=Bf,B=!1):d.length>=i&&(M=Ba,B=!1,d=new Co(d));e:for(;++TT?0:T+m),_=_===n||_>T?T:Ge(_),_<0&&(_+=T),_=m>_?0:tb(_);m<_;)l[m++]=d;return l}function Fy(l,d){var m=[];return zi(l,function(_,T,M){d(_,T,M)&&m.push(_)}),m}function mn(l,d,m,_,T){var M=-1,B=l.length;for(m||(m=$P),T||(T=[]);++M0&&m(U)?d>1?mn(U,d-1,m,_,T):Bi(T,U):_||(T[T.length]=U)}return T}var Jf=d0(),zy=d0(!0);function Qr(l,d){return l&&Jf(l,d,sn)}function Zf(l,d){return l&&zy(l,d,sn)}function Gc(l,d){return Ni(d,function(m){return gi(l[m])})}function ko(l,d){d=Ui(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Zr(d[m++])];return m&&m==_?l:n}function jy(l,d,m){var _=d(l);return $e(l)?_:Bi(_,m(l))}function In(l){return l==null?l===n?vt:Ze:So&&So in St(l)?OP(l):GP(l)}function eh(l,d){return l>d}function QR(l,d){return l!=null&&bt.call(l,d)}function JR(l,d){return l!=null&&d in St(l)}function ZR(l,d,m){return l>=wn(d,m)&&l=120&&re.length>=120)?new Co(B&&re):n}re=l[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==l&&Nc.call(U,Y,1),Nc.call(l,Y,1);return l}function Qy(l,d){for(var m=l?d.length:0,_=m-1;m--;){var T=d[m];if(m==_||T!==M){var M=T;mi(T)?Nc.call(l,T,1):ch(l,T)}}return l}function sh(l,d){return l+Fc(Py()*(d-l+1))}function fP(l,d,m,_){for(var T=-1,M=nn($c((d-l)/(m||1)),0),B=Z(M);M--;)B[_?M:++T]=l,l+=m;return B}function ah(l,d){var m="";if(!l||d<1||d>W)return m;do d%2&&(m+=l),d=Fc(d/2),d&&(l+=l);while(d);return m}function Ye(l,d){return Eh(k0(l,d,Fn),l+"")}function hP(l){return Ly(Ps(l))}function pP(l,d){var m=Ps(l);return nu(m,To(d,0,m.length))}function qa(l,d,m,_){if(!Ft(l))return l;d=Ui(d,l);for(var T=-1,M=d.length,B=M-1,U=l;U!=null&&++TT?0:T+d),m=m>T?T:m,m<0&&(m+=T),T=d>m?0:m-d>>>0,d>>>=0;for(var M=Z(T);++_>>1,B=l[M];B!==null&&!er(B)&&(m?B<=d:B=i){var ne=d?null:AP(l);if(ne)return Ac(ne);B=!1,T=Ba,Y=new Co}else Y=d?[]:U;e:for(;++_=_?l:mr(l,d,m)}var i0=oR||function(l){return pn.clearTimeout(l)};function o0(l,d){if(d)return l.slice();var m=l.length,_=Ty?Ty(m):new l.constructor(m);return l.copy(_),_}function hh(l){var d=new l.constructor(l.byteLength);return new Lc(d).set(new Lc(l)),d}function bP(l,d){var m=d?hh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function xP(l){var d=new l.constructor(l.source,lr.exec(l));return d.lastIndex=l.lastIndex,d}function wP(l){return Ua?St(Ua.call(l)):{}}function s0(l,d){var m=d?hh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function a0(l,d){if(l!==d){var m=l!==n,_=l===null,T=l===l,M=er(l),B=d!==n,U=d===null,Y=d===d,ne=er(d);if(!U&&!ne&&!M&&l>d||M&&B&&Y&&!U&&!ne||_&&B&&Y||!m&&Y||!T)return 1;if(!_&&!M&&!ne&&l=U)return Y;var ne=m[_];return Y*(ne=="desc"?-1:1)}}return l.index-d.index}function l0(l,d,m,_){for(var T=-1,M=l.length,B=m.length,U=-1,Y=d.length,ne=nn(M-B,0),re=Z(Y+ne),oe=!_;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=l.length>3&&typeof M=="function"?(T--,M):n,B&&Rn(m[0],m[1],B)&&(M=T<3?n:M,T=1),d=St(d);++_-1?T[M?d[B]:B]:n}}function p0(l){return pi(function(d){var m=d.length,_=m,T=hr.prototype.thru;for(l&&d.reverse();_--;){var M=d[_];if(typeof M!="function")throw new fr(s);if(T&&!B&&eu(M)=="wrapper")var B=new hr([],!0)}for(_=B?_:m;++_1&&it.reverse(),re&&YU))return!1;var ne=M.get(l),re=M.get(d);if(ne&&re)return ne==d&&re==l;var oe=-1,fe=!0,we=m&y?new Co:n;for(M.set(l,d),M.set(d,l);++oe1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Di,`{ /* [wrapped with `+d+`] */ -`)}function BP(l){return $e(l)||Ro(l)||!!(Ry&&l&&l[Ry])}function mi(l,d){var m=typeof l;return d=d??W,!!d&&(m=="number"||m!="symbol"&&Hv.test(l))&&l>-1&&l%1==0&&l0){if(++d>=G)return arguments[0]}else d=0;return l.apply(n,arguments)}}function tu(l,d){var m=-1,_=l.length,T=_-1;for(d=d===n?_:d;++m1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,z0(l,m)});function j0(l){var d=R(l);return d.__chain__=!0,d}function X2(l,d){return d(l),l}function nu(l,d){return d(l)}var Y2=pi(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,T=function(M){return Kf(M,l)};return d>1||this.__actions__.length||!(_ instanceof et)||!mi(m)?this.thru(T):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:nu,args:[T],thisArg:n}),new hr(_,this.__chain__).thru(function(M){return d&&!M.length&&M.push(n),M}))});function K2(){return j0(this)}function Q2(){return new hr(this.value(),this.__chain__)}function J2(){this.__values__===n&&(this.__values__=tb(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function Z2(){return this}function eO(l){for(var d,m=this;m instanceof jc;){var _=L0(m);_.__index__=0,_.__values__=n,d?T.__wrapped__=_:d=_;var T=_;m=m.__wrapped__}return T.__wrapped__=l,d}function tO(){var l=this.__wrapped__;if(l instanceof et){var d=l;return this.__actions__.length&&(d=new et(this)),d=d.reverse(),d.__actions__.push({func:nu,args:[Eh],thisArg:n}),new hr(d,this.__chain__)}return this.thru(Eh)}function nO(){return r0(this.__wrapped__,this.__actions__)}var rO=Xc(function(l,d,m){bt.call(l,m)?++l[m]:fi(l,m,1)});function iO(l,d,m){var _=$e(l)?gy:XR;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}function oO(l,d){var m=$e(l)?Di:zy;return m(l,Te(d,3))}var sO=p0(D0),aO=p0(N0);function lO(l,d){return mn(ru(l,d),1)}function cO(l,d){return mn(ru(l,d),V)}function uO(l,d,m){return m=m===n?1:Ge(m),mn(ru(l,d),m)}function U0(l,d){var m=$e(l)?dr:Fi;return m(l,Te(d,3))}function H0(l,d){var m=$e(l)?II:Fy;return m(l,Te(d,3))}var dO=Xc(function(l,d,m){bt.call(l,m)?l[m].push(d):fi(l,m,[d])});function fO(l,d,m,_){l=Bn(l)?l:Rs(l),m=m&&!_?Ge(m):0;var T=l.length;return m<0&&(m=nn(T+m,0)),lu(l)?m<=T&&l.indexOf(d,m)>-1:!!T&&ys(l,d,m)>-1}var hO=Ye(function(l,d,m){var _=-1,T=typeof d=="function",M=Bn(l)?Z(l.length):[];return Fi(l,function(B){M[++_]=T?Qn(d,B,m):Ga(B,d,m)}),M}),pO=Xc(function(l,d,m){fi(l,m,d)});function ru(l,d){var m=$e(l)?Nt:Vy;return m(l,Te(d,3))}function mO(l,d,m,_){return l==null?[]:($e(d)||(d=d==null?[]:[d]),m=_?n:m,$e(m)||(m=m==null?[]:[m]),Ky(l,d,m))}var gO=Xc(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function vO(l,d,m){var _=$e(l)?Bf:xy,T=arguments.length<3;return _(l,Te(d,4),m,T,Fi)}function yO(l,d,m){var _=$e(l)?RI:xy,T=arguments.length<3;return _(l,Te(d,4),m,T,Fy)}function bO(l,d){var m=$e(l)?Di:zy;return m(l,su(Te(d,3)))}function xO(l){var d=$e(l)?Dy:fP;return d(l)}function wO(l,d,m){(m?Rn(l,d,m):d===n)?d=1:d=Ge(d);var _=$e(l)?HR:hP;return _(l,d)}function _O(l){var d=$e(l)?WR:mP;return d(l)}function SO(l){if(l==null)return 0;if(Bn(l))return lu(l)?xs(l):l.length;var d=_n(l);return d==me||d==ze?l.size:nh(l).length}function EO(l,d,m){var _=$e(l)?$f:gP;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}var CO=Ye(function(l,d){if(l==null)return[];var m=d.length;return m>1&&Rn(l,d[0],d[1])?d=[]:m>2&&Rn(d[0],d[1],d[2])&&(d=[d[0]]),Ky(l,mn(d,1),[])}),iu=oR||function(){return pn.Date.now()};function TO(l,d){if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){if(--l<1)return d.apply(this,arguments)}}function W0(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,hi(l,k,n,n,n,n,d)}function G0(l,d){var m;if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var Th=Ye(function(l,d,m){var _=S;if(m.length){var T=Bi(m,As(Th));_|=I}return hi(l,_,d,m,T)}),V0=Ye(function(l,d,m){var _=S|w;if(m.length){var T=Bi(m,As(V0));_|=I}return hi(d,_,l,m,T)});function q0(l,d,m){d=m?n:d;var _=hi(l,x,n,n,n,n,n,d);return _.placeholder=q0.placeholder,_}function X0(l,d,m){d=m?n:d;var _=hi(l,E,n,n,n,n,n,d);return _.placeholder=X0.placeholder,_}function Y0(l,d,m){var _,T,M,B,U,Y,te=0,ne=!1,oe=!1,fe=!0;if(typeof l!="function")throw new fr(s);d=vr(d)||0,Ft(m)&&(ne=!!m.leading,oe="maxWait"in m,M=oe?nn(vr(m.maxWait)||0,d):M,fe="trailing"in m?!!m.trailing:fe);function we(Kt){var Or=_,yi=T;return _=T=n,te=Kt,B=l.apply(yi,Or),B}function ke(Kt){return te=Kt,U=Ka(Je,d),ne?we(Kt):B}function qe(Kt){var Or=Kt-Y,yi=Kt-te,pb=d-Or;return oe?wn(pb,M-yi):pb}function Ae(Kt){var Or=Kt-Y,yi=Kt-te;return Y===n||Or>=d||Or<0||oe&&yi>=M}function Je(){var Kt=iu();if(Ae(Kt))return it(Kt);U=Ka(Je,qe(Kt))}function it(Kt){return U=n,fe&&_?we(Kt):(_=T=n,B)}function tr(){U!==n&&o0(U),te=0,_=Y=T=U=n}function Pn(){return U===n?B:it(iu())}function nr(){var Kt=iu(),Or=Ae(Kt);if(_=arguments,T=this,Y=Kt,Or){if(U===n)return ke(Y);if(oe)return o0(U),U=Ka(Je,d),we(Y)}return U===n&&(U=Ka(Je,d)),B}return nr.cancel=tr,nr.flush=Pn,nr}var kO=Ye(function(l,d){return $y(l,1,d)}),AO=Ye(function(l,d,m){return $y(l,vr(d)||0,m)});function IO(l){return hi(l,D)}function ou(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new fr(s);var m=function(){var _=arguments,T=d?d.apply(this,_):_[0],M=m.cache;if(M.has(T))return M.get(T);var B=l.apply(this,_);return m.cache=M.set(T,B)||M,B};return m.cache=new(ou.Cache||di),m}ou.Cache=di;function su(l){if(typeof l!="function")throw new fr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function RO(l){return G0(2,l)}var PO=vP(function(l,d){d=d.length==1&&$e(d[0])?Nt(d[0],Jn(Te())):Nt(mn(d,1),Jn(Te()));var m=d.length;return Ye(function(_){for(var T=-1,M=wn(_.length,m);++T=d}),Ro=Hy(function(){return arguments}())?Hy:function(l){return jt(l)&&bt.call(l,"callee")&&!Iy.call(l,"callee")},$e=Z.isArray,VO=uy?Jn(uy):eP;function Bn(l){return l!=null&&au(l.length)&&!gi(l)}function Yt(l){return jt(l)&&Bn(l)}function qO(l){return l===!0||l===!1||jt(l)&&In(l)==le}var Hi=aR||$h,XO=dy?Jn(dy):tP;function YO(l){return jt(l)&&l.nodeType===1&&!Qa(l)}function KO(l){if(l==null)return!0;if(Bn(l)&&($e(l)||typeof l=="string"||typeof l.splice=="function"||Hi(l)||Is(l)||Ro(l)))return!l.length;var d=_n(l);if(d==me||d==ze)return!l.size;if(Ya(l))return!nh(l).length;for(var m in l)if(bt.call(l,m))return!1;return!0}function QO(l,d){return Va(l,d)}function JO(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?Va(l,d,n,m):!!_}function Ah(l){if(!jt(l))return!1;var d=In(l);return d==ve||d==pe||typeof l.message=="string"&&typeof l.name=="string"&&!Qa(l)}function ZO(l){return typeof l=="number"&&Py(l)}function gi(l){if(!Ft(l))return!1;var d=In(l);return d==ye||d==xe||d==ae||d==Bt}function Q0(l){return typeof l=="number"&&l==Ge(l)}function au(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Ft(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function jt(l){return l!=null&&typeof l=="object"}var J0=fy?Jn(fy):rP;function eM(l,d){return l===d||th(l,d,yh(d))}function tM(l,d,m){return m=typeof m=="function"?m:n,th(l,d,yh(d),m)}function nM(l){return Z0(l)&&l!=+l}function rM(l){if(zP(l))throw new De(o);return Wy(l)}function iM(l){return l===null}function oM(l){return l==null}function Z0(l){return typeof l=="number"||jt(l)&&In(l)==be}function Qa(l){if(!jt(l)||In(l)!=Xe)return!1;var d=Lc(l);if(d===null)return!0;var m=bt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Rc.call(m)==tR}var Ih=hy?Jn(hy):iP;function sM(l){return Q0(l)&&l>=-W&&l<=W}var eb=py?Jn(py):oP;function lu(l){return typeof l=="string"||!$e(l)&&jt(l)&&In(l)==st}function er(l){return typeof l=="symbol"||jt(l)&&In(l)==gt}var Is=my?Jn(my):sP;function aM(l){return l===n}function lM(l){return jt(l)&&_n(l)==_e}function cM(l){return jt(l)&&In(l)==je}var uM=Jc(rh),dM=Jc(function(l,d){return l<=d});function tb(l){if(!l)return[];if(Bn(l))return lu(l)?Ir(l):Nn(l);if($a&&l[$a])return HI(l[$a]());var d=_n(l),m=d==me?Wf:d==ze?kc:Rs;return m(l)}function vi(l){if(!l)return l===0?l:0;if(l=vr(l),l===V||l===-V){var d=l<0?-1:1;return d*K}return l===l?l:0}function Ge(l){var d=vi(l),m=d%1;return d===d?m?d-m:d:0}function nb(l){return l?To(Ge(l),0,Q):0}function vr(l){if(typeof l=="number")return l;if(er(l))return X;if(Ft(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Ft(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=wy(l);var m=Dl.test(l);return m||Uv.test(l)?TI(l.slice(2),m?2:8):Ll.test(l)?X:+l}function rb(l){return Jr(l,$n(l))}function fM(l){return l?To(Ge(l),-W,W):l===0?l:0}function ht(l){return l==null?"":Zn(l)}var hM=Ts(function(l,d){if(Ya(d)||Bn(d)){Jr(d,sn(d),l);return}for(var m in d)bt.call(d,m)&&Ha(l,m,d[m])}),ib=Ts(function(l,d){Jr(d,$n(d),l)}),cu=Ts(function(l,d,m,_){Jr(d,$n(d),l,_)}),pM=Ts(function(l,d,m,_){Jr(d,sn(d),l,_)}),mM=pi(Kf);function gM(l,d){var m=Cs(l);return d==null?m:Ny(m,d)}var vM=Ye(function(l,d){l=St(l);var m=-1,_=d.length,T=_>2?d[2]:n;for(T&&Rn(d[0],d[1],T)&&(_=1);++m<_;)for(var M=d[m],B=$n(M),U=-1,Y=B.length;++U1),M}),Jr(l,gh(l),m),_&&(m=pr(m,h|p|g,AP));for(var T=d.length;T--;)lh(m,d[T]);return m});function DM(l,d){return sb(l,su(Te(d)))}var NM=pi(function(l,d){return l==null?{}:cP(l,d)});function sb(l,d){if(l==null)return{};var m=Nt(gh(l),function(_){return[_]});return d=Te(d),Qy(l,m,function(_,T){return d(_,T[0])})}function BM(l,d,m){d=ji(d,l);var _=-1,T=d.length;for(T||(T=1,l=n);++_d){var _=l;l=d,d=_}if(m||l%1||d%1){var T=Oy();return wn(l+T*(d-l+CI("1e-"+((T+"").length-1))),d)}return oh(l,d)}var XM=ks(function(l,d,m){return d=d.toLowerCase(),l+(m?cb(d):d)});function cb(l){return Oh(ht(l).toLowerCase())}function ub(l){return l=ht(l),l&&l.replace(en,$I).replace(mI,"")}function YM(l,d,m){l=ht(l),d=Zn(d);var _=l.length;m=m===n?_:To(Ge(m),0,_);var T=m;return m-=d.length,m>=0&&l.slice(m,T)==d}function KM(l){return l=ht(l),l&&ci.test(l)?l.replace(Wr,FI):l}function QM(l){return l=ht(l),l&&kf.test(l)?l.replace(ps,"\\$&"):l}var JM=ks(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),ZM=ks(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),eL=h0("toLowerCase");function tL(l,d,m){l=ht(l),d=Ge(d);var _=d?xs(l):0;if(!d||_>=d)return l;var T=(d-_)/2;return Qc($c(T),m)+l+Qc(Bc(T),m)}function nL(l,d,m){l=ht(l),d=Ge(d);var _=d?xs(l):0;return d&&_>>0,m?(l=ht(l),l&&(typeof d=="string"||d!=null&&!Ih(d))&&(d=Zn(d),!d&&bs(l))?Ui(Ir(l),0,m):l.split(d,m)):[]}var cL=ks(function(l,d,m){return l+(m?" ":"")+Oh(d)});function uL(l,d,m){return l=ht(l),m=m==null?0:To(Ge(m),0,l.length),d=Zn(d),l.slice(m,m+d.length)==d}function dL(l,d,m){var _=R.templateSettings;m&&Rn(l,d,m)&&(d=n),l=ht(l),d=cu({},d,_,x0);var T=cu({},d.imports,_.imports,x0),M=sn(T),B=Hf(T,M),U,Y,te=0,ne=d.interpolate||Ar,oe="__p += '",fe=Gf((d.escape||Ar).source+"|"+ne.source+"|"+(ne===oa?Kn:Ar).source+"|"+(d.evaluate||Ar).source+"|$","g"),we="//# sourceURL="+(bt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xI+"]")+` -`;l.replace(fe,function(Ae,Je,it,tr,Pn,nr){return it||(it=tr),oe+=l.slice(te,nr).replace(QA,zI),Je&&(U=!0,oe+=`' + +`)}function $P(l){return $e(l)||Ro(l)||!!(Iy&&l&&l[Iy])}function mi(l,d){var m=typeof l;return d=d??W,!!d&&(m=="number"||m!="symbol"&&Uv.test(l))&&l>-1&&l%1==0&&l0){if(++d>=G)return arguments[0]}else d=0;return l.apply(n,arguments)}}function nu(l,d){var m=-1,_=l.length,T=_-1;for(d=d===n?_:d;++m1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,F0(l,m)});function z0(l){var d=P(l);return d.__chain__=!0,d}function Y2(l,d){return d(l),l}function ru(l,d){return d(l)}var K2=pi(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,T=function(M){return Qf(M,l)};return d>1||this.__actions__.length||!(_ instanceof et)||!mi(m)?this.thru(T):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:ru,args:[T],thisArg:n}),new hr(_,this.__chain__).thru(function(M){return d&&!M.length&&M.push(n),M}))});function Q2(){return z0(this)}function J2(){return new hr(this.value(),this.__chain__)}function Z2(){this.__values__===n&&(this.__values__=eb(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function eO(){return this}function tO(l){for(var d,m=this;m instanceof Uc;){var _=M0(m);_.__index__=0,_.__values__=n,d?T.__wrapped__=_:d=_;var T=_;m=m.__wrapped__}return T.__wrapped__=l,d}function nO(){var l=this.__wrapped__;if(l instanceof et){var d=l;return this.__actions__.length&&(d=new et(this)),d=d.reverse(),d.__actions__.push({func:ru,args:[Ch],thisArg:n}),new hr(d,this.__chain__)}return this.thru(Ch)}function rO(){return n0(this.__wrapped__,this.__actions__)}var iO=Yc(function(l,d,m){bt.call(l,m)?++l[m]:fi(l,m,1)});function oO(l,d,m){var _=$e(l)?my:YR;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}function sO(l,d){var m=$e(l)?Ni:Fy;return m(l,Te(d,3))}var aO=h0(L0),lO=h0(D0);function cO(l,d){return mn(iu(l,d),1)}function uO(l,d){return mn(iu(l,d),V)}function dO(l,d,m){return m=m===n?1:Ge(m),mn(iu(l,d),m)}function j0(l,d){var m=$e(l)?dr:zi;return m(l,Te(d,3))}function U0(l,d){var m=$e(l)?RI:$y;return m(l,Te(d,3))}var fO=Yc(function(l,d,m){bt.call(l,m)?l[m].push(d):fi(l,m,[d])});function hO(l,d,m,_){l=Bn(l)?l:Ps(l),m=m&&!_?Ge(m):0;var T=l.length;return m<0&&(m=nn(T+m,0)),cu(l)?m<=T&&l.indexOf(d,m)>-1:!!T&&bs(l,d,m)>-1}var pO=Ye(function(l,d,m){var _=-1,T=typeof d=="function",M=Bn(l)?Z(l.length):[];return zi(l,function(B){M[++_]=T?Qn(d,B,m):Ga(B,d,m)}),M}),mO=Yc(function(l,d,m){fi(l,m,d)});function iu(l,d){var m=$e(l)?Nt:Gy;return m(l,Te(d,3))}function gO(l,d,m,_){return l==null?[]:($e(d)||(d=d==null?[]:[d]),m=_?n:m,$e(m)||(m=m==null?[]:[m]),Yy(l,d,m))}var vO=Yc(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function yO(l,d,m){var _=$e(l)?$f:by,T=arguments.length<3;return _(l,Te(d,4),m,T,zi)}function bO(l,d,m){var _=$e(l)?PI:by,T=arguments.length<3;return _(l,Te(d,4),m,T,$y)}function xO(l,d){var m=$e(l)?Ni:Fy;return m(l,au(Te(d,3)))}function wO(l){var d=$e(l)?Ly:hP;return d(l)}function _O(l,d,m){(m?Rn(l,d,m):d===n)?d=1:d=Ge(d);var _=$e(l)?WR:pP;return _(l,d)}function SO(l){var d=$e(l)?GR:gP;return d(l)}function EO(l){if(l==null)return 0;if(Bn(l))return cu(l)?ws(l):l.length;var d=_n(l);return d==me||d==ze?l.size:rh(l).length}function CO(l,d,m){var _=$e(l)?Ff:vP;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}var TO=Ye(function(l,d){if(l==null)return[];var m=d.length;return m>1&&Rn(l,d[0],d[1])?d=[]:m>2&&Rn(d[0],d[1],d[2])&&(d=[d[0]]),Yy(l,mn(d,1),[])}),ou=sR||function(){return pn.Date.now()};function kO(l,d){if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){if(--l<1)return d.apply(this,arguments)}}function H0(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,hi(l,k,n,n,n,n,d)}function W0(l,d){var m;if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var kh=Ye(function(l,d,m){var _=S;if(m.length){var T=$i(m,Is(kh));_|=I}return hi(l,_,d,m,T)}),G0=Ye(function(l,d,m){var _=S|w;if(m.length){var T=$i(m,Is(G0));_|=I}return hi(d,_,l,m,T)});function V0(l,d,m){d=m?n:d;var _=hi(l,x,n,n,n,n,n,d);return _.placeholder=V0.placeholder,_}function q0(l,d,m){d=m?n:d;var _=hi(l,E,n,n,n,n,n,d);return _.placeholder=q0.placeholder,_}function X0(l,d,m){var _,T,M,B,U,Y,ne=0,re=!1,oe=!1,fe=!0;if(typeof l!="function")throw new fr(s);d=vr(d)||0,Ft(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?nn(vr(m.maxWait)||0,d):M,fe="trailing"in m?!!m.trailing:fe);function we(Kt){var Or=_,yi=T;return _=T=n,ne=Kt,B=l.apply(yi,Or),B}function ke(Kt){return ne=Kt,U=Ka(Je,d),re?we(Kt):B}function qe(Kt){var Or=Kt-Y,yi=Kt-ne,hb=d-Or;return oe?wn(hb,M-yi):hb}function Ae(Kt){var Or=Kt-Y,yi=Kt-ne;return Y===n||Or>=d||Or<0||oe&&yi>=M}function Je(){var Kt=ou();if(Ae(Kt))return it(Kt);U=Ka(Je,qe(Kt))}function it(Kt){return U=n,fe&&_?we(Kt):(_=T=n,B)}function tr(){U!==n&&i0(U),ne=0,_=Y=T=U=n}function Pn(){return U===n?B:it(ou())}function nr(){var Kt=ou(),Or=Ae(Kt);if(_=arguments,T=this,Y=Kt,Or){if(U===n)return ke(Y);if(oe)return i0(U),U=Ka(Je,d),we(Y)}return U===n&&(U=Ka(Je,d)),B}return nr.cancel=tr,nr.flush=Pn,nr}var AO=Ye(function(l,d){return By(l,1,d)}),IO=Ye(function(l,d,m){return By(l,vr(d)||0,m)});function RO(l){return hi(l,D)}function su(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new fr(s);var m=function(){var _=arguments,T=d?d.apply(this,_):_[0],M=m.cache;if(M.has(T))return M.get(T);var B=l.apply(this,_);return m.cache=M.set(T,B)||M,B};return m.cache=new(su.Cache||di),m}su.Cache=di;function au(l){if(typeof l!="function")throw new fr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function PO(l){return W0(2,l)}var OO=yP(function(l,d){d=d.length==1&&$e(d[0])?Nt(d[0],Jn(Te())):Nt(mn(d,1),Jn(Te()));var m=d.length;return Ye(function(_){for(var T=-1,M=wn(_.length,m);++T=d}),Ro=Uy(function(){return arguments}())?Uy:function(l){return Ut(l)&&bt.call(l,"callee")&&!Ay.call(l,"callee")},$e=Z.isArray,qO=cy?Jn(cy):tP;function Bn(l){return l!=null&&lu(l.length)&&!gi(l)}function Yt(l){return Ut(l)&&Bn(l)}function XO(l){return l===!0||l===!1||Ut(l)&&In(l)==le}var Wi=lR||Fh,YO=uy?Jn(uy):nP;function KO(l){return Ut(l)&&l.nodeType===1&&!Qa(l)}function QO(l){if(l==null)return!0;if(Bn(l)&&($e(l)||typeof l=="string"||typeof l.splice=="function"||Wi(l)||Rs(l)||Ro(l)))return!l.length;var d=_n(l);if(d==me||d==ze)return!l.size;if(Ya(l))return!rh(l).length;for(var m in l)if(bt.call(l,m))return!1;return!0}function JO(l,d){return Va(l,d)}function ZO(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?Va(l,d,n,m):!!_}function Ih(l){if(!Ut(l))return!1;var d=In(l);return d==ve||d==pe||typeof l.message=="string"&&typeof l.name=="string"&&!Qa(l)}function eM(l){return typeof l=="number"&&Ry(l)}function gi(l){if(!Ft(l))return!1;var d=In(l);return d==ye||d==xe||d==ae||d==Bt}function K0(l){return typeof l=="number"&&l==Ge(l)}function lu(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Ft(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ut(l){return l!=null&&typeof l=="object"}var Q0=dy?Jn(dy):iP;function tM(l,d){return l===d||nh(l,d,bh(d))}function nM(l,d,m){return m=typeof m=="function"?m:n,nh(l,d,bh(d),m)}function rM(l){return J0(l)&&l!=+l}function iM(l){if(jP(l))throw new De(o);return Hy(l)}function oM(l){return l===null}function sM(l){return l==null}function J0(l){return typeof l=="number"||Ut(l)&&In(l)==be}function Qa(l){if(!Ut(l)||In(l)!=Xe)return!1;var d=Dc(l);if(d===null)return!0;var m=bt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Pc.call(m)==nR}var Rh=fy?Jn(fy):oP;function aM(l){return K0(l)&&l>=-W&&l<=W}var Z0=hy?Jn(hy):sP;function cu(l){return typeof l=="string"||!$e(l)&&Ut(l)&&In(l)==st}function er(l){return typeof l=="symbol"||Ut(l)&&In(l)==gt}var Rs=py?Jn(py):aP;function lM(l){return l===n}function cM(l){return Ut(l)&&_n(l)==_e}function uM(l){return Ut(l)&&In(l)==je}var dM=Zc(ih),fM=Zc(function(l,d){return l<=d});function eb(l){if(!l)return[];if(Bn(l))return cu(l)?Ir(l):Nn(l);if($a&&l[$a])return WI(l[$a]());var d=_n(l),m=d==me?Gf:d==ze?Ac:Ps;return m(l)}function vi(l){if(!l)return l===0?l:0;if(l=vr(l),l===V||l===-V){var d=l<0?-1:1;return d*K}return l===l?l:0}function Ge(l){var d=vi(l),m=d%1;return d===d?m?d-m:d:0}function tb(l){return l?To(Ge(l),0,Q):0}function vr(l){if(typeof l=="number")return l;if(er(l))return X;if(Ft(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Ft(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=xy(l);var m=Dl.test(l);return m||jv.test(l)?kI(l.slice(2),m?2:8):Ll.test(l)?X:+l}function nb(l){return Jr(l,$n(l))}function hM(l){return l?To(Ge(l),-W,W):l===0?l:0}function pt(l){return l==null?"":Zn(l)}var pM=ks(function(l,d){if(Ya(d)||Bn(d)){Jr(d,sn(d),l);return}for(var m in d)bt.call(d,m)&&Ha(l,m,d[m])}),rb=ks(function(l,d){Jr(d,$n(d),l)}),uu=ks(function(l,d,m,_){Jr(d,$n(d),l,_)}),mM=ks(function(l,d,m,_){Jr(d,sn(d),l,_)}),gM=pi(Qf);function vM(l,d){var m=Ts(l);return d==null?m:Dy(m,d)}var yM=Ye(function(l,d){l=St(l);var m=-1,_=d.length,T=_>2?d[2]:n;for(T&&Rn(d[0],d[1],T)&&(_=1);++m<_;)for(var M=d[m],B=$n(M),U=-1,Y=B.length;++U1),M}),Jr(l,vh(l),m),_&&(m=pr(m,h|p|g,IP));for(var T=d.length;T--;)ch(m,d[T]);return m});function NM(l,d){return ob(l,au(Te(d)))}var BM=pi(function(l,d){return l==null?{}:uP(l,d)});function ob(l,d){if(l==null)return{};var m=Nt(vh(l),function(_){return[_]});return d=Te(d),Ky(l,m,function(_,T){return d(_,T[0])})}function $M(l,d,m){d=Ui(d,l);var _=-1,T=d.length;for(T||(T=1,l=n);++_d){var _=l;l=d,d=_}if(m||l%1||d%1){var T=Py();return wn(l+T*(d-l+TI("1e-"+((T+"").length-1))),d)}return sh(l,d)}var YM=As(function(l,d,m){return d=d.toLowerCase(),l+(m?lb(d):d)});function lb(l){return Mh(pt(l).toLowerCase())}function cb(l){return l=pt(l),l&&l.replace(en,FI).replace(gI,"")}function KM(l,d,m){l=pt(l),d=Zn(d);var _=l.length;m=m===n?_:To(Ge(m),0,_);var T=m;return m-=d.length,m>=0&&l.slice(m,T)==d}function QM(l){return l=pt(l),l&&ci.test(l)?l.replace(Wr,zI):l}function JM(l){return l=pt(l),l&&Af.test(l)?l.replace(ms,"\\$&"):l}var ZM=As(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),eL=As(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),tL=f0("toLowerCase");function nL(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;if(!d||_>=d)return l;var T=(d-_)/2;return Jc(Fc(T),m)+l+Jc($c(T),m)}function rL(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;return d&&_>>0,m?(l=pt(l),l&&(typeof d=="string"||d!=null&&!Rh(d))&&(d=Zn(d),!d&&xs(l))?Hi(Ir(l),0,m):l.split(d,m)):[]}var uL=As(function(l,d,m){return l+(m?" ":"")+Mh(d)});function dL(l,d,m){return l=pt(l),m=m==null?0:To(Ge(m),0,l.length),d=Zn(d),l.slice(m,m+d.length)==d}function fL(l,d,m){var _=P.templateSettings;m&&Rn(l,d,m)&&(d=n),l=pt(l),d=uu({},d,_,b0);var T=uu({},d.imports,_.imports,b0),M=sn(T),B=Wf(T,M),U,Y,ne=0,re=d.interpolate||Ar,oe="__p += '",fe=Vf((d.escape||Ar).source+"|"+re.source+"|"+(re===sa?Kn:Ar).source+"|"+(d.evaluate||Ar).source+"|$","g"),we="//# sourceURL="+(bt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wI+"]")+` +`;l.replace(fe,function(Ae,Je,it,tr,Pn,nr){return it||(it=tr),oe+=l.slice(ne,nr).replace(JA,jI),Je&&(U=!0,oe+=`' + __e(`+Je+`) + '`),Pn&&(Y=!0,oe+=`'; `+Pn+`; __p += '`),it&&(oe+=`' + ((__t = (`+it+`)) == null ? '' : __t) + -'`),te=nr+Ae.length,Ae}),oe+=`'; +'`),ne=nr+Ae.length,Ae}),oe+=`'; `;var ke=bt.call(d,"variable")&&d.variable;if(!ke)oe=`with (obj) { `+oe+` } -`;else if(Na.test(ke))throw new De(a);oe=(Y?oe.replace(Wt,""):oe).replace(yn,"$1").replace(Yr,"$1;"),oe="function("+(ke||"obj")+`) { +`;else if(Na.test(ke))throw new De(a);oe=(Y?oe.replace(Gt,""):oe).replace(yn,"$1").replace(Yr,"$1;"),oe="function("+(ke||"obj")+`) { `+(ke?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(Y?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+oe+`return __p -}`;var qe=fb(function(){return ft(M,we+"return "+oe).apply(n,B)});if(qe.source=oe,Ah(qe))throw qe;return qe}function fL(l){return ht(l).toLowerCase()}function hL(l){return ht(l).toUpperCase()}function pL(l,d,m){if(l=ht(l),l&&(m||d===n))return wy(l);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ir(d),M=_y(_,T),B=Sy(_,T)+1;return Ui(_,M,B).join("")}function mL(l,d,m){if(l=ht(l),l&&(m||d===n))return l.slice(0,Cy(l)+1);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Sy(_,Ir(d))+1;return Ui(_,0,T).join("")}function gL(l,d,m){if(l=ht(l),l&&(m||d===n))return l.replace(xo,"");if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=_y(_,Ir(d));return Ui(_,T).join("")}function vL(l,d){var m=N,_=H;if(Ft(d)){var T="separator"in d?d.separator:T;m="length"in d?Ge(d.length):m,_="omission"in d?Zn(d.omission):_}l=ht(l);var M=l.length;if(bs(l)){var B=Ir(l);M=B.length}if(m>=M)return l;var U=m-xs(_);if(U<1)return _;var Y=B?Ui(B,0,U).join(""):l.slice(0,U);if(T===n)return Y+_;if(B&&(U+=Y.length-U),Ih(T)){if(l.slice(U).search(T)){var te,ne=Y;for(T.global||(T=Gf(T.source,ht(lr.exec(T))+"g")),T.lastIndex=0;te=T.exec(ne);)var oe=te.index;Y=Y.slice(0,oe===n?U:oe)}}else if(l.indexOf(Zn(T),U)!=U){var fe=Y.lastIndexOf(T);fe>-1&&(Y=Y.slice(0,fe))}return Y+_}function yL(l){return l=ht(l),l&&Kr.test(l)?l.replace(Hr,qI):l}var bL=ks(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),Oh=h0("toUpperCase");function db(l,d,m){return l=ht(l),d=m?n:d,d===n?UI(l)?KI(l):MI(l):l.match(d)||[]}var fb=Ye(function(l,d){try{return Qn(l,n,d)}catch(m){return Ah(m)?m:new De(m)}}),xL=pi(function(l,d){return dr(d,function(m){m=Zr(m),fi(l,m,Th(l[m],l))}),l});function wL(l){var d=l==null?0:l.length,m=Te();return l=d?Nt(l,function(_){if(typeof _[1]!="function")throw new fr(s);return[m(_[0]),_[1]]}):[],Ye(function(_){for(var T=-1;++TW)return[];var m=Q,_=wn(l,Q);d=Te(d),l-=Q;for(var T=Uf(_,d);++m0||d<0)?new et(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=Ge(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},et.prototype.toArray=function(){return this.take(Q)},Qr(et.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),T=R[_?"take"+(d=="last"?"Right":""):d],M=_||/^find/.test(d);T&&(R.prototype[d]=function(){var B=this.__wrapped__,U=_?[1]:arguments,Y=B instanceof et,te=U[0],ne=Y||$e(B),oe=function(Je){var it=T.apply(R,Ni([Je],U));return _&&fe?it[0]:it};ne&&m&&typeof te=="function"&&te.length!=1&&(Y=ne=!1);var fe=this.__chain__,we=!!this.__actions__.length,ke=M&&!fe,qe=Y&&!we;if(!M&&ne){B=qe?B:new et(this);var Ae=l.apply(B,U);return Ae.__actions__.push({func:nu,args:[oe],thisArg:n}),new hr(Ae,fe)}return ke&&qe?l.apply(this,U):(Ae=this.thru(oe),ke?_?Ae.value()[0]:Ae.value():Ae)})}),dr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ac[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);R.prototype[l]=function(){var T=arguments;if(_&&!this.__chain__){var M=this.value();return d.apply($e(M)?M:[],T)}return this[m](function(B){return d.apply($e(B)?B:[],T)})}}),Qr(et.prototype,function(l,d){var m=R[d];if(m){var _=m.name+"";bt.call(Es,_)||(Es[_]=[]),Es[_].push({name:d,func:m})}}),Es[Yc(n,w).name]=[{name:"wrapper",func:n}],et.prototype.clone=yR,et.prototype.reverse=bR,et.prototype.value=xR,R.prototype.at=Y2,R.prototype.chain=K2,R.prototype.commit=Q2,R.prototype.next=J2,R.prototype.plant=eO,R.prototype.reverse=tO,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=nO,R.prototype.first=R.prototype.head,$a&&(R.prototype[$a]=Z2),R},ws=QI();_o?((_o.exports=ws)._=ws,Lf._=ws):pn._=ws}).call(qt)})(yC,yC.exports);var ie=yC.exports;function ai(e){return C.jsx(mt,{px:.5,display:"inline-block",...e})}function $z({primary:e,secondary:t}){return C.jsxs(En,{children:[C.jsx(mt,{children:e}),C.jsx(ai,{}),C.jsx(mt,{sx:{opacity:.56},children:t})]})}/*! ***************************************************************************** +}`;var qe=db(function(){return ft(M,we+"return "+oe).apply(n,B)});if(qe.source=oe,Ih(qe))throw qe;return qe}function hL(l){return pt(l).toLowerCase()}function pL(l){return pt(l).toUpperCase()}function mL(l,d,m){if(l=pt(l),l&&(m||d===n))return xy(l);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ir(d),M=wy(_,T),B=_y(_,T)+1;return Hi(_,M,B).join("")}function gL(l,d,m){if(l=pt(l),l&&(m||d===n))return l.slice(0,Ey(l)+1);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=_y(_,Ir(d))+1;return Hi(_,0,T).join("")}function vL(l,d,m){if(l=pt(l),l&&(m||d===n))return l.replace(xo,"");if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=wy(_,Ir(d));return Hi(_,T).join("")}function yL(l,d){var m=N,_=H;if(Ft(d)){var T="separator"in d?d.separator:T;m="length"in d?Ge(d.length):m,_="omission"in d?Zn(d.omission):_}l=pt(l);var M=l.length;if(xs(l)){var B=Ir(l);M=B.length}if(m>=M)return l;var U=m-ws(_);if(U<1)return _;var Y=B?Hi(B,0,U).join(""):l.slice(0,U);if(T===n)return Y+_;if(B&&(U+=Y.length-U),Rh(T)){if(l.slice(U).search(T)){var ne,re=Y;for(T.global||(T=Vf(T.source,pt(lr.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;Y=Y.slice(0,oe===n?U:oe)}}else if(l.indexOf(Zn(T),U)!=U){var fe=Y.lastIndexOf(T);fe>-1&&(Y=Y.slice(0,fe))}return Y+_}function bL(l){return l=pt(l),l&&Kr.test(l)?l.replace(Hr,XI):l}var xL=As(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),Mh=f0("toUpperCase");function ub(l,d,m){return l=pt(l),d=m?n:d,d===n?HI(l)?QI(l):LI(l):l.match(d)||[]}var db=Ye(function(l,d){try{return Qn(l,n,d)}catch(m){return Ih(m)?m:new De(m)}}),wL=pi(function(l,d){return dr(d,function(m){m=Zr(m),fi(l,m,kh(l[m],l))}),l});function _L(l){var d=l==null?0:l.length,m=Te();return l=d?Nt(l,function(_){if(typeof _[1]!="function")throw new fr(s);return[m(_[0]),_[1]]}):[],Ye(function(_){for(var T=-1;++TW)return[];var m=Q,_=wn(l,Q);d=Te(d),l-=Q;for(var T=Hf(_,d);++m0||d<0)?new et(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=Ge(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},et.prototype.toArray=function(){return this.take(Q)},Qr(et.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),T=P[_?"take"+(d=="last"?"Right":""):d],M=_||/^find/.test(d);T&&(P.prototype[d]=function(){var B=this.__wrapped__,U=_?[1]:arguments,Y=B instanceof et,ne=U[0],re=Y||$e(B),oe=function(Je){var it=T.apply(P,Bi([Je],U));return _&&fe?it[0]:it};re&&m&&typeof ne=="function"&&ne.length!=1&&(Y=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,ke=M&&!fe,qe=Y&&!we;if(!M&&re){B=qe?B:new et(this);var Ae=l.apply(B,U);return Ae.__actions__.push({func:ru,args:[oe],thisArg:n}),new hr(Ae,fe)}return ke&&qe?l.apply(this,U):(Ae=this.thru(oe),ke?_?Ae.value()[0]:Ae.value():Ae)})}),dr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ic[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var T=arguments;if(_&&!this.__chain__){var M=this.value();return d.apply($e(M)?M:[],T)}return this[m](function(B){return d.apply($e(B)?B:[],T)})}}),Qr(et.prototype,function(l,d){var m=P[d];if(m){var _=m.name+"";bt.call(Cs,_)||(Cs[_]=[]),Cs[_].push({name:d,func:m})}}),Cs[Kc(n,w).name]=[{name:"wrapper",func:n}],et.prototype.clone=bR,et.prototype.reverse=xR,et.prototype.value=wR,P.prototype.at=K2,P.prototype.chain=Q2,P.prototype.commit=J2,P.prototype.next=Z2,P.prototype.plant=tO,P.prototype.reverse=nO,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=rO,P.prototype.first=P.prototype.head,$a&&(P.prototype[$a]=eO),P},_s=JI();_o?((_o.exports=_s)._=_s,Df._=_s):pn._=_s}).call(Xt)})(xC,xC.exports);var te=xC.exports;function ai(e){return C.jsx(ht,{px:.5,display:"inline-block",...e})}function zz({primary:e,secondary:t}){return C.jsxs(En,{children:[C.jsx(ht,{children:e}),C.jsx(ai,{}),C.jsx(ht,{sx:{opacity:.56},children:t})]})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -251,7 +251,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var bC=function(){return bC=Object.assign||function(t){for(var n,r=1,i=arguments.length;r>>0).toString(36)},K1e=function(e){e=e||{};var t=e.assign||Object.assign,n=typeof window=="object",r=t({raw:"",pfx:"_",client:n,assign:t,stringify:JSON.stringify,kebab:function(i){return i.replace(X1e,"-$&").toLowerCase()},decl:function(i,o){return i=r.kebab(i),i+":"+o+";"},hash:function(i){return Y1e(r.stringify(i))},selector:function(i,o){return i+(o[0]===":"?"":" ")+o},putRaw:function(i){r.raw+=i}},e);return r.client&&(r.sh||document.head.appendChild(r.sh=document.createElement("style")),r.putRaw=function(i){{var o=r.sh.sheet;try{o.insertRule(i,o.cssRules.length)}catch{}}}),r.put=function(i,o,s){var a="",c,u,f=[];for(c in o)u=o[c],u instanceof Object&&!(u instanceof Array)?f.push(c):a+=r.decl(c,u,i,s);a&&(a=i+"{"+a+"}",r.putRaw(s?s+"{"+a+"}":a));for(var h=0;h=0;){if(r[t]===e){n.deleteRule(t);break}t--}}zQ.removeRule=J1e;var Z1e=zQ.removeRule,ewe=function(e){if(!e.client)return;var t=e.kebab;function n(i,o){this.rule=e.createRule(i,o),this.decl={}}n.prototype.diff=function(i){var o=this.decl,s=this.rule.style,a;for(a in o)i[a]===void 0&&s.removeProperty(a);for(a in i)i[a]!==o[a]&&s.setProperty(t(a),i[a]);this.decl=i},n.prototype.del=function(){Z1e(this.rule)};function r(){this.tree={}}r.prototype.diff=function(i){var o=this.tree;for(var s in o)if(i[s]===void 0){var a=o[s];for(var c in a)a[c].del()}for(var s in i)if(o[s]===void 0)for(var c in i[s]){var u=new n(c,s);u.diff(i[s][c]),i[s][c]=u}else{var f=o[s],h=i[s];for(var c in f)h[c]||f[c].del();for(var c in h){var u=f[c];u?(u.diff(h[c]),h[c]=u):(u=new n(c,s),u.diff(h[c]),h[c]=u)}}this.tree=i},e.VRule=n,e.VSheet=r};function t3(e,t,n,r){var i={},o=!1,s,a;for(s in t)a=t[s],typeof a!="object"&&(o=!0,i[s]=a);o&&(e[r]||(e[r]={}),e[r][n]=i);for(s in t)if(a=t[s],typeof a=="object")if(s[0]==="@")t3(e,a,n,s);else{var c=s.indexOf("&")>-1,u=n.split(",");if(c)for(var f=0;ft,zz=(e,t)=>({...e,...t});function Qu(e,{init:t,effect:n,reduce:r=zz}={}){const i=P.createContext([e,ie.noop]);return[()=>P.useContext(i),({children:o})=>{const[s,a]=q1e(e),c=P.useCallback(f=>{const h=r(s(),f(s()));n==null||n({prev:s(),next:h}),a(h)},[s]),u=P.useMemo(()=>[s(),c],[s(),c]);return H1e(async()=>{const f=await(t==null?void 0:t());f&&c(()=>f)}),C.jsx(i.Provider,{value:u,children:o})}]}function pwe(e,t){return{init:()=>{const n=localStorage.getItem(e);return n?JSON.parse(n):t},effect:({next:n})=>localStorage.setItem(e,JSON.stringify(n))}}const[WQ,mwe]=Qu([],{reduce:(e,t)=>[t,...e]}),GQ=P.createContext(()=>ie.noop);function mc(){return P.useContext(GQ)}function gwe({children:e}){const[t,n]=P.useState([]),[r,i]=P.useState(!1),[o,s]=P.useState(void 0),[,a]=WQ();P.useEffect(()=>{t.length&&!o?(s({...t[0]}),n(h=>h.slice(1)),i(!0)):t.length&&o&&r&&i(!1)},[t,o,r]);const c=P.useCallback((h,p)=>(n(g=>[...g,{message:C.jsx($z,{primary:h,secondary:p}),key:new Date().getTime()}]),a(()=>({content:ie.filter([h,p]).join(", "),timestamp:`${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}`})),()=>u()),[n]),u=(h,p)=>{p!=="clickaway"&&i(!1)},f=()=>s(void 0);return C.jsxs(C.Fragment,{children:[C.jsx(GQ.Provider,{value:c,children:e}),C.jsx(nxe,{anchorOrigin:{horizontal:"right",vertical:"bottom"},open:r,autoHideDuration:6e3,onClose:u,TransitionProps:{onExited:f},message:o==null?void 0:o.message,action:C.jsx(C.Fragment,{children:C.jsx($p,{"aria-label":"close",color:"inherit",sx:{p:.5},onClick:u,children:C.jsx(DQ,{})})})},o==null?void 0:o.key)]})}/*! +***************************************************************************** */var wC=function(){return wC=Object.assign||function(t){for(var n,r=1,i=arguments.length;r>>0).toString(36)},rwe=function(e){e=e||{};var t=e.assign||Object.assign,n=typeof window=="object",r=t({raw:"",pfx:"_",client:n,assign:t,stringify:JSON.stringify,kebab:function(i){return i.replace(twe,"-$&").toLowerCase()},decl:function(i,o){return i=r.kebab(i),i+":"+o+";"},hash:function(i){return nwe(r.stringify(i))},selector:function(i,o){return i+(o[0]===":"?"":" ")+o},putRaw:function(i){r.raw+=i}},e);return r.client&&(r.sh||document.head.appendChild(r.sh=document.createElement("style")),r.putRaw=function(i){{var o=r.sh.sheet;try{o.insertRule(i,o.cssRules.length)}catch{}}}),r.put=function(i,o,s){var a="",c,u,f=[];for(c in o)u=o[c],u instanceof Object&&!(u instanceof Array)?f.push(c):a+=r.decl(c,u,i,s);a&&(a=i+"{"+a+"}",r.putRaw(s?s+"{"+a+"}":a));for(var h=0;h=0;){if(r[t]===e){n.deleteRule(t);break}t--}}GQ.removeRule=owe;var swe=GQ.removeRule,awe=function(e){if(!e.client)return;var t=e.kebab;function n(i,o){this.rule=e.createRule(i,o),this.decl={}}n.prototype.diff=function(i){var o=this.decl,s=this.rule.style,a;for(a in o)i[a]===void 0&&s.removeProperty(a);for(a in i)i[a]!==o[a]&&s.setProperty(t(a),i[a]);this.decl=i},n.prototype.del=function(){swe(this.rule)};function r(){this.tree={}}r.prototype.diff=function(i){var o=this.tree;for(var s in o)if(i[s]===void 0){var a=o[s];for(var c in a)a[c].del()}for(var s in i)if(o[s]===void 0)for(var c in i[s]){var u=new n(c,s);u.diff(i[s][c]),i[s][c]=u}else{var f=o[s],h=i[s];for(var c in f)h[c]||f[c].del();for(var c in h){var u=f[c];u?(u.diff(h[c]),h[c]=u):(u=new n(c,s),u.diff(h[c]),h[c]=u)}}this.tree=i},e.VRule=n,e.VSheet=r};function n3(e,t,n,r){var i={},o=!1,s,a;for(s in t)a=t[s],typeof a!="object"&&(o=!0,i[s]=a);o&&(e[r]||(e[r]={}),e[r][n]=i);for(s in t)if(a=t[s],typeof a=="object")if(s[0]==="@")n3(e,a,n,s);else{var c=s.indexOf("&")>-1,u=n.split(",");if(c)for(var f=0;ft,Uk=(e,t)=>({...e,...t});function mc(e,{init:t,effect:n,reduce:r=Uk}={}){const i=R.createContext([e,te.noop]);return[()=>R.useContext(i),({children:o})=>{const[s,a]=ewe(e),c=R.useCallback(f=>{const h=r(s(),f(s()));n==null||n({prev:s(),next:h}),a(h)},[s]),u=R.useMemo(()=>[s(),c],[s(),c]);return K1e(async()=>{const f=await(t==null?void 0:t());f&&c(()=>f)}),C.jsx(i.Provider,{value:u,children:o})}]}function xwe(e,t){return{init:()=>{const n=localStorage.getItem(e);return n?JSON.parse(n):t},effect:({next:n})=>localStorage.setItem(e,JSON.stringify(n))}}const[KQ,wwe]=mc([],{reduce:(e,t)=>[t,...e]}),QQ=R.createContext(()=>te.noop);function gc(){return R.useContext(QQ)}function _we({children:e}){const[t,n]=R.useState([]),[r,i]=R.useState(!1),[o,s]=R.useState(void 0),[,a]=KQ();R.useEffect(()=>{t.length&&!o?(s({...t[0]}),n(h=>h.slice(1)),i(!0)):t.length&&o&&r&&i(!1)},[t,o,r]);const c=R.useCallback((h,p)=>(n(g=>[...g,{message:C.jsx(zz,{primary:h,secondary:p}),key:new Date().getTime()}]),a(()=>({content:te.filter([h,p]).join(", "),timestamp:`${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}`})),()=>u()),[n]),u=(h,p)=>{p!=="clickaway"&&i(!1)},f=()=>s(void 0);return C.jsxs(C.Fragment,{children:[C.jsx(QQ.Provider,{value:c,children:e}),C.jsx(cxe,{anchorOrigin:{horizontal:"right",vertical:"bottom"},open:r,autoHideDuration:6e3,onClose:u,TransitionProps:{onExited:f},message:o==null?void 0:o.message,action:C.jsx(C.Fragment,{children:C.jsx(Fp,{"aria-label":"close",color:"inherit",sx:{p:.5},onClick:u,children:C.jsx(zQ,{})})})},o==null?void 0:o.key)]})}/*! * OverlayScrollbars * Version: 2.3.2 * @@ -259,14 +259,14 @@ PERFORMANCE OF THIS SOFTWARE. * https://github.com/KingSora * * Released under the MIT license. - */function An(e,t){if(Hk(e))for(let n=0;nt(e[n],n,e));return e}function fo(e,t){const n=yf(t);if(Zs(t)||n){let i=n?"":{};if(e){const o=window.getComputedStyle(e,null);i=n?LH(e,o,t):t.reduce((s,a)=>(s[a]=LH(e,o,a),s),i)}return i}e&&An(ea(t),i=>Owe(e,i,t[i]))}const hl=(e,t)=>{const{o:n,u:r,_:i}=e;let o=n,s;const a=(f,h)=>{const p=o,g=f,v=h||(r?!r(p,g):p!==g);return(v||i)&&(o=g,s=p),[o,v,s]};return[t?f=>a(t(o,s),f):a,f=>[o,!!f,s]]},Tw=()=>typeof window<"u",VQ=Tw()&&Node.ELEMENT_NODE,{toString:vwe,hasOwnProperty:VD}=Object.prototype,Ju=e=>e===void 0,Uk=e=>e===null,ywe=e=>Ju(e)||Uk(e)?`${e}`:vwe.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Gd=e=>typeof e=="number",yf=e=>typeof e=="string",jz=e=>typeof e=="boolean",Il=e=>typeof e=="function",Zs=e=>Array.isArray(e),A1=e=>typeof e=="object"&&!Zs(e)&&!Uk(e),Hk=e=>{const t=!!e&&e.length,n=Gd(t)&&t>-1&&t%1==0;return Zs(e)||!Il(e)&&n?t>0&&A1(e)?t-1 in e:!0:!1},n3=e=>{if(!e||!A1(e)||ywe(e)!=="object")return!1;let t;const n="constructor",r=e[n],i=r&&r.prototype,o=VD.call(e,n),s=i&&VD.call(i,"isPrototypeOf");if(r&&!o&&!s)return!1;for(t in e);return Ju(t)||VD.call(e,t)},zx=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===VQ:!1},Wk=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===VQ:!1},Gk=(e,t,n)=>e.indexOf(t,n),Gn=(e,t,n)=>(!n&&!yf(t)&&Hk(t)?Array.prototype.push.apply(e,t):e.push(t),e),jp=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{Gn(n,r)}):An(e,r=>{Gn(n,r)}),n)},Uz=e=>!!e&&e.length===0,gc=(e,t,n)=>{An(e,i=>i&&i.apply(void 0,t||[])),!n&&(e.length=0)},Vk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ea=e=>e?Object.keys(e):[],Br=(e,t,n,r,i,o,s)=>{const a=[t,n,r,i,o,s];return(typeof e!="object"||Uk(e))&&!Il(e)&&(e={}),An(a,c=>{An(ea(c),u=>{const f=c[u];if(e===f)return!0;const h=Zs(f);if(f&&n3(f)){const p=e[u];let g=p;h&&!Zs(p)?g=[]:!h&&!n3(p)&&(g={}),e[u]=Br(g,f)}else e[u]=h?f.slice():f})}),e},Hz=e=>{for(const t in e)return!1;return!0},qQ=(e,t,n,r)=>{if(Ju(r))return n?n[e]:t;n&&(yf(r)||Gd(r))&&(n[e]=r)},No=(e,t,n)=>{if(Ju(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},XQ=(e,t)=>new Set((No(e,t)||"").split(" ")),Go=(e,t)=>{e&&e.removeAttribute(t)},_p=(e,t,n,r)=>{if(n){const i=XQ(e,t);i[r?"add":"delete"](n);const o=jp(i).join(" ").trim();No(e,t,o)}},bwe=(e,t,n)=>XQ(e,t).has(n),wl=(e,t)=>qQ("scrollLeft",0,e,t),Pu=(e,t)=>qQ("scrollTop",0,e,t),r3=Tw()&&Element.prototype,YQ=(e,t)=>{const n=[],r=t?Wk(t)&&t:document;return r?Gn(n,r.querySelectorAll(e)):n},xwe=(e,t)=>{const n=t?Wk(t)&&t:document;return n?n.querySelector(e):null},xC=(e,t)=>Wk(e)?(r3.matches||r3.msMatchesSelector).call(e,t):!1,Wz=e=>e?jp(e.childNodes):[],ju=e=>e&&e.parentElement,eg=(e,t)=>{if(Wk(e)){const n=r3.closest;if(n)return n.call(e,t);do{if(xC(e,t))return e;e=ju(e)}while(e)}},wwe=(e,t,n)=>{const r=eg(e,t),i=e&&xwe(n,r),o=eg(i,t)===r;return r&&i?r===e||i===e||o&&eg(eg(e,n),t)!==r:!1},Gz=(e,t,n)=>{if(n&&e){let r=t,i;Hk(n)?(i=document.createDocumentFragment(),An(n,o=>{o===r&&(r=o.previousSibling),i.appendChild(o)})):i=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(i,r||null)}},va=(e,t)=>{Gz(e,null,t)},_we=(e,t)=>{Gz(ju(e),e,t)},PH=(e,t)=>{Gz(ju(e),e&&e.nextSibling,t)},dc=e=>{if(Hk(e))An(jp(e),t=>dc(t));else if(e){const t=ju(e);t&&t.removeChild(e)}},Sp=e=>{const t=document.createElement("div");return e&&No(t,"class",e),t},KQ=e=>{const t=Sp();return t.innerHTML=e.trim(),An(Wz(t),n=>dc(n))},i3=e=>e.charAt(0).toUpperCase()+e.slice(1),Swe=()=>Sp().style,Ewe=["-webkit-","-moz-","-o-","-ms-"],Cwe=["WebKit","Moz","O","MS","webkit","moz","o","ms"],qD={},XD={},Twe=e=>{let t=XD[e];if(Vk(XD,e))return t;const n=i3(e),r=Swe();return An(Ewe,i=>{const o=i.replace(/-/g,"");return!(t=[e,i+e,o+n,i3(o)+n].find(a=>r[a]!==void 0))}),XD[e]=t||""},Sv=e=>{if(Tw()){let t=qD[e]||window[e];return Vk(qD,e)||(An(Cwe,n=>(t=t||window[n+i3(e)],!t)),qD[e]=t),t}},kwe=Sv("MutationObserver"),OH=Sv("IntersectionObserver"),tg=Sv("ResizeObserver"),QQ=Sv("cancelAnimationFrame"),JQ=Sv("requestAnimationFrame"),o3=Sv("ScrollTimeline"),wC=Tw()&&window.setTimeout,s3=Tw()&&window.clearTimeout,Awe=/[^\x20\t\r\n\f]+/g,ZQ=(e,t,n)=>{const r=e&&e.classList;let i,o=0,s=!1;if(r&&t&&yf(t)){const a=t.match(Awe)||[];for(s=a.length>0;i=a[o++];)s=!!n(r,i)&&s}return s},Vz=(e,t)=>{ZQ(e,t,(n,r)=>n.remove(r))},tf=(e,t)=>(ZQ(e,t,(n,r)=>n.add(r)),Vz.bind(0,e,t)),qk=(e,t,n,r)=>{if(e&&t){let i=!0;return An(n,o=>{const s=r?r(e[o]):e[o],a=r?r(t[o]):t[o];s!==a&&(i=!1)}),i}return!1},eJ=(e,t)=>qk(e,t,["w","h"]),tJ=(e,t)=>qk(e,t,["x","y"]),Iwe=(e,t)=>qk(e,t,["t","r","b","l"]),MH=(e,t,n)=>qk(e,t,["width","height"],n&&(r=>Math.round(r))),Bs=()=>{},Zh=e=>{let t;const n=e?wC:JQ,r=e?s3:QQ;return[i=>{r(t),t=n(i,Il(e)?e():e)},()=>r(t)]},qz=(e,t)=>{let n,r,i,o=Bs;const{g:s,v:a,p:c}=t||{},u=function(v){o(),s3(n),n=r=void 0,o=Bs,e.apply(this,v)},f=g=>c&&r?c(r,g):g,h=()=>{o!==Bs&&u(f(i)||i)},p=function(){const v=jp(arguments),y=Il(s)?s():s;if(Gd(y)&&y>=0){const w=Il(a)?a():a,b=Gd(w)&&w>=0,x=y>0?wC:JQ,E=y>0?s3:QQ,A=f(v)||v,k=u.bind(0,A);o();const O=x(k,y);o=()=>E(O),b&&!n&&(n=wC(h,w)),r=i=A}else u(v)};return p.m=h,p},Rwe={opacity:1,zIndex:1},L_=(e,t)=>{const n=e||"",r=t?parseFloat(n):parseInt(n,10);return r===r?r:0},Pwe=(e,t)=>!Rwe[e]&&Gd(t)?`${t}px`:t,LH=(e,t,n)=>String((t!=null?t[n]||t.getPropertyValue(n):e.style[n])||""),Owe=(e,t,n)=>{try{const{style:r}=e;Ju(r[t])?r.setProperty(t,n):r[t]=Pwe(t,n)}catch{}},Xg=e=>fo(e,"direction")==="rtl",DH=(e,t,n)=>{const r=t?`${t}-`:"",i=n?`-${n}`:"",o=`${r}top${i}`,s=`${r}right${i}`,a=`${r}bottom${i}`,c=`${r}left${i}`,u=fo(e,[o,s,a,c]);return{t:L_(u[o],!0),r:L_(u[s],!0),b:L_(u[a],!0),l:L_(u[c],!0)}},Yg=(e,t)=>`translate${Zs(e)?`(${e[0]},${e[1]})`:`${t?"X":"Y"}(${e})`}`,{round:NH}=Math,Xz={w:0,h:0},I1=e=>e?{w:e.offsetWidth,h:e.offsetHeight}:Xz,uE=e=>e?{w:e.clientWidth,h:e.clientHeight}:Xz,_C=e=>e?{w:e.scrollWidth,h:e.scrollHeight}:Xz,SC=e=>{const t=parseFloat(fo(e,"height"))||0,n=parseFloat(fo(e,"width"))||0;return{w:n-NH(n),h:t-NH(t)}},Yl=e=>e.getBoundingClientRect(),ng=e=>!!(e&&(e.height||e.width));let D_;const Mwe=()=>{if(Ju(D_)){D_=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){D_=!0}}))}catch{}}return D_},nJ=e=>e.split(" "),Lwe=(e,t,n,r)=>{An(nJ(t),i=>{e.removeEventListener(i,n,r)})},oi=(e,t,n,r)=>{var i;const o=Mwe(),s=(i=o&&r&&r.S)!=null?i:o,a=r&&r.$||!1,c=r&&r.C||!1,u=[],f=o?{passive:s,capture:a}:a;return An(nJ(t),h=>{const p=c?g=>{e.removeEventListener(h,p,a),n&&n(g)}:n;Gn(u,Lwe.bind(null,e,h,p,a)),e.addEventListener(h,p,f)}),gc.bind(0,u)},rJ=e=>e.stopPropagation(),iJ=e=>e.preventDefault(),Dwe={x:0,y:0},YD=e=>{const t=e?Yl(e):0;return t?{x:t.left+window.pageYOffset,y:t.top+window.pageXOffset}:Dwe},BH=(e,t)=>{An(Zs(t)?t:[t],e)},Yz=e=>{const t=new Map,n=(o,s)=>{if(o){const a=t.get(o);BH(c=>{a&&a[c?"delete":"clear"](c)},s)}else t.forEach(a=>{a.clear()}),t.clear()},r=(o,s)=>{if(yf(o)){const u=t.get(o)||new Set;return t.set(o,u),BH(f=>{Il(f)&&u.add(f)},s),n.bind(0,o,s)}jz(s)&&s&&n();const a=ea(o),c=[];return An(a,u=>{const f=o[u];f&&Gn(c,r(u,f))}),gc.bind(0,c)},i=(o,s)=>{const a=t.get(o);An(jp(a),c=>{s&&!Uz(s)?c.apply(0,s):c()})};return r(e||{}),[r,n,i]},$H=e=>JSON.stringify(e,(t,n)=>{if(Il(n))throw new Error;return n}),Nwe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},oJ=(e,t)=>{const n={},r=ea(t).concat(ea(e));return An(r,i=>{const o=e[i],s=t[i];if(A1(o)&&A1(s))Br(n[i]={},oJ(o,s)),Hz(n[i])&&delete n[i];else if(Vk(t,i)&&s!==o){let a=!0;if(Zs(o)||Zs(s))try{$H(o)===$H(s)&&(a=!1)}catch{}a&&(n[i]=s)}}),n},kw="data-overlayscrollbars",sJ="os-environment",aJ=`${sJ}-flexbox-glue`,Bwe=`${aJ}-max`,lJ="os-scrollbar-hidden",KD=`${kw}-initialize`,pl=kw,cJ=`${pl}-overflow-x`,uJ=`${pl}-overflow-y`,yg="overflowVisible",$we="scrollbarHidden",FH="scrollbarPressed",EC="updating",gd=`${kw}-viewport`,QD="arrange",dJ="scrollbarHidden",bg=yg,a3=`${kw}-padding`,Fwe=bg,zH=`${kw}-content`,Kz="os-size-observer",zwe=`${Kz}-appear`,jwe=`${Kz}-listener`,Uwe="os-trinsic-observer",Hwe="os-no-css-vars",Wwe="os-theme-none",ds="os-scrollbar",Gwe=`${ds}-rtl`,Vwe=`${ds}-horizontal`,qwe=`${ds}-vertical`,fJ=`${ds}-track`,Qz=`${ds}-handle`,Xwe=`${ds}-visible`,Ywe=`${ds}-cornerless`,jH=`${ds}-transitionless`,UH=`${ds}-interaction`,HH=`${ds}-unusable`,l3=`${ds}-auto-hide`,WH=`${l3}-hidden`,GH=`${ds}-wheel`,Kwe=`${fJ}-interactive`,Qwe=`${Qz}-interactive`,hJ={},Up=()=>hJ,Jwe=e=>{const t=[];return An(Zs(e)?e:[e],n=>{const r=ea(n);An(r,i=>{Gn(t,hJ[i]=n[i])})}),t},Zwe="__osOptionsValidationPlugin",e_e="__osSizeObserverPlugin",Jz="__osScrollbarsHidingPlugin",t_e="__osClickScrollPlugin";let JD;const VH=(e,t,n,r)=>{va(e,t);const i=uE(t),o=I1(t),s=SC(n);return r&&dc(t),{x:o.h-i.h+s.h,y:o.w-i.w+s.w}},n_e=e=>{let t=!1;const n=tf(e,lJ);try{t=fo(e,Twe("scrollbar-width"))==="none"||window.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),t},r_e=(e,t)=>{const n="hidden";fo(e,{overflowX:n,overflowY:n,direction:"rtl"}),wl(e,0);const r=YD(e),i=YD(t);wl(e,-999);const o=YD(t);return{i:r.x===i.x,n:i.x!==o.x}},i_e=(e,t)=>{const n=tf(e,aJ),r=Yl(e),i=Yl(t),o=MH(i,r,!0),s=tf(e,Bwe),a=Yl(e),c=Yl(t),u=MH(c,a,!0);return n(),s(),o&&u},o_e=()=>{const{body:e}=document,n=KQ(`
`)[0],r=n.firstChild,[i,,o]=Yz(),[s,a]=hl({o:VH(e,n,r),u:tJ},VH.bind(0,e,n,r,!0)),[c]=a(),u=n_e(n),f={x:c.x===0,y:c.y===0},h={elements:{host:null,padding:!u,viewport:b=>u&&b===b.ownerDocument.body&&b,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=Br({},Nwe),g=Br.bind(0,{},p),v=Br.bind(0,{},h),y={k:c,I:f,A:u,H:fo(n,"zIndex")==="-1",B:!!o3,V:r_e(n,r),Y:i_e(n,r),j:i.bind(0,"z"),N:i.bind(0,"r"),q:v,F:b=>Br(h,b)&&v(),G:g,X:b=>Br(p,b)&&g(),U:Br({},h),W:Br({},p)},S=window.addEventListener,w=qz(b=>o(b?"z":"r"),{g:33,v:99});if(Go(n,"style"),dc(n),S("resize",w.bind(0,!1)),!u&&(!f.x||!f.y)){let b;S("resize",()=>{const x=Up()[Jz];b=b||x&&x.R(),b&&b(y,s,w.bind(0,!0))})}return y},fs=()=>(JD||(JD=o_e()),JD),Zz=(e,t)=>Il(t)?t.apply(0,e):t,s_e=(e,t,n,r)=>{const i=Ju(r)?n:r;return Zz(e,i)||t.apply(0,e)},pJ=(e,t,n,r)=>{const i=Ju(r)?n:r,o=Zz(e,i);return!!o&&(zx(o)?o:t.apply(0,e))},a_e=(e,t,n)=>{const{nativeScrollbarsOverlaid:r,body:i}=n||{},{I:o,A:s}=fs(),{nativeScrollbarsOverlaid:a,body:c}=t,u=r??a,f=Ju(i)?c:i,h=(o.x||o.y)&&u,p=e&&(Uk(f)?!s:f);return!!h||!!p},ej=new WeakMap,l_e=(e,t)=>{ej.set(e,t)},c_e=e=>{ej.delete(e)},mJ=e=>ej.get(e),qH=(e,t)=>e?t.split(".").reduce((n,r)=>n&&Vk(n,r)?n[r]:void 0,e):void 0,c3=(e,t,n)=>r=>[qH(e,r),n||qH(t,r)!==void 0],gJ=e=>{let t=e;return[()=>t,n=>{t=Br({},t,n)}]},N_="tabindex",B_=Sp.bind(0,""),ZD=e=>{va(ju(e),Wz(e)),dc(e)},u_e=e=>{const t=fs(),{q:n,A:r}=t,i=Up()[Jz],o=i&&i.T,{elements:s}=n(),{host:a,padding:c,viewport:u,content:f}=s,h=zx(e),p=h?{}:e,{elements:g}=p,{host:v,padding:y,viewport:S,content:w}=g||{},b=h?e:p.target,x=xC(b,"textarea"),E=b.ownerDocument,I=E.documentElement,A=b===E.body,k=E.defaultView,O=s_e.bind(0,[b]),D=pJ.bind(0,[b]),N=Zz.bind(0,[b]),H=O.bind(0,B_,u),G=D.bind(0,B_,f),z=H(S),L=z===b,F=L&&A,j=!L&&G(w),V=!L&&zx(z)&&z===j,W=V&&!!N(f),K=W?H():z,X=W?j:G(),re=F?I:V?K:z,ce=x?O(B_,a,v):b,ue=F?re:ce,se=V?X:j,J=E.activeElement,ae=!L&&k.top===k&&J===b,le={Z:b,J:ue,K:re,tt:!L&&D(B_,c,y),nt:se,ot:!L&&!r&&o&&o(t),st:F?I:re,et:F?E:re,ct:k,rt:E,lt:x,it:A,ut:h,ft:L,dt:V,_t:(st,gt)=>bwe(re,L?pl:gd,L?gt:st),ht:(st,gt,vt)=>_p(re,L?pl:gd,L?gt:st,vt)},he=ea(le).reduce((st,gt)=>{const vt=le[gt];return Gn(st,vt&&zx(vt)&&!ju(vt)?vt:!1)},[]),pe=st=>st?Gk(he,st)>-1:null,{Z:ve,J:ye,tt:xe,K:me,nt:be,ot:Ze}=le,Xe=[()=>{Go(ye,pl),Go(ye,KD),Go(ve,KD),A&&(Go(I,pl),Go(I,KD))}],ct=x&&pe(ye);let Bt=x?ve:Wz([be,me,xe,ye,ve].find(st=>pe(st)===!1));const Pe=F?ve:be||me;return[le,()=>{No(ye,pl,L?"viewport":"host"),No(xe,a3,""),No(be,zH,""),L||No(me,gd,"");const st=A&&!L?tf(ju(b),lJ):Bs;if(ct&&(PH(ve,ye),Gn(Xe,()=>{PH(ye,ve),dc(ye)})),va(Pe,Bt),va(ye,xe),va(xe||ye,!L&&me),va(me,be),Gn(Xe,()=>{st(),Go(xe,a3),Go(be,zH),Go(me,cJ),Go(me,uJ),Go(me,gd),pe(be)&&ZD(be),pe(me)&&ZD(me),pe(xe)&&ZD(xe)}),r&&!L&&(_p(me,gd,dJ,!0),Gn(Xe,Go.bind(0,me,gd))),Ze&&(_we(me,Ze),Gn(Xe,dc.bind(0,Ze))),ae){const gt=No(me,N_);No(me,N_,"-1"),me.focus();const vt=()=>gt?No(me,N_,gt):Go(me,N_),_e=oi(E,"pointerdown keydown",()=>{vt(),_e()});Gn(Xe,[vt,_e])}else J&&J.focus&&J.focus();Bt=0},gc.bind(0,Xe)]},d_e=(e,t)=>{const{nt:n}=e,[r]=t;return i=>{const{Y:o}=fs(),{gt:s}=r(),{vt:a}=i,c=(n||!o)&&a;return c&&fo(n,{height:s?"":"100%"}),{wt:c,bt:c}}},f_e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ft:a}=e,[c,u]=hl({u:Iwe,o:DH()},DH.bind(0,i,"padding",""));return(f,h,p)=>{let[g,v]=u(p);const{A:y,Y:S}=fs(),{yt:w}=n(),{wt:b,bt:x,St:E}=f,[I,A]=h("paddingAbsolute");(b||v||!S&&x)&&([g,v]=c(p));const O=!a&&(A||E||v);if(O){const D=!I||!o&&!y,N=g.r+g.l,H=g.t+g.b,G={marginRight:D&&!w?-N:0,marginBottom:D?-H:0,marginLeft:D&&w?-N:0,top:D?-g.t:0,right:D?w?-g.r:"auto":0,left:D?w?"auto":-g.l:0,width:D?`calc(100% + ${N}px)`:""},z={paddingTop:D?g.t:0,paddingRight:D?g.r:0,paddingBottom:D?g.b:0,paddingLeft:D?g.l:0};fo(o||s,G),fo(s,z),r({tt:g,$t:!D,P:o?z:Br({},G,z)})}return{xt:O}}},{max:u3}=Math,vd=u3.bind(0,0),vJ="visible",XH="hidden",h_e=42,$_={u:eJ,o:{w:0,h:0}},p_e={u:tJ,o:{x:XH,y:XH}},m_e=(e,t)=>{const n=window.devicePixelRatio%1!==0?1:0,r={w:vd(e.w-t.w),h:vd(e.h-t.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},F_=e=>e.indexOf(vJ)===0,g_e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ot:a,ft:c,ht:u,it:f,ct:h}=e,{k:p,Y:g,A:v,I:y}=fs(),S=Up()[Jz],w=!c&&!v&&(y.x||y.y),b=f&&c,[x,E]=hl($_,SC.bind(0,s)),[I,A]=hl($_,_C.bind(0,s)),[k,O]=hl($_),[D,N]=hl($_),[H]=hl(p_e),G=(W,K)=>{if(fo(s,{height:""}),K){const{$t:X,tt:Q}=n(),{Ct:re,M:ce}=W,ue=SC(i),se=uE(i),J=fo(s,"boxSizing")==="content-box",ae=X||J?Q.b+Q.t:0,le=!(y.x&&J);fo(s,{height:se.h+ue.h+(re.x&&le?ce.x:0)-ae})}},z=(W,K)=>{const X=!v&&!W?h_e:0,Q=(pe,ve,ye)=>{const xe=fo(s,pe),be=(K?K[pe]:xe)==="scroll";return[xe,be,be&&!v?ve?X:ye:0,ve&&!!X]},[re,ce,ue,se]=Q("overflowX",y.x,p.x),[J,ae,le,he]=Q("overflowY",y.y,p.y);return{Ot:{x:re,y:J},Ct:{x:ce,y:ae},M:{x:ue,y:le},D:{x:se,y:he}}},L=(W,K,X,Q)=>{const re=(ae,le)=>{const he=F_(ae),pe=le&&he&&ae.replace(`${vJ}-`,"")||"";return[le&&!he?ae:"",F_(pe)?"hidden":pe]},[ce,ue]=re(X.x,K.x),[se,J]=re(X.y,K.y);return Q.overflowX=ue&&se?ue:ce,Q.overflowY=J&&ce?J:se,z(W,Q)},F=(W,K,X,Q)=>{const{M:re,D:ce}=W,{x:ue,y:se}=ce,{x:J,y:ae}=re,{P:le}=n(),he=K?"marginLeft":"marginRight",pe=K?"paddingLeft":"paddingRight",ve=le[he],ye=le.marginBottom,xe=le[pe],me=le.paddingBottom;Q.width=`calc(100% + ${ae+ve*-1}px)`,Q[he]=-ae+ve,Q.marginBottom=-J+ye,X&&(Q[pe]=xe+(se?ae:0),Q.paddingBottom=me+(ue?J:0))},[j,V]=S?S.L(w,g,s,a,n,z,F):[()=>w,()=>[Bs]];return(W,K,X)=>{const{wt:Q,Tt:re,bt:ce,xt:ue,vt:se,St:J}=W,{gt:ae,yt:le}=n(),[he,pe]=K("showNativeOverlaidScrollbars"),[ve,ye]=K("overflow"),xe=he&&y.x&&y.y,me=!c&&!g&&(Q||ce||re||pe||se),be=F_(ve.x),Ze=F_(ve.y),Xe=be||Ze;let ct=E(X),Bt=A(X),Pe=O(X),ze=N(X),st;if(pe&&v&&u(dJ,$we,!xe),me&&(st=z(xe),G(st,ae)),Q||ue||ce||J||pe){Xe&&u(bg,yg,!1);const[Re,He]=V(xe,le,st),[xt,Wt]=ct=x(X),[yn,Yr]=Bt=I(X),Hr=uE(s);let Wr=yn,Kr=Hr;Re(),(Yr||Wt||pe)&&He&&!xe&&j(He,yn,xt,le)&&(Kr=uE(s),Wr=_C(s));const ci={w:vd(u3(yn.w,Wr.w)+xt.w),h:vd(u3(yn.h,Wr.h)+xt.h)},hs={w:vd((b?h.innerWidth:Kr.w+vd(Hr.w-yn.w))+xt.w),h:vd((b?h.innerHeight+xt.h:Kr.h+vd(Hr.h-yn.h))+xt.h)};ze=D(hs),Pe=k(m_e(ci,hs),X)}const[gt,vt]=ze,[_e,je]=Pe,[Ke,Fe]=Bt,[Be,Pt]=ct,dt={x:_e.w>0,y:_e.h>0},Ie=be&&Ze&&(dt.x||dt.y)||be&&dt.x&&!dt.y||Ze&&dt.y&&!dt.x;if(ue||J||Pt||Fe||vt||je||ye||pe||me){const Re={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},He=L(xe,dt,ve,Re),xt=j(He,Ke,Be,le);c||F(He,le,xt,Re),me&&G(He,ae),c?(No(i,cJ,Re.overflowX),No(i,uJ,Re.overflowY)):fo(s,Re)}_p(i,pl,yg,Ie),_p(o,a3,Fwe,Ie),c||_p(s,gd,bg,Xe);const[at,$t]=H(z(xe).Ot);return r({Ot:at,zt:{x:gt.w,y:gt.h},Et:{x:_e.w,y:_e.h},At:dt}),{It:$t,Ht:vt,Lt:je}}},YH=(e,t,n)=>{const r={},i=t||{},o=ea(e).concat(ea(i));return An(o,s=>{const a=e[s],c=i[s];r[s]=!!(n||a||c)}),r},v_e=(e,t)=>{const{Z:n,K:r,ht:i,ft:o}=e,{A:s,I:a,Y:c}=fs(),u=!s&&(a.x||a.y),f=[d_e(e,t),f_e(e,t),g_e(e,t)];return(h,p,g)=>{const v=YH(Br({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},p),{},g),y=u||!c,S=y&&wl(r),w=y&&Pu(r);i("",EC,!0);let b=v;return An(f,x=>{b=YH(b,x(b,h,!!g)||{},g)}),wl(r,S),Pu(r,w),i("",EC),o||(wl(n,0),Pu(n,0)),b}},y_e=(e,t,n)=>{let r,i=!1;const o=()=>{i=!0},s=a=>{if(n){const c=n.reduce((u,f)=>{if(f){const[h,p]=f,g=p&&h&&(a?a(h):YQ(h,e));g&&g.length&&p&&yf(p)&&Gn(u,[g,p.trim()],!0)}return u},[]);An(c,u=>An(u[0],f=>{const h=u[1],p=r.get(f)||[];if(e.contains(f)){const v=oi(f,h,y=>{i?(v(),r.delete(f)):t(y)});r.set(f,Gn(p,v))}else gc(p),r.delete(f)}))}};return n&&(r=new WeakMap,s()),[o,s]},KH=(e,t,n,r)=>{let i=!1;const{Mt:o,Dt:s,Rt:a,kt:c,Bt:u,Vt:f}=r||{},h=qz(()=>i&&n(!0),{g:33,v:99}),[p,g]=y_e(e,h,a),v=o||[],y=s||[],S=v.concat(y),w=(x,E)=>{const I=u||Bs,A=f||Bs,k=new Set,O=new Set;let D=!1,N=!1;if(An(x,H=>{const{attributeName:G,target:z,type:L,oldValue:F,addedNodes:j,removedNodes:V}=H,W=L==="attributes",K=L==="childList",X=e===z,Q=W&&yf(G)?No(z,G):0,re=Q!==0&&F!==Q,ce=Gk(y,G)>-1&&re;if(t&&(K||!X)){const ue=!W,se=W&&re,J=se&&c&&xC(z,c),le=(J?!I(z,G,F,Q):ue||se)&&!A(H,!!J,e,r);An(j,he=>k.add(he)),An(V,he=>k.add(he)),N=N||le}!t&&X&&re&&!I(z,G,F,Q)&&(O.add(G),D=D||ce)}),k.size>0&&g(H=>jp(k).reduce((G,z)=>(Gn(G,YQ(H,z)),xC(z,H)?Gn(G,z):G),[])),t)return!E&&N&&n(!1),[!1];if(O.size>0||D){const H=[jp(O),D];return!E&&n.apply(0,H),H}},b=new kwe(x=>w(x));return b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:S,subtree:t,childList:t,characterData:t}),i=!0,[()=>{i&&(p(),b.disconnect(),i=!1)},()=>{if(i){h.m();const x=b.takeRecords();return!Uz(x)&&w(x,!0)}}]},z_=3333333,yJ=(e,t,n)=>{const{Yt:r,Pt:i}=n||{},o=Up()[e_e],{V:s}=fs(),c=KQ(`
`)[0],u=c.firstChild,f=Xg.bind(0,e),[h]=hl({o:!1,_:!0,u:(v,y)=>!(!v||!ng(v)&&ng(y))}),p=v=>{const y=Zs(v)&&v.length>0&&A1(v[0]),S=!y&&jz(v[0]);let w=!1,b=!1,x=!0;if(y){const[E,,I]=h(v.pop().contentRect),A=ng(E),k=ng(I);w=!I&&!!k||!A,b=!k&&A,x=!w}else S?[,x]=v:b=v===!0;if(r&&x){const E=S?v[0]:Xg(c);wl(c,E?s.n?-z_:s.i?0:z_:z_),Pu(c,z_)}w||t({wt:!S,jt:S?v:void 0,Pt:!!b})},g=[];return[()=>{gc(g),dc(c)},()=>{let v=i&&p;if(tg){const y=new tg(p);y.observe(u),Gn(g,()=>{y.disconnect()})}else if(o){const[y,S]=o.O(u,p,i);v=y,Gn(g,S)}if(r){const[y]=hl({o:void 0},f);Gn(g,oi(c,"scroll",S=>{const w=y(),[b,x,E]=w;x&&(Vz(u,"ltr rtl"),tf(u,b?"rtl":"ltr"),p([!!b,x,E])),rJ(S)}))}v&&(tf(c,zwe),Gn(g,oi(c,"animationstart",v,{C:!!tg}))),(tg||o)&&va(e,c)}]},b_e=e=>e.h===0||e.isIntersecting||e.intersectionRatio>0,x_e=(e,t)=>{let n;const r=Sp(Uwe),i=[],[o]=hl({o:!1}),s=(c,u)=>{if(c){const f=o(b_e(c)),[,h]=f;return h&&!u&&t(f)&&[f]}},a=(c,u)=>c&&c.length>0&&s(c.pop(),u);return[()=>{gc(i),dc(r)},()=>{if(OH)n=new OH(c=>a(c),{root:e}),n.observe(r),Gn(i,()=>{n.disconnect()});else{const c=()=>{const h=I1(r);s(h)},[u,f]=yJ(r,c);Gn(i,u),f(),c()}va(e,r)},()=>n&&a(n.takeRecords(),!0)]},QH=`[${pl}]`,w_e=`[${gd}]`,eN=["tabindex"],JH=["wrap","cols","rows"],tN=["id","class","style","open"],__e=(e,t,n)=>{let r,i,o;const{J:s,K:a,nt:c,lt:u,ft:f,_t:h,ht:p}=e,{Y:g}=fs(),[v]=hl({u:eJ,o:{w:0,h:0}},()=>{const F=h(bg,yg),j=h(QD,""),V=j&&wl(a),W=j&&Pu(a);p(bg,yg),p(QD,""),p("",EC,!0);const K=_C(c),X=_C(a),Q=SC(a);return p(bg,yg,F),p(QD,"",j),p("",EC),wl(a,V),Pu(a,W),{w:X.w+K.w+Q.w,h:X.h+K.h+Q.h}}),y=u?JH:tN.concat(JH),S=qz(n,{g:()=>r,v:()=>i,p(F,j){const[V]=F,[W]=j;return[ea(V).concat(ea(W)).reduce((K,X)=>(K[X]=V[X]||W[X],K),{})]}}),w=F=>{An(F||eN,j=>{if(Gk(eN,j)>-1){const V=No(s,j);yf(V)?No(a,j,V):Go(a,j)}})},b=(F,j)=>{const[V,W]=F,K={vt:W};return t({gt:V}),!j&&n(K),K},x=({wt:F,jt:j,Pt:V})=>{const W=!F||V?n:S;let K=!1;if(j){const[X,Q]=j;K=Q,t({yt:X})}W({wt:F,Pt:V,St:K})},E=(F,j)=>{const[,V]=v(),W={bt:V};return V&&!j&&(F?n:S)(W),W},I=(F,j,V)=>{const W={Tt:j};return j?!V&&S(W):f||w(F),W},[A,k,O]=c||!g?x_e(s,b):[Bs,Bs,Bs],[D,N]=f?[Bs,Bs]:yJ(s,x,{Pt:!0,Yt:!0}),[H,G]=KH(s,!1,I,{Dt:tN,Mt:tN.concat(eN)});let z;const L=f&&tg&&new tg(F=>{const j=F[F.length-1].contentRect,V=ng(j),K=!ng(z)&&V;x({wt:!0,Pt:K}),z=j});return[()=>{A(),D(),o&&o[0](),L&&L.disconnect(),H()},()=>{L&&L.observe(s),w(),N(),k()},()=>{const F={},j=G(),V=O(),W=o&&o[1]();return j&&Br(F,I.apply(0,Gn(j,!0))),V&&Br(F,b.apply(0,Gn(V,!0))),W&&Br(F,E.apply(0,Gn(W,!0))),F},F=>{const[j]=F("update.ignoreMutation"),[V,W]=F("update.attributes"),[K,X]=F("update.elementEvents"),[Q,re]=F("update.debounce"),ce=X||W,ue=se=>Il(j)&&j(se);if(ce&&(o&&(o[1](),o[0]()),o=KH(c||a,!0,E,{Mt:y.concat(V||[]),Rt:K,kt:QH,Vt:(se,J)=>{const{target:ae,attributeName:le}=se;return(!J&&le&&!f?wwe(ae,QH,w_e):!1)||!!eg(ae,`.${ds}`)||!!ue(se)}})),re)if(S.m(),Zs(Q)){const se=Q[0],J=Q[1];r=Gd(se)&&se,i=Gd(J)&&J}else Gd(Q)?(r=Q,i=!1):(r=!1,i=!1)}]},ZH={x:0,y:0},S_e=e=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:ZH,Et:ZH,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:Xg(e.J)}),E_e=(e,t)=>{const n=c3(t,{}),[r,i,o]=Yz(),[s,a,c]=u_e(e),u=gJ(S_e(s)),[f,h]=u,p=v_e(s,u),g=(x,E,I)=>{const k=ea(x).some(O=>!!x[O])||!Hz(E)||I;return k&&o("u",[x,E,I]),k},[v,y,S,w]=__e(s,h,x=>g(p(n,x),{},!1)),b=f.bind(0);return b.Nt=x=>r("u",x),b.qt=()=>{const{Z:x,K:E,rt:I,it:A}=s,k=A?I.documentElement:x,O=wl(k),D=Pu(k);y(),a(),wl(E,O),Pu(E,D)},b.Ft=s,[(x,E)=>{const I=c3(t,x,E);return w(I),g(p(I,S(),E),x,!!E)},b,()=>{i(),v(),c()}]},{round:eW}=Math,C_e=e=>{const{width:t,height:n}=Yl(e),{w:r,h:i}=I1(e);return{x:eW(t)/r||1,y:eW(n)/i||1}},T_e=(e,t,n)=>{const r=t.scrollbars,{button:i,isPrimary:o,pointerType:s}=e,{pointers:a}=r;return i===0&&o&&r[n?"dragScroll":"clickScroll"]&&(a||[]).includes(s)},tW="pointerup pointerleave pointercancel lostpointercapture",k_e=(e,t)=>oi(e,"mousedown",oi.bind(0,t,"click",rJ,{C:!0,$:!0}),{$:!0}),A_e=(e,t,n,r,i,o,s)=>{const{V:a}=fs(),{Gt:c,Xt:u,Ut:f}=r,h=`scroll${s?"Left":"Top"}`,p=`client${s?"X":"Y"}`,g=s?"width":"height",v=s?"left":"top",y=s?"w":"h",S=s?"x":"y",w=(b,x)=>E=>{const{Et:I}=o(),A=I1(u)[y]-I1(c)[y],O=x*E/A*I[S],N=Xg(f)&&s?a.n||a.i?1:-1:1;i[h]=b+O*N};return oi(u,"pointerdown",b=>{const x=eg(b.target,`.${Qz}`)===c,E=x?c:u;if(_p(t,pl,FH,!0),T_e(b,e,x)){const I=!x&&b.shiftKey,A=()=>Yl(c),k=()=>Yl(u),O=(K,X)=>(K||A())[v]-(X||k())[v],D=w(i[h]||0,1/C_e(i)[S]),N=b[p],H=A(),G=k(),z=H[g],L=O(H,G)+z/2,F=N-G[v],j=x?0:F-L,V=K=>{gc(W),E.releasePointerCapture(K.pointerId)},W=[_p.bind(0,t,pl,FH),oi(n,tW,V),oi(n,"selectstart",K=>iJ(K),{S:!1}),oi(u,tW,V),oi(u,"pointermove",K=>{const X=K[p]-N;(x||I)&&D(j+X)})];if(I)D(j);else if(!x){const K=Up()[t_e];K&&Gn(W,K.O(D,O,j,z,F))}E.setPointerCapture(b.pointerId)}})},I_e=(e,t)=>(n,r,i,o,s,a,c)=>{const{Ut:u}=n,[f,h]=Zh(333),p=!!s.scrollBy;let g=!0;return gc.bind(0,[oi(u,"pointerenter",()=>{r(UH,!0)}),oi(u,"pointerleave pointercancel",()=>{r(UH)}),oi(u,"wheel",v=>{const{deltaX:y,deltaY:S,deltaMode:w}=v;p&&g&&w===0&&ju(u)===o&&s.scrollBy({left:y,top:S,behavior:"smooth"}),g=!1,r(GH,!0),f(()=>{g=!0,r(GH)}),iJ(v)},{S:!1,$:!0}),k_e(u,i),A_e(e,o,i,n,s,t,c),h])},{min:CC,max:d3,round:R_e}=Math,bJ=(e,t,n,r)=>{if(r){const a=n?"x":"y",{Et:c,zt:u}=r,f=u[a],h=c[a];return d3(0,CC(1,f/(f+h)))}const i=n?"width":"height",o=Yl(e)[i],s=Yl(t)[i];return d3(0,CC(1,o/s))},P_e=(e,t,n,r,i,o)=>{const{V:s}=fs(),a=o?"x":"y",c=o?"Left":"Top",{Et:u}=r,f=R_e(u[a]),h=CC(f,d3(0,n[`scroll${c}`])),p=o&&i,g=s.i?h:f-h,y=CC(1,(p?g:h)/f),S=bJ(e,t,o);return 1/S*(1-S)*y},xJ=(e,t,n,r)=>t&&e.animate(n,{timeline:t,composite:r}),O_e=(e,t)=>({transform:[Yg("0%",t),Yg(t&&e?"100%":"-100%",t)],[t?e?"right":"left":"top"]:["0%","100%"]}),M_e=e=>`${Math.max(0,e-.5)}px`,nW=(e,t,n,r)=>xJ(e,t,{transform:[Yg("0px",r),Yg(M_e(n),r)]},"add"),rW=(e,t)=>o3?new o3({source:e,axis:t}):null,L_e=(e,t,n)=>{const{q:r,H:i}=fs(),{scrollbars:o}=r(),{slot:s}=o,{rt:a,Z:c,J:u,K:f,ut:h,st:p,it:g,ft:v}=t,{scrollbars:y}=h?{}:e,{slot:S}=y||{},w=new Map,b=rW(p,"x"),x=rW(p,"y"),E=pJ([c,u,f],()=>v&&g?c:u,s,S),I=se=>v&&!g&&ju(se)===f,A=se=>{w.forEach((J,ae)=>{(se?Gk(Zs(se)?se:[se],ae)>-1:!0)&&((J||[]).forEach(he=>{he&&he.cancel()}),w.delete(ae))})},k=(se,J,ae)=>{const le=ae?tf:Vz;An(se,he=>{le(he.Ut,J)})},O=(se,J)=>{An(se,ae=>{const[le,he]=J(ae);fo(le,he)})},D=(se,J,ae)=>{O(se,le=>{const{Gt:he,Xt:pe}=le;return[he,{[ae?"width":"height"]:`${(bJ(he,pe,ae,J)*100).toFixed(3)}%`}]})},N=(se,J,ae)=>{!x&&!x&&O(se,le=>{const{Gt:he,Xt:pe,Ut:ve}=le,ye=P_e(he,pe,p,J,Xg(ve),ae);return[he,{transform:ye===ye?Yg(`${(ye*100).toFixed(3)}%`,ae):""}]})},H=se=>{const{Ut:J}=se,ae=I(J)&&J;return[ae,{transform:ae?Yg([`${wl(p)}px`,`${Pu(p)}px`]):""}]},G=[],z=[],L=[],F=(se,J,ae)=>{const le=jz(ae),he=le?ae:!0,pe=le?!ae:!0;he&&k(z,se,J),pe&&k(L,se,J)},j=se=>{D(z,se,!0),D(L,se)},V=se=>{N(z,se,!0),N(L,se)},W=()=>{const se=(J,{Ut:ae,Gt:le})=>{A(le),w.set(le,[xJ(le,J?b:x,O_e(J&&Xg(ae),J))])};z.forEach(se.bind(0,!0)),L.forEach(se.bind(0,!1))},K=()=>{!x&&!x&&(v&&O(z,H),v&&O(L,H))},X=({Et:se})=>{L.concat(z).forEach(({Ut:J})=>{A(J),I(J)&&w.set(J,[nW(J,b,se.x,!0),nW(J,x,se.y)])})},Q=se=>{const J=se?Vwe:qwe,ae=se?z:L,le=Uz(ae)?jH:"",he=Sp(`${ds} ${J} ${le}`),pe=Sp(fJ),ve=Sp(Qz),ye={Ut:he,Xt:pe,Gt:ve};return i||tf(he,Hwe),va(he,pe),va(pe,ve),Gn(ae,ye),Gn(G,[dc.bind(0,he),A,n(ye,F,a,u,p,se?b:x,se)]),ye},re=Q.bind(0,!0),ce=Q.bind(0,!1),ue=()=>{va(E,z[0].Ut),va(E,L[0].Ut),wC(()=>{F(jH)},300)};return re(),ce(),[{Wt:j,Zt:V,Jt:W,Kt:X,Qt:K,tn:F,nn:{B:b,sn:z,en:re,cn:O.bind(0,z)},rn:{B:x,sn:L,en:ce,cn:O.bind(0,L)}},ue,gc.bind(0,G)]},nN=e=>e.pointerType==="mouse",D_e=(e,t,n,r)=>{let i,o,s,a,c,u=Bs,f=0;const h=gJ({}),[p]=h,[g,v]=Zh(),[y,S]=Zh(),[w,b]=Zh(100),[x,E]=Zh(100),[I,A]=Zh(100),[k,O]=Zh(()=>f),[D,N,H]=L_e(e,n.Ft,I_e(t,n)),{J:G,et:z,it:L}=n.Ft,{tn:F,Wt:j,Zt:V,Jt:W,Kt:K,Qt:X}=D,Q=J=>{F(l3,J,!0),F(l3,J,!1)},re=(J,ae)=>{if(O(),J)F(WH);else{const le=()=>F(WH,!0);f>0&&!ae?k(le):le()}},ce=J=>{nN(J)&&(a=o,a&&re(!0))},ue=[b,O,E,A,S,v,H,oi(G,"pointerover",ce,{C:!0}),oi(G,"pointerenter",ce),oi(G,"pointerleave",J=>{nN(J)&&(a=!1,o&&re(!1))}),oi(G,"pointermove",J=>{nN(J)&&i&&g(()=>{b(),re(!0),x(()=>{i&&re(!1)})})}),oi(z,"scroll",J=>{y(()=>{V(n()),s&&re(!0),w(()=>{s&&!a&&re(!1)})}),r(J),X()})],se=p.bind(0);return se.Ft=D,se.qt=N,[(J,ae,le)=>{const{Ht:he,Lt:pe,It:ve,St:ye,Pt:xe}=le,{I:me}=fs(),be=c3(t,J,ae),Ze=n(),{Et:Xe,Ot:ct,yt:Bt,At:Pe}=Ze,[ze,st]=be("showNativeOverlaidScrollbars"),[gt,vt]=be("scrollbars.theme"),[_e,je]=be("scrollbars.visibility"),[Ke,Fe]=be("scrollbars.autoHide"),[Be,Pt]=be("scrollbars.autoHideSuspend"),[dt]=be("scrollbars.autoHideDelay"),[Ie,at]=be("scrollbars.dragScroll"),[$t,Re]=be("scrollbars.clickScroll"),He=xe&&!ae,xt=Pe.x||Pe.y,Wt=he||pe||ye,yn=ve||je,Yr=ze&&me.x&&me.y,Hr=(Wr,Kr)=>{const ci=_e==="visible"||_e==="auto"&&Wr==="scroll";return F(Xwe,ci,Kr),ci};if(f=dt,He&&(Be&&xt?(Q(!1),u(),I(()=>{u=oi(z,"scroll",Q.bind(0,!0),{C:!0})})):Q(!0)),st&&F(Wwe,Yr),vt&&(F(c),F(gt,!0),c=gt),Pt&&!Be&&Q(!0),Fe&&(i=Ke==="move",o=Ke==="leave",s=Ke!=="never",re(!s,!0)),at&&F(Qwe,Ie),Re&&F(Kwe,$t),yn){const Wr=Hr(ct.x,!0),Kr=Hr(ct.y,!1);F(Ywe,!(Wr&&Kr))}Wt&&(j(Ze),V(Ze),W(Ze),K(Ze),X(),F(HH,!Xe.x,!0),F(HH,!Xe.y,!1),F(Gwe,Bt&&!L))},se,()=>{gc(ue),u()}]},wJ=(e,t,n)=>{Il(e)&&e(t||void 0,n||void 0)},Id=(e,t,n)=>{const{G:r,q:i,j:o,N:s}=fs(),a=Up(),c=zx(e),u=c?e:e.target,f=mJ(u);if(t&&!f){let h=!1;const p=z=>{const L=Up()[Zwe],F=L&&L.O;return F?F(z,!0):z},g=Br({},r(),p(t)),[v,y,S]=Yz(n),[w,b,x]=E_e(e,g),[E,I,A]=D_e(e,g,b,z=>S("scroll",[G,z])),k=(z,L)=>w(z,!!L),O=k.bind(0,{},!0),D=o(O),N=s(O),H=z=>{c_e(u),D(),N(),A(),x(),h=!0,S("destroyed",[G,!!z]),y()},G={options(z,L){if(z){const F=L?r():{},j=oJ(g,Br(F,p(z)));Hz(j)||(Br(g,j),k(j))}return Br({},g)},on:v,off:(z,L)=>{z&&L&&y(z,L)},state(){const{zt:z,Et:L,Ot:F,At:j,tt:V,$t:W,yt:K}=b();return Br({},{overflowEdge:z,overflowAmount:L,overflowStyle:F,hasOverflow:j,padding:V,paddingAbsolute:W,directionRTL:K,destroyed:h})},elements(){const{Z:z,J:L,tt:F,K:j,nt:V,st:W,et:K}=b.Ft,{nn:X,rn:Q}=I.Ft,re=ue=>{const{Gt:se,Xt:J,Ut:ae}=ue;return{scrollbar:ae,track:J,handle:se}},ce=ue=>{const{sn:se,en:J}=ue,ae=re(se[0]);return Br({},ae,{clone:()=>{const le=re(J());return E({},!0,{}),le}})};return Br({},{target:z,host:L,padding:F||j,viewport:j,content:V||j,scrollOffsetElement:W,scrollEventElement:K,scrollbarHorizontal:ce(X),scrollbarVertical:ce(Q)})},update:z=>k({},z),destroy:H.bind(0)};return b.Nt((z,L,F)=>{E(L,F,z)}),l_e(u,G),An(ea(a),z=>wJ(a[z],0,G)),a_e(b.Ft.it,i().cancel,!c&&e.cancel)?(H(!0),G):(b.qt(),I.qt(),S("initialized",[G]),b.Nt((z,L,F)=>{const{wt:j,St:V,vt:W,Ht:K,Lt:X,It:Q,bt:re,Tt:ce}=z;S("updated",[G,{updateHints:{sizeChanged:j,directionChanged:V,heightIntrinsicChanged:W,overflowEdgeChanged:K,overflowAmountChanged:X,overflowStyleChanged:Q,contentMutation:re,hostMutation:ce},changedOptions:L,force:F}])}),G.update(!0),G)}return f};Id.plugin=e=>{An(Jwe(e),t=>wJ(t,Id))};Id.valid=e=>{const t=e&&e.elements,n=Il(t)&&t();return n3(n)&&!!mJ(n.target)};Id.env=()=>{const{k:e,I:t,A:n,V:r,Y:i,H:o,B:s,U:a,W:c,q:u,F:f,G:h,X:p}=fs();return Br({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:i,cssCustomProperties:o,scrollTimeline:s,staticDefaultInitialization:a,staticDefaultOptions:c,getDefaultInitialization:u,setDefaultInitialization:f,getDefaultOptions:h,setDefaultOptions:p})};const N_e=()=>{if(typeof window>"u"){const u=()=>{};return[u,u]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,o=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,a=r?n.cancelIdleCallback:o,c=()=>{a(e),o(t)};return[(u,f)=>{c(),e=s(r?()=>{c(),t=i(u)}:u,typeof f=="object"?f:{timeout:2233})},c]},_J=e=>{const{options:t,events:n,defer:r}=e||{},[i,o]=P.useMemo(N_e,[]),s=P.useRef(null),a=P.useRef(r),c=P.useRef(t),u=P.useRef(n);return P.useEffect(()=>{a.current=r},[r]),P.useEffect(()=>{const{current:f}=s;c.current=t,Id.valid(f)&&f.options(t||{},!0)},[t]),P.useEffect(()=>{const{current:f}=s;u.current=n,Id.valid(f)&&f.on(n||{},!0)},[n]),P.useEffect(()=>()=>{var f;o(),(f=s.current)==null||f.destroy()},[]),P.useMemo(()=>[f=>{const h=s.current;if(Id.valid(h))return;const p=a.current,g=c.current||{},v=u.current||{},y=()=>s.current=Id(f,g,v);p?i(y,p):y()},()=>s.current],[])},B_e=(e,t)=>{const{element:n="div",options:r,events:i,defer:o,children:s,...a}=e,c=n,u=P.useRef(null),f=P.useRef(null),[h,p]=P.useState(!1),[g,v]=_J({options:r,events:i,defer:o});return P.useEffect(()=>{p(!0)},[]),P.useEffect(()=>{const{current:y}=u,{current:S}=f;return h&&y&&S&&g({target:y,elements:{viewport:S,content:S}}),()=>{var w;return(w=v())==null?void 0:w.destroy()}},[h,g,n]),P.useImperativeHandle(t,()=>({osInstance:v,getElement:()=>u.current}),[]),de.createElement(c,{"data-overlayscrollbars-initialize":"",ref:u,...a},h?de.createElement("div",{ref:f,"data-overlayscrollbars-contents":!0},s):s)},$_e=P.forwardRef(B_e),Aw=P.forwardRef(({children:e,x:t,y:n,px:r=6,...i},o)=>{const{palette:s,spacing:a}=Ln(),c=k1({"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${a(r)})`,marginTop:a(r)}}),u=P.useCallback(f=>{if(o&&f){const h=f.elements().viewport;h&&(typeof o=="function"?o(h):o.current=h)}},[o]);return C.jsx($_e,{options:{overflow:{x:t?"scroll":"hidden",y:n?"scroll":"hidden"},scrollbars:{autoHide:"move",theme:s.mode==="dark"?"os-theme-light":"os-theme-dark"}},...i,className:`${c} ${i.className}`,events:{initialized:u},children:e})});var SJ={exports:{}},or={};/** @license React v17.0.2 + */function An(e,t){if(Wk(e))for(let n=0;nt(e[n],n,e));return e}function fo(e,t){const n=yf(t);if(ea(t)||n){let i=n?"":{};if(e){const o=window.getComputedStyle(e,null);i=n?$H(e,o,t):t.reduce((s,a)=>(s[a]=$H(e,o,a),s),i)}return i}e&&An(ta(t),i=>$we(e,i,t[i]))}const hl=(e,t)=>{const{o:n,u:r,_:i}=e;let o=n,s;const a=(f,h)=>{const p=o,g=f,v=h||(r?!r(p,g):p!==g);return(v||i)&&(o=g,s=p),[o,v,s]};return[t?f=>a(t(o,s),f):a,f=>[o,!!f,s]]},Tw=()=>typeof window<"u",JQ=Tw()&&Node.ELEMENT_NODE,{toString:Swe,hasOwnProperty:qD}=Object.prototype,Qu=e=>e===void 0,Hk=e=>e===null,Ewe=e=>Qu(e)||Hk(e)?`${e}`:Swe.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Gd=e=>typeof e=="number",yf=e=>typeof e=="string",Uz=e=>typeof e=="boolean",Il=e=>typeof e=="function",ea=e=>Array.isArray(e),k1=e=>typeof e=="object"&&!ea(e)&&!Hk(e),Wk=e=>{const t=!!e&&e.length,n=Gd(t)&&t>-1&&t%1==0;return ea(e)||!Il(e)&&n?t>0&&k1(e)?t-1 in e:!0:!1},r3=e=>{if(!e||!k1(e)||Ewe(e)!=="object")return!1;let t;const n="constructor",r=e[n],i=r&&r.prototype,o=qD.call(e,n),s=i&&qD.call(i,"isPrototypeOf");if(r&&!o&&!s)return!1;for(t in e);return Qu(t)||qD.call(e,t)},$x=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===JQ:!1},Gk=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===JQ:!1},Vk=(e,t,n)=>e.indexOf(t,n),Gn=(e,t,n)=>(!n&&!yf(t)&&Wk(t)?Array.prototype.push.apply(e,t):e.push(t),e),Hp=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{Gn(n,r)}):An(e,r=>{Gn(n,r)}),n)},Hz=e=>!!e&&e.length===0,vc=(e,t,n)=>{An(e,i=>i&&i.apply(void 0,t||[])),!n&&(e.length=0)},qk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ta=e=>e?Object.keys(e):[],Br=(e,t,n,r,i,o,s)=>{const a=[t,n,r,i,o,s];return(typeof e!="object"||Hk(e))&&!Il(e)&&(e={}),An(a,c=>{An(ta(c),u=>{const f=c[u];if(e===f)return!0;const h=ea(f);if(f&&r3(f)){const p=e[u];let g=p;h&&!ea(p)?g=[]:!h&&!r3(p)&&(g={}),e[u]=Br(g,f)}else e[u]=h?f.slice():f})}),e},Wz=e=>{for(const t in e)return!1;return!0},ZQ=(e,t,n,r)=>{if(Qu(r))return n?n[e]:t;n&&(yf(r)||Gd(r))&&(n[e]=r)},No=(e,t,n)=>{if(Qu(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},eJ=(e,t)=>new Set((No(e,t)||"").split(" ")),Go=(e,t)=>{e&&e.removeAttribute(t)},Sp=(e,t,n,r)=>{if(n){const i=eJ(e,t);i[r?"add":"delete"](n);const o=Hp(i).join(" ").trim();No(e,t,o)}},Cwe=(e,t,n)=>eJ(e,t).has(n),wl=(e,t)=>ZQ("scrollLeft",0,e,t),Pu=(e,t)=>ZQ("scrollTop",0,e,t),i3=Tw()&&Element.prototype,tJ=(e,t)=>{const n=[],r=t?Gk(t)&&t:document;return r?Gn(n,r.querySelectorAll(e)):n},Twe=(e,t)=>{const n=t?Gk(t)&&t:document;return n?n.querySelector(e):null},_C=(e,t)=>Gk(e)?(i3.matches||i3.msMatchesSelector).call(e,t):!1,Gz=e=>e?Hp(e.childNodes):[],ju=e=>e&&e.parentElement,rg=(e,t)=>{if(Gk(e)){const n=i3.closest;if(n)return n.call(e,t);do{if(_C(e,t))return e;e=ju(e)}while(e)}},kwe=(e,t,n)=>{const r=rg(e,t),i=e&&Twe(n,r),o=rg(i,t)===r;return r&&i?r===e||i===e||o&&rg(rg(e,n),t)!==r:!1},Vz=(e,t,n)=>{if(n&&e){let r=t,i;Wk(n)?(i=document.createDocumentFragment(),An(n,o=>{o===r&&(r=o.previousSibling),i.appendChild(o)})):i=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(i,r||null)}},ya=(e,t)=>{Vz(e,null,t)},Awe=(e,t)=>{Vz(ju(e),e,t)},DH=(e,t)=>{Vz(ju(e),e&&e.nextSibling,t)},dc=e=>{if(Wk(e))An(Hp(e),t=>dc(t));else if(e){const t=ju(e);t&&t.removeChild(e)}},Ep=e=>{const t=document.createElement("div");return e&&No(t,"class",e),t},nJ=e=>{const t=Ep();return t.innerHTML=e.trim(),An(Gz(t),n=>dc(n))},o3=e=>e.charAt(0).toUpperCase()+e.slice(1),Iwe=()=>Ep().style,Rwe=["-webkit-","-moz-","-o-","-ms-"],Pwe=["WebKit","Moz","O","MS","webkit","moz","o","ms"],XD={},YD={},Owe=e=>{let t=YD[e];if(qk(YD,e))return t;const n=o3(e),r=Iwe();return An(Rwe,i=>{const o=i.replace(/-/g,"");return!(t=[e,i+e,o+n,o3(o)+n].find(a=>r[a]!==void 0))}),YD[e]=t||""},Cv=e=>{if(Tw()){let t=XD[e]||window[e];return qk(XD,e)||(An(Pwe,n=>(t=t||window[n+o3(e)],!t)),XD[e]=t),t}},Mwe=Cv("MutationObserver"),NH=Cv("IntersectionObserver"),ig=Cv("ResizeObserver"),rJ=Cv("cancelAnimationFrame"),iJ=Cv("requestAnimationFrame"),s3=Cv("ScrollTimeline"),SC=Tw()&&window.setTimeout,a3=Tw()&&window.clearTimeout,Lwe=/[^\x20\t\r\n\f]+/g,oJ=(e,t,n)=>{const r=e&&e.classList;let i,o=0,s=!1;if(r&&t&&yf(t)){const a=t.match(Lwe)||[];for(s=a.length>0;i=a[o++];)s=!!n(r,i)&&s}return s},qz=(e,t)=>{oJ(e,t,(n,r)=>n.remove(r))},tf=(e,t)=>(oJ(e,t,(n,r)=>n.add(r)),qz.bind(0,e,t)),Xk=(e,t,n,r)=>{if(e&&t){let i=!0;return An(n,o=>{const s=r?r(e[o]):e[o],a=r?r(t[o]):t[o];s!==a&&(i=!1)}),i}return!1},sJ=(e,t)=>Xk(e,t,["w","h"]),aJ=(e,t)=>Xk(e,t,["x","y"]),Dwe=(e,t)=>Xk(e,t,["t","r","b","l"]),BH=(e,t,n)=>Xk(e,t,["width","height"],n&&(r=>Math.round(r))),$s=()=>{},ep=e=>{let t;const n=e?SC:iJ,r=e?a3:rJ;return[i=>{r(t),t=n(i,Il(e)?e():e)},()=>r(t)]},Xz=(e,t)=>{let n,r,i,o=$s;const{g:s,v:a,p:c}=t||{},u=function(v){o(),a3(n),n=r=void 0,o=$s,e.apply(this,v)},f=g=>c&&r?c(r,g):g,h=()=>{o!==$s&&u(f(i)||i)},p=function(){const v=Hp(arguments),y=Il(s)?s():s;if(Gd(y)&&y>=0){const w=Il(a)?a():a,b=Gd(w)&&w>=0,x=y>0?SC:iJ,E=y>0?a3:rJ,A=f(v)||v,k=u.bind(0,A);o();const O=x(k,y);o=()=>E(O),b&&!n&&(n=SC(h,w)),r=i=A}else u(v)};return p.m=h,p},Nwe={opacity:1,zIndex:1},D_=(e,t)=>{const n=e||"",r=t?parseFloat(n):parseInt(n,10);return r===r?r:0},Bwe=(e,t)=>!Nwe[e]&&Gd(t)?`${t}px`:t,$H=(e,t,n)=>String((t!=null?t[n]||t.getPropertyValue(n):e.style[n])||""),$we=(e,t,n)=>{try{const{style:r}=e;Qu(r[t])?r.setProperty(t,n):r[t]=Bwe(t,n)}catch{}},Kg=e=>fo(e,"direction")==="rtl",FH=(e,t,n)=>{const r=t?`${t}-`:"",i=n?`-${n}`:"",o=`${r}top${i}`,s=`${r}right${i}`,a=`${r}bottom${i}`,c=`${r}left${i}`,u=fo(e,[o,s,a,c]);return{t:D_(u[o],!0),r:D_(u[s],!0),b:D_(u[a],!0),l:D_(u[c],!0)}},Qg=(e,t)=>`translate${ea(e)?`(${e[0]},${e[1]})`:`${t?"X":"Y"}(${e})`}`,{round:zH}=Math,Yz={w:0,h:0},A1=e=>e?{w:e.offsetWidth,h:e.offsetHeight}:Yz,fE=e=>e?{w:e.clientWidth,h:e.clientHeight}:Yz,EC=e=>e?{w:e.scrollWidth,h:e.scrollHeight}:Yz,CC=e=>{const t=parseFloat(fo(e,"height"))||0,n=parseFloat(fo(e,"width"))||0;return{w:n-zH(n),h:t-zH(t)}},Yl=e=>e.getBoundingClientRect(),og=e=>!!(e&&(e.height||e.width));let N_;const Fwe=()=>{if(Qu(N_)){N_=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){N_=!0}}))}catch{}}return N_},lJ=e=>e.split(" "),zwe=(e,t,n,r)=>{An(lJ(t),i=>{e.removeEventListener(i,n,r)})},oi=(e,t,n,r)=>{var i;const o=Fwe(),s=(i=o&&r&&r.S)!=null?i:o,a=r&&r.$||!1,c=r&&r.C||!1,u=[],f=o?{passive:s,capture:a}:a;return An(lJ(t),h=>{const p=c?g=>{e.removeEventListener(h,p,a),n&&n(g)}:n;Gn(u,zwe.bind(null,e,h,p,a)),e.addEventListener(h,p,f)}),vc.bind(0,u)},cJ=e=>e.stopPropagation(),uJ=e=>e.preventDefault(),jwe={x:0,y:0},KD=e=>{const t=e?Yl(e):0;return t?{x:t.left+window.pageYOffset,y:t.top+window.pageXOffset}:jwe},jH=(e,t)=>{An(ea(t)?t:[t],e)},Kz=e=>{const t=new Map,n=(o,s)=>{if(o){const a=t.get(o);jH(c=>{a&&a[c?"delete":"clear"](c)},s)}else t.forEach(a=>{a.clear()}),t.clear()},r=(o,s)=>{if(yf(o)){const u=t.get(o)||new Set;return t.set(o,u),jH(f=>{Il(f)&&u.add(f)},s),n.bind(0,o,s)}Uz(s)&&s&&n();const a=ta(o),c=[];return An(a,u=>{const f=o[u];f&&Gn(c,r(u,f))}),vc.bind(0,c)},i=(o,s)=>{const a=t.get(o);An(Hp(a),c=>{s&&!Hz(s)?c.apply(0,s):c()})};return r(e||{}),[r,n,i]},UH=e=>JSON.stringify(e,(t,n)=>{if(Il(n))throw new Error;return n}),Uwe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},dJ=(e,t)=>{const n={},r=ta(t).concat(ta(e));return An(r,i=>{const o=e[i],s=t[i];if(k1(o)&&k1(s))Br(n[i]={},dJ(o,s)),Wz(n[i])&&delete n[i];else if(qk(t,i)&&s!==o){let a=!0;if(ea(o)||ea(s))try{UH(o)===UH(s)&&(a=!1)}catch{}a&&(n[i]=s)}}),n},kw="data-overlayscrollbars",fJ="os-environment",hJ=`${fJ}-flexbox-glue`,Hwe=`${hJ}-max`,pJ="os-scrollbar-hidden",QD=`${kw}-initialize`,pl=kw,mJ=`${pl}-overflow-x`,gJ=`${pl}-overflow-y`,wg="overflowVisible",Wwe="scrollbarHidden",HH="scrollbarPressed",TC="updating",md=`${kw}-viewport`,JD="arrange",vJ="scrollbarHidden",_g=wg,l3=`${kw}-padding`,Gwe=_g,WH=`${kw}-content`,Qz="os-size-observer",Vwe=`${Qz}-appear`,qwe=`${Qz}-listener`,Xwe="os-trinsic-observer",Ywe="os-no-css-vars",Kwe="os-theme-none",fs="os-scrollbar",Qwe=`${fs}-rtl`,Jwe=`${fs}-horizontal`,Zwe=`${fs}-vertical`,yJ=`${fs}-track`,Jz=`${fs}-handle`,e_e=`${fs}-visible`,t_e=`${fs}-cornerless`,GH=`${fs}-transitionless`,VH=`${fs}-interaction`,qH=`${fs}-unusable`,c3=`${fs}-auto-hide`,XH=`${c3}-hidden`,YH=`${fs}-wheel`,n_e=`${yJ}-interactive`,r_e=`${Jz}-interactive`,bJ={},Wp=()=>bJ,i_e=e=>{const t=[];return An(ea(e)?e:[e],n=>{const r=ta(n);An(r,i=>{Gn(t,bJ[i]=n[i])})}),t},o_e="__osOptionsValidationPlugin",s_e="__osSizeObserverPlugin",Zz="__osScrollbarsHidingPlugin",a_e="__osClickScrollPlugin";let ZD;const KH=(e,t,n,r)=>{ya(e,t);const i=fE(t),o=A1(t),s=CC(n);return r&&dc(t),{x:o.h-i.h+s.h,y:o.w-i.w+s.w}},l_e=e=>{let t=!1;const n=tf(e,pJ);try{t=fo(e,Owe("scrollbar-width"))==="none"||window.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),t},c_e=(e,t)=>{const n="hidden";fo(e,{overflowX:n,overflowY:n,direction:"rtl"}),wl(e,0);const r=KD(e),i=KD(t);wl(e,-999);const o=KD(t);return{i:r.x===i.x,n:i.x!==o.x}},u_e=(e,t)=>{const n=tf(e,hJ),r=Yl(e),i=Yl(t),o=BH(i,r,!0),s=tf(e,Hwe),a=Yl(e),c=Yl(t),u=BH(c,a,!0);return n(),s(),o&&u},d_e=()=>{const{body:e}=document,n=nJ(`
`)[0],r=n.firstChild,[i,,o]=Kz(),[s,a]=hl({o:KH(e,n,r),u:aJ},KH.bind(0,e,n,r,!0)),[c]=a(),u=l_e(n),f={x:c.x===0,y:c.y===0},h={elements:{host:null,padding:!u,viewport:b=>u&&b===b.ownerDocument.body&&b,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=Br({},Uwe),g=Br.bind(0,{},p),v=Br.bind(0,{},h),y={k:c,I:f,A:u,H:fo(n,"zIndex")==="-1",B:!!s3,V:c_e(n,r),Y:u_e(n,r),j:i.bind(0,"z"),N:i.bind(0,"r"),q:v,F:b=>Br(h,b)&&v(),G:g,X:b=>Br(p,b)&&g(),U:Br({},h),W:Br({},p)},S=window.addEventListener,w=Xz(b=>o(b?"z":"r"),{g:33,v:99});if(Go(n,"style"),dc(n),S("resize",w.bind(0,!1)),!u&&(!f.x||!f.y)){let b;S("resize",()=>{const x=Wp()[Zz];b=b||x&&x.R(),b&&b(y,s,w.bind(0,!0))})}return y},hs=()=>(ZD||(ZD=d_e()),ZD),ej=(e,t)=>Il(t)?t.apply(0,e):t,f_e=(e,t,n,r)=>{const i=Qu(r)?n:r;return ej(e,i)||t.apply(0,e)},xJ=(e,t,n,r)=>{const i=Qu(r)?n:r,o=ej(e,i);return!!o&&($x(o)?o:t.apply(0,e))},h_e=(e,t,n)=>{const{nativeScrollbarsOverlaid:r,body:i}=n||{},{I:o,A:s}=hs(),{nativeScrollbarsOverlaid:a,body:c}=t,u=r??a,f=Qu(i)?c:i,h=(o.x||o.y)&&u,p=e&&(Hk(f)?!s:f);return!!h||!!p},tj=new WeakMap,p_e=(e,t)=>{tj.set(e,t)},m_e=e=>{tj.delete(e)},wJ=e=>tj.get(e),QH=(e,t)=>e?t.split(".").reduce((n,r)=>n&&qk(n,r)?n[r]:void 0,e):void 0,u3=(e,t,n)=>r=>[QH(e,r),n||QH(t,r)!==void 0],_J=e=>{let t=e;return[()=>t,n=>{t=Br({},t,n)}]},B_="tabindex",$_=Ep.bind(0,""),eN=e=>{ya(ju(e),Gz(e)),dc(e)},g_e=e=>{const t=hs(),{q:n,A:r}=t,i=Wp()[Zz],o=i&&i.T,{elements:s}=n(),{host:a,padding:c,viewport:u,content:f}=s,h=$x(e),p=h?{}:e,{elements:g}=p,{host:v,padding:y,viewport:S,content:w}=g||{},b=h?e:p.target,x=_C(b,"textarea"),E=b.ownerDocument,I=E.documentElement,A=b===E.body,k=E.defaultView,O=f_e.bind(0,[b]),D=xJ.bind(0,[b]),N=ej.bind(0,[b]),H=O.bind(0,$_,u),G=D.bind(0,$_,f),z=H(S),L=z===b,F=L&&A,j=!L&&G(w),V=!L&&$x(z)&&z===j,W=V&&!!N(f),K=W?H():z,X=W?j:G(),ie=F?I:V?K:z,ce=x?O($_,a,v):b,ue=F?ie:ce,se=V?X:j,J=E.activeElement,ae=!L&&k.top===k&&J===b,le={Z:b,J:ue,K:ie,tt:!L&&D($_,c,y),nt:se,ot:!L&&!r&&o&&o(t),st:F?I:ie,et:F?E:ie,ct:k,rt:E,lt:x,it:A,ut:h,ft:L,dt:V,_t:(st,gt)=>Cwe(ie,L?pl:md,L?gt:st),ht:(st,gt,vt)=>Sp(ie,L?pl:md,L?gt:st,vt)},he=ta(le).reduce((st,gt)=>{const vt=le[gt];return Gn(st,vt&&$x(vt)&&!ju(vt)?vt:!1)},[]),pe=st=>st?Vk(he,st)>-1:null,{Z:ve,J:ye,tt:xe,K:me,nt:be,ot:Ze}=le,Xe=[()=>{Go(ye,pl),Go(ye,QD),Go(ve,QD),A&&(Go(I,pl),Go(I,QD))}],ct=x&&pe(ye);let Bt=x?ve:Gz([be,me,xe,ye,ve].find(st=>pe(st)===!1));const Pe=F?ve:be||me;return[le,()=>{No(ye,pl,L?"viewport":"host"),No(xe,l3,""),No(be,WH,""),L||No(me,md,"");const st=A&&!L?tf(ju(b),pJ):$s;if(ct&&(DH(ve,ye),Gn(Xe,()=>{DH(ye,ve),dc(ye)})),ya(Pe,Bt),ya(ye,xe),ya(xe||ye,!L&&me),ya(me,be),Gn(Xe,()=>{st(),Go(xe,l3),Go(be,WH),Go(me,mJ),Go(me,gJ),Go(me,md),pe(be)&&eN(be),pe(me)&&eN(me),pe(xe)&&eN(xe)}),r&&!L&&(Sp(me,md,vJ,!0),Gn(Xe,Go.bind(0,me,md))),Ze&&(Awe(me,Ze),Gn(Xe,dc.bind(0,Ze))),ae){const gt=No(me,B_);No(me,B_,"-1"),me.focus();const vt=()=>gt?No(me,B_,gt):Go(me,B_),_e=oi(E,"pointerdown keydown",()=>{vt(),_e()});Gn(Xe,[vt,_e])}else J&&J.focus&&J.focus();Bt=0},vc.bind(0,Xe)]},v_e=(e,t)=>{const{nt:n}=e,[r]=t;return i=>{const{Y:o}=hs(),{gt:s}=r(),{vt:a}=i,c=(n||!o)&&a;return c&&fo(n,{height:s?"":"100%"}),{wt:c,bt:c}}},y_e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ft:a}=e,[c,u]=hl({u:Dwe,o:FH()},FH.bind(0,i,"padding",""));return(f,h,p)=>{let[g,v]=u(p);const{A:y,Y:S}=hs(),{yt:w}=n(),{wt:b,bt:x,St:E}=f,[I,A]=h("paddingAbsolute");(b||v||!S&&x)&&([g,v]=c(p));const O=!a&&(A||E||v);if(O){const D=!I||!o&&!y,N=g.r+g.l,H=g.t+g.b,G={marginRight:D&&!w?-N:0,marginBottom:D?-H:0,marginLeft:D&&w?-N:0,top:D?-g.t:0,right:D?w?-g.r:"auto":0,left:D?w?"auto":-g.l:0,width:D?`calc(100% + ${N}px)`:""},z={paddingTop:D?g.t:0,paddingRight:D?g.r:0,paddingBottom:D?g.b:0,paddingLeft:D?g.l:0};fo(o||s,G),fo(s,z),r({tt:g,$t:!D,P:o?z:Br({},G,z)})}return{xt:O}}},{max:d3}=Math,gd=d3.bind(0,0),SJ="visible",JH="hidden",b_e=42,F_={u:sJ,o:{w:0,h:0}},x_e={u:aJ,o:{x:JH,y:JH}},w_e=(e,t)=>{const n=window.devicePixelRatio%1!==0?1:0,r={w:gd(e.w-t.w),h:gd(e.h-t.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},z_=e=>e.indexOf(SJ)===0,__e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ot:a,ft:c,ht:u,it:f,ct:h}=e,{k:p,Y:g,A:v,I:y}=hs(),S=Wp()[Zz],w=!c&&!v&&(y.x||y.y),b=f&&c,[x,E]=hl(F_,CC.bind(0,s)),[I,A]=hl(F_,EC.bind(0,s)),[k,O]=hl(F_),[D,N]=hl(F_),[H]=hl(x_e),G=(W,K)=>{if(fo(s,{height:""}),K){const{$t:X,tt:Q}=n(),{Ct:ie,M:ce}=W,ue=CC(i),se=fE(i),J=fo(s,"boxSizing")==="content-box",ae=X||J?Q.b+Q.t:0,le=!(y.x&&J);fo(s,{height:se.h+ue.h+(ie.x&&le?ce.x:0)-ae})}},z=(W,K)=>{const X=!v&&!W?b_e:0,Q=(pe,ve,ye)=>{const xe=fo(s,pe),be=(K?K[pe]:xe)==="scroll";return[xe,be,be&&!v?ve?X:ye:0,ve&&!!X]},[ie,ce,ue,se]=Q("overflowX",y.x,p.x),[J,ae,le,he]=Q("overflowY",y.y,p.y);return{Ot:{x:ie,y:J},Ct:{x:ce,y:ae},M:{x:ue,y:le},D:{x:se,y:he}}},L=(W,K,X,Q)=>{const ie=(ae,le)=>{const he=z_(ae),pe=le&&he&&ae.replace(`${SJ}-`,"")||"";return[le&&!he?ae:"",z_(pe)?"hidden":pe]},[ce,ue]=ie(X.x,K.x),[se,J]=ie(X.y,K.y);return Q.overflowX=ue&&se?ue:ce,Q.overflowY=J&&ce?J:se,z(W,Q)},F=(W,K,X,Q)=>{const{M:ie,D:ce}=W,{x:ue,y:se}=ce,{x:J,y:ae}=ie,{P:le}=n(),he=K?"marginLeft":"marginRight",pe=K?"paddingLeft":"paddingRight",ve=le[he],ye=le.marginBottom,xe=le[pe],me=le.paddingBottom;Q.width=`calc(100% + ${ae+ve*-1}px)`,Q[he]=-ae+ve,Q.marginBottom=-J+ye,X&&(Q[pe]=xe+(se?ae:0),Q.paddingBottom=me+(ue?J:0))},[j,V]=S?S.L(w,g,s,a,n,z,F):[()=>w,()=>[$s]];return(W,K,X)=>{const{wt:Q,Tt:ie,bt:ce,xt:ue,vt:se,St:J}=W,{gt:ae,yt:le}=n(),[he,pe]=K("showNativeOverlaidScrollbars"),[ve,ye]=K("overflow"),xe=he&&y.x&&y.y,me=!c&&!g&&(Q||ce||ie||pe||se),be=z_(ve.x),Ze=z_(ve.y),Xe=be||Ze;let ct=E(X),Bt=A(X),Pe=O(X),ze=N(X),st;if(pe&&v&&u(vJ,Wwe,!xe),me&&(st=z(xe),G(st,ae)),Q||ue||ce||J||pe){Xe&&u(_g,wg,!1);const[Re,He]=V(xe,le,st),[xt,Gt]=ct=x(X),[yn,Yr]=Bt=I(X),Hr=fE(s);let Wr=yn,Kr=Hr;Re(),(Yr||Gt||pe)&&He&&!xe&&j(He,yn,xt,le)&&(Kr=fE(s),Wr=EC(s));const ci={w:gd(d3(yn.w,Wr.w)+xt.w),h:gd(d3(yn.h,Wr.h)+xt.h)},ps={w:gd((b?h.innerWidth:Kr.w+gd(Hr.w-yn.w))+xt.w),h:gd((b?h.innerHeight+xt.h:Kr.h+gd(Hr.h-yn.h))+xt.h)};ze=D(ps),Pe=k(w_e(ci,ps),X)}const[gt,vt]=ze,[_e,je]=Pe,[Ke,Fe]=Bt,[Be,Pt]=ct,dt={x:_e.w>0,y:_e.h>0},Ie=be&&Ze&&(dt.x||dt.y)||be&&dt.x&&!dt.y||Ze&&dt.y&&!dt.x;if(ue||J||Pt||Fe||vt||je||ye||pe||me){const Re={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},He=L(xe,dt,ve,Re),xt=j(He,Ke,Be,le);c||F(He,le,xt,Re),me&&G(He,ae),c?(No(i,mJ,Re.overflowX),No(i,gJ,Re.overflowY)):fo(s,Re)}Sp(i,pl,wg,Ie),Sp(o,l3,Gwe,Ie),c||Sp(s,md,_g,Xe);const[at,$t]=H(z(xe).Ot);return r({Ot:at,zt:{x:gt.w,y:gt.h},Et:{x:_e.w,y:_e.h},At:dt}),{It:$t,Ht:vt,Lt:je}}},ZH=(e,t,n)=>{const r={},i=t||{},o=ta(e).concat(ta(i));return An(o,s=>{const a=e[s],c=i[s];r[s]=!!(n||a||c)}),r},S_e=(e,t)=>{const{Z:n,K:r,ht:i,ft:o}=e,{A:s,I:a,Y:c}=hs(),u=!s&&(a.x||a.y),f=[v_e(e,t),y_e(e,t),__e(e,t)];return(h,p,g)=>{const v=ZH(Br({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},p),{},g),y=u||!c,S=y&&wl(r),w=y&&Pu(r);i("",TC,!0);let b=v;return An(f,x=>{b=ZH(b,x(b,h,!!g)||{},g)}),wl(r,S),Pu(r,w),i("",TC),o||(wl(n,0),Pu(n,0)),b}},E_e=(e,t,n)=>{let r,i=!1;const o=()=>{i=!0},s=a=>{if(n){const c=n.reduce((u,f)=>{if(f){const[h,p]=f,g=p&&h&&(a?a(h):tJ(h,e));g&&g.length&&p&&yf(p)&&Gn(u,[g,p.trim()],!0)}return u},[]);An(c,u=>An(u[0],f=>{const h=u[1],p=r.get(f)||[];if(e.contains(f)){const v=oi(f,h,y=>{i?(v(),r.delete(f)):t(y)});r.set(f,Gn(p,v))}else vc(p),r.delete(f)}))}};return n&&(r=new WeakMap,s()),[o,s]},eW=(e,t,n,r)=>{let i=!1;const{Mt:o,Dt:s,Rt:a,kt:c,Bt:u,Vt:f}=r||{},h=Xz(()=>i&&n(!0),{g:33,v:99}),[p,g]=E_e(e,h,a),v=o||[],y=s||[],S=v.concat(y),w=(x,E)=>{const I=u||$s,A=f||$s,k=new Set,O=new Set;let D=!1,N=!1;if(An(x,H=>{const{attributeName:G,target:z,type:L,oldValue:F,addedNodes:j,removedNodes:V}=H,W=L==="attributes",K=L==="childList",X=e===z,Q=W&&yf(G)?No(z,G):0,ie=Q!==0&&F!==Q,ce=Vk(y,G)>-1&&ie;if(t&&(K||!X)){const ue=!W,se=W&&ie,J=se&&c&&_C(z,c),le=(J?!I(z,G,F,Q):ue||se)&&!A(H,!!J,e,r);An(j,he=>k.add(he)),An(V,he=>k.add(he)),N=N||le}!t&&X&&ie&&!I(z,G,F,Q)&&(O.add(G),D=D||ce)}),k.size>0&&g(H=>Hp(k).reduce((G,z)=>(Gn(G,tJ(H,z)),_C(z,H)?Gn(G,z):G),[])),t)return!E&&N&&n(!1),[!1];if(O.size>0||D){const H=[Hp(O),D];return!E&&n.apply(0,H),H}},b=new Mwe(x=>w(x));return b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:S,subtree:t,childList:t,characterData:t}),i=!0,[()=>{i&&(p(),b.disconnect(),i=!1)},()=>{if(i){h.m();const x=b.takeRecords();return!Hz(x)&&w(x,!0)}}]},j_=3333333,EJ=(e,t,n)=>{const{Yt:r,Pt:i}=n||{},o=Wp()[s_e],{V:s}=hs(),c=nJ(`
`)[0],u=c.firstChild,f=Kg.bind(0,e),[h]=hl({o:!1,_:!0,u:(v,y)=>!(!v||!og(v)&&og(y))}),p=v=>{const y=ea(v)&&v.length>0&&k1(v[0]),S=!y&&Uz(v[0]);let w=!1,b=!1,x=!0;if(y){const[E,,I]=h(v.pop().contentRect),A=og(E),k=og(I);w=!I&&!!k||!A,b=!k&&A,x=!w}else S?[,x]=v:b=v===!0;if(r&&x){const E=S?v[0]:Kg(c);wl(c,E?s.n?-j_:s.i?0:j_:j_),Pu(c,j_)}w||t({wt:!S,jt:S?v:void 0,Pt:!!b})},g=[];return[()=>{vc(g),dc(c)},()=>{let v=i&&p;if(ig){const y=new ig(p);y.observe(u),Gn(g,()=>{y.disconnect()})}else if(o){const[y,S]=o.O(u,p,i);v=y,Gn(g,S)}if(r){const[y]=hl({o:void 0},f);Gn(g,oi(c,"scroll",S=>{const w=y(),[b,x,E]=w;x&&(qz(u,"ltr rtl"),tf(u,b?"rtl":"ltr"),p([!!b,x,E])),cJ(S)}))}v&&(tf(c,Vwe),Gn(g,oi(c,"animationstart",v,{C:!!ig}))),(ig||o)&&ya(e,c)}]},C_e=e=>e.h===0||e.isIntersecting||e.intersectionRatio>0,T_e=(e,t)=>{let n;const r=Ep(Xwe),i=[],[o]=hl({o:!1}),s=(c,u)=>{if(c){const f=o(C_e(c)),[,h]=f;return h&&!u&&t(f)&&[f]}},a=(c,u)=>c&&c.length>0&&s(c.pop(),u);return[()=>{vc(i),dc(r)},()=>{if(NH)n=new NH(c=>a(c),{root:e}),n.observe(r),Gn(i,()=>{n.disconnect()});else{const c=()=>{const h=A1(r);s(h)},[u,f]=EJ(r,c);Gn(i,u),f(),c()}ya(e,r)},()=>n&&a(n.takeRecords(),!0)]},tW=`[${pl}]`,k_e=`[${md}]`,tN=["tabindex"],nW=["wrap","cols","rows"],nN=["id","class","style","open"],A_e=(e,t,n)=>{let r,i,o;const{J:s,K:a,nt:c,lt:u,ft:f,_t:h,ht:p}=e,{Y:g}=hs(),[v]=hl({u:sJ,o:{w:0,h:0}},()=>{const F=h(_g,wg),j=h(JD,""),V=j&&wl(a),W=j&&Pu(a);p(_g,wg),p(JD,""),p("",TC,!0);const K=EC(c),X=EC(a),Q=CC(a);return p(_g,wg,F),p(JD,"",j),p("",TC),wl(a,V),Pu(a,W),{w:X.w+K.w+Q.w,h:X.h+K.h+Q.h}}),y=u?nW:nN.concat(nW),S=Xz(n,{g:()=>r,v:()=>i,p(F,j){const[V]=F,[W]=j;return[ta(V).concat(ta(W)).reduce((K,X)=>(K[X]=V[X]||W[X],K),{})]}}),w=F=>{An(F||tN,j=>{if(Vk(tN,j)>-1){const V=No(s,j);yf(V)?No(a,j,V):Go(a,j)}})},b=(F,j)=>{const[V,W]=F,K={vt:W};return t({gt:V}),!j&&n(K),K},x=({wt:F,jt:j,Pt:V})=>{const W=!F||V?n:S;let K=!1;if(j){const[X,Q]=j;K=Q,t({yt:X})}W({wt:F,Pt:V,St:K})},E=(F,j)=>{const[,V]=v(),W={bt:V};return V&&!j&&(F?n:S)(W),W},I=(F,j,V)=>{const W={Tt:j};return j?!V&&S(W):f||w(F),W},[A,k,O]=c||!g?T_e(s,b):[$s,$s,$s],[D,N]=f?[$s,$s]:EJ(s,x,{Pt:!0,Yt:!0}),[H,G]=eW(s,!1,I,{Dt:nN,Mt:nN.concat(tN)});let z;const L=f&&ig&&new ig(F=>{const j=F[F.length-1].contentRect,V=og(j),K=!og(z)&&V;x({wt:!0,Pt:K}),z=j});return[()=>{A(),D(),o&&o[0](),L&&L.disconnect(),H()},()=>{L&&L.observe(s),w(),N(),k()},()=>{const F={},j=G(),V=O(),W=o&&o[1]();return j&&Br(F,I.apply(0,Gn(j,!0))),V&&Br(F,b.apply(0,Gn(V,!0))),W&&Br(F,E.apply(0,Gn(W,!0))),F},F=>{const[j]=F("update.ignoreMutation"),[V,W]=F("update.attributes"),[K,X]=F("update.elementEvents"),[Q,ie]=F("update.debounce"),ce=X||W,ue=se=>Il(j)&&j(se);if(ce&&(o&&(o[1](),o[0]()),o=eW(c||a,!0,E,{Mt:y.concat(V||[]),Rt:K,kt:tW,Vt:(se,J)=>{const{target:ae,attributeName:le}=se;return(!J&&le&&!f?kwe(ae,tW,k_e):!1)||!!rg(ae,`.${fs}`)||!!ue(se)}})),ie)if(S.m(),ea(Q)){const se=Q[0],J=Q[1];r=Gd(se)&&se,i=Gd(J)&&J}else Gd(Q)?(r=Q,i=!1):(r=!1,i=!1)}]},rW={x:0,y:0},I_e=e=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:rW,Et:rW,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:Kg(e.J)}),R_e=(e,t)=>{const n=u3(t,{}),[r,i,o]=Kz(),[s,a,c]=g_e(e),u=_J(I_e(s)),[f,h]=u,p=S_e(s,u),g=(x,E,I)=>{const k=ta(x).some(O=>!!x[O])||!Wz(E)||I;return k&&o("u",[x,E,I]),k},[v,y,S,w]=A_e(s,h,x=>g(p(n,x),{},!1)),b=f.bind(0);return b.Nt=x=>r("u",x),b.qt=()=>{const{Z:x,K:E,rt:I,it:A}=s,k=A?I.documentElement:x,O=wl(k),D=Pu(k);y(),a(),wl(E,O),Pu(E,D)},b.Ft=s,[(x,E)=>{const I=u3(t,x,E);return w(I),g(p(I,S(),E),x,!!E)},b,()=>{i(),v(),c()}]},{round:iW}=Math,P_e=e=>{const{width:t,height:n}=Yl(e),{w:r,h:i}=A1(e);return{x:iW(t)/r||1,y:iW(n)/i||1}},O_e=(e,t,n)=>{const r=t.scrollbars,{button:i,isPrimary:o,pointerType:s}=e,{pointers:a}=r;return i===0&&o&&r[n?"dragScroll":"clickScroll"]&&(a||[]).includes(s)},oW="pointerup pointerleave pointercancel lostpointercapture",M_e=(e,t)=>oi(e,"mousedown",oi.bind(0,t,"click",cJ,{C:!0,$:!0}),{$:!0}),L_e=(e,t,n,r,i,o,s)=>{const{V:a}=hs(),{Gt:c,Xt:u,Ut:f}=r,h=`scroll${s?"Left":"Top"}`,p=`client${s?"X":"Y"}`,g=s?"width":"height",v=s?"left":"top",y=s?"w":"h",S=s?"x":"y",w=(b,x)=>E=>{const{Et:I}=o(),A=A1(u)[y]-A1(c)[y],O=x*E/A*I[S],N=Kg(f)&&s?a.n||a.i?1:-1:1;i[h]=b+O*N};return oi(u,"pointerdown",b=>{const x=rg(b.target,`.${Jz}`)===c,E=x?c:u;if(Sp(t,pl,HH,!0),O_e(b,e,x)){const I=!x&&b.shiftKey,A=()=>Yl(c),k=()=>Yl(u),O=(K,X)=>(K||A())[v]-(X||k())[v],D=w(i[h]||0,1/P_e(i)[S]),N=b[p],H=A(),G=k(),z=H[g],L=O(H,G)+z/2,F=N-G[v],j=x?0:F-L,V=K=>{vc(W),E.releasePointerCapture(K.pointerId)},W=[Sp.bind(0,t,pl,HH),oi(n,oW,V),oi(n,"selectstart",K=>uJ(K),{S:!1}),oi(u,oW,V),oi(u,"pointermove",K=>{const X=K[p]-N;(x||I)&&D(j+X)})];if(I)D(j);else if(!x){const K=Wp()[a_e];K&&Gn(W,K.O(D,O,j,z,F))}E.setPointerCapture(b.pointerId)}})},D_e=(e,t)=>(n,r,i,o,s,a,c)=>{const{Ut:u}=n,[f,h]=ep(333),p=!!s.scrollBy;let g=!0;return vc.bind(0,[oi(u,"pointerenter",()=>{r(VH,!0)}),oi(u,"pointerleave pointercancel",()=>{r(VH)}),oi(u,"wheel",v=>{const{deltaX:y,deltaY:S,deltaMode:w}=v;p&&g&&w===0&&ju(u)===o&&s.scrollBy({left:y,top:S,behavior:"smooth"}),g=!1,r(YH,!0),f(()=>{g=!0,r(YH)}),uJ(v)},{S:!1,$:!0}),M_e(u,i),L_e(e,o,i,n,s,t,c),h])},{min:kC,max:f3,round:N_e}=Math,CJ=(e,t,n,r)=>{if(r){const a=n?"x":"y",{Et:c,zt:u}=r,f=u[a],h=c[a];return f3(0,kC(1,f/(f+h)))}const i=n?"width":"height",o=Yl(e)[i],s=Yl(t)[i];return f3(0,kC(1,o/s))},B_e=(e,t,n,r,i,o)=>{const{V:s}=hs(),a=o?"x":"y",c=o?"Left":"Top",{Et:u}=r,f=N_e(u[a]),h=kC(f,f3(0,n[`scroll${c}`])),p=o&&i,g=s.i?h:f-h,y=kC(1,(p?g:h)/f),S=CJ(e,t,o);return 1/S*(1-S)*y},TJ=(e,t,n,r)=>t&&e.animate(n,{timeline:t,composite:r}),$_e=(e,t)=>({transform:[Qg("0%",t),Qg(t&&e?"100%":"-100%",t)],[t?e?"right":"left":"top"]:["0%","100%"]}),F_e=e=>`${Math.max(0,e-.5)}px`,sW=(e,t,n,r)=>TJ(e,t,{transform:[Qg("0px",r),Qg(F_e(n),r)]},"add"),aW=(e,t)=>s3?new s3({source:e,axis:t}):null,z_e=(e,t,n)=>{const{q:r,H:i}=hs(),{scrollbars:o}=r(),{slot:s}=o,{rt:a,Z:c,J:u,K:f,ut:h,st:p,it:g,ft:v}=t,{scrollbars:y}=h?{}:e,{slot:S}=y||{},w=new Map,b=aW(p,"x"),x=aW(p,"y"),E=xJ([c,u,f],()=>v&&g?c:u,s,S),I=se=>v&&!g&&ju(se)===f,A=se=>{w.forEach((J,ae)=>{(se?Vk(ea(se)?se:[se],ae)>-1:!0)&&((J||[]).forEach(he=>{he&&he.cancel()}),w.delete(ae))})},k=(se,J,ae)=>{const le=ae?tf:qz;An(se,he=>{le(he.Ut,J)})},O=(se,J)=>{An(se,ae=>{const[le,he]=J(ae);fo(le,he)})},D=(se,J,ae)=>{O(se,le=>{const{Gt:he,Xt:pe}=le;return[he,{[ae?"width":"height"]:`${(CJ(he,pe,ae,J)*100).toFixed(3)}%`}]})},N=(se,J,ae)=>{!x&&!x&&O(se,le=>{const{Gt:he,Xt:pe,Ut:ve}=le,ye=B_e(he,pe,p,J,Kg(ve),ae);return[he,{transform:ye===ye?Qg(`${(ye*100).toFixed(3)}%`,ae):""}]})},H=se=>{const{Ut:J}=se,ae=I(J)&&J;return[ae,{transform:ae?Qg([`${wl(p)}px`,`${Pu(p)}px`]):""}]},G=[],z=[],L=[],F=(se,J,ae)=>{const le=Uz(ae),he=le?ae:!0,pe=le?!ae:!0;he&&k(z,se,J),pe&&k(L,se,J)},j=se=>{D(z,se,!0),D(L,se)},V=se=>{N(z,se,!0),N(L,se)},W=()=>{const se=(J,{Ut:ae,Gt:le})=>{A(le),w.set(le,[TJ(le,J?b:x,$_e(J&&Kg(ae),J))])};z.forEach(se.bind(0,!0)),L.forEach(se.bind(0,!1))},K=()=>{!x&&!x&&(v&&O(z,H),v&&O(L,H))},X=({Et:se})=>{L.concat(z).forEach(({Ut:J})=>{A(J),I(J)&&w.set(J,[sW(J,b,se.x,!0),sW(J,x,se.y)])})},Q=se=>{const J=se?Jwe:Zwe,ae=se?z:L,le=Hz(ae)?GH:"",he=Ep(`${fs} ${J} ${le}`),pe=Ep(yJ),ve=Ep(Jz),ye={Ut:he,Xt:pe,Gt:ve};return i||tf(he,Ywe),ya(he,pe),ya(pe,ve),Gn(ae,ye),Gn(G,[dc.bind(0,he),A,n(ye,F,a,u,p,se?b:x,se)]),ye},ie=Q.bind(0,!0),ce=Q.bind(0,!1),ue=()=>{ya(E,z[0].Ut),ya(E,L[0].Ut),SC(()=>{F(GH)},300)};return ie(),ce(),[{Wt:j,Zt:V,Jt:W,Kt:X,Qt:K,tn:F,nn:{B:b,sn:z,en:ie,cn:O.bind(0,z)},rn:{B:x,sn:L,en:ce,cn:O.bind(0,L)}},ue,vc.bind(0,G)]},rN=e=>e.pointerType==="mouse",j_e=(e,t,n,r)=>{let i,o,s,a,c,u=$s,f=0;const h=_J({}),[p]=h,[g,v]=ep(),[y,S]=ep(),[w,b]=ep(100),[x,E]=ep(100),[I,A]=ep(100),[k,O]=ep(()=>f),[D,N,H]=z_e(e,n.Ft,D_e(t,n)),{J:G,et:z,it:L}=n.Ft,{tn:F,Wt:j,Zt:V,Jt:W,Kt:K,Qt:X}=D,Q=J=>{F(c3,J,!0),F(c3,J,!1)},ie=(J,ae)=>{if(O(),J)F(XH);else{const le=()=>F(XH,!0);f>0&&!ae?k(le):le()}},ce=J=>{rN(J)&&(a=o,a&&ie(!0))},ue=[b,O,E,A,S,v,H,oi(G,"pointerover",ce,{C:!0}),oi(G,"pointerenter",ce),oi(G,"pointerleave",J=>{rN(J)&&(a=!1,o&&ie(!1))}),oi(G,"pointermove",J=>{rN(J)&&i&&g(()=>{b(),ie(!0),x(()=>{i&&ie(!1)})})}),oi(z,"scroll",J=>{y(()=>{V(n()),s&&ie(!0),w(()=>{s&&!a&&ie(!1)})}),r(J),X()})],se=p.bind(0);return se.Ft=D,se.qt=N,[(J,ae,le)=>{const{Ht:he,Lt:pe,It:ve,St:ye,Pt:xe}=le,{I:me}=hs(),be=u3(t,J,ae),Ze=n(),{Et:Xe,Ot:ct,yt:Bt,At:Pe}=Ze,[ze,st]=be("showNativeOverlaidScrollbars"),[gt,vt]=be("scrollbars.theme"),[_e,je]=be("scrollbars.visibility"),[Ke,Fe]=be("scrollbars.autoHide"),[Be,Pt]=be("scrollbars.autoHideSuspend"),[dt]=be("scrollbars.autoHideDelay"),[Ie,at]=be("scrollbars.dragScroll"),[$t,Re]=be("scrollbars.clickScroll"),He=xe&&!ae,xt=Pe.x||Pe.y,Gt=he||pe||ye,yn=ve||je,Yr=ze&&me.x&&me.y,Hr=(Wr,Kr)=>{const ci=_e==="visible"||_e==="auto"&&Wr==="scroll";return F(e_e,ci,Kr),ci};if(f=dt,He&&(Be&&xt?(Q(!1),u(),I(()=>{u=oi(z,"scroll",Q.bind(0,!0),{C:!0})})):Q(!0)),st&&F(Kwe,Yr),vt&&(F(c),F(gt,!0),c=gt),Pt&&!Be&&Q(!0),Fe&&(i=Ke==="move",o=Ke==="leave",s=Ke!=="never",ie(!s,!0)),at&&F(r_e,Ie),Re&&F(n_e,$t),yn){const Wr=Hr(ct.x,!0),Kr=Hr(ct.y,!1);F(t_e,!(Wr&&Kr))}Gt&&(j(Ze),V(Ze),W(Ze),K(Ze),X(),F(qH,!Xe.x,!0),F(qH,!Xe.y,!1),F(Qwe,Bt&&!L))},se,()=>{vc(ue),u()}]},kJ=(e,t,n)=>{Il(e)&&e(t||void 0,n||void 0)},Id=(e,t,n)=>{const{G:r,q:i,j:o,N:s}=hs(),a=Wp(),c=$x(e),u=c?e:e.target,f=wJ(u);if(t&&!f){let h=!1;const p=z=>{const L=Wp()[o_e],F=L&&L.O;return F?F(z,!0):z},g=Br({},r(),p(t)),[v,y,S]=Kz(n),[w,b,x]=R_e(e,g),[E,I,A]=j_e(e,g,b,z=>S("scroll",[G,z])),k=(z,L)=>w(z,!!L),O=k.bind(0,{},!0),D=o(O),N=s(O),H=z=>{m_e(u),D(),N(),A(),x(),h=!0,S("destroyed",[G,!!z]),y()},G={options(z,L){if(z){const F=L?r():{},j=dJ(g,Br(F,p(z)));Wz(j)||(Br(g,j),k(j))}return Br({},g)},on:v,off:(z,L)=>{z&&L&&y(z,L)},state(){const{zt:z,Et:L,Ot:F,At:j,tt:V,$t:W,yt:K}=b();return Br({},{overflowEdge:z,overflowAmount:L,overflowStyle:F,hasOverflow:j,padding:V,paddingAbsolute:W,directionRTL:K,destroyed:h})},elements(){const{Z:z,J:L,tt:F,K:j,nt:V,st:W,et:K}=b.Ft,{nn:X,rn:Q}=I.Ft,ie=ue=>{const{Gt:se,Xt:J,Ut:ae}=ue;return{scrollbar:ae,track:J,handle:se}},ce=ue=>{const{sn:se,en:J}=ue,ae=ie(se[0]);return Br({},ae,{clone:()=>{const le=ie(J());return E({},!0,{}),le}})};return Br({},{target:z,host:L,padding:F||j,viewport:j,content:V||j,scrollOffsetElement:W,scrollEventElement:K,scrollbarHorizontal:ce(X),scrollbarVertical:ce(Q)})},update:z=>k({},z),destroy:H.bind(0)};return b.Nt((z,L,F)=>{E(L,F,z)}),p_e(u,G),An(ta(a),z=>kJ(a[z],0,G)),h_e(b.Ft.it,i().cancel,!c&&e.cancel)?(H(!0),G):(b.qt(),I.qt(),S("initialized",[G]),b.Nt((z,L,F)=>{const{wt:j,St:V,vt:W,Ht:K,Lt:X,It:Q,bt:ie,Tt:ce}=z;S("updated",[G,{updateHints:{sizeChanged:j,directionChanged:V,heightIntrinsicChanged:W,overflowEdgeChanged:K,overflowAmountChanged:X,overflowStyleChanged:Q,contentMutation:ie,hostMutation:ce},changedOptions:L,force:F}])}),G.update(!0),G)}return f};Id.plugin=e=>{An(i_e(e),t=>kJ(t,Id))};Id.valid=e=>{const t=e&&e.elements,n=Il(t)&&t();return r3(n)&&!!wJ(n.target)};Id.env=()=>{const{k:e,I:t,A:n,V:r,Y:i,H:o,B:s,U:a,W:c,q:u,F:f,G:h,X:p}=hs();return Br({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:i,cssCustomProperties:o,scrollTimeline:s,staticDefaultInitialization:a,staticDefaultOptions:c,getDefaultInitialization:u,setDefaultInitialization:f,getDefaultOptions:h,setDefaultOptions:p})};const U_e=()=>{if(typeof window>"u"){const u=()=>{};return[u,u]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,o=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,a=r?n.cancelIdleCallback:o,c=()=>{a(e),o(t)};return[(u,f)=>{c(),e=s(r?()=>{c(),t=i(u)}:u,typeof f=="object"?f:{timeout:2233})},c]},AJ=e=>{const{options:t,events:n,defer:r}=e||{},[i,o]=R.useMemo(U_e,[]),s=R.useRef(null),a=R.useRef(r),c=R.useRef(t),u=R.useRef(n);return R.useEffect(()=>{a.current=r},[r]),R.useEffect(()=>{const{current:f}=s;c.current=t,Id.valid(f)&&f.options(t||{},!0)},[t]),R.useEffect(()=>{const{current:f}=s;u.current=n,Id.valid(f)&&f.on(n||{},!0)},[n]),R.useEffect(()=>()=>{var f;o(),(f=s.current)==null||f.destroy()},[]),R.useMemo(()=>[f=>{const h=s.current;if(Id.valid(h))return;const p=a.current,g=c.current||{},v=u.current||{},y=()=>s.current=Id(f,g,v);p?i(y,p):y()},()=>s.current],[])},H_e=(e,t)=>{const{element:n="div",options:r,events:i,defer:o,children:s,...a}=e,c=n,u=R.useRef(null),f=R.useRef(null),[h,p]=R.useState(!1),[g,v]=AJ({options:r,events:i,defer:o});return R.useEffect(()=>{p(!0)},[]),R.useEffect(()=>{const{current:y}=u,{current:S}=f;return h&&y&&S&&g({target:y,elements:{viewport:S,content:S}}),()=>{var w;return(w=v())==null?void 0:w.destroy()}},[h,g,n]),R.useImperativeHandle(t,()=>({osInstance:v,getElement:()=>u.current}),[]),de.createElement(c,{"data-overlayscrollbars-initialize":"",ref:u,...a},h?de.createElement("div",{ref:f,"data-overlayscrollbars-contents":!0},s):s)},W_e=R.forwardRef(H_e),Aw=R.forwardRef(({children:e,x:t,y:n,px:r=6,...i},o)=>{const{palette:s,spacing:a}=Dn(),c=T1({"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${a(r)})`,marginTop:a(r)}}),u=R.useCallback(f=>{if(o&&f){const h=f.elements().viewport;h&&(typeof o=="function"?o(h):o.current=h)}},[o]);return C.jsx(W_e,{options:{overflow:{x:t?"scroll":"hidden",y:n?"scroll":"hidden"},scrollbars:{autoHide:"move",theme:s.mode==="dark"?"os-theme-light":"os-theme-dark"}},...i,className:`${c} ${i.className}`,events:{initialized:u},children:e})});var IJ={exports:{}},or={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xk=60103,Yk=60106,Iw=60107,Rw=60108,Pw=60114,Ow=60109,Mw=60110,Lw=60112,Dw=60113,tj=60120,Nw=60115,Bw=60116,EJ=60121,CJ=60122,TJ=60117,kJ=60129,AJ=60131;if(typeof Symbol=="function"&&Symbol.for){var Wi=Symbol.for;Xk=Wi("react.element"),Yk=Wi("react.portal"),Iw=Wi("react.fragment"),Rw=Wi("react.strict_mode"),Pw=Wi("react.profiler"),Ow=Wi("react.provider"),Mw=Wi("react.context"),Lw=Wi("react.forward_ref"),Dw=Wi("react.suspense"),tj=Wi("react.suspense_list"),Nw=Wi("react.memo"),Bw=Wi("react.lazy"),EJ=Wi("react.block"),CJ=Wi("react.server.block"),TJ=Wi("react.fundamental"),kJ=Wi("react.debug_trace_mode"),AJ=Wi("react.legacy_hidden")}function Pl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Xk:switch(e=e.type,e){case Iw:case Pw:case Rw:case Dw:case tj:return e;default:switch(e=e&&e.$$typeof,e){case Mw:case Lw:case Bw:case Nw:case Ow:return e;default:return t}}case Yk:return t}}}var F_e=Ow,z_e=Xk,j_e=Lw,U_e=Iw,H_e=Bw,W_e=Nw,G_e=Yk,V_e=Pw,q_e=Rw,X_e=Dw;or.ContextConsumer=Mw;or.ContextProvider=F_e;or.Element=z_e;or.ForwardRef=j_e;or.Fragment=U_e;or.Lazy=H_e;or.Memo=W_e;or.Portal=G_e;or.Profiler=V_e;or.StrictMode=q_e;or.Suspense=X_e;or.isAsyncMode=function(){return!1};or.isConcurrentMode=function(){return!1};or.isContextConsumer=function(e){return Pl(e)===Mw};or.isContextProvider=function(e){return Pl(e)===Ow};or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xk};or.isForwardRef=function(e){return Pl(e)===Lw};or.isFragment=function(e){return Pl(e)===Iw};or.isLazy=function(e){return Pl(e)===Bw};or.isMemo=function(e){return Pl(e)===Nw};or.isPortal=function(e){return Pl(e)===Yk};or.isProfiler=function(e){return Pl(e)===Pw};or.isStrictMode=function(e){return Pl(e)===Rw};or.isSuspense=function(e){return Pl(e)===Dw};or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Iw||e===Pw||e===kJ||e===Rw||e===Dw||e===tj||e===AJ||typeof e=="object"&&e!==null&&(e.$$typeof===Bw||e.$$typeof===Nw||e.$$typeof===Ow||e.$$typeof===Mw||e.$$typeof===Lw||e.$$typeof===TJ||e.$$typeof===EJ||e[0]===CJ)};or.typeOf=Pl;SJ.exports=or;var IJ=SJ.exports;function TC(e,t){const n=getComputedStyle(t);if(!n)return;let r=e===Dr.Horizontal?t.clientWidth:t.clientHeight;return r!==0?(e===Dr.Horizontal?r-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight):r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),r):void 0}/*! ***************************************************************************** + */var Yk=60103,Kk=60106,Iw=60107,Rw=60108,Pw=60114,Ow=60109,Mw=60110,Lw=60112,Dw=60113,nj=60120,Nw=60115,Bw=60116,RJ=60121,PJ=60122,OJ=60117,MJ=60129,LJ=60131;if(typeof Symbol=="function"&&Symbol.for){var Gi=Symbol.for;Yk=Gi("react.element"),Kk=Gi("react.portal"),Iw=Gi("react.fragment"),Rw=Gi("react.strict_mode"),Pw=Gi("react.profiler"),Ow=Gi("react.provider"),Mw=Gi("react.context"),Lw=Gi("react.forward_ref"),Dw=Gi("react.suspense"),nj=Gi("react.suspense_list"),Nw=Gi("react.memo"),Bw=Gi("react.lazy"),RJ=Gi("react.block"),PJ=Gi("react.server.block"),OJ=Gi("react.fundamental"),MJ=Gi("react.debug_trace_mode"),LJ=Gi("react.legacy_hidden")}function Pl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yk:switch(e=e.type,e){case Iw:case Pw:case Rw:case Dw:case nj:return e;default:switch(e=e&&e.$$typeof,e){case Mw:case Lw:case Bw:case Nw:case Ow:return e;default:return t}}case Kk:return t}}}var G_e=Ow,V_e=Yk,q_e=Lw,X_e=Iw,Y_e=Bw,K_e=Nw,Q_e=Kk,J_e=Pw,Z_e=Rw,eSe=Dw;or.ContextConsumer=Mw;or.ContextProvider=G_e;or.Element=V_e;or.ForwardRef=q_e;or.Fragment=X_e;or.Lazy=Y_e;or.Memo=K_e;or.Portal=Q_e;or.Profiler=J_e;or.StrictMode=Z_e;or.Suspense=eSe;or.isAsyncMode=function(){return!1};or.isConcurrentMode=function(){return!1};or.isContextConsumer=function(e){return Pl(e)===Mw};or.isContextProvider=function(e){return Pl(e)===Ow};or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yk};or.isForwardRef=function(e){return Pl(e)===Lw};or.isFragment=function(e){return Pl(e)===Iw};or.isLazy=function(e){return Pl(e)===Bw};or.isMemo=function(e){return Pl(e)===Nw};or.isPortal=function(e){return Pl(e)===Kk};or.isProfiler=function(e){return Pl(e)===Pw};or.isStrictMode=function(e){return Pl(e)===Rw};or.isSuspense=function(e){return Pl(e)===Dw};or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Iw||e===Pw||e===MJ||e===Rw||e===Dw||e===nj||e===LJ||typeof e=="object"&&e!==null&&(e.$$typeof===Bw||e.$$typeof===Nw||e.$$typeof===Ow||e.$$typeof===Mw||e.$$typeof===Lw||e.$$typeof===OJ||e.$$typeof===RJ||e[0]===PJ)};or.typeOf=Pl;IJ.exports=or;var DJ=IJ.exports;function AC(e,t){const n=getComputedStyle(t);if(!n)return;let r=e===Dr.Horizontal?t.clientWidth:t.clientHeight;return r!==0?(e===Dr.Horizontal?r-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight):r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),r):void 0}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -279,7 +279,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function j_(e,t,n=[],r={condition:!0}){const{condition:i}=r,o=function(s,a){var c={};for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&a.indexOf(u)<0&&(c[u]=s[u]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(u=Object.getOwnPropertySymbols(s);f(i&&window.addEventListener(e,t,o),()=>{i&&window.removeEventListener(e,t)}),[e,t,i,...n])}(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`/* === Main Container === */ +***************************************************************************** */function U_(e,t,n=[],r={condition:!0}){const{condition:i}=r,o=function(s,a){var c={};for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&a.indexOf(u)<0&&(c[u]=s[u]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(u=Object.getOwnPropertySymbols(s);f(i&&window.addEventListener(e,t,o),()=>{i&&window.removeEventListener(e,t)}),[e,t,i,...n])}(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`/* === Main Container === */ .__dbk__container { height: 100%; width: 100%; @@ -368,13 +368,13 @@ PERFORMANCE OF THIS SOFTWARE. .__dbk__dragger.Dark { background: #434252; } -/* ====== */`);const Y_e=de.forwardRef(({className:e,theme:t,draggerClassName:n,direction:r=Dr.Vertical,onDragging:i},o)=>{const s=`__dbk__gutter ${r} ${e||t}`,a=`__dbk__dragger ${r} ${n||t}`;return C.jsx("div",Object.assign({className:s,ref:o,dir:r,onMouseDown:i,onTouchStart:dE?i:void 0},{children:C.jsx("div",{className:a},void 0)}),void 0)});var ma;function f3(e,t,n){let r,i;return t?(r=e/2,i=e):n?(r=e,i=e/2):(r=e,i=e),{aGutterSize:r,bGutterSize:i}}function K_e(e,t){switch(t.type){case ma.SetIsReadyToCompute:return Object.assign(Object.assign({},e),{isReady:t.payload.isReady});case ma.CreatePairs:{const{direction:n,children:r,gutters:i}=t.payload,o=r[0].parentNode;if(!o)throw new Error("Cannot create pairs - parent is undefined.");const s=TC(n,o);if(s===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${s}.`);const a=[];return r.forEach((c,u)=>{if(u>0){const f=r[u-1],h=r[u],p=i[u-1],g=n===Dr.Horizontal?f.getBoundingClientRect().left:f.getBoundingClientRect().top,v=n===Dr.Horizontal?h.getBoundingClientRect().right:h.getBoundingClientRect().bottom,y=n===Dr.Horizontal?f.getBoundingClientRect().width+p.getBoundingClientRect().width+h.getBoundingClientRect().width:f.getBoundingClientRect().height+p.getBoundingClientRect().height+h.getBoundingClientRect().height,S=n===Dr.Horizontal?p.getBoundingClientRect().width:p.getBoundingClientRect().height,w={idx:u-1,a:f,b:h,gutter:p,parent:o,start:g,end:v,size:y,gutterSize:S,aSizePct:100/r.length,bSizePct:100/r.length};a.push(w)}}),Object.assign(Object.assign({},e),{pairs:a})}case ma.StartDragging:{const{gutterIdx:n}=t.payload;return Object.assign(Object.assign({},e),{isDragging:!0,draggingIdx:n})}case ma.StopDragging:return Object.assign(Object.assign({},e),{isDragging:!1});case ma.CalculateSizes:{const{direction:n,gutterIdx:r}=t.payload,i=e.pairs[r],o=TC(n,i.parent);if(!o)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const s=i.gutter[n===Dr.Horizontal?"clientWidth":"clientHeight"],a=r===0,c=r===e.pairs.length-1,{aGutterSize:u,bGutterSize:f}=f3(s,a,c);let h,p,g,v,y;return n===Dr.Horizontal?(h=i.a.getBoundingClientRect().left,p=i.b.getBoundingClientRect().right,v=(i.a.getBoundingClientRect().width+u)/o*100,y=(i.b.getBoundingClientRect().width+f)/o*100,g=i.a.getBoundingClientRect().width+u+f+i.b.getBoundingClientRect().width):(h=i.a.getBoundingClientRect().top,p=i.b.getBoundingClientRect().bottom,v=(i.a.getBoundingClientRect().height+u)/o*100,y=(i.b.getBoundingClientRect().height+f)/o*100,g=i.a.getBoundingClientRect().height+u+f+i.b.getBoundingClientRect().height),e.pairs[r]=Object.assign(Object.assign({},i),{start:h,end:p,size:g,aSizePct:v,bSizePct:y,gutterSize:s}),Object.assign({},e)}default:return e}}function RJ(e,t=0,n=[]){return P.Children.toArray(e).reduce((r,i,o)=>(IJ.isFragment(i)?r.push.apply(r,RJ(i.props.children,t+1,n.concat(i.key||o))):P.isValidElement(i)?r.push(P.cloneElement(i,{key:n.concat(String(i.key)).join(".")})):typeof i!="string"&&typeof i!="number"||r.push(i),r),[])}(function(e){e[e.SetIsReadyToCompute=0]="SetIsReadyToCompute",e[e.CreatePairs=1]="CreatePairs",e[e.CalculateSizes=2]="CalculateSizes",e[e.StartDragging=3]="StartDragging",e[e.StopDragging=4]="StopDragging"})(ma||(ma={}));const iW=e=>"changedTouches"in e;var Dr,h3;(function(e){e.Horizontal="Horizontal",e.Vertical="Vertical"})(Dr||(Dr={})),function(e){e.Light="Light",e.Dark="Dark"}(h3||(h3={}));const dE=typeof window<"u"&&"ontouchstart"in window;function rN(e){return e===Dr.Horizontal?"col-resize":"row-resize"}const Q_e={isReady:!1,isDragging:!1,pairs:[]};function J_e({direction:e=Dr.Horizontal,minWidths:t=[],minHeights:n=[],initialSizes:r,gutterTheme:i=h3.Dark,gutterClassName:o,draggerClassName:s,children:a,onResizeStarted:c,onResizeFinished:u,classes:f=[]}){const h=RJ(a),[p,g]=P.useReducer(K_e,Q_e),v=P.useRef(null),y=P.useRef([]),S=P.useRef([]);y.current=[],S.current=[];const w=de.useCallback(G=>{g({type:ma.SetIsReadyToCompute,payload:{isReady:G}})},[]),b=de.useCallback((G,z)=>{g({type:ma.StartDragging,payload:{gutterIdx:z}});const L=p.pairs[z];c==null||c(L.idx),L.a.style.userSelect="none",L.b.style.userSelect="none",L.gutter.style.cursor=rN(G),L.parent.style.cursor=rN(G),document.body.style.cursor=rN(G)},[p.pairs]),x=de.useCallback(()=>{g({type:ma.StopDragging});const G=[];for(let L=0;L{g({type:ma.CalculateSizes,payload:{direction:G,gutterIdx:z}})},[]),I=de.useCallback((G,z,L)=>{g({type:ma.CreatePairs,payload:{direction:G,children:z,gutters:L}})},[]),A=de.useCallback((G,z,L,F)=>{const j=z[0].parentNode;if(!j)throw new Error("Cannot set initial sizes - parent is undefined");if(TC(G,j)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");z.forEach((V,W)=>{const K=W===0,X=W===z.length-1;let Q,re=0;z.length>1&&(re=L[X?W-1:W].getBoundingClientRect()[G===Dr.Horizontal?"width":"height"],re=K||X?re/2:re),Q=F&&W{if(p.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const L=p.pairs[p.draggingIdx];if(L.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(L.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const F=L.aSizePct+L.bSizePct,j=z/L.size*F,V=F-z/L.size*F,W=p.draggingIdx===0,K=p.draggingIdx===p.pairs.length-1,{aGutterSize:X,bGutterSize:Q}=f3(L.gutterSize,W,K),re=`calc(${j}% - ${X}px)`,ce=`calc(${V}% - ${Q}px)`;G===Dr.Horizontal?(L.a.style.width=re,L.b.style.width=ce):(L.a.style.height=re,L.b.style.height=ce)},[p.draggingIdx,p.pairs,e]),O=de.useCallback((G,z,L)=>{if(!p.isDragging)return;if(p.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const F=p.pairs[p.draggingIdx];if(F.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(F.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(F.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let j=function(K,X){const Q=iW(X)?X.changedTouches[0]:X;return K===Dr.Horizontal?Q.clientX:Q.clientY}(z,G)-F.start,V=16,W=16;L.length>p.draggingIdx&&(V=L[p.draggingIdx]),L.length>=p.draggingIdx+1&&(W=L[p.draggingIdx+1]),j=F.size-(F.gutterSize+W)&&(j=F.size-(F.gutterSize+W)),k(z,j)},[p.isDragging,p.draggingIdx,p.pairs,k]),D=()=>{if(p.isDragging){if(p.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");E(e,p.draggingIdx),x()}},N=G=>{p.isDragging&&(iW(G)&&G.preventDefault(),O(G,e,e===Dr.Horizontal?t:n))};function H(G,z){if(!G.current)throw new Error("Can't add element to ref object - ref isn't initialized");z&&!G.current.includes(z)&&G.current.push(z)}return j_("mouseup",D,[p.isDragging,x]),j_("mousemove",N,[e,p.isDragging,O,t,n]),j_("touchend",D,[p.isDragging,x],{condition:dE}),j_("touchmove",N,[e,p.isDragging,O,t,n],{condition:dE,passive:!dE}),P.useEffect(function(){if(!v.current)return;const G=v.current.parentElement;if(!G)return;const z=new ResizeObserver(()=>{const L=getComputedStyle(G),F=e===Dr.Horizontal?G.clientWidth:G.clientHeight;w(!!L&&!!F)});return z.observe(G),()=>{z.disconnect()}},[v.current,e]),P.useEffect(function(){if(p.isReady&&(!y.current||y.current[0].offsetParent)){if(!y.current||!S.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");h.length<=1?A(e,y.current,S.current,r):(A(e,y.current,S.current,r),I(e,y.current,S.current))}},[a,p.isReady,e,A,I,r]),C.jsx("div",Object.assign({className:`__dbk__container ${e}`,ref:v},{children:p.isReady&&h.map((G,z)=>C.jsxs(de.Fragment,{children:[C.jsx("div",Object.assign({ref:L=>H(y,L),className:"__dbk__child-wrapper "+(zH(S,L),className:o,theme:i,draggerClassName:s,direction:e,onDragging:()=>{return E(e,L=z),void b(e,L);var L}},void 0)]},z))}),void 0)}let da=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function Mb(e){if(typeof window>"u")return e;const t=P.useRef(null);return P.useLayoutEffect(()=>{t.current=e}),P.useCallback((...n)=>{var r;(r=t.current)===null||r===void 0||r.call(t,...n)},[])}const oW={};function Z_e(e,t){oW[e]||(oW[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}const eSe={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function tSe({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:r}){const i=P.useRef(!0);P.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[]);const[o,s]=P.useState(eSe),a=P.useCallback(b=>{i.current&&s(b)},[]),c=P.useCallback(b=>a(x=>({...x,setAnchorElUsed:!0,anchorEl:b??void 0})),[]),u=Mb(b=>(o.isOpen?p(b):f(b),o)),f=Mb(b=>{const x=b instanceof Element?void 0:b,E=b instanceof Element?b:(b==null?void 0:b.currentTarget)instanceof Element?b.currentTarget:void 0;if((x==null?void 0:x.type)==="touchstart"){a(D=>({...D,_deferNextOpen:!0}));return}const I=x==null?void 0:x.clientX,A=x==null?void 0:x.clientY,k=typeof I=="number"&&typeof A=="number"?{left:I,top:A}:void 0,O=D=>{if(!b&&!D.setAnchorElUsed&&n!=="dialog"&&Z_e("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return D;setTimeout(()=>e._setChildPopupState(w))}const N={...D,isOpen:!0,anchorPosition:k,hovered:(x==null?void 0:x.type)==="mouseover"||D.hovered,focused:(x==null?void 0:x.type)==="focus"||D.focused,_openEventType:x==null?void 0:x.type};return x!=null&&x.currentTarget?D.setAnchorElUsed||(N.anchorEl=x==null?void 0:x.currentTarget):E&&(N.anchorEl=E),N};a(D=>D._deferNextOpen?(setTimeout(()=>a(O),0),{...D,_deferNextOpen:!1}):O(D))}),h=b=>{const{_childPopupState:x}=b;return setTimeout(()=>{x==null||x.close(),e==null||e._setChildPopupState(null)}),{...b,isOpen:!1,hovered:!1,focused:!1}},p=Mb(b=>{const x=b instanceof Element?void 0:b;if((x==null?void 0:x.type)==="touchstart"){a(E=>({...E,_deferNextClose:!0}));return}a(E=>E._deferNextClose?(setTimeout(()=>a(h),0),{...E,_deferNextClose:!1}):h(E))}),g=P.useCallback((b,x)=>{b?f(x):p(x)},[]),v=Mb(b=>{const{relatedTarget:x}=b;a(E=>E.hovered&&!(x instanceof Element&&p3(x,w))?E.focused?{...E,hovered:!1}:h(E):E)}),y=Mb(b=>{if(!b)return;const{relatedTarget:x}=b;a(E=>E.focused&&!(x instanceof Element&&p3(x,w))?E.hovered?{...E,focused:!1}:h(E):E)}),S=P.useCallback(b=>a(x=>({...x,_childPopupState:b})),[]),w={...o,setAnchorEl:c,popupId:t,variant:n,open:f,close:p,toggle:u,setOpen:g,onBlur:y,onMouseLeave:v,disableAutoFocus:r??!!(o.hovered||o.focused),_setChildPopupState:S};return w}function nSe({isOpen:e,popupId:t,variant:n}){return{...n==="popover"?{"aria-haspopup":!0,"aria-controls":e&&t!=null?t:void 0}:n==="popper"?{"aria-describedby":e&&t!=null?t:void 0}:void 0}}function Kk(e){return{...nSe(e),onClick:e.open,onTouchStart:e.open}}function $w({isOpen:e,anchorEl:t,anchorPosition:n,close:r,popupId:i,onMouseLeave:o,disableAutoFocus:s,_openEventType:a}){return{id:i,anchorEl:t,anchorPosition:n,anchorReference:a==="contextmenu"?"anchorPosition":"anchorEl",open:e,onClose:r,onMouseLeave:o,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function rSe(e,{popupId:t}){if(!t)return null;const n=typeof e.getRootNode=="function"?e.getRootNode():document;return typeof n.getElementById=="function"?n.getElementById(t):null}function p3(e,t){const{anchorEl:n,_childPopupState:r}=t;return sW(n,e)||sW(rSe(e,t),e)||r!=null&&p3(e,r)}function sW(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function em({children:e,popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}){const o=tSe({popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}),s=e(o);return s??null}em.propTypes={children:mb.func.isRequired,popupId:mb.string,variant:mb.oneOf(["popover","popper"]).isRequired,parentPopupState:mb.object,disableAutoFocus:mb.bool};function iSe({onSplitHorizontal:e,onClose:t,onSplitVertical:n,closeDisabled:r,splitHorizontalDisabled:i,splitVerticalDisabled:o}){return C.jsx(em,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(Gg,{sx:{m:1},children:C.jsx(vf,{title:"Panel Options",children:C.jsx($p,{size:"small",...Kk(s),children:C.jsx(I1e,{fontSize:"small"})})})}),C.jsxs(Zp,{...$w(s),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[C.jsxs(Ru,{onClick:n,disabled:o,children:[C.jsx(Wd,{children:C.jsx(IH,{fontSize:"small"})}),C.jsx(rc,{children:"Split Vertical"})]}),C.jsxs(Ru,{onClick:e,disabled:i,children:[C.jsx(Wd,{children:C.jsx(IH,{fontSize:"small",sx:{transform:"rotate(90deg)"}})}),C.jsx(rc,{children:"Split Horizontal"})]}),C.jsx(Ku,{}),C.jsxs(Ru,{onClick:t,disabled:r,children:[C.jsx(Wd,{children:C.jsx(DQ,{fontSize:"small"})}),C.jsx(rc,{children:"Close Panel"})]})]})]})})}function Ca(e,t){const n=structuredClone(e);return t(n),ie.isEqual(n,e)?e:n}function aW(e,t){const n=t(structuredClone(e));return ie.isEqual(n,e)?e:n}function Kg(e){return t=>P.createElement(e,{...t,produce:n=>{var r;return(r=t==null?void 0:t.onChange)==null?void 0:r.call(t,i=>Ca(i,n))}})}const PJ=P.createContext({});function bf(){return P.useContext(PJ)}function OJ({root:e={type:"leaf",key:""},renderLeaf:t,onChange:n,onClose:r,depth:i=0}){const{palette:o,spacing:s,transitions:a}=Ln(),c=k1({"div&":{background:o.text.secondary,opacity:1-o.action.activatedOpacity,transition:a.create("opacity"),"&.Horizontal":{width:"3px"},"&.Vertical":{height:"3px"}}}),u=k1({"div&":{background:o.background.default,[`&:hover .${c}`]:{opacity:1},"&.Horizontal":{padding:0},"&.Vertical":{padding:0}}}),f=g=>Number(s(g).slice(0,-2));function h(g){const v=100-ie.sumBy(g,"size"),y=ie.filter(g,S=>!S.size).length;return y?v/y:0}const p=P.useMemo(()=>{const g=v=>n==null?void 0:n(aW(e,y=>({key:da(),type:"branch",orientation:v,children:[{...structuredClone(y),size:50,key:da()},{...structuredClone(y),size:50,key:da()}]})));return e.type==="leaf"?{state:e.content,controls:C.jsx(iSe,{onClose:r,closeDisabled:!i,onSplitHorizontal:()=>g("horizontal"),onSplitVertical:()=>g("vertical")}),onChange:v=>n==null?void 0:n(Ca(e,y=>{y.content={...y.content,...v}}))}:{}},[n,r,i,e]);return C.jsx(C.Fragment,{children:e.type==="leaf"?C.jsx(En,{children:C.jsx(En,{sx:{borderRadius:g=>g.spacing(1),overflow:"hidden"},children:C.jsx(PJ.Provider,{value:p,children:t==null?void 0:t(e)})})}):C.jsx(J_e,{gutterClassName:u,draggerClassName:c,onResizeFinished:(g,v)=>n==null?void 0:n(Ca(e,y=>{ie.forEach(v,(S,w)=>{y.children[w].size=S})})),minHeights:ie.map(e.children,()=>f(6)-8),minWidths:ie.map(e.children,()=>f(32)),initialSizes:ie.map(e.children,(g,v,y)=>g.size??h(y)),direction:{vertical:Dr.Vertical,horizontal:Dr.Horizontal}[e.orientation],children:ie.map(e.children,(g,v)=>C.jsx(OJ,{depth:i+1,renderLeaf:t,root:g,onChange:y=>n==null?void 0:n(Ca(e,S=>S.children[v]=y)),onClose:()=>n==null?void 0:n(aW(e,y=>(y.children.splice(v,1),y.children.length===1?y.children[0].type==="leaf"?{type:"leaf",key:da(),content:y.children[0].content}:y.children[0]:(ie.forEach(y.children,(S,w,b)=>S.size=100/b.length),y))))},g.key))})})}function R1(){return R1=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var sSe=["PropTypes"],aSe=function(t,n){return P.Children.toArray(t).reduce(function(r,i){if(P.isValidElement(i)){var o=i.type.displayName;n!=null&&n.includes(o)&&(r[o]=i.props)}return r},{})},lSe=function(t,n){var r=P.Children.toArray(t).filter(function(i){if(P.isValidElement(i)){var o=i.type.displayName;return!(n!=null&&n.includes(o))}return!0});return r.length>0?r:void 0},cSe=function(t){return typeof t=="string"&&!sSe.includes(t)&&t.match(/^[A-Z0-9]/)},uSe=function(t){var n=P.memo(function(r){var i=r.children,o=r.propagateSlotProps,s=r.slotKeys,a=s===void 0?[]:s,c=oSe(r,["children","propagateSlotProps","slotKeys"]),u=P.useMemo(function(){return aSe(i,a)},[a,i]),f=P.useMemo(function(){return lSe(i,a)},[a,i]),h=P.useMemo(function(){return R1({},c,{slotProps:R1({},o,u)})},[c,u,o]);return P.createElement(t,h,f)});return n},dSe=function(t){var n=P.memo(uSe(t));n.displayName="WithSlots("+(t.displayName||t.name)+")";var r=new Proxy(n,{get:function(o,s,a){var c;if(s in o||typeof s=="symbol"||!cSe(s))return Reflect.get(o,s,a);var u=((c=Reflect.get(o,"defaultProps"))==null?void 0:c.slotKeys)||[],f=Reflect.get(o,s);if(!f){var h=function(){return null};h.displayName=s,Reflect.set(o,s,h)}return Reflect.set(o,"defaultProps",R1({},o.defaultProps,{slotKeys:[].concat(u,[s])})),Reflect.get(o,s,a)}});return r};function nj(){const e=Ln();return iye(e.breakpoints.down("sm"))}const fSe=e=>e?48:36,hSe=8;function pSe({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Option"}){const o=nj(),s=ie.max([ie.findIndex(t,{value:n}),0])??0;return C.jsx(em,{variant:"popover",children:a=>C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:i,children:C.jsx("span",{children:e==null?void 0:e(Kk(a))})}),C.jsx(Zp,{...$w(a),anchorOrigin:{horizontal:"center",vertical:-fSe(o)*s-hSe},transformOrigin:{vertical:"top",horizontal:"center"},children:ie.map(t,({value:c,label:u,disabled:f})=>C.jsx(Ru,{disabled:f,value:c,selected:c===n,onClick:()=>{a.close(),r==null||r(c)},children:u},c))})]})})}function jx(e){const{placeholder:t,value:n,items:r=[],onChange:i}=e;return C.jsx(Ew,{sx:{minWidth:120},select:!0,label:t,value:n,variant:"filled",...e,onChange:o=>i==null?void 0:i(o.target.value),children:ie.map(r,o=>C.jsx(Ru,{value:o.value,children:o.label},o.value))})}function nf({children:e,icon:t,showArrow:n,...r}){return C.jsx(Lz,{...r,startIcon:t,endIcon:n&&C.jsx(k1e,{sx:{ml:-.5,color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1}}),children:C.jsx(mt,{sx:{color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1},children:e})})}function Ws({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,disabled:s,ButtonProps:a}){const c=ie.find(r,{id:t});return C.jsx(pSe,{placeholder:ie.startCase(e),trigger:u=>C.jsx(nf,{...u,...a,disabled:!(r!=null&&r.length)||s,icon:i,showArrow:o,children:(c==null?void 0:c.name)??e}),items:ie.map(r,({id:u,name:f,description:h,hidden:p})=>({value:u,label:C.jsxs(C.Fragment,{children:[C.jsx(Xt,{children:f}),C.jsx(ai,{}),C.jsx(Xt,{variant:"body2",color:"text.secondary",children:h})]}),disabled:p})),value:c==null?void 0:c.id,onChange:n})}const MJ=[{url:"https://cdn.jsdelivr.net/gh/path-visualiser/app@adapter-warthog-wasm-dist/warthog-wasm.mjs",transport:"ipc",key:"default-ipc"}],LJ=[{url:"internal://d2-renderer/",key:"d2-renderer",transport:"native"}],Pm=4,mSe={renderer:LJ,remote:MJ,playbackRate:Pm,theme:"dark",acrylic:!0,accentColor:"blue"},[Zu,gSe]=Qu({},pwe("settings",mSe)),{common:K7e,...vSe}=cX,ySe=` +/* ====== */`);const tSe=de.forwardRef(({className:e,theme:t,draggerClassName:n,direction:r=Dr.Vertical,onDragging:i},o)=>{const s=`__dbk__gutter ${r} ${e||t}`,a=`__dbk__dragger ${r} ${n||t}`;return C.jsx("div",Object.assign({className:s,ref:o,dir:r,onMouseDown:i,onTouchStart:hE?i:void 0},{children:C.jsx("div",{className:a},void 0)}),void 0)});var ma;function h3(e,t,n){let r,i;return t?(r=e/2,i=e):n?(r=e,i=e/2):(r=e,i=e),{aGutterSize:r,bGutterSize:i}}function nSe(e,t){switch(t.type){case ma.SetIsReadyToCompute:return Object.assign(Object.assign({},e),{isReady:t.payload.isReady});case ma.CreatePairs:{const{direction:n,children:r,gutters:i}=t.payload,o=r[0].parentNode;if(!o)throw new Error("Cannot create pairs - parent is undefined.");const s=AC(n,o);if(s===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${s}.`);const a=[];return r.forEach((c,u)=>{if(u>0){const f=r[u-1],h=r[u],p=i[u-1],g=n===Dr.Horizontal?f.getBoundingClientRect().left:f.getBoundingClientRect().top,v=n===Dr.Horizontal?h.getBoundingClientRect().right:h.getBoundingClientRect().bottom,y=n===Dr.Horizontal?f.getBoundingClientRect().width+p.getBoundingClientRect().width+h.getBoundingClientRect().width:f.getBoundingClientRect().height+p.getBoundingClientRect().height+h.getBoundingClientRect().height,S=n===Dr.Horizontal?p.getBoundingClientRect().width:p.getBoundingClientRect().height,w={idx:u-1,a:f,b:h,gutter:p,parent:o,start:g,end:v,size:y,gutterSize:S,aSizePct:100/r.length,bSizePct:100/r.length};a.push(w)}}),Object.assign(Object.assign({},e),{pairs:a})}case ma.StartDragging:{const{gutterIdx:n}=t.payload;return Object.assign(Object.assign({},e),{isDragging:!0,draggingIdx:n})}case ma.StopDragging:return Object.assign(Object.assign({},e),{isDragging:!1});case ma.CalculateSizes:{const{direction:n,gutterIdx:r}=t.payload,i=e.pairs[r],o=AC(n,i.parent);if(!o)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const s=i.gutter[n===Dr.Horizontal?"clientWidth":"clientHeight"],a=r===0,c=r===e.pairs.length-1,{aGutterSize:u,bGutterSize:f}=h3(s,a,c);let h,p,g,v,y;return n===Dr.Horizontal?(h=i.a.getBoundingClientRect().left,p=i.b.getBoundingClientRect().right,v=(i.a.getBoundingClientRect().width+u)/o*100,y=(i.b.getBoundingClientRect().width+f)/o*100,g=i.a.getBoundingClientRect().width+u+f+i.b.getBoundingClientRect().width):(h=i.a.getBoundingClientRect().top,p=i.b.getBoundingClientRect().bottom,v=(i.a.getBoundingClientRect().height+u)/o*100,y=(i.b.getBoundingClientRect().height+f)/o*100,g=i.a.getBoundingClientRect().height+u+f+i.b.getBoundingClientRect().height),e.pairs[r]=Object.assign(Object.assign({},i),{start:h,end:p,size:g,aSizePct:v,bSizePct:y,gutterSize:s}),Object.assign({},e)}default:return e}}function NJ(e,t=0,n=[]){return R.Children.toArray(e).reduce((r,i,o)=>(DJ.isFragment(i)?r.push.apply(r,NJ(i.props.children,t+1,n.concat(i.key||o))):R.isValidElement(i)?r.push(R.cloneElement(i,{key:n.concat(String(i.key)).join(".")})):typeof i!="string"&&typeof i!="number"||r.push(i),r),[])}(function(e){e[e.SetIsReadyToCompute=0]="SetIsReadyToCompute",e[e.CreatePairs=1]="CreatePairs",e[e.CalculateSizes=2]="CalculateSizes",e[e.StartDragging=3]="StartDragging",e[e.StopDragging=4]="StopDragging"})(ma||(ma={}));const lW=e=>"changedTouches"in e;var Dr,p3;(function(e){e.Horizontal="Horizontal",e.Vertical="Vertical"})(Dr||(Dr={})),function(e){e.Light="Light",e.Dark="Dark"}(p3||(p3={}));const hE=typeof window<"u"&&"ontouchstart"in window;function iN(e){return e===Dr.Horizontal?"col-resize":"row-resize"}const rSe={isReady:!1,isDragging:!1,pairs:[]};function iSe({direction:e=Dr.Horizontal,minWidths:t=[],minHeights:n=[],initialSizes:r,gutterTheme:i=p3.Dark,gutterClassName:o,draggerClassName:s,children:a,onResizeStarted:c,onResizeFinished:u,classes:f=[]}){const h=NJ(a),[p,g]=R.useReducer(nSe,rSe),v=R.useRef(null),y=R.useRef([]),S=R.useRef([]);y.current=[],S.current=[];const w=de.useCallback(G=>{g({type:ma.SetIsReadyToCompute,payload:{isReady:G}})},[]),b=de.useCallback((G,z)=>{g({type:ma.StartDragging,payload:{gutterIdx:z}});const L=p.pairs[z];c==null||c(L.idx),L.a.style.userSelect="none",L.b.style.userSelect="none",L.gutter.style.cursor=iN(G),L.parent.style.cursor=iN(G),document.body.style.cursor=iN(G)},[p.pairs]),x=de.useCallback(()=>{g({type:ma.StopDragging});const G=[];for(let L=0;L{g({type:ma.CalculateSizes,payload:{direction:G,gutterIdx:z}})},[]),I=de.useCallback((G,z,L)=>{g({type:ma.CreatePairs,payload:{direction:G,children:z,gutters:L}})},[]),A=de.useCallback((G,z,L,F)=>{const j=z[0].parentNode;if(!j)throw new Error("Cannot set initial sizes - parent is undefined");if(AC(G,j)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");z.forEach((V,W)=>{const K=W===0,X=W===z.length-1;let Q,ie=0;z.length>1&&(ie=L[X?W-1:W].getBoundingClientRect()[G===Dr.Horizontal?"width":"height"],ie=K||X?ie/2:ie),Q=F&&W{if(p.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const L=p.pairs[p.draggingIdx];if(L.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(L.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const F=L.aSizePct+L.bSizePct,j=z/L.size*F,V=F-z/L.size*F,W=p.draggingIdx===0,K=p.draggingIdx===p.pairs.length-1,{aGutterSize:X,bGutterSize:Q}=h3(L.gutterSize,W,K),ie=`calc(${j}% - ${X}px)`,ce=`calc(${V}% - ${Q}px)`;G===Dr.Horizontal?(L.a.style.width=ie,L.b.style.width=ce):(L.a.style.height=ie,L.b.style.height=ce)},[p.draggingIdx,p.pairs,e]),O=de.useCallback((G,z,L)=>{if(!p.isDragging)return;if(p.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const F=p.pairs[p.draggingIdx];if(F.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(F.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(F.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let j=function(K,X){const Q=lW(X)?X.changedTouches[0]:X;return K===Dr.Horizontal?Q.clientX:Q.clientY}(z,G)-F.start,V=16,W=16;L.length>p.draggingIdx&&(V=L[p.draggingIdx]),L.length>=p.draggingIdx+1&&(W=L[p.draggingIdx+1]),j=F.size-(F.gutterSize+W)&&(j=F.size-(F.gutterSize+W)),k(z,j)},[p.isDragging,p.draggingIdx,p.pairs,k]),D=()=>{if(p.isDragging){if(p.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");E(e,p.draggingIdx),x()}},N=G=>{p.isDragging&&(lW(G)&&G.preventDefault(),O(G,e,e===Dr.Horizontal?t:n))};function H(G,z){if(!G.current)throw new Error("Can't add element to ref object - ref isn't initialized");z&&!G.current.includes(z)&&G.current.push(z)}return U_("mouseup",D,[p.isDragging,x]),U_("mousemove",N,[e,p.isDragging,O,t,n]),U_("touchend",D,[p.isDragging,x],{condition:hE}),U_("touchmove",N,[e,p.isDragging,O,t,n],{condition:hE,passive:!hE}),R.useEffect(function(){if(!v.current)return;const G=v.current.parentElement;if(!G)return;const z=new ResizeObserver(()=>{const L=getComputedStyle(G),F=e===Dr.Horizontal?G.clientWidth:G.clientHeight;w(!!L&&!!F)});return z.observe(G),()=>{z.disconnect()}},[v.current,e]),R.useEffect(function(){if(p.isReady&&(!y.current||y.current[0].offsetParent)){if(!y.current||!S.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");h.length<=1?A(e,y.current,S.current,r):(A(e,y.current,S.current,r),I(e,y.current,S.current))}},[a,p.isReady,e,A,I,r]),C.jsx("div",Object.assign({className:`__dbk__container ${e}`,ref:v},{children:p.isReady&&h.map((G,z)=>C.jsxs(de.Fragment,{children:[C.jsx("div",Object.assign({ref:L=>H(y,L),className:"__dbk__child-wrapper "+(zH(S,L),className:o,theme:i,draggerClassName:s,direction:e,onDragging:()=>{return E(e,L=z),void b(e,L);var L}},void 0)]},z))}),void 0)}let qo=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function Ob(e){if(typeof window>"u")return e;const t=R.useRef(null);return R.useLayoutEffect(()=>{t.current=e}),R.useCallback((...n)=>{var r;(r=t.current)===null||r===void 0||r.call(t,...n)},[])}const cW={};function oSe(e,t){cW[e]||(cW[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}const sSe={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function aSe({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:r}){const i=R.useRef(!0);R.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[]);const[o,s]=R.useState(sSe),a=R.useCallback(b=>{i.current&&s(b)},[]),c=R.useCallback(b=>a(x=>({...x,setAnchorElUsed:!0,anchorEl:b??void 0})),[]),u=Ob(b=>(o.isOpen?p(b):f(b),o)),f=Ob(b=>{const x=b instanceof Element?void 0:b,E=b instanceof Element?b:(b==null?void 0:b.currentTarget)instanceof Element?b.currentTarget:void 0;if((x==null?void 0:x.type)==="touchstart"){a(D=>({...D,_deferNextOpen:!0}));return}const I=x==null?void 0:x.clientX,A=x==null?void 0:x.clientY,k=typeof I=="number"&&typeof A=="number"?{left:I,top:A}:void 0,O=D=>{if(!b&&!D.setAnchorElUsed&&n!=="dialog"&&oSe("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return D;setTimeout(()=>e._setChildPopupState(w))}const N={...D,isOpen:!0,anchorPosition:k,hovered:(x==null?void 0:x.type)==="mouseover"||D.hovered,focused:(x==null?void 0:x.type)==="focus"||D.focused,_openEventType:x==null?void 0:x.type};return x!=null&&x.currentTarget?D.setAnchorElUsed||(N.anchorEl=x==null?void 0:x.currentTarget):E&&(N.anchorEl=E),N};a(D=>D._deferNextOpen?(setTimeout(()=>a(O),0),{...D,_deferNextOpen:!1}):O(D))}),h=b=>{const{_childPopupState:x}=b;return setTimeout(()=>{x==null||x.close(),e==null||e._setChildPopupState(null)}),{...b,isOpen:!1,hovered:!1,focused:!1}},p=Ob(b=>{const x=b instanceof Element?void 0:b;if((x==null?void 0:x.type)==="touchstart"){a(E=>({...E,_deferNextClose:!0}));return}a(E=>E._deferNextClose?(setTimeout(()=>a(h),0),{...E,_deferNextClose:!1}):h(E))}),g=R.useCallback((b,x)=>{b?f(x):p(x)},[]),v=Ob(b=>{const{relatedTarget:x}=b;a(E=>E.hovered&&!(x instanceof Element&&m3(x,w))?E.focused?{...E,hovered:!1}:h(E):E)}),y=Ob(b=>{if(!b)return;const{relatedTarget:x}=b;a(E=>E.focused&&!(x instanceof Element&&m3(x,w))?E.hovered?{...E,focused:!1}:h(E):E)}),S=R.useCallback(b=>a(x=>({...x,_childPopupState:b})),[]),w={...o,setAnchorEl:c,popupId:t,variant:n,open:f,close:p,toggle:u,setOpen:g,onBlur:y,onMouseLeave:v,disableAutoFocus:r??!!(o.hovered||o.focused),_setChildPopupState:S};return w}function lSe({isOpen:e,popupId:t,variant:n}){return{...n==="popover"?{"aria-haspopup":!0,"aria-controls":e&&t!=null?t:void 0}:n==="popper"?{"aria-describedby":e&&t!=null?t:void 0}:void 0}}function Qk(e){return{...lSe(e),onClick:e.open,onTouchStart:e.open}}function $w({isOpen:e,anchorEl:t,anchorPosition:n,close:r,popupId:i,onMouseLeave:o,disableAutoFocus:s,_openEventType:a}){return{id:i,anchorEl:t,anchorPosition:n,anchorReference:a==="contextmenu"?"anchorPosition":"anchorEl",open:e,onClose:r,onMouseLeave:o,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function cSe(e,{popupId:t}){if(!t)return null;const n=typeof e.getRootNode=="function"?e.getRootNode():document;return typeof n.getElementById=="function"?n.getElementById(t):null}function m3(e,t){const{anchorEl:n,_childPopupState:r}=t;return uW(n,e)||uW(cSe(e,t),e)||r!=null&&m3(e,r)}function uW(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function rm({children:e,popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}){const o=aSe({popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}),s=e(o);return s??null}rm.propTypes={children:pb.func.isRequired,popupId:pb.string,variant:pb.oneOf(["popover","popper"]).isRequired,parentPopupState:pb.object,disableAutoFocus:pb.bool};function uSe({onSplitHorizontal:e,onClose:t,onSplitVertical:n,closeDisabled:r,splitHorizontalDisabled:i,splitVerticalDisabled:o}){return C.jsx(rm,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(Up,{sx:{m:1},children:C.jsx(vf,{title:"Panel Options",children:C.jsx(Fp,{size:"small",...Qk(s),children:C.jsx(N1e,{fontSize:"small"})})})}),C.jsxs(nm,{...$w(s),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[C.jsxs(Ru,{onClick:n,disabled:o,children:[C.jsx(Wd,{children:C.jsx(MH,{fontSize:"small"})}),C.jsx(rc,{children:"Split Vertical"})]}),C.jsxs(Ru,{onClick:e,disabled:i,children:[C.jsx(Wd,{children:C.jsx(MH,{fontSize:"small",sx:{transform:"rotate(90deg)"}})}),C.jsx(rc,{children:"Split Horizontal"})]}),C.jsx(Ku,{}),C.jsxs(Ru,{onClick:t,disabled:r,children:[C.jsx(Wd,{children:C.jsx(zQ,{fontSize:"small"})}),C.jsx(rc,{children:"Close Panel"})]})]})]})})}function Ta(e,t){const n=te.clone(e);return t(n),n}function dW(e,t){return t(te.clone(e))}function Jg(e){return t=>R.createElement(e,{...t,produce:n=>{var r;return(r=t==null?void 0:t.onChange)==null?void 0:r.call(t,i=>Ta(i,n))}})}const BJ=R.createContext({});function bf(){return R.useContext(BJ)}function $J({root:e={type:"leaf",key:""},renderLeaf:t,onChange:n,onClose:r,depth:i=0}){const{palette:o,spacing:s,transitions:a}=Dn(),c=T1({"div&":{background:o.text.secondary,opacity:1-o.action.activatedOpacity,transition:a.create("opacity"),"&.Horizontal":{width:"3px"},"&.Vertical":{height:"3px"}}}),u=T1({"div&":{background:o.background.default,[`&:hover .${c}`]:{opacity:1},"&.Horizontal":{padding:0},"&.Vertical":{padding:0}}}),f=g=>Number(s(g).slice(0,-2));function h(g){const v=100-te.sumBy(g,"size"),y=te.filter(g,S=>!S.size).length;return y?v/y:0}const p=R.useMemo(()=>{const g=v=>n==null?void 0:n(dW(e,y=>({key:qo(),type:"branch",orientation:v,children:[{...structuredClone(y),size:50,key:qo()},{...structuredClone(y),size:50,key:qo()}]})));return e.type==="leaf"?{state:e.content,controls:C.jsx(uSe,{onClose:r,closeDisabled:!i,onSplitHorizontal:()=>g("horizontal"),onSplitVertical:()=>g("vertical")}),onChange:v=>n==null?void 0:n(Ta(e,y=>{y.content={...y.content,...v}}))}:{}},[n,r,i,e]);return C.jsx(C.Fragment,{children:e.type==="leaf"?C.jsx(En,{children:C.jsx(En,{sx:{borderRadius:g=>g.spacing(1),overflow:"hidden"},children:C.jsx(BJ.Provider,{value:p,children:t==null?void 0:t(e)})})}):C.jsx(iSe,{gutterClassName:u,draggerClassName:c,onResizeFinished:(g,v)=>n==null?void 0:n(Ta(e,y=>{te.forEach(v,(S,w)=>{y.children[w].size=S})})),minHeights:te.map(e.children,()=>f(6)-8),minWidths:te.map(e.children,()=>f(32)),initialSizes:te.map(e.children,(g,v,y)=>g.size??h(y)),direction:{vertical:Dr.Vertical,horizontal:Dr.Horizontal}[e.orientation],children:te.map(e.children,(g,v)=>C.jsx($J,{depth:i+1,renderLeaf:t,root:g,onChange:y=>n==null?void 0:n(Ta(e,S=>S.children[v]=y)),onClose:()=>n==null?void 0:n(dW(e,y=>(y.children.splice(v,1),y.children.length===1?y.children[0].type==="leaf"?{type:"leaf",key:qo(),content:y.children[0].content}:y.children[0]:(te.forEach(y.children,(S,w,b)=>S.size=100/b.length),y))))},g.key))})})}function I1(){return I1=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var fSe=["PropTypes"],hSe=function(t,n){return R.Children.toArray(t).reduce(function(r,i){if(R.isValidElement(i)){var o=i.type.displayName;n!=null&&n.includes(o)&&(r[o]=i.props)}return r},{})},pSe=function(t,n){var r=R.Children.toArray(t).filter(function(i){if(R.isValidElement(i)){var o=i.type.displayName;return!(n!=null&&n.includes(o))}return!0});return r.length>0?r:void 0},mSe=function(t){return typeof t=="string"&&!fSe.includes(t)&&t.match(/^[A-Z0-9]/)},gSe=function(t){var n=R.memo(function(r){var i=r.children,o=r.propagateSlotProps,s=r.slotKeys,a=s===void 0?[]:s,c=dSe(r,["children","propagateSlotProps","slotKeys"]),u=R.useMemo(function(){return hSe(i,a)},[a,i]),f=R.useMemo(function(){return pSe(i,a)},[a,i]),h=R.useMemo(function(){return I1({},c,{slotProps:I1({},o,u)})},[c,u,o]);return R.createElement(t,h,f)});return n},vSe=function(t){var n=R.memo(gSe(t));n.displayName="WithSlots("+(t.displayName||t.name)+")";var r=new Proxy(n,{get:function(o,s,a){var c;if(s in o||typeof s=="symbol"||!mSe(s))return Reflect.get(o,s,a);var u=((c=Reflect.get(o,"defaultProps"))==null?void 0:c.slotKeys)||[],f=Reflect.get(o,s);if(!f){var h=function(){return null};h.displayName=s,Reflect.set(o,s,h)}return Reflect.set(o,"defaultProps",I1({},o.defaultProps,{slotKeys:[].concat(u,[s])})),Reflect.get(o,s,a)}});return r};function rj(){const e=Dn();return dye(e.breakpoints.down("sm"))}const ySe=e=>e?48:36,bSe=8;function xSe({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Option"}){const o=rj(),s=te.max([te.findIndex(t,{value:n}),0])??0;return C.jsx(rm,{variant:"popover",children:a=>C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:i,children:C.jsx("span",{children:e==null?void 0:e(Qk(a))})}),C.jsx(nm,{...$w(a),anchorOrigin:{horizontal:"center",vertical:-ySe(o)*s-bSe},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:c,label:u,disabled:f})=>C.jsx(Ru,{disabled:f,value:c,selected:c===n,onClick:()=>{a.close(),r==null||r(c)},children:u},c))})]})})}function Fx(e){const{placeholder:t,value:n,items:r=[],onChange:i}=e;return C.jsx(Ew,{sx:{minWidth:120},select:!0,label:t,value:n,variant:"filled",...e,onChange:o=>i==null?void 0:i(o.target.value),children:te.map(r,o=>C.jsx(Ru,{value:o.value,children:o.label},o.value))})}function nf({children:e,icon:t,showArrow:n,...r}){return C.jsx(Nz,{...r,startIcon:t,endIcon:n&&C.jsx(L1e,{sx:{ml:-.5,color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1}}),children:C.jsx(ht,{sx:{color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1},children:e})})}function Gs({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,disabled:s,ButtonProps:a}){const c=te.find(r,{id:t});return C.jsx(xSe,{placeholder:te.startCase(e),trigger:u=>C.jsx(nf,{...u,...a,disabled:!(r!=null&&r.length)||s,icon:i,showArrow:o,children:(c==null?void 0:c.name)??e}),items:te.map(r,({id:u,name:f,description:h,hidden:p})=>({value:u,label:C.jsxs(C.Fragment,{children:[C.jsx(jt,{children:f}),C.jsx(ai,{}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:h})]}),disabled:p})),value:c==null?void 0:c.id,onChange:n})}const FJ=[{url:"https://cdn.jsdelivr.net/gh/path-visualiser/app@adapter-warthog-wasm-dist/warthog-wasm.mjs",transport:"ipc",key:"default-ipc"}],zJ=[{url:"internal://d2-renderer/",key:"d2-renderer",transport:"native"}],Lm=4,wSe={renderer:zJ,remote:FJ,playbackRate:Lm,theme:"dark",acrylic:!0,accentColor:"blue"},[Ju,_Se]=mc({},xwe("settings",wSe)),{common:cVe,...SSe}=mX,ESe=` 0px 8px 18px -1px rgb(0 0 0 / 8%), 0px 10px 48px 0px rgb(0 0 0 / 1%), 0px 20px 96px 0px rgb(0 0 0 / 0.5%) -`,bSe=(e,t)=>I4({palette:{primary:{main:cX[t][e==="dark"?"A100":"500"]},mode:e,background:e==="dark"?{default:"#1c2128",paper:"#22272e"}:{default:"#f6f8fa",paper:"#ffffff"}},typography:{allVariants:{fontFamily:`"Inter", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", - "Droid Sans", "Helvetica Neue", "Arial", sans-serif`},button:{textTransform:"none",fontWeight:400,letterSpacing:0,backgroundColor:"background.paper"}},components:{MuiPopover:{styleOverrides:{paper:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06))"}}},MuiTypography:{styleOverrides:{body1:{fontWeight:400,fontSize:"0.875rem"},overline:{fontWeight:400,textTransform:"none",letterSpacing:0,fontSize:"0.875rem"},h6:{fontWeight:500,letterSpacing:-.4}}}},shadows:["",...ie.times(24,ie.constant(ySe))]});function xSe(){const[{acrylic:e}]=Zu();return e?{backdropFilter:"blur(10px)",background:({palette:t})=>kn(t.background.paper,.75)}:{backdropFilter:"blur(0px)",background:({palette:t})=>t.background.paper}}const wSe=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1,height:e=>e.spacing(3),alignSelf:"auto"}}),zn=dSe(({slotProps:e,onChange:t,stack:n})=>{var i,o,s,a;const r=xSe();return C.jsxs(En,{vertical:!0,children:[C.jsx(En,{sx:{position:"absolute",top:0,left:0,width:"100%"},children:C.jsx(zp,{in:!0,children:C.jsx(mt,{sx:{width:"100%",height:"100%",bgcolor:"background.paper"},children:(i=e.Content)==null?void 0:i.children})})}),C.jsxs(En,{sx:{height:c=>c.spacing(6)},children:[C.jsx(En,{sx:{p:0,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,...r},children:C.jsx(Aw,{x:!0,children:C.jsxs(En,{sx:{width:"max-content",height:c=>c.spacing(6),alignItems:"center",p:1},children:[C.jsx(Ws,{showArrow:!0,label:"Page",onChange:c=>t==null?void 0:t({...n,type:c}),icon:(o=r4[n.type])==null?void 0:o.icon,value:n==null?void 0:n.type,items:ie.values(r4)}),((s=e.Options)==null?void 0:s.children)&&C.jsxs(C.Fragment,{children:[wSe,e.Options.children]})]})})}),C.jsx(ai,{sx:{mx:"auto"}}),(a=e.Extras)==null?void 0:a.children]})]})}),DJ=""+new URL("logo512-23eace97.png",import.meta.url).href,m3="Visualiser",_Se="1.0.5",SSe="1.0.5; mid October 2023",ESe="https://github.com/path-visualiser/app",CSe="https://github.com/path-visualiser/app/blob/master/docs",TSe=[{name:"Dr Daniel Harabor",email:"daniel.harabor@monash.edu"},{name:"Dr Michael Wybrow",email:"michael.wybrow@monash.edu"},{name:"Karan Batta",email:"krnbatta@gmail.com"},{name:"Jay Wingate",email:"jaypeterwingate@gmail.com"},{name:"Kevin Zheng",email:"kzhe0012@student.monash.edu"},{name:"Leo Whitehead",email:"leo@whiteheadsoftware.dev"},{name:"Can Wang",email:"camwang@outlook.com"},{name:"Rory Tobin-Underwood",email:"rorytu@gmail.com"}];function kSe(){const{controls:e,onChange:t,state:n}=bf();function r(i,o){return C.jsxs(mt,{sx:{pt:2},children:[C.jsx(Xt,{variant:"overline",color:"text.secondary",children:i}),C.jsx(Xt,{variant:"body2",children:o})]})}return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsxs(En,{children:[" ",C.jsx(Aw,{y:!0,children:C.jsxs(mt,{sx:{p:2},children:[C.jsx(mt,{sx:{pt:6,pb:2},children:C.jsx("img",{src:DJ,height:"64"})}),C.jsx(Xt,{variant:"h6",children:m3}),r("Build Info",C.jsx(C.Fragment,{children:SSe})),r("About this App",C.jsxs(C.Fragment,{children:[m3," is a visualising debugging tool for pathfinding search. It can be used to visualise progression of search and debug pathfinding algorithms. It can handle range of different types of algorithms (demos are provided in the home page). This tool is highly customizable and provide flexibility to visualise any algorithm trace that you can augment using our docs."]})),r("Team",C.jsxs(C.Fragment,{children:["Our team is made up of present/past Monash students and Professors Dr Daniel Harabor:",C.jsx(Vg,{sx:{mx:-2},children:TSe.map(({name:i,email:o},s)=>C.jsxs(e3,{href:`mailto:${o}`,children:[C.jsx(o0e,{children:C.jsx(Hme,{children:ie.head(i)})}),C.jsx(rc,{primary:i,secondary:o})]},s))})]})),r("Resources",C.jsx(C.Fragment,{children:C.jsx(Vg,{sx:{mx:-2},children:C.jsxs(e3,{target:"_blank",href:"https://github.com/path-visualiser",children:[C.jsx(Wd,{children:C.jsx(E1e,{})}),C.jsx(rc,{primary:"Repository",secondary:"https://github.com/path-visualiser"})]})})}))]})})]})}),C.jsx(zn.Extras,{children:e})]})}const NJ=P.createContext(null);function ASe(){const[e,t]=P.useState(null);return P.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function BJ(e){const{children:t,value:n}=e,r=ASe(),i=P.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return C.jsx(NJ.Provider,{value:i,children:t})}function $J(){return P.useContext(NJ)}function FJ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function zJ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const ISe=["children"],RSe=P.forwardRef(function(t,n){const{children:r}=t,i=Ne(t,ISe),o=$J();if(o===null)throw new TypeError("No TabContext provided");const s=P.Children.map(r,a=>P.isValidElement(a)?P.cloneElement(a,{"aria-controls":FJ(o,a.props.value),id:zJ(o,a.props.value)}):null);return C.jsx(i1e,$({},i,{ref:n,value:o.value,children:s}))}),jJ=RSe;function PSe(e){return Ct("MuiTabPanel",e)}It("MuiTabPanel",["root"]);const OSe=["children","className","value"],MSe=e=>{const{classes:t}=e;return At({root:["root"]},PSe,t)},LSe=Ce("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),DSe=P.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabPanel"}),{children:i,className:o,value:s}=r,a=Ne(r,OSe),c=$({},r),u=MSe(c),f=$J();if(f===null)throw new TypeError("No TabContext provided");const h=FJ(f,s),p=zJ(f,s);return C.jsx(LSe,$({"aria-labelledby":p,className:Ue(u.root,o),hidden:s!==f.value,id:h,ref:n,role:"tabpanel",ownerState:c},a,{children:s===f.value&&i}))}),rg=DSe;var UJ={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(UJ);var rj=UJ.exports;function g3({label:e=C.jsx(C.Fragment,{}),...t}){return C.jsx($ve,{control:C.jsx(qg,{defaultChecked:!0,...t}),label:e})}function NSe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cW(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function $Se(e,t){if(e==null)return{};var n=BSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FSe(e,t){return zSe(e)||jSe(e,t)||USe(e,t)||HSe()}function zSe(e){if(Array.isArray(e))return e}function jSe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function USe(e,t){if(e){if(typeof e=="string")return uW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uW(e,t)}}function uW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),c=0;c1&&arguments[1]!==void 0?arguments[1]:{};U_.initial(e),U_.handler(t);var n={current:e},r=lx(rEe)(n,t),i=lx(nEe)(n),o=lx(U_.changes)(e),s=lx(tEe)(n);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return U_.selector(u),u(n.current)}function c(u){GSe(r,i,o,s)(u)}return[a,c]}function tEe(e,t){return P1(t)?t(e.current):t}function nEe(e,t){return e.current=fW(fW({},e.current),t),t}function rEe(e,t,n){return P1(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var iEe={create:eEe},oEe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};function sEe(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),c=0;cR4({palette:{primary:{main:mX[t][e==="dark"?"A100":"A700"]},mode:e,background:e==="dark"?{default:"#1c2128",paper:"#22272e"}:{default:"#f6f8fa",paper:"#ffffff"}},typography:{allVariants:{fontFamily:fW},button:{textTransform:"none",fontWeight:400,letterSpacing:0,backgroundColor:"background.paper"}},components:{MuiPopover:{styleOverrides:{paper:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06))"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundImage:"linear-gradient(#1c2128, #1c2128)",fontFamily:fW}}},MuiTypography:{styleOverrides:{body1:{fontWeight:400,fontSize:"0.875rem"},overline:{fontWeight:400,textTransform:"none",letterSpacing:0,fontSize:"0.875rem"},h6:{fontWeight:500,letterSpacing:-.4}}}},shadows:["",...te.times(24,te.constant(ESe))]});function jJ(){const[{acrylic:e}]=Ju();return e?{backdropFilter:"blur(10px)",background:({palette:t})=>kn(t.background.paper,.75)}:{backdropFilter:"blur(0px)",background:({palette:t})=>t.background.paper}}const TSe=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1,height:e=>e.spacing(3),alignSelf:"auto"}}),zn=vSe(({slotProps:e,onChange:t,stack:n})=>{var i,o,s,a;const r=jJ();return C.jsxs(En,{vertical:!0,children:[C.jsx(En,{sx:{position:"absolute",top:0,left:0,width:"100%"},children:C.jsx(jp,{in:!0,children:C.jsx(ht,{sx:{width:"100%",height:"100%",bgcolor:"background.paper"},children:(i=e.Content)==null?void 0:i.children})})}),C.jsxs(En,{sx:{height:c=>c.spacing(6)},children:[C.jsx(En,{sx:{p:0,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,...r},children:C.jsx(Aw,{x:!0,children:C.jsxs(En,{sx:{width:"max-content",height:c=>c.spacing(6),alignItems:"center",p:1},children:[C.jsx(Gs,{showArrow:!0,label:"Page",onChange:c=>t==null?void 0:t({...n,type:c}),icon:(o=i4[n.type])==null?void 0:o.icon,value:n==null?void 0:n.type,items:te.values(i4)}),((s=e.Options)==null?void 0:s.children)&&C.jsxs(C.Fragment,{children:[TSe,e.Options.children]})]})})}),C.jsx(ai,{sx:{mx:"auto"}}),(a=e.Extras)==null?void 0:a.children]})]})}),UJ=""+new URL("logo512-23eace97.png",import.meta.url).href,g3="Visualiser",kSe="1.0.5",ASe="1.0.5; mid October 2023",ISe="https://github.com/path-visualiser/app",RSe="https://github.com/path-visualiser/app/blob/master/docs",PSe=[{name:"Dr Daniel Harabor",email:"daniel.harabor@monash.edu"},{name:"Dr Michael Wybrow",email:"michael.wybrow@monash.edu"},{name:"Karan Batta",email:"krnbatta@gmail.com"},{name:"Jay Wingate",email:"jaypeterwingate@gmail.com"},{name:"Kevin Zheng",email:"kzhe0012@student.monash.edu"},{name:"Leo Whitehead",email:"leo@whiteheadsoftware.dev"},{name:"Can Wang",email:"camwang@outlook.com"},{name:"Rory Tobin-Underwood",email:"rorytu@gmail.com"}];function OSe(){const{controls:e,onChange:t,state:n}=bf();function r(i,o){return C.jsxs(ht,{sx:{pt:2},children:[C.jsx(jt,{variant:"overline",color:"text.secondary",children:i}),C.jsx(jt,{variant:"body2",children:o})]})}return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsxs(En,{children:[" ",C.jsx(Aw,{y:!0,children:C.jsxs(ht,{sx:{p:2},children:[C.jsx(ht,{sx:{pt:6,pb:2},children:C.jsx("img",{src:UJ,height:"64"})}),C.jsx(jt,{variant:"h6",children:g3}),r("Build Info",C.jsx(C.Fragment,{children:ASe})),r("About this App",C.jsxs(C.Fragment,{children:[g3," is a visualising debugging tool for pathfinding search. It can be used to visualise progression of search and debug pathfinding algorithms. It can handle range of different types of algorithms (demos are provided in the home page). This tool is highly customizable and provide flexibility to visualise any algorithm trace that you can augment using our docs."]})),r("Team",C.jsxs(C.Fragment,{children:["Our team is made up of present/past Monash students and Professors Dr Daniel Harabor:",C.jsx(Xg,{sx:{mx:-2},children:PSe.map(({name:i,email:o},s)=>C.jsxs(t3,{href:`mailto:${o}`,children:[C.jsx(f0e,{children:C.jsx(Kme,{children:te.head(i)})}),C.jsx(rc,{primary:i,secondary:o})]},s))})]})),r("Resources",C.jsx(C.Fragment,{children:C.jsx(Xg,{sx:{mx:-2},children:C.jsxs(t3,{target:"_blank",href:"https://github.com/path-visualiser",children:[C.jsx(Wd,{children:C.jsx(P1e,{})}),C.jsx(rc,{primary:"Repository",secondary:"https://github.com/path-visualiser"})]})})}))]})})]})}),C.jsx(zn.Extras,{children:e})]})}const HJ=R.createContext(null);function MSe(){const[e,t]=R.useState(null);return R.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function WJ(e){const{children:t,value:n}=e,r=MSe(),i=R.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return C.jsx(HJ.Provider,{value:i,children:t})}function GJ(){return R.useContext(HJ)}function VJ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function qJ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const LSe=["children"],DSe=R.forwardRef(function(t,n){const{children:r}=t,i=Ne(t,LSe),o=GJ();if(o===null)throw new TypeError("No TabContext provided");const s=R.Children.map(r,a=>R.isValidElement(a)?R.cloneElement(a,{"aria-controls":VJ(o,a.props.value),id:qJ(o,a.props.value)}):null);return C.jsx(d1e,$({},i,{ref:n,value:o.value,children:s}))}),XJ=DSe;function NSe(e){return Ct("MuiTabPanel",e)}It("MuiTabPanel",["root"]);const BSe=["children","className","value"],$Se=e=>{const{classes:t}=e;return At({root:["root"]},NSe,t)},FSe=Ce("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),zSe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabPanel"}),{children:i,className:o,value:s}=r,a=Ne(r,BSe),c=$({},r),u=$Se(c),f=GJ();if(f===null)throw new TypeError("No TabContext provided");const h=VJ(f,s),p=qJ(f,s);return C.jsx(FSe,$({"aria-labelledby":p,className:Ue(u.root,o),hidden:s!==f.value,id:h,ref:n,role:"tabpanel",ownerState:c},a,{children:s===f.value&&i}))}),sg=zSe;var YJ={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(YJ);var ij=YJ.exports;function v3({label:e=C.jsx(C.Fragment,{}),...t}){return C.jsx(Gve,{control:C.jsx(Yg,{defaultChecked:!0,...t}),label:e})}function jSe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pW(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function HSe(e,t){if(e==null)return{};var n=USe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WSe(e,t){return GSe(e)||VSe(e,t)||qSe(e,t)||XSe()}function GSe(e){if(Array.isArray(e))return e}function VSe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function qSe(e,t){if(e){if(typeof e=="string")return mW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mW(e,t)}}function mW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),c=0;c1&&arguments[1]!==void 0?arguments[1]:{};H_.initial(e),H_.handler(t);var n={current:e},r=ax(lEe)(n,t),i=ax(aEe)(n),o=ax(H_.changes)(e),s=ax(sEe)(n);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return H_.selector(u),u(n.current)}function c(u){KSe(r,i,o,s)(u)}return[a,c]}function sEe(e,t){return R1(t)?t(e.current):t}function aEe(e,t){return e.current=vW(vW({},e.current),t),t}function lEe(e,t,n){return R1(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var cEe={create:oEe},uEe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};function dEe(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),c=0;c{r.current=!1}:e,t)}var Ds=PEe;function Ux(){}function ig(e,t,n,r){return OEe(e,r)||MEe(e,t,n,r)}function OEe(e,t){return e.editor.getModel(KJ(e,t))}function MEe(e,t,n,r){return e.editor.createModel(t,n,r?KJ(e,r):void 0)}function KJ(e,t){return e.Uri.parse(t)}function LEe({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:c=!1,theme:u="light",loading:f="Loading...",options:h={},height:p="100%",width:g="100%",className:v,wrapperProps:y={},beforeMount:S=Ux,onMount:w=Ux}){let[b,x]=P.useState(!1),[E,I]=P.useState(!0),A=P.useRef(null),k=P.useRef(null),O=P.useRef(null),D=P.useRef(w),N=P.useRef(S),H=P.useRef(!1);YJ(()=>{let F=qJ.init();return F.then(j=>(k.current=j)&&I(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>A.current?L():F.cancel()}),Ds(()=>{if(A.current&&k.current){let F=A.current.getOriginalEditor(),j=ig(k.current,e||"",r||n||"text",o||"");j!==F.getModel()&&F.setModel(j)}},[o],b),Ds(()=>{if(A.current&&k.current){let F=A.current.getModifiedEditor(),j=ig(k.current,t||"",i||n||"text",s||"");j!==F.getModel()&&F.setModel(j)}},[s],b),Ds(()=>{let F=A.current.getModifiedEditor();F.getOption(k.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),Ds(()=>{var F,j;(j=(F=A.current)==null?void 0:F.getModel())==null||j.original.setValue(e||"")},[e],b),Ds(()=>{let{original:F,modified:j}=A.current.getModel();k.current.editor.setModelLanguage(F,r||n||"text"),k.current.editor.setModelLanguage(j,i||n||"text")},[n,r,i],b),Ds(()=>{var F;(F=k.current)==null||F.editor.setTheme(u)},[u],b),Ds(()=>{var F;(F=A.current)==null||F.updateOptions(h)},[h],b);let G=P.useCallback(()=>{var V;if(!k.current)return;N.current(k.current);let F=ig(k.current,e||"",r||n||"text",o||""),j=ig(k.current,t||"",i||n||"text",s||"");(V=A.current)==null||V.setModel({original:F,modified:j})},[n,t,i,e,r,o,s]),z=P.useCallback(()=>{var F;!H.current&&O.current&&(A.current=k.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...h}),G(),(F=k.current)==null||F.editor.setTheme(u),x(!0),H.current=!0)},[h,u,G]);P.useEffect(()=>{b&&D.current(A.current,k.current)},[b]),P.useEffect(()=>{!E&&!b&&z()},[E,b,z]);function L(){var j,V,W,K;let F=(j=A.current)==null?void 0:j.getModel();a||((V=F==null?void 0:F.original)==null||V.dispose()),c||((W=F==null?void 0:F.modified)==null||W.dispose()),(K=A.current)==null||K.dispose()}return de.createElement(XJ,{width:g,height:p,isEditorReady:b,loading:f,_ref:O,className:v,wrapperProps:y})}var DEe=LEe;P.memo(DEe);function NEe(e){let t=P.useRef();return P.useEffect(()=>{t.current=e},[e]),t.current}var BEe=NEe,H_=new Map;function $Ee({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s="light",line:a,loading:c="Loading...",options:u={},overrideServices:f={},saveViewState:h=!0,keepCurrentModel:p=!1,width:g="100%",height:v="100%",className:y,wrapperProps:S={},beforeMount:w=Ux,onMount:b=Ux,onChange:x,onValidate:E=Ux}){let[I,A]=P.useState(!1),[k,O]=P.useState(!0),D=P.useRef(null),N=P.useRef(null),H=P.useRef(null),G=P.useRef(b),z=P.useRef(w),L=P.useRef(),F=P.useRef(r),j=BEe(o),V=P.useRef(!1),W=P.useRef(!1);YJ(()=>{let Q=qJ.init();return Q.then(re=>(D.current=re)&&O(!1)).catch(re=>(re==null?void 0:re.type)!=="cancelation"&&console.error("Monaco initialization: error:",re)),()=>N.current?X():Q.cancel()}),Ds(()=>{var re,ce,ue,se;let Q=ig(D.current,e||r||"",t||i||"",o||n||"");Q!==((re=N.current)==null?void 0:re.getModel())&&(h&&H_.set(j,(ce=N.current)==null?void 0:ce.saveViewState()),(ue=N.current)==null||ue.setModel(Q),h&&((se=N.current)==null||se.restoreViewState(H_.get(o))))},[o],I),Ds(()=>{var Q;(Q=N.current)==null||Q.updateOptions(u)},[u],I),Ds(()=>{!N.current||r===void 0||(N.current.getOption(D.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(W.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),W.current=!1))},[r],I),Ds(()=>{var re,ce;let Q=(re=N.current)==null?void 0:re.getModel();Q&&i&&((ce=D.current)==null||ce.editor.setModelLanguage(Q,i))},[i],I),Ds(()=>{var Q;a!==void 0&&((Q=N.current)==null||Q.revealLine(a))},[a],I),Ds(()=>{var Q;(Q=D.current)==null||Q.editor.setTheme(s)},[s],I);let K=P.useCallback(()=>{var Q;if(!(!H.current||!D.current)&&!V.current){z.current(D.current);let re=o||n,ce=ig(D.current,r||e||"",t||i||"",re||"");N.current=(Q=D.current)==null?void 0:Q.editor.create(H.current,{model:ce,automaticLayout:!0,...u},f),h&&N.current.restoreViewState(H_.get(re)),D.current.editor.setTheme(s),A(!0),V.current=!0}},[e,t,n,r,i,o,u,f,h,s]);P.useEffect(()=>{I&&G.current(N.current,D.current)},[I]),P.useEffect(()=>{!k&&!I&&K()},[k,I,K]),F.current=r,P.useEffect(()=>{var Q,re;I&&x&&((Q=L.current)==null||Q.dispose(),L.current=(re=N.current)==null?void 0:re.onDidChangeModelContent(ce=>{W.current||x(N.current.getValue(),ce)}))},[I,x]),P.useEffect(()=>{if(I){let Q=D.current.editor.onDidChangeMarkers(re=>{var ue;let ce=(ue=N.current.getModel())==null?void 0:ue.uri;if(ce&&re.find(se=>se.path===ce.path)){let se=D.current.editor.getModelMarkers({resource:ce});E==null||E(se)}});return()=>{Q==null||Q.dispose()}}return()=>{}},[I,E]);function X(){var Q,re;(Q=L.current)==null||Q.dispose(),p?h&&H_.set(o,N.current.saveViewState()):(re=N.current.getModel())==null||re.dispose(),N.current.dispose()}return de.createElement(XJ,{width:g,height:v,isEditorReady:I,loading:c,_ref:H,className:y,wrapperProps:S})}var FEe=$Ee,zEe=P.memo(FEe),QJ=zEe;let Ta;typeof window<"u"?Ta=window:typeof self<"u"?Ta=self:Ta=global;let v3=null,y3=null;const pW=20,aN=Ta.clearTimeout,mW=Ta.setTimeout,lN=Ta.cancelAnimationFrame||Ta.mozCancelAnimationFrame||Ta.webkitCancelAnimationFrame,gW=Ta.requestAnimationFrame||Ta.mozRequestAnimationFrame||Ta.webkitRequestAnimationFrame;lN==null||gW==null?(v3=aN,y3=function(t){return mW(t,pW)}):(v3=function([t,n]){lN(t),aN(n)},y3=function(t){const n=gW(function(){aN(r),t()}),r=mW(function(){lN(n),t()},pW);return[n,r]});function jEe(e){let t,n,r,i,o,s,a;const c=typeof document<"u"&&document.attachEvent;if(!c){s=function(w){const b=w.__resizeTriggers__,x=b.firstElementChild,E=b.lastElementChild,I=x.firstElementChild;E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight,I.style.width=x.offsetWidth+1+"px",I.style.height=x.offsetHeight+1+"px",x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight},o=function(w){return w.offsetWidth!==w.__resizeLast__.width||w.offsetHeight!==w.__resizeLast__.height},a=function(w){if(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)return;const b=this;s(this),this.__resizeRAF__&&v3(this.__resizeRAF__),this.__resizeRAF__=y3(function(){o(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach(function(I){I.call(b,w)}))})};let p=!1,g="";r="animationstart";const v="Webkit Moz O ms".split(" ");let y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const w=document.createElement("fakeelement");if(w.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=p.head||p.getElementsByTagName("head")[0],y=p.createElement("style");y.id="detectElementResize",y.type="text/css",e!=null&&y.setAttribute("nonce",e),y.styleSheet?y.styleSheet.cssText=g:y.appendChild(p.createTextNode(g)),v.appendChild(y)}};return{addResizeListener:function(p,g){if(c)p.attachEvent("onresize",g);else{if(!p.__resizeTriggers__){const v=p.ownerDocument,y=Ta.getComputedStyle(p);y&&y.position==="static"&&(p.style.position="relative"),u(v),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const S=v.createElement("div");S.className="expand-trigger",S.appendChild(v.createElement("div"));const w=v.createElement("div");w.className="contract-trigger",p.__resizeTriggers__.appendChild(S),p.__resizeTriggers__.appendChild(w),p.appendChild(p.__resizeTriggers__),s(p),p.addEventListener("scroll",a,!0),r&&(p.__resizeTriggers__.__animationListener__=function(x){x.animationName===n&&s(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(g)}},removeResizeListener:function(p,g){if(c)p.detachEvent("onresize",g);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(g),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",a,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}class Jk extends P.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){var o,s,a,c;const u=window.getComputedStyle(this._parentNode)||{},f=parseFloat((o=u.paddingLeft)!==null&&o!==void 0?o:"0"),h=parseFloat((s=u.paddingRight)!==null&&s!==void 0?s:"0"),p=parseFloat((a=u.paddingTop)!==null&&a!==void 0?a:"0"),g=parseFloat((c=u.paddingBottom)!==null&&c!==void 0?c:"0"),v=this._parentNode.getBoundingClientRect(),y=v.height-p-g,S=v.width-f-h,w=this._parentNode.offsetHeight-p-g,b=this._parentNode.offsetWidth-f-h;(!n&&(this.state.height!==w||this.state.scaledHeight!==y)||!r&&(this.state.width!==b||this.state.scaledWidth!==S))&&(this.setState({height:w,width:b,scaledHeight:y,scaledWidth:S}),typeof i=="function"&&i({height:w,scaledHeight:y,scaledWidth:S,width:b}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=jEe(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,nonce:s,onResize:a,style:c={},tagName:u="div",...f}=this.props,{height:h,scaledHeight:p,scaledWidth:g,width:v}=this.state,y={overflow:"visible"},S={};let w=!1;return i||(h===0&&(w=!0),y.height=0,S.height=h,S.scaledHeight=p),o||(v===0&&(w=!0),y.width=0,S.width=v,S.scaledWidth=g),P.createElement(u,{ref:this._setRef,style:{...y,...c},...f},!w&&t(S))}}function UEe({returnType:e,params:t}){return`@type {(${ie.join(ie.map(t,n=>`${n.name}: ${n.type}`),", ")}) => ${e}}`}function HEe(e){const[t,n,r]=["/**"," * "," */"],i=ie.map(ie.chunk(ie.split(e.description," "),9),o=>ie.join(o," "));return ie.join([t,...ie.map(i,o=>`${n}${o}`),`${n}${UEe(e)}`,r],` -`)}function WEe({name:e,params:t,defaultReturnValue:n}){return ie.join([`function ${e}(${ie.join(ie.map(t,"name"),", ")}) {`,` return ${JSON.stringify(n)};`,"}"],` -`)}function GEe(e){return ie.join(ie.map(e,t=>ie.join([HEe(t),WEe(t)],` + `},yW=dEe(mEe)(KJ),gEe={config:hEe},vEe=function(){for(var t=arguments.length,n=new Array(t),r=0;r{r.current=!1}:e,t)}var Ns=NEe;function zx(){}function ag(e,t,n,r){return BEe(e,r)||$Ee(e,t,n,r)}function BEe(e,t){return e.editor.getModel(rZ(e,t))}function $Ee(e,t,n,r){return e.editor.createModel(t,n,r?rZ(e,r):void 0)}function rZ(e,t){return e.Uri.parse(t)}function FEe({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:c=!1,theme:u="light",loading:f="Loading...",options:h={},height:p="100%",width:g="100%",className:v,wrapperProps:y={},beforeMount:S=zx,onMount:w=zx}){let[b,x]=R.useState(!1),[E,I]=R.useState(!0),A=R.useRef(null),k=R.useRef(null),O=R.useRef(null),D=R.useRef(w),N=R.useRef(S),H=R.useRef(!1);nZ(()=>{let F=eZ.init();return F.then(j=>(k.current=j)&&I(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>A.current?L():F.cancel()}),Ns(()=>{if(A.current&&k.current){let F=A.current.getOriginalEditor(),j=ag(k.current,e||"",r||n||"text",o||"");j!==F.getModel()&&F.setModel(j)}},[o],b),Ns(()=>{if(A.current&&k.current){let F=A.current.getModifiedEditor(),j=ag(k.current,t||"",i||n||"text",s||"");j!==F.getModel()&&F.setModel(j)}},[s],b),Ns(()=>{let F=A.current.getModifiedEditor();F.getOption(k.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),Ns(()=>{var F,j;(j=(F=A.current)==null?void 0:F.getModel())==null||j.original.setValue(e||"")},[e],b),Ns(()=>{let{original:F,modified:j}=A.current.getModel();k.current.editor.setModelLanguage(F,r||n||"text"),k.current.editor.setModelLanguage(j,i||n||"text")},[n,r,i],b),Ns(()=>{var F;(F=k.current)==null||F.editor.setTheme(u)},[u],b),Ns(()=>{var F;(F=A.current)==null||F.updateOptions(h)},[h],b);let G=R.useCallback(()=>{var V;if(!k.current)return;N.current(k.current);let F=ag(k.current,e||"",r||n||"text",o||""),j=ag(k.current,t||"",i||n||"text",s||"");(V=A.current)==null||V.setModel({original:F,modified:j})},[n,t,i,e,r,o,s]),z=R.useCallback(()=>{var F;!H.current&&O.current&&(A.current=k.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...h}),G(),(F=k.current)==null||F.editor.setTheme(u),x(!0),H.current=!0)},[h,u,G]);R.useEffect(()=>{b&&D.current(A.current,k.current)},[b]),R.useEffect(()=>{!E&&!b&&z()},[E,b,z]);function L(){var j,V,W,K;let F=(j=A.current)==null?void 0:j.getModel();a||((V=F==null?void 0:F.original)==null||V.dispose()),c||((W=F==null?void 0:F.modified)==null||W.dispose()),(K=A.current)==null||K.dispose()}return de.createElement(tZ,{width:g,height:p,isEditorReady:b,loading:f,_ref:O,className:v,wrapperProps:y})}var zEe=FEe;R.memo(zEe);function jEe(e){let t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}var UEe=jEe,W_=new Map;function HEe({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s="light",line:a,loading:c="Loading...",options:u={},overrideServices:f={},saveViewState:h=!0,keepCurrentModel:p=!1,width:g="100%",height:v="100%",className:y,wrapperProps:S={},beforeMount:w=zx,onMount:b=zx,onChange:x,onValidate:E=zx}){let[I,A]=R.useState(!1),[k,O]=R.useState(!0),D=R.useRef(null),N=R.useRef(null),H=R.useRef(null),G=R.useRef(b),z=R.useRef(w),L=R.useRef(),F=R.useRef(r),j=UEe(o),V=R.useRef(!1),W=R.useRef(!1);nZ(()=>{let Q=eZ.init();return Q.then(ie=>(D.current=ie)&&O(!1)).catch(ie=>(ie==null?void 0:ie.type)!=="cancelation"&&console.error("Monaco initialization: error:",ie)),()=>N.current?X():Q.cancel()}),Ns(()=>{var ie,ce,ue,se;let Q=ag(D.current,e||r||"",t||i||"",o||n||"");Q!==((ie=N.current)==null?void 0:ie.getModel())&&(h&&W_.set(j,(ce=N.current)==null?void 0:ce.saveViewState()),(ue=N.current)==null||ue.setModel(Q),h&&((se=N.current)==null||se.restoreViewState(W_.get(o))))},[o],I),Ns(()=>{var Q;(Q=N.current)==null||Q.updateOptions(u)},[u],I),Ns(()=>{!N.current||r===void 0||(N.current.getOption(D.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(W.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),W.current=!1))},[r],I),Ns(()=>{var ie,ce;let Q=(ie=N.current)==null?void 0:ie.getModel();Q&&i&&((ce=D.current)==null||ce.editor.setModelLanguage(Q,i))},[i],I),Ns(()=>{var Q;a!==void 0&&((Q=N.current)==null||Q.revealLine(a))},[a],I),Ns(()=>{var Q;(Q=D.current)==null||Q.editor.setTheme(s)},[s],I);let K=R.useCallback(()=>{var Q;if(!(!H.current||!D.current)&&!V.current){z.current(D.current);let ie=o||n,ce=ag(D.current,r||e||"",t||i||"",ie||"");N.current=(Q=D.current)==null?void 0:Q.editor.create(H.current,{model:ce,automaticLayout:!0,...u},f),h&&N.current.restoreViewState(W_.get(ie)),D.current.editor.setTheme(s),A(!0),V.current=!0}},[e,t,n,r,i,o,u,f,h,s]);R.useEffect(()=>{I&&G.current(N.current,D.current)},[I]),R.useEffect(()=>{!k&&!I&&K()},[k,I,K]),F.current=r,R.useEffect(()=>{var Q,ie;I&&x&&((Q=L.current)==null||Q.dispose(),L.current=(ie=N.current)==null?void 0:ie.onDidChangeModelContent(ce=>{W.current||x(N.current.getValue(),ce)}))},[I,x]),R.useEffect(()=>{if(I){let Q=D.current.editor.onDidChangeMarkers(ie=>{var ue;let ce=(ue=N.current.getModel())==null?void 0:ue.uri;if(ce&&ie.find(se=>se.path===ce.path)){let se=D.current.editor.getModelMarkers({resource:ce});E==null||E(se)}});return()=>{Q==null||Q.dispose()}}return()=>{}},[I,E]);function X(){var Q,ie;(Q=L.current)==null||Q.dispose(),p?h&&W_.set(o,N.current.saveViewState()):(ie=N.current.getModel())==null||ie.dispose(),N.current.dispose()}return de.createElement(tZ,{width:g,height:v,isEditorReady:I,loading:c,_ref:H,className:y,wrapperProps:S})}var WEe=HEe,GEe=R.memo(WEe),iZ=GEe;let ka;typeof window<"u"?ka=window:typeof self<"u"?ka=self:ka=global;let y3=null,b3=null;const bW=20,lN=ka.clearTimeout,xW=ka.setTimeout,cN=ka.cancelAnimationFrame||ka.mozCancelAnimationFrame||ka.webkitCancelAnimationFrame,wW=ka.requestAnimationFrame||ka.mozRequestAnimationFrame||ka.webkitRequestAnimationFrame;cN==null||wW==null?(y3=lN,b3=function(t){return xW(t,bW)}):(y3=function([t,n]){cN(t),lN(n)},b3=function(t){const n=wW(function(){lN(r),t()}),r=xW(function(){cN(n),t()},bW);return[n,r]});function VEe(e){let t,n,r,i,o,s,a;const c=typeof document<"u"&&document.attachEvent;if(!c){s=function(w){const b=w.__resizeTriggers__,x=b.firstElementChild,E=b.lastElementChild,I=x.firstElementChild;E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight,I.style.width=x.offsetWidth+1+"px",I.style.height=x.offsetHeight+1+"px",x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight},o=function(w){return w.offsetWidth!==w.__resizeLast__.width||w.offsetHeight!==w.__resizeLast__.height},a=function(w){if(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)return;const b=this;s(this),this.__resizeRAF__&&y3(this.__resizeRAF__),this.__resizeRAF__=b3(function(){o(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach(function(I){I.call(b,w)}))})};let p=!1,g="";r="animationstart";const v="Webkit Moz O ms".split(" ");let y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const w=document.createElement("fakeelement");if(w.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=p.head||p.getElementsByTagName("head")[0],y=p.createElement("style");y.id="detectElementResize",y.type="text/css",e!=null&&y.setAttribute("nonce",e),y.styleSheet?y.styleSheet.cssText=g:y.appendChild(p.createTextNode(g)),v.appendChild(y)}};return{addResizeListener:function(p,g){if(c)p.attachEvent("onresize",g);else{if(!p.__resizeTriggers__){const v=p.ownerDocument,y=ka.getComputedStyle(p);y&&y.position==="static"&&(p.style.position="relative"),u(v),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const S=v.createElement("div");S.className="expand-trigger",S.appendChild(v.createElement("div"));const w=v.createElement("div");w.className="contract-trigger",p.__resizeTriggers__.appendChild(S),p.__resizeTriggers__.appendChild(w),p.appendChild(p.__resizeTriggers__),s(p),p.addEventListener("scroll",a,!0),r&&(p.__resizeTriggers__.__animationListener__=function(x){x.animationName===n&&s(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(g)}},removeResizeListener:function(p,g){if(c)p.detachEvent("onresize",g);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(g),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",a,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}class Zk extends R.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){var o,s,a,c;const u=window.getComputedStyle(this._parentNode)||{},f=parseFloat((o=u.paddingLeft)!==null&&o!==void 0?o:"0"),h=parseFloat((s=u.paddingRight)!==null&&s!==void 0?s:"0"),p=parseFloat((a=u.paddingTop)!==null&&a!==void 0?a:"0"),g=parseFloat((c=u.paddingBottom)!==null&&c!==void 0?c:"0"),v=this._parentNode.getBoundingClientRect(),y=v.height-p-g,S=v.width-f-h,w=this._parentNode.offsetHeight-p-g,b=this._parentNode.offsetWidth-f-h;(!n&&(this.state.height!==w||this.state.scaledHeight!==y)||!r&&(this.state.width!==b||this.state.scaledWidth!==S))&&(this.setState({height:w,width:b,scaledHeight:y,scaledWidth:S}),typeof i=="function"&&i({height:w,scaledHeight:y,scaledWidth:S,width:b}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=VEe(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,nonce:s,onResize:a,style:c={},tagName:u="div",...f}=this.props,{height:h,scaledHeight:p,scaledWidth:g,width:v}=this.state,y={overflow:"visible"},S={};let w=!1;return i||(h===0&&(w=!0),y.height=0,S.height=h,S.scaledHeight=p),o||(v===0&&(w=!0),y.width=0,S.width=v,S.scaledWidth=g),R.createElement(u,{ref:this._setRef,style:{...y,...c},...f},!w&&t(S))}}function qEe({returnType:e,params:t}){return`@type {(${te.join(te.map(t,n=>`${n.name}: ${n.type}`),", ")}) => ${e}}`}function XEe(e){const[t,n,r]=["/**"," * "," */"],i=te.map(te.chunk(te.split(e.description," "),9),o=>te.join(o," "));return te.join([t,...te.map(i,o=>`${n}${o}`),`${n}${qEe(e)}`,r],` +`)}function YEe({name:e,params:t,defaultReturnValue:n}){return te.join([`function ${e}(${te.join(te.map(t,"name"),", ")}) {`,` return ${JSON.stringify(n)};`,"}"],` +`)}function KEe(e){return te.join(te.map(e,t=>te.join([XEe(t),YEe(t)],` `)),` -`)}const VEe={name:"shouldBreak",description:"Define in what situations the debugger should break, in addition to the conditions defined in the standard options.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!1,returnType:"boolean"},qEe={name:"shouldRender",description:"Define which objects the renderer should display.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!0,returnType:"boolean"},XEe={shouldRender:qEe,shouldBreak:VEe},[Zk,YEe]=Qu({code:GEe(ie.values(XEe))}),KEe=2500;function QEe(){const[{code:e},t]=Zk(),n=Ln();return C.jsx(En,{height:"100%",overflow:"hidden",children:C.jsx(Jk,{children:({width:r,height:i})=>C.jsx(QJ,{theme:n.palette.mode==="dark"?"vs-dark":"light",width:r,loading:C.jsx(Fk,{variant:"indeterminate"}),height:i,language:"javascript",defaultValue:e,onChange:ie.debounce(o=>t(()=>({code:o})),KEe),options:{minimap:{enabled:!1}}})})})}function JEe(e){const t=Ln();return C.jsx(En,{height:"100%",overflow:"hidden",children:C.jsx(Jk,{children:({width:n,height:r})=>C.jsx(QJ,{theme:t.palette.mode==="dark"?"vs-dark":"light",width:n,loading:C.jsx(Fk,{variant:"indeterminate"}),height:r,language:"javascript",...e,options:{minimap:{enabled:!1},...e.options}})})})}function O1(e){"@babel/helpers - typeof";return O1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O1(e)}function ZEe(e,t){if(O1(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(O1(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eCe(e){var t=ZEe(e,"string");return O1(t)==="symbol"?t:String(t)}function tCe(e,t,n){return t=eCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yW(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Vo(1));return n(JJ)(e,t)}if(typeof e!="function")throw new Error(Vo(2));var i=e,o=t,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function f(){if(c)throw new Error(Vo(3));return o}function h(y){if(typeof y!="function")throw new Error(Vo(4));if(c)throw new Error(Vo(5));var S=!0;return u(),a.push(y),function(){if(S){if(c)throw new Error(Vo(6));S=!1,u();var b=a.indexOf(y);a.splice(b,1),s=null}}}function p(y){if(!nCe(y))throw new Error(Vo(7));if(typeof y.type>"u")throw new Error(Vo(8));if(c)throw new Error(Vo(9));try{c=!0,o=i(o,y)}finally{c=!1}for(var S=s=a,w=0;w=0;r--){var i=t[r](e);if(i)return i}return function(o,s){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+s.wrappedComponentName+".")}}function NCe(e,t){return e===t}function BCe(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?vCe:n,i=t.mapStateToPropsFactories,o=i===void 0?CCe:i,s=t.mapDispatchToPropsFactories,a=s===void 0?_Ce:s,c=t.mergePropsFactories,u=c===void 0?RCe:c,f=t.selectorFactory,h=f===void 0?LCe:f;return function(g,v,y,S){S===void 0&&(S={});var w=S,b=w.pure,x=b===void 0?!0:b,E=w.areStatesEqual,I=E===void 0?NCe:E,A=w.areOwnPropsEqual,k=A===void 0?uN:A,O=w.areStatePropsEqual,D=O===void 0?uN:O,N=w.areMergedPropsEqual,H=N===void 0?uN:N,G=Ne(w,DCe),z=dN(g,o,"mapStateToProps"),L=dN(v,a,"mapDispatchToProps"),F=dN(y,u,"mergeProps");return r(h,$({methodName:"connect",getDisplayName:function(V){return"Connect("+V+")"},shouldHandleStateChanges:!!g,initMapStateToProps:z,initMapDispatchToProps:L,initMergeProps:F,pure:x,areStatesEqual:I,areOwnPropsEqual:k,areStatePropsEqual:D,areMergedPropsEqual:H},G))}}const oZ=BCe();oCe(xv.unstable_batchedUpdates);function $Ce(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return r.callbacks},r.setCallbacks=function(a){r.callbacks=a},r}var n=t.prototype;return n.componentDidMount=function(){this.unbind=ya(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof RC){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(de.Component),KCe=` +`)}const QEe={name:"shouldBreak",description:"Define in what situations the debugger should break, in addition to the conditions defined in the standard options.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!1,returnType:"boolean"},JEe={name:"shouldRender",description:"Define which objects the renderer should display.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!0,returnType:"boolean"},ZEe={shouldRender:JEe,shouldBreak:QEe},[eA,eCe]=mc({code:KEe(te.values(ZEe)),busy:{}}),tCe=2500;function nCe(){const[{code:e},t]=eA(),n=Dn();return C.jsx(En,{height:"100%",overflow:"hidden",children:C.jsx(Zk,{children:({width:r,height:i})=>C.jsx(iZ,{theme:n.palette.mode==="dark"?"vs-dark":"light",width:r,loading:C.jsx(Sw,{variant:"indeterminate"}),height:i,language:"javascript",defaultValue:e,onChange:te.debounce(o=>t(()=>({code:o})),tCe),options:{minimap:{enabled:!1}}})})})}function rCe(e){const t=Dn();return C.jsx(En,{height:"100%",overflow:"hidden",children:C.jsx(Zk,{children:({width:n,height:r})=>C.jsx(iZ,{theme:t.palette.mode==="dark"?"vs-dark":"light",width:n,loading:C.jsx(Sw,{variant:"indeterminate"}),height:r,language:"javascript",...e,options:{minimap:{enabled:!1},...e.options}})})})}function P1(e){"@babel/helpers - typeof";return P1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P1(e)}function iCe(e,t){if(P1(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(P1(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oCe(e){var t=iCe(e,"string");return P1(t)==="symbol"?t:String(t)}function sCe(e,t,n){return t=oCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SW(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Vo(1));return n(oZ)(e,t)}if(typeof e!="function")throw new Error(Vo(2));var i=e,o=t,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function f(){if(c)throw new Error(Vo(3));return o}function h(y){if(typeof y!="function")throw new Error(Vo(4));if(c)throw new Error(Vo(5));var S=!0;return u(),a.push(y),function(){if(S){if(c)throw new Error(Vo(6));S=!1,u();var b=a.indexOf(y);a.splice(b,1),s=null}}}function p(y){if(!aCe(y))throw new Error(Vo(7));if(typeof y.type>"u")throw new Error(Vo(8));if(c)throw new Error(Vo(9));try{c=!0,o=i(o,y)}finally{c=!1}for(var S=s=a,w=0;w=0;r--){var i=t[r](e);if(i)return i}return function(o,s){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+s.wrappedComponentName+".")}}function jCe(e,t){return e===t}function UCe(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?_Ce:n,i=t.mapStateToPropsFactories,o=i===void 0?RCe:i,s=t.mapDispatchToPropsFactories,a=s===void 0?kCe:s,c=t.mergePropsFactories,u=c===void 0?DCe:c,f=t.selectorFactory,h=f===void 0?FCe:f;return function(g,v,y,S){S===void 0&&(S={});var w=S,b=w.pure,x=b===void 0?!0:b,E=w.areStatesEqual,I=E===void 0?jCe:E,A=w.areOwnPropsEqual,k=A===void 0?dN:A,O=w.areStatePropsEqual,D=O===void 0?dN:O,N=w.areMergedPropsEqual,H=N===void 0?dN:N,G=Ne(w,zCe),z=fN(g,o,"mapStateToProps"),L=fN(v,a,"mapDispatchToProps"),F=fN(y,u,"mergeProps");return r(h,$({methodName:"connect",getDisplayName:function(V){return"Connect("+V+")"},shouldHandleStateChanges:!!g,initMapStateToProps:z,initMapDispatchToProps:L,initMergeProps:F,pure:x,areStatesEqual:I,areOwnPropsEqual:k,areStatePropsEqual:D,areMergedPropsEqual:H},G))}}const fZ=UCe();uCe(_v.unstable_batchedUpdates);function HCe(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return r.callbacks},r.setCallbacks=function(a){r.callbacks=a},r}var n=t.prototype;return n.componentDidMount=function(){this.unbind=ba(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof OC){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(de.Component),tTe=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,PC=function(t){return t+1},QCe=function(t){return` - You have lifted an item in position `+PC(t.source.index)+` -`},uZ=function(t,n){var r=t.droppableId===n.droppableId,i=PC(t.index),o=PC(n.index);return r?` +`,MC=function(t){return t+1},nTe=function(t){return` + You have lifted an item in position `+MC(t.source.index)+` +`},vZ=function(t,n){var r=t.droppableId===n.droppableId,i=MC(t.index),o=MC(n.index);return r?` You have moved the item from position `+i+` to position `+o+` `:` @@ -402,38 +402,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho in list `+t.droppableId+` to list `+n.droppableId+` in position `+o+` - `},dZ=function(t,n,r){var i=n.droppableId===r.droppableId;return i?` + `},yZ=function(t,n,r){var i=n.droppableId===r.droppableId;return i?` The item `+t+` has been combined with `+r.draggableId:` The item `+t+` in list `+n.droppableId+` has been combined with `+r.draggableId+` in list `+r.droppableId+` - `},JCe=function(t){var n=t.destination;if(n)return uZ(t.source,n);var r=t.combine;return r?dZ(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},IW=function(t){return` + `},rTe=function(t){var n=t.destination;if(n)return vZ(t.source,n);var r=t.combine;return r?yZ(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},LW=function(t){return` The item has returned to its starting position - of `+PC(t.index)+` -`},ZCe=function(t){if(t.reason==="CANCEL")return` + of `+MC(t.index)+` +`},iTe=function(t){if(t.reason==="CANCEL")return` Movement cancelled. - `+IW(t.source)+` + `+LW(t.source)+` `;var n=t.destination,r=t.combine;return n?` You have dropped the item. - `+uZ(t.source,n)+` + `+vZ(t.source,n)+` `:r?` You have dropped the item. - `+dZ(t.draggableId,t.source,r)+` + `+yZ(t.draggableId,t.source,r)+` `:` The item has been dropped while not over a drop area. - `+IW(t.source)+` - `},fE={dragHandleUsageInstructions:KCe,onDragStart:QCe,onDragUpdate:JCe,onDragEnd:ZCe},Oi={x:0,y:0},Zi=function(t,n){return{x:t.x+n.x,y:t.y+n.y}},zs=function(t,n){return{x:t.x-n.x,y:t.y-n.y}},Xd=function(t,n){return t.x===n.x&&t.y===n.y},Ev=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},Hp=function(t,n,r){var i;return r===void 0&&(r=0),i={},i[t]=n,i[t==="x"?"y":"x"]=r,i},L1=function(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},RW=function(t,n){return Math.min.apply(Math,n.map(function(r){return L1(t,r)}))},fZ=function(t){return function(n){return{x:t(n.x),y:t(n.y)}}},eTe=function(e,t){var n=vl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},zw=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},PW=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},tTe={top:0,right:0,bottom:0,left:0},nTe=function(t,n){return n?zw(t,n.scroll.diff.displacement):t},rTe=function(t,n,r){if(r&&r.increasedBy){var i;return $({},t,(i={},i[n.end]=t[n.end]+r.increasedBy[n.line],i))}return t},iTe=function(t,n){return n&&n.shouldClipSubject?eTe(n.pageMarginBox,t):vl(t)},Qg=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=nTe(t.marginBox,i),s=rTe(o,r,n),a=iTe(s,i);return{page:t,withPlaceholder:n,active:a}},aj=function(e,t){e.frame||We(!1);var n=e.frame,r=zs(t,n.scroll.initial),i=Ev(r),o=$({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=Qg({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),a=$({},e,{frame:o,subject:s});return a};function OC(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function lj(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,u=r.lefte.right,f=c&&u;if(f)return!0;var h=c&&s||u&&o;return h}},lTe=function(e){var t=ka(e.top,e.bottom),n=ka(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);return i}},uj={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},yZ={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},cTe=function(e){return function(t){var n=ka(t.top,t.bottom),r=ka(t.left,t.right);return function(i){return e===uj?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}},uTe=function(t,n){var r=n.frame?n.frame.scroll.diff.displacement:Oi;return zw(t,r)},dTe=function(t,n,r){return n.subject.active?r(n.subject.active)(t):!1},fTe=function(t,n,r){return r(n)(t)},dj=function(t){var n=t.target,r=t.destination,i=t.viewport,o=t.withDroppableDisplacement,s=t.isVisibleThroughFrameFn,a=o?uTe(n,r):n;return dTe(a,r,s)&&fTe(a,i,s)},hTe=function(t){return dj($({},t,{isVisibleThroughFrameFn:vZ}))},bZ=function(t){return dj($({},t,{isVisibleThroughFrameFn:lTe}))},pTe=function(t){return dj($({},t,{isVisibleThroughFrameFn:cTe(t.destination.axis)}))},mTe=function(t,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[t])return!1;var s=o[t];return s?s.shouldAnimate:!0};function gTe(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return vl(oj(n,r))}function N1(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,s=e.last;return t.reduce(function(c,u){var f=gTe(u,r),h=u.descriptor.id;c.all.push(h);var p=hTe({target:f,destination:n,viewport:i,withDroppableDisplacement:!0});if(!p)return c.invisible[u.descriptor.id]=!0,c;var g=mTe(h,s,o),v={draggableId:h,shouldAnimate:g};return c.visible[h]=v,c},{all:[],visible:{},invisible:{}})}function vTe(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function OW(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=vTe(t,{inHomeList:n});return{displaced:D1,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function MC(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,s=e.last,a=e.index,c=e.forceShouldAnimate,u=Tv(t,r);if(a==null)return OW({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var f=xf(n,function(y){return y.descriptor.index===a});if(!f)return OW({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var h=nA(t,n),p=n.indexOf(f),g=h.slice(p),v=N1({afterDragging:g,destination:r,displacedBy:o,last:s,viewport:i.frame,forceShouldAnimate:c});return{displaced:v,displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function rf(e,t){return!!t.effected[e]}var yTe=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var s=i.draggableId,a=r[s],c=a.descriptor.index,u=rf(s,o);return u?t?c:c-1:t?c+1:c},bTe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,s=t?o+1:o-1,a=r[0].descriptor.index,c=r[r.length-1].descriptor.index,u=n?c:c+1;return su?null:s},xTe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,s=e.insideDestination,a=e.previousImpact,c=e.viewport,u=e.afterCritical,f=a.at;if(f||We(!1),f.type==="REORDER"){var h=bTe({isMovingForward:t,isInHomeList:n,location:f.destination,insideDestination:s});return h==null?null:MC({draggable:r,insideDestination:s,destination:o,viewport:c,last:a.displaced,displacedBy:a.displacedBy,index:h})}var p=yTe({isMovingForward:t,destination:o,displaced:a.displaced,draggables:i,combine:f.combine,afterCritical:u});return p==null?null:MC({draggable:r,insideDestination:s,destination:o,viewport:c,last:a.displaced,displacedBy:a.displacedBy,index:p})},wTe=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=!!(t.visible[r]||t.invisible[r]);return rf(r,n)?o?Oi:Ev(i.point):o?i.point:Oi},_Te=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=tA(n);i||We(!1);var o=i.draggableId,s=r[o].page.borderBox.center,a=wTe({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Zi(s,a)},xZ=function(t,n){return n.margin[t.start]+n.borderBox[t.size]/2},STe=function(t,n){return n.margin[t.end]+n.borderBox[t.size]/2},fj=function(t,n,r){return n[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},MW=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return Hp(n.line,r.marginBox[n.end]+xZ(n,i),fj(n,r.marginBox,i))},LW=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return Hp(n.line,r.marginBox[n.start]-STe(n,i),fj(n,r.marginBox,i))},ETe=function(t){var n=t.axis,r=t.moveInto,i=t.isMoving;return Hp(n.line,r.contentBox[n.start]+xZ(n,i),fj(n,r.contentBox,i))},CTe=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,s=Cv(i.descriptor.id,r),a=n.page,c=i.axis;if(!s.length)return ETe({axis:c,moveInto:i.page,isMoving:a});var u=t.displaced,f=t.displacedBy,h=u.all[0];if(h){var p=r[h];if(rf(h,o))return LW({axis:c,moveRelativeTo:p.page,isMoving:a});var g=AC(p.page,f.point);return LW({axis:c,moveRelativeTo:g,isMoving:a})}var v=s[s.length-1];if(v.descriptor.id===n.descriptor.id)return a.borderBox.center;if(rf(v.descriptor.id,o)){var y=AC(v.page,Ev(o.displacedBy.point));return MW({axis:c,moveRelativeTo:y,isMoving:a})}return MW({axis:c,moveRelativeTo:v.page,isMoving:a})},b3=function(e,t){var n=e.frame;return n?Zi(t,n.scroll.diff.displacement):t},TTe=function(t){var n=t.impact,r=t.draggable,i=t.droppable,o=t.draggables,s=t.afterCritical,a=r.page.borderBox.center,c=n.at;return!i||!c?a:c.type==="REORDER"?CTe({impact:n,draggable:r,draggables:o,droppable:i,afterCritical:s}):_Te({impact:n,draggables:o,afterCritical:s})},rA=function(e){var t=TTe(e),n=e.droppable,r=n?b3(n,t):t;return r},wZ=function(e,t){var n=zs(t,e.scroll.initial),r=Ev(n),i=vl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return o};function DW(e,t){return e.map(function(n){return t[n]})}function kTe(e,t){for(var n=0;n1?f.sort(function(h,p){return Po(h)[a.start]-Po(p)[a.start]})[0]:u.sort(function(h,p){var g=RW(n,PW(Po(h))),v=RW(n,PW(Po(p)));return g!==v?g-v:Po(h)[a.start]-Po(p)[a.start]})[0]},NW=function(t,n){var r=t.page.borderBox.center;return rf(t.descriptor.id,n)?zs(r,n.displacedBy.point):r},OTe=function(t,n){var r=t.page.borderBox;return rf(t.descriptor.id,n)?zw(r,Ev(n.displacedBy.point)):r},MTe=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,s=i.filter(function(a){return bZ({target:OTe(a,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(a,c){var u=L1(t,b3(r,NW(a,o))),f=L1(t,b3(r,NW(c,o)));return ut.left&&e.topt.top}function jTe(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map(function(s){var a=s.axis,c=Hp(s.axis.line,t.center[a.line],s.page.borderBox.center[a.crossAxisLine]);return{id:s.descriptor.id,distance:L1(i,c)}}).sort(function(s,a){return a.distance-s.distance});return o[0]?o[0].id:null}function UTe(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=eA(r).filter(function(o){if(!o.isEnabled)return!1;var s=o.subject.active;if(!s||!zTe(t,s))return!1;if(CZ(s)(t.center))return!0;var a=o.axis,c=s.center[a.crossAxisLine],u=t[a.crossAxisStart],f=t[a.crossAxisEnd],h=ka(s[a.crossAxisStart],s[a.crossAxisEnd]),p=h(u),g=h(f);return!p&&!g?!0:p?uc});return i.length?i.length===1?i[0].descriptor.id:jTe({pageBorderBox:t,draggable:n,candidates:i}):null}var TZ=function(t,n){return vl(zw(t,n))},HTe=function(e,t){var n=e.frame;return n?TZ(t,n.scroll.diff.value):t};function kZ(e){var t=e.displaced,n=e.id;return!!(t.visible[n]||t.invisible[n])}function WTe(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var GTe=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,s=e.viewport,a=e.afterCritical,c=r.axis,u=jw(r.axis,n.displaceBy),f=u.value,h=t[c.start],p=t[c.end],g=nA(n,i),v=xf(g,function(S){var w=S.descriptor.id,b=S.page.borderBox.center[c.line],x=rf(w,a),E=kZ({displaced:o,id:w});return x?E?p<=b:hw[a.start]+x&&hw[a.start]-u+x&&fw[a.start]+u+x&&hw[a.start]+x&&f=FW)return NZ;var o=i/FW,s=_3+_ke*o,a=r==="CANCEL"?s*Ske:s;return Number(a.toFixed(2))},Cke=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,s=r.draggables,a=r.droppables,c=Gs(t),u=c?a[c]:null,f=a[n.descriptor.droppableId],h=RZ({impact:t,draggable:n,draggables:s,afterCritical:o,droppable:u||f,viewport:i}),p=zs(h,n.client.borderBox.center);return p},Tke=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,s=e.onLiftImpact;if(!r.at||n!=="DROP"){var a=IZ({draggables:t,impact:s,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:a,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var c=$({},r,{displaced:D1});return{impact:c,didDropInsideDroppable:!0}},kke=function(e){var t=e.getState,n=e.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var o=t(),s=i.payload.reason;if(o.phase==="COLLECTING"){n(bke({reason:s}));return}if(o.phase!=="IDLE"){var a=o.phase==="DROP_PENDING"&&o.isWaiting;a&&We(!1),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||We(!1);var c=o.critical,u=o.dimensions,f=u.draggables[o.critical.draggable.id],h=Tke({reason:s,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=h.impact,g=h.didDropInsideDroppable,v=g?cj(p):null,y=g?tA(p):null,S={index:c.draggable.index,droppableId:c.droppable.id},w={draggableId:f.descriptor.id,type:f.descriptor.type,source:S,reason:s,mode:o.movementMode,destination:v,combine:y},b=Cke({impact:p,draggable:f,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),x={critical:o.critical,afterCritical:o.afterCritical,result:w,impact:p},E=!Xd(o.current.client.offset,b)||!!w.combine;if(!E){n(gj({completed:x}));return}var I=Eke({current:o.current.client.offset,destination:b,reason:s}),A={newHomeClientOffset:b,dropDuration:I,completed:x};n(yke(A))}}}},BZ=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ake(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function Ike(e){var t=e.onWindowScroll;function n(){t(BZ())}var r=M1(n),i=Ake(r),o=qd;function s(){return o!==qd}function a(){s()&&We(!1),o=ya(window,[i])}function c(){s()||We(!1),r.cancel(),o(),o=qd}return{start:a,stop:c,isActive:s}}var Rke=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},Pke=function(e){var t=Ike({onWindowScroll:function(r){e.dispatch(fke({newScroll:r}))}});return function(n){return function(r){!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&Rke(r)&&t.stop(),n(r)}}},Oke=function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(s){t||n||(t=!0,e(s),clearTimeout(r))};return i.wasCalled=function(){return t},i},Mke=function(){var e=[],t=function(o){var s=lj(e,function(u){return u.timerId===o});s===-1&&We(!1);var a=e.splice(s,1),c=a[0];c.callback()},n=function(o){var s=setTimeout(function(){return t(s)}),a={timerId:s,callback:o};e.push(a)},r=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(s){clearTimeout(s.timerId),s.callback()})}};return{add:n,flush:r}},Lke=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.droppableId===n.droppableId&&t.index===n.index},Dke=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.draggableId===n.draggableId&&t.droppableId===n.droppableId},Nke=function(t,n){if(t===n)return!0;var r=t.draggable.id===n.draggable.id&&t.draggable.droppableId===n.draggable.droppableId&&t.draggable.type===n.draggable.type&&t.draggable.index===n.draggable.index,i=t.droppable.id===n.droppable.id&&t.droppable.type===n.droppable.type;return r&&i},Lb=function(t,n){n()},W_=function(t,n){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:n}},gN=function(t,n,r,i){if(!t){r(i(n));return}var o=Oke(r),s={announce:o};t(n,s),o.wasCalled()||r(i(n))},Bke=function(e,t){var n=Mke(),r=null,i=function(p,g){r&&We(!1),Lb("onBeforeCapture",function(){var v=e().onBeforeCapture;if(v){var y={draggableId:p,mode:g};v(y)}})},o=function(p,g){r&&We(!1),Lb("onBeforeDragStart",function(){var v=e().onBeforeDragStart;v&&v(W_(p,g))})},s=function(p,g){r&&We(!1);var v=W_(p,g);r={mode:g,lastCritical:p,lastLocation:v.source,lastCombine:null},n.add(function(){Lb("onDragStart",function(){return gN(e().onDragStart,v,t,fE.onDragStart)})})},a=function(p,g){var v=cj(g),y=tA(g);r||We(!1);var S=!Nke(p,r.lastCritical);S&&(r.lastCritical=p);var w=!Lke(r.lastLocation,v);w&&(r.lastLocation=v);var b=!Dke(r.lastCombine,y);if(b&&(r.lastCombine=y),!(!S&&!w&&!b)){var x=$({},W_(p,r.mode),{combine:y,destination:v});n.add(function(){Lb("onDragUpdate",function(){return gN(e().onDragUpdate,x,t,fE.onDragUpdate)})})}},c=function(){r||We(!1),n.flush()},u=function(p){r||We(!1),r=null,Lb("onDragEnd",function(){return gN(e().onDragEnd,p,t,fE.onDragEnd)})},f=function(){if(r){var p=$({},W_(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});u(p)}};return{beforeCapture:i,beforeStart:o,start:s,update:a,flush:c,drop:u,abort:f}},$ke=function(e,t){var n=Bke(e,t);return function(r){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var s=o.payload.critical;n.beforeStart(s,o.payload.movementMode),i(o),n.start(s,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var a=o.payload.completed.result;n.flush(),i(o),n.drop(a);return}if(i(o),o.type==="FLUSH"){n.abort();return}var c=r.getState();c.phase==="DRAGGING"&&n.update(c.critical,c.impact)}}}},Fke=function(e){return function(t){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}var r=e.getState();r.phase!=="DROP_ANIMATING"&&We(!1),e.dispatch(gj({completed:r.completed}))}}},zke=function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&r(),i(o),o.type==="DROP_ANIMATE"){var s={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var c=e.getState();c.phase==="DROP_ANIMATING"&&e.dispatch(DZ())}};n=requestAnimationFrame(function(){n=null,t=ya(window,[s])})}}}},jke=function(e){return function(){return function(t){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)}}}},Uke=function(e){var t=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},Hke=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},Wke=function(e){return function(t){return function(n){return function(r){if(Hke(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=t.getState();i.phase!=="DRAGGING"&&We(!1),e.start(i);return}n(r),e.scroll(t.getState())}}}},Gke=function(e){return function(t){return function(n){if(t(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(LZ({reason:r.reason})))}}}},Vke=ZJ,qke=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,s=e.autoScroller;return JJ(rke,Vke(rCe(wke(r),jke(t),xke(t),kke,Fke,zke,Gke,Wke(s),Pke,Uke(n),$ke(i,o))))},vN=function(){return{additions:{},removals:{},modified:{}}};function Xke(e){var t=e.registry,n=e.callbacks,r=vN(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var f=r,h=f.additions,p=f.removals,g=f.modified,v=Object.keys(h).map(function(w){return t.draggable.getById(w).getDimension(Oi)}).sort(function(w,b){return w.descriptor.index-b.descriptor.index}),y=Object.keys(g).map(function(w){var b=t.droppable.getById(w),x=b.callbacks.getScrollWhileDragging();return{droppableId:w,scroll:x}}),S={additions:v,removals:Object.keys(p),modified:y};r=vN(),n.publish(S)}))},s=function(f){var h=f.descriptor.id;r.additions[h]=f,r.modified[f.descriptor.droppableId]=!0,r.removals[h]&&delete r.removals[h],o()},a=function(f){var h=f.descriptor;r.removals[h.id]=!0,r.modified[h.droppableId]=!0,r.additions[h.id]&&delete r.additions[h.id],o()},c=function(){i&&(cancelAnimationFrame(i),i=null,r=vN())};return{add:s,remove:a,stop:c}}var $Z=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=zs({x:n,y:t},{x:i,y:r}),s={x:Math.max(0,o.x),y:Math.max(0,o.y)};return s},FZ=function(){var e=document.documentElement;return e||We(!1),e},zZ=function(){var e=FZ(),t=$Z({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},Yke=function(){var e=BZ(),t=zZ(),n=e.y,r=e.x,i=FZ(),o=i.clientWidth,s=i.clientHeight,a=r+o,c=n+s,u=vl({top:n,left:r,right:a,bottom:c}),f={frame:u,scroll:{initial:e,current:e,max:t,diff:{value:Oi,displacement:Oi}}};return f},Kke=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,i=Yke(),o=i.scroll.current,s=t.droppable,a=r.droppable.getAllByType(s.type).map(function(h){return h.callbacks.getDimensionAndWatchScroll(o,n)}),c=r.draggable.getAllByType(t.draggable.type).map(function(h){return h.getDimension(o)}),u={draggables:mZ(c),droppables:pZ(a)},f={dimensions:u,critical:t,viewport:i};return f};function zW(e,t,n){if(n.descriptor.id===t.id||n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var Qke=function(e,t){var n=null,r=Xke({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(g,v){e.droppable.exists(g)||We(!1),n&&t.updateDroppableIsEnabled({id:g,isEnabled:v})},o=function(g,v){n&&(e.droppable.exists(g)||We(!1),t.updateDroppableIsCombineEnabled({id:g,isCombineEnabled:v}))},s=function(g,v){n&&(e.droppable.exists(g)||We(!1),t.updateDroppableScroll({id:g,newScroll:v}))},a=function(g,v){n&&e.droppable.getById(g).callbacks.scroll(v)},c=function(){if(n){r.stop();var g=n.critical.droppable;e.droppable.getAllByType(g.type).forEach(function(v){return v.callbacks.dragStopped()}),n.unsubscribe(),n=null}},u=function(g){n||We(!1);var v=n.critical.draggable;g.type==="ADDITION"&&zW(e,v,g.value)&&r.add(g.value),g.type==="REMOVAL"&&zW(e,v,g.value)&&r.remove(g.value)},f=function(g){n&&We(!1);var v=e.draggable.getById(g.draggableId),y=e.droppable.getById(v.descriptor.droppableId),S={draggable:v.descriptor,droppable:y.descriptor},w=e.subscribe(u);return n={critical:S,unsubscribe:w},Kke({critical:S,registry:e,scrollOptions:g.scrollOptions})},h={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:a,updateDroppableScroll:s,startPublishing:f,stopPublishing:c};return h},jZ=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},Jke=function(e){window.scrollBy(e.x,e.y)},Zke=Pi(function(e){return eA(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),eAe=function(t,n){var r=xf(Zke(n),function(i){return i.frame||We(!1),CZ(i.frame.pageMarginBox)(t)});return r},tAe=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=eAe(t,r);return o},Yd={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},nAe=function(e,t){var n=e[t.size]*Yd.startFromPercentage,r=e[t.size]*Yd.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i},UZ=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;if(i===0)return 0;var o=r-t,s=o/i;return s},bj=1,rAe=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Yd.maxPixelScroll;if(e===t.startScrollingFrom)return bj;var n=UZ({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,i=Yd.maxPixelScroll*Yd.ease(r);return Math.ceil(i)},jW=Yd.durationDampening.accelerateAt,UW=Yd.durationDampening.stopDampeningAt,iAe=function(e,t){var n=t,r=UW,i=Date.now(),o=i-n;if(o>=UW)return e;if(ot.height,o=n.width>t.width;return!o&&!i?r:o&&i?null:{x:o?0:r.x,y:i?0:r.y}},sAe=fZ(function(e){return e===0?0:e}),HZ=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},a=WW({container:n,distanceToEdges:s,dragStartTime:t,axis:uj,shouldUseTimeDampening:o}),c=WW({container:n,distanceToEdges:s,dragStartTime:t,axis:yZ,shouldUseTimeDampening:o}),u=sAe({x:c,y:a});if(Xd(u,Oi))return null;var f=oAe({container:n,subject:r,proposedScroll:u});return f?Xd(f,Oi)?null:f:null},aAe=fZ(function(e){return e===0?0:e>0?1:-1}),xj=function(){var e=function(n,r){return n<0?n:n>r?n-r:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Zi(n,i),s={x:e(o.x,r.x),y:e(o.y,r.y)};return Xd(s,Oi)?null:s}}(),WZ=function(t){var n=t.max,r=t.current,i=t.change,o={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},s=aAe(i),a=xj({max:o,current:r,change:s});return!a||s.x!==0&&a.x===0||s.y!==0&&a.y===0},wj=function(t,n){return WZ({current:t.scroll.current,max:t.scroll.max,change:n})},lAe=function(t,n){if(!wj(t,n))return null;var r=t.scroll.max,i=t.scroll.current;return xj({current:i,max:r,change:n})},_j=function(t,n){var r=t.frame;return r?WZ({current:r.scroll.current,max:r.scroll.max,change:n}):!1},cAe=function(t,n){var r=t.frame;return!r||!_j(t,n)?null:xj({current:r.scroll.current,max:r.scroll.max,change:n})},uAe=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=HZ({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return s&&wj(t,s)?s:null},dAe=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var a=HZ({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return a&&_j(t,a)?a:null},GW=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,s=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id],c=a.page.marginBox;if(t.isWindowScrollAllowed){var u=t.viewport,f=uAe({dragStartTime:n,viewport:u,subject:c,center:s,shouldUseTimeDampening:r});if(f){i(f);return}}var h=tAe({center:s,destination:Gs(t.impact),droppables:t.dimensions.droppables});if(h){var p=dAe({dragStartTime:n,droppable:h,subject:c,center:s,shouldUseTimeDampening:r});p&&o(h.descriptor.id,p)}},fAe=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=M1(t),i=M1(n),o=null,s=function(f){o||We(!1);var h=o,p=h.shouldUseTimeDampening,g=h.dragStartTime;GW({state:f,scrollWindow:r,scrollDroppable:i,dragStartTime:g,shouldUseTimeDampening:p})},a=function(f){o&&We(!1);var h=Date.now(),p=!1,g=function(){p=!0};GW({state:f,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:g,scrollDroppable:g}),o={dragStartTime:h,shouldUseTimeDampening:p},p&&s(f)},c=function(){o&&(r.cancel(),i.cancel(),o=null)};return{start:a,stop:c,scroll:s}},hAe=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(u,f){var h=Zi(u.current.client.selection,f);t({client:h})},o=function(u,f){if(!_j(u,f))return f;var h=cAe(u,f);if(!h)return n(u.descriptor.id,f),null;var p=zs(f,h);n(u.descriptor.id,p);var g=zs(f,p);return g},s=function(u,f,h){if(!u||!wj(f,h))return h;var p=lAe(f,h);if(!p)return r(h),null;var g=zs(h,p);r(g);var v=zs(h,g);return v},a=function(u){var f=u.scrollJumpRequest;if(f){var h=Gs(u.impact);h||We(!1);var p=o(u.dimensions.droppables[h],f);if(p){var g=u.viewport,v=s(u.isWindowScrollAllowed,g,p);v&&i(u,v)}}};return a},pAe=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=fAe({scrollWindow:n,scrollDroppable:t}),o=hAe({move:r,scrollWindow:n,scrollDroppable:t}),s=function(u){if(u.phase==="DRAGGING"){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},a={scroll:s,start:i.start,stop:i.stop};return a},Jg="data-rbd",Zg=function(){var e=Jg+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),S3=function(){var e=Jg+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),mAe=function(){var e=Jg+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),VW={contextId:Jg+"-scroll-container-context-id"},gAe=function(t){return function(n){return"["+n+'="'+t+'"]'}},Db=function(t,n){return t.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},vAe="pointer-events: none;",yAe=function(e){var t=gAe(e),n=function(){var a=` + `+LW(t.source)+` + `},pE={dragHandleUsageInstructions:tTe,onDragStart:nTe,onDragUpdate:rTe,onDragEnd:iTe},Mi={x:0,y:0},Zi=function(t,n){return{x:t.x+n.x,y:t.y+n.y}},js=function(t,n){return{x:t.x-n.x,y:t.y-n.y}},Xd=function(t,n){return t.x===n.x&&t.y===n.y},Tv=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},Gp=function(t,n,r){var i;return r===void 0&&(r=0),i={},i[t]=n,i[t==="x"?"y":"x"]=r,i},M1=function(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},DW=function(t,n){return Math.min.apply(Math,n.map(function(r){return M1(t,r)}))},bZ=function(t){return function(n){return{x:t(n.x),y:t(n.y)}}},oTe=function(e,t){var n=vl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},zw=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},NW=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},sTe={top:0,right:0,bottom:0,left:0},aTe=function(t,n){return n?zw(t,n.scroll.diff.displacement):t},lTe=function(t,n,r){if(r&&r.increasedBy){var i;return $({},t,(i={},i[n.end]=t[n.end]+r.increasedBy[n.line],i))}return t},cTe=function(t,n){return n&&n.shouldClipSubject?oTe(n.pageMarginBox,t):vl(t)},Zg=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=aTe(t.marginBox,i),s=lTe(o,r,n),a=cTe(s,i);return{page:t,withPlaceholder:n,active:a}},lj=function(e,t){e.frame||We(!1);var n=e.frame,r=js(t,n.scroll.initial),i=Tv(r),o=$({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=Zg({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),a=$({},e,{frame:o,subject:s});return a};function LC(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function cj(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,u=r.lefte.right,f=c&&u;if(f)return!0;var h=c&&s||u&&o;return h}},hTe=function(e){var t=Aa(e.top,e.bottom),n=Aa(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);return i}},dj={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},CZ={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},pTe=function(e){return function(t){var n=Aa(t.top,t.bottom),r=Aa(t.left,t.right);return function(i){return e===dj?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}},mTe=function(t,n){var r=n.frame?n.frame.scroll.diff.displacement:Mi;return zw(t,r)},gTe=function(t,n,r){return n.subject.active?r(n.subject.active)(t):!1},vTe=function(t,n,r){return r(n)(t)},fj=function(t){var n=t.target,r=t.destination,i=t.viewport,o=t.withDroppableDisplacement,s=t.isVisibleThroughFrameFn,a=o?mTe(n,r):n;return gTe(a,r,s)&&vTe(a,i,s)},yTe=function(t){return fj($({},t,{isVisibleThroughFrameFn:EZ}))},TZ=function(t){return fj($({},t,{isVisibleThroughFrameFn:hTe}))},bTe=function(t){return fj($({},t,{isVisibleThroughFrameFn:pTe(t.destination.axis)}))},xTe=function(t,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[t])return!1;var s=o[t];return s?s.shouldAnimate:!0};function wTe(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return vl(sj(n,r))}function D1(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,s=e.last;return t.reduce(function(c,u){var f=wTe(u,r),h=u.descriptor.id;c.all.push(h);var p=yTe({target:f,destination:n,viewport:i,withDroppableDisplacement:!0});if(!p)return c.invisible[u.descriptor.id]=!0,c;var g=xTe(h,s,o),v={draggableId:h,shouldAnimate:g};return c.visible[h]=v,c},{all:[],visible:{},invisible:{}})}function _Te(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function BW(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=_Te(t,{inHomeList:n});return{displaced:L1,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function DC(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,s=e.last,a=e.index,c=e.forceShouldAnimate,u=Av(t,r);if(a==null)return BW({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var f=xf(n,function(y){return y.descriptor.index===a});if(!f)return BW({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var h=rA(t,n),p=n.indexOf(f),g=h.slice(p),v=D1({afterDragging:g,destination:r,displacedBy:o,last:s,viewport:i.frame,forceShouldAnimate:c});return{displaced:v,displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function rf(e,t){return!!t.effected[e]}var STe=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var s=i.draggableId,a=r[s],c=a.descriptor.index,u=rf(s,o);return u?t?c:c-1:t?c+1:c},ETe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,s=t?o+1:o-1,a=r[0].descriptor.index,c=r[r.length-1].descriptor.index,u=n?c:c+1;return su?null:s},CTe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,s=e.insideDestination,a=e.previousImpact,c=e.viewport,u=e.afterCritical,f=a.at;if(f||We(!1),f.type==="REORDER"){var h=ETe({isMovingForward:t,isInHomeList:n,location:f.destination,insideDestination:s});return h==null?null:DC({draggable:r,insideDestination:s,destination:o,viewport:c,last:a.displaced,displacedBy:a.displacedBy,index:h})}var p=STe({isMovingForward:t,destination:o,displaced:a.displaced,draggables:i,combine:f.combine,afterCritical:u});return p==null?null:DC({draggable:r,insideDestination:s,destination:o,viewport:c,last:a.displaced,displacedBy:a.displacedBy,index:p})},TTe=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=!!(t.visible[r]||t.invisible[r]);return rf(r,n)?o?Mi:Tv(i.point):o?i.point:Mi},kTe=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=nA(n);i||We(!1);var o=i.draggableId,s=r[o].page.borderBox.center,a=TTe({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Zi(s,a)},kZ=function(t,n){return n.margin[t.start]+n.borderBox[t.size]/2},ATe=function(t,n){return n.margin[t.end]+n.borderBox[t.size]/2},hj=function(t,n,r){return n[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},$W=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return Gp(n.line,r.marginBox[n.end]+kZ(n,i),hj(n,r.marginBox,i))},FW=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return Gp(n.line,r.marginBox[n.start]-ATe(n,i),hj(n,r.marginBox,i))},ITe=function(t){var n=t.axis,r=t.moveInto,i=t.isMoving;return Gp(n.line,r.contentBox[n.start]+kZ(n,i),hj(n,r.contentBox,i))},RTe=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,s=kv(i.descriptor.id,r),a=n.page,c=i.axis;if(!s.length)return ITe({axis:c,moveInto:i.page,isMoving:a});var u=t.displaced,f=t.displacedBy,h=u.all[0];if(h){var p=r[h];if(rf(h,o))return FW({axis:c,moveRelativeTo:p.page,isMoving:a});var g=RC(p.page,f.point);return FW({axis:c,moveRelativeTo:g,isMoving:a})}var v=s[s.length-1];if(v.descriptor.id===n.descriptor.id)return a.borderBox.center;if(rf(v.descriptor.id,o)){var y=RC(v.page,Tv(o.displacedBy.point));return $W({axis:c,moveRelativeTo:y,isMoving:a})}return $W({axis:c,moveRelativeTo:v.page,isMoving:a})},x3=function(e,t){var n=e.frame;return n?Zi(t,n.scroll.diff.displacement):t},PTe=function(t){var n=t.impact,r=t.draggable,i=t.droppable,o=t.draggables,s=t.afterCritical,a=r.page.borderBox.center,c=n.at;return!i||!c?a:c.type==="REORDER"?RTe({impact:n,draggable:r,draggables:o,droppable:i,afterCritical:s}):kTe({impact:n,draggables:o,afterCritical:s})},iA=function(e){var t=PTe(e),n=e.droppable,r=n?x3(n,t):t;return r},AZ=function(e,t){var n=js(t,e.scroll.initial),r=Tv(n),i=vl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return o};function zW(e,t){return e.map(function(n){return t[n]})}function OTe(e,t){for(var n=0;n1?f.sort(function(h,p){return Po(h)[a.start]-Po(p)[a.start]})[0]:u.sort(function(h,p){var g=DW(n,NW(Po(h))),v=DW(n,NW(Po(p)));return g!==v?g-v:Po(h)[a.start]-Po(p)[a.start]})[0]},jW=function(t,n){var r=t.page.borderBox.center;return rf(t.descriptor.id,n)?js(r,n.displacedBy.point):r},BTe=function(t,n){var r=t.page.borderBox;return rf(t.descriptor.id,n)?zw(r,Tv(n.displacedBy.point)):r},$Te=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,s=i.filter(function(a){return TZ({target:BTe(a,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(a,c){var u=M1(t,x3(r,jW(a,o))),f=M1(t,x3(r,jW(c,o)));return ut.left&&e.topt.top}function VTe(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map(function(s){var a=s.axis,c=Gp(s.axis.line,t.center[a.line],s.page.borderBox.center[a.crossAxisLine]);return{id:s.descriptor.id,distance:M1(i,c)}}).sort(function(s,a){return a.distance-s.distance});return o[0]?o[0].id:null}function qTe(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=tA(r).filter(function(o){if(!o.isEnabled)return!1;var s=o.subject.active;if(!s||!GTe(t,s))return!1;if(OZ(s)(t.center))return!0;var a=o.axis,c=s.center[a.crossAxisLine],u=t[a.crossAxisStart],f=t[a.crossAxisEnd],h=Aa(s[a.crossAxisStart],s[a.crossAxisEnd]),p=h(u),g=h(f);return!p&&!g?!0:p?uc});return i.length?i.length===1?i[0].descriptor.id:VTe({pageBorderBox:t,draggable:n,candidates:i}):null}var MZ=function(t,n){return vl(zw(t,n))},XTe=function(e,t){var n=e.frame;return n?MZ(t,n.scroll.diff.value):t};function LZ(e){var t=e.displaced,n=e.id;return!!(t.visible[n]||t.invisible[n])}function YTe(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var KTe=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,s=e.viewport,a=e.afterCritical,c=r.axis,u=jw(r.axis,n.displaceBy),f=u.value,h=t[c.start],p=t[c.end],g=rA(n,i),v=xf(g,function(S){var w=S.descriptor.id,b=S.page.borderBox.center[c.line],x=rf(w,a),E=LZ({displaced:o,id:w});return x?E?p<=b:hw[a.start]+x&&hw[a.start]-u+x&&fw[a.start]+u+x&&hw[a.start]+x&&f=WW)return HZ;var o=i/WW,s=S3+kke*o,a=r==="CANCEL"?s*Ake:s;return Number(a.toFixed(2))},Rke=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,s=r.draggables,a=r.droppables,c=Vs(t),u=c?a[c]:null,f=a[n.descriptor.droppableId],h=BZ({impact:t,draggable:n,draggables:s,afterCritical:o,droppable:u||f,viewport:i}),p=js(h,n.client.borderBox.center);return p},Pke=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,s=e.onLiftImpact;if(!r.at||n!=="DROP"){var a=NZ({draggables:t,impact:s,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:a,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var c=$({},r,{displaced:L1});return{impact:c,didDropInsideDroppable:!0}},Oke=function(e){var t=e.getState,n=e.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var o=t(),s=i.payload.reason;if(o.phase==="COLLECTING"){n(Eke({reason:s}));return}if(o.phase!=="IDLE"){var a=o.phase==="DROP_PENDING"&&o.isWaiting;a&&We(!1),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||We(!1);var c=o.critical,u=o.dimensions,f=u.draggables[o.critical.draggable.id],h=Pke({reason:s,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=h.impact,g=h.didDropInsideDroppable,v=g?uj(p):null,y=g?nA(p):null,S={index:c.draggable.index,droppableId:c.droppable.id},w={draggableId:f.descriptor.id,type:f.descriptor.type,source:S,reason:s,mode:o.movementMode,destination:v,combine:y},b=Rke({impact:p,draggable:f,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),x={critical:o.critical,afterCritical:o.afterCritical,result:w,impact:p},E=!Xd(o.current.client.offset,b)||!!w.combine;if(!E){n(vj({completed:x}));return}var I=Ike({current:o.current.client.offset,destination:b,reason:s}),A={newHomeClientOffset:b,dropDuration:I,completed:x};n(Ske(A))}}}},WZ=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Mke(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function Lke(e){var t=e.onWindowScroll;function n(){t(WZ())}var r=O1(n),i=Mke(r),o=qd;function s(){return o!==qd}function a(){s()&&We(!1),o=ba(window,[i])}function c(){s()||We(!1),r.cancel(),o(),o=qd}return{start:a,stop:c,isActive:s}}var Dke=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},Nke=function(e){var t=Lke({onWindowScroll:function(r){e.dispatch(vke({newScroll:r}))}});return function(n){return function(r){!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&Dke(r)&&t.stop(),n(r)}}},Bke=function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(s){t||n||(t=!0,e(s),clearTimeout(r))};return i.wasCalled=function(){return t},i},$ke=function(){var e=[],t=function(o){var s=cj(e,function(u){return u.timerId===o});s===-1&&We(!1);var a=e.splice(s,1),c=a[0];c.callback()},n=function(o){var s=setTimeout(function(){return t(s)}),a={timerId:s,callback:o};e.push(a)},r=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(s){clearTimeout(s.timerId),s.callback()})}};return{add:n,flush:r}},Fke=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.droppableId===n.droppableId&&t.index===n.index},zke=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.draggableId===n.draggableId&&t.droppableId===n.droppableId},jke=function(t,n){if(t===n)return!0;var r=t.draggable.id===n.draggable.id&&t.draggable.droppableId===n.draggable.droppableId&&t.draggable.type===n.draggable.type&&t.draggable.index===n.draggable.index,i=t.droppable.id===n.droppable.id&&t.droppable.type===n.droppable.type;return r&&i},Mb=function(t,n){n()},G_=function(t,n){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:n}},vN=function(t,n,r,i){if(!t){r(i(n));return}var o=Bke(r),s={announce:o};t(n,s),o.wasCalled()||r(i(n))},Uke=function(e,t){var n=$ke(),r=null,i=function(p,g){r&&We(!1),Mb("onBeforeCapture",function(){var v=e().onBeforeCapture;if(v){var y={draggableId:p,mode:g};v(y)}})},o=function(p,g){r&&We(!1),Mb("onBeforeDragStart",function(){var v=e().onBeforeDragStart;v&&v(G_(p,g))})},s=function(p,g){r&&We(!1);var v=G_(p,g);r={mode:g,lastCritical:p,lastLocation:v.source,lastCombine:null},n.add(function(){Mb("onDragStart",function(){return vN(e().onDragStart,v,t,pE.onDragStart)})})},a=function(p,g){var v=uj(g),y=nA(g);r||We(!1);var S=!jke(p,r.lastCritical);S&&(r.lastCritical=p);var w=!Fke(r.lastLocation,v);w&&(r.lastLocation=v);var b=!zke(r.lastCombine,y);if(b&&(r.lastCombine=y),!(!S&&!w&&!b)){var x=$({},G_(p,r.mode),{combine:y,destination:v});n.add(function(){Mb("onDragUpdate",function(){return vN(e().onDragUpdate,x,t,pE.onDragUpdate)})})}},c=function(){r||We(!1),n.flush()},u=function(p){r||We(!1),r=null,Mb("onDragEnd",function(){return vN(e().onDragEnd,p,t,pE.onDragEnd)})},f=function(){if(r){var p=$({},G_(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});u(p)}};return{beforeCapture:i,beforeStart:o,start:s,update:a,flush:c,drop:u,abort:f}},Hke=function(e,t){var n=Uke(e,t);return function(r){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var s=o.payload.critical;n.beforeStart(s,o.payload.movementMode),i(o),n.start(s,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var a=o.payload.completed.result;n.flush(),i(o),n.drop(a);return}if(i(o),o.type==="FLUSH"){n.abort();return}var c=r.getState();c.phase==="DRAGGING"&&n.update(c.critical,c.impact)}}}},Wke=function(e){return function(t){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}var r=e.getState();r.phase!=="DROP_ANIMATING"&&We(!1),e.dispatch(vj({completed:r.completed}))}}},Gke=function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&r(),i(o),o.type==="DROP_ANIMATE"){var s={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var c=e.getState();c.phase==="DROP_ANIMATING"&&e.dispatch(UZ())}};n=requestAnimationFrame(function(){n=null,t=ba(window,[s])})}}}},Vke=function(e){return function(){return function(t){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)}}}},qke=function(e){var t=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},Xke=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},Yke=function(e){return function(t){return function(n){return function(r){if(Xke(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=t.getState();i.phase!=="DRAGGING"&&We(!1),e.start(i);return}n(r),e.scroll(t.getState())}}}},Kke=function(e){return function(t){return function(n){if(t(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(jZ({reason:r.reason})))}}}},Qke=sZ,Jke=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,s=e.autoScroller;return oZ(lke,Qke(lCe(Tke(r),Vke(t),Cke(t),Oke,Wke,Gke,Kke,Yke(s),Nke,qke(n),Hke(i,o))))},yN=function(){return{additions:{},removals:{},modified:{}}};function Zke(e){var t=e.registry,n=e.callbacks,r=yN(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var f=r,h=f.additions,p=f.removals,g=f.modified,v=Object.keys(h).map(function(w){return t.draggable.getById(w).getDimension(Mi)}).sort(function(w,b){return w.descriptor.index-b.descriptor.index}),y=Object.keys(g).map(function(w){var b=t.droppable.getById(w),x=b.callbacks.getScrollWhileDragging();return{droppableId:w,scroll:x}}),S={additions:v,removals:Object.keys(p),modified:y};r=yN(),n.publish(S)}))},s=function(f){var h=f.descriptor.id;r.additions[h]=f,r.modified[f.descriptor.droppableId]=!0,r.removals[h]&&delete r.removals[h],o()},a=function(f){var h=f.descriptor;r.removals[h.id]=!0,r.modified[h.droppableId]=!0,r.additions[h.id]&&delete r.additions[h.id],o()},c=function(){i&&(cancelAnimationFrame(i),i=null,r=yN())};return{add:s,remove:a,stop:c}}var GZ=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=js({x:n,y:t},{x:i,y:r}),s={x:Math.max(0,o.x),y:Math.max(0,o.y)};return s},VZ=function(){var e=document.documentElement;return e||We(!1),e},qZ=function(){var e=VZ(),t=GZ({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},eAe=function(){var e=WZ(),t=qZ(),n=e.y,r=e.x,i=VZ(),o=i.clientWidth,s=i.clientHeight,a=r+o,c=n+s,u=vl({top:n,left:r,right:a,bottom:c}),f={frame:u,scroll:{initial:e,current:e,max:t,diff:{value:Mi,displacement:Mi}}};return f},tAe=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,i=eAe(),o=i.scroll.current,s=t.droppable,a=r.droppable.getAllByType(s.type).map(function(h){return h.callbacks.getDimensionAndWatchScroll(o,n)}),c=r.draggable.getAllByType(t.draggable.type).map(function(h){return h.getDimension(o)}),u={draggables:_Z(c),droppables:wZ(a)},f={dimensions:u,critical:t,viewport:i};return f};function GW(e,t,n){if(n.descriptor.id===t.id||n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var nAe=function(e,t){var n=null,r=Zke({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(g,v){e.droppable.exists(g)||We(!1),n&&t.updateDroppableIsEnabled({id:g,isEnabled:v})},o=function(g,v){n&&(e.droppable.exists(g)||We(!1),t.updateDroppableIsCombineEnabled({id:g,isCombineEnabled:v}))},s=function(g,v){n&&(e.droppable.exists(g)||We(!1),t.updateDroppableScroll({id:g,newScroll:v}))},a=function(g,v){n&&e.droppable.getById(g).callbacks.scroll(v)},c=function(){if(n){r.stop();var g=n.critical.droppable;e.droppable.getAllByType(g.type).forEach(function(v){return v.callbacks.dragStopped()}),n.unsubscribe(),n=null}},u=function(g){n||We(!1);var v=n.critical.draggable;g.type==="ADDITION"&&GW(e,v,g.value)&&r.add(g.value),g.type==="REMOVAL"&&GW(e,v,g.value)&&r.remove(g.value)},f=function(g){n&&We(!1);var v=e.draggable.getById(g.draggableId),y=e.droppable.getById(v.descriptor.droppableId),S={draggable:v.descriptor,droppable:y.descriptor},w=e.subscribe(u);return n={critical:S,unsubscribe:w},tAe({critical:S,registry:e,scrollOptions:g.scrollOptions})},h={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:a,updateDroppableScroll:s,startPublishing:f,stopPublishing:c};return h},XZ=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},rAe=function(e){window.scrollBy(e.x,e.y)},iAe=Oi(function(e){return tA(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),oAe=function(t,n){var r=xf(iAe(n),function(i){return i.frame||We(!1),OZ(i.frame.pageMarginBox)(t)});return r},sAe=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=oAe(t,r);return o},Yd={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},aAe=function(e,t){var n=e[t.size]*Yd.startFromPercentage,r=e[t.size]*Yd.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i},YZ=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;if(i===0)return 0;var o=r-t,s=o/i;return s},xj=1,lAe=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Yd.maxPixelScroll;if(e===t.startScrollingFrom)return xj;var n=YZ({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,i=Yd.maxPixelScroll*Yd.ease(r);return Math.ceil(i)},VW=Yd.durationDampening.accelerateAt,qW=Yd.durationDampening.stopDampeningAt,cAe=function(e,t){var n=t,r=qW,i=Date.now(),o=i-n;if(o>=qW)return e;if(ot.height,o=n.width>t.width;return!o&&!i?r:o&&i?null:{x:o?0:r.x,y:i?0:r.y}},dAe=bZ(function(e){return e===0?0:e}),KZ=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},a=YW({container:n,distanceToEdges:s,dragStartTime:t,axis:dj,shouldUseTimeDampening:o}),c=YW({container:n,distanceToEdges:s,dragStartTime:t,axis:CZ,shouldUseTimeDampening:o}),u=dAe({x:c,y:a});if(Xd(u,Mi))return null;var f=uAe({container:n,subject:r,proposedScroll:u});return f?Xd(f,Mi)?null:f:null},fAe=bZ(function(e){return e===0?0:e>0?1:-1}),wj=function(){var e=function(n,r){return n<0?n:n>r?n-r:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Zi(n,i),s={x:e(o.x,r.x),y:e(o.y,r.y)};return Xd(s,Mi)?null:s}}(),QZ=function(t){var n=t.max,r=t.current,i=t.change,o={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},s=fAe(i),a=wj({max:o,current:r,change:s});return!a||s.x!==0&&a.x===0||s.y!==0&&a.y===0},_j=function(t,n){return QZ({current:t.scroll.current,max:t.scroll.max,change:n})},hAe=function(t,n){if(!_j(t,n))return null;var r=t.scroll.max,i=t.scroll.current;return wj({current:i,max:r,change:n})},Sj=function(t,n){var r=t.frame;return r?QZ({current:r.scroll.current,max:r.scroll.max,change:n}):!1},pAe=function(t,n){var r=t.frame;return!r||!Sj(t,n)?null:wj({current:r.scroll.current,max:r.scroll.max,change:n})},mAe=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=KZ({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return s&&_j(t,s)?s:null},gAe=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var a=KZ({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return a&&Sj(t,a)?a:null},KW=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,s=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id],c=a.page.marginBox;if(t.isWindowScrollAllowed){var u=t.viewport,f=mAe({dragStartTime:n,viewport:u,subject:c,center:s,shouldUseTimeDampening:r});if(f){i(f);return}}var h=sAe({center:s,destination:Vs(t.impact),droppables:t.dimensions.droppables});if(h){var p=gAe({dragStartTime:n,droppable:h,subject:c,center:s,shouldUseTimeDampening:r});p&&o(h.descriptor.id,p)}},vAe=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=O1(t),i=O1(n),o=null,s=function(f){o||We(!1);var h=o,p=h.shouldUseTimeDampening,g=h.dragStartTime;KW({state:f,scrollWindow:r,scrollDroppable:i,dragStartTime:g,shouldUseTimeDampening:p})},a=function(f){o&&We(!1);var h=Date.now(),p=!1,g=function(){p=!0};KW({state:f,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:g,scrollDroppable:g}),o={dragStartTime:h,shouldUseTimeDampening:p},p&&s(f)},c=function(){o&&(r.cancel(),i.cancel(),o=null)};return{start:a,stop:c,scroll:s}},yAe=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(u,f){var h=Zi(u.current.client.selection,f);t({client:h})},o=function(u,f){if(!Sj(u,f))return f;var h=pAe(u,f);if(!h)return n(u.descriptor.id,f),null;var p=js(f,h);n(u.descriptor.id,p);var g=js(f,p);return g},s=function(u,f,h){if(!u||!_j(f,h))return h;var p=hAe(f,h);if(!p)return r(h),null;var g=js(h,p);r(g);var v=js(h,g);return v},a=function(u){var f=u.scrollJumpRequest;if(f){var h=Vs(u.impact);h||We(!1);var p=o(u.dimensions.droppables[h],f);if(p){var g=u.viewport,v=s(u.isWindowScrollAllowed,g,p);v&&i(u,v)}}};return a},bAe=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=vAe({scrollWindow:n,scrollDroppable:t}),o=yAe({move:r,scrollWindow:n,scrollDroppable:t}),s=function(u){if(u.phase==="DRAGGING"){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},a={scroll:s,start:i.start,stop:i.stop};return a},ev="data-rbd",tv=function(){var e=ev+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),E3=function(){var e=ev+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),xAe=function(){var e=ev+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),QW={contextId:ev+"-scroll-container-context-id"},wAe=function(t){return function(n){return"["+n+'="'+t+'"]'}},Lb=function(t,n){return t.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},_Ae="pointer-events: none;",SAe=function(e){var t=wAe(e),n=function(){var a=` cursor: -webkit-grab; cursor: grab; - `;return{selector:t(Zg.contextId),styles:{always:` + `;return{selector:t(tv.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:a,dragging:vAe,dropAnimating:a}}}(),r=function(){var a=` - transition: `+Wx.outOfTheWay+`; - `;return{selector:t(S3.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}}(),i={selector:t(mAe.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:` + `,resting:a,dragging:_Ae,dropAnimating:a}}}(),r=function(){var a=` + transition: `+Ux.outOfTheWay+`; + `;return{selector:t(E3.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}}(),i={selector:t(xAe.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -441,17 +441,84 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},s=[r,n,i,o];return{always:Db(s,"always"),resting:Db(s,"resting"),dragging:Db(s,"dragging"),dropAnimating:Db(s,"dropAnimating"),userCancel:Db(s,"userCancel")}},Vs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?P.useLayoutEffect:P.useEffect,yN=function(){var t=document.querySelector("head");return t||We(!1),t},qW=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function bAe(e,t){var n=Cn(function(){return yAe(e)},[e]),r=P.useRef(null),i=P.useRef(null),o=_t(Pi(function(h){var p=i.current;p||We(!1),p.textContent=h}),[]),s=_t(function(h){var p=r.current;p||We(!1),p.textContent=h},[]);Vs(function(){!r.current&&!i.current||We(!1);var h=qW(t),p=qW(t);return r.current=h,i.current=p,h.setAttribute(Jg+"-always",e),p.setAttribute(Jg+"-dynamic",e),yN().appendChild(h),yN().appendChild(p),s(n.always),o(n.resting),function(){var g=function(y){var S=y.current;S||We(!1),yN().removeChild(S),y.current=null};g(r),g(i)}},[t,s,o,n.always,n.resting,e]);var a=_t(function(){return o(n.dragging)},[o,n.dragging]),c=_t(function(h){if(h==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),u=_t(function(){i.current&&o(n.resting)},[o,n.resting]),f=Cn(function(){return{dragging:a,dropping:c,resting:u}},[a,c,u]);return f}var GZ=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function iA(e){return e instanceof GZ(e).HTMLElement}function xAe(e,t){var n="["+Zg.contextId+'="'+e+'"]',r=hZ(document.querySelectorAll(n));if(!r.length)return null;var i=xf(r,function(o){return o.getAttribute(Zg.draggableId)===t});return!i||!iA(i)?null:i}function wAe(e){var t=P.useRef({}),n=P.useRef(null),r=P.useRef(null),i=P.useRef(!1),o=_t(function(p,g){var v={id:p,focus:g};return t.current[p]=v,function(){var S=t.current,w=S[p];w!==v&&delete S[p]}},[]),s=_t(function(p){var g=xAe(e,p);g&&g!==document.activeElement&&g.focus()},[e]),a=_t(function(p,g){n.current===p&&(n.current=g)},[]),c=_t(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var p=n.current;p&&s(p)}))},[s]),u=_t(function(p){n.current=null;var g=document.activeElement;g&&g.getAttribute(Zg.draggableId)===p&&(n.current=p)},[]);Vs(function(){return i.current=!0,function(){i.current=!1;var p=r.current;p&&cancelAnimationFrame(p)}},[]);var f=Cn(function(){return{register:o,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:a}},[o,u,c,a]);return f}function _Ae(){var e={draggables:{},droppables:{}},t=[];function n(h){return t.push(h),function(){var g=t.indexOf(h);g!==-1&&t.splice(g,1)}}function r(h){t.length&&t.forEach(function(p){return p(h)})}function i(h){return e.draggables[h]||null}function o(h){var p=i(h);return p||We(!1),p}var s={register:function(p){e.draggables[p.descriptor.id]=p,r({type:"ADDITION",value:p})},update:function(p,g){var v=e.draggables[g.descriptor.id];v&&v.uniqueId===p.uniqueId&&(delete e.draggables[g.descriptor.id],e.draggables[p.descriptor.id]=p)},unregister:function(p){var g=p.descriptor.id,v=i(g);v&&p.uniqueId===v.uniqueId&&(delete e.draggables[g],r({type:"REMOVAL",value:p}))},getById:o,findById:i,exists:function(p){return!!i(p)},getAllByType:function(p){return OC(e.draggables).filter(function(g){return g.descriptor.type===p})}};function a(h){return e.droppables[h]||null}function c(h){var p=a(h);return p||We(!1),p}var u={register:function(p){e.droppables[p.descriptor.id]=p},unregister:function(p){var g=a(p.descriptor.id);g&&p.uniqueId===g.uniqueId&&delete e.droppables[p.descriptor.id]},getById:c,findById:a,exists:function(p){return!!a(p)},getAllByType:function(p){return OC(e.droppables).filter(function(g){return g.descriptor.type===p})}};function f(){e.draggables={},e.droppables={},t.length=0}return{draggable:s,droppable:u,subscribe:n,clean:f}}function SAe(){var e=Cn(_Ae,[]);return P.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Sj=de.createContext(null),LC=function(){var e=document.body;return e||We(!1),e},EAe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},CAe=function(t){return"rbd-announcement-"+t};function TAe(e){var t=Cn(function(){return CAe(e)},[e]),n=P.useRef(null);P.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),$(o.style,EAe),LC().appendChild(o),function(){setTimeout(function(){var c=LC();c.contains(o)&&c.removeChild(o),o===n.current&&(n.current=null)})}},[t]);var r=_t(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return r}var kAe=0,AAe={separator:"::"};function Ej(e,t){return t===void 0&&(t=AAe),Cn(function(){return""+e+t.separator+kAe++},[t.separator,e])}function IAe(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function RAe(e){var t=e.contextId,n=e.text,r=Ej("hidden-text",{separator:"-"}),i=Cn(function(){return IAe({contextId:t,uniqueId:r})},[r,t]);return P.useEffect(function(){var s=document.createElement("div");return s.id=i,s.textContent=n,s.style.display="none",LC().appendChild(s),function(){var c=LC();c.contains(s)&&c.removeChild(s)}},[i,n]),i}var oA=de.createContext(null);function VZ(e){var t=P.useRef(e);return P.useEffect(function(){t.current=e}),t}function PAe(){var e=null;function t(){return!!e}function n(s){return s===e}function r(s){e&&We(!1);var a={abandon:s};return e=a,a}function i(){e||We(!1),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:o}}var OAe=9,MAe=13,Cj=27,qZ=32,LAe=33,DAe=34,NAe=35,BAe=36,$Ae=37,FAe=38,zAe=39,jAe=40,G_,UAe=(G_={},G_[MAe]=!0,G_[OAe]=!0,G_),XZ=function(e){UAe[e.keyCode]&&e.preventDefault()},sA=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=xf(t,function(r){return"on"+r in document});return n||e}(),YZ=0,XW=5;function HAe(e,t){return Math.abs(t.x-e.x)>=XW||Math.abs(t.y-e.y)>=XW}var YW={type:"IDLE"};function WAe(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(s){var a=s.button,c=s.clientX,u=s.clientY;if(a===YZ){var f={x:c,y:u},h=r();if(h.type==="DRAGGING"){s.preventDefault(),h.actions.move(f);return}h.type!=="PENDING"&&We(!1);var p=h.point;if(HAe(p,f)){s.preventDefault();var g=h.actions.fluidLift(f);i({type:"DRAGGING",actions:g})}}}},{eventName:"mouseup",fn:function(s){var a=r();if(a.type!=="DRAGGING"){t();return}s.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(s){r().type==="DRAGGING"&&s.preventDefault(),t()}},{eventName:"keydown",fn:function(s){var a=r();if(a.type==="PENDING"){t();return}if(s.keyCode===Cj){s.preventDefault(),t();return}XZ(s)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(s){var a=r();if(a.type==="IDLE"&&We(!1),a.actions.shouldRespectForcePress()){t();return}s.preventDefault()}},{eventName:sA,fn:t}]}function GAe(e){var t=P.useRef(YW),n=P.useRef(qd),r=Cn(function(){return{eventName:"mousedown",fn:function(h){if(!h.defaultPrevented&&h.button===YZ&&!(h.ctrlKey||h.metaKey||h.shiftKey||h.altKey)){var p=e.findClosestDraggableId(h);if(p){var g=e.tryGetLock(p,s,{sourceEvent:h});if(g){h.preventDefault();var v={x:h.clientX,y:h.clientY};n.current(),u(g,v)}}}}}},[e]),i=Cn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(h){if(!h.defaultPrevented){var p=e.findClosestDraggableId(h);if(p){var g=e.findOptionsForDraggable(p);g&&(g.shouldRespectForcePress||e.canGetLock(p)&&h.preventDefault())}}}}},[e]),o=_t(function(){var h={passive:!1,capture:!0};n.current=ya(window,[i,r],h)},[i,r]),s=_t(function(){var f=t.current;f.type!=="IDLE"&&(t.current=YW,n.current(),o())},[o]),a=_t(function(){var f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=_t(function(){var h={capture:!0,passive:!1},p=WAe({cancel:a,completed:s,getPhase:function(){return t.current},setPhase:function(v){t.current=v}});n.current=ya(window,p,h)},[a,s]),u=_t(function(h,p){t.current.type!=="IDLE"&&We(!1),t.current={type:"PENDING",point:p,actions:h},c()},[c]);Vs(function(){return o(),function(){n.current()}},[o])}var vm;function VAe(){}var qAe=(vm={},vm[DAe]=!0,vm[LAe]=!0,vm[BAe]=!0,vm[NAe]=!0,vm);function XAe(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Cj){o.preventDefault(),n();return}if(o.keyCode===qZ){o.preventDefault(),r();return}if(o.keyCode===jAe){o.preventDefault(),e.moveDown();return}if(o.keyCode===FAe){o.preventDefault(),e.moveUp();return}if(o.keyCode===zAe){o.preventDefault(),e.moveRight();return}if(o.keyCode===$Ae){o.preventDefault(),e.moveLeft();return}if(qAe[o.keyCode]){o.preventDefault();return}XZ(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:sA,fn:n}]}function YAe(e){var t=P.useRef(VAe),n=Cn(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==qZ)return;var s=e.findClosestDraggableId(o);if(!s)return;var a=e.tryGetLock(s,f,{sourceEvent:o});if(!a)return;o.preventDefault();var c=!0,u=a.snapLift();t.current();function f(){c||We(!1),c=!1,t.current(),r()}t.current=ya(window,XAe(u,f),{capture:!0,passive:!1})}}},[e]),r=_t(function(){var o={passive:!1,capture:!0};t.current=ya(window,[n],o)},[n]);Vs(function(){return r(),function(){t.current()}},[r])}var bN={type:"IDLE"},KAe=120,QAe=.15;function JAe(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){t();return}i.keyCode===Cj&&i.preventDefault(),t()}},{eventName:sA,fn:t}]}function ZAe(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}s.hasMoved=!0;var a=o.touches[0],c=a.clientX,u=a.clientY,f={x:c,y:u};o.preventDefault(),s.actions.move(f)}},{eventName:"touchend",fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(r().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var s=r();s.type==="IDLE"&&We(!1);var a=o.touches[0];if(a){var c=a.force>=QAe;if(c){var u=s.actions.shouldRespectForcePress();if(s.type==="PENDING"){u&&t();return}if(u){if(s.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:sA,fn:t}]}function eIe(e){var t=P.useRef(bN),n=P.useRef(qd),r=_t(function(){return t.current},[]),i=_t(function(g){t.current=g},[]),o=Cn(function(){return{eventName:"touchstart",fn:function(g){if(!g.defaultPrevented){var v=e.findClosestDraggableId(g);if(v){var y=e.tryGetLock(v,a,{sourceEvent:g});if(y){var S=g.touches[0],w=S.clientX,b=S.clientY,x={x:w,y:b};n.current(),h(y,x)}}}}}},[e]),s=_t(function(){var g={capture:!0,passive:!1};n.current=ya(window,[o],g)},[o]),a=_t(function(){var p=t.current;p.type!=="IDLE"&&(p.type==="PENDING"&&clearTimeout(p.longPressTimerId),i(bN),n.current(),s())},[s,i]),c=_t(function(){var p=t.current;a(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[a]),u=_t(function(){var g={capture:!0,passive:!1},v={cancel:c,completed:a,getPhase:r},y=ya(window,ZAe(v),g),S=ya(window,JAe(v),g);n.current=function(){y(),S()}},[c,r,a]),f=_t(function(){var g=r();g.type!=="PENDING"&&We(!1);var v=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:v,hasMoved:!1})},[r,i]),h=_t(function(g,v){r().type!=="IDLE"&&We(!1);var y=setTimeout(f,KAe);i({type:"PENDING",point:v,actions:g,longPressTimerId:y}),u()},[u,r,i,f]);Vs(function(){return s(),function(){n.current();var v=r();v.type==="PENDING"&&(clearTimeout(v.longPressTimerId),i(bN))}},[r,s,i]),Vs(function(){var g=ya(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var tIe={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function KZ(e,t){if(t==null)return!1;var n=!!tIe[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:KZ(e,t.parentElement)}function nIe(e,t){var n=t.target;return iA(n)?KZ(e,n):!1}var rIe=function(e){return vl(e.getBoundingClientRect()).center};function iIe(e){return e instanceof GZ(e).Element}var oIe=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=xf(t,function(r){return r in Element.prototype});return n||e}();function QZ(e,t){return e==null?null:e[oIe](t)?e:QZ(e.parentElement,t)}function sIe(e,t){return e.closest?e.closest(t):QZ(e,t)}function aIe(e){return"["+Zg.contextId+'="'+e+'"]'}function lIe(e,t){var n=t.target;if(!iIe(n))return null;var r=aIe(e),i=sIe(n,r);return!i||!iA(i)?null:i}function cIe(e,t){var n=lIe(e,t);return n?n.getAttribute(Zg.draggableId):null}function uIe(e,t){var n="["+S3.contextId+'="'+e+'"]',r=hZ(document.querySelectorAll(n)),i=xf(r,function(o){return o.getAttribute(S3.id)===t});return!i||!iA(i)?null:i}function dIe(e){e.preventDefault()}function V_(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!(!r()||t!==n)}function JZ(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!(!o||!o.options.isEnabled||!jZ(n.getState(),i))}function fIe(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,s=e.forceSensorStop,a=e.sourceEvent,c=JZ({lockAPI:t,store:r,registry:i,draggableId:o});if(!c)return null;var u=i.draggable.getById(o),f=uIe(n,u.descriptor.id);if(!f||a&&!u.options.canDragInteractiveElements&&nIe(f,a))return null;var h=t.claim(s||qd),p="PRE_DRAG";function g(){return u.options.shouldRespectForcePress}function v(){return t.isActive(h)}function y(A,k){V_({expected:A,phase:p,isLockActive:v,shouldWarn:!0})&&r.dispatch(k())}var S=y.bind(null,"DRAGGING");function w(A){function k(){t.release(),p="COMPLETED"}p!=="PRE_DRAG"&&(k(),p!=="PRE_DRAG"&&We(!1)),r.dispatch(oke(A.liftActionArgs)),p="DRAGGING";function O(D,N){if(N===void 0&&(N={shouldBlockNextClick:!1}),A.cleanup(),N.shouldBlockNextClick){var H=ya(window,[{eventName:"click",fn:dIe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(H)}k(),r.dispatch(LZ({reason:D}))}return $({isActive:function(){return V_({expected:"DRAGGING",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(N){return O("DROP",N)},cancel:function(N){return O("CANCEL",N)}},A.actions)}function b(A){var k=M1(function(D){S(function(){return MZ({client:D})})}),O=w({liftActionArgs:{id:o,clientSelection:A,movementMode:"FLUID"},cleanup:function(){return k.cancel()},actions:{move:k}});return $({},O,{move:k})}function x(){var A={moveUp:function(){return S(pke)},moveRight:function(){return S(gke)},moveDown:function(){return S(mke)},moveLeft:function(){return S(vke)}};return w({liftActionArgs:{id:o,clientSelection:rIe(f),movementMode:"SNAP"},cleanup:qd,actions:A})}function E(){var A=V_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!0});A&&t.release()}var I={isActive:function(){return V_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:b,snapLift:x,abort:E};return I}var hIe=[GAe,YAe,eIe];function pIe(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,s=[].concat(o?hIe:[],i||[]),a=P.useState(function(){return PAe()})[0],c=_t(function(b,x){b.isDragging&&!x.isDragging&&a.tryAbandon()},[a]);Vs(function(){var b=n.getState(),x=n.subscribe(function(){var E=n.getState();c(b,E),b=E});return x},[a,n,c]),Vs(function(){return a.tryAbandon},[a.tryAbandon]);for(var u=_t(function(w){return JZ({lockAPI:a,registry:r,store:n,draggableId:w})},[a,r,n]),f=_t(function(w,b,x){return fIe({lockAPI:a,registry:r,contextId:t,store:n,draggableId:w,forceSensorStop:b,sourceEvent:x&&x.sourceEvent?x.sourceEvent:null})},[t,a,r,n]),h=_t(function(w){return cIe(t,w)},[t]),p=_t(function(w){var b=r.draggable.findById(w);return b?b.options:null},[r.draggable]),g=_t(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(mj()))},[a,n]),v=_t(a.isClaimed,[a]),y=Cn(function(){return{canGetLock:u,tryGetLock:f,findClosestDraggableId:h,findOptionsForDraggable:p,tryReleaseLock:g,isLockClaimed:v}},[u,f,h,p,g,v]),S=0;S{},onDeleteItem:o=()=>{},enabled:s=!1,element:a=C.jsx(lRe,{}),value:c,id:u,i:f=0,variant:h="default",extrasPlacement:p="center",autoFocus:g,cardStyle:v,sortable:y}){const[S,w]=P.useState(null),b=Ln(),x=E=>C.jsxs(mt,{display:"flex",alignItems:p,children:[y&&C.jsx("div",{...E,children:C.jsx(mt,{color:"text.secondary",sx:{pr:2},children:C.jsx(_1e,{})})}),e!==null&&P.cloneElement(e,{style:{marginRight:b.spacing(1),marginTop:b.spacing(.5),marginBottom:b.spacing(.5)},color:"action"}),C.jsx(mt,{flexGrow:1,sx:{ml:e===null?2:0},children:P.cloneElement(a,{onDelete:()=>o(u??f),autoFocus:g,value:c,key:u??f,onValueChange:I=>i(u??f,I,s),onChange:I=>i(u??f,I.target.value,s),ref:I=>w(I)})}),C.jsxs(mt,{display:"flex",alignItems:"center",children:[t&&C.jsx(qg,{color:"primary",edge:"end",onChange:(I,A)=>i(u??f,c,A),checked:s}),r&&C.jsx($p,{edge:"end",onClick:()=>{S!=null&&S.focus&&S.focus()},children:C.jsx(jk,{})}),n&&C.jsx($p,{onClick:()=>o(u??f),children:C.jsx(b1e,{})})]})]});return C.jsx(nRe,{index:f,draggableId:`${u}`,children:E=>C.jsx("div",{ref:E.innerRef,...E.draggableProps,children:C.jsx(mt,{sx:{pb:1,ml:2},children:h==="outlined"?C.jsx(vge,{variant:"outlined",style:{borderColor:"transparent",paddingRight:b.spacing(2),transition:b.transitions.create(["box-shadow","border-color"]),...v},children:x(E.dragHandleProps)}):x(E.dragHandleProps)})})})}function dRe(e,t,n){const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r}function fRe(e){const{addItemLabel:t="Add Item",label:n,text:r,onAddItem:i=()=>{},onDeleteItem:o=()=>{},items:s=[],placeholderText:a,autoFocus:c,getCategory:u,getOrder:f,onChange:h,extras:p}=e,g=cRe(),v=Ln(),[y,S]=P.useState(s),[w,b]=P.useState(-1);P.useEffect(()=>{const A=setTimeout(()=>{S(s)},v.transitions.duration.standard);return()=>{clearTimeout(A)}},[s,S,v.transitions.duration.standard]);const x=ie.uniqBy([...y,...s],A=>A.id).map(A=>s.find(k=>A.id===k.id)??A).map((A,k)=>{const{enabled:O,element:D,value:N,id:H}=A??{};return{value:N,render:G=>C.jsx(ND,{in:!!s.find(z=>z.id===A.id),unmountOnExit:!0,appear:!g,mountOnEnter:!0,children:C.jsx(uRe,{...e,onDeleteItem:z=>{o(z),b(-1)},enabled:O,element:D,value:N,id:H,i:k,autoFocus:c||k===w,...G})}),key:H,in:!!s.find(G=>G.id===A.id)}}),E=ie.sortBy(x,A=>u==null?void 0:u(A.value),A=>f==null?void 0:f(A.value)).map(A=>({...A,render:k=>C.jsx(mt,{children:A.render(k)},A.key)}));return C.jsx(bIe,{onDragEnd:A=>{if(!A.destination)return;const k=dRe(s,A.source.index,A.destination.index);h==null||h(k),S(k)},children:C.jsxs(Vg,{subheader:n||r?C.jsx(C.Fragment,{children:C.jsxs(yme,{disableSticky:!0,children:[n&&C.jsx(Xt,{variant:"body1",gutterBottom:!0,color:"textPrimary",children:n}),r&&C.jsx(Xt,{variant:"body2",color:"text.secondary",gutterBottom:!0,style:{marginBottom:v.spacing(3)},children:r})]})}):void 0,children:[C.jsx(mt,{mt:u?-1:0,children:C.jsx(iee,{droppableId:"list",children:A=>C.jsxs("div",{...A.droppableProps,ref:A.innerRef,children:[(()=>{const k=[];return E.forEach((O,D)=>{u&&I(E,D,O)&&k.push(C.jsx(ND,{in:s.some(N=>u(N.value)===u(O.value)),appear:!0,children:C.jsx(mt,{pl:2,pb:2,pt:1,children:C.jsx(Xt,{variant:"overline",color:"text.secondary",children:u(O.value)})})},u(O.value))),k.push(O.render())}),k})(),A.placeholder]})})}),C.jsx(ND,{in:!(s!=null&&s.length),children:C.jsx(mt,{ml:2,mb:1,pt:u?1:0,children:C.jsx(Xt,{component:"div",color:"text.secondary",children:a??"No items"})})}),C.jsxs(mt,{p:2,pt:1,mb:-3,children:[C.jsx(Lz,{disableElevation:!0,variant:"outlined",startIcon:C.jsx(d1e,{}),color:"primary",onClick:()=>{i(),b(s.length)},sx:{borderColor:A=>kn(A.palette.text.primary,A.palette.action.activatedOpacity)},children:C.jsx(mt,{sx:{color:"text.primary"},children:t})}),p]})]})});function I(A,k,O){return!!(u&&(A[k-1]===void 0||u(A[k-1].value)!==u(O.value)))}}function aA({onChange:e,value:t=[],editor:n,create:r,...i}){const[o,s]=P.useState(t??[]);function a(c){s(c),e==null||e(c)}return P.useEffect(()=>{s(t)},[t]),C.jsx(mt,{sx:{ml:-2},children:C.jsx(fRe,{...i,items:o.map(c=>({id:c.key,value:c,element:n==null?void 0:n(c)})),useDelete:!0,useEdit:!1,onAddItem:()=>a==null?void 0:a([...o,{key:da(),...r==null?void 0:r()}]),onDeleteItem:c=>a==null?void 0:a(ie.filter(o,u=>u.key!==c)),onChangeItem:(c,u)=>a==null?void 0:a(ie.map(o,f=>f.key===c?u:f)),onChange:c=>a==null?void 0:a(ie.map(c,u=>u.value))})})}const _d=[{key:"equal",apply:(e,t)=>e===t},{key:"less-than",apply:(e,t)=>ee>t}],hRe=["any","source","destination","expanding","generating","closing"];function pRe({value:e,onValueChange:t,properties:n}){var i,o;function r(s){t==null||t({...e,...s})}return C.jsxs(En,{children:[C.jsx(jx,{placeholder:"Event",sx:{minWidth:160},items:ie.map(hRe,s=>({value:s,label:ie.startCase(s)})),onChange:s=>r({type:s==="any"?void 0:s}),value:e.type??"any"}),C.jsx(Ku,{flexItem:!0,orientation:"vertical",sx:{mx:2}}),C.jsx(jx,{placeholder:"Property",sx:{minWidth:140,textOverflow:"ellipsis",whiteSpace:"nowrap"},items:ie.map(n,s=>({value:s,label:C.jsxs(C.Fragment,{children:[ie.last(s.split(".")),C.jsx(ai,{}),C.jsx(Xt,{color:"text.secondary",variant:"body2",component:"span",children:`event.${s}`})]})})),onChange:s=>r({property:s}),value:e.property}),C.jsx(ai,{}),C.jsx(jx,{placeholder:"Condition",items:_d.map(s=>({value:s.key,label:ie.startCase(s.key)})),value:((i=e==null?void 0:e.condition)==null?void 0:i.key)??((o=_d==null?void 0:_d[0])==null?void 0:o.key),onChange:s=>r({condition:ie.find(_d,{key:s})})}),C.jsx(ai,{}),C.jsx(Ew,{label:"Reference",fullWidth:!0,value:`${e.reference??0}`,variant:"filled",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:s=>r({reference:+s.target.value}),type:"number"}),C.jsx(ai,{sx:{px:2}}),C.jsx(g3,{checked:!!e.active,onChange:(s,a)=>r({active:a})})]})}const mRe=["f","g"],gRe=["variables"];function vRe(){const[{breakpoints:e=[]},t]=Zk(),n=ie.uniq([...mRe,...ie.flatMap(gRe,r=>ie.flatMap([],i=>ie.map(ie.keys(ie.get(i,r)),o=>`${r}.${o}`)))]);return C.jsx(mt,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(mt,{sx:{minWidth:720,mb:2},children:C.jsx(aA,{icon:null,value:e,useDelete:!0,useEdit:!1,editor:r=>C.jsx(pRe,{value:r,properties:n}),create:()=>({active:!0,property:n==null?void 0:n[0],condition:_d==null?void 0:_d[0],type:void 0,reference:0}),onChange:ie.debounce(r=>t(()=>({breakpoints:r})),1e3),addItemLabel:"Breakpoint",placeholderText:"Click the button below to add a breakpoint."})})})}function yRe(){const{controls:e,onChange:t,state:n}=bf(),[{monotonicF:r,monotonicG:i},o]=Zk(),[s,a]=P.useState("standard");function c(u){return C.jsx(Xt,{variant:"overline",color:"text.secondary",children:u})}return C.jsx(BJ,{value:s,children:C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Options,{children:C.jsxs(jJ,{onChange:(u,f)=>a(f),children:[C.jsx(Zm,{label:"Standard",value:"standard"}),C.jsx(Zm,{label:"Advanced",value:"advanced"})]})}),C.jsxs(zn.Content,{children:[C.jsx(mt,{overflow:"auto",height:"100%",children:C.jsxs(mt,{pt:6,height:"100%",children:[C.jsxs(rg,{value:"standard",children:[C.jsxs(mt,{children:[c("General"),C.jsxs(En,{children:[C.jsx(g3,{label:"Monotonic f value",checked:!!r,onChange:(u,f)=>o(()=>({monotonicF:f}))}),C.jsx(ai,{}),C.jsx(g3,{label:"Monotonic g value",checked:!!i,onChange:(u,f)=>o(()=>({monotonicG:f}))})]})]}),C.jsx(ai,{}),C.jsxs(mt,{children:[c("Breakpoints"),C.jsx(vRe,{})]}),C.jsxs(mt,{children:[c("Export"),C.jsx(En,{mt:1})]})]}),C.jsx(rg,{value:"advanced",sx:{p:0,height:"100%"},children:C.jsx(QEe,{})})]})})," "]}),C.jsx(zn.Extras,{children:e})]})})}function hp({label:e,icon:t=C.jsx(z1e,{}),...n}){return C.jsxs(En,{justifyContent:"center",alignItems:"center",color:"text.secondary",bgcolor:"background.paper",vertical:!0,pt:6,...n,children:[P.cloneElement(t,{sx:{mb:2},fontSize:"large"}),e]})}function bRe(){const{controls:e,onChange:t,state:n}=bf(),[r]=WQ();return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,children:r.length?C.jsx(Aw,{y:!0,children:C.jsx(Vg,{sx:{pt:6},children:ie.map(r,(i,o)=>C.jsxs("div",{children:[C.jsx(Fx,{children:C.jsx(rc,{primary:i.content,secondary:i.timestamp})}),C.jsx(Ku,{})]},o))})}):C.jsx(hp,{pt:6,label:"Logs",icon:C.jsx(BQ,{})})})}),C.jsx(zn.Extras,{children:e})]})}const xRe=ie.constant(!0),[tm,wRe]=Qu({layers:[]});function kv(e,t=xRe){const[n,r]=P.useState(e),[{layers:i},o]=tm(),s=ie.filter(i,t),a=n?ie.find(s,{key:n}):ie.head(s);return P.useEffect(()=>{r(e)},[e]),P.useEffect(()=>{a&&a.key!==n&&r(a.key)},[a,n,r]),P.useMemo(()=>({key:a==null?void 0:a.key,setKey:r,layer:a,setLayer:c=>{const u={...a,...c};o(({layers:f})=>({layers:ie.map(f,h=>h.key===u.key?u:h)}))},layers:s}),[a,o,i])}var oee={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(typeof window<"u"?window:qt,function(){if(typeof window>"u")return null;var n=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(f){return n.setTimeout(f,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(f){n.clearTimeout(f)};function o(f,h){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,v=0,y=f.length;if(g)for(;v=G&&(F+=N.value),N.mode==="max"&&z<=G&&(F+=N.value),L[j]||(L[j]=""),F&&(" "+L[j]+" ").indexOf(" "+F+" ")===-1&&(L[j]+=" "+F));for(var W in V)V.hasOwnProperty(W)&&(L[V[W]]?this.element.setAttribute(V[W],L[V[W]].substr(1)):this.element.removeAttribute(V[W]))}}function p(k,O){k.elementQueriesSetupInformation||(k.elementQueriesSetupInformation=new h(k,O)),k.elementQueriesSensor||(k.elementQueriesSensor=new n(k,function(){k.elementQueriesSetupInformation.call()}))}function g(k,O,D,N){if(typeof s[k]>"u"){s[k]=[];var H=a.length;o.innerHTML+=` + `}},s=[r,n,i,o];return{always:Lb(s,"always"),resting:Lb(s,"resting"),dragging:Lb(s,"dragging"),dropAnimating:Lb(s,"dropAnimating"),userCancel:Lb(s,"userCancel")}},qs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect,bN=function(){var t=document.querySelector("head");return t||We(!1),t},JW=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function EAe(e,t){var n=Cn(function(){return SAe(e)},[e]),r=R.useRef(null),i=R.useRef(null),o=_t(Oi(function(h){var p=i.current;p||We(!1),p.textContent=h}),[]),s=_t(function(h){var p=r.current;p||We(!1),p.textContent=h},[]);qs(function(){!r.current&&!i.current||We(!1);var h=JW(t),p=JW(t);return r.current=h,i.current=p,h.setAttribute(ev+"-always",e),p.setAttribute(ev+"-dynamic",e),bN().appendChild(h),bN().appendChild(p),s(n.always),o(n.resting),function(){var g=function(y){var S=y.current;S||We(!1),bN().removeChild(S),y.current=null};g(r),g(i)}},[t,s,o,n.always,n.resting,e]);var a=_t(function(){return o(n.dragging)},[o,n.dragging]),c=_t(function(h){if(h==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),u=_t(function(){i.current&&o(n.resting)},[o,n.resting]),f=Cn(function(){return{dragging:a,dropping:c,resting:u}},[a,c,u]);return f}var JZ=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function oA(e){return e instanceof JZ(e).HTMLElement}function CAe(e,t){var n="["+tv.contextId+'="'+e+'"]',r=xZ(document.querySelectorAll(n));if(!r.length)return null;var i=xf(r,function(o){return o.getAttribute(tv.draggableId)===t});return!i||!oA(i)?null:i}function TAe(e){var t=R.useRef({}),n=R.useRef(null),r=R.useRef(null),i=R.useRef(!1),o=_t(function(p,g){var v={id:p,focus:g};return t.current[p]=v,function(){var S=t.current,w=S[p];w!==v&&delete S[p]}},[]),s=_t(function(p){var g=CAe(e,p);g&&g!==document.activeElement&&g.focus()},[e]),a=_t(function(p,g){n.current===p&&(n.current=g)},[]),c=_t(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var p=n.current;p&&s(p)}))},[s]),u=_t(function(p){n.current=null;var g=document.activeElement;g&&g.getAttribute(tv.draggableId)===p&&(n.current=p)},[]);qs(function(){return i.current=!0,function(){i.current=!1;var p=r.current;p&&cancelAnimationFrame(p)}},[]);var f=Cn(function(){return{register:o,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:a}},[o,u,c,a]);return f}function kAe(){var e={draggables:{},droppables:{}},t=[];function n(h){return t.push(h),function(){var g=t.indexOf(h);g!==-1&&t.splice(g,1)}}function r(h){t.length&&t.forEach(function(p){return p(h)})}function i(h){return e.draggables[h]||null}function o(h){var p=i(h);return p||We(!1),p}var s={register:function(p){e.draggables[p.descriptor.id]=p,r({type:"ADDITION",value:p})},update:function(p,g){var v=e.draggables[g.descriptor.id];v&&v.uniqueId===p.uniqueId&&(delete e.draggables[g.descriptor.id],e.draggables[p.descriptor.id]=p)},unregister:function(p){var g=p.descriptor.id,v=i(g);v&&p.uniqueId===v.uniqueId&&(delete e.draggables[g],r({type:"REMOVAL",value:p}))},getById:o,findById:i,exists:function(p){return!!i(p)},getAllByType:function(p){return LC(e.draggables).filter(function(g){return g.descriptor.type===p})}};function a(h){return e.droppables[h]||null}function c(h){var p=a(h);return p||We(!1),p}var u={register:function(p){e.droppables[p.descriptor.id]=p},unregister:function(p){var g=a(p.descriptor.id);g&&p.uniqueId===g.uniqueId&&delete e.droppables[p.descriptor.id]},getById:c,findById:a,exists:function(p){return!!a(p)},getAllByType:function(p){return LC(e.droppables).filter(function(g){return g.descriptor.type===p})}};function f(){e.draggables={},e.droppables={},t.length=0}return{draggable:s,droppable:u,subscribe:n,clean:f}}function AAe(){var e=Cn(kAe,[]);return R.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Ej=de.createContext(null),NC=function(){var e=document.body;return e||We(!1),e},IAe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},RAe=function(t){return"rbd-announcement-"+t};function PAe(e){var t=Cn(function(){return RAe(e)},[e]),n=R.useRef(null);R.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),$(o.style,IAe),NC().appendChild(o),function(){setTimeout(function(){var c=NC();c.contains(o)&&c.removeChild(o),o===n.current&&(n.current=null)})}},[t]);var r=_t(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return r}var OAe=0,MAe={separator:"::"};function Cj(e,t){return t===void 0&&(t=MAe),Cn(function(){return""+e+t.separator+OAe++},[t.separator,e])}function LAe(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function DAe(e){var t=e.contextId,n=e.text,r=Cj("hidden-text",{separator:"-"}),i=Cn(function(){return LAe({contextId:t,uniqueId:r})},[r,t]);return R.useEffect(function(){var s=document.createElement("div");return s.id=i,s.textContent=n,s.style.display="none",NC().appendChild(s),function(){var c=NC();c.contains(s)&&c.removeChild(s)}},[i,n]),i}var sA=de.createContext(null);function ZZ(e){var t=R.useRef(e);return R.useEffect(function(){t.current=e}),t}function NAe(){var e=null;function t(){return!!e}function n(s){return s===e}function r(s){e&&We(!1);var a={abandon:s};return e=a,a}function i(){e||We(!1),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:o}}var BAe=9,$Ae=13,Tj=27,eee=32,FAe=33,zAe=34,jAe=35,UAe=36,HAe=37,WAe=38,GAe=39,VAe=40,V_,qAe=(V_={},V_[$Ae]=!0,V_[BAe]=!0,V_),tee=function(e){qAe[e.keyCode]&&e.preventDefault()},aA=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=xf(t,function(r){return"on"+r in document});return n||e}(),nee=0,ZW=5;function XAe(e,t){return Math.abs(t.x-e.x)>=ZW||Math.abs(t.y-e.y)>=ZW}var eG={type:"IDLE"};function YAe(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(s){var a=s.button,c=s.clientX,u=s.clientY;if(a===nee){var f={x:c,y:u},h=r();if(h.type==="DRAGGING"){s.preventDefault(),h.actions.move(f);return}h.type!=="PENDING"&&We(!1);var p=h.point;if(XAe(p,f)){s.preventDefault();var g=h.actions.fluidLift(f);i({type:"DRAGGING",actions:g})}}}},{eventName:"mouseup",fn:function(s){var a=r();if(a.type!=="DRAGGING"){t();return}s.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(s){r().type==="DRAGGING"&&s.preventDefault(),t()}},{eventName:"keydown",fn:function(s){var a=r();if(a.type==="PENDING"){t();return}if(s.keyCode===Tj){s.preventDefault(),t();return}tee(s)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(s){var a=r();if(a.type==="IDLE"&&We(!1),a.actions.shouldRespectForcePress()){t();return}s.preventDefault()}},{eventName:aA,fn:t}]}function KAe(e){var t=R.useRef(eG),n=R.useRef(qd),r=Cn(function(){return{eventName:"mousedown",fn:function(h){if(!h.defaultPrevented&&h.button===nee&&!(h.ctrlKey||h.metaKey||h.shiftKey||h.altKey)){var p=e.findClosestDraggableId(h);if(p){var g=e.tryGetLock(p,s,{sourceEvent:h});if(g){h.preventDefault();var v={x:h.clientX,y:h.clientY};n.current(),u(g,v)}}}}}},[e]),i=Cn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(h){if(!h.defaultPrevented){var p=e.findClosestDraggableId(h);if(p){var g=e.findOptionsForDraggable(p);g&&(g.shouldRespectForcePress||e.canGetLock(p)&&h.preventDefault())}}}}},[e]),o=_t(function(){var h={passive:!1,capture:!0};n.current=ba(window,[i,r],h)},[i,r]),s=_t(function(){var f=t.current;f.type!=="IDLE"&&(t.current=eG,n.current(),o())},[o]),a=_t(function(){var f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=_t(function(){var h={capture:!0,passive:!1},p=YAe({cancel:a,completed:s,getPhase:function(){return t.current},setPhase:function(v){t.current=v}});n.current=ba(window,p,h)},[a,s]),u=_t(function(h,p){t.current.type!=="IDLE"&&We(!1),t.current={type:"PENDING",point:p,actions:h},c()},[c]);qs(function(){return o(),function(){n.current()}},[o])}var xm;function QAe(){}var JAe=(xm={},xm[zAe]=!0,xm[FAe]=!0,xm[UAe]=!0,xm[jAe]=!0,xm);function ZAe(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Tj){o.preventDefault(),n();return}if(o.keyCode===eee){o.preventDefault(),r();return}if(o.keyCode===VAe){o.preventDefault(),e.moveDown();return}if(o.keyCode===WAe){o.preventDefault(),e.moveUp();return}if(o.keyCode===GAe){o.preventDefault(),e.moveRight();return}if(o.keyCode===HAe){o.preventDefault(),e.moveLeft();return}if(JAe[o.keyCode]){o.preventDefault();return}tee(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:aA,fn:n}]}function eIe(e){var t=R.useRef(QAe),n=Cn(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==eee)return;var s=e.findClosestDraggableId(o);if(!s)return;var a=e.tryGetLock(s,f,{sourceEvent:o});if(!a)return;o.preventDefault();var c=!0,u=a.snapLift();t.current();function f(){c||We(!1),c=!1,t.current(),r()}t.current=ba(window,ZAe(u,f),{capture:!0,passive:!1})}}},[e]),r=_t(function(){var o={passive:!1,capture:!0};t.current=ba(window,[n],o)},[n]);qs(function(){return r(),function(){t.current()}},[r])}var xN={type:"IDLE"},tIe=120,nIe=.15;function rIe(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){t();return}i.keyCode===Tj&&i.preventDefault(),t()}},{eventName:aA,fn:t}]}function iIe(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}s.hasMoved=!0;var a=o.touches[0],c=a.clientX,u=a.clientY,f={x:c,y:u};o.preventDefault(),s.actions.move(f)}},{eventName:"touchend",fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(r().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var s=r();s.type==="IDLE"&&We(!1);var a=o.touches[0];if(a){var c=a.force>=nIe;if(c){var u=s.actions.shouldRespectForcePress();if(s.type==="PENDING"){u&&t();return}if(u){if(s.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:aA,fn:t}]}function oIe(e){var t=R.useRef(xN),n=R.useRef(qd),r=_t(function(){return t.current},[]),i=_t(function(g){t.current=g},[]),o=Cn(function(){return{eventName:"touchstart",fn:function(g){if(!g.defaultPrevented){var v=e.findClosestDraggableId(g);if(v){var y=e.tryGetLock(v,a,{sourceEvent:g});if(y){var S=g.touches[0],w=S.clientX,b=S.clientY,x={x:w,y:b};n.current(),h(y,x)}}}}}},[e]),s=_t(function(){var g={capture:!0,passive:!1};n.current=ba(window,[o],g)},[o]),a=_t(function(){var p=t.current;p.type!=="IDLE"&&(p.type==="PENDING"&&clearTimeout(p.longPressTimerId),i(xN),n.current(),s())},[s,i]),c=_t(function(){var p=t.current;a(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[a]),u=_t(function(){var g={capture:!0,passive:!1},v={cancel:c,completed:a,getPhase:r},y=ba(window,iIe(v),g),S=ba(window,rIe(v),g);n.current=function(){y(),S()}},[c,r,a]),f=_t(function(){var g=r();g.type!=="PENDING"&&We(!1);var v=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:v,hasMoved:!1})},[r,i]),h=_t(function(g,v){r().type!=="IDLE"&&We(!1);var y=setTimeout(f,tIe);i({type:"PENDING",point:v,actions:g,longPressTimerId:y}),u()},[u,r,i,f]);qs(function(){return s(),function(){n.current();var v=r();v.type==="PENDING"&&(clearTimeout(v.longPressTimerId),i(xN))}},[r,s,i]),qs(function(){var g=ba(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var sIe={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ree(e,t){if(t==null)return!1;var n=!!sIe[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:ree(e,t.parentElement)}function aIe(e,t){var n=t.target;return oA(n)?ree(e,n):!1}var lIe=function(e){return vl(e.getBoundingClientRect()).center};function cIe(e){return e instanceof JZ(e).Element}var uIe=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=xf(t,function(r){return r in Element.prototype});return n||e}();function iee(e,t){return e==null?null:e[uIe](t)?e:iee(e.parentElement,t)}function dIe(e,t){return e.closest?e.closest(t):iee(e,t)}function fIe(e){return"["+tv.contextId+'="'+e+'"]'}function hIe(e,t){var n=t.target;if(!cIe(n))return null;var r=fIe(e),i=dIe(n,r);return!i||!oA(i)?null:i}function pIe(e,t){var n=hIe(e,t);return n?n.getAttribute(tv.draggableId):null}function mIe(e,t){var n="["+E3.contextId+'="'+e+'"]',r=xZ(document.querySelectorAll(n)),i=xf(r,function(o){return o.getAttribute(E3.id)===t});return!i||!oA(i)?null:i}function gIe(e){e.preventDefault()}function q_(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!(!r()||t!==n)}function oee(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!(!o||!o.options.isEnabled||!XZ(n.getState(),i))}function vIe(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,s=e.forceSensorStop,a=e.sourceEvent,c=oee({lockAPI:t,store:r,registry:i,draggableId:o});if(!c)return null;var u=i.draggable.getById(o),f=mIe(n,u.descriptor.id);if(!f||a&&!u.options.canDragInteractiveElements&&aIe(f,a))return null;var h=t.claim(s||qd),p="PRE_DRAG";function g(){return u.options.shouldRespectForcePress}function v(){return t.isActive(h)}function y(A,k){q_({expected:A,phase:p,isLockActive:v,shouldWarn:!0})&&r.dispatch(k())}var S=y.bind(null,"DRAGGING");function w(A){function k(){t.release(),p="COMPLETED"}p!=="PRE_DRAG"&&(k(),p!=="PRE_DRAG"&&We(!1)),r.dispatch(uke(A.liftActionArgs)),p="DRAGGING";function O(D,N){if(N===void 0&&(N={shouldBlockNextClick:!1}),A.cleanup(),N.shouldBlockNextClick){var H=ba(window,[{eventName:"click",fn:gIe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(H)}k(),r.dispatch(jZ({reason:D}))}return $({isActive:function(){return q_({expected:"DRAGGING",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(N){return O("DROP",N)},cancel:function(N){return O("CANCEL",N)}},A.actions)}function b(A){var k=O1(function(D){S(function(){return zZ({client:D})})}),O=w({liftActionArgs:{id:o,clientSelection:A,movementMode:"FLUID"},cleanup:function(){return k.cancel()},actions:{move:k}});return $({},O,{move:k})}function x(){var A={moveUp:function(){return S(bke)},moveRight:function(){return S(wke)},moveDown:function(){return S(xke)},moveLeft:function(){return S(_ke)}};return w({liftActionArgs:{id:o,clientSelection:lIe(f),movementMode:"SNAP"},cleanup:qd,actions:A})}function E(){var A=q_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!0});A&&t.release()}var I={isActive:function(){return q_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:b,snapLift:x,abort:E};return I}var yIe=[KAe,eIe,oIe];function bIe(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,s=[].concat(o?yIe:[],i||[]),a=R.useState(function(){return NAe()})[0],c=_t(function(b,x){b.isDragging&&!x.isDragging&&a.tryAbandon()},[a]);qs(function(){var b=n.getState(),x=n.subscribe(function(){var E=n.getState();c(b,E),b=E});return x},[a,n,c]),qs(function(){return a.tryAbandon},[a.tryAbandon]);for(var u=_t(function(w){return oee({lockAPI:a,registry:r,store:n,draggableId:w})},[a,r,n]),f=_t(function(w,b,x){return vIe({lockAPI:a,registry:r,contextId:t,store:n,draggableId:w,forceSensorStop:b,sourceEvent:x&&x.sourceEvent?x.sourceEvent:null})},[t,a,r,n]),h=_t(function(w){return pIe(t,w)},[t]),p=_t(function(w){var b=r.draggable.findById(w);return b?b.options:null},[r.draggable]),g=_t(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(gj()))},[a,n]),v=_t(a.isClaimed,[a]),y=Cn(function(){return{canGetLock:u,tryGetLock:f,findClosestDraggableId:h,findOptionsForDraggable:p,tryReleaseLock:g,isLockClaimed:v}},[u,f,h,p,g,v]),S=0;S{},onDeleteItem:o=()=>{},enabled:s=!1,element:a=C.jsx(hRe,{}),value:c,id:u,i:f=0,variant:h="default",extrasPlacement:p="center",autoFocus:g,cardStyle:v,sortable:y}){const[S,w]=R.useState(null),b=Dn(),x=E=>C.jsxs(ht,{display:"flex",alignItems:p,children:[y&&C.jsx("div",{...E,children:C.jsx(ht,{color:"text.secondary",sx:{pr:2},children:C.jsx(I1e,{})})}),e!==null&&R.cloneElement(e,{style:{marginRight:b.spacing(1),marginTop:b.spacing(.5),marginBottom:b.spacing(.5)},color:"action"}),C.jsx(ht,{flexGrow:1,sx:{ml:e===null?2:0},children:R.cloneElement(a,{onDelete:()=>o(u??f),autoFocus:g,value:c,key:u??f,onValueChange:I=>i(u??f,I,s),onChange:I=>i(u??f,I.target.value,s),ref:I=>w(I)})}),C.jsxs(ht,{display:"flex",alignItems:"center",children:[t&&C.jsx(Yg,{color:"primary",edge:"end",onChange:(I,A)=>i(u??f,c,A),checked:s}),r&&C.jsx(Fp,{edge:"end",onClick:()=>{S!=null&&S.focus&&S.focus()},children:C.jsx(jk,{})}),n&&C.jsx(Fp,{onClick:()=>o(u??f),children:C.jsx(T1e,{})})]})]});return C.jsx(aRe,{index:f,draggableId:`${u}`,children:E=>C.jsx("div",{ref:E.innerRef,...E.draggableProps,children:C.jsx(ht,{sx:{pb:1,ml:2},children:h==="outlined"?C.jsx(Ege,{variant:"outlined",style:{borderColor:"transparent",paddingRight:b.spacing(2),transition:b.transitions.create(["box-shadow","border-color"]),...v},children:x(E.dragHandleProps)}):x(E.dragHandleProps)})})})}function gRe(e,t,n){const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r}function vRe(e){const{addItemLabel:t="Add Item",label:n,text:r,onAddItem:i=()=>{},onDeleteItem:o=()=>{},items:s=[],placeholderText:a,autoFocus:c,getCategory:u,getOrder:f,onChange:h,extras:p}=e,g=pRe(),v=Dn(),[y,S]=R.useState(s),[w,b]=R.useState(-1);R.useEffect(()=>{const A=setTimeout(()=>{S(s)},v.transitions.duration.standard);return()=>{clearTimeout(A)}},[s,S,v.transitions.duration.standard]);const x=te.uniqBy([...y,...s],A=>A.id).map(A=>s.find(k=>A.id===k.id)??A).map((A,k)=>{const{enabled:O,element:D,value:N,id:H}=A??{};return{value:N,render:G=>C.jsx(BD,{in:!!s.find(z=>z.id===A.id),unmountOnExit:!0,appear:!g,mountOnEnter:!0,children:C.jsx(mRe,{...e,onDeleteItem:z=>{o(z),b(-1)},enabled:O,element:D,value:N,id:H,i:k,autoFocus:c||k===w,...G})}),key:H,in:!!s.find(G=>G.id===A.id)}}),E=te.sortBy(x,A=>u==null?void 0:u(A.value),A=>f==null?void 0:f(A.value)).map(A=>({...A,render:k=>C.jsx(ht,{children:A.render(k)},A.key)}));return C.jsx(EIe,{onDragEnd:A=>{if(!A.destination)return;const k=gRe(s,A.source.index,A.destination.index);h==null||h(k),S(k)},children:C.jsxs(Xg,{subheader:n||r?C.jsx(C.Fragment,{children:C.jsxs(Cme,{disableSticky:!0,children:[n&&C.jsx(jt,{variant:"body1",gutterBottom:!0,color:"textPrimary",children:n}),r&&C.jsx(jt,{variant:"body2",color:"text.secondary",gutterBottom:!0,style:{marginBottom:v.spacing(3)},children:r})]})}):void 0,children:[C.jsx(ht,{mt:u?-1:0,children:C.jsx(dee,{droppableId:"list",children:A=>C.jsxs("div",{...A.droppableProps,ref:A.innerRef,children:[(()=>{const k=[];return E.forEach((O,D)=>{u&&I(E,D,O)&&k.push(C.jsx(BD,{in:s.some(N=>u(N.value)===u(O.value)),appear:!0,children:C.jsx(ht,{pl:2,pb:2,pt:1,children:C.jsx(jt,{variant:"overline",color:"text.secondary",children:u(O.value)})})},u(O.value))),k.push(O.render())}),k})(),A.placeholder]})})}),C.jsx(BD,{in:!(s!=null&&s.length),children:C.jsx(ht,{ml:2,mb:1,pt:u?1:0,children:C.jsx(jt,{component:"div",color:"text.secondary",children:a??"No items"})})}),C.jsxs(ht,{p:2,pt:1,mb:-3,children:[C.jsx(Nz,{disableElevation:!0,variant:"outlined",startIcon:C.jsx(y1e,{}),color:"primary",onClick:()=>{i(),b(s.length)},sx:{borderColor:A=>kn(A.palette.text.primary,A.palette.action.activatedOpacity)},children:C.jsx(ht,{sx:{color:"text.primary"},children:t})}),p]})]})});function I(A,k,O){return!!(u&&(A[k-1]===void 0||u(A[k-1].value)!==u(O.value)))}}function lA({onChange:e,value:t=[],editor:n,create:r,...i}){const[o,s]=R.useState(t??[]);function a(c){s(c),e==null||e(c)}return R.useEffect(()=>{s(t)},[t]),C.jsx(ht,{sx:{ml:-2},children:C.jsx(vRe,{...i,items:o.map(c=>({id:c.key,value:c,element:n==null?void 0:n(c)})),useDelete:!0,useEdit:!1,onAddItem:()=>a==null?void 0:a([...o,{key:qo(),...r==null?void 0:r()}]),onDeleteItem:c=>a==null?void 0:a(te.filter(o,u=>u.key!==c)),onChangeItem:(c,u)=>a==null?void 0:a(te.map(o,f=>f.key===c?u:f)),onChange:c=>a==null?void 0:a(te.map(c,u=>u.value))})})}const wd=[{key:"equal",apply:(e,t)=>e===t},{key:"less-than",apply:(e,t)=>ee>t}],yRe=["any","source","destination","expanding","generating","closing"];function bRe({value:e,onValueChange:t,properties:n}){var i,o;function r(s){t==null||t({...e,...s})}return C.jsxs(En,{children:[C.jsx(Fx,{placeholder:"Event",sx:{minWidth:160},items:te.map(yRe,s=>({value:s,label:te.startCase(s)})),onChange:s=>r({type:s==="any"?void 0:s}),value:e.type??"any"}),C.jsx(Ku,{flexItem:!0,orientation:"vertical",sx:{mx:2}}),C.jsx(Fx,{placeholder:"Property",sx:{minWidth:140,textOverflow:"ellipsis",whiteSpace:"nowrap"},items:te.map(n,s=>({value:s,label:C.jsxs(C.Fragment,{children:[te.last(s.split(".")),C.jsx(ai,{}),C.jsx(jt,{color:"text.secondary",variant:"body2",component:"span",children:`event.${s}`})]})})),onChange:s=>r({property:s}),value:e.property}),C.jsx(ai,{}),C.jsx(Fx,{placeholder:"Condition",items:wd.map(s=>({value:s.key,label:te.startCase(s.key)})),value:((i=e==null?void 0:e.condition)==null?void 0:i.key)??((o=wd==null?void 0:wd[0])==null?void 0:o.key),onChange:s=>r({condition:te.find(wd,{key:s})})}),C.jsx(ai,{}),C.jsx(Ew,{label:"Reference",fullWidth:!0,value:`${e.reference??0}`,variant:"filled",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:s=>r({reference:+s.target.value}),type:"number"}),C.jsx(ai,{sx:{px:2}}),C.jsx(v3,{checked:!!e.active,onChange:(s,a)=>r({active:a})})]})}const xRe=["f","g"],wRe=["variables"];function _Re(){const[{breakpoints:e=[]},t]=eA(),n=te.uniq([...xRe,...te.flatMap(wRe,r=>te.flatMap([],i=>te.map(te.keys(te.get(i,r)),o=>`${r}.${o}`)))]);return C.jsx(ht,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(ht,{sx:{minWidth:720,mb:2},children:C.jsx(lA,{icon:null,value:e,useDelete:!0,useEdit:!1,editor:r=>C.jsx(bRe,{value:r,properties:n}),create:()=>({active:!0,property:n==null?void 0:n[0],condition:wd==null?void 0:wd[0],type:void 0,reference:0}),onChange:te.debounce(r=>t(()=>({breakpoints:r})),1e3),addItemLabel:"Breakpoint",placeholderText:"Click the button below to add a breakpoint."})})})}function SRe(){const{controls:e,onChange:t,state:n}=bf(),[{monotonicF:r,monotonicG:i},o]=eA(),[s,a]=R.useState("standard");function c(u){return C.jsx(jt,{variant:"overline",color:"text.secondary",children:u})}return C.jsx(WJ,{value:s,children:C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Options,{children:C.jsxs(XJ,{onChange:(u,f)=>a(f),children:[C.jsx(ng,{label:"Standard",value:"standard"}),C.jsx(ng,{label:"Advanced",value:"advanced"})]})}),C.jsxs(zn.Content,{children:[C.jsx(ht,{overflow:"auto",height:"100%",children:C.jsxs(ht,{pt:6,height:"100%",children:[C.jsxs(sg,{value:"standard",children:[C.jsxs(ht,{children:[c("General"),C.jsxs(En,{children:[C.jsx(v3,{label:"Monotonic f value",checked:!!r,onChange:(u,f)=>o(()=>({monotonicF:f}))}),C.jsx(ai,{}),C.jsx(v3,{label:"Monotonic g value",checked:!!i,onChange:(u,f)=>o(()=>({monotonicG:f}))})]})]}),C.jsx(ai,{}),C.jsxs(ht,{children:[c("Breakpoints"),C.jsx(_Re,{})]}),C.jsxs(ht,{children:[c("Export"),C.jsx(En,{mt:1})]})]}),C.jsx(sg,{value:"advanced",sx:{p:0,height:"100%"},children:C.jsx(nCe,{})})]})})," "]}),C.jsx(zn.Extras,{children:e})]})})}function pp({label:e,icon:t=C.jsx(q1e,{}),...n}){return C.jsxs(En,{justifyContent:"center",alignItems:"center",color:"text.secondary",bgcolor:"background.paper",textAlign:"center",vertical:!0,pt:6,...n,children:[R.cloneElement(t,{sx:{mb:2},fontSize:"large"}),C.jsx(jt,{children:e})]})}function ERe(){const{controls:e,onChange:t,state:n}=bf(),[r]=KQ();return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,children:r.length?C.jsx(Aw,{y:!0,children:C.jsx(Xg,{sx:{pt:6},children:te.map(r,(i,o)=>C.jsxs("div",{children:[C.jsx(Bx,{children:C.jsx(rc,{primary:i.content,secondary:i.timestamp})}),C.jsx(Ku,{})]},o))})}):C.jsx(pp,{pt:6,label:"Logs",icon:C.jsx(UQ,{})})})}),C.jsx(zn.Extras,{children:e})]})}const CRe=te.constant(!0),[im,TRe]=mc({layers:[]});function Vp(e,t=CRe){const[n,r]=R.useState(e),[{layers:i},o]=im(),s=te.filter(i,t),a=n?te.find(s,{key:n}):te.head(s);return R.useEffect(()=>{r(e)},[e]),R.useEffect(()=>{a&&a.key!==n&&r(a.key)},[a,n,r]),R.useMemo(()=>({key:a==null?void 0:a.key,setKey:r,layer:a,setLayer:c=>{const u={...a,...c};console.log(a,c,u),o(({layers:f})=>({layers:te.map(f,h=>h.key===u.key?u:h)}))},layers:s}),[a,o,s])}var fee={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(typeof window<"u"?window:Xt,function(){if(typeof window>"u")return null;var n=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(f){return n.setTimeout(f,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(f){n.clearTimeout(f)};function o(f,h){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,v=0,y=f.length;if(g)for(;v=G&&(F+=N.value),N.mode==="max"&&z<=G&&(F+=N.value),L[j]||(L[j]=""),F&&(" "+L[j]+" ").indexOf(" "+F+" ")===-1&&(L[j]+=" "+F));for(var W in V)V.hasOwnProperty(W)&&(L[V[W]]?this.element.setAttribute(V[W],L[V[W]].substr(1)):this.element.removeAttribute(V[W]))}}function p(k,O){k.elementQueriesSetupInformation||(k.elementQueriesSetupInformation=new h(k,O)),k.elementQueriesSensor||(k.elementQueriesSensor=new n(k,function(){k.elementQueriesSetupInformation.call()}))}function g(k,O,D,N){if(typeof s[k]>"u"){s[k]=[];var H=a.length;o.innerHTML+=` `+k+" {animation: 0.1s element-queries;}",o.innerHTML+=` `+k+" > .resize-sensor {min-width: "+H+"px;}",a.push(k)}s[k].push({mode:O,property:D,value:N})}function v(k){var O;if(document.querySelectorAll&&(O=k?k.querySelectorAll.bind(k):document.querySelectorAll.bind(document)),!O&&typeof $$<"u"&&(O=$$),!O&&typeof jQuery<"u"&&(O=jQuery),!O)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return O}function y(k){var O=v(k);for(var D in s)if(s.hasOwnProperty(D))for(var N=O(D,k),H=0,G=N.length;HD[X].minWidth&&(K=X);if(K||(K=H),G!==K)if(z[K])O[G].style.display="none",O[K].style.display="block",G=K;else{var Q=new Image;Q.onload=function(){O[K].src=N[K],O[G].style.display="none",O[K].style.display="block",z[K]=!0,G=K},Q.src=N[K]}else O[K].src=N[K]}k.resizeSensorInstance=new n(k,W),W()}function w(){for(var k=v(),O=k("[data-responsive-image],[responsive-image]"),D=0,N=O.length;D img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",o.innerHTML+=` -@keyframes element-queries { 0% { visibility: inherit; } }`,document.getElementsByTagName("head")[0].appendChild(o),A=!0);for(var O=0,D=document.styleSheets.length;O{if(r&&t)return r.addEventListener("scroll",t,{passive:!0}),()=>r.removeEventListener("scroll",t)},[r,t]),C.jsx("div",{...n,style:{height:"100%",width:"100%",overflow:"hidden scroll",...n.style},ref:o=>{i(o),e==null||e(o)},children:C.jsx(lee.Provider,{value:r,children:C.jsx("div",{style:{width:"100%"},children:n.children})})})}const lee=P.createContext(null);function CRe(){return P.useContext(lee)}function TRe(e=128){const[t,n]=P.useState(!0),[r,i]=P.useState(!0),[o,s]=P.useState(!0),[a,c]=P.useState(null),u=P.useRef(0);return P.useEffect(()=>{if(a){const f=()=>{{const h=a.scrollTop<=e;h!==o&&s(h)}{const h=a.scrollTop<=1;h!==r&&i(h)}u.current-a.scrollTop&&(Math.abs(u.current-a.scrollTop)>2&&u.current>=0&&n(u.current>a.scrollTop),u.current=a.scrollTop)};return a.addEventListener("scroll",f,{passive:!0}),()=>{a.removeEventListener("scroll",f)}}},[a,o,r,u,e]),[t||o,o,r,a,c]}function kj({children:e}){return C.jsx(Xt,{variant:"h6",children:e})}function kRe({onClose:e=()=>{},style:t,elevatedStyle:n,children:r,transitionProperties:i=["box-shadow","background","border-bottom"],elevatedChildren:o,simple:s,position:a="sticky"}){const c=CRe(),u=Ln(),[,,f,,h]=TRe();P.useEffect(()=>{h(c)},[c,h]);const p=f?{background:u.palette.background.paper,...!s&&{boxShadow:u.shadows[0]},...t}:{background:u.palette.background.paper,...!s&&{boxShadow:u.shadows[4]},...n};return C.jsx(fhe,{elevation:0,position:a,style:{color:u.palette.text.primary,transition:u.transitions.create(i),...p},children:C.jsxs(Oxe,{children:[C.jsx($p,{style:{marginRight:u.spacing(1)},"aria-label":"open drawer",edge:"start",onClick:()=>e(),children:C.jsx(f1e,{})}),r&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(zp,{in:!!(!o||f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(mt,{style:{width:"100%"},children:r})})}),o&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(zp,{in:!!(o&&!f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(mt,{style:{width:"100%"},children:o})})})]})})}function ARe({children:e,actions:t,width:n=480,height:r,onTarget:i,variant:o="default",scrollable:s=!0,...a}){var I;const[c,u]=P.useState(void 0);P.useEffect(()=>{e&&u(e)},[e]);const f=Ln(),h=nj(),[p,g]=P.useState(null),[v,y]=P.useState(null),[S,w]=P.useState(!1),[b,x]=P.useState(0);P.useEffect(()=>{if(p&&v&&!h&&!r){const A=()=>{const O=window.innerHeight-64{window.removeEventListener("resize",A),k.detach()}}},[p,v,h,r]);const E=o==="submodal"&&h;return C.jsxs(hve,{fullScreen:h,...a,style:{...E&&{paddingTop:f.spacing(8)},...a.style},PaperProps:{ref:A=>g(A),style:{...E&&{borderRadius:`${f.shape.borderRadius}px ${f.shape.borderRadius}px 0 0`},background:f.palette.background.paper,overflow:"hidden",height:r&&!h?r:S||h?"100%":b||"fit-content",position:"relative",maxWidth:"none",...(I=a.PaperProps)==null?void 0:I.style},...a.PaperProps},children:[C.jsx(ERe,{style:{height:"100%",width:h?void 0:n,maxWidth:"100%",overflow:s?void 0:"hidden"},onTarget:i,children:C.jsx("div",{ref:A=>y(A),style:{width:"100%",height:"100%"},children:c})}),t]})}function Aj({options:e,appBar:t,trigger:n=()=>C.jsx(C.Fragment,{}),children:r}){return C.jsx(em,{variant:"popover",children:({open:i,close:o,isOpen:s})=>C.jsxs(C.Fragment,{children:[P.cloneElement(n(i)),C.jsxs(ARe,{open:s,onClose:o,...e,children:[C.jsx(kRe,{onClose:o,...t}),r??(e==null?void 0:e.children)]})]})})}const[ev,IRe]=Qu([],{reduce:HQ}),[NC,RRe]=Qu({algorithms:[],maps:[],formats:[]}),[lA,PRe]=Qu({specimen:0,connections:0,features:0,map:0},{reduce:(e,{action:t,key:n})=>Ca(e,r=>{switch(t){case"start":r[n]+=1;break;case"end":r[n]-=1}return r})});function ORe(){const[e]=lA();return ie.some(ie.values(e))}function nm(e){const[,t]=lA();return P.useCallback(async n=>{t(()=>({action:"start",key:e}));const r=await n();return t(()=>({action:"end",key:e})),r},[e,t])}let cee=class extends Error{},MRe=class extends cee{},LRe=class extends cee{};const DRe=(e,t=",")=>e.join(t),NRe={accept:"*",multiple:!1,strict:!1},Ij=e=>{const{accept:t,multiple:n,strict:r}={...NRe,...e},i=FRe({multiple:n,accept:Array.isArray(t)?DRe(t):t});return new Promise(o=>{i.onchange=()=>{o(BRe(i.files,n,r)),i.remove()},i.click()})},BRe=(e,t,n)=>new Promise((r,i)=>{if(!e)return i(new MRe);const o=$Re(e,t,n);if(!o)return i(new LRe);r(o)}),$Re=(e,t,n)=>!t&&n?e.length===1?e[0]:null:e.length?e:null,FRe=({accept:e,multiple:t})=>{const n=document.createElement("input");return n.type="file",n.multiple=t,n.accept=e,n};function qs(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qs=function(t){return typeof t}:qs=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(e)}function xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tG(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hE(e,t,n){return uee()?hE=Reflect.construct:hE=function(i,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(i,a),u=new c;return s&&$1(u,s.prototype),u},hE.apply(null,arguments)}function zRe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function C3(e){var t=typeof Map=="function"?new Map:void 0;return C3=function(r){if(r===null||!zRe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return hE(r,arguments,io(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$1(i,r)},C3(e)}function aa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dee(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:aa(e)}function ar(e){var t=uee();return function(){var r=io(e),i;if(t){var o=io(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return dee(this,i)}}function jRe(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=io(e),e!==null););return e}function as(e,t,n){return typeof Reflect<"u"&&Reflect.get?as=Reflect.get:as=function(i,o,s){var a=jRe(i,o);if(a){var c=Object.getOwnPropertyDescriptor(a,o);return c.get?c.get.call(s):c.value}},as(e,t,n||e)}function Uw(e,t){return fee(e)||HRe(e,t)||Rj(e,t)||hee()}function Bb(e){return fee(e)||URe(e)||Rj(e)||hee()}function fee(e){if(Array.isArray(e))return e}function URe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function HRe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function Rj(e,t){if(e){if(typeof e=="string")return nG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nG(e,t)}}function nG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Rj(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}var ni={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},Se={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},pE="tag:yaml.org,2002:",Rd={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function rG(e){for(var t=[0],n=e.indexOf(` +@keyframes element-queries { 0% { visibility: inherit; } }`,document.getElementsByTagName("head")[0].appendChild(o),A=!0);for(var O=0,D=document.styleSheets.length;O{if(r&&t)return r.addEventListener("scroll",t,{passive:!0}),()=>r.removeEventListener("scroll",t)},[r,t]),C.jsx("div",{...n,style:{height:"100%",width:"100%",overflow:"hidden scroll",...n.style},ref:o=>{i(o),e==null||e(o)},children:C.jsx(mee.Provider,{value:r,children:C.jsx("div",{style:{width:"100%"},children:n.children})})})}const mee=R.createContext(null);function RRe(){return R.useContext(mee)}function PRe(e=128){const[t,n]=R.useState(!0),[r,i]=R.useState(!0),[o,s]=R.useState(!0),[a,c]=R.useState(null),u=R.useRef(0);return R.useEffect(()=>{if(a){const f=()=>{{const h=a.scrollTop<=e;h!==o&&s(h)}{const h=a.scrollTop<=1;h!==r&&i(h)}u.current-a.scrollTop&&(Math.abs(u.current-a.scrollTop)>2&&u.current>=0&&n(u.current>a.scrollTop),u.current=a.scrollTop)};return a.addEventListener("scroll",f,{passive:!0}),()=>{a.removeEventListener("scroll",f)}}},[a,o,r,u,e]),[t||o,o,r,a,c]}function Aj({children:e}){return C.jsx(jt,{variant:"h6",children:e})}function ORe({onClose:e=()=>{},style:t,elevatedStyle:n,children:r,transitionProperties:i=["box-shadow","background","border-bottom"],elevatedChildren:o,simple:s,position:a="sticky"}){const c=RRe(),u=Dn(),[,,f,,h]=PRe();R.useEffect(()=>{h(c)},[c,h]);const p=f?{background:u.palette.background.paper,...!s&&{boxShadow:u.shadows[0]},...t}:{background:u.palette.background.paper,...!s&&{boxShadow:u.shadows[4]},...n};return C.jsx(bhe,{elevation:0,position:a,style:{color:u.palette.text.primary,transition:u.transitions.create(i),...p},children:C.jsxs(Fxe,{children:[C.jsx(Fp,{style:{marginRight:u.spacing(1)},"aria-label":"open drawer",edge:"start",onClick:()=>e(),children:C.jsx(b1e,{})}),r&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(jp,{in:!!(!o||f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(ht,{style:{width:"100%"},children:r})})}),o&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(jp,{in:!!(o&&!f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(ht,{style:{width:"100%"},children:o})})})]})})}function MRe({children:e,actions:t,width:n=480,height:r,onTarget:i,variant:o="default",scrollable:s=!0,...a}){var I;const[c,u]=R.useState(void 0);R.useEffect(()=>{e&&u(e)},[e]);const f=Dn(),h=rj(),[p,g]=R.useState(null),[v,y]=R.useState(null),[S,w]=R.useState(!1),[b,x]=R.useState(0);R.useEffect(()=>{if(p&&v&&!h&&!r){const A=()=>{const O=window.innerHeight-64{window.removeEventListener("resize",A),k.detach()}}},[p,v,h,r]);const E=o==="submodal"&&h;return C.jsxs(xve,{fullScreen:h,...a,style:{...E&&{paddingTop:f.spacing(8)},...a.style},PaperProps:{ref:A=>g(A),style:{...E&&{borderRadius:`${f.shape.borderRadius}px ${f.shape.borderRadius}px 0 0`},background:f.palette.background.paper,overflow:"hidden",height:r&&!h?r:S||h?"100%":b||"fit-content",position:"relative",maxWidth:"none",...(I=a.PaperProps)==null?void 0:I.style},...a.PaperProps},children:[C.jsx(IRe,{style:{height:"100%",width:h?void 0:n,maxWidth:"100%",overflow:s?void 0:"hidden"},onTarget:i,children:C.jsx("div",{ref:A=>y(A),style:{width:"100%",height:"100%"},children:c})}),t]})}function Ij({options:e,appBar:t,trigger:n=()=>C.jsx(C.Fragment,{}),children:r}){return C.jsx(rm,{variant:"popover",children:({open:i,close:o,isOpen:s})=>C.jsxs(C.Fragment,{children:[R.cloneElement(n(i)),C.jsxs(MRe,{open:s,onClose:o,...e,children:[C.jsx(ORe,{onClose:o,...t}),r??(e==null?void 0:e.children)]})]})})}const[nv,LRe]=mc([],{reduce:YQ}),[$C,DRe]=mc({algorithms:[],maps:[],formats:[]}),[cA,NRe]=mc({specimen:0,connections:0,features:0,map:0},{reduce:(e,{action:t,key:n})=>Ta(e,r=>{switch(t){case"start":r[n]+=1;break;case"end":r[n]-=1}return r})});function BRe(){const[e]=cA();return te.some(te.values(e))}function om(e){const[,t]=cA();return R.useCallback(async n=>{t(()=>({action:"start",key:e}));const r=await n();return t(()=>({action:"end",key:e})),r},[e,t])}let gee=class extends Error{},$Re=class extends gee{},FRe=class extends gee{};const zRe=(e,t=",")=>e.join(t),jRe={accept:"*",multiple:!1,strict:!1},Rj=e=>{const{accept:t,multiple:n,strict:r}={...jRe,...e},i=WRe({multiple:n,accept:Array.isArray(t)?zRe(t):t});return new Promise(o=>{i.onchange=()=>{o(URe(i.files,n,r)),i.remove()},i.click()})},URe=(e,t,n)=>new Promise((r,i)=>{if(!e)return i(new $Re);const o=HRe(e,t,n);if(!o)return i(new FRe);r(o)}),HRe=(e,t,n)=>!t&&n?e.length===1?e[0]:null:e.length?e:null,WRe=({accept:e,multiple:t})=>{const n=document.createElement("input");return n.type="file",n.multiple=t,n.accept=e,n},GRe=""+new URL("hash.worker-76266fd6.js",import.meta.url).href,VRe=""+new URL("ipc.worker-78007631.js",import.meta.url).href,qRe=""+new URL("compress.worker-5a39bbab.js",import.meta.url).href,XRe=""+new URL("parseYaml.worker-25aef2ce.js",import.meta.url).href;class YRe extends Worker{constructor(){super(GRe,{type:"module"})}}class KRe extends Worker{constructor(){super(qRe,{type:"module"})}}class QRe extends Worker{constructor(){super(VRe,{type:"module"})}}class JRe extends Worker{constructor(){super(XRe,{type:"module"})}}var ZRe=function(){},ePe=ZRe(),sm=function(e){return e!==ePe&&e!==null},tPe=sm,nPe=Array.prototype.forEach,rPe=Object.create,iPe=function(e,t){var n;for(n in e)t[n]=e[n]},vee=function(e){var t=rPe(null);return nPe.call(arguments,function(n){tPe(n)&&iPe(Object(n),t)}),t},oPe=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},SN,sG;function sPe(){return sG||(sG=1,SN=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),SN}var aPe=oPe()?Math.sign:sPe(),lPe=aPe,cPe=Math.abs,uPe=Math.floor,dPe=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:lPe(e)*uPe(cPe(e)))},fPe=dPe,hPe=Math.max,am=function(e){return hPe(0,fPe(e))},pPe=am,yee=function(e,t,n){var r;return isNaN(e)?(r=t,r>=0?n&&r?r-1:r:1):e===!1?!1:pPe(e)},wf=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},mPe=sm,Iv=function(e){if(!mPe(e))throw new TypeError("Cannot use null or undefined");return e},gPe=wf,vPe=Iv,yPe=Function.prototype.bind,aG=Function.prototype.call,bPe=Object.keys,xPe=Object.prototype.propertyIsEnumerable,wPe=function(e,t){return function(n,r){var i,o=arguments[2],s=arguments[3];return n=Object(vPe(n)),gPe(r),i=bPe(n),s&&i.sort(typeof s=="function"?yPe.call(s,n):void 0),typeof e!="function"&&(e=i[e]),aG.call(e,i,function(a,c){return xPe.call(n,a)?aG.call(r,o,n[a],a,n,c):t})}},uA=wPe("forEach"),lm={},bee={exports:{}},_Pe=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},EN,lG;function SPe(){return lG||(lG=1,EN=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),EN}var CN,cG;function EPe(){if(cG)return CN;cG=1;var e=sm,t=Object.keys;return CN=function(n){return t(e(n)?Object(n):n)},CN}var TN,uG;function CPe(){return uG||(uG=1,TN=SPe()()?Object.keys:EPe()),TN}var kN,dG;function TPe(){if(dG)return kN;dG=1;var e=CPe(),t=Iv,n=Math.max;return kN=function(r,i){var o,s,a=n(arguments.length,2),c;for(r=Object(t(r)),c=function(u){try{r[u]=i[u]}catch(f){o||(o=f)}},s=1;s-1},PN}var GPe=HPe()?String.prototype.contains:WPe(),mE=Cee,yG=UPe,Tee=xee,kee=vee,Hx=GPe,VPe=Eee.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],mE(e)?(n=Hx.call(e,"c"),r=Hx.call(e,"e"),i=Hx.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?Tee(kee(o),s):s};VPe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],mE(t)?yG(t)?mE(n)?yG(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,mE(e)?(r=Hx.call(e,"c"),i=Hx.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?Tee(kee(o),s):s};var cm=Eee.exports,k3={exports:{}};(function(e,t){var n=cm,r=wf,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,a=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,w;h=function(b,x){var E;return r(x),u.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),a(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,I;return r(x),I=this,h.call(this,b,E=function(){g.call(I,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,I,A,k;if(r(x),!u.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(I=E[b],typeof I=="object")for(k=0;A=I[k];++k)(A===x||A.__eeOnceListener__===x)&&(I.length===2?E[b]=I[k?0:1]:I.splice(k,1));else(I===x||I.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,I,A,k;if(u.call(this,"__ee__")&&(A=this.__ee__[b],!!A))if(typeof A=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?u.call(g,v,O,w):O,y?(f.value=O,h(b,w,f)):b[w]=O,++w;x=w}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=0?f=s(f):f=t(this.length)-s(o(f)),c=f;c"}},fB}var hB,r9;function j2e(){if(r9)return hB;r9=1;var e=z2e(),t=/[\n\r\u2028\u2029]/g;return hB=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"…"),r=r.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),r},hB}var J_={exports:{}},i9;function Mee(){if(i9)return J_.exports;i9=1,J_.exports=e,J_.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return J_.exports}var o9;function U2e(){if(o9)return QG;o9=1;var e=Pee(),t=B2e(),n=F2e(),r=j2e(),i=Mee(),o=Mj(),s=Object.create,a=t("then","then:finally","done","done:finally");return lm.promise=function(c,u){var f=s(null),h=s(null),p=s(null);if(c===!0)c=null;else if(c=n(c),!a[c])throw new TypeError("'"+r(c)+"' is not valid promise mode");u.on("set",function(g,v,y){var S=!1;if(!i(y)){h[g]=y,u.emit("setasync",g,1);return}f[g]=1,p[g]=y;var w=function(I){var A=f[g];if(S)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) +Consider to rely on 'then' or 'done' mode instead.`);A&&(delete f[g],h[g]=I,u.emit("setasync",g,A))},b=function(){S=!0,f[g]&&(delete f[g],delete p[g],u.delete(g))},x=c;if(x||(x="then"),x==="then"){var E=function(){o(b)};y=y.then(function(I){o(w.bind(this,I))},E),typeof y.finally=="function"&&y.finally(E)}else if(x==="done"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");y.done(w,b)}else if(x==="done:finally"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof y.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");y.done(w),y.finally(b)}}),u.on("get",function(g,v,y){var S;if(f[g]){++f[g];return}S=p[g];var w=function(){u.emit("getasync",g,v,y)};i(S)?typeof S.done=="function"?S.done(w):S.then(function(){o(w)}):w()}),u.on("delete",function(g){if(delete p[g],f[g]){delete f[g];return}if(hasOwnProperty.call(h,g)){var v=h[g];delete h[g],u.emit("deleteasync",g,[v])}}),u.on("clear",function(){var g=h;h=s(null),f=s(null),p=s(null),u.emit("clearasync",e(g,function(v){return[v]}))})},QG}var s9={},a9;function H2e(){if(a9)return s9;a9=1;var e=wf,t=uA,n=lm,r=Function.prototype.apply;return n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise){o.on("deleteasync",a=function(c,u){r.call(i,null,u)}),o.on("clearasync",function(c){t(c,function(u,f){a(f,u)})});return}o.on("delete",a=function(c,u){i(u)}),o.on("clear",function(c){t(c,function(u,f){a(f,u)})})},s9}var l9={},pB,c9;function W2e(){return c9||(c9=1,pB=2147483647),pB}var mB,u9;function G2e(){if(u9)return mB;u9=1;var e=am,t=W2e();return mB=function(n){if(n=e(n),n>t)throw new TypeError(n+" exceeds maximum possible timeout");return n},mB}var d9;function V2e(){if(d9)return l9;d9=1;var e=Pj(),t=uA,n=Mj(),r=Mee(),i=G2e(),o=lm,s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;return o.maxAge=function(f,h,p){var g,v,y,S;f=i(f),f&&(g=u(null),v=p.async&&o.async||p.promise&&o.promise?"async":"",h.on("set"+v,function(w){g[w]=setTimeout(function(){h.delete(w)},f),typeof g[w].unref=="function"&&g[w].unref(),S&&(S[w]&&S[w]!=="nextTick"&&clearTimeout(S[w]),S[w]=setTimeout(function(){delete S[w]},y),typeof S[w].unref=="function"&&S[w].unref())}),h.on("delete"+v,function(w){clearTimeout(g[w]),delete g[w],S&&(S[w]!=="nextTick"&&clearTimeout(S[w]),delete S[w])}),p.preFetch&&(p.preFetch===!0||isNaN(p.preFetch)?y=.333:y=a(c(Number(p.preFetch),1),0),y&&(S={},y=(1-y)*f,h.on("get"+v,function(w,b,x){S[w]||(S[w]="nextTick",n(function(){var E;S[w]==="nextTick"&&(delete S[w],h.delete(w),p.async&&(b=e(b),b.push(s)),E=h.memoized.apply(x,b),p.promise&&r(E)&&(typeof E.done=="function"?E.done(s,s):E.then(s,s)))}))}))),h.on("clear"+v,function(){t(g,function(w){clearTimeout(w)}),g={},S&&(t(S,function(w){w!=="nextTick"&&clearTimeout(w)}),S={})}))},l9}var f9={},gB,h9;function q2e(){if(h9)return gB;h9=1;var e=am,t=Object.create,n=Object.prototype.hasOwnProperty;return gB=function(r){var i=0,o=1,s=t(null),a=t(null),c=0,u;return r=e(r),{hit:function(f){var h=a[f],p=++c;if(s[p]=f,a[f]=p,!h)return++i,i<=r?void 0:(f=s[o],u(f),f);if(delete s[h],o===h)for(;!n.call(s,++o););},delete:u=function(f){var h=a[f];if(h&&(delete s[h],delete a[f],--i,o===h)){if(!i){c=0,o=1;return}for(;!n.call(s,++o););}},clear:function(){i=0,o=1,s=t(null),a=t(null),c=0}}},gB}var p9;function X2e(){if(p9)return f9;p9=1;var e=am,t=q2e(),n=lm;return n.max=function(r,i,o){var s,a,c;r=e(r),r&&(a=t(r),s=o.async&&n.async||o.promise&&n.promise?"async":"",i.on("set"+s,c=function(u){u=a.hit(u),u!==void 0&&i.delete(u)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))},f9}var m9={},g9;function Y2e(){if(g9)return m9;g9=1;var e=cm,t=lm,n=Object.create,r=Object.defineProperties;return t.refCounter=function(i,o,s){var a,c;a=n(null),c=s.async&&t.async||s.promise&&t.promise?"async":"",o.on("set"+c,function(u,f){a[u]=f||1}),o.on("get"+c,function(u){++a[u]}),o.on("delete"+c,function(u){delete a[u]}),o.on("clear"+c,function(){a={}}),r(o.memoized,{deleteRef:e(function(){var u=o.get(arguments);return u===null||!a[u]?null:--a[u]?!1:(o.delete(u),!0)}),getRefCount:e(function(){var u=o.get(arguments);return u===null||!a[u]?0:a[u]})})},m9}var K2e=vee,Q2e=yee,J2e=k2e,Z2e=function(e){var t=K2e(arguments[1]),n;return t.normalizer||(n=t.length=Q2e(t.length,e.length,t.async),n!==0&&(t.primitive?n===!1?t.normalizer=A2e():n>1&&(t.normalizer=I2e()(n)):n===!1?t.normalizer=M2e()():n===1?t.normalizer=L2e()():t.normalizer=D2e()(n))),t.async&&N2e(),t.promise&&U2e(),t.dispose&&H2e(),t.maxAge&&V2e(),t.max&&X2e(),t.refCounter&&Y2e(),J2e(e,t)};const _f=ds(Z2e),eOe=e=>async t=>{const n=new e,r=await t(n);return n.terminate(),r},fA=e=>t=>eOe(e)(n=>(n.postMessage(t),new Promise((r,i)=>{n.onmessage=o=>{r(o.data)},n.onerror=i}))),Rv=(e,t={async:!0,length:1})=>_f(fA(e),t);te.memoize(fA(YRe));te.memoize(fA(KRe));const Lee=te.memoize(fA(JRe));function Wx(e){return e.split(".").pop()}function Dee(e){return e.split(".").shift()}const v9="internal/custom",A3="json",I3=e=>({name:(e==null?void 0:e.id)===v9?`Imported Map - ${e==null?void 0:e.name}`:"Import Map",description:"Internal",id:v9}),tOe=e=>({name:(e==null?void 0:e.type)===A3?`Imported Trace - ${e==null?void 0:e.name}`:"Import Trace",description:"Internal",id:A3}),y9=["json","yaml"];async function nOe(){const e=await Rj({accept:y9.map(t=>`.trace.${t}`),strict:!0});if(e)return{file:e,read:async()=>{if(y9.includes(Wx(e.name))){const t=await e.text(),n=await Lee(t);return{...tOe(),format:n==null?void 0:n.format,content:n,name:te.startCase(Dee(e.name)),type:A3}}else throw new Error(`The format (${Wx(e.name)}) is unsupported.`)}}}async function rOe(e){const t=await Rj({accept:e.map(({id:n})=>`.${n}`),strict:!0});if(t)return{file:t,read:async()=>{if(te.find(e,{id:Wx(t.name)}))return{...I3(),format:Wx(t.name),content:await t.text(),name:te.startCase(Dee(t.name))};throw new Error(`The format (${Wx(t.name)}) is unsupported.`)}}}const Nee=20*1024*1024,[Bee,iOe]=mc({},{reduce:(e,t)=>te.omitBy(Uk(e,t),te.isUndefined)});function oOe(e){return new Promise(t=>te.delay(t,e))}function Lj(e){const[,t]=Bee();return R.useCallback(async(n,r)=>{t(()=>({[e]:r})),oOe(300);const i=await n();return t(()=>({[e]:void 0})),i},[e,t])}function Dj(e){return`${(e/(1024*1024)).toFixed(2)} MB`}function sOe({onChange:e,value:t}){const n=gc(),r=om("map"),i=Lj("map"),[o]=nv(),[{maps:s,formats:a}]=$C();return C.jsx(Gs,{showArrow:!0,icon:C.jsx(jQ,{}),label:"Choose Map",value:t==null?void 0:t.id,items:[I3(t),...s.map(c=>{var u;return{...c,description:(u=te.find(o,{url:c.source}))==null?void 0:u.name}})],onChange:async c=>{switch(c){case I3().id:try{const u=await rOe(a);u&&r(async()=>{n("Opening map...");const f=u.file.size>Nee?await i(u.read,`Opening map (${Dj(u.file.size)})`):await u.read();f&&(e==null||e(f))})}catch(u){n(`${u}`)}break;default:e==null||e(te.find(s,{id:c}));break}}})}function aOe({onChange:e,value:t}){const n=gc(),r=om("specimen"),i=Lj("specimen");return C.jsx(nf,{icon:C.jsx(jQ,{}),onClick:async()=>{try{const o=await nOe();o&&r(async()=>{n("Opening trace...");const s=o.file.size>Nee?await i(o.read,`Opening trace (${Dj(o.file.size)})`):await o.read();s&&(e==null||e(s))})}catch(o){n(`${o}`)}},children:t!=null&&t.id?`Uploaded Trace - ${t.name}`:"Choose File"})}const lx="500";function lOe(e){return parseInt(e.replace("#","0x"))}const Nj={source:fd.A400,destination:ud.A400,updating:ap[lx],expanding:hX[lx],generating:pX[lx],closing:fX[lx],end:dd.A400};te.mapValues(Nj,lOe);function B1(e){return(e&&Nj[e])??u4[lx]}function cOe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function uOe(){return this.eachAfter(cOe)}function dOe(e){var t=this,n,r=[t],i,o,s;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,s=i.length;o=0;--i)n.push(r[i]);return this}function hOe(e){for(var t=this,n=[t],r=[],i,o,s;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,s=i.length;o=0;)n+=r[i].value;t.value=n})}function mOe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function gOe(e){for(var t=this,n=vOe(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function vOe(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function yOe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function bOe(){var e=[];return this.each(function(t){e.push(t)}),e}function xOe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function wOe(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Bj(e,t){var n=new $1(e),r=+e.value&&(n.value=e.value),i,o=[n],s,a,c,u;for(t==null&&(t=SOe);i=o.pop();)if(r&&(i.value=+i.data.value),(a=t(i.data))&&(u=a.length))for(i.children=new Array(u),c=u-1;c>=0;--c)o.push(s=i.children[c]=new $1(a[c])),s.parent=i,s.depth=i.depth+1;return n.eachBefore(COe)}function _Oe(){return Bj(this).eachBefore(EOe)}function SOe(e){return e.children}function EOe(e){e.data=e.data.data}function COe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function $1(e){this.data=e,this.depth=this.height=0,this.parent=null}$1.prototype=Bj.prototype={constructor:$1,count:uOe,each:dOe,eachAfter:hOe,eachBefore:fOe,sum:pOe,sort:mOe,path:gOe,ancestors:yOe,descendants:bOe,leaves:xOe,links:wOe,copy:_Oe};function TOe(e,t){return e.parent===t.parent?1:2}function vB(e){var t=e.children;return t?t[0]:e.t}function yB(e){var t=e.children;return t?t[t.length-1]:e.t}function kOe(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function AOe(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function IOe(e,t,n){return e.a.parent===t.parent?e.a:n}function gE(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}gE.prototype=Object.create($1.prototype);function ROe(e){for(var t=new gE(e,0),n,r=[t],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new gE(o[s],s)),i.parent=n;return(t.parent=new gE(null,0)).children=[t],t}function POe(){var e=TOe,t=1,n=1,r=null;function i(u){var f=ROe(u);if(f.eachAfter(o),f.parent.m=-f.z,f.eachBefore(s),r)u.eachBefore(c);else{var h=u,p=u,g=u;u.eachBefore(function(b){b.xp.x&&(p=b),b.depth>g.depth&&(g=b)});var v=h===p?1:e(h,p)/2,y=v-h.x,S=t/(p.x+v+y),w=n/(g.depth||1);u.eachBefore(function(b){b.x=(b.x+y)*S,b.y=b.depth*w})}return u}function o(u){var f=u.children,h=u.parent.children,p=u.i?h[u.i-1]:null;if(f){AOe(u);var g=(f[0].z+f[f.length-1].z)/2;p?(u.z=p.z+e(u._,p._),u.m=u.z-g):u.z=g}else p&&(u.z=p.z+e(u._,p._));u.parent.A=a(u,p,u.parent.A||h[0])}function s(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function a(u,f,h){if(f){for(var p=u,g=u,v=f,y=p.parent.children[0],S=p.m,w=g.m,b=v.m,x=y.m,E;v=yB(v),p=vB(p),v&&p;)y=vB(y),g=yB(g),g.a=u,E=v.z+b-p.z-S+e(v._,p._),E>0&&(kOe(IOe(v,u,h),u,E),S+=E,w+=E),b+=v.m,S+=p.m,x+=y.m,w+=g.m;v&&!yB(g)&&(g.t=v,g.m+=b-w),p&&!vB(y)&&(y.t=p,y.m+=S-x,h=u)}return h}function c(u){u.x*=t,u.y=u.depth*n}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],i):r?null:[t,n]},i.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],i):r?[t,n]:null},i}var R3="http://www.w3.org/1999/xhtml";const b9={svg:"http://www.w3.org/2000/svg",xhtml:R3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hA(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),b9.hasOwnProperty(t)?{space:b9[t],local:e}:e}function OOe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===R3&&t.documentElement.namespaceURI===R3?t.createElement(e):t.createElementNS(n,e)}}function MOe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $ee(e){var t=hA(e);return(t.local?MOe:OOe)(t)}function LOe(){}function $j(e){return e==null?LOe:function(){return this.querySelector(e)}}function DOe(e){typeof e!="function"&&(e=$j(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=x&&(x=b+1);!(I=S[x])&&++x=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function sMe(e){e||(e=aMe);function t(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;ot?1:e>=t?0:NaN}function lMe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function cMe(){return Array.from(this)}function uMe(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?wMe:typeof t=="function"?SMe:_Me)(e,t,n??"")):rv(this.node(),e)}function rv(e,t){return e.style.getPropertyValue(t)||Hee(e).getComputedStyle(e,null).getPropertyValue(t)}function CMe(e){return function(){delete this[e]}}function TMe(e,t){return function(){this[e]=t}}function kMe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function AMe(e,t){return arguments.length>1?this.each((t==null?CMe:typeof t=="function"?kMe:TMe)(e,t)):this.node()[e]}function Wee(e){return e.trim().split(/^|\s+/)}function Fj(e){return e.classList||new Gee(e)}function Gee(e){this._node=e,this._names=Wee(e.getAttribute("class")||"")}Gee.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Vee(e,t){for(var n=Fj(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function nLe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n{}};function zj(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}vE.prototype=zj.prototype={constructor:vE,on:function(e,t){var n=this._,r=fLe(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Z_(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Z_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=vLe.exec(e))?new ts(t[1],t[2],t[3],1):(t=yLe.exec(e))?new ts(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bLe.exec(e))?Z_(t[1],t[2],t[3],t[4]):(t=xLe.exec(e))?Z_(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wLe.exec(e))?k9(t[1],t[2]/100,t[3]/100,1):(t=_Le.exec(e))?k9(t[1],t[2]/100,t[3]/100,t[4]):w9.hasOwnProperty(e)?E9(w9[e]):e==="transparent"?new ts(NaN,NaN,NaN,0):null}function E9(e){return new ts(e>>16&255,e>>8&255,e&255,1)}function Z_(e,t,n,r){return r<=0&&(e=t=n=NaN),new ts(e,t,n,r)}function CLe(e){return e instanceof Hw||(e=j1(e)),e?(e=e.rgb(),new ts(e.r,e.g,e.b,e.opacity)):new ts}function M3(e,t,n,r){return arguments.length===1?CLe(e):new ts(e,t,n,r??1)}function ts(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}jj(ts,M3,Kee(Hw,{brighter(e){return e=e==null?zC:Math.pow(zC,e),new ts(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?F1:Math.pow(F1,e),new ts(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ts(Cp(this.r),Cp(this.g),Cp(this.b),jC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C9,formatHex:C9,formatHex8:TLe,formatRgb:T9,toString:T9}));function C9(){return`#${mp(this.r)}${mp(this.g)}${mp(this.b)}`}function TLe(){return`#${mp(this.r)}${mp(this.g)}${mp(this.b)}${mp((isNaN(this.opacity)?1:this.opacity)*255)}`}function T9(){const e=jC(this.opacity);return`${e===1?"rgb(":"rgba("}${Cp(this.r)}, ${Cp(this.g)}, ${Cp(this.b)}${e===1?")":`, ${e})`}`}function jC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mp(e){return e=Cp(e),(e<16?"0":"")+e.toString(16)}function k9(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ml(e,t,n,r)}function Qee(e){if(e instanceof ml)return new ml(e.h,e.s,e.l,e.opacity);if(e instanceof Hw||(e=j1(e)),!e)return new ml;if(e instanceof ml)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,c=(o+i)/2;return a?(t===o?s=(n-r)/a+(n0&&c<1?0:s,new ml(s,a,c,e.opacity)}function kLe(e,t,n,r){return arguments.length===1?Qee(e):new ml(e,t,n,r??1)}function ml(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}jj(ml,kLe,Kee(Hw,{brighter(e){return e=e==null?zC:Math.pow(zC,e),new ml(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?F1:Math.pow(F1,e),new ml(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ts(bB(e>=240?e-240:e+120,i,r),bB(e,i,r),bB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ml(A9(this.h),eS(this.s),eS(this.l),jC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jC(this.opacity);return`${e===1?"hsl(":"hsla("}${A9(this.h)}, ${eS(this.s)*100}%, ${eS(this.l)*100}%${e===1?")":`, ${e})`}`}}));function A9(e){return e=(e||0)%360,e<0?e+360:e}function eS(e){return Math.max(0,Math.min(1,e||0))}function bB(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Jee=e=>()=>e;function ALe(e,t){return function(n){return e+n*t}}function ILe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function RLe(e){return(e=+e)==1?Zee:function(t,n){return n-t?ILe(t,n,e):Jee(isNaN(t)?n:t)}}function Zee(e,t){var n=t-e;return n?ALe(e,n):Jee(isNaN(e)?t:e)}const I9=function e(t){var n=RLe(t);function r(i,o){var s=n((i=M3(i)).r,(o=M3(o)).r),a=n(i.g,o.g),c=n(i.b,o.b),u=Zee(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=a(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function vd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var L3=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xB=new RegExp(L3.source,"g");function PLe(e){return function(){return e}}function OLe(e){return function(t){return e(t)+""}}function MLe(e,t){var n=L3.lastIndex=xB.lastIndex=0,r,i,o,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=L3.exec(e))&&(i=xB.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,c.push({i:s,x:vd(r,i)})),n=xB.lastIndex;return n180?f+=360:f-u>180&&(u+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:vd(u,f)})):f&&h.push(i(h)+"rotate("+f+r)}function a(u,f,h,p){u!==f?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:vd(u,f)}):f&&h.push(i(h)+"skewX("+f+r)}function c(u,f,h,p,g,v){if(u!==h||f!==p){var y=g.push(i(g)+"scale(",null,",",null,")");v.push({i:y-4,x:vd(u,h)},{i:y-2,x:vd(f,p)})}else(h!==1||p!==1)&&g.push(i(g)+"scale("+h+","+p+")")}return function(u,f){var h=[],p=[];return u=e(u),f=e(f),o(u.translateX,u.translateY,f.translateX,f.translateY,h,p),s(u.rotate,f.rotate,h,p),a(u.skewX,f.skewX,h,p),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,h,p),u=f=null,function(g){for(var v=-1,y=p.length,S;++v=0&&e._call.call(void 0,t),e=e._next;--iv}function O9(){qp=(HC=U1.now())+pA,iv=cx=0;try{HLe()}finally{iv=0,GLe(),qp=0}}function WLe(){var e=U1.now(),t=e-HC;t>nte&&(pA-=t,HC=e)}function GLe(){for(var e,t=UC,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:UC=n);ux=e,N3(r)}function N3(e){if(!iv){cx&&(cx=clearTimeout(cx));var t=e-qp;t>24?(e<1/0&&(cx=setTimeout(O9,e-U1.now()-pA)),Bb&&(Bb=clearInterval(Bb))):(Bb||(HC=U1.now(),Bb=setInterval(WLe,nte)),iv=1,rte(O9))}}function M9(e,t,n){var r=new WC;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var VLe=zj("start","end","cancel","interrupt"),qLe=[],ote=0,L9=1,B3=2,yE=3,D9=4,$3=5,bE=6;function mA(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;XLe(e,n,{name:t,index:r,group:i,on:VLe,tween:qLe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ote})}function Hj(e,t){var n=Ol(e,t);if(n.state>ote)throw new Error("too late; already scheduled");return n}function yc(e,t){var n=Ol(e,t);if(n.state>yE)throw new Error("too late; already running");return n}function Ol(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function XLe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=ite(o,0,n.time);function o(u){n.state=L9,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var f,h,p,g;if(n.state!==L9)return c();for(f in r)if(g=r[f],g.name===n.name){if(g.state===yE)return M9(s);g.state===D9?(g.state=bE,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[f]):+fB3&&r.state<$3,r.state=bE,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function YLe(e){return this.each(function(){xE(this,e)})}function KLe(e,t){var n,r;return function(){var i=yc(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s=0&&(t=t.slice(0,n)),!t||t==="start"})}function EDe(e,t,n){var r,i,o=SDe(t)?Hj:yc;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function CDe(e,t){var n=this._id;return arguments.length<2?Ol(this.node(),n).on.on(e):this.each(EDe(n,e,t))}function TDe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function kDe(){return this.on("end.remove",TDe(this._id))}function ADe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=$j(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s()=>e;function ZDe(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Tu(e,t,n){this.k=e,this.x=t,this.y=n}Tu.prototype={constructor:Tu,scale:function(e){return e===1?this:new Tu(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Tu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var GC=new Tu(1,0,0);Tu.prototype;function wB(e){e.stopImmediatePropagation()}function $b(e){e.preventDefault(),e.stopImmediatePropagation()}function eNe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function tNe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function N9(){return this.__zoom||GC}function nNe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function rNe(){return navigator.maxTouchPoints||"ontouchstart"in this}function iNe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function _B(){var e=eNe,t=tNe,n=iNe,r=nNe,i=rNe,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,c=jLe,u=zj("start","zoom","end"),f,h,p,g=500,v=150,y=0,S=10;function w(L){L.property("__zoom",N9).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",D).on("dblclick.zoom",N).filter(i).on("touchstart.zoom",H).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(L,F,j,V){var W=L.selection?L.selection():L;W.property("__zoom",N9),L!==W?I(L,F,j,V):W.interrupt().each(function(){A(this,arguments).event(V).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},w.scaleBy=function(L,F,j,V){w.scaleTo(L,function(){var W=this.__zoom.k,K=typeof F=="function"?F.apply(this,arguments):F;return W*K},j,V)},w.scaleTo=function(L,F,j,V){w.transform(L,function(){var W=t.apply(this,arguments),K=this.__zoom,X=j==null?E(W):typeof j=="function"?j.apply(this,arguments):j,Q=K.invert(X),ie=typeof F=="function"?F.apply(this,arguments):F;return n(x(b(K,ie),X,Q),W,s)},j,V)},w.translateBy=function(L,F,j,V){w.transform(L,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),s)},null,V)},w.translateTo=function(L,F,j,V,W){w.transform(L,function(){var K=t.apply(this,arguments),X=this.__zoom,Q=V==null?E(K):typeof V=="function"?V.apply(this,arguments):V;return n(GC.translate(Q[0],Q[1]).scale(X.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof j=="function"?-j.apply(this,arguments):-j),K,s)},V,W)};function b(L,F){return F=Math.max(o[0],Math.min(o[1],F)),F===L.k?L:new Tu(F,L.x,L.y)}function x(L,F,j){var V=F[0]-j[0]*L.k,W=F[1]-j[1]*L.k;return V===L.x&&W===L.y?L:new Tu(L.k,V,W)}function E(L){return[(+L[0][0]+ +L[1][0])/2,(+L[0][1]+ +L[1][1])/2]}function I(L,F,j,V){L.on("start.zoom",function(){A(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(V).end()}).tween("zoom",function(){var W=this,K=arguments,X=A(W,K).event(V),Q=t.apply(W,K),ie=j==null?E(Q):typeof j=="function"?j.apply(W,K):j,ce=Math.max(Q[1][0]-Q[0][0],Q[1][1]-Q[0][1]),ue=W.__zoom,se=typeof F=="function"?F.apply(W,K):F,J=c(ue.invert(ie).concat(ce/ue.k),se.invert(ie).concat(ce/se.k));return function(ae){if(ae===1)ae=se;else{var le=J(ae),he=ce/le[2];ae=new Tu(he,ie[0]-le[0]*he,ie[1]-le[1]*he)}X.zoom(null,ae)}})}function A(L,F,j){return!j&&L.__zooming||new k(L,F)}function k(L,F){this.that=L,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(L,F),this.taps=0}k.prototype={event:function(L){return L&&(this.sourceEvent=L),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(L,F){return this.mouse&&L!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&L!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&L!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(L){var F=$o(this.that).datum();u.call(L,this.that,new ZDe(L,{sourceEvent:this.sourceEvent,target:w,type:L,transform:this.that.__zoom,dispatch:u}),F)}};function O(L,...F){if(!e.apply(this,arguments))return;var j=A(this,F).event(L),V=this.__zoom,W=Math.max(o[0],Math.min(o[1],V.k*Math.pow(2,r.apply(this,arguments)))),K=Hh(L);if(j.wheel)(j.mouse[0][0]!==K[0]||j.mouse[0][1]!==K[1])&&(j.mouse[1]=V.invert(j.mouse[0]=K)),clearTimeout(j.wheel);else{if(V.k===W)return;j.mouse=[K,V.invert(K)],xE(this),j.start()}$b(L),j.wheel=setTimeout(X,v),j.zoom("mouse",n(x(b(V,W),j.mouse[0],j.mouse[1]),j.extent,s));function X(){j.wheel=null,j.end()}}function D(L,...F){if(p||!e.apply(this,arguments))return;var j=L.currentTarget,V=A(this,F,!0).event(L),W=$o(L.view).on("mousemove.zoom",ie,!0).on("mouseup.zoom",ce,!0),K=Hh(L,j),X=L.clientX,Q=L.clientY;pLe(L.view),wB(L),V.mouse=[K,this.__zoom.invert(K)],xE(this),V.start();function ie(ue){if($b(ue),!V.moved){var se=ue.clientX-X,J=ue.clientY-Q;V.moved=se*se+J*J>y}V.event(ue).zoom("mouse",n(x(V.that.__zoom,V.mouse[0]=Hh(ue,j),V.mouse[1]),V.extent,s))}function ce(ue){W.on("mousemove.zoom mouseup.zoom",null),mLe(ue.view,V.moved),$b(ue),V.event(ue).end()}}function N(L,...F){if(e.apply(this,arguments)){var j=this.__zoom,V=Hh(L.changedTouches?L.changedTouches[0]:L,this),W=j.invert(V),K=j.k*(L.shiftKey?.5:2),X=n(x(b(j,K),V,W),t.apply(this,F),s);$b(L),a>0?$o(this).transition().duration(a).call(I,X,V,L):$o(this).call(w.transform,X,V,L)}}function H(L,...F){if(e.apply(this,arguments)){var j=L.touches,V=j.length,W=A(this,F,L.changedTouches.length===V).event(L),K,X,Q,ie;for(wB(L),X=0;X"u"&&(g=!0),typeof v>"u"&&(v=1/0);function E(I,A){if(I===null)return null;if(A===0)return I;var k,O;if(typeof I!="object")return I;if(n(I,r))k=new r;else if(n(I,i))k=new i;else if(n(I,o))k=new o(function(V,W){I.then(function(K){V(E(K,A-1))},function(K){W(E(K,A-1))})});else if(s.__isArray(I))k=[];else if(s.__isRegExp(I))k=new RegExp(I.source,h(I)),I.lastIndex&&(k.lastIndex=I.lastIndex);else if(s.__isDate(I))k=new Date(I.getTime());else{if(x&&Buffer.isBuffer(I))return Buffer.allocUnsafe?k=Buffer.allocUnsafe(I.length):k=new Buffer(I.length),I.copy(k),k;n(I,Error)?k=Object.create(I):typeof y>"u"?(O=Object.getPrototypeOf(I),k=Object.create(O)):(k=Object.create(y),O=y)}if(g){var D=w.indexOf(I);if(D!=-1)return b[D];w.push(I),b.push(k)}n(I,r)&&I.forEach(function(V,W){var K=E(W,A-1),X=E(V,A-1);k.set(K,X)}),n(I,i)&&I.forEach(function(V){var W=E(V,A-1);k.add(W)});for(var N in I){var H;O&&(H=Object.getOwnPropertyDescriptor(O,N)),!(H&&H.set==null)&&(k[N]=E(I[N],A-1))}if(Object.getOwnPropertySymbols)for(var G=Object.getOwnPropertySymbols(I),N=0;N1&&arguments[1]!==void 0?arguments[1]:0,n=(Vi[e[t+0]]+Vi[e[t+1]]+Vi[e[t+2]]+Vi[e[t+3]]+"-"+Vi[e[t+4]]+Vi[e[t+5]]+"-"+Vi[e[t+6]]+Vi[e[t+7]]+"-"+Vi[e[t+8]]+Vi[e[t+9]]+"-"+Vi[e[t+10]]+Vi[e[t+11]]+Vi[e[t+12]]+Vi[e[t+13]]+Vi[e[t+14]]+Vi[e[t+15]]).toLowerCase();if(!cNe(n))throw TypeError("Stringified UUID is invalid");return n}function EB(e,t,n){e=e||{};var r=e.random||(e.rng||aNe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return uNe(r)}var F3={exports:{}},z3={exports:{}},dNe=function(){for(var t=arguments.length,n=[],r=0;re.enableLegacyTransitions?de.createElement(BNe.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):de.createElement("g",{className:e.className,transform:e.transform},e.children),FNe=15,j9={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},zNe=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>de.createElement(de.Fragment,null,de.createElement("circle",{r:FNe,onClick:o=>{t(),n(o)},onMouseOver:r,onMouseOut:i}),de.createElement("g",{className:"rd3t-label"},de.createElement("text",Object.assign({className:"rd3t-label__title"},j9.title),e.name),de.createElement("text",{className:"rd3t-label__attributes"},e.attributes&&Object.entries(e.attributes).map(([o,s],a)=>de.createElement("tspan",Object.assign({key:`${o}-${a}`},j9.attribute),o,": ",typeof s=="boolean"?s.toString():s)))));let jNe=class extends de.Component{constructor(){super(...arguments),this.nodeRef=null,this.state={transform:this.setTransform(this.props.position,this.props.parent,this.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},this.shouldNodeTransform=(t,n,r,i)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation||i.wasClicked!==r.wasClicked,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:zNe,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut,addChildren:this.handleAddChildren};return i(o)},this.handleNodeToggle=()=>{this.setState({wasClicked:!0}),this.props.onNodeToggle(this.props.data.__rd3t.id)},this.handleOnClick=t=>{this.setState({wasClicked:!0}),this.props.onNodeClick(this.props.hierarchyPointNode,t)},this.handleOnMouseOver=t=>{this.props.onNodeMouseOver(this.props.hierarchyPointNode,t)},this.handleOnMouseOut=t=>{this.props.onNodeMouseOut(this.props.hierarchyPointNode,t)},this.handleAddChildren=t=>{this.props.handleAddChildrenToNode(this.props.data.__rd3t.id,t)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t,n){return this.shouldNodeTransform(this.props,t,this.state,n)}setTransform(t,n,r,i=!1){if(i){const o=n!=null,s=o?n.x:0,a=o?n.y:0;return r==="horizontal"?`translate(${a},${s})`:`translate(${s},${a})`}return r==="horizontal"?`translate(${t.y},${t.x})`:`translate(${t.x},${t.y})`}applyTransform(t,n,r=1,i=()=>{}){this.props.enableLegacyTransitions?$o(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):($o(this.nodeRef).attr("transform",t).style("opacity",r),i())}commitTransform(){const{orientation:t,transitionDuration:n,position:r,parent:i}=this.props,o=this.setTransform(r,i,t);this.applyTransform(o,n)}componentWillLeave(t){const{orientation:n,transitionDuration:r,position:i,parent:o}=this.props,s=this.setTransform(i,o,n,!0);this.applyTransform(s,r,0,t)}render(){const{data:t,nodeClassName:n}=this.props;return de.createElement("g",{id:t.__rd3t.id,ref:r=>{this.nodeRef=r},style:this.state.initialStyle,className:[t.children&&t.children.length>0?"rd3t-node":"rd3t-leaf-node",n].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())}};var W3=Math.PI,G3=2*W3,np=1e-6,UNe=G3-np;function V3(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _te(){return new V3}V3.prototype=_te.prototype={constructor:V3,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,a=n-e,c=r-t,u=o-e,f=s-t,h=u*u+f*f;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>np)if(!(Math.abs(f*a-c*u)>np)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-o,g=r-s,v=a*a+c*c,y=p*p+g*g,S=Math.sqrt(v),w=Math.sqrt(h),b=i*Math.tan((W3-Math.acos((v+h-y)/(2*S*w)))/2),x=b/w,E=b/S;Math.abs(x-1)>np&&(this._+="L"+(e+x*u)+","+(t+x*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>u*g)+","+(this._x1=e+E*a)+","+(this._y1=t+E*c)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var s=n*Math.cos(r),a=n*Math.sin(r),c=e+s,u=t+a,f=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+c+","+u:(Math.abs(this._x1-c)>np||Math.abs(this._y1-u)>np)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%G3+G3),h>UNe?this._+="A"+n+","+n+",0,1,"+f+","+(e-s)+","+(t-a)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=u):h>np&&(this._+="A"+n+","+n+",0,"+ +(h>=W3)+","+f+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function U9(e){return function(){return e}}function HNe(e){return e[0]}function WNe(e){return e[1]}var GNe=Array.prototype.slice;function VNe(e){return e.source}function qNe(e){return e.target}function Ste(e){var t=VNe,n=qNe,r=HNe,i=WNe,o=null;function s(){var a,c=GNe.call(arguments),u=t.apply(this,c),f=n.apply(this,c);if(o||(o=a=_te()),e(o,+r.apply(this,(c[0]=u,c)),+i.apply(this,c),+r.apply(this,(c[0]=f,c)),+i.apply(this,c)),a)return o=null,a+""||null}return s.source=function(a){return arguments.length?(t=a,s):t},s.target=function(a){return arguments.length?(n=a,s):n},s.x=function(a){return arguments.length?(r=typeof a=="function"?a:U9(+a),s):r},s.y=function(a){return arguments.length?(i=typeof a=="function"?a:U9(+a),s):i},s.context=function(a){return arguments.length?(o=a??null,s):o},s}function XNe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function YNe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function KNe(){return Ste(XNe)}function QNe(){return Ste(YNe)}class JNe extends de.PureComponent{constructor(){super(...arguments),this.linkRef=null,this.state={initialStyle:{opacity:0}},this.handleOnClick=t=>{this.props.onClick(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOver=t=>{this.props.onMouseOver(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOut=t=>{this.props.onMouseOut(this.props.linkData.source,this.props.linkData.target,t)}}componentDidMount(){this.applyOpacity(1,this.props.transitionDuration)}componentWillLeave(t){this.applyOpacity(0,this.props.transitionDuration,t)}applyOpacity(t,n,r=()=>{}){this.props.enableLegacyTransitions?$o(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):($o(this.linkRef).style("opacity",t),r())}drawStepPath(t,n){const{source:r,target:i}=t,o=i.y-r.y;return n==="horizontal"?`M${r.y},${r.x} H${r.y+o/2} V${i.x} H${i.y}`:`M${r.x},${r.y} V${r.y+o/2} H${i.x} V${i.y}`}drawDiagonalPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?KNe()({source:[r.y,r.x],target:[i.y,i.x]}):QNe()({source:[r.x,r.y],target:[i.x,i.y]})}drawStraightPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?`M${r.y},${r.x}L${i.y},${i.x}`:`M${r.x},${r.y}L${i.x},${i.y}`}drawElbowPath(t,n){return n==="horizontal"?`M${t.source.y},${t.source.x}V${t.target.x}H${t.target.y}`:`M${t.source.x},${t.source.y}V${t.target.y}H${t.target.x}`}drawPath(){const{linkData:t,orientation:n,pathFunc:r}=this.props;return typeof r=="function"?r(t,n):r==="elbow"?this.drawElbowPath(t,n):r==="straight"?this.drawStraightPath(t,n):r==="step"?this.drawStepPath(t,n):this.drawDiagonalPath(t,n)}getClassNames(){const{linkData:t,orientation:n,pathClassFunc:r}=this.props,i=["rd3t-link"];return typeof r=="function"&&i.push(r(t,n)),i.join(" ").trim()}render(){const{linkData:t}=this.props;return de.createElement("path",{ref:n=>{this.linkRef=n},style:Object.assign({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":t.source.id,"data-target-id":t.target.id})}}const ZNe=` +/* Tree */ +.rd3t-tree-container { + width: 100%; + height: 100%; +} + +.rd3t-grabbable { + cursor: move; /* fallback if grab cursor is unsupported */ + cursor: grab; + cursor: -moz-grab; + cursor: -webkit-grab; +} +.rd3t-grabbable:active { + cursor: grabbing; + cursor: -moz-grabbing; + cursor: -webkit-grabbing; +} + +/* Node */ +.rd3t-node { + cursor: pointer; + fill: #777; + stroke: #000; + stroke-width: 2; +} + +.rd3t-leaf-node { + cursor: pointer; + fill: transparent; + stroke: #000; + stroke-width: 1; +} + +.rd3t-label__title { + fill: #000; + stroke: none; + font-weight: bolder; +} + +.rd3t-label__attributes { + fill: #777; + stroke: none; + font-weight: bolder; + font-size: smaller; +} + +/* Link */ +.rd3t-link { + fill: none; + stroke: #000; +} +`;let Ete=class tl extends de.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:tl.assignInternalProperties(Oo(this.props.data)),d3:tl.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0,dataKey:this.props.dataKey},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${EB()}`,this.gInstanceRef=`rd3t-g-${EB()}`,this.handleNodeToggle=t=>{const n=Oo(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?(tl.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):tl.collapseNode(i),this.props.enableLegacyTransitions?(this.setState({data:n,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:n}),this.internalState.targetNode=i)},this.handleAddChildrenToNode=(t,n)=>{const r=Oo(this.state.data),i=this.findNodesById(t,r,[]);if(i.length>0){const o=i[0],s=o.__rd3t.depth,a=Oo(n).map(c=>tl.assignInternalProperties([c],s+1));o.children.push(...a.flat()),this.setState({data:r})}},this.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const s=$o(`.${this.gInstanceRef}`),a=$o(`.${this.svgInstanceRef}`),c=this.state.d3.scale;let u,f;r==="horizontal"?(f=-t.x*c+n.height/2,u=-t.y*c+n.width/2):(u=-t.x*c+n.width/2,f=-t.y*c+n.height/2),s.transition().duration(o).attr("transform","translate("+u+","+f+")scale("+c+")"),a.call(_B().transform,GC.translate(u,f).scale(i))}},this.getNodeClassName=(t,n)=>{const{rootNodeClassName:r,branchNodeClassName:i,leafNodeClassName:o}=this.props;return t!=null?n.children?i:o:r}}static getDerivedStateFromProps(t,n){let r=null;const i=!t.dataKey||n.dataKey!==t.dataKey;t.data!==n.dataRef&&i&&(r={dataRef:t.data,data:tl.assignInternalProperties(Oo(t.data)),isInitialRenderForDataset:!0,dataKey:t.dataKey});const o=tl.calculateD3Geometry(t);return Gx(o,n.d3)||(r=r||{},r.d3=o),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!Gx(this.props.translate,t.translate)||!Gx(this.props.scaleExtent,t.scaleExtent)||this.props.zoomable!==t.zoomable||this.props.draggable!==t.draggable||this.props.zoom!==t.zoom||this.props.enableLegacyTransitions!==t.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?Oo(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(t,n){t.forEach(r=>{r.data.__rd3t.collapsed=r.depth>=n})}bindZoomListener(t){const{zoomable:n,scaleExtent:r,translate:i,zoom:o,onUpdate:s,hasInteractiveNodes:a}=t,c=$o(`.${this.svgInstanceRef}`),u=$o(`.${this.gInstanceRef}`);c.call(_B().transform,GC.translate(i.x,i.y).scale(o)),c.call(_B().scaleExtent(n?[r.min,r.max]:[o,o]).filter(f=>a?f.target.classList.contains(this.svgInstanceRef)||f.target.classList.contains(this.gInstanceRef)||f.shiftKey:!0).on("zoom",f=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(f.sourceEvent.type)||(u.attr("transform",f.transform),typeof s=="function"&&(s({node:null,zoom:f.transform.k,translate:{x:f.transform.x,y:f.transform.y}}),this.state.d3.scale=f.transform.k,this.state.d3.translate={x:f.transform.x,y:f.transform.y}))}))}static assignInternalProperties(t,n=0){return(Array.isArray(t)?t:[t]).map(i=>{const o=i;return o.__rd3t={id:null,depth:null,collapsed:!1},o.__rd3t.id=EB(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=tl.assignInternalProperties(o.children,n+1)),o})}findNodesById(t,n,r){return r.length>0||(r=r.concat(n.filter(i=>i.__rd3t.id===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesById(t,i.children,r))})),r}findNodesAtDepth(t,n,r){return r=r.concat(n.filter(i=>i.__rd3t.depth===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesAtDepth(t,i.children,r))}),r}static collapseNode(t){t.__rd3t.collapsed=!0,t.children&&t.children.length>0&&t.children.forEach(n=>{tl.collapseNode(n)})}static expandNode(t){t.__rd3t.collapsed=!1}collapseNeighborNodes(t,n){this.findNodesAtDepth(t.__rd3t.depth,n,[]).filter(i=>i.__rd3t.id!==t.__rd3t.id).forEach(i=>tl.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:s}=this.state,c=POe().nodeSize(o==="horizontal"?[i.y,i.x]:[i.x,i.y]).separation((h,p)=>h.parent.data.__rd3t.id===p.parent.data.__rd3t.id?r.siblings:r.nonSiblings)(Bj(this.state.data[0],h=>h.__rd3t.collapsed?null:h.children));let u=c.descendants();const f=c.links();return t!==void 0&&s&&this.setInitialTreeDepth(u,t),n&&u.forEach(h=>{h.y=h.depth*n}),{nodes:u,links:f}}static calculateD3Geometry(t){let n;return t.zoom>t.scaleExtent.max?n=t.scaleExtent.max:t.zoomde.createElement(JNe,{key:"link-"+b,orientation:i,pathFunc:o,pathClassFunc:g,linkData:w,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:h,transitionDuration:s})),t.map((w,b)=>{const{data:x,x:E,y:I,parent:A}=w;return de.createElement(jNe,{key:"node-"+b,data:x,position:{x:E,y:I},hierarchyPointNode:w,parent:A,nodeClassName:this.getNodeClassName(A,x),renderCustomNodeElement:r,nodeSize:a,orientation:i,enableLegacyTransitions:h,transitionDuration:s,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:S,centerNode:this.centerNode})}))))}};Ete.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};function H1(){return H1=Object.assign||function(e){for(var t=1;tawait mBe(e),[e])}function vBe(e,t){const n=R.useMemo(()=>e,t);return gBe(n)}const yBe=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}}),bBe=Ete;function kte(e,t=!1){const[n,r]=R.useState();return R.useEffect(()=>{t||e&&r(e)},[e,t]),n}const W9={small:{value:0,name:"Current",description:"Show the current node and its parents"},medium:{value:4,name:"Nearby",description:"Show nodes with ≤4 degrees of separation"},infinite:{value:void 0,name:"All",description:"Show all nodes, may impact performance"}};function xBe(){var w,b,x,E,I;const{palette:e}=Dn(),{key:t,setKey:n,layer:r,setLayer:i,layers:o}=Vp(),s=XQ(((w=r==null?void 0:r.source)==null?void 0:w.step)??0,600),{controls:a,onChange:c,state:u}=bf(),[f,h]=R.useState("small"),p=T1({"&.rd3t-link":{stroke:kn(e.text.primary,e.action.disabledOpacity)}}),{result:g,loading:v}=vBe({trace:(x=(b=r==null?void 0:r.source)==null?void 0:b.trace)==null?void 0:x.content,step:s,radius:W9[f].value},[s,r,f]),y=kte(g,v),S=R.useCallback(()=>p,[p]);return C.jsxs(zn,{onChange:c,stack:u,children:[C.jsx(zn.Content,{children:C.jsx(En,{children:(I=(E=r==null?void 0:r.source)==null?void 0:E.trace)!=null&&I.content&&(y!=null&&y.tree)?C.jsx(Zk,{children:({width:A,height:k})=>C.jsx(ht,{width:A,height:k,children:C.jsx(bBe,{scaleExtent:{max:10,min:.01},translate:{x:A/2,y:A/2},data:y.tree,dimensions:{width:A,height:k},separation:{siblings:.4,nonSiblings:.4},pathClassFunc:S,renderCustomNodeElement:({nodeDatum:O,onNodeClick:D})=>{var N;return C.jsx(wBe,{node:O,onClick:()=>D==null?void 0:D({}),step:(N=r==null?void 0:r.source)==null?void 0:N.step,onStep:H=>i(Ta(r,G=>{te.set(G,"source.step",H)}))})}})})}):C.jsx(pp,{icon:C.jsx(FQ,{}),label:"Tree"})})})," ",C.jsxs(zn.Options,{children:[C.jsx(Gs,{icon:C.jsx(Cw,{}),label:"Layer",value:t,items:te.map(o,A=>({id:A.key,name:ga(A)})),onChange:n,showArrow:!0}),yBe,C.jsx(Gs,{icon:C.jsx(V1e,{}),label:"Radius",value:f,onChange:A=>h(A),items:te.map(te.entries(W9),([A,k])=>({id:A,...k})),showArrow:!0})]}),C.jsx(zn.Extras,{children:a})]})}const Fb=16,hu=4;function wBe({onClick:e,node:t,step:n=0,onStep:r}){var f;const{palette:i,spacing:o,shape:s}=Dn(),a=te.findLast(t==null?void 0:t.events,h=>h.step<=n),c=!!te.find(t==null?void 0:t.events,h=>h.step===n),u=B1((f=a==null?void 0:a.data)==null?void 0:f.type);return C.jsx(rm,{variant:"popover",children:h=>{var p,g;return C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:`f: ${((p=a==null?void 0:a.data)==null?void 0:p.f)??"unknown"}, g: ${((g=a==null?void 0:a.data)==null?void 0:g.g)??"unknown"}`,children:C.jsxs("g",{onClick:v=>{h.open(v)},children:[C.jsx("clipPath",{id:"clipPath",children:C.jsx("rect",{y:o(-hu/2),x:o(-.25),strokeWidth:0,width:o(Fb),height:o(hu),rx:s.borderRadius})}),C.jsx("rect",{y:o(-hu/2),x:o(-.25),strokeWidth:0,fill:i.background.default,width:o(Fb),height:o(hu),clipPath:"url(#clipPath)"}),c&&C.jsx("rect",{y:o(-hu/2),x:o(-.25),strokeWidth:0,fill:kn(i.primary.main,i.action.selectedOpacity),width:o(Fb),height:o(hu),clipPath:"url(#clipPath)"}),C.jsx("rect",{x:o(-.25),y:o(-hu/2),height:o(hu),width:o(.5),fill:u,strokeWidth:0,clipPath:"url(#clipPath)"}),C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.primary,y:0,fontWeight:500,fontSize:"0.875rem",x:o(2-.25),alignmentBaseline:"central",children:t==null?void 0:t.name}),!!(t!=null&&t.cumulativeChildCount)&&C.jsxs(C.Fragment,{children:[C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.secondary,y:0,x:o(Fb-2.25-1),textAnchor:"end",fontWeight:400,fontSize:"0.875rem",alignmentBaseline:"central",children:t==null?void 0:t.cumulativeChildCount}),C.jsx(C1e,{width:o(2),height:o(2),x:o(Fb-2-1),y:o(-hu/2+1),strokeWidth:0,fill:i.text.primary,opacity:i.action.disabledOpacity})]})]})}),C.jsx(nm,{anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{horizontal:"center",vertical:"top"},...$w(h),children:C.jsx(zk,{dense:!0,sx:{p:0},children:te.map(t==null?void 0:t.events,v=>C.jsx(Ru,{selected:v.step===n,sx:{borderLeft:`4px solid ${B1(v.data.type)}`},onClick:()=>{h.close(),e==null||e(),te.delay(()=>r==null?void 0:r(v.step),150)},children:C.jsx(zz,{primary:te.startCase(v.data.type),secondary:`Step ${v.step}`})}))})})]})}})}function _Be({selection:e,onClose:t}){const n=SBe(),r=kte(e),{client:i}=e??{};return C.jsx(nm,{open:!!e,anchorReference:"anchorPosition",anchorPosition:{top:(i==null?void 0:i.y)??0,left:(i==null?void 0:i.x)??0},onClose:t,keepMounted:!0,children:C.jsx(zk,{dense:!0,sx:{py:0},children:C.jsx(n,{event:r,children:o=>{const s=te.entries(o);return s.length?te.chain(s).sortBy(([,a])=>a.index).map(([,{items:a,primary:c}],u)=>C.jsxs(C.Fragment,{children:[!!u&&C.jsx(Ku,{sx:{my:1,mx:2}}),c&&C.jsx(Bx,{sx:{py:0},children:C.jsx(jt,{color:"text.secondary",variant:"overline",children:c})}),te.chain(a).entries().sortBy(([,f])=>f.index).map(([f,{action:h,icon:p,primary:g,secondary:v}])=>h?C.jsxs(Ru,{onClick:()=>{h(),t==null||t()},children:[p&&C.jsx(Wd,{children:p}),C.jsx(rc,{primary:g,sx:{mr:4}}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:v})]},f):C.jsxs(Bx,{children:[p&&C.jsx(Wd,{children:p}),C.jsx(rc,{primary:g,sx:{mr:4}}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:v})]},f)).value()]})).value():C.jsx(C.Fragment,{children:C.jsx(Bx,{children:C.jsx(jt,{children:"No info to show."})})})}})})})}const G9=({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e({})});function SBe(){const[{layers:e}]=im();return R.useMemo(()=>te.chain(e).reduce((t,n)=>{var i;const r=((i=wne(n))==null?void 0:i.getSelectionInfo)??G9;return({children:o,event:s})=>C.jsx(r,{layer:n.key,event:s,children:a=>C.jsx(t,{event:s,children:c=>o==null?void 0:o(te.merge(a,c))})})},G9).value(),[e])}const[vA,EBe]=mc([],{reduce:YQ}),CBe={tileSubdivision:1,workerCount:8,tileResolution:{width:te.round(256*devicePixelRatio),height:te.round(256*devicePixelRatio)}},Ate=R.createContext({});function TBe(){return R.useContext(Ate)}function kBe(e,{width:t,height:n}={}){const r=Dn(),[i]=vA(),o=R.useRef(null),[s,a]=R.useState(""),[c,u]=R.useState();return R.useEffect(()=>{if(a(""),o.current&&t&&n&&e){const f=te.find(i,h=>h.renderer.meta.id===e);if(f){const h=new f.renderer.constructor;return h.setup({...CBe,screenSize:{width:t,height:n},backgroundColor:r.palette.background.paper,accentColor:r.palette.primary.main}),o.current.append(h.getView()),u(h),()=>{var p,g;try{(g=(p=o.current)==null?void 0:p.removeChild)==null||g.call(p,h.getView()),u(void 0)}catch(v){console.warn(v)}finally{h.destroy()}}}}},[o.current,te.map,e,i,r,a,u]),hwe(()=>{c&&t&&n&&c.setOptions({screenSize:{width:t,height:n}})},r.transitions.duration.standard,[c,t,n]),{instance:c,ref:o,error:s}}function ABe(){const[{map:e,specimen:t}]=cA();return!!(e||t)&&C.jsx(Sw,{sx:{position:"absolute",top:n=>n.spacing(6+2),right:n=>n.spacing(2)}})}function IBe({width:e,height:t,renderer:n,rendererRef:r,layers:i}){const{instance:o,error:s,ref:a}=kBe(n,{width:e,height:t}),[c,u]=R.useState();R.useEffect(()=>{if(o){const h=(p,g)=>{const v=p;u({client:{x:v.clientX,y:v.clientY},world:g.world,info:{point:g.world,components:g.components}})};return o.on("click",h),()=>void o.off("click",h)}},[o]);const f=R.useMemo(()=>({renderer:o}),[o]);return R.useEffect(()=>r==null?void 0:r(o),[o,r]),C.jsxs(C.Fragment,{children:[C.jsx(ABe,{}),C.jsx(Ate.Provider,{value:f,children:i!=null&&i.length?s?C.jsxs(ht,{sx:{display:"flex",flexDirection:"column",width:e,height:t,alignItems:"center",justifyContent:"center",color:"text.secondary"},children:[C.jsx(_1e,{sx:{mb:2},fontSize:"large"}),s]}):C.jsx(C.Fragment,{children:C.jsx(ht,{ref:a,children:i.map(h=>C.jsx(qFe,{layer:h},h.key))})}):C.jsx(pp,{icon:C.jsx(WQ,{}),label:"No layers to render",width:e,height:t})}),C.jsx(_Be,{selection:c,onClose:()=>u(void 0)})]})}function W1({nodes:e}){const{renderer:t}=TBe();return R.useEffect(()=>{if(t&&(e!=null&&e.length))return t.add(e.flat())},[t,e]),C.jsx(C.Fragment,{})}function RBe({nodes:e,step:t}){const r=te.floor((t??0)/200)*200,i=R.useMemo(()=>te.slice(e,0,r),[e,r]),o=R.useMemo(()=>te.slice(e,r,(t??0)+1),[e,r,t]);return C.jsxs(C.Fragment,{children:[!!r&&C.jsx(W1,{nodes:i}),C.jsx(W1,{nodes:o})]})}const yA=({variables:e},{x:t,y:n})=>(e==null?void 0:e.x)===t&&(e==null?void 0:e.y)===n,PBe=""+new URL("parseGrid.worker-d5269b43.js",import.meta.url).href;class OBe extends Worker{constructor(){super(PBe,{type:"module"})}}const MBe=Rv(OBe),{floor:V9}=Math;function q9(e,t,n){return e>=t&&e({...await MBe({map:e,options:t})}),{normalizer:JSON.stringify}),DBe=e=>{const{width:t,height:n}=e.bounds;return{...e,snap:({x:r,y:i},o=1)=>{const[s,a]=[V9(r+o/2),V9(i+o/2)];if(q9(s,0,t)&&q9(a,0,n))return{x:s,y:a}},nodeAt:r=>{const{x:i,y:o}=r;return o*t+i},pointOf:r=>({x:r%t,y:~~(r/t)}),matchNode:yA}},NBe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:DBe,parse:LBe},Symbol.toStringTag,{value:"Module"})),BBe=""+new URL("parseMesh.worker-114081b8.js",import.meta.url).href;class $Be extends Worker{constructor(){super(BBe,{type:"module"})}}const FBe=Rv($Be),zBe=_f(async(e="",t)=>await FBe({map:e,options:t}),{normalizer:JSON.stringify}),jBe=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:yA}),UBe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:jBe,parse:zBe},Symbol.toStringTag,{value:"Module"})),HBe=""+new URL("parseNetwork.worker-0345a67d.js",import.meta.url).href;class WBe extends Worker{constructor(){super(HBe,{type:"module"})}}const GBe=Rv(WBe),VBe=_f(async(e="",t)=>await GBe({map:e,options:t}),{normalizer:JSON.stringify}),qBe=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:yA}),XBe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:qBe,parse:VBe},Symbol.toStringTag,{value:"Module"})),YBe=""+new URL("parsePoly.worker-bf1460fa.js",import.meta.url).href;class KBe extends Worker{constructor(){super(YBe,{type:"module"})}}const QBe=Rv(KBe),JBe=_f(async(e="",t)=>await QBe({map:e,options:t}),{normalizer:JSON.stringify}),ZBe=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:yA}),e$e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:ZBe,parse:JBe},Symbol.toStringTag,{value:"Module"})),Kj={grid:NBe,xy:XBe,mesh:UBe,poly:e$e};function Qj(e=""){return Kj[e]}const Ite=(e,t,n)=>{const r=R.useRef(n||[]),o=r.current===n||!r.current.every((a,c)=>a===n[c]);r.current=n;const s=t.map(()=>null);return R.useEffect(o?()=>void e():()=>{},o?t:s)};function t$e(e,t){return te.zip(e,t).every(([n,r])=>n===r)}const n$e=(e,t=[],n=[])=>{const[r,i]=R.useState(t),[o,s]=R.useState(n);return R.useEffect(()=>{t$e(o,n)||(i(t),s(n))},[t,n,o]),Tte(e,[...r,...o])};function Jj(){const[e]=nv();return R.useCallback(t=>te.find(e,t),[e])}function r$e(e){return Jj()({url:e})}function i$e(e){const t=gc(),n=om("map"),r=Jj(),i=R.useMemo(()=>_f(async({source:c,id:u}={})=>{if(c&&u){const f=r({url:c});if(f){t("Fetching map...");const h=await f.call("features/map",{id:u});return h==null?void 0:h.content}}},{normalizer:JSON.stringify}),[r,t]),{content:o,source:s,id:a}=e??{};return Ww(()=>n(async()=>{if(a)return{...e,content:o||await i({source:s,id:a})}}),[i,o,s,a])}function o$e(e){const t=gc(),n=Dn(),r=om("map"),{format:i,content:o}=e??{};return Ww(()=>r(async()=>{var a,c;const s=n.palette.mode==="dark"?bv:yv;if(i&&o){t("Processing map...");const u=await((c=(a=Qj(i))==null?void 0:a.parse)==null?void 0:c.call(a,o,{color:s(n.palette.background.paper,1-n.palette.action.hoverOpacity)}))??{nodes:[]};return t("Map loaded",`${u.nodes.length} elements, ${u.log.join(", ")}`),u}}),[i,o,n])}const Rte=({label:e})=>C.jsx(jt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:e}),s$e=({label:e})=>C.jsx(jt,{variant:"body1",children:e}),G1=({label:e,content:t})=>C.jsxs(En,{alignItems:"center",children:[C.jsx(s$e,{label:e}),C.jsx(ai,{flex:1}),t]}),a$e={key:"map",inferName:e=>{var t;return(t=e==null?void 0:e.source)!=null&&t.map?`${e.source.map.name} (${te.startCase(e.source.map.format)})`:"Untitled Map"},editor:Jg(({value:e,produce:t})=>{var n;return C.jsx(C.Fragment,{children:C.jsx(G1,{label:"Source",content:C.jsx(sOe,{value:(n=e==null?void 0:e.source)==null?void 0:n.map,onChange:r=>t(i=>te.set(i,"source.map",r))})})})}),renderer:({layer:e})=>{var r;const{nodes:t}=((r=e==null?void 0:e.source)==null?void 0:r.parsedMap)??{},n=R.useMemo(()=>[t??[]],[t]);return C.jsx(W1,{nodes:n})},steps:({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e([])}),service:Jg(({value:e,produce:t})=>{var i;const{result:n}=i$e((i=e==null?void 0:e.source)==null?void 0:i.map),{result:r}=o$e(n);return Ite(()=>void t(o=>te.set(o,"source.parsedMap",r)),[r,t],[r]),C.jsx(C.Fragment,{})}),getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=Vp(n),{parsedMap:s}=(r==null?void 0:r.source)??{},{point:a,node:c}=R.useMemo(()=>{var f,h,p,g;if(s&&t){const v=(g=(p=Qj((h=(f=r==null?void 0:r.source)==null?void 0:f.map)==null?void 0:h.format))==null?void 0:p.hydrate)==null?void 0:g.call(p,s);if(v){const y=(t==null?void 0:t.world)&&v.snap(t.world);if(y){const S=(t==null?void 0:t.world)&&v.nodeAt(y);return{point:y,node:S}}}}return{}},[s,t]),u=R.useMemo(()=>({...r&&a&&!te.isUndefined(c)&&{[r.key]:{primary:ga(r),items:{point:{primary:"Point",secondary:`(${te.round(a.x,2)}, ${te.round(a.y,2)})`}}}}}),[a,c,r,o,i]);return C.jsx(C.Fragment,{children:e==null?void 0:e(u)})}};var TB=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Mo,wE,l$e={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},cd;function kB(e){return TB.lastIndex=0,TB.test(e)?'"'+e.replace(TB,function(t){var n=l$e[t];return typeof n=="string"?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function _E(e,t,n){var r,i,o,s,a=Mo,c,u=t[e];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(e)),typeof cd=="function"&&(u=cd.call(t,e,u)),typeof u){case"string":return kB(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(Mo+=wE,c=[],Object.prototype.toString.apply(u)==="[object Array]"){for(s=u.length,r=0;rn?`[ +`+Mo+c.join(`, +`+Mo)+` +`+a+"]":"[ "+c.join(", ")+" ]":"["+c.join(",")+"]",Mo=a,o}if(cd&&typeof cd=="object")for(s=cd.length,r=0;rn?`{ +`+Mo+c.join(`, +`+Mo)+` +`+a+"}":"{ "+c.join(", ")+" }":"{"+c.join(",")+"}",Mo=a,o}}function c$e(e,t,n,r){var i;if(Mo="",wE="",r||(r=0),typeof r!="number")throw new Error("beaufifier: limit must be a number");if(typeof n=="number")for(i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function SE(e,t,n){return Ote()?SE=Reflect.construct:SE=function(i,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(i,a),u=new c;return s&&V1(u,s.prototype),u},SE.apply(null,arguments)}function f$e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function q3(e){var t=typeof Map=="function"?new Map:void 0;return q3=function(r){if(r===null||!f$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return SE(r,arguments,io(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),V1(i,r)},q3(e)}function la(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mte(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:la(e)}function ar(e){var t=Ote();return function(){var r=io(e),i;if(t){var o=io(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mte(this,i)}}function h$e(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=io(e),e!==null););return e}function ls(e,t,n){return typeof Reflect<"u"&&Reflect.get?ls=Reflect.get:ls=function(i,o,s){var a=h$e(i,o);if(a){var c=Object.getOwnPropertyDescriptor(a,o);return c.get?c.get.call(s):c.value}},ls(e,t,n||e)}function Gw(e,t){return Lte(e)||m$e(e,t)||Zj(e,t)||Dte()}function zb(e){return Lte(e)||p$e(e)||Zj(e)||Dte()}function Lte(e){if(Array.isArray(e))return e}function p$e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function m$e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function Zj(e,t){if(e){if(typeof e=="string")return Y9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y9(e,t)}}function Y9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Zj(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}var ni={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},Se={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},EE="tag:yaml.org,2002:",Rd={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function K9(e){for(var t=[0],n=e.indexOf(` `);n!==-1;)n+=1,t.push(n),n=e.indexOf(` -`,n);return t}function pee(e){var t,n;return typeof e=="string"?(t=rG(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=rG(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function T3(e,t){if(typeof e!="number"||e<0)return null;var n=pee(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o=1)||e>r.length)return null;for(var o=r[e-1],s=r[e];s&&s>o&&i[s-1]===` -`;)--s;return i.slice(o,s)}function GRe(e,t){var n=e.start,r=e.end,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,o=WRe(n.line,t);if(!o)return null;var s=n.col;if(o.length>i)if(s<=i-10)o=o.substr(0,i-1)+"…";else{var a=Math.round(i/2);o.length>s+a&&(o=o.substr(0,s+a-1)+"…"),s-=o.length-i,o="…"+o.substr(1-i)}var c=1,u="";r&&(r.line===n.line&&s+(r.col-n.col)<=i+1?c=r.col-n.col:(c=Math.min(o.length+1,i)-s,u="…"));var f=s>1?" ".repeat(s-1):"",h="^".repeat(c);return"".concat(o,` +`,n);return t}function Nte(e){var t,n;return typeof e=="string"?(t=K9(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=K9(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function X3(e,t){if(typeof e!="number"||e<0)return null;var n=Nte(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o=1)||e>r.length)return null;for(var o=r[e-1],s=r[e];s&&s>o&&i[s-1]===` +`;)--s;return i.slice(o,s)}function v$e(e,t){var n=e.start,r=e.end,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,o=g$e(n.line,t);if(!o)return null;var s=n.col;if(o.length>i)if(s<=i-10)o=o.substr(0,i-1)+"…";else{var a=Math.round(i/2);o.length>s+a&&(o=o.substr(0,s+a-1)+"…"),s-=o.length-i,o="…"+o.substr(1-i)}var c=1,u="";r&&(r.line===n.line&&s+(r.col-n.col)<=i+1?c=r.col-n.col:(c=Math.min(o.length+1,i)-s,u="…"));var f=s>1?" ".repeat(s-1):"",h="^".repeat(c);return"".concat(o,` `).concat(f).concat(h).concat(u)}var Er=function(){function e(t,n){xn(this,e),this.start=t,this.end=n||t}return Yn(e,[{key:"isEmpty",value:function(){return typeof this.start!="number"||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(n,r){var i=this.start,o=this.end;if(n.length===0||o<=n[0])return this.origStart=i,this.origEnd=o,r;for(var s=r;si);)++s;this.origStart=i+s;for(var a=s;s=o);)++s;return this.origEnd=o+s,a}}],[{key:"copy",value:function(n){return new e(n.start,n.end)}}]),e}(),Qe=function(){function e(t,n,r){xn(this,e),Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return Yn(e,[{key:"getPropValue",value:function(n,r,i){if(!this.context)return null;var o=this.context.src,s=this.props[n];return s&&o[s.start]===r?o.slice(s.start+(i?1:0),s.end):null}},{key:"anchor",get:function(){for(var n=0;n0?n.join(` -`):null}},{key:"commentHasRequiredWhitespace",value:function(n){var r=this.context.src;if(this.header&&n===this.header.end||!this.valueRange)return!1;var i=this.valueRange.end;return n!==i||e.atBlank(r,i-1)}},{key:"hasComment",get:function(){if(this.context){for(var n=this.context.src,r=0;r=n.length||n[o]===` `?i+` @@ -469,37 +536,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `?r-1:e.endOfWhiteSpace(n,r):r}},{key:"foldNewline",value:function(n,r,i){for(var o=0,s=!1,a="",c=n[r+1];c===" "||c===" "||c===` `;){switch(c){case` `:o=0,r+=1,a+=` -`;break;case" ":o<=i&&(s=!0),r=e.endOfWhiteSpace(n,r+2)-1;break;case" ":o+=1,r+=1;break}c=n[r+1]}return a||(a=" "),c&&o<=i&&(s=!0),{fold:a,offset:r,error:s}}}]),e}(),tv=function(e){sr(n,e);var t=ar(n);function n(r,i,o){var s;if(xn(this,n),!o||!(i instanceof Qe))throw new Error("Invalid arguments for new ".concat(r));return s=t.call(this),s.name=r,s.message=o,s.source=i,s}return Yn(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var i=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Er(this.offset,this.offset+1);var o=i&&T3(this.offset,i);if(o){var s={line:o.line,col:o.col+1};this.linePos={start:o,end:s}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var a=this.linePos.start,c=a.line,u=a.col;this.message+=" at line ".concat(c,", column ").concat(u);var f=i&&GRe(this.linePos,i);f&&(this.message+=`: +`;break;case" ":o<=i&&(s=!0),r=e.endOfWhiteSpace(n,r+2)-1;break;case" ":o+=1,r+=1;break}c=n[r+1]}return a||(a=" "),c&&o<=i&&(s=!0),{fold:a,offset:r,error:s}}}]),e}(),ov=function(e){sr(n,e);var t=ar(n);function n(r,i,o){var s;if(xn(this,n),!o||!(i instanceof Qe))throw new Error("Invalid arguments for new ".concat(r));return s=t.call(this),s.name=r,s.message=o,s.source=i,s}return Yn(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var i=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Er(this.offset,this.offset+1);var o=i&&X3(this.offset,i);if(o){var s={line:o.line,col:o.col+1};this.linePos={start:o,end:s}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var a=this.linePos.start,c=a.line,u=a.col;this.message+=" at line ".concat(c,", column ").concat(u);var f=i&&v$e(this.linePos,i);f&&(this.message+=`: `.concat(f,` -`))}delete this.source}}}]),n}(C3(Error)),F1=function(e){sr(n,e);var t=ar(n);function n(r,i){return xn(this,n),t.call(this,"YAMLReferenceError",r,i)}return n}(tv),Qt=function(e){sr(n,e);var t=ar(n);function n(r,i){return xn(this,n),t.call(this,"YAMLSemanticError",r,i)}return n}(tv),go=function(e){sr(n,e);var t=ar(n);function n(r,i){return xn(this,n),t.call(this,"YAMLSyntaxError",r,i)}return n}(tv),Av=function(e){sr(n,e);var t=ar(n);function n(r,i){return xn(this,n),t.call(this,"YAMLWarning",r,i)}return n}(tv),mee=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var i=this.valueRange,o=i.start,s=i.end,a=this.context.src,c=a[s-1];oy?a.slice(y,f+1):h)}else u+=h}var w=a[o];switch(w){case" ":{var b="Plain value cannot start with a tab character",x=[new Qt(this,b)];return{errors:x,str:u}}case"@":case"`":{var E="Plain value cannot start with reserved character ".concat(w),I=[new Qt(this,E)];return{errors:I,str:u}}default:return u}}},{key:"parseBlockValue",value:function(i){for(var o=this.context,s=o.indent,a=o.inFlow,c=o.src,u=i,f=i,h=c[u];h===` +`&&(u+=f>y?a.slice(y,f+1):h)}else u+=h}var w=a[o];switch(w){case" ":{var b="Plain value cannot start with a tab character",x=[new Jt(this,b)];return{errors:x,str:u}}case"@":case"`":{var E="Plain value cannot start with reserved character ".concat(w),I=[new Jt(this,E)];return{errors:I,str:u}}default:return u}}},{key:"parseBlockValue",value:function(i){for(var o=this.context,s=o.indent,a=o.inFlow,c=o.src,u=i,f=i,h=c[u];h===` `&&!Qe.atDocumentBoundary(c,u+1);h=c[u]){var p=Qe.endOfBlockIndent(c,s,u+1);if(p===null||c[p]==="#")break;c[p]===` `?u=p:(f=n.endOfLine(c,p,a),u=f)}return this.valueRange.isEmpty()&&(this.valueRange.start=i),this.valueRange.end=f,f}},{key:"parse",value:function(i,o){this.context=i;var s=i.inFlow,a=i.src,c=o,u=a[c];return u&&u!=="#"&&u!==` `&&(c=n.endOfLine(a,o,s)),this.valueRange=new Er(o,c),c=Qe.endOfWhiteSpace(a,c),c=this.parseComment(c),(!this.hasComment||this.valueRange.isEmpty())&&(c=this.parseBlockValue(c)),c}}],[{key:"endOfLine",value:function(i,o,s){for(var a=i[o],c=o;a&&a!==` `&&!(s&&(a==="["||a==="]"||a==="{"||a==="}"||a===","));){var u=i[c+1];if(a===":"&&(!u||u===` -`||u===" "||u===" "||s&&u===",")||(a===" "||a===" ")&&u==="#")break;c+=1,a=u}return c}}]),n}(Qe),z1=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.call(this,Se.BLANK_LINE)}return Yn(n,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(i,o){return this.context=i,this.range=new Er(o,o+1),o+1}}]),n}(Qe),Pj=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.node=null,o}return Yn(n,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=i.atLineStart,u=i.lineStart;!c&&this.type===Se.SEQ_ITEM&&(this.error=new Qt(this,"Sequence items must not have preceding content on the same line"));for(var f=c?o-u:i.indent,h=Qe.endOfWhiteSpace(a,o+1),p=a[h],g=p==="#",v=[],y=null;p===` +`||u===" "||u===" "||s&&u===",")||(a===" "||a===" ")&&u==="#")break;c+=1,a=u}return c}}]),n}(Qe),X1=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.call(this,Se.BLANK_LINE)}return Yn(n,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(i,o){return this.context=i,this.range=new Er(o,o+1),o+1}}]),n}(Qe),eU=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.node=null,o}return Yn(n,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=i.atLineStart,u=i.lineStart;!c&&this.type===Se.SEQ_ITEM&&(this.error=new Jt(this,"Sequence items must not have preceding content on the same line"));for(var f=c?o-u:i.indent,h=Qe.endOfWhiteSpace(a,o+1),p=a[h],g=p==="#",v=[],y=null;p===` `||p==="#";){if(p==="#"){var S=Qe.endOfLine(a,h+1);v.push(new Er(h,S)),h=S}else{c=!0,u=h+1;var w=Qe.endOfWhiteSpace(a,u);a[w]===` -`&&v.length===0&&(y=new z1,u=y.parse({src:a},u)),h=Qe.endOfIndent(a,u)}p=a[h]}if(Qe.nextNodeIsIndented(p,h-(u+f),this.type!==Se.SEQ_ITEM)?this.node=s({atLineStart:c,inCollection:!1,indent:f,lineStart:u,parent:this},h):p&&u>o+1&&(h=u-1),this.node){if(y){var b=i.parent.items||i.parent.contents;b&&b.push(y)}v.length&&Array.prototype.push.apply(this.props,v),h=this.node.range.end}else if(g){var x=v[0];this.props.push(x),h=x.end}else h=Qe.endOfLine(a,o+1);var E=this.node?this.node.valueRange.end:h;return this.valueRange=new Er(o,E),h}},{key:"setOrigRanges",value:function(i,o){return o=as(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.node?this.node.setOrigRanges(i,o):o}},{key:"toString",value:function(){var i=this.context.src,o=this.node,s=this.range,a=this.value;if(a!=null)return a;var c=o?i.slice(s.start,o.range.start)+String(o):i.slice(s.start,s.end);return Qe.addStringTerminator(i,s.end,c)}}]),n}(Qe),Gx=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.call(this,Se.COMMENT)}return Yn(n,[{key:"parse",value:function(i,o){this.context=i;var s=this.parseComment(o);return this.range=new Er(o,s),s}}]),n}(Qe);function k3(e){for(var t=e;t instanceof Pj;)t=t.node;if(!(t instanceof gee))return null;for(var n=t.items.length,r=-1,i=n-1;i>=0;--i){var o=t.items[i];if(o.type===Se.COMMENT){var s=o.context,a=s.indent,c=s.lineStart;if(a>0&&o.range.start>=c+a)break;r=i}else if(o.type===Se.BLANK_LINE)r=i;else break}if(r===-1)return null;for(var u=t.items.splice(r,n-r),f=u[0].range.start;t.range.end=f,t.valueRange&&t.valueRange.end>f&&(t.valueRange.end=f),t!==e;)t=t.context.parent;return u}var gee=function(e){sr(n,e);var t=ar(n);function n(r){var i;xn(this,n),i=t.call(this,r.type===Se.SEQ_ITEM?Se.SEQ:Se.MAP);for(var o=r.props.length-1;o>=0;--o)if(r.props[o].start0}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=Qe.startOfLine(a,o),u=this.items[0];u.context.parent=this,this.valueRange=Er.copy(u.valueRange);var f=u.range.start-u.context.lineStart,h=o;h=Qe.normalizeOffset(a,h);for(var p=a[h],g=Qe.endOfWhiteSpace(a,c)===h,v=!1;p;){for(;p===` +`&&v.length===0&&(y=new X1,u=y.parse({src:a},u)),h=Qe.endOfIndent(a,u)}p=a[h]}if(Qe.nextNodeIsIndented(p,h-(u+f),this.type!==Se.SEQ_ITEM)?this.node=s({atLineStart:c,inCollection:!1,indent:f,lineStart:u,parent:this},h):p&&u>o+1&&(h=u-1),this.node){if(y){var b=i.parent.items||i.parent.contents;b&&b.push(y)}v.length&&Array.prototype.push.apply(this.props,v),h=this.node.range.end}else if(g){var x=v[0];this.props.push(x),h=x.end}else h=Qe.endOfLine(a,o+1);var E=this.node?this.node.valueRange.end:h;return this.valueRange=new Er(o,E),h}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.node?this.node.setOrigRanges(i,o):o}},{key:"toString",value:function(){var i=this.context.src,o=this.node,s=this.range,a=this.value;if(a!=null)return a;var c=o?i.slice(s.start,o.range.start)+String(o):i.slice(s.start,s.end);return Qe.addStringTerminator(i,s.end,c)}}]),n}(Qe),Vx=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.call(this,Se.COMMENT)}return Yn(n,[{key:"parse",value:function(i,o){this.context=i;var s=this.parseComment(o);return this.range=new Er(o,s),s}}]),n}(Qe);function Y3(e){for(var t=e;t instanceof eU;)t=t.node;if(!(t instanceof $te))return null;for(var n=t.items.length,r=-1,i=n-1;i>=0;--i){var o=t.items[i];if(o.type===Se.COMMENT){var s=o.context,a=s.indent,c=s.lineStart;if(a>0&&o.range.start>=c+a)break;r=i}else if(o.type===Se.BLANK_LINE)r=i;else break}if(r===-1)return null;for(var u=t.items.splice(r,n-r),f=u[0].range.start;t.range.end=f,t.valueRange&&t.valueRange.end>f&&(t.valueRange.end=f),t!==e;)t=t.context.parent;return u}var $te=function(e){sr(n,e);var t=ar(n);function n(r){var i;xn(this,n),i=t.call(this,r.type===Se.SEQ_ITEM?Se.SEQ:Se.MAP);for(var o=r.props.length-1;o>=0;--o)if(r.props[o].start0}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=Qe.startOfLine(a,o),u=this.items[0];u.context.parent=this,this.valueRange=Er.copy(u.valueRange);var f=u.range.start-u.context.lineStart,h=o;h=Qe.normalizeOffset(a,h);for(var p=a[h],g=Qe.endOfWhiteSpace(a,c)===h,v=!1;p;){for(;p===` `||p==="#";){if(g&&p===` -`&&!v){var y=new z1;if(h=y.parse({src:a},h),this.valueRange.end=h,h>=a.length){p=null;break}this.items.push(y),h-=1}else if(p==="#"){if(h=a.length){p=null;break}}if(c=h+1,h=Qe.endOfIndent(a,c),Qe.atBlank(a,h)){var w=Qe.endOfWhiteSpace(a,h),b=a[w];(!b||b===` +`&&!v){var y=new X1;if(h=y.parse({src:a},h),this.valueRange.end=h,h>=a.length){p=null;break}this.items.push(y),h-=1}else if(p==="#"){if(h=a.length){p=null;break}}if(c=h+1,h=Qe.endOfIndent(a,c),Qe.atBlank(a,h)){var w=Qe.endOfWhiteSpace(a,h),b=a[w];(!b||b===` `||b==="#")&&(h=w)}p=a[h],g=!0}if(!p)break;if(h!==c+f&&(g||p!==":")){if(ho&&(h=c);break}else if(!this.error){var x="All collection items must start at the same column";this.error=new go(this,x)}}if(u.type===Se.SEQ_ITEM){if(p!=="-"){c>o&&(h=c);break}}else if(p==="-"&&!this.error){var E=a[h+1];if(!E||E===` `||E===" "||E===" "){var I="A collection cannot be both a mapping and a sequence";this.error=new go(this,I)}}var A=s({atLineStart:g,inCollection:!0,indent:f,lineStart:c,parent:this},h);if(!A)return h;if(this.items.push(A),this.valueRange.end=A.valueRange.end,h=Qe.normalizeOffset(a,A.range.end),p=a[h],g=!1,v=A.includesTrailingLines,p){for(var k=h-1,O=a[k];O===" "||O===" ";)O=a[--k];O===` -`&&(c=k+1,g=!0)}var D=k3(A);D&&Array.prototype.push.apply(this.items,D)}return h}},{key:"setOrigRanges",value:function(i,o){return o=as(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.items.forEach(function(s){o=s.setOrigRanges(i,o)}),o}},{key:"toString",value:function(){var i=this.context.src,o=this.items,s=this.range,a=this.value;if(a!=null)return a;for(var c=i.slice(s.start,o[0].range.start)+String(o[0]),u=1;u=a+s?!0:c!=="#"&&c!==` -`?!1:n.nextContentHasIndent(i,o,s):!1}}]),n}(Qe),VRe=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this,Se.DIRECTIVE),r.name=null,r}return Yn(n,[{key:"parameters",get:function(){var i=this.rawValue;return i?i.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(i){for(var o=this.context.src,s=i,a=o[s];a&&a!==` +`&&(c=k+1,g=!0)}var D=Y3(A);D&&Array.prototype.push.apply(this.items,D)}return h}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.items.forEach(function(s){o=s.setOrigRanges(i,o)}),o}},{key:"toString",value:function(){var i=this.context.src,o=this.items,s=this.range,a=this.value;if(a!=null)return a;for(var c=i.slice(s.start,o[0].range.start)+String(o[0]),u=1;u=a+s?!0:c!=="#"&&c!==` +`?!1:n.nextContentHasIndent(i,o,s):!1}}]),n}(Qe),y$e=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this,Se.DIRECTIVE),r.name=null,r}return Yn(n,[{key:"parameters",get:function(){var i=this.rawValue;return i?i.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(i){for(var o=this.context.src,s=i,a=o[s];a&&a!==` `&&a!==" "&&a!==" ";)a=o[s+=1];return this.name=o.slice(i,s),s}},{key:"parseParameters",value:function(i){for(var o=this.context.src,s=i,a=o[s];a&&a!==` -`&&a!=="#";)a=o[s+=1];return this.valueRange=new Er(i,s),s}},{key:"parse",value:function(i,o){this.context=i;var s=this.parseName(o+1);return s=this.parseParameters(s),s=this.parseComment(s),this.range=new Er(o,s),s}}]),n}(Qe),qRe=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this,Se.DOCUMENT),r.directives=null,r.contents=null,r.directivesEndMarker=null,r.documentEndMarker=null,r}return Yn(n,[{key:"parseDirectives",value:function(i){var o=this.context.src;this.directives=[];for(var s=!0,a=!1,c=i;!Qe.atDocumentBoundary(o,c,ni.DIRECTIVES_END);)switch(c=n.startCommentOrEndBlankLine(o,c),o[c]){case` -`:if(s){var u=new z1;c=u.parse({src:o},c),c0&&(this.contents=this.directives,this.directives=[]),c}return o[c]?(this.directivesEndMarker=new Er(c,c+3),c+3):(a?this.error=new Qt(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),c)}},{key:"parseContents",value:function(i){var o=this.context,s=o.parseNode,a=o.src;this.contents||(this.contents=[]);for(var c=i;a[c-1]==="-";)c-=1;var u=Qe.endOfWhiteSpace(a,i),f=c===i;for(this.valueRange=new Er(u);!Qe.atDocumentBoundary(a,u,ni.DOCUMENT_END);){switch(a[u]){case` -`:if(f){var h=new z1;u=h.parse({src:a},u),u0&&((o.length>0||i[0].type===Se.COMMENT)&&(a+=`--- +`&&a!=="#";)a=o[s+=1];return this.valueRange=new Er(i,s),s}},{key:"parse",value:function(i,o){this.context=i;var s=this.parseName(o+1);return s=this.parseParameters(s),s=this.parseComment(s),this.range=new Er(o,s),s}}]),n}(Qe),b$e=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this,Se.DOCUMENT),r.directives=null,r.contents=null,r.directivesEndMarker=null,r.documentEndMarker=null,r}return Yn(n,[{key:"parseDirectives",value:function(i){var o=this.context.src;this.directives=[];for(var s=!0,a=!1,c=i;!Qe.atDocumentBoundary(o,c,ni.DIRECTIVES_END);)switch(c=n.startCommentOrEndBlankLine(o,c),o[c]){case` +`:if(s){var u=new X1;c=u.parse({src:o},c),c0&&(this.contents=this.directives,this.directives=[]),c}return o[c]?(this.directivesEndMarker=new Er(c,c+3),c+3):(a?this.error=new Jt(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),c)}},{key:"parseContents",value:function(i){var o=this.context,s=o.parseNode,a=o.src;this.contents||(this.contents=[]);for(var c=i;a[c-1]==="-";)c-=1;var u=Qe.endOfWhiteSpace(a,i),f=c===i;for(this.valueRange=new Er(u);!Qe.atDocumentBoundary(a,u,ni.DOCUMENT_END);){switch(a[u]){case` +`:if(f){var h=new X1;u=h.parse({src:a},u),u0&&((o.length>0||i[0].type===Se.COMMENT)&&(a+=`--- `),a+=i.join("")),a[a.length-1]!==` `&&(a+=` `),a}}],[{key:"startCommentOrEndBlankLine",value:function(i,o){var s=Qe.endOfWhiteSpace(i,o),a=i[s];return a==="#"||a===` -`?s:o}}]),n}(Qe),XRe=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=Qe.endOfIdentifier(s,o+1);return this.valueRange=new Er(o+1,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}]),n}(Qe),sd={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},YRe=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.blockIndent=null,o.chomping=sd.CLIP,o.header=null,o}return Yn(n,[{key:"includesTrailingLines",get:function(){return this.chomping===sd.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var i=this.valueRange,o=i.start,s=i.end,a=this.context,c=a.indent,u=a.src;if(this.valueRange.isEmpty())return"";for(var f=null,h=u[s-1];h===` -`||h===" "||h===" ";){if(s-=1,s<=o){if(this.chomping===sd.KEEP)break;return""}h===` -`&&(f=s),h=u[s-1]}var p=s+1;f&&(this.chomping===sd.KEEP?(p=f,s=this.valueRange.end):s=f);for(var g=c+this.blockIndent,v=this.type===Se.BLOCK_FOLDED,y=!0,S="",w="",b=!1,x=o;xh&&(h=y);a[g]===` -`?u=g:u=f=Qe.endOfLine(a,g)}return this.chomping!==sd.KEEP&&(u=a[f]?f+1:f),this.valueRange=new Er(i+1,u),u}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=this.parseBlockHeader(o);return a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a=this.parseBlockValue(a),a}},{key:"setOrigRanges",value:function(i,o){return o=as(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.header?this.header.setOrigRange(i,o):o}}]),n}(Qe),KRe=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.items=null,o}return Yn(n,[{key:"prevNodeIsJsonLike",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,o=this.items[i-1];return!!o&&(o.jsonLike||o.type===Se.COMMENT&&this.prevNodeIsJsonLike(i-1))}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=i.indent,u=i.lineStart,f=a[o];this.items=[{char:f,offset:o}];var h=Qe.endOfWhiteSpace(a,o+1);for(f=a[h];f&&f!=="]"&&f!=="}";){switch(f){case` +`&&yh&&(h=y);a[g]===` +`?u=g:u=f=Qe.endOfLine(a,g)}return this.chomping!==od.KEEP&&(u=a[f]?f+1:f),this.valueRange=new Er(i+1,u),u}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=this.parseBlockHeader(o);return a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a=this.parseBlockValue(a),a}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.header?this.header.setOrigRange(i,o):o}}]),n}(Qe),_$e=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.items=null,o}return Yn(n,[{key:"prevNodeIsJsonLike",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,o=this.items[i-1];return!!o&&(o.jsonLike||o.type===Se.COMMENT&&this.prevNodeIsJsonLike(i-1))}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=i.indent,u=i.lineStart,f=a[o];this.items=[{char:f,offset:o}];var h=Qe.endOfWhiteSpace(a,o+1);for(f=a[h];f&&f!=="]"&&f!=="}";){switch(f){case` `:{u=h+1;var p=Qe.endOfWhiteSpace(a,u);if(a[p]===` -`){var g=new z1;u=g.parse({src:a},u),this.items.push(g)}if(h=Qe.endOfIndent(a,u),h<=u+c&&(f=a[h],hs.offset);)++a;s.origOffset=s.offset+a,o=a}}),o}},{key:"toString",value:function(){var i=this.context.src,o=this.items,s=this.range,a=this.value;if(a!=null)return a;var c=o.filter(function(h){return h instanceof Qe}),u="",f=s.start;return c.forEach(function(h){var p=i.slice(f,h.range.start);f=h.range.end,u+=p+String(h),u[u.length-1]===` +`){var g=new X1;u=g.parse({src:a},u),this.items.push(g)}if(h=Qe.endOfIndent(a,u),h<=u+c&&(f=a[h],hs.offset);)++a;s.origOffset=s.offset+a,o=a}}),o}},{key:"toString",value:function(){var i=this.context.src,o=this.items,s=this.range,a=this.value;if(a!=null)return a;var c=o.filter(function(h){return h instanceof Qe}),u="",f=s.start;return c.forEach(function(h){var p=i.slice(f,h.range.start);f=h.range.end,u+=p+String(h),u[u.length-1]===` `&&i[f-1]!==` `&&i[f]===` -`&&(f+=1)}),u+=i.slice(f,s.end),Qe.addStringTerminator(i,s.end,u)}}]),n}(Qe),QRe=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var i=[],o=this.valueRange,s=o.start,a=o.end,c=this.context,u=c.indent,f=c.src;f[a-1]!=='"'&&i.push(new go(this,'Missing closing "quote'));for(var h="",p=s+1;pb?f.slice(b,p+1):g)}else h+=g}return i.length>0?{errors:i,str:h}:h}},{key:"parseCharCode",value:function(i,o,s){var a=this.context.src,c=a.substr(i,o),u=c.length===o&&/^[0-9a-fA-F]+$/.test(c),f=u?parseInt(c,16):NaN;return isNaN(f)?(s.push(new go(this,"Invalid escape sequence ".concat(a.substr(i-2,o+2)))),a.substr(i-2,o+2)):String.fromCodePoint(f)}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=n.endOfQuote(s,o+1);return this.valueRange=new Er(o,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}],[{key:"endOfQuote",value:function(i,o){for(var s=i[o];s&&s!=='"';)o+=s==="\\"?2:1,s=i[o];return o+1}}]),n}(Qe),JRe=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var i=[],o=this.valueRange,s=o.start,a=o.end,c=this.context,u=c.indent,f=c.src;f[a-1]!=="'"&&i.push(new go(this,"Missing closing 'quote"));for(var h="",p=s+1;pb?f.slice(b,p+1):g)}else h+=g}return i.length>0?{errors:i,str:h}:h}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=n.endOfQuote(s,o+1);return this.valueRange=new Er(o,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}],[{key:"endOfQuote",value:function(i,o){for(var s=i[o];s;)if(s==="'"){if(i[o+1]!=="'")break;s=i[o+=2]}else s=i[o+=1];return o+1}}]),n}(Qe);function ZRe(e,t){switch(e){case Se.ALIAS:return new XRe(e,t);case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:return new YRe(e,t);case Se.FLOW_MAP:case Se.FLOW_SEQ:return new KRe(e,t);case Se.MAP_KEY:case Se.MAP_VALUE:case Se.SEQ_ITEM:return new Pj(e,t);case Se.COMMENT:case Se.PLAIN:return new mee(e,t);case Se.QUOTE_DOUBLE:return new QRe(e,t);case Se.QUOTE_SINGLE:return new JRe(e,t);default:return null}}var ePe=function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.atLineStart,o=r.inCollection,s=r.inFlow,a=r.indent,c=r.lineStart,u=r.parent;xn(this,e),ho(this,"parseNode",function(f,h){if(Qe.atDocumentBoundary(t.src,h))return null;var p=new e(t,f),g=p.parseProps(h),v=g.props,y=g.type,S=g.valueStart,w=ZRe(y,v),b=w.parse(p,S);if(w.range=new Er(h,b),b<=h&&(w.error=new Error("Node#parse consumed no characters"),w.error.parseEnd=b,w.error.source=w,w.range.end=h+1),p.nodeStartsCollection(w)){!w.error&&!p.atLineStart&&p.parent.type===Se.DOCUMENT&&(w.error=new go(w,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var x=new gee(w);return b=x.parse(new e(p),b),x.range=new Er(h,b),x}return w}),this.atLineStart=i??(n.atLineStart||!1),this.inCollection=o??(n.inCollection||!1),this.inFlow=s??(n.inFlow||!1),this.indent=a??n.indent,this.lineStart=c??n.lineStart,this.parent=u??(n.parent||{}),this.root=n.root,this.src=n.src}return Yn(e,[{key:"nodeStartsCollection",value:function(n){var r=this.inCollection,i=this.inFlow,o=this.src;if(r||i)return!1;if(n instanceof Pj)return!0;var s=n.range.end;return o[s]===` +`&&(h+=p>b?f.slice(b,p+1):g)}else h+=g}return i.length>0?{errors:i,str:h}:h}},{key:"parseCharCode",value:function(i,o,s){var a=this.context.src,c=a.substr(i,o),u=c.length===o&&/^[0-9a-fA-F]+$/.test(c),f=u?parseInt(c,16):NaN;return isNaN(f)?(s.push(new go(this,"Invalid escape sequence ".concat(a.substr(i-2,o+2)))),a.substr(i-2,o+2)):String.fromCodePoint(f)}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=n.endOfQuote(s,o+1);return this.valueRange=new Er(o,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}],[{key:"endOfQuote",value:function(i,o){for(var s=i[o];s&&s!=='"';)o+=s==="\\"?2:1,s=i[o];return o+1}}]),n}(Qe),E$e=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var i=[],o=this.valueRange,s=o.start,a=o.end,c=this.context,u=c.indent,f=c.src;f[a-1]!=="'"&&i.push(new go(this,"Missing closing 'quote"));for(var h="",p=s+1;pb?f.slice(b,p+1):g)}else h+=g}return i.length>0?{errors:i,str:h}:h}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=n.endOfQuote(s,o+1);return this.valueRange=new Er(o,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}],[{key:"endOfQuote",value:function(i,o){for(var s=i[o];s;)if(s==="'"){if(i[o+1]!=="'")break;s=i[o+=2]}else s=i[o+=1];return o+1}}]),n}(Qe);function C$e(e,t){switch(e){case Se.ALIAS:return new x$e(e,t);case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:return new w$e(e,t);case Se.FLOW_MAP:case Se.FLOW_SEQ:return new _$e(e,t);case Se.MAP_KEY:case Se.MAP_VALUE:case Se.SEQ_ITEM:return new eU(e,t);case Se.COMMENT:case Se.PLAIN:return new Bte(e,t);case Se.QUOTE_DOUBLE:return new S$e(e,t);case Se.QUOTE_SINGLE:return new E$e(e,t);default:return null}}var T$e=function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.atLineStart,o=r.inCollection,s=r.inFlow,a=r.indent,c=r.lineStart,u=r.parent;xn(this,e),ho(this,"parseNode",function(f,h){if(Qe.atDocumentBoundary(t.src,h))return null;var p=new e(t,f),g=p.parseProps(h),v=g.props,y=g.type,S=g.valueStart,w=C$e(y,v),b=w.parse(p,S);if(w.range=new Er(h,b),b<=h&&(w.error=new Error("Node#parse consumed no characters"),w.error.parseEnd=b,w.error.source=w,w.range.end=h+1),p.nodeStartsCollection(w)){!w.error&&!p.atLineStart&&p.parent.type===Se.DOCUMENT&&(w.error=new go(w,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var x=new $te(w);return b=x.parse(new e(p),b),x.range=new Er(h,b),x}return w}),this.atLineStart=i??(n.atLineStart||!1),this.inCollection=o??(n.inCollection||!1),this.inFlow=s??(n.inFlow||!1),this.indent=a??n.indent,this.lineStart=c??n.lineStart,this.parent=u??(n.parent||{}),this.root=n.root,this.src=n.src}return Yn(e,[{key:"nodeStartsCollection",value:function(n){var r=this.inCollection,i=this.inFlow,o=this.src;if(r||i)return!1;if(n instanceof eU)return!0;var s=n.range.end;return o[s]===` `||o[s-1]===` `?!1:(s=Qe.endOfWhiteSpace(o,s),o[s]===":")}},{key:"parseProps",value:function(n){var r=this.inFlow,i=this.parent,o=this.src,s=[],a=!1;n=this.atLineStart?Qe.endOfIndent(o,n):Qe.endOfWhiteSpace(o,n);for(var c=o[n];c===ni.ANCHOR||c===ni.COMMENT||c===ni.TAG||c===` `;){if(c===` `){var u=n,f=void 0;do f=u+1,u=Qe.endOfIndent(o,f);while(o[u]===` -`);var h=u-(f+this.indent),p=i.type===Se.SEQ_ITEM&&i.context.atLineStart;if(o[u]!=="#"&&!Qe.nextNodeIsIndented(o[u],h,!p))break;this.atLineStart=!0,this.lineStart=f,a=!1,n=u}else if(c===ni.COMMENT){var g=Qe.endOfLine(o,n+1);s.push(new Er(n,g)),n=g}else{var v=Qe.endOfIdentifier(o,n+1);c===ni.TAG&&o[v]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(n+1,v+13))&&(v=Qe.endOfIdentifier(o,v+5)),s.push(new Er(n,v)),a=!0,n=Qe.endOfWhiteSpace(o,v)}c=o[n]}a&&c===":"&&Qe.atBlank(o,n+1,!0)&&(n-=1);var y=e.parseType(o,n,r);return{props:s,type:y,valueStart:n}}}],[{key:"parseType",value:function(n,r,i){switch(n[r]){case"*":return Se.ALIAS;case">":return Se.BLOCK_FOLDED;case"|":return Se.BLOCK_LITERAL;case"{":return Se.FLOW_MAP;case"[":return Se.FLOW_SEQ;case"?":return!i&&Qe.atBlank(n,r+1,!0)?Se.MAP_KEY:Se.PLAIN;case":":return!i&&Qe.atBlank(n,r+1,!0)?Se.MAP_VALUE:Se.PLAIN;case"-":return!i&&Qe.atBlank(n,r+1,!0)?Se.SEQ_ITEM:Se.PLAIN;case'"':return Se.QUOTE_DOUBLE;case"'":return Se.QUOTE_SINGLE;default:return Se.PLAIN}}}]),e}();function Oj(e){var t=[];e.indexOf("\r")!==-1&&(e=e.replace(/\r\n?/g,function(s,a){return s.length>1&&t.push(a),` -`}));var n=[],r=0;do{var i=new qRe,o=new ePe({src:e});r=i.parse(o,r),n.push(i)}while(r":return Se.BLOCK_FOLDED;case"|":return Se.BLOCK_LITERAL;case"{":return Se.FLOW_MAP;case"[":return Se.FLOW_SEQ;case"?":return!i&&Qe.atBlank(n,r+1,!0)?Se.MAP_KEY:Se.PLAIN;case":":return!i&&Qe.atBlank(n,r+1,!0)?Se.MAP_VALUE:Se.PLAIN;case"-":return!i&&Qe.atBlank(n,r+1,!0)?Se.SEQ_ITEM:Se.PLAIN;case'"':return Se.QUOTE_DOUBLE;case"'":return Se.QUOTE_SINGLE;default:return Se.PLAIN}}}]),e}();function tU(e){var t=[];e.indexOf("\r")!==-1&&(e=e.replace(/\r\n?/g,function(s,a){return s.length>1&&t.push(a),` +`}));var n=[],r=0;do{var i=new b$e,o=new T$e({src:e});r=i.parse(o,r),n.push(i)}while(r=0;--i){var o=t[i];if(Number.isInteger(o)&&o>=0){var s=[];s[o]=r,r=s}else{var a={};Object.defineProperty(a,o,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=a}}return e.createNode(r,!1)}var cx=function(t){return t==null||qs(t)==="object"&&t[Symbol.iterator]().next().done},eo=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),ho(aa(i),"items",[]),i.schema=r,i}return Yn(n,[{key:"addIn",value:function(i,o){if(cx(i))this.add(o);else{var s=Bb(i),a=s[0],c=s.slice(1),u=this.get(a,!0);if(u instanceof n)u.addIn(c,o);else if(u===void 0&&this.schema)this.set(a,iG(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(c))}}},{key:"deleteIn",value:function(i){var o=Bb(i),s=o[0],a=o.slice(1);if(a.length===0)return this.delete(s);var c=this.get(s,!0);if(c instanceof n)return c.deleteIn(a);throw new Error("Expected YAML collection at ".concat(s,". Remaining path: ").concat(a))}},{key:"getIn",value:function(i,o){var s=Bb(i),a=s[0],c=s.slice(1),u=this.get(a,!0);return c.length===0?!o&&u instanceof Un?u.value:u:u instanceof n?u.getIn(c,o):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(i){if(!i||i.type!=="PAIR")return!1;var o=i.value;return o==null||o instanceof Un&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}},{key:"hasIn",value:function(i){var o=Bb(i),s=o[0],a=o.slice(1);if(a.length===0)return this.has(s);var c=this.get(s,!0);return c instanceof n?c.hasIn(a):!1}},{key:"setIn",value:function(i,o){var s=Bb(i),a=s[0],c=s.slice(1);if(c.length===0)this.set(a,o);else{var u=this.get(a,!0);if(u instanceof n)u.setIn(c,o);else if(u===void 0&&this.schema)this.set(a,iG(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(c))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(i,o,s,a){var c=this,u=o.blockItem,f=o.flowChars,h=o.isMap,p=o.itemIndent,g=i,v=g.indent,y=g.indentStep,S=g.stringify,w=this.type===Se.FLOW_MAP||this.type===Se.FLOW_SEQ||i.inFlow;w&&(p+=y);var b=h&&this.hasAllNullValues();i=Object.assign({},i,{allNullValues:b,indent:p,inFlow:w,type:null});var x=!1,E=!1,I=this.items.reduce(function(V,W,K){var X;W&&(!x&&W.spaceBefore&&V.push({type:"comment",str:""}),W.commentBefore&&W.commentBefore.match(/^.*$/gm).forEach(function(re){V.push({type:"comment",str:"#".concat(re)})}),W.comment&&(X=W.comment),w&&(!x&&W.spaceBefore||W.commentBefore||W.comment||W.key&&(W.key.commentBefore||W.key.comment)||W.value&&(W.value.commentBefore||W.value.comment))&&(E=!0)),x=!1;var Q=S(W,i,function(){return X=null},function(){return x=!0});return w&&!E&&Q.includes(` -`)&&(E=!0),w&&Kn.maxFlowStringSingleLineLength){A=k;var N=ir(D),H;try{for(N.s();!(H=N.n()).done;){var G=H.value;A+=G?` +`)+n.replace(/^/gm,"".concat(t||"","#")):e}var Qo=function e(){xn(this,e)};function _l(e,t,n){if(Array.isArray(e))return e.map(function(o,s){return _l(o,String(s),n)});if(e&&typeof e.toJSON=="function"){var r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=function(o){r.res=o,delete n.onCreate});var i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return(!n||!n.keep)&&typeof e=="bigint"?Number(e):e}var Un=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),i.value=r,i}return Yn(n,[{key:"toJSON",value:function(i,o){return o&&o.keep?this.value:_l(this.value,i,o)}},{key:"toString",value:function(){return String(this.value)}}]),n}(Qo);function Q9(e,t,n){for(var r=n,i=t.length-1;i>=0;--i){var o=t[i];if(Number.isInteger(o)&&o>=0){var s=[];s[o]=r,r=s}else{var a={};Object.defineProperty(a,o,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=a}}return e.createNode(r,!1)}var dx=function(t){return t==null||Xs(t)==="object"&&t[Symbol.iterator]().next().done},eo=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),ho(la(i),"items",[]),i.schema=r,i}return Yn(n,[{key:"addIn",value:function(i,o){if(dx(i))this.add(o);else{var s=zb(i),a=s[0],c=s.slice(1),u=this.get(a,!0);if(u instanceof n)u.addIn(c,o);else if(u===void 0&&this.schema)this.set(a,Q9(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(c))}}},{key:"deleteIn",value:function(i){var o=zb(i),s=o[0],a=o.slice(1);if(a.length===0)return this.delete(s);var c=this.get(s,!0);if(c instanceof n)return c.deleteIn(a);throw new Error("Expected YAML collection at ".concat(s,". Remaining path: ").concat(a))}},{key:"getIn",value:function(i,o){var s=zb(i),a=s[0],c=s.slice(1),u=this.get(a,!0);return c.length===0?!o&&u instanceof Un?u.value:u:u instanceof n?u.getIn(c,o):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(i){if(!i||i.type!=="PAIR")return!1;var o=i.value;return o==null||o instanceof Un&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}},{key:"hasIn",value:function(i){var o=zb(i),s=o[0],a=o.slice(1);if(a.length===0)return this.has(s);var c=this.get(s,!0);return c instanceof n?c.hasIn(a):!1}},{key:"setIn",value:function(i,o){var s=zb(i),a=s[0],c=s.slice(1);if(c.length===0)this.set(a,o);else{var u=this.get(a,!0);if(u instanceof n)u.setIn(c,o);else if(u===void 0&&this.schema)this.set(a,Q9(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(c))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(i,o,s,a){var c=this,u=o.blockItem,f=o.flowChars,h=o.isMap,p=o.itemIndent,g=i,v=g.indent,y=g.indentStep,S=g.stringify,w=this.type===Se.FLOW_MAP||this.type===Se.FLOW_SEQ||i.inFlow;w&&(p+=y);var b=h&&this.hasAllNullValues();i=Object.assign({},i,{allNullValues:b,indent:p,inFlow:w,type:null});var x=!1,E=!1,I=this.items.reduce(function(V,W,K){var X;W&&(!x&&W.spaceBefore&&V.push({type:"comment",str:""}),W.commentBefore&&W.commentBefore.match(/^.*$/gm).forEach(function(ie){V.push({type:"comment",str:"#".concat(ie)})}),W.comment&&(X=W.comment),w&&(!x&&W.spaceBefore||W.commentBefore||W.comment||W.key&&(W.key.commentBefore||W.key.comment)||W.value&&(W.value.commentBefore||W.value.comment))&&(E=!0)),x=!1;var Q=S(W,i,function(){return X=null},function(){return x=!0});return w&&!E&&Q.includes(` +`)&&(E=!0),w&&Kn.maxFlowStringSingleLineLength){A=k;var N=ir(D),H;try{for(N.s();!(H=N.n()).done;){var G=H.value;A+=G?` `.concat(y).concat(v).concat(G):` `}}catch(V){N.e(V)}finally{N.f()}A+=` `.concat(v).concat(O)}else A="".concat(k," ").concat(D.join(" ")," ").concat(O)}else{var z=I.map(u);A=z.shift();var L=ir(z),F;try{for(L.s();!(F=L.n()).done;){var j=F.value;A+=j?` `.concat(v).concat(j):` `}}catch(V){L.e(V)}finally{L.f()}}return this.comment?(A+=` -`+this.comment.replace(/^/gm,"".concat(v,"#")),s&&s()):x&&a&&a(),A}}]),n}(Ko);ho(eo,"maxFlowStringSingleLineLength",60);function X_(e){var t=e instanceof Un?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var ic=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"add",value:function(i){this.items.push(i)}},{key:"delete",value:function(i){var o=X_(i);if(typeof o!="number")return!1;var s=this.items.splice(o,1);return s.length>0}},{key:"get",value:function(i,o){var s=X_(i);if(typeof s=="number"){var a=this.items[s];return!o&&a instanceof Un?a.value:a}}},{key:"has",value:function(i){var o=X_(i);return typeof o=="number"&&o1&&arguments[1]!==void 0?arguments[1]:null;return xn(this,n),i=t.call(this),i.key=r,i.value=o,i.type=n.Type.PAIR,i}return Yn(n,[{key:"commentBefore",get:function(){return this.key instanceof Ko?this.key.commentBefore:void 0},set:function(i){if(this.key==null&&(this.key=new Un(null)),this.key instanceof Ko)this.key.commentBefore=i;else{var o="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(o)}}},{key:"addToJSMap",value:function(i,o){var s=_l(this.key,"",i);if(o instanceof Map){var a=_l(this.value,s,i);o.set(s,a)}else if(o instanceof Set)o.add(s);else{var c=nPe(this.key,s,i),u=_l(this.value,c,i);c in o?Object.defineProperty(o,c,{value:u,writable:!0,enumerable:!0,configurable:!0}):o[c]=u}return o}},{key:"toJSON",value:function(i,o){var s=o&&o.mapAsMap?new Map:{};return this.addToJSMap(o,s)}},{key:"toString",value:function(i,o,s){if(!i||!i.doc)return JSON.stringify(this);var a=i.doc.options,c=a.indent,u=a.indentSeq,f=a.simpleKeys,h=this.key,p=this.value,g=h instanceof Ko&&h.comment;if(f){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(h instanceof eo){var v="With simple keys, collection cannot be used as a key value";throw new Error(v)}}var y=!f&&(!h||g||(h instanceof Ko?h instanceof eo||h.type===Se.BLOCK_FOLDED||h.type===Se.BLOCK_LITERAL:qs(h)==="object")),S=i,w=S.doc,b=S.indent,x=S.indentStep,E=S.stringify;i=Object.assign({},i,{implicitKey:!y,indent:b+x});var I=!1,A=E(h,i,function(){return g=null},function(){return I=!0});if(A=og(A,i.indent,g),!y&&A.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(i.allNullValues&&!f)return this.comment?(A=og(A,i.indent,this.comment),o&&o()):I&&!g&&s&&s(),i.inFlow&&!y?A:"? ".concat(A);A=y?"? ".concat(A,` -`).concat(b,":"):"".concat(A,":"),this.comment&&(A=og(A,i.indent,this.comment),o&&o());var k="",O=null;if(p instanceof Ko){if(p.spaceBefore&&(k=` +`+this.comment.replace(/^/gm,"".concat(v,"#")),s&&s()):x&&a&&a(),A}}]),n}(Qo);ho(eo,"maxFlowStringSingleLineLength",60);function sS(e){var t=e instanceof Un?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var oc=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"add",value:function(i){this.items.push(i)}},{key:"delete",value:function(i){var o=sS(i);if(typeof o!="number")return!1;var s=this.items.splice(o,1);return s.length>0}},{key:"get",value:function(i,o){var s=sS(i);if(typeof s=="number"){var a=this.items[s];return!o&&a instanceof Un?a.value:a}}},{key:"has",value:function(i){var o=sS(i);return typeof o=="number"&&o1&&arguments[1]!==void 0?arguments[1]:null;return xn(this,n),i=t.call(this),i.key=r,i.value=o,i.type=n.Type.PAIR,i}return Yn(n,[{key:"commentBefore",get:function(){return this.key instanceof Qo?this.key.commentBefore:void 0},set:function(i){if(this.key==null&&(this.key=new Un(null)),this.key instanceof Qo)this.key.commentBefore=i;else{var o="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(o)}}},{key:"addToJSMap",value:function(i,o){var s=_l(this.key,"",i);if(o instanceof Map){var a=_l(this.value,s,i);o.set(s,a)}else if(o instanceof Set)o.add(s);else{var c=A$e(this.key,s,i),u=_l(this.value,c,i);c in o?Object.defineProperty(o,c,{value:u,writable:!0,enumerable:!0,configurable:!0}):o[c]=u}return o}},{key:"toJSON",value:function(i,o){var s=o&&o.mapAsMap?new Map:{};return this.addToJSMap(o,s)}},{key:"toString",value:function(i,o,s){if(!i||!i.doc)return JSON.stringify(this);var a=i.doc.options,c=a.indent,u=a.indentSeq,f=a.simpleKeys,h=this.key,p=this.value,g=h instanceof Qo&&h.comment;if(f){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(h instanceof eo){var v="With simple keys, collection cannot be used as a key value";throw new Error(v)}}var y=!f&&(!h||g||(h instanceof Qo?h instanceof eo||h.type===Se.BLOCK_FOLDED||h.type===Se.BLOCK_LITERAL:Xs(h)==="object")),S=i,w=S.doc,b=S.indent,x=S.indentStep,E=S.stringify;i=Object.assign({},i,{implicitKey:!y,indent:b+x});var I=!1,A=E(h,i,function(){return g=null},function(){return I=!0});if(A=lg(A,i.indent,g),!y&&A.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(i.allNullValues&&!f)return this.comment?(A=lg(A,i.indent,this.comment),o&&o()):I&&!g&&s&&s(),i.inFlow&&!y?A:"? ".concat(A);A=y?"? ".concat(A,` +`).concat(b,":"):"".concat(A,":"),this.comment&&(A=lg(A,i.indent,this.comment),o&&o());var k="",O=null;if(p instanceof Qo){if(p.spaceBefore&&(k=` `),p.commentBefore){var D=p.commentBefore.replace(/^/gm,"".concat(i.indent,"#"));k+=` -`.concat(D)}O=p.comment}else p&&qs(p)==="object"&&(p=w.schema.createNode(p,!0));i.implicitKey=!1,!y&&!this.comment&&p instanceof Un&&(i.indentAtStart=A.length+1),I=!1,!u&&c>=2&&!i.inFlow&&!y&&p instanceof ic&&p.type!==Se.FLOW_SEQ&&!p.tag&&!w.anchors.getName(p)&&(i.indent=i.indent.substr(2));var N=E(p,i,function(){return O=null},function(){return I=!0}),H=" ";if(k||this.comment)H="".concat(k,` +`.concat(D)}O=p.comment}else p&&Xs(p)==="object"&&(p=w.schema.createNode(p,!0));i.implicitKey=!1,!y&&!this.comment&&p instanceof Un&&(i.indentAtStart=A.length+1),I=!1,!u&&c>=2&&!i.inFlow&&!y&&p instanceof oc&&p.type!==Se.FLOW_SEQ&&!p.tag&&!w.anchors.getName(p)&&(i.indent=i.indent.substr(2));var N=E(p,i,function(){return O=null},function(){return I=!0}),H=" ";if(k||this.comment)H="".concat(k,` `).concat(i.indent);else if(!y&&p instanceof eo){var G=N[0]==="["||N[0]==="{";(!G||N.includes(` `))&&(H=` `.concat(i.indent))}else N[0]===` -`&&(H="");return I&&!O&&s&&s(),og(A+H+N,i.indent,O)}}]),n}(Ko);ho(vn,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var rPe=function e(t,n){if(t instanceof Uu){var r=n.get(t.source);return r.count*r.aliasCount}else if(t instanceof eo){var i=0,o=ir(t.items),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,c=e(a,n);c>i&&(i=c)}}catch(h){o.e(h)}finally{o.f()}return i}else if(t instanceof vn){var u=e(t.key,n),f=e(t.value,n);return Math.max(u,f)}return 1},Uu=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),i.source=r,i.type=Se.ALIAS,i}return Yn(n,[{key:"tag",set:function(i){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(i,o){if(!o)return _l(this.source,i,o);var s=o.anchors,a=o.maxAliasCount,c=s.get(this.source);if(!c||c.res===void 0){var u="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new F1(this.cstNode,u):new ReferenceError(u)}if(a>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=rPe(this.source,s)),c.count*c.aliasCount>a)){var f="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new F1(this.cstNode,f):new ReferenceError(f)}return c.res}},{key:"toString",value:function(i){return n.stringify(this,i)}}],[{key:"stringify",value:function(i,o){var s=i.range,a=i.source,c=o.anchors,u=o.doc,f=o.implicitKey,h=o.inStringifyKey,p=Object.keys(c).find(function(v){return c[v]===a});if(!p&&h&&(p=u.anchors.getName(a)||u.anchors.newName()),p)return"*".concat(p).concat(f?" ":"");var g=u.anchors.getName(a)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(g," [").concat(s,"]"))}}]),n}(Ko);ho(Uu,"default",!0);function pp(e,t){var n=t instanceof Un?t.value:t,r=ir(e),i;try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o instanceof vn&&(o.key===t||o.key===n||o.key&&o.key.value===n))return o}}catch(s){r.e(s)}finally{r.f()}}var Qo=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"add",value:function(i,o){i?i instanceof vn||(i=new vn(i.key||i,i.value)):i=new vn(i);var s=pp(this.items,i.key),a=this.schema&&this.schema.sortMapEntries;if(s)if(o)s.value=i.value;else throw new Error("Key ".concat(i.key," already set"));else if(a){var c=this.items.findIndex(function(u){return a(i,u)<0});c===-1?this.items.push(i):this.items.splice(c,0,i)}else this.items.push(i)}},{key:"delete",value:function(i){var o=pp(this.items,i);if(!o)return!1;var s=this.items.splice(this.items.indexOf(o),1);return s.length>0}},{key:"get",value:function(i,o){var s=pp(this.items,i),a=s&&s.value;return!o&&a instanceof Un?a.value:a}},{key:"has",value:function(i){return!!pp(this.items,i)}},{key:"set",value:function(i,o){this.add(new vn(i,o),!0)}},{key:"toJSON",value:function(i,o,s){var a=s?new s:o&&o.mapAsMap?new Map:{};o&&o.onCreate&&o.onCreate(a);var c=ir(this.items),u;try{for(c.s();!(u=c.n()).done;){var f=u.value;f.addToJSMap(o,a)}}catch(h){c.e(h)}finally{c.f()}return a}},{key:"toString",value:function(i,o,s){if(!i)return JSON.stringify(this);var a=ir(this.items),c;try{for(a.s();!(c=a.n()).done;){var u=c.value;if(!(u instanceof vn))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(u)," instead"))}}catch(f){a.e(f)}finally{a.f()}return as(io(n.prototype),"toString",this).call(this,i,{blockItem:function(h){return h.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:i.indent||""},o,s)}}]),n}(eo),vee="<<",yee=function(e){sr(n,e);var t=ar(n);function n(r){var i;if(xn(this,n),r instanceof vn){var o=r.value;o instanceof ic||(o=new ic,o.items.push(r.value),o.range=r.value.range),i=t.call(this,r.key,o),i.range=r.range}else i=t.call(this,new Un(vee),new ic);return i.type=vn.Type.MERGE_PAIR,dee(i)}return Yn(n,[{key:"addToJSMap",value:function(i,o){var s=ir(this.value.items),a;try{for(s.s();!(a=s.n()).done;){var c=a.value.source;if(!(c instanceof Qo))throw new Error("Merge sources must be maps");var u=c.toJSON(null,i,Map),f=ir(u),h;try{for(f.s();!(h=f.n()).done;){var p=Uw(h.value,2),g=p[0],v=p[1];o instanceof Map?o.has(g)||o.set(g,v):o instanceof Set?o.add(g):Object.prototype.hasOwnProperty.call(o,g)||Object.defineProperty(o,g,{value:v,writable:!0,enumerable:!0,configurable:!0})}}catch(y){f.e(y)}finally{f.f()}}}catch(y){s.e(y)}finally{s.f()}return o}},{key:"toString",value:function(i,o){var s=this.value;if(s.items.length>1)return as(io(n.prototype),"toString",this).call(this,i,o);this.value=s.items[0];var a=as(io(n.prototype),"toString",this).call(this,i,o);return this.value=s,a}}]),n}(vn),Vx={defaultType:Se.BLOCK_LITERAL,lineWidth:76},Ou={trueStr:"true",falseStr:"false"},of={asBigInt:!1},nv={nullStr:"null"},Hu={defaultType:Se.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Mj(e,t,n){var r=ir(t),i;try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.format,a=o.test,c=o.resolve;if(a){var u=e.match(a);if(u){var f=c.apply(null,u);return f instanceof Un||(f=new Un(f)),s&&(f.format=s),f}}}}catch(h){r.e(h)}finally{r.f()}return n&&(e=n(e)),new Un(e)}var bee="flow",A3="block",mE="quoted",oG=function(t,n){for(var r=t[n+1];r===" "||r===" ";){do r=t[n+=1];while(r&&r!==` -`);r=t[n+1]}return n};function cA(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,s=o===void 0?80:o,a=r.minContentWidth,c=a===void 0?20:a,u=r.onFold,f=r.onOverflow;if(!s||s<0)return e;var h=Math.max(1+c,1+s-t.length);if(e.length<=h)return e;var p=[],g={},v=s-t.length;typeof i=="number"&&(i>s-Math.max(2,c)?p.push(0):v=s-i);var y=void 0,S=void 0,w=!1,b=-1,x=-1,E=-1;n===A3&&(b=oG(e,b),b!==-1&&(v=b+h));for(var I;I=e[b+=1];){if(n===mE&&I==="\\"){switch(x=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}E=b}if(I===` -`)n===A3&&(b=oG(e,b)),v=b+h,y=void 0;else{if(I===" "&&S&&S!==" "&&S!==` +`&&(H="");return I&&!O&&s&&s(),lg(A+H+N,i.indent,O)}}]),n}(Qo);ho(vn,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var I$e=function e(t,n){if(t instanceof Hu){var r=n.get(t.source);return r.count*r.aliasCount}else if(t instanceof eo){var i=0,o=ir(t.items),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,c=e(a,n);c>i&&(i=c)}}catch(h){o.e(h)}finally{o.f()}return i}else if(t instanceof vn){var u=e(t.key,n),f=e(t.value,n);return Math.max(u,f)}return 1},Hu=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),i.source=r,i.type=Se.ALIAS,i}return Yn(n,[{key:"tag",set:function(i){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(i,o){if(!o)return _l(this.source,i,o);var s=o.anchors,a=o.maxAliasCount,c=s.get(this.source);if(!c||c.res===void 0){var u="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new q1(this.cstNode,u):new ReferenceError(u)}if(a>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=I$e(this.source,s)),c.count*c.aliasCount>a)){var f="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new q1(this.cstNode,f):new ReferenceError(f)}return c.res}},{key:"toString",value:function(i){return n.stringify(this,i)}}],[{key:"stringify",value:function(i,o){var s=i.range,a=i.source,c=o.anchors,u=o.doc,f=o.implicitKey,h=o.inStringifyKey,p=Object.keys(c).find(function(v){return c[v]===a});if(!p&&h&&(p=u.anchors.getName(a)||u.anchors.newName()),p)return"*".concat(p).concat(f?" ":"");var g=u.anchors.getName(a)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(g," [").concat(s,"]"))}}]),n}(Qo);ho(Hu,"default",!0);function gp(e,t){var n=t instanceof Un?t.value:t,r=ir(e),i;try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o instanceof vn&&(o.key===t||o.key===n||o.key&&o.key.value===n))return o}}catch(s){r.e(s)}finally{r.f()}}var Jo=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"add",value:function(i,o){i?i instanceof vn||(i=new vn(i.key||i,i.value)):i=new vn(i);var s=gp(this.items,i.key),a=this.schema&&this.schema.sortMapEntries;if(s)if(o)s.value=i.value;else throw new Error("Key ".concat(i.key," already set"));else if(a){var c=this.items.findIndex(function(u){return a(i,u)<0});c===-1?this.items.push(i):this.items.splice(c,0,i)}else this.items.push(i)}},{key:"delete",value:function(i){var o=gp(this.items,i);if(!o)return!1;var s=this.items.splice(this.items.indexOf(o),1);return s.length>0}},{key:"get",value:function(i,o){var s=gp(this.items,i),a=s&&s.value;return!o&&a instanceof Un?a.value:a}},{key:"has",value:function(i){return!!gp(this.items,i)}},{key:"set",value:function(i,o){this.add(new vn(i,o),!0)}},{key:"toJSON",value:function(i,o,s){var a=s?new s:o&&o.mapAsMap?new Map:{};o&&o.onCreate&&o.onCreate(a);var c=ir(this.items),u;try{for(c.s();!(u=c.n()).done;){var f=u.value;f.addToJSMap(o,a)}}catch(h){c.e(h)}finally{c.f()}return a}},{key:"toString",value:function(i,o,s){if(!i)return JSON.stringify(this);var a=ir(this.items),c;try{for(a.s();!(c=a.n()).done;){var u=c.value;if(!(u instanceof vn))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(u)," instead"))}}catch(f){a.e(f)}finally{a.f()}return ls(io(n.prototype),"toString",this).call(this,i,{blockItem:function(h){return h.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:i.indent||""},o,s)}}]),n}(eo),Fte="<<",zte=function(e){sr(n,e);var t=ar(n);function n(r){var i;if(xn(this,n),r instanceof vn){var o=r.value;o instanceof oc||(o=new oc,o.items.push(r.value),o.range=r.value.range),i=t.call(this,r.key,o),i.range=r.range}else i=t.call(this,new Un(Fte),new oc);return i.type=vn.Type.MERGE_PAIR,Mte(i)}return Yn(n,[{key:"addToJSMap",value:function(i,o){var s=ir(this.value.items),a;try{for(s.s();!(a=s.n()).done;){var c=a.value.source;if(!(c instanceof Jo))throw new Error("Merge sources must be maps");var u=c.toJSON(null,i,Map),f=ir(u),h;try{for(f.s();!(h=f.n()).done;){var p=Gw(h.value,2),g=p[0],v=p[1];o instanceof Map?o.has(g)||o.set(g,v):o instanceof Set?o.add(g):Object.prototype.hasOwnProperty.call(o,g)||Object.defineProperty(o,g,{value:v,writable:!0,enumerable:!0,configurable:!0})}}catch(y){f.e(y)}finally{f.f()}}}catch(y){s.e(y)}finally{s.f()}return o}},{key:"toString",value:function(i,o){var s=this.value;if(s.items.length>1)return ls(io(n.prototype),"toString",this).call(this,i,o);this.value=s.items[0];var a=ls(io(n.prototype),"toString",this).call(this,i,o);return this.value=s,a}}]),n}(vn),qx={defaultType:Se.BLOCK_LITERAL,lineWidth:76},Ou={trueStr:"true",falseStr:"false"},of={asBigInt:!1},sv={nullStr:"null"},Wu={defaultType:Se.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function nU(e,t,n){var r=ir(t),i;try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.format,a=o.test,c=o.resolve;if(a){var u=e.match(a);if(u){var f=c.apply(null,u);return f instanceof Un||(f=new Un(f)),s&&(f.format=s),f}}}}catch(h){r.e(h)}finally{r.f()}return n&&(e=n(e)),new Un(e)}var jte="flow",K3="block",CE="quoted",J9=function(t,n){for(var r=t[n+1];r===" "||r===" ";){do r=t[n+=1];while(r&&r!==` +`);r=t[n+1]}return n};function bA(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,s=o===void 0?80:o,a=r.minContentWidth,c=a===void 0?20:a,u=r.onFold,f=r.onOverflow;if(!s||s<0)return e;var h=Math.max(1+c,1+s-t.length);if(e.length<=h)return e;var p=[],g={},v=s-t.length;typeof i=="number"&&(i>s-Math.max(2,c)?p.push(0):v=s-i);var y=void 0,S=void 0,w=!1,b=-1,x=-1,E=-1;n===K3&&(b=J9(e,b),b!==-1&&(v=b+h));for(var I;I=e[b+=1];){if(n===CE&&I==="\\"){switch(x=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}E=b}if(I===` +`)n===K3&&(b=J9(e,b)),v=b+h,y=void 0;else{if(I===" "&&S&&S!==" "&&S!==` `&&S!==" "){var A=e[b+1];A&&A!==" "&&A!==` -`&&A!==" "&&(y=b)}if(b>=v)if(y)p.push(y),v=y+h,y=void 0;else if(n===mE){for(;S===" "||S===" ";)S=I,I=e[b+=1],w=!0;var k=b>E+1?b-2:x-1;if(g[k])return e;p.push(k),g[k]=!0,v=k+h,y=void 0}else w=!0}S=I}if(w&&f&&f(),p.length===0)return e;u&&u();for(var O=e.slice(0,p[0]),D=0;Dr)return!0;if(s=o+1,i-s<=r)return!1}return!0}function Ep(e,t){var n=t.implicitKey,r=Hu.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,s=JSON.stringify(e);if(i)return s;for(var a=t.indent||(uA(e)?" ":""),c="",u=0,f=0,h=s[f];h;h=s[++f])if(h===" "&&s[f+1]==="\\"&&s[f+2]==="n"&&(c+=s.slice(u,f)+"\\ ",f+=1,u=f,h="\\"),h==="\\")switch(s[f+1]){case"u":{c+=s.slice(u,f);var p=s.substr(f+2,4);switch(p){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:p.substr(0,2)==="00"?c+="\\x"+p.substr(2):c+=s.substr(f,6)}f+=5,u=f+1}break;case"n":if(n||s[f+2]==='"'||s.length=v)if(y)p.push(y),v=y+h,y=void 0;else if(n===CE){for(;S===" "||S===" ";)S=I,I=e[b+=1],w=!0;var k=b>E+1?b-2:x-1;if(g[k])return e;p.push(k),g[k]=!0,v=k+h,y=void 0}else w=!0}S=I}if(w&&f&&f(),p.length===0)return e;u&&u();for(var O=e.slice(0,p[0]),D=0;Dr)return!0;if(s=o+1,i-s<=r)return!1}return!0}function Tp(e,t){var n=t.implicitKey,r=Wu.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,s=JSON.stringify(e);if(i)return s;for(var a=t.indent||(xA(e)?" ":""),c="",u=0,f=0,h=s[f];h;h=s[++f])if(h===" "&&s[f+1]==="\\"&&s[f+2]==="n"&&(c+=s.slice(u,f)+"\\ ",f+=1,u=f,h="\\"),h==="\\")switch(s[f+1]){case"u":{c+=s.slice(u,f);var p=s.substr(f+2,4);switch(p){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:p.substr(0,2)==="00"?c+="\\x"+p.substr(2):c+=s.substr(f,6)}f+=5,u=f+1}break;case"n":if(n||s[f+2]==='"'||s.length";if(!s)return f+` +`,f+=2;c+=a,s[f+2]===" "&&(c+="\\"),f+=1,u=f+1}break;default:f+=1}return c=u?c+s.slice(u):s,n?c:bA(c,a,CE,rU(t))}function Ute(e,t){if(t.implicitKey){if(/\n/.test(e))return Tp(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return Tp(e,t);var n=t.indent||(xA(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$& +`.concat(n))+"'";return t.implicitKey?r:bA(r,n,jte,rU(t))}function TE(e,t,n,r){var i=e.comment,o=e.type,s=e.value;if(/\n[\t ]+$/.test(s)||/^\s*$/.test(s))return Tp(s,t);var a=t.indent||(t.forceBlockIndent||xA(s)?" ":""),c=a?"2":"1",u=o===Se.BLOCK_FOLDED?!1:o===Se.BLOCK_LITERAL?!0:!R$e(s,Wu.fold.lineWidth,a.length),f=u?"|":">";if(!s)return f+` `;var h="",p="";if(s=s.replace(/[\n\t ]*$/,function(v){var y=v.indexOf(` `);return y===-1?f+="-":(s===v||y!==v.length-1)&&(f+="+",r&&r()),p=v.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(v){v.indexOf(" ")!==-1&&(f+=c);var y=v.match(/ +$/);return y?(h=v.slice(0,-y[0].length),y[0]):(h=v,"")}),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(a))),h&&(h=h.replace(/\n+/g,"$&".concat(a))),i&&(f+=" #"+i.replace(/ ?[\r\n]+/g," "),n&&n()),!s)return"".concat(f).concat(c,` `).concat(a).concat(p);if(u)return s=s.replace(/\n+/g,"$&".concat(a)),"".concat(f,` `).concat(a).concat(h).concat(s).concat(p);s=s.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(a));var g=cA("".concat(h).concat(s).concat(p),a,A3,Hu.fold);return"".concat(f,` -`).concat(a).concat(g)}function oPe(e,t,n,r){var i=e.comment,o=e.type,s=e.value,a=t.actualString,c=t.implicitKey,u=t.indent,f=t.inFlow;if(c&&/[\n[\]{},]/.test(s)||f&&/[[\]{},]/.test(s))return Ep(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return c||f||s.indexOf(` -`)===-1?s.indexOf('"')!==-1&&s.indexOf("'")===-1?xee(s,t):Ep(s,t):gE(e,t,n,r);if(!c&&!f&&o!==Se.PLAIN&&s.indexOf(` -`)!==-1)return gE(e,t,n,r);if(u===""&&uA(s))return t.forceBlockIndent=!0,gE(e,t,n,r);var h=s.replace(/\n+/g,`$& -`.concat(u));if(a){var p=t.doc.schema.tags,g=Mj(h,p,p.scalarFallback).value;if(typeof g!="string")return Ep(s,t)}var v=c?h:cA(h,u,bee,Lj(t));return i&&!f&&(v.indexOf(` +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(a));var g=bA("".concat(h).concat(s).concat(p),a,K3,Wu.fold);return"".concat(f,` +`).concat(a).concat(g)}function P$e(e,t,n,r){var i=e.comment,o=e.type,s=e.value,a=t.actualString,c=t.implicitKey,u=t.indent,f=t.inFlow;if(c&&/[\n[\]{},]/.test(s)||f&&/[[\]{},]/.test(s))return Tp(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return c||f||s.indexOf(` +`)===-1?s.indexOf('"')!==-1&&s.indexOf("'")===-1?Ute(s,t):Tp(s,t):TE(e,t,n,r);if(!c&&!f&&o!==Se.PLAIN&&s.indexOf(` +`)!==-1)return TE(e,t,n,r);if(u===""&&xA(s))return t.forceBlockIndent=!0,TE(e,t,n,r);var h=s.replace(/\n+/g,`$& +`.concat(u));if(a){var p=t.doc.schema.tags,g=nU(h,p,p.scalarFallback).value;if(typeof g!="string")return Tp(s,t)}var v=c?h:bA(h,u,jte,rU(t));return i&&!f&&(v.indexOf(` `)!==-1||i.indexOf(` -`)!==-1)?(n&&n(),tPe(v,u,i)):v}function Dj(e,t,n,r){var i=Hu.defaultType,o=t.implicitKey,s=t.inFlow,a=e,c=a.type,u=a.value;typeof u!="string"&&(u=String(u),e=Object.assign({},e,{value:u}));var f=function(g){switch(g){case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:return gE(e,t,n,r);case Se.QUOTE_DOUBLE:return Ep(u,t);case Se.QUOTE_SINGLE:return xee(u,t);case Se.PLAIN:return oPe(e,t,n,r);default:return null}};(c!==Se.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)||(o||s)&&(c===Se.BLOCK_FOLDED||c===Se.BLOCK_LITERAL))&&(c=Se.QUOTE_DOUBLE);var h=f(c);if(h===null&&(h=f(i),h===null))throw new Error("Unsupported default string type ".concat(i));return h}function Mu(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if(typeof i=="bigint")return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){var s=o.indexOf(".");s<0&&(s=o.length,o+=".");for(var a=n-(o.length-s-1);a-- >0;)o+="0"}return o}function wee(e,t){var n,r;switch(t.type){case Se.FLOW_MAP:n="}",r="flow map";break;case Se.FLOW_SEQ:n="]",r="flow sequence";break;default:e.push(new Qt(t,"Not a flow collection!?"));return}for(var i,o=t.items.length-1;o>=0;--o){var s=t.items[o];if(!s||s.type!==Se.COMMENT){i=s;break}}if(i&&i.char!==n){var a="Expected ".concat(r," to end with ").concat(n),c;typeof i.offset=="number"?(c=new Qt(t,a),c.offset=i.offset+1):(c=new Qt(i,a),i.range&&i.range.end&&(c.offset=i.range.end-i.range.start)),e.push(c)}}function _ee(e,t){var n=t.context.src[t.range.start-1];if(n!==` -`&&n!==" "&&n!==" "){var r="Comments must be separated from other tokens by white space characters";e.push(new Qt(t,r))}}function See(e,t){var n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new Qt(e,'The "'.concat(r,'" key is too long'))}function Eee(e,t){var n=ir(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.afterKey,s=i.before,a=i.comment,c=e.items[s];c?(o&&c.value&&(c=c.value),a===void 0?(o||!c.commentBefore)&&(c.spaceBefore=!0):c.commentBefore?c.commentBefore+=` +`)!==-1)?(n&&n(),k$e(v,u,i)):v}function iU(e,t,n,r){var i=Wu.defaultType,o=t.implicitKey,s=t.inFlow,a=e,c=a.type,u=a.value;typeof u!="string"&&(u=String(u),e=Object.assign({},e,{value:u}));var f=function(g){switch(g){case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:return TE(e,t,n,r);case Se.QUOTE_DOUBLE:return Tp(u,t);case Se.QUOTE_SINGLE:return Ute(u,t);case Se.PLAIN:return P$e(e,t,n,r);default:return null}};(c!==Se.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)||(o||s)&&(c===Se.BLOCK_FOLDED||c===Se.BLOCK_LITERAL))&&(c=Se.QUOTE_DOUBLE);var h=f(c);if(h===null&&(h=f(i),h===null))throw new Error("Unsupported default string type ".concat(i));return h}function Mu(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if(typeof i=="bigint")return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){var s=o.indexOf(".");s<0&&(s=o.length,o+=".");for(var a=n-(o.length-s-1);a-- >0;)o+="0"}return o}function Hte(e,t){var n,r;switch(t.type){case Se.FLOW_MAP:n="}",r="flow map";break;case Se.FLOW_SEQ:n="]",r="flow sequence";break;default:e.push(new Jt(t,"Not a flow collection!?"));return}for(var i,o=t.items.length-1;o>=0;--o){var s=t.items[o];if(!s||s.type!==Se.COMMENT){i=s;break}}if(i&&i.char!==n){var a="Expected ".concat(r," to end with ").concat(n),c;typeof i.offset=="number"?(c=new Jt(t,a),c.offset=i.offset+1):(c=new Jt(i,a),i.range&&i.range.end&&(c.offset=i.range.end-i.range.start)),e.push(c)}}function Wte(e,t){var n=t.context.src[t.range.start-1];if(n!==` +`&&n!==" "&&n!==" "){var r="Comments must be separated from other tokens by white space characters";e.push(new Jt(t,r))}}function Gte(e,t){var n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new Jt(e,'The "'.concat(r,'" key is too long'))}function Vte(e,t){var n=ir(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.afterKey,s=i.before,a=i.comment,c=e.items[s];c?(o&&c.value&&(c=c.value),a===void 0?(o||!c.commentBefore)&&(c.spaceBefore=!0):c.commentBefore?c.commentBefore+=` `+a:c.commentBefore=a):a!==void 0&&(e.comment?e.comment+=` -`+a:e.comment=a)}}catch(u){n.e(u)}finally{n.f()}}function Hw(e,t){var n=t.strValue;return n?typeof n=="string"?n:(n.errors.forEach(function(r){r.source||(r.source=t),e.errors.push(r)}),n.str):""}function sPe(e,t){var n=t.tag,r=n.handle,i=n.suffix,o=e.tagPrefixes.find(function(c){return c.handle===r});if(!o){var s=e.getDefaults().tagPrefixes;if(s&&(o=s.find(function(c){return c.handle===r})),!o)throw new Qt(t,"The ".concat(r," tag handle is non-default and was not declared."))}if(!i)throw new Qt(t,"The ".concat(r," tag has no suffix."));if(r==="!"&&(e.version||e.options.version)==="1.0"){if(i[0]==="^")return e.warnings.push(new Av(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var a=i.match(/^([a-z0-9-]+)\/(.*)/i);return a?"tag:".concat(a[1],".yaml.org,2002:").concat(a[2]):"tag:".concat(i)}}return o.prefix+decodeURIComponent(i)}function aPe(e,t){var n=t.tag,r=t.type,i=!1;if(n){var o=n.handle,s=n.suffix,a=n.verbatim;if(a){if(a!=="!"&&a!=="!!")return a;var c="Verbatim tags aren't resolved, so ".concat(a," is invalid.");e.errors.push(new Qt(t,c))}else if(o==="!"&&!s)i=!0;else try{return sPe(e,t)}catch(u){e.errors.push(u)}}switch(r){case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:case Se.QUOTE_DOUBLE:case Se.QUOTE_SINGLE:return Rd.STR;case Se.FLOW_MAP:case Se.MAP:return Rd.MAP;case Se.FLOW_SEQ:case Se.SEQ:return Rd.SEQ;case Se.PLAIN:return i?Rd.STR:null;default:return null}}function sG(e,t,n){var r=e.schema.tags,i=[],o=ir(r),s;try{for(o.s();!(s=o.n()).done;){var a=s.value;if(a.tag===n)if(a.test)i.push(a);else{var c=a.resolve(e,t);return c instanceof eo?c:new Un(c)}}}catch(f){o.e(f)}finally{o.f()}var u=Hw(e,t);return typeof u=="string"&&i.length>0?Mj(u,i,r.scalarFallback):null}function lPe(e){var t=e.type;switch(t){case Se.FLOW_MAP:case Se.MAP:return Rd.MAP;case Se.FLOW_SEQ:case Se.SEQ:return Rd.SEQ;default:return Rd.STR}}function cPe(e,t,n){try{var r=sG(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(c){return c.source||(c.source=t),e.errors.push(c),null}try{var i=lPe(t);if(!i)throw new Error("The tag ".concat(n," is unavailable"));var o="The tag ".concat(n," is unavailable, falling back to ").concat(i);e.warnings.push(new Av(t,o));var s=sG(e,t,i);return s.tag=n,s}catch(c){var a=new F1(t,c.message);return a.stack=c.stack,e.errors.push(a),null}}var uPe=function(t){if(!t)return!1;var n=t.type;return n===Se.MAP_KEY||n===Se.MAP_VALUE||n===Se.SEQ_ITEM};function dPe(e,t){var n={before:[],after:[]},r=!1,i=!1,o=uPe(t.context.parent)?t.context.parent.props.concat(t.props):t.props,s=ir(o),a;try{for(s.s();!(a=s.n()).done;){var c=a.value,u=c.start,f=c.end;switch(t.context.src[u]){case ni.COMMENT:{if(!t.commentHasRequiredWhitespace(u)){var h="Comments must be separated from other tokens by white space characters";e.push(new Qt(t,h))}var p=t.header,g=t.valueRange,v=g&&(u>g.start||p&&u>p.start)?n.after:n.before;v.push(t.context.src.slice(u+1,f));break}case ni.ANCHOR:if(r){var y="A node can have at most one anchor";e.push(new Qt(t,y))}r=!0;break;case ni.TAG:if(i){var S="A node can have at most one tag";e.push(new Qt(t,S))}i=!0;break}}}catch(w){s.e(w)}finally{s.f()}return{comments:n,hasAnchor:r,hasTag:i}}function fPe(e,t){var n=e.anchors,r=e.errors,i=e.schema;if(t.type===Se.ALIAS){var o=t.rawValue,s=n.getNode(o);if(!s){var a="Aliased anchor not found: ".concat(o);return r.push(new F1(t,a)),null}var c=new Uu(s);return n._cstAliases.push(c),c}var u=aPe(e,t);if(u)return cPe(e,t,u);if(t.type!==Se.PLAIN){var f="Failed to resolve ".concat(t.type," node here");return r.push(new go(t,f)),null}try{var h=Hw(e,t);return Mj(h,i.tags,i.tags.scalarFallback)}catch(p){return p.source||(p.source=t),r.push(p),null}}function Kd(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=dPe(e.errors,t),r=n.comments,i=n.hasAnchor,o=n.hasTag;if(i){var s=e.anchors,a=t.anchor,c=s.getNode(a);c&&(s.map[s.newName(a)]=c),s.map[a]=t}if(t.type===Se.ALIAS&&(i||o)){var u="An alias node must not specify any properties";e.errors.push(new Qt(t,u))}var f=fPe(e,t);if(f){f.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(f.cstNode=t),e.options.keepNodeTypes&&(f.type=t.type);var h=r.before.join(` +`+a:e.comment=a)}}catch(u){n.e(u)}finally{n.f()}}function Vw(e,t){var n=t.strValue;return n?typeof n=="string"?n:(n.errors.forEach(function(r){r.source||(r.source=t),e.errors.push(r)}),n.str):""}function O$e(e,t){var n=t.tag,r=n.handle,i=n.suffix,o=e.tagPrefixes.find(function(c){return c.handle===r});if(!o){var s=e.getDefaults().tagPrefixes;if(s&&(o=s.find(function(c){return c.handle===r})),!o)throw new Jt(t,"The ".concat(r," tag handle is non-default and was not declared."))}if(!i)throw new Jt(t,"The ".concat(r," tag has no suffix."));if(r==="!"&&(e.version||e.options.version)==="1.0"){if(i[0]==="^")return e.warnings.push(new Ov(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var a=i.match(/^([a-z0-9-]+)\/(.*)/i);return a?"tag:".concat(a[1],".yaml.org,2002:").concat(a[2]):"tag:".concat(i)}}return o.prefix+decodeURIComponent(i)}function M$e(e,t){var n=t.tag,r=t.type,i=!1;if(n){var o=n.handle,s=n.suffix,a=n.verbatim;if(a){if(a!=="!"&&a!=="!!")return a;var c="Verbatim tags aren't resolved, so ".concat(a," is invalid.");e.errors.push(new Jt(t,c))}else if(o==="!"&&!s)i=!0;else try{return O$e(e,t)}catch(u){e.errors.push(u)}}switch(r){case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:case Se.QUOTE_DOUBLE:case Se.QUOTE_SINGLE:return Rd.STR;case Se.FLOW_MAP:case Se.MAP:return Rd.MAP;case Se.FLOW_SEQ:case Se.SEQ:return Rd.SEQ;case Se.PLAIN:return i?Rd.STR:null;default:return null}}function Z9(e,t,n){var r=e.schema.tags,i=[],o=ir(r),s;try{for(o.s();!(s=o.n()).done;){var a=s.value;if(a.tag===n)if(a.test)i.push(a);else{var c=a.resolve(e,t);return c instanceof eo?c:new Un(c)}}}catch(f){o.e(f)}finally{o.f()}var u=Vw(e,t);return typeof u=="string"&&i.length>0?nU(u,i,r.scalarFallback):null}function L$e(e){var t=e.type;switch(t){case Se.FLOW_MAP:case Se.MAP:return Rd.MAP;case Se.FLOW_SEQ:case Se.SEQ:return Rd.SEQ;default:return Rd.STR}}function D$e(e,t,n){try{var r=Z9(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(c){return c.source||(c.source=t),e.errors.push(c),null}try{var i=L$e(t);if(!i)throw new Error("The tag ".concat(n," is unavailable"));var o="The tag ".concat(n," is unavailable, falling back to ").concat(i);e.warnings.push(new Ov(t,o));var s=Z9(e,t,i);return s.tag=n,s}catch(c){var a=new q1(t,c.message);return a.stack=c.stack,e.errors.push(a),null}}var N$e=function(t){if(!t)return!1;var n=t.type;return n===Se.MAP_KEY||n===Se.MAP_VALUE||n===Se.SEQ_ITEM};function B$e(e,t){var n={before:[],after:[]},r=!1,i=!1,o=N$e(t.context.parent)?t.context.parent.props.concat(t.props):t.props,s=ir(o),a;try{for(s.s();!(a=s.n()).done;){var c=a.value,u=c.start,f=c.end;switch(t.context.src[u]){case ni.COMMENT:{if(!t.commentHasRequiredWhitespace(u)){var h="Comments must be separated from other tokens by white space characters";e.push(new Jt(t,h))}var p=t.header,g=t.valueRange,v=g&&(u>g.start||p&&u>p.start)?n.after:n.before;v.push(t.context.src.slice(u+1,f));break}case ni.ANCHOR:if(r){var y="A node can have at most one anchor";e.push(new Jt(t,y))}r=!0;break;case ni.TAG:if(i){var S="A node can have at most one tag";e.push(new Jt(t,S))}i=!0;break}}}catch(w){s.e(w)}finally{s.f()}return{comments:n,hasAnchor:r,hasTag:i}}function $$e(e,t){var n=e.anchors,r=e.errors,i=e.schema;if(t.type===Se.ALIAS){var o=t.rawValue,s=n.getNode(o);if(!s){var a="Aliased anchor not found: ".concat(o);return r.push(new q1(t,a)),null}var c=new Hu(s);return n._cstAliases.push(c),c}var u=M$e(e,t);if(u)return D$e(e,t,u);if(t.type!==Se.PLAIN){var f="Failed to resolve ".concat(t.type," node here");return r.push(new go(t,f)),null}try{var h=Vw(e,t);return nU(h,i.tags,i.tags.scalarFallback)}catch(p){return p.source||(p.source=t),r.push(p),null}}function Kd(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=B$e(e.errors,t),r=n.comments,i=n.hasAnchor,o=n.hasTag;if(i){var s=e.anchors,a=t.anchor,c=s.getNode(a);c&&(s.map[s.newName(a)]=c),s.map[a]=t}if(t.type===Se.ALIAS&&(i||o)){var u="An alias node must not specify any properties";e.errors.push(new Jt(t,u))}var f=$$e(e,t);if(f){f.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(f.cstNode=t),e.options.keepNodeTypes&&(f.type=t.type);var h=r.before.join(` `);h&&(f.commentBefore=f.commentBefore?"".concat(f.commentBefore,` `).concat(h):h);var p=r.after.join(` `);p&&(f.comment=f.comment?"".concat(f.comment,` -`).concat(p):p)}return t.resolved=f}function Cee(e,t){if(t.type!==Se.MAP&&t.type!==Se.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new go(t,n)),null}var r=t.type===Se.FLOW_MAP?gPe(e,t):mPe(e,t),i=r.comments,o=r.items,s=new Qo;s.items=o,Eee(s,i);for(var a=!1,c=0;ci.valueRange.start||o[a]!==ni.COMMENT)return!1;for(var c=r;c0){u=new mee(Se.PLAIN,[]),u.context={parent:a,src:a.context.src};var f=a.range.start+1;if(u.range={start:f,end:f},u.valueRange={start:f,end:f},typeof a.range.origStart=="number"){var h=a.range.origStart+1;u.range.origStart=u.range.origEnd=h,u.valueRange.origStart=u.valueRange.origEnd=h}}var p=new vn(i,Kd(e,u));pPe(a,p),r.push(p),i&&typeof o=="number"&&a.range.start>o+1024&&e.errors.push(See(t,i)),i=void 0,o=null}break;default:i!==void 0&&r.push(new vn(i)),i=Kd(e,a),o=a.range.start,a.error&&e.errors.push(a.error);e:for(var g=s+1;;++g){var v=t.items[g];switch(v&&v.type){case Se.BLANK_LINE:case Se.COMMENT:continue e;case Se.MAP_VALUE:break e;default:{var y="Implicit map keys need to be followed by map values";e.errors.push(new Qt(a,y));break e}}}if(a.valueRangeContainsNewline){var S="Implicit map keys need to be on a single line";e.errors.push(new Qt(a,S))}}}return i!==void 0&&r.push(new vn(i)),{comments:n,items:r}}function gPe(e,t){for(var n=[],r=[],i=void 0,o=!1,s="{",a=0;as+1024&&e.errors.push(See(t,o));for(var S=c.context.src,w=s;w1){var o="Each pair must have its own sequence indicator";throw new Qt(t,o)}var s=i.items[0]||new vn;i.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(i.commentBefore,` +`).concat(p):p)}return t.resolved=f}function qte(e,t){if(t.type!==Se.MAP&&t.type!==Se.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new go(t,n)),null}var r=t.type===Se.FLOW_MAP?U$e(e,t):j$e(e,t),i=r.comments,o=r.items,s=new Jo;s.items=o,Vte(s,i);for(var a=!1,c=0;ci.valueRange.start||o[a]!==ni.COMMENT)return!1;for(var c=r;c0){u=new Bte(Se.PLAIN,[]),u.context={parent:a,src:a.context.src};var f=a.range.start+1;if(u.range={start:f,end:f},u.valueRange={start:f,end:f},typeof a.range.origStart=="number"){var h=a.range.origStart+1;u.range.origStart=u.range.origEnd=h,u.valueRange.origStart=u.valueRange.origEnd=h}}var p=new vn(i,Kd(e,u));z$e(a,p),r.push(p),i&&typeof o=="number"&&a.range.start>o+1024&&e.errors.push(Gte(t,i)),i=void 0,o=null}break;default:i!==void 0&&r.push(new vn(i)),i=Kd(e,a),o=a.range.start,a.error&&e.errors.push(a.error);e:for(var g=s+1;;++g){var v=t.items[g];switch(v&&v.type){case Se.BLANK_LINE:case Se.COMMENT:continue e;case Se.MAP_VALUE:break e;default:{var y="Implicit map keys need to be followed by map values";e.errors.push(new Jt(a,y));break e}}}if(a.valueRangeContainsNewline){var S="Implicit map keys need to be on a single line";e.errors.push(new Jt(a,S))}}}return i!==void 0&&r.push(new vn(i)),{comments:n,items:r}}function U$e(e,t){for(var n=[],r=[],i=void 0,o=!1,s="{",a=0;as+1024&&e.errors.push(Gte(t,o));for(var S=c.context.src,w=s;w1){var o="Each pair must have its own sequence indicator";throw new Jt(t,o)}var s=i.items[0]||new vn;i.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(i.commentBefore,` `).concat(s.commentBefore):i.commentBefore),i.comment&&(s.comment=s.comment?"".concat(i.comment,` -`).concat(s.comment):i.comment),i=s}n.items[r]=i instanceof vn?i:new vn(i)}}return n}function Iee(e,t,n){var r=new ic(e);r.tag="tag:yaml.org,2002:pairs";var i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,a=void 0,c=void 0;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError("Expected [key, value] tuple: ".concat(s));else if(s&&s instanceof Object){var u=Object.keys(s);if(u.length===1)a=u[0],c=s[a];else throw new TypeError("Expected { key: value } tuple: ".concat(s))}else a=s;var f=e.createPair(a,c,n);r.items.push(f)}}catch(h){i.e(h)}finally{i.f()}return r}var Ree={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Aee,createNode:Iee},dA=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this),ho(aa(r),"add",Qo.prototype.add.bind(aa(r))),ho(aa(r),"delete",Qo.prototype.delete.bind(aa(r))),ho(aa(r),"get",Qo.prototype.get.bind(aa(r))),ho(aa(r),"has",Qo.prototype.has.bind(aa(r))),ho(aa(r),"set",Qo.prototype.set.bind(aa(r))),r.tag=n.tag,r}return Yn(n,[{key:"toJSON",value:function(i,o){var s=new Map;o&&o.onCreate&&o.onCreate(s);var a=ir(this.items),c;try{for(a.s();!(c=a.n()).done;){var u=c.value,f=void 0,h=void 0;if(u instanceof vn?(f=_l(u.key,"",o),h=_l(u.value,f,o)):f=_l(u,"",o),s.has(f))throw new Error("Ordered maps must not include duplicate keys");s.set(f,h)}}catch(p){a.e(p)}finally{a.f()}return s}}]),n}(ic);ho(dA,"tag","tag:yaml.org,2002:omap");function bPe(e,t){var n=Aee(e,t),r=[],i=ir(n.items),o;try{for(i.s();!(o=i.n()).done;){var s=o.value.key;if(s instanceof Un)if(r.includes(s.value)){var a="Ordered maps must not include duplicate keys";throw new Qt(t,a)}else r.push(s.value)}}catch(c){i.e(c)}finally{i.f()}return Object.assign(new dA,n)}function xPe(e,t,n){var r=Iee(e,t,n),i=new dA;return i.items=r.items,i}var Pee={identify:function(t){return t instanceof Map},nodeClass:dA,default:!1,tag:"tag:yaml.org,2002:omap",resolve:bPe,createNode:xPe},fA=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this),r.tag=n.tag,r}return Yn(n,[{key:"add",value:function(i){var o=i instanceof vn?i:new vn(i),s=pp(this.items,o.key);s||this.items.push(o)}},{key:"get",value:function(i,o){var s=pp(this.items,i);return!o&&s instanceof vn?s.key instanceof Un?s.key.value:s.key:s}},{key:"set",value:function(i,o){if(typeof o!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(qs(o)));var s=pp(this.items,i);s&&!o?this.items.splice(this.items.indexOf(s),1):!s&&o&&this.items.push(new vn(i))}},{key:"toJSON",value:function(i,o){return as(io(n.prototype),"toJSON",this).call(this,i,o,Set)}},{key:"toString",value:function(i,o,s){if(!i)return JSON.stringify(this);if(this.hasAllNullValues())return as(io(n.prototype),"toString",this).call(this,i,o,s);throw new Error("Set items must all have null values")}}]),n}(Qo);ho(fA,"tag","tag:yaml.org,2002:set");function wPe(e,t){var n=Cee(e,t);if(!n.hasAllNullValues())throw new Qt(t,"Set items must all have null values");return Object.assign(new fA,n)}function _Pe(e,t,n){var r=new fA,i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r.items.push(e.createPair(s,null,n))}}catch(a){i.e(a)}finally{i.f()}return r}var Oee={identify:function(t){return t instanceof Set},nodeClass:fA,default:!1,tag:"tag:yaml.org,2002:set",resolve:wPe,createNode:_Pe},Nj=function(t,n){var r=n.split(":").reduce(function(i,o){return i*60+Number(o)},0);return t==="-"?-r:r},Mee=function(t){var n=t.value;if(isNaN(n)||!isFinite(n))return Mu(n);var r="";n<0&&(r="-",n=Math.abs(n));var i=[n%60];return n<60?i.unshift(0):(n=Math.round((n-i[0])/60),i.unshift(n%60),n>=60&&(n=Math.round((n-i[0])/60),i.unshift(n))),r+i.map(function(o){return o<10?"0"+String(o):String(o)}).join(":").replace(/000000\d*$/,"")},Lee={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(t,n,r){return Nj(n,r.replace(/_/g,""))},stringify:Mee},Dee={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(t,n,r){return Nj(n,r.replace(/_/g,""))},stringify:Mee},Nee={identify:function(t){return t instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(t,n,r,i,o,s,a,c,u){c&&(c=(c+"00").substr(1,3));var f=Date.UTC(n,r-1,i,o||0,s||0,a||0,c||0);if(u&&u!=="Z"){var h=Nj(u[0],u.slice(1));Math.abs(h)<30&&(h*=60),f-=6e4*h}return new Date(f)},stringify:function(t){var n=t.value;return n.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function Bee(e){var t=typeof process<"u"&&process.env||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function $ee(e,t){if(Bee(!1)){var n=typeof process<"u"&&process.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var aG={};function SPe(e,t){if(!aG[e]&&Bee(!0)){aG[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");n+=t?", use '".concat(t,"' instead."):".",$ee(n,"DeprecationWarning")}}function EPe(e,t,n){var r=new Qo(e);if(t instanceof Map){var i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=Uw(o.value,2),a=s[0],c=s[1];r.items.push(e.createPair(a,c,n))}}catch(p){i.e(p)}finally{i.f()}}else if(t&&qs(t)==="object")for(var u=0,f=Object.keys(t);u=0?n+r.toString(t):Mu(e)}var zee={identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:nv,stringify:function(){return nv.nullStr}},jee={identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(t){return t[0]==="t"||t[0]==="T"},options:Ou,stringify:function(t){var n=t.value;return n?Ou.trueStr:Ou.falseStr}},Uee={identify:function(t){return pA(t)&&t>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(t,n){return $j(t,n,8)},options:of,stringify:function(t){return Fee(t,8,"0o")}},Hee={identify:pA,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(t){return $j(t,t,10)},options:of,stringify:Mu},Wee={identify:function(t){return pA(t)&&t>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(t,n){return $j(t,n,16)},options:of,stringify:function(t){return Fee(t,16,"0x")}},Gee={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(t,n){return n?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Mu},Vee={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(t){return parseFloat(t)},stringify:function(t){var n=t.value;return Number(n).toExponential()}},qee={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(t,n,r){var i=n||r,o=new Un(parseFloat(t));return i&&i[i.length-1]==="0"&&(o.minFractionDigits=i.length),o},stringify:Mu},kPe=Bj.concat([zee,jee,Uee,Hee,Wee,Gee,Vee,qee]),lG=function(t){return typeof t=="bigint"||Number.isInteger(t)},Y_=function(t){var n=t.value;return JSON.stringify(n)},Xee=[j1,hA,{identify:function(t){return typeof t=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:Hw,stringify:Y_},{identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:Y_},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(t){return t==="true"},stringify:Y_},{identify:lG,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(t){return of.asBigInt?BigInt(t):parseInt(t,10)},stringify:function(t){var n=t.value;return lG(n)?n.toString():JSON.stringify(n)}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(t){return parseFloat(t)},stringify:Y_}];Xee.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var cG=function(t){var n=t.value;return n?Ou.trueStr:Ou.falseStr},ux=function(t){return typeof t=="bigint"||Number.isInteger(t)};function K_(e,t,n){var r=t.replace(/_/g,"");if(of.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r);break}var i=BigInt(r);return e==="-"?BigInt(-1)*i:i}var o=parseInt(r,n);return e==="-"?-1*o:o}function _N(e,t,n){var r=e.value;if(ux(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Mu(e)}var APe=Bj.concat([{identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:nv,stringify:function(){return nv.nullStr}},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:Ou,stringify:cG},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:Ou,stringify:cG},{identify:ux,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(t,n,r){return K_(n,r,2)},stringify:function(t){return _N(t,2,"0b")}},{identify:ux,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(t,n,r){return K_(n,r,8)},stringify:function(t){return _N(t,8,"0")}},{identify:ux,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(t,n,r){return K_(n,r,10)},stringify:Mu},{identify:ux,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(t,n,r){return K_(n,r,16)},stringify:function(t){return _N(t,16,"0x")}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(t,n){return n?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Mu},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(t){return parseFloat(t.replace(/_/g,""))},stringify:function(t){var n=t.value;return Number(n).toExponential()}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(t,n){var r=new Un(parseFloat(t.replace(/_/g,"")));if(n){var i=n.replace(/_/g,"");i[i.length-1]==="0"&&(r.minFractionDigits=i.length)}return r},stringify:Mu}],kee,Pee,Ree,Oee,Lee,Dee,Nee),IPe={core:kPe,failsafe:Bj,json:Xee,yaml11:APe},RPe={binary:kee,bool:jee,float:qee,floatExp:Vee,floatNaN:Gee,floatTime:Dee,int:Hee,intHex:Wee,intOct:Uee,intTime:Lee,map:j1,null:zee,omap:Pee,pairs:Ree,seq:hA,set:Oee,timestamp:Nee};function PPe(e,t,n){if(t){var r=n.filter(function(o){return o.tag===t}),i=r.find(function(o){return!o.format})||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find(function(o){return(o.identify&&o.identify(e)||o.class&&e instanceof o.class)&&!o.format})}function OPe(e,t,n){if(e instanceof Ko)return e;var r=n.defaultPrefix,i=n.onTagObj,o=n.prevObjects,s=n.schema,a=n.wrapScalars;t&&t.startsWith("!!")&&(t=r+t.slice(2));var c=PPe(e,t,s.tags);if(!c){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||qs(e)!=="object")return a?new Un(e):e;c=e instanceof Map?j1:e[Symbol.iterator]?hA:j1}i&&(i(c),delete n.onTagObj);var u={value:void 0,node:void 0};if(e&&qs(e)==="object"&&o){var f=o.get(e);if(f){var h=new Uu(f);return n.aliasNodes.push(h),h}u.value=e,o.set(e,u)}return u.node=c.createNode?c.createNode(n.schema,e,n):a?new Un(e):e,t&&u.node instanceof Ko&&(u.node.tag=t),u.node}function MPe(e,t,n,r){var i=e[r.replace(/\W/g,"")];if(!i){var o=Object.keys(e).map(function(g){return JSON.stringify(g)}).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(o))}if(Array.isArray(n)){var s=ir(n),a;try{for(s.s();!(a=s.n()).done;){var c=a.value;i=i.concat(c)}}catch(g){s.e(g)}finally{s.f()}}else typeof n=="function"&&(i=n(i.slice()));for(var u=0;un.key?1:0},U1=function(){function e(t){var n=t.customTags,r=t.merge,i=t.schema,o=t.sortMapEntries,s=t.tags;xn(this,e),this.merge=!!r,this.name=i,this.sortMapEntries=o===!0?LPe:o||null,!n&&s&&SPe("tags","customTags"),this.tags=MPe(IPe,RPe,n||s,i)}return Yn(e,[{key:"createNode",value:function(n,r,i,o){var s={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r},a=o?Object.assign(o,s):s;return OPe(n,i,a)}},{key:"createPair",value:function(n,r,i){i||(i={wrapScalars:!0});var o=this.createNode(n,i.wrapScalars,null,i),s=this.createNode(r,i.wrapScalars,null,i);return new vn(o,s)}}]),e}();ho(U1,"defaultPrefix",pE);ho(U1,"defaultTags",Rd);var BC={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},DPe={get binary(){return Vx},set binary(e){Object.assign(Vx,e)},get bool(){return Ou},set bool(e){Object.assign(Ou,e)},get int(){return of},set int(e){Object.assign(of,e)},get null(){return nv},set null(e){Object.assign(nv,e)},get str(){return Hu},set str(e){Object.assign(Hu,e)}},Yee={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:pE},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:pE}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:pE}]}};function uG(e,t){if((e.version||e.options.version)==="1.0"){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find(function(a){return t.indexOf(a.prefix)===0});if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find(function(a){return t.indexOf(a.prefix)===0})}if(!i)return t[0]==="!"?t:"!<".concat(t,">");var s=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,function(a){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[a]});return i.handle+s}function NPe(e,t){if(t instanceof Uu)return Uu;if(t.tag){var n=e.filter(function(a){return a.tag===t.tag});if(n.length>0)return n.find(function(a){return a.format===t.format})||n[0]}var r,i;if(t instanceof Un){i=t.value;var o=e.filter(function(a){return a.identify&&a.identify(i)||a.class&&i instanceof a.class});r=o.find(function(a){return a.format===t.format})||o.find(function(a){return!a.format})}else i=t,r=e.find(function(a){return a.nodeClass&&i instanceof a.nodeClass});if(!r){var s=i&&i.constructor?i.constructor.name:qs(i);throw new Error("Tag not resolved for ".concat(s," value"))}return r}function BPe(e,t,n){var r=n.anchors,i=n.doc,o=[],s=i.anchors.getName(e);return s&&(r[s]=e,o.push("&".concat(s))),e.tag?o.push(uG(i,e.tag)):t.default||o.push(uG(i,t.tag)),o.join(" ")}function Q_(e,t,n,r){var i=t.doc,o=i.anchors,s=i.schema,a;if(!(e instanceof Ko)){var c={aliasNodes:[],onTagObj:function(S){return a=S},prevObjects:new Map};e=s.createNode(e,!0,null,c);var u=ir(c.aliasNodes),f;try{for(u.s();!(f=u.n()).done;){var h=f.value;h.source=h.source.node;var p=o.getName(h.source);p||(p=o.newName(),o.map[p]=h.source)}}catch(y){u.e(y)}finally{u.f()}}if(e instanceof vn)return e.toString(t,n,r);a||(a=NPe(s.tags,e));var g=BPe(e,a,t);g.length>0&&(t.indentAtStart=(t.indentAtStart||0)+g.length+1);var v=typeof a.stringify=="function"?a.stringify(e,t,n,r):e instanceof Un?Dj(e,t,n,r):e.toString(t,n,r);return g?e instanceof Un||v[0]==="{"||v[0]==="["?"".concat(g," ").concat(v):"".concat(g,` -`).concat(t.indent).concat(v):v}var $Pe=function(){function e(t){xn(this,e),ho(this,"map",Object.create(null)),this.prefix=t}return Yn(e,[{key:"createAlias",value:function(n,r){return this.setAnchor(n,r),new Uu(n)}},{key:"createMergePair",value:function(){for(var n=this,r=new yee,i=arguments.length,o=new Array(i),s=0;s0&&!e.commentBefore&&(e.commentBefore=n.before.join(` +`).concat(s.comment):i.comment),i=s}n.items[r]=i instanceof vn?i:new vn(i)}}return n}function Qte(e,t,n){var r=new oc(e);r.tag="tag:yaml.org,2002:pairs";var i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,a=void 0,c=void 0;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError("Expected [key, value] tuple: ".concat(s));else if(s&&s instanceof Object){var u=Object.keys(s);if(u.length===1)a=u[0],c=s[a];else throw new TypeError("Expected { key: value } tuple: ".concat(s))}else a=s;var f=e.createPair(a,c,n);r.items.push(f)}}catch(h){i.e(h)}finally{i.f()}return r}var Jte={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Kte,createNode:Qte},wA=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this),ho(la(r),"add",Jo.prototype.add.bind(la(r))),ho(la(r),"delete",Jo.prototype.delete.bind(la(r))),ho(la(r),"get",Jo.prototype.get.bind(la(r))),ho(la(r),"has",Jo.prototype.has.bind(la(r))),ho(la(r),"set",Jo.prototype.set.bind(la(r))),r.tag=n.tag,r}return Yn(n,[{key:"toJSON",value:function(i,o){var s=new Map;o&&o.onCreate&&o.onCreate(s);var a=ir(this.items),c;try{for(a.s();!(c=a.n()).done;){var u=c.value,f=void 0,h=void 0;if(u instanceof vn?(f=_l(u.key,"",o),h=_l(u.value,f,o)):f=_l(u,"",o),s.has(f))throw new Error("Ordered maps must not include duplicate keys");s.set(f,h)}}catch(p){a.e(p)}finally{a.f()}return s}}]),n}(oc);ho(wA,"tag","tag:yaml.org,2002:omap");function G$e(e,t){var n=Kte(e,t),r=[],i=ir(n.items),o;try{for(i.s();!(o=i.n()).done;){var s=o.value.key;if(s instanceof Un)if(r.includes(s.value)){var a="Ordered maps must not include duplicate keys";throw new Jt(t,a)}else r.push(s.value)}}catch(c){i.e(c)}finally{i.f()}return Object.assign(new wA,n)}function V$e(e,t,n){var r=Qte(e,t,n),i=new wA;return i.items=r.items,i}var Zte={identify:function(t){return t instanceof Map},nodeClass:wA,default:!1,tag:"tag:yaml.org,2002:omap",resolve:G$e,createNode:V$e},_A=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this),r.tag=n.tag,r}return Yn(n,[{key:"add",value:function(i){var o=i instanceof vn?i:new vn(i),s=gp(this.items,o.key);s||this.items.push(o)}},{key:"get",value:function(i,o){var s=gp(this.items,i);return!o&&s instanceof vn?s.key instanceof Un?s.key.value:s.key:s}},{key:"set",value:function(i,o){if(typeof o!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(Xs(o)));var s=gp(this.items,i);s&&!o?this.items.splice(this.items.indexOf(s),1):!s&&o&&this.items.push(new vn(i))}},{key:"toJSON",value:function(i,o){return ls(io(n.prototype),"toJSON",this).call(this,i,o,Set)}},{key:"toString",value:function(i,o,s){if(!i)return JSON.stringify(this);if(this.hasAllNullValues())return ls(io(n.prototype),"toString",this).call(this,i,o,s);throw new Error("Set items must all have null values")}}]),n}(Jo);ho(_A,"tag","tag:yaml.org,2002:set");function q$e(e,t){var n=qte(e,t);if(!n.hasAllNullValues())throw new Jt(t,"Set items must all have null values");return Object.assign(new _A,n)}function X$e(e,t,n){var r=new _A,i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r.items.push(e.createPair(s,null,n))}}catch(a){i.e(a)}finally{i.f()}return r}var ene={identify:function(t){return t instanceof Set},nodeClass:_A,default:!1,tag:"tag:yaml.org,2002:set",resolve:q$e,createNode:X$e},oU=function(t,n){var r=n.split(":").reduce(function(i,o){return i*60+Number(o)},0);return t==="-"?-r:r},tne=function(t){var n=t.value;if(isNaN(n)||!isFinite(n))return Mu(n);var r="";n<0&&(r="-",n=Math.abs(n));var i=[n%60];return n<60?i.unshift(0):(n=Math.round((n-i[0])/60),i.unshift(n%60),n>=60&&(n=Math.round((n-i[0])/60),i.unshift(n))),r+i.map(function(o){return o<10?"0"+String(o):String(o)}).join(":").replace(/000000\d*$/,"")},nne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(t,n,r){return oU(n,r.replace(/_/g,""))},stringify:tne},rne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(t,n,r){return oU(n,r.replace(/_/g,""))},stringify:tne},ine={identify:function(t){return t instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(t,n,r,i,o,s,a,c,u){c&&(c=(c+"00").substr(1,3));var f=Date.UTC(n,r-1,i,o||0,s||0,a||0,c||0);if(u&&u!=="Z"){var h=oU(u[0],u.slice(1));Math.abs(h)<30&&(h*=60),f-=6e4*h}return new Date(f)},stringify:function(t){var n=t.value;return n.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function one(e){var t=typeof process<"u"&&process.env||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function sne(e,t){if(one(!1)){var n=typeof process<"u"&&process.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var e7={};function Y$e(e,t){if(!e7[e]&&one(!0)){e7[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");n+=t?", use '".concat(t,"' instead."):".",sne(n,"DeprecationWarning")}}function K$e(e,t,n){var r=new Jo(e);if(t instanceof Map){var i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=Gw(o.value,2),a=s[0],c=s[1];r.items.push(e.createPair(a,c,n))}}catch(p){i.e(p)}finally{i.f()}}else if(t&&Xs(t)==="object")for(var u=0,f=Object.keys(t);u=0?n+r.toString(t):Mu(e)}var lne={identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:sv,stringify:function(){return sv.nullStr}},cne={identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(t){return t[0]==="t"||t[0]==="T"},options:Ou,stringify:function(t){var n=t.value;return n?Ou.trueStr:Ou.falseStr}},une={identify:function(t){return EA(t)&&t>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(t,n){return aU(t,n,8)},options:of,stringify:function(t){return ane(t,8,"0o")}},dne={identify:EA,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(t){return aU(t,t,10)},options:of,stringify:Mu},fne={identify:function(t){return EA(t)&&t>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(t,n){return aU(t,n,16)},options:of,stringify:function(t){return ane(t,16,"0x")}},hne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(t,n){return n?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Mu},pne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(t){return parseFloat(t)},stringify:function(t){var n=t.value;return Number(n).toExponential()}},mne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(t,n,r){var i=n||r,o=new Un(parseFloat(t));return i&&i[i.length-1]==="0"&&(o.minFractionDigits=i.length),o},stringify:Mu},Z$e=sU.concat([lne,cne,une,dne,fne,hne,pne,mne]),t7=function(t){return typeof t=="bigint"||Number.isInteger(t)},aS=function(t){var n=t.value;return JSON.stringify(n)},gne=[Y1,SA,{identify:function(t){return typeof t=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:Vw,stringify:aS},{identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:aS},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(t){return t==="true"},stringify:aS},{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(t){return of.asBigInt?BigInt(t):parseInt(t,10)},stringify:function(t){var n=t.value;return t7(n)?n.toString():JSON.stringify(n)}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(t){return parseFloat(t)},stringify:aS}];gne.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var n7=function(t){var n=t.value;return n?Ou.trueStr:Ou.falseStr},fx=function(t){return typeof t=="bigint"||Number.isInteger(t)};function lS(e,t,n){var r=t.replace(/_/g,"");if(of.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r);break}var i=BigInt(r);return e==="-"?BigInt(-1)*i:i}var o=parseInt(r,n);return e==="-"?-1*o:o}function AB(e,t,n){var r=e.value;if(fx(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Mu(e)}var eFe=sU.concat([{identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:sv,stringify:function(){return sv.nullStr}},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:Ou,stringify:n7},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:Ou,stringify:n7},{identify:fx,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(t,n,r){return lS(n,r,2)},stringify:function(t){return AB(t,2,"0b")}},{identify:fx,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(t,n,r){return lS(n,r,8)},stringify:function(t){return AB(t,8,"0")}},{identify:fx,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(t,n,r){return lS(n,r,10)},stringify:Mu},{identify:fx,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(t,n,r){return lS(n,r,16)},stringify:function(t){return AB(t,16,"0x")}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(t,n){return n?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Mu},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(t){return parseFloat(t.replace(/_/g,""))},stringify:function(t){var n=t.value;return Number(n).toExponential()}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(t,n){var r=new Un(parseFloat(t.replace(/_/g,"")));if(n){var i=n.replace(/_/g,"");i[i.length-1]==="0"&&(r.minFractionDigits=i.length)}return r},stringify:Mu}],Yte,Zte,Jte,ene,nne,rne,ine),tFe={core:Z$e,failsafe:sU,json:gne,yaml11:eFe},nFe={binary:Yte,bool:cne,float:mne,floatExp:pne,floatNaN:hne,floatTime:rne,int:dne,intHex:fne,intOct:une,intTime:nne,map:Y1,null:lne,omap:Zte,pairs:Jte,seq:SA,set:ene,timestamp:ine};function rFe(e,t,n){if(t){var r=n.filter(function(o){return o.tag===t}),i=r.find(function(o){return!o.format})||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find(function(o){return(o.identify&&o.identify(e)||o.class&&e instanceof o.class)&&!o.format})}function iFe(e,t,n){if(e instanceof Qo)return e;var r=n.defaultPrefix,i=n.onTagObj,o=n.prevObjects,s=n.schema,a=n.wrapScalars;t&&t.startsWith("!!")&&(t=r+t.slice(2));var c=rFe(e,t,s.tags);if(!c){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||Xs(e)!=="object")return a?new Un(e):e;c=e instanceof Map?Y1:e[Symbol.iterator]?SA:Y1}i&&(i(c),delete n.onTagObj);var u={value:void 0,node:void 0};if(e&&Xs(e)==="object"&&o){var f=o.get(e);if(f){var h=new Hu(f);return n.aliasNodes.push(h),h}u.value=e,o.set(e,u)}return u.node=c.createNode?c.createNode(n.schema,e,n):a?new Un(e):e,t&&u.node instanceof Qo&&(u.node.tag=t),u.node}function oFe(e,t,n,r){var i=e[r.replace(/\W/g,"")];if(!i){var o=Object.keys(e).map(function(g){return JSON.stringify(g)}).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(o))}if(Array.isArray(n)){var s=ir(n),a;try{for(s.s();!(a=s.n()).done;){var c=a.value;i=i.concat(c)}}catch(g){s.e(g)}finally{s.f()}}else typeof n=="function"&&(i=n(i.slice()));for(var u=0;un.key?1:0},K1=function(){function e(t){var n=t.customTags,r=t.merge,i=t.schema,o=t.sortMapEntries,s=t.tags;xn(this,e),this.merge=!!r,this.name=i,this.sortMapEntries=o===!0?sFe:o||null,!n&&s&&Y$e("tags","customTags"),this.tags=oFe(tFe,nFe,n||s,i)}return Yn(e,[{key:"createNode",value:function(n,r,i,o){var s={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r},a=o?Object.assign(o,s):s;return iFe(n,i,a)}},{key:"createPair",value:function(n,r,i){i||(i={wrapScalars:!0});var o=this.createNode(n,i.wrapScalars,null,i),s=this.createNode(r,i.wrapScalars,null,i);return new vn(o,s)}}]),e}();ho(K1,"defaultPrefix",EE);ho(K1,"defaultTags",Rd);var qC={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},aFe={get binary(){return qx},set binary(e){Object.assign(qx,e)},get bool(){return Ou},set bool(e){Object.assign(Ou,e)},get int(){return of},set int(e){Object.assign(of,e)},get null(){return sv},set null(e){Object.assign(sv,e)},get str(){return Wu},set str(e){Object.assign(Wu,e)}},vne={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:EE},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:EE}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:EE}]}};function r7(e,t){if((e.version||e.options.version)==="1.0"){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find(function(a){return t.indexOf(a.prefix)===0});if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find(function(a){return t.indexOf(a.prefix)===0})}if(!i)return t[0]==="!"?t:"!<".concat(t,">");var s=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,function(a){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[a]});return i.handle+s}function lFe(e,t){if(t instanceof Hu)return Hu;if(t.tag){var n=e.filter(function(a){return a.tag===t.tag});if(n.length>0)return n.find(function(a){return a.format===t.format})||n[0]}var r,i;if(t instanceof Un){i=t.value;var o=e.filter(function(a){return a.identify&&a.identify(i)||a.class&&i instanceof a.class});r=o.find(function(a){return a.format===t.format})||o.find(function(a){return!a.format})}else i=t,r=e.find(function(a){return a.nodeClass&&i instanceof a.nodeClass});if(!r){var s=i&&i.constructor?i.constructor.name:Xs(i);throw new Error("Tag not resolved for ".concat(s," value"))}return r}function cFe(e,t,n){var r=n.anchors,i=n.doc,o=[],s=i.anchors.getName(e);return s&&(r[s]=e,o.push("&".concat(s))),e.tag?o.push(r7(i,e.tag)):t.default||o.push(r7(i,t.tag)),o.join(" ")}function cS(e,t,n,r){var i=t.doc,o=i.anchors,s=i.schema,a;if(!(e instanceof Qo)){var c={aliasNodes:[],onTagObj:function(S){return a=S},prevObjects:new Map};e=s.createNode(e,!0,null,c);var u=ir(c.aliasNodes),f;try{for(u.s();!(f=u.n()).done;){var h=f.value;h.source=h.source.node;var p=o.getName(h.source);p||(p=o.newName(),o.map[p]=h.source)}}catch(y){u.e(y)}finally{u.f()}}if(e instanceof vn)return e.toString(t,n,r);a||(a=lFe(s.tags,e));var g=cFe(e,a,t);g.length>0&&(t.indentAtStart=(t.indentAtStart||0)+g.length+1);var v=typeof a.stringify=="function"?a.stringify(e,t,n,r):e instanceof Un?iU(e,t,n,r):e.toString(t,n,r);return g?e instanceof Un||v[0]==="{"||v[0]==="["?"".concat(g," ").concat(v):"".concat(g,` +`).concat(t.indent).concat(v):v}var uFe=function(){function e(t){xn(this,e),ho(this,"map",Object.create(null)),this.prefix=t}return Yn(e,[{key:"createAlias",value:function(n,r){return this.setAnchor(n,r),new Hu(n)}},{key:"createMergePair",value:function(){for(var n=this,r=new zte,i=arguments.length,o=new Array(i),s=0;s0&&!e.commentBefore&&(e.commentBefore=n.before.join(` `),n.before=[]))}}catch(g){o.e(g)}finally{o.f()}if(e.contents=r||null,!r)e.comment=n.before.concat(n.after).join(` `)||null;else{var h=n.before.join(` `);if(h){var p=r instanceof eo&&r.items[0]?r.items[0]:r;p.commentBefore=p.commentBefore?"".concat(h,` `).concat(p.commentBefore):h}e.comment=n.after.join(` -`)||null}}function UPe(e,t){var n=e.tagPrefixes,r=Uw(t.parameters,2),i=r[0],o=r[1];if(!i||!o){var s="Insufficient parameters given for %TAG directive";throw new Qt(t,s)}if(n.some(function(c){return c.handle===i})){var a="The %TAG directive must only be given at most once per handle in the same document.";throw new Qt(t,a)}return{handle:i,prefix:o}}function HPe(e,t){var n=Uw(t.parameters,1),r=n[0];if(t.name==="YAML:1.0"&&(r="1.0"),!r){var i="Insufficient parameters given for %YAML directive";throw new Qt(t,i)}if(!Yee[r]){var o=e.version||e.options.version,s="Document will be parsed as YAML ".concat(o," rather than YAML ").concat(r);e.warnings.push(new Av(t,s))}return r}function WPe(e,t,n){var r=[],i=!1,o=ir(t),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,c=a.comment,u=a.name;switch(u){case"TAG":try{e.tagPrefixes.push(UPe(e,a))}catch(g){e.errors.push(g)}i=!0;break;case"YAML":case"YAML:1.0":if(e.version){var f="The %YAML directive must only be given at most once per document.";e.errors.push(new Qt(a,f))}try{e.version=HPe(e,a)}catch(g){e.errors.push(g)}i=!0;break;default:if(u){var h="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new Av(a,h))}}c&&r.push(c)}}catch(g){o.e(g)}finally{o.f()}if(n&&!i&&(e.version||n.version||e.options.version)==="1.1"){var p=function(v){var y=v.handle,S=v.prefix;return{handle:y,prefix:S}};e.tagPrefixes=n.tagPrefixes.map(p),e.version=n.version}e.commentBefore=r.join(` -`)||null}function ym(e){if(e instanceof eo)return!0;throw new Error("Expected a YAML collection as document contents")}var Fj=function(){function e(t){xn(this,e),this.anchors=new $Pe(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return Yn(e,[{key:"add",value:function(n){return ym(this.contents),this.contents.add(n)}},{key:"addIn",value:function(n,r){ym(this.contents),this.contents.addIn(n,r)}},{key:"delete",value:function(n){return ym(this.contents),this.contents.delete(n)}},{key:"deleteIn",value:function(n){return cx(n)?this.contents==null?!1:(this.contents=null,!0):(ym(this.contents),this.contents.deleteIn(n))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(n,r){return this.contents instanceof eo?this.contents.get(n,r):void 0}},{key:"getIn",value:function(n,r){return cx(n)?!r&&this.contents instanceof Un?this.contents.value:this.contents:this.contents instanceof eo?this.contents.getIn(n,r):void 0}},{key:"has",value:function(n){return this.contents instanceof eo?this.contents.has(n):!1}},{key:"hasIn",value:function(n){return cx(n)?this.contents!==void 0:this.contents instanceof eo?this.contents.hasIn(n):!1}},{key:"set",value:function(n,r){ym(this.contents),this.contents.set(n,r)}},{key:"setIn",value:function(n,r){cx(n)?this.contents=r:(ym(this.contents),this.contents.setIn(n,r))}},{key:"setSchema",value:function(n,r){if(!(!n&&!r&&this.schema)){typeof n=="number"&&(n=n.toFixed(1)),n==="1.0"||n==="1.1"||n==="1.2"?(this.version?this.version=n:this.options.version=n,delete this.options.schema):n&&typeof n=="string"&&(this.options.schema=n),Array.isArray(r)&&(this.options.customTags=r);var i=Object.assign({},this.getDefaults(),this.options);this.schema=new U1(i)}}},{key:"parse",value:function(n,r){this.options.keepCstNodes&&(this.cstNode=n),this.options.keepNodeTypes&&(this.type="DOCUMENT");var i=n.directives,o=i===void 0?[]:i,s=n.contents,a=s===void 0?[]:s,c=n.directivesEndMarker,u=n.error,f=n.valueRange;if(u&&(u.source||(u.source=this),this.errors.push(u)),WPe(this,o,r),c&&(this.directivesEndMarker=!0),this.range=f?[f.start,f.end]:null,this.setSchema(),this.anchors._cstAliases=[],jPe(this,a),this.anchors.resolveNodes(),this.options.prettyErrors){var h=ir(this.errors),p;try{for(h.s();!(p=h.n()).done;){var g=p.value;g instanceof tv&&g.makePretty()}}catch(w){h.e(w)}finally{h.f()}var v=ir(this.warnings),y;try{for(v.s();!(y=v.n()).done;){var S=y.value;S instanceof tv&&S.makePretty()}}catch(w){v.e(w)}finally{v.f()}}return this}},{key:"listNonDefaultTags",value:function(){return zPe(this.contents).filter(function(n){return n.indexOf(U1.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(n,r){if(n[0]!=="!"||n[n.length-1]!=="!")throw new Error("Handle must start and end with !");if(r){var i=this.tagPrefixes.find(function(o){return o.handle===n});i?i.prefix=r:this.tagPrefixes.push({handle:n,prefix:r})}else this.tagPrefixes=this.tagPrefixes.filter(function(o){return o.handle!==n})}},{key:"toJSON",value:function(n,r){var i=this,o=this.options,s=o.keepBlobsInJSON,a=o.mapAsMap,c=o.maxAliasCount,u=s&&(typeof n!="string"||!(this.contents instanceof Un)),f={doc:this,indentStep:" ",keep:u,mapAsMap:u&&!!a,maxAliasCount:c,stringify:Q_},h=Object.keys(this.anchors.map);h.length>0&&(f.anchors=new Map(h.map(function(b){return[i.anchors.map[b],{alias:[],aliasCount:0,count:1}]})));var p=_l(this.contents,n,f);if(typeof r=="function"&&f.anchors){var g=ir(f.anchors.values()),v;try{for(g.s();!(v=g.n()).done;){var y=v.value,S=y.count,w=y.res;r(w,S)}}catch(b){g.e(b)}finally{g.f()}}return p}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var n=this.options.indent;if(!Number.isInteger(n)||n<=0){var r=JSON.stringify(n);throw new Error('"indent" option must be a positive integer, not '.concat(r))}this.setSchema();var i=[],o=!1;if(this.version){var s="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?s="%YAML:1.0":this.version==="1.1"&&(s="%YAML 1.1")),i.push(s),o=!0}var a=this.listNonDefaultTags();this.tagPrefixes.forEach(function(g){var v=g.handle,y=g.prefix;a.some(function(S){return S.indexOf(y)===0})&&(i.push("%TAG ".concat(v," ").concat(y)),o=!0)}),(o||this.directivesEndMarker)&&i.push("---"),this.commentBefore&&((o||!this.directivesEndMarker)&&i.unshift(""),i.unshift(this.commentBefore.replace(/^/gm,"#")));var c={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(n),stringify:Q_},u=!1,f=null;if(this.contents){this.contents instanceof Ko&&(this.contents.spaceBefore&&(o||this.directivesEndMarker)&&i.push(""),this.contents.commentBefore&&i.push(this.contents.commentBefore.replace(/^/gm,"#")),c.forceBlockIndent=!!this.comment,f=this.contents.comment);var h=f?null:function(){return u=!0},p=Q_(this.contents,c,function(){return f=null},h);i.push(og(p,"",f))}else this.contents!==void 0&&i.push(Q_(this.contents,c));return this.comment&&((!u||f)&&i[i.length-1]!==""&&i.push(""),i.push(this.comment.replace(/^/gm,"#"))),i.join(` +`)||null}}function pFe(e,t){var n=e.tagPrefixes,r=Gw(t.parameters,2),i=r[0],o=r[1];if(!i||!o){var s="Insufficient parameters given for %TAG directive";throw new Jt(t,s)}if(n.some(function(c){return c.handle===i})){var a="The %TAG directive must only be given at most once per handle in the same document.";throw new Jt(t,a)}return{handle:i,prefix:o}}function mFe(e,t){var n=Gw(t.parameters,1),r=n[0];if(t.name==="YAML:1.0"&&(r="1.0"),!r){var i="Insufficient parameters given for %YAML directive";throw new Jt(t,i)}if(!vne[r]){var o=e.version||e.options.version,s="Document will be parsed as YAML ".concat(o," rather than YAML ").concat(r);e.warnings.push(new Ov(t,s))}return r}function gFe(e,t,n){var r=[],i=!1,o=ir(t),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,c=a.comment,u=a.name;switch(u){case"TAG":try{e.tagPrefixes.push(pFe(e,a))}catch(g){e.errors.push(g)}i=!0;break;case"YAML":case"YAML:1.0":if(e.version){var f="The %YAML directive must only be given at most once per document.";e.errors.push(new Jt(a,f))}try{e.version=mFe(e,a)}catch(g){e.errors.push(g)}i=!0;break;default:if(u){var h="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new Ov(a,h))}}c&&r.push(c)}}catch(g){o.e(g)}finally{o.f()}if(n&&!i&&(e.version||n.version||e.options.version)==="1.1"){var p=function(v){var y=v.handle,S=v.prefix;return{handle:y,prefix:S}};e.tagPrefixes=n.tagPrefixes.map(p),e.version=n.version}e.commentBefore=r.join(` +`)||null}function wm(e){if(e instanceof eo)return!0;throw new Error("Expected a YAML collection as document contents")}var lU=function(){function e(t){xn(this,e),this.anchors=new uFe(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return Yn(e,[{key:"add",value:function(n){return wm(this.contents),this.contents.add(n)}},{key:"addIn",value:function(n,r){wm(this.contents),this.contents.addIn(n,r)}},{key:"delete",value:function(n){return wm(this.contents),this.contents.delete(n)}},{key:"deleteIn",value:function(n){return dx(n)?this.contents==null?!1:(this.contents=null,!0):(wm(this.contents),this.contents.deleteIn(n))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(n,r){return this.contents instanceof eo?this.contents.get(n,r):void 0}},{key:"getIn",value:function(n,r){return dx(n)?!r&&this.contents instanceof Un?this.contents.value:this.contents:this.contents instanceof eo?this.contents.getIn(n,r):void 0}},{key:"has",value:function(n){return this.contents instanceof eo?this.contents.has(n):!1}},{key:"hasIn",value:function(n){return dx(n)?this.contents!==void 0:this.contents instanceof eo?this.contents.hasIn(n):!1}},{key:"set",value:function(n,r){wm(this.contents),this.contents.set(n,r)}},{key:"setIn",value:function(n,r){dx(n)?this.contents=r:(wm(this.contents),this.contents.setIn(n,r))}},{key:"setSchema",value:function(n,r){if(!(!n&&!r&&this.schema)){typeof n=="number"&&(n=n.toFixed(1)),n==="1.0"||n==="1.1"||n==="1.2"?(this.version?this.version=n:this.options.version=n,delete this.options.schema):n&&typeof n=="string"&&(this.options.schema=n),Array.isArray(r)&&(this.options.customTags=r);var i=Object.assign({},this.getDefaults(),this.options);this.schema=new K1(i)}}},{key:"parse",value:function(n,r){this.options.keepCstNodes&&(this.cstNode=n),this.options.keepNodeTypes&&(this.type="DOCUMENT");var i=n.directives,o=i===void 0?[]:i,s=n.contents,a=s===void 0?[]:s,c=n.directivesEndMarker,u=n.error,f=n.valueRange;if(u&&(u.source||(u.source=this),this.errors.push(u)),gFe(this,o,r),c&&(this.directivesEndMarker=!0),this.range=f?[f.start,f.end]:null,this.setSchema(),this.anchors._cstAliases=[],hFe(this,a),this.anchors.resolveNodes(),this.options.prettyErrors){var h=ir(this.errors),p;try{for(h.s();!(p=h.n()).done;){var g=p.value;g instanceof ov&&g.makePretty()}}catch(w){h.e(w)}finally{h.f()}var v=ir(this.warnings),y;try{for(v.s();!(y=v.n()).done;){var S=y.value;S instanceof ov&&S.makePretty()}}catch(w){v.e(w)}finally{v.f()}}return this}},{key:"listNonDefaultTags",value:function(){return fFe(this.contents).filter(function(n){return n.indexOf(K1.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(n,r){if(n[0]!=="!"||n[n.length-1]!=="!")throw new Error("Handle must start and end with !");if(r){var i=this.tagPrefixes.find(function(o){return o.handle===n});i?i.prefix=r:this.tagPrefixes.push({handle:n,prefix:r})}else this.tagPrefixes=this.tagPrefixes.filter(function(o){return o.handle!==n})}},{key:"toJSON",value:function(n,r){var i=this,o=this.options,s=o.keepBlobsInJSON,a=o.mapAsMap,c=o.maxAliasCount,u=s&&(typeof n!="string"||!(this.contents instanceof Un)),f={doc:this,indentStep:" ",keep:u,mapAsMap:u&&!!a,maxAliasCount:c,stringify:cS},h=Object.keys(this.anchors.map);h.length>0&&(f.anchors=new Map(h.map(function(b){return[i.anchors.map[b],{alias:[],aliasCount:0,count:1}]})));var p=_l(this.contents,n,f);if(typeof r=="function"&&f.anchors){var g=ir(f.anchors.values()),v;try{for(g.s();!(v=g.n()).done;){var y=v.value,S=y.count,w=y.res;r(w,S)}}catch(b){g.e(b)}finally{g.f()}}return p}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var n=this.options.indent;if(!Number.isInteger(n)||n<=0){var r=JSON.stringify(n);throw new Error('"indent" option must be a positive integer, not '.concat(r))}this.setSchema();var i=[],o=!1;if(this.version){var s="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?s="%YAML:1.0":this.version==="1.1"&&(s="%YAML 1.1")),i.push(s),o=!0}var a=this.listNonDefaultTags();this.tagPrefixes.forEach(function(g){var v=g.handle,y=g.prefix;a.some(function(S){return S.indexOf(y)===0})&&(i.push("%TAG ".concat(v," ").concat(y)),o=!0)}),(o||this.directivesEndMarker)&&i.push("---"),this.commentBefore&&((o||!this.directivesEndMarker)&&i.unshift(""),i.unshift(this.commentBefore.replace(/^/gm,"#")));var c={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(n),stringify:cS},u=!1,f=null;if(this.contents){this.contents instanceof Qo&&(this.contents.spaceBefore&&(o||this.directivesEndMarker)&&i.push(""),this.contents.commentBefore&&i.push(this.contents.commentBefore.replace(/^/gm,"#")),c.forceBlockIndent=!!this.comment,f=this.contents.comment);var h=f?null:function(){return u=!0},p=cS(this.contents,c,function(){return f=null},h);i.push(lg(p,"",f))}else this.contents!==void 0&&i.push(cS(this.contents,c));return this.comment&&((!u||f)&&i[i.length-1]!==""&&i.push(""),i.push(this.comment.replace(/^/gm,"#"))),i.join(` `)+` -`}}]),e}();ho(Fj,"defaults",Yee);function GPe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2?arguments[2]:void 0;n===void 0&&typeof t=="string"&&(n=t,t=!0);var r=Object.assign({},Fj.defaults[BC.version],BC),i=new U1(r);return i.createNode(e,t,n)}var mA=function(e){sr(n,e);var t=ar(n);function n(r){return xn(this,n),t.call(this,Object.assign({},BC,r))}return n}(Fj);function VPe(e,t){var n=[],r,i=ir(Oj(e)),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,a=new mA(t);a.parse(s,r),n.push(a),r=a}}catch(c){i.e(c)}finally{i.f()}return n}function Kee(e,t){var n=Oj(e),r=new mA(t).parse(n[0]);if(n.length>1){var i="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Qt(n[1],i))}return r}function qPe(e,t){var n=Kee(e,t);if(n.warnings.forEach(function(r){return $ee(r)}),n.errors.length>0)throw n.errors[0];return n.toJSON()}function XPe(e,t){var n=new mA(t);return n.contents=e,String(n)}var YPe={createNode:GPe,defaultOptions:BC,Document:mA,parse:qPe,parseAllDocuments:VPe,parseCST:Oj,parseDocument:Kee,scalarOptions:DPe,stringify:XPe};const KPe=Object.freeze(Object.defineProperty({__proto__:null,YAML:YPe},Symbol.toStringTag,{value:"Module"})),QPe=i4(KPe);var zj=QPe.YAML;const JPe=us(zj);function qx(e){return e.split(".").pop()}function Qee(e){return e.split(".").shift()}const dG="internal/custom",I3="json",R3=e=>({name:(e==null?void 0:e.id)===dG?`Imported Map - ${e==null?void 0:e.name}`:"Import Map",description:"Internal",id:dG}),ZPe=e=>({name:(e==null?void 0:e.type)===I3?`Imported Trace - ${e==null?void 0:e.name}`:"Import Trace",description:"Internal",id:I3}),fG=["json","yaml"];async function e2e(){const e=await Ij({accept:fG.map(t=>`.trace.${t}`),strict:!0});if(e)return async()=>{if(fG.includes(qx(e.name))){const t=await e.text(),n=zj.parse(t);return{...ZPe(),format:n==null?void 0:n.format,content:n,name:ie.startCase(Qee(e.name)),type:I3}}else throw new Error(`The format (${qx(e.name)}) is unsupported.`)}}async function t2e(e){const t=await Ij({accept:e.map(({id:n})=>`.${n}`),strict:!0});if(t)return async()=>{if(ie.find(e,{id:qx(t.name)}))return{...R3(),format:qx(t.name),content:await t.text(),name:ie.startCase(Qee(t.name))};throw new Error(`The format (${qx(t.name)}) is unsupported.`)}}function n2e({onChange:e,value:t}){const n=mc(),r=nm("specimen"),[i]=ev(),[{maps:o,formats:s}]=NC();return C.jsx(Ws,{showArrow:!0,icon:C.jsx(NQ,{}),label:"Choose Map",value:t==null?void 0:t.id,items:[R3(t),...o.map(a=>{var c;return{...a,description:(c=ie.find(i,{url:a.source}))==null?void 0:c.name}})],onChange:async a=>{switch(a){case R3().id:try{const c=await t2e(s);c&&r(async()=>{n("Reading map..."),e==null||e(await c())})}catch(c){n(`${c}`)}break;default:e==null||e(ie.find(o,{id:a}));break}}})}function r2e({onChange:e,value:t}){const n=mc(),r=nm("specimen");return C.jsx(nf,{icon:C.jsx(NQ,{}),onClick:async()=>{try{const i=await e2e();i&&r(async()=>{n("Reading trace...");const o=await i();o&&(e==null||e(o))})}catch(i){n(`${i}`)}},children:t!=null&&t.id?`Uploaded Trace - ${t.name}`:"Choose File"})}const dx="500";function i2e(e){return parseInt(e.replace("#","0x"))}const gA={source:hd.A400,destination:dd.A400,updating:sp[dx],expanding:aX[dx],generating:lX[dx],closing:sX[dx],end:fd.A400};ie.mapValues(gA,i2e);function H1(e){return(e&&gA[e])??c4[dx]}function o2e(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function s2e(){return this.eachAfter(o2e)}function a2e(e){var t=this,n,r=[t],i,o,s;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,s=i.length;o=0;--i)n.push(r[i]);return this}function c2e(e){for(var t=this,n=[t],r=[],i,o,s;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,s=i.length;o=0;)n+=r[i].value;t.value=n})}function d2e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function f2e(e){for(var t=this,n=h2e(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function h2e(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function p2e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function m2e(){var e=[];return this.each(function(t){e.push(t)}),e}function g2e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function v2e(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function jj(e,t){var n=new W1(e),r=+e.value&&(n.value=e.value),i,o=[n],s,a,c,u;for(t==null&&(t=b2e);i=o.pop();)if(r&&(i.value=+i.data.value),(a=t(i.data))&&(u=a.length))for(i.children=new Array(u),c=u-1;c>=0;--c)o.push(s=i.children[c]=new W1(a[c])),s.parent=i,s.depth=i.depth+1;return n.eachBefore(w2e)}function y2e(){return jj(this).eachBefore(x2e)}function b2e(e){return e.children}function x2e(e){e.data=e.data.data}function w2e(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function W1(e){this.data=e,this.depth=this.height=0,this.parent=null}W1.prototype=jj.prototype={constructor:W1,count:s2e,each:a2e,eachAfter:c2e,eachBefore:l2e,sum:u2e,sort:d2e,path:f2e,ancestors:p2e,descendants:m2e,leaves:g2e,links:v2e,copy:y2e};function _2e(e,t){return e.parent===t.parent?1:2}function SN(e){var t=e.children;return t?t[0]:e.t}function EN(e){var t=e.children;return t?t[t.length-1]:e.t}function S2e(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function E2e(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function C2e(e,t,n){return e.a.parent===t.parent?e.a:n}function vE(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}vE.prototype=Object.create(W1.prototype);function T2e(e){for(var t=new vE(e,0),n,r=[t],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new vE(o[s],s)),i.parent=n;return(t.parent=new vE(null,0)).children=[t],t}function k2e(){var e=_2e,t=1,n=1,r=null;function i(u){var f=T2e(u);if(f.eachAfter(o),f.parent.m=-f.z,f.eachBefore(s),r)u.eachBefore(c);else{var h=u,p=u,g=u;u.eachBefore(function(b){b.xp.x&&(p=b),b.depth>g.depth&&(g=b)});var v=h===p?1:e(h,p)/2,y=v-h.x,S=t/(p.x+v+y),w=n/(g.depth||1);u.eachBefore(function(b){b.x=(b.x+y)*S,b.y=b.depth*w})}return u}function o(u){var f=u.children,h=u.parent.children,p=u.i?h[u.i-1]:null;if(f){E2e(u);var g=(f[0].z+f[f.length-1].z)/2;p?(u.z=p.z+e(u._,p._),u.m=u.z-g):u.z=g}else p&&(u.z=p.z+e(u._,p._));u.parent.A=a(u,p,u.parent.A||h[0])}function s(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function a(u,f,h){if(f){for(var p=u,g=u,v=f,y=p.parent.children[0],S=p.m,w=g.m,b=v.m,x=y.m,E;v=EN(v),p=SN(p),v&&p;)y=SN(y),g=EN(g),g.a=u,E=v.z+b-p.z-S+e(v._,p._),E>0&&(S2e(C2e(v,u,h),u,E),S+=E,w+=E),b+=v.m,S+=p.m,x+=y.m,w+=g.m;v&&!EN(g)&&(g.t=v,g.m+=b-w),p&&!SN(y)&&(y.t=p,y.m+=S-x,h=u)}return h}function c(u){u.x*=t,u.y=u.depth*n}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],i):r?null:[t,n]},i.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],i):r?[t,n]:null},i}var P3="http://www.w3.org/1999/xhtml";const hG={svg:"http://www.w3.org/2000/svg",xhtml:P3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vA(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),hG.hasOwnProperty(t)?{space:hG[t],local:e}:e}function A2e(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===P3&&t.documentElement.namespaceURI===P3?t.createElement(e):t.createElementNS(n,e)}}function I2e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Jee(e){var t=vA(e);return(t.local?I2e:A2e)(t)}function R2e(){}function Uj(e){return e==null?R2e:function(){return this.querySelector(e)}}function P2e(e){typeof e!="function"&&(e=Uj(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=x&&(x=b+1);!(I=S[x])&&++x=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function nOe(e){e||(e=rOe);function t(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;ot?1:e>=t?0:NaN}function iOe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function oOe(){return Array.from(this)}function sOe(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?vOe:typeof t=="function"?bOe:yOe)(e,t,n??"")):rv(this.node(),e)}function rv(e,t){return e.style.getPropertyValue(t)||rte(e).getComputedStyle(e,null).getPropertyValue(t)}function wOe(e){return function(){delete this[e]}}function _Oe(e,t){return function(){this[e]=t}}function SOe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function EOe(e,t){return arguments.length>1?this.each((t==null?wOe:typeof t=="function"?SOe:_Oe)(e,t)):this.node()[e]}function ite(e){return e.trim().split(/^|\s+/)}function Hj(e){return e.classList||new ote(e)}function ote(e){this._node=e,this._names=ite(e.getAttribute("class")||"")}ote.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ste(e,t){for(var n=Hj(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function JOe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n{}};function Wj(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}yE.prototype=Wj.prototype={constructor:yE,on:function(e,t){var n=this._,r=lMe(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?J_(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?J_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=hMe.exec(e))?new es(t[1],t[2],t[3],1):(t=pMe.exec(e))?new es(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mMe.exec(e))?J_(t[1],t[2],t[3],t[4]):(t=gMe.exec(e))?J_(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=vMe.exec(e))?wG(t[1],t[2]/100,t[3]/100,1):(t=yMe.exec(e))?wG(t[1],t[2]/100,t[3]/100,t[4]):mG.hasOwnProperty(e)?yG(mG[e]):e==="transparent"?new es(NaN,NaN,NaN,0):null}function yG(e){return new es(e>>16&255,e>>8&255,e&255,1)}function J_(e,t,n,r){return r<=0&&(e=t=n=NaN),new es(e,t,n,r)}function wMe(e){return e instanceof Gw||(e=q1(e)),e?(e=e.rgb(),new es(e.r,e.g,e.b,e.opacity)):new es}function L3(e,t,n,r){return arguments.length===1?wMe(e):new es(e,t,n,r??1)}function es(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gj(es,L3,ute(Gw,{brighter(e){return e=e==null?FC:Math.pow(FC,e),new es(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?G1:Math.pow(G1,e),new es(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new es(Cp(this.r),Cp(this.g),Cp(this.b),zC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bG,formatHex:bG,formatHex8:_Me,formatRgb:xG,toString:xG}));function bG(){return`#${mp(this.r)}${mp(this.g)}${mp(this.b)}`}function _Me(){return`#${mp(this.r)}${mp(this.g)}${mp(this.b)}${mp((isNaN(this.opacity)?1:this.opacity)*255)}`}function xG(){const e=zC(this.opacity);return`${e===1?"rgb(":"rgba("}${Cp(this.r)}, ${Cp(this.g)}, ${Cp(this.b)}${e===1?")":`, ${e})`}`}function zC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mp(e){return e=Cp(e),(e<16?"0":"")+e.toString(16)}function wG(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ml(e,t,n,r)}function dte(e){if(e instanceof ml)return new ml(e.h,e.s,e.l,e.opacity);if(e instanceof Gw||(e=q1(e)),!e)return new ml;if(e instanceof ml)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,c=(o+i)/2;return a?(t===o?s=(n-r)/a+(n0&&c<1?0:s,new ml(s,a,c,e.opacity)}function SMe(e,t,n,r){return arguments.length===1?dte(e):new ml(e,t,n,r??1)}function ml(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gj(ml,SMe,ute(Gw,{brighter(e){return e=e==null?FC:Math.pow(FC,e),new ml(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?G1:Math.pow(G1,e),new ml(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new es(CN(e>=240?e-240:e+120,i,r),CN(e,i,r),CN(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ml(_G(this.h),Z_(this.s),Z_(this.l),zC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=zC(this.opacity);return`${e===1?"hsl(":"hsla("}${_G(this.h)}, ${Z_(this.s)*100}%, ${Z_(this.l)*100}%${e===1?")":`, ${e})`}`}}));function _G(e){return e=(e||0)%360,e<0?e+360:e}function Z_(e){return Math.max(0,Math.min(1,e||0))}function CN(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const fte=e=>()=>e;function EMe(e,t){return function(n){return e+n*t}}function CMe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function TMe(e){return(e=+e)==1?hte:function(t,n){return n-t?CMe(t,n,e):fte(isNaN(t)?n:t)}}function hte(e,t){var n=t-e;return n?EMe(e,n):fte(isNaN(e)?t:e)}const SG=function e(t){var n=TMe(t);function r(i,o){var s=n((i=L3(i)).r,(o=L3(o)).r),a=n(i.g,o.g),c=n(i.b,o.b),u=hte(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=a(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function yd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var D3=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,TN=new RegExp(D3.source,"g");function kMe(e){return function(){return e}}function AMe(e){return function(t){return e(t)+""}}function IMe(e,t){var n=D3.lastIndex=TN.lastIndex=0,r,i,o,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=D3.exec(e))&&(i=TN.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,c.push({i:s,x:yd(r,i)})),n=TN.lastIndex;return n180?f+=360:f-u>180&&(u+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:yd(u,f)})):f&&h.push(i(h)+"rotate("+f+r)}function a(u,f,h,p){u!==f?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:yd(u,f)}):f&&h.push(i(h)+"skewX("+f+r)}function c(u,f,h,p,g,v){if(u!==h||f!==p){var y=g.push(i(g)+"scale(",null,",",null,")");v.push({i:y-4,x:yd(u,h)},{i:y-2,x:yd(f,p)})}else(h!==1||p!==1)&&g.push(i(g)+"scale("+h+","+p+")")}return function(u,f){var h=[],p=[];return u=e(u),f=e(f),o(u.translateX,u.translateY,f.translateX,f.translateY,h,p),s(u.rotate,f.rotate,h,p),a(u.skewX,f.skewX,h,p),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,h,p),u=f=null,function(g){for(var v=-1,y=p.length,S;++v=0&&e._call.call(void 0,t),e=e._next;--iv}function TG(){Wp=(UC=X1.now())+yA,iv=fx=0;try{FMe()}finally{iv=0,jMe(),Wp=0}}function zMe(){var e=X1.now(),t=e-UC;t>gte&&(yA-=t,UC=e)}function jMe(){for(var e,t=jC,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:jC=n);hx=e,B3(r)}function B3(e){if(!iv){fx&&(fx=clearTimeout(fx));var t=e-Wp;t>24?(e<1/0&&(fx=setTimeout(TG,e-X1.now()-yA)),$b&&($b=clearInterval($b))):($b||(UC=X1.now(),$b=setInterval(zMe,gte)),iv=1,vte(TG))}}function kG(e,t,n){var r=new HC;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var UMe=Wj("start","end","cancel","interrupt"),HMe=[],bte=0,AG=1,$3=2,bE=3,IG=4,F3=5,xE=6;function bA(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;WMe(e,n,{name:t,index:r,group:i,on:UMe,tween:HMe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:bte})}function qj(e,t){var n=Ol(e,t);if(n.state>bte)throw new Error("too late; already scheduled");return n}function vc(e,t){var n=Ol(e,t);if(n.state>bE)throw new Error("too late; already running");return n}function Ol(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function WMe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=yte(o,0,n.time);function o(u){n.state=AG,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var f,h,p,g;if(n.state!==AG)return c();for(f in r)if(g=r[f],g.name===n.name){if(g.state===bE)return kG(s);g.state===IG?(g.state=xE,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[f]):+f$3&&r.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function xLe(e,t,n){var r,i,o=bLe(t)?qj:vc;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function wLe(e,t){var n=this._id;return arguments.length<2?Ol(this.node(),n).on.on(e):this.each(xLe(n,e,t))}function _Le(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function SLe(){return this.on("end.remove",_Le(this._id))}function ELe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Uj(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s()=>e;function YLe(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Tu(e,t,n){this.k=e,this.x=t,this.y=n}Tu.prototype={constructor:Tu,scale:function(e){return e===1?this:new Tu(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Tu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var WC=new Tu(1,0,0);Tu.prototype;function kN(e){e.stopImmediatePropagation()}function Fb(e){e.preventDefault(),e.stopImmediatePropagation()}function KLe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function QLe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function RG(){return this.__zoom||WC}function JLe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ZLe(){return navigator.maxTouchPoints||"ontouchstart"in this}function eDe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function AN(){var e=KLe,t=QLe,n=eDe,r=JLe,i=ZLe,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,c=BMe,u=Wj("start","zoom","end"),f,h,p,g=500,v=150,y=0,S=10;function w(L){L.property("__zoom",RG).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",D).on("dblclick.zoom",N).filter(i).on("touchstart.zoom",H).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(L,F,j,V){var W=L.selection?L.selection():L;W.property("__zoom",RG),L!==W?I(L,F,j,V):W.interrupt().each(function(){A(this,arguments).event(V).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},w.scaleBy=function(L,F,j,V){w.scaleTo(L,function(){var W=this.__zoom.k,K=typeof F=="function"?F.apply(this,arguments):F;return W*K},j,V)},w.scaleTo=function(L,F,j,V){w.transform(L,function(){var W=t.apply(this,arguments),K=this.__zoom,X=j==null?E(W):typeof j=="function"?j.apply(this,arguments):j,Q=K.invert(X),re=typeof F=="function"?F.apply(this,arguments):F;return n(x(b(K,re),X,Q),W,s)},j,V)},w.translateBy=function(L,F,j,V){w.transform(L,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),s)},null,V)},w.translateTo=function(L,F,j,V,W){w.transform(L,function(){var K=t.apply(this,arguments),X=this.__zoom,Q=V==null?E(K):typeof V=="function"?V.apply(this,arguments):V;return n(WC.translate(Q[0],Q[1]).scale(X.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof j=="function"?-j.apply(this,arguments):-j),K,s)},V,W)};function b(L,F){return F=Math.max(o[0],Math.min(o[1],F)),F===L.k?L:new Tu(F,L.x,L.y)}function x(L,F,j){var V=F[0]-j[0]*L.k,W=F[1]-j[1]*L.k;return V===L.x&&W===L.y?L:new Tu(L.k,V,W)}function E(L){return[(+L[0][0]+ +L[1][0])/2,(+L[0][1]+ +L[1][1])/2]}function I(L,F,j,V){L.on("start.zoom",function(){A(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(V).end()}).tween("zoom",function(){var W=this,K=arguments,X=A(W,K).event(V),Q=t.apply(W,K),re=j==null?E(Q):typeof j=="function"?j.apply(W,K):j,ce=Math.max(Q[1][0]-Q[0][0],Q[1][1]-Q[0][1]),ue=W.__zoom,se=typeof F=="function"?F.apply(W,K):F,J=c(ue.invert(re).concat(ce/ue.k),se.invert(re).concat(ce/se.k));return function(ae){if(ae===1)ae=se;else{var le=J(ae),he=ce/le[2];ae=new Tu(he,re[0]-le[0]*he,re[1]-le[1]*he)}X.zoom(null,ae)}})}function A(L,F,j){return!j&&L.__zooming||new k(L,F)}function k(L,F){this.that=L,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(L,F),this.taps=0}k.prototype={event:function(L){return L&&(this.sourceEvent=L),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(L,F){return this.mouse&&L!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&L!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&L!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(L){var F=$o(this.that).datum();u.call(L,this.that,new YLe(L,{sourceEvent:this.sourceEvent,target:w,type:L,transform:this.that.__zoom,dispatch:u}),F)}};function O(L,...F){if(!e.apply(this,arguments))return;var j=A(this,F).event(L),V=this.__zoom,W=Math.max(o[0],Math.min(o[1],V.k*Math.pow(2,r.apply(this,arguments)))),K=Uh(L);if(j.wheel)(j.mouse[0][0]!==K[0]||j.mouse[0][1]!==K[1])&&(j.mouse[1]=V.invert(j.mouse[0]=K)),clearTimeout(j.wheel);else{if(V.k===W)return;j.mouse=[K,V.invert(K)],wE(this),j.start()}Fb(L),j.wheel=setTimeout(X,v),j.zoom("mouse",n(x(b(V,W),j.mouse[0],j.mouse[1]),j.extent,s));function X(){j.wheel=null,j.end()}}function D(L,...F){if(p||!e.apply(this,arguments))return;var j=L.currentTarget,V=A(this,F,!0).event(L),W=$o(L.view).on("mousemove.zoom",re,!0).on("mouseup.zoom",ce,!0),K=Uh(L,j),X=L.clientX,Q=L.clientY;uMe(L.view),kN(L),V.mouse=[K,this.__zoom.invert(K)],wE(this),V.start();function re(ue){if(Fb(ue),!V.moved){var se=ue.clientX-X,J=ue.clientY-Q;V.moved=se*se+J*J>y}V.event(ue).zoom("mouse",n(x(V.that.__zoom,V.mouse[0]=Uh(ue,j),V.mouse[1]),V.extent,s))}function ce(ue){W.on("mousemove.zoom mouseup.zoom",null),dMe(ue.view,V.moved),Fb(ue),V.event(ue).end()}}function N(L,...F){if(e.apply(this,arguments)){var j=this.__zoom,V=Uh(L.changedTouches?L.changedTouches[0]:L,this),W=j.invert(V),K=j.k*(L.shiftKey?.5:2),X=n(x(b(j,K),V,W),t.apply(this,F),s);Fb(L),a>0?$o(this).transition().duration(a).call(I,X,V,L):$o(this).call(w.transform,X,V,L)}}function H(L,...F){if(e.apply(this,arguments)){var j=L.touches,V=j.length,W=A(this,F,L.changedTouches.length===V).event(L),K,X,Q,re;for(kN(L),X=0;X"u"&&(g=!0),typeof v>"u"&&(v=1/0);function E(I,A){if(I===null)return null;if(A===0)return I;var k,O;if(typeof I!="object")return I;if(n(I,r))k=new r;else if(n(I,i))k=new i;else if(n(I,o))k=new o(function(V,W){I.then(function(K){V(E(K,A-1))},function(K){W(E(K,A-1))})});else if(s.__isArray(I))k=[];else if(s.__isRegExp(I))k=new RegExp(I.source,h(I)),I.lastIndex&&(k.lastIndex=I.lastIndex);else if(s.__isDate(I))k=new Date(I.getTime());else{if(x&&Buffer.isBuffer(I))return Buffer.allocUnsafe?k=Buffer.allocUnsafe(I.length):k=new Buffer(I.length),I.copy(k),k;n(I,Error)?k=Object.create(I):typeof y>"u"?(O=Object.getPrototypeOf(I),k=Object.create(O)):(k=Object.create(y),O=y)}if(g){var D=w.indexOf(I);if(D!=-1)return b[D];w.push(I),b.push(k)}n(I,r)&&I.forEach(function(V,W){var K=E(W,A-1),X=E(V,A-1);k.set(K,X)}),n(I,i)&&I.forEach(function(V){var W=E(V,A-1);k.add(W)});for(var N in I){var H;O&&(H=Object.getOwnPropertyDescriptor(O,N)),!(H&&H.set==null)&&(k[N]=E(I[N],A-1))}if(Object.getOwnPropertySymbols)for(var G=Object.getOwnPropertySymbols(I),N=0;N1&&arguments[1]!==void 0?arguments[1]:0,n=(Gi[e[t+0]]+Gi[e[t+1]]+Gi[e[t+2]]+Gi[e[t+3]]+"-"+Gi[e[t+4]]+Gi[e[t+5]]+"-"+Gi[e[t+6]]+Gi[e[t+7]]+"-"+Gi[e[t+8]]+Gi[e[t+9]]+"-"+Gi[e[t+10]]+Gi[e[t+11]]+Gi[e[t+12]]+Gi[e[t+13]]+Gi[e[t+14]]+Gi[e[t+15]]).toLowerCase();if(!oDe(n))throw TypeError("Stringified UUID is invalid");return n}function RN(e,t,n){e=e||{};var r=e.random||(e.rng||rDe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return sDe(r)}var z3={exports:{}},j3={exports:{}},aDe=function(){for(var t=arguments.length,n=[],r=0;re.enableLegacyTransitions?de.createElement(MDe.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):de.createElement("g",{className:e.className,transform:e.transform},e.children),DDe=15,DG={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},NDe=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>de.createElement(de.Fragment,null,de.createElement("circle",{r:DDe,onClick:o=>{t(),n(o)},onMouseOver:r,onMouseOut:i}),de.createElement("g",{className:"rd3t-label"},de.createElement("text",Object.assign({className:"rd3t-label__title"},DG.title),e.name),de.createElement("text",{className:"rd3t-label__attributes"},e.attributes&&Object.entries(e.attributes).map(([o,s],a)=>de.createElement("tspan",Object.assign({key:`${o}-${a}`},DG.attribute),o,": ",typeof s=="boolean"?s.toString():s)))));let BDe=class extends de.Component{constructor(){super(...arguments),this.nodeRef=null,this.state={transform:this.setTransform(this.props.position,this.props.parent,this.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},this.shouldNodeTransform=(t,n,r,i)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation||i.wasClicked!==r.wasClicked,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:NDe,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut,addChildren:this.handleAddChildren};return i(o)},this.handleNodeToggle=()=>{this.setState({wasClicked:!0}),this.props.onNodeToggle(this.props.data.__rd3t.id)},this.handleOnClick=t=>{this.setState({wasClicked:!0}),this.props.onNodeClick(this.props.hierarchyPointNode,t)},this.handleOnMouseOver=t=>{this.props.onNodeMouseOver(this.props.hierarchyPointNode,t)},this.handleOnMouseOut=t=>{this.props.onNodeMouseOut(this.props.hierarchyPointNode,t)},this.handleAddChildren=t=>{this.props.handleAddChildrenToNode(this.props.data.__rd3t.id,t)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t,n){return this.shouldNodeTransform(this.props,t,this.state,n)}setTransform(t,n,r,i=!1){if(i){const o=n!=null,s=o?n.x:0,a=o?n.y:0;return r==="horizontal"?`translate(${a},${s})`:`translate(${s},${a})`}return r==="horizontal"?`translate(${t.y},${t.x})`:`translate(${t.x},${t.y})`}applyTransform(t,n,r=1,i=()=>{}){this.props.enableLegacyTransitions?$o(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):($o(this.nodeRef).attr("transform",t).style("opacity",r),i())}commitTransform(){const{orientation:t,transitionDuration:n,position:r,parent:i}=this.props,o=this.setTransform(r,i,t);this.applyTransform(o,n)}componentWillLeave(t){const{orientation:n,transitionDuration:r,position:i,parent:o}=this.props,s=this.setTransform(i,o,n,!0);this.applyTransform(s,r,0,t)}render(){const{data:t,nodeClassName:n}=this.props;return de.createElement("g",{id:t.__rd3t.id,ref:r=>{this.nodeRef=r},style:this.state.initialStyle,className:[t.children&&t.children.length>0?"rd3t-node":"rd3t-leaf-node",n].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())}};var G3=Math.PI,V3=2*G3,tp=1e-6,$De=V3-tp;function q3(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Nte(){return new q3}q3.prototype=Nte.prototype={constructor:q3,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,a=n-e,c=r-t,u=o-e,f=s-t,h=u*u+f*f;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>tp)if(!(Math.abs(f*a-c*u)>tp)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-o,g=r-s,v=a*a+c*c,y=p*p+g*g,S=Math.sqrt(v),w=Math.sqrt(h),b=i*Math.tan((G3-Math.acos((v+h-y)/(2*S*w)))/2),x=b/w,E=b/S;Math.abs(x-1)>tp&&(this._+="L"+(e+x*u)+","+(t+x*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>u*g)+","+(this._x1=e+E*a)+","+(this._y1=t+E*c)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var s=n*Math.cos(r),a=n*Math.sin(r),c=e+s,u=t+a,f=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+c+","+u:(Math.abs(this._x1-c)>tp||Math.abs(this._y1-u)>tp)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%V3+V3),h>$De?this._+="A"+n+","+n+",0,1,"+f+","+(e-s)+","+(t-a)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=u):h>tp&&(this._+="A"+n+","+n+",0,"+ +(h>=G3)+","+f+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function NG(e){return function(){return e}}function FDe(e){return e[0]}function zDe(e){return e[1]}var jDe=Array.prototype.slice;function UDe(e){return e.source}function HDe(e){return e.target}function Bte(e){var t=UDe,n=HDe,r=FDe,i=zDe,o=null;function s(){var a,c=jDe.call(arguments),u=t.apply(this,c),f=n.apply(this,c);if(o||(o=a=Nte()),e(o,+r.apply(this,(c[0]=u,c)),+i.apply(this,c),+r.apply(this,(c[0]=f,c)),+i.apply(this,c)),a)return o=null,a+""||null}return s.source=function(a){return arguments.length?(t=a,s):t},s.target=function(a){return arguments.length?(n=a,s):n},s.x=function(a){return arguments.length?(r=typeof a=="function"?a:NG(+a),s):r},s.y=function(a){return arguments.length?(i=typeof a=="function"?a:NG(+a),s):i},s.context=function(a){return arguments.length?(o=a??null,s):o},s}function WDe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function GDe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function VDe(){return Bte(WDe)}function qDe(){return Bte(GDe)}class XDe extends de.PureComponent{constructor(){super(...arguments),this.linkRef=null,this.state={initialStyle:{opacity:0}},this.handleOnClick=t=>{this.props.onClick(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOver=t=>{this.props.onMouseOver(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOut=t=>{this.props.onMouseOut(this.props.linkData.source,this.props.linkData.target,t)}}componentDidMount(){this.applyOpacity(1,this.props.transitionDuration)}componentWillLeave(t){this.applyOpacity(0,this.props.transitionDuration,t)}applyOpacity(t,n,r=()=>{}){this.props.enableLegacyTransitions?$o(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):($o(this.linkRef).style("opacity",t),r())}drawStepPath(t,n){const{source:r,target:i}=t,o=i.y-r.y;return n==="horizontal"?`M${r.y},${r.x} H${r.y+o/2} V${i.x} H${i.y}`:`M${r.x},${r.y} V${r.y+o/2} H${i.x} V${i.y}`}drawDiagonalPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?VDe()({source:[r.y,r.x],target:[i.y,i.x]}):qDe()({source:[r.x,r.y],target:[i.x,i.y]})}drawStraightPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?`M${r.y},${r.x}L${i.y},${i.x}`:`M${r.x},${r.y}L${i.x},${i.y}`}drawElbowPath(t,n){return n==="horizontal"?`M${t.source.y},${t.source.x}V${t.target.x}H${t.target.y}`:`M${t.source.x},${t.source.y}V${t.target.y}H${t.target.x}`}drawPath(){const{linkData:t,orientation:n,pathFunc:r}=this.props;return typeof r=="function"?r(t,n):r==="elbow"?this.drawElbowPath(t,n):r==="straight"?this.drawStraightPath(t,n):r==="step"?this.drawStepPath(t,n):this.drawDiagonalPath(t,n)}getClassNames(){const{linkData:t,orientation:n,pathClassFunc:r}=this.props,i=["rd3t-link"];return typeof r=="function"&&i.push(r(t,n)),i.join(" ").trim()}render(){const{linkData:t}=this.props;return de.createElement("path",{ref:n=>{this.linkRef=n},style:Object.assign({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":t.source.id,"data-target-id":t.target.id})}}const YDe=` -/* Tree */ -.rd3t-tree-container { - width: 100%; - height: 100%; -} - -.rd3t-grabbable { - cursor: move; /* fallback if grab cursor is unsupported */ - cursor: grab; - cursor: -moz-grab; - cursor: -webkit-grab; -} -.rd3t-grabbable:active { - cursor: grabbing; - cursor: -moz-grabbing; - cursor: -webkit-grabbing; -} - -/* Node */ -.rd3t-node { - cursor: pointer; - fill: #777; - stroke: #000; - stroke-width: 2; -} - -.rd3t-leaf-node { - cursor: pointer; - fill: transparent; - stroke: #000; - stroke-width: 1; -} - -.rd3t-label__title { - fill: #000; - stroke: none; - font-weight: bolder; -} - -.rd3t-label__attributes { - fill: #777; - stroke: none; - font-weight: bolder; - font-size: smaller; -} - -/* Link */ -.rd3t-link { - fill: none; - stroke: #000; -} -`;let $te=class tl extends de.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:tl.assignInternalProperties(Oo(this.props.data)),d3:tl.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0,dataKey:this.props.dataKey},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${RN()}`,this.gInstanceRef=`rd3t-g-${RN()}`,this.handleNodeToggle=t=>{const n=Oo(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?(tl.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):tl.collapseNode(i),this.props.enableLegacyTransitions?(this.setState({data:n,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:n}),this.internalState.targetNode=i)},this.handleAddChildrenToNode=(t,n)=>{const r=Oo(this.state.data),i=this.findNodesById(t,r,[]);if(i.length>0){const o=i[0],s=o.__rd3t.depth,a=Oo(n).map(c=>tl.assignInternalProperties([c],s+1));o.children.push(...a.flat()),this.setState({data:r})}},this.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const s=$o(`.${this.gInstanceRef}`),a=$o(`.${this.svgInstanceRef}`),c=this.state.d3.scale;let u,f;r==="horizontal"?(f=-t.x*c+n.height/2,u=-t.y*c+n.width/2):(u=-t.x*c+n.width/2,f=-t.y*c+n.height/2),s.transition().duration(o).attr("transform","translate("+u+","+f+")scale("+c+")"),a.call(AN().transform,WC.translate(u,f).scale(i))}},this.getNodeClassName=(t,n)=>{const{rootNodeClassName:r,branchNodeClassName:i,leafNodeClassName:o}=this.props;return t!=null?n.children?i:o:r}}static getDerivedStateFromProps(t,n){let r=null;const i=!t.dataKey||n.dataKey!==t.dataKey;t.data!==n.dataRef&&i&&(r={dataRef:t.data,data:tl.assignInternalProperties(Oo(t.data)),isInitialRenderForDataset:!0,dataKey:t.dataKey});const o=tl.calculateD3Geometry(t);return Xx(o,n.d3)||(r=r||{},r.d3=o),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!Xx(this.props.translate,t.translate)||!Xx(this.props.scaleExtent,t.scaleExtent)||this.props.zoomable!==t.zoomable||this.props.draggable!==t.draggable||this.props.zoom!==t.zoom||this.props.enableLegacyTransitions!==t.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?Oo(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(t,n){t.forEach(r=>{r.data.__rd3t.collapsed=r.depth>=n})}bindZoomListener(t){const{zoomable:n,scaleExtent:r,translate:i,zoom:o,onUpdate:s,hasInteractiveNodes:a}=t,c=$o(`.${this.svgInstanceRef}`),u=$o(`.${this.gInstanceRef}`);c.call(AN().transform,WC.translate(i.x,i.y).scale(o)),c.call(AN().scaleExtent(n?[r.min,r.max]:[o,o]).filter(f=>a?f.target.classList.contains(this.svgInstanceRef)||f.target.classList.contains(this.gInstanceRef)||f.shiftKey:!0).on("zoom",f=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(f.sourceEvent.type)||(u.attr("transform",f.transform),typeof s=="function"&&(s({node:null,zoom:f.transform.k,translate:{x:f.transform.x,y:f.transform.y}}),this.state.d3.scale=f.transform.k,this.state.d3.translate={x:f.transform.x,y:f.transform.y}))}))}static assignInternalProperties(t,n=0){return(Array.isArray(t)?t:[t]).map(i=>{const o=i;return o.__rd3t={id:null,depth:null,collapsed:!1},o.__rd3t.id=RN(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=tl.assignInternalProperties(o.children,n+1)),o})}findNodesById(t,n,r){return r.length>0||(r=r.concat(n.filter(i=>i.__rd3t.id===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesById(t,i.children,r))})),r}findNodesAtDepth(t,n,r){return r=r.concat(n.filter(i=>i.__rd3t.depth===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesAtDepth(t,i.children,r))}),r}static collapseNode(t){t.__rd3t.collapsed=!0,t.children&&t.children.length>0&&t.children.forEach(n=>{tl.collapseNode(n)})}static expandNode(t){t.__rd3t.collapsed=!1}collapseNeighborNodes(t,n){this.findNodesAtDepth(t.__rd3t.depth,n,[]).filter(i=>i.__rd3t.id!==t.__rd3t.id).forEach(i=>tl.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:s}=this.state,c=k2e().nodeSize(o==="horizontal"?[i.y,i.x]:[i.x,i.y]).separation((h,p)=>h.parent.data.__rd3t.id===p.parent.data.__rd3t.id?r.siblings:r.nonSiblings)(jj(this.state.data[0],h=>h.__rd3t.collapsed?null:h.children));let u=c.descendants();const f=c.links();return t!==void 0&&s&&this.setInitialTreeDepth(u,t),n&&u.forEach(h=>{h.y=h.depth*n}),{nodes:u,links:f}}static calculateD3Geometry(t){let n;return t.zoom>t.scaleExtent.max?n=t.scaleExtent.max:t.zoomde.createElement(XDe,{key:"link-"+b,orientation:i,pathFunc:o,pathClassFunc:g,linkData:w,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:h,transitionDuration:s})),t.map((w,b)=>{const{data:x,x:E,y:I,parent:A}=w;return de.createElement(BDe,{key:"node-"+b,data:x,position:{x:E,y:I},hierarchyPointNode:w,parent:A,nodeClassName:this.getNodeClassName(A,x),renderCustomNodeElement:r,nodeSize:a,orientation:i,enableLegacyTransitions:h,transitionDuration:s,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:S,centerNode:this.centerNode})}))))}};$te.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};function Y1(){return Y1=Object.assign||function(e){for(var t=1;t0?1:-1}),ON}var vNe=mNe()?Math.sign:gNe(),yNe=vNe,bNe=Math.abs,xNe=Math.floor,wNe=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:yNe(e)*xNe(bNe(e)))},_Ne=wNe,SNe=Math.max,im=function(e){return SNe(0,_Ne(e))},ENe=im,Ute=function(e,t,n){var r;return isNaN(e)?(r=t,r>=0?n&&r?r-1:r:1):e===!1?!1:ENe(e)},wf=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},CNe=rm,Pv=function(e){if(!CNe(e))throw new TypeError("Cannot use null or undefined");return e},TNe=wf,kNe=Pv,ANe=Function.prototype.bind,FG=Function.prototype.call,INe=Object.keys,RNe=Object.prototype.propertyIsEnumerable,PNe=function(e,t){return function(n,r){var i,o=arguments[2],s=arguments[3];return n=Object(kNe(n)),TNe(r),i=INe(n),s&&i.sort(typeof s=="function"?ANe.call(s,n):void 0),typeof e!="function"&&(e=i[e]),FG.call(e,i,function(a,c){return RNe.call(n,a)?FG.call(r,o,n[a],a,n,c):t})}},wA=PNe("forEach"),om={},Hte={exports:{}},ONe=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},MN,zG;function MNe(){return zG||(zG=1,MN=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),MN}var LN,jG;function LNe(){if(jG)return LN;jG=1;var e=rm,t=Object.keys;return LN=function(n){return t(e(n)?Object(n):n)},LN}var DN,UG;function DNe(){return UG||(UG=1,DN=MNe()()?Object.keys:LNe()),DN}var NN,HG;function NNe(){if(HG)return NN;HG=1;var e=DNe(),t=Pv,n=Math.max;return NN=function(r,i){var o,s,a=n(arguments.length,2),c;for(r=Object(t(r)),c=function(u){try{r[u]=i[u]}catch(f){o||(o=f)}},s=1;s-1},zN}var tBe=ZNe()?String.prototype.contains:eBe(),_E=Yte,KG=JNe,Kte=Wte,Qte=jte,Yx=tBe,nBe=Xte.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],_E(e)?(n=Yx.call(e,"c"),r=Yx.call(e,"e"),i=Yx.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?Kte(Qte(o),s):s};nBe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],_E(t)?KG(t)?_E(n)?KG(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,_E(e)?(r=Yx.call(e,"c"),i=Yx.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?Kte(Qte(o),s):s};var sm=Xte.exports,Y3={exports:{}};(function(e,t){var n=sm,r=wf,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,a=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,w;h=function(b,x){var E;return r(x),u.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),a(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,I;return r(x),I=this,h.call(this,b,E=function(){g.call(I,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,I,A,k;if(r(x),!u.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(I=E[b],typeof I=="object")for(k=0;A=I[k];++k)(A===x||A.__eeOnceListener__===x)&&(I.length===2?E[b]=I[k?0:1]:I.splice(k,1));else(I===x||I.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,I,A,k;if(u.call(this,"__ee__")&&(A=this.__ee__[b],!!A))if(typeof A=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?u.call(g,v,O,w):O,y?(f.value=O,h(b,w,f)):b[w]=O,++w;x=w}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=0?f=s(f):f=t(this.length)-s(o(f)),c=f;c"}},wB}var _B,D9;function QBe(){if(D9)return _B;D9=1;var e=KBe(),t=/[\n\r\u2028\u2029]/g;return _B=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"…"),r=r.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),r},_B}var lS={exports:{}},N9;function rne(){if(N9)return lS.exports;N9=1,lS.exports=e,lS.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return lS.exports}var B9;function JBe(){if(B9)return I9;B9=1;var e=tne(),t=qBe(),n=YBe(),r=QBe(),i=rne(),o=nU(),s=Object.create,a=t("then","then:finally","done","done:finally");return om.promise=function(c,u){var f=s(null),h=s(null),p=s(null);if(c===!0)c=null;else if(c=n(c),!a[c])throw new TypeError("'"+r(c)+"' is not valid promise mode");u.on("set",function(g,v,y){var S=!1;if(!i(y)){h[g]=y,u.emit("setasync",g,1);return}f[g]=1,p[g]=y;var w=function(I){var A=f[g];if(S)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`);A&&(delete f[g],h[g]=I,u.emit("setasync",g,A))},b=function(){S=!0,f[g]&&(delete f[g],delete p[g],u.delete(g))},x=c;if(x||(x="then"),x==="then"){var E=function(){o(b)};y=y.then(function(I){o(w.bind(this,I))},E),typeof y.finally=="function"&&y.finally(E)}else if(x==="done"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");y.done(w,b)}else if(x==="done:finally"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof y.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");y.done(w),y.finally(b)}}),u.on("get",function(g,v,y){var S;if(f[g]){++f[g];return}S=p[g];var w=function(){u.emit("getasync",g,v,y)};i(S)?typeof S.done=="function"?S.done(w):S.then(function(){o(w)}):w()}),u.on("delete",function(g){if(delete p[g],f[g]){delete f[g];return}if(hasOwnProperty.call(h,g)){var v=h[g];delete h[g],u.emit("deleteasync",g,[v])}}),u.on("clear",function(){var g=h;h=s(null),f=s(null),p=s(null),u.emit("clearasync",e(g,function(v){return[v]}))})},I9}var $9={},F9;function ZBe(){if(F9)return $9;F9=1;var e=wf,t=wA,n=om,r=Function.prototype.apply;return n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise){o.on("deleteasync",a=function(c,u){r.call(i,null,u)}),o.on("clearasync",function(c){t(c,function(u,f){a(f,u)})});return}o.on("delete",a=function(c,u){i(u)}),o.on("clear",function(c){t(c,function(u,f){a(f,u)})})},$9}var z9={},SB,j9;function e$e(){return j9||(j9=1,SB=2147483647),SB}var EB,U9;function t$e(){if(U9)return EB;U9=1;var e=im,t=e$e();return EB=function(n){if(n=e(n),n>t)throw new TypeError(n+" exceeds maximum possible timeout");return n},EB}var H9;function n$e(){if(H9)return z9;H9=1;var e=eU(),t=wA,n=nU(),r=rne(),i=t$e(),o=om,s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;return o.maxAge=function(f,h,p){var g,v,y,S;f=i(f),f&&(g=u(null),v=p.async&&o.async||p.promise&&o.promise?"async":"",h.on("set"+v,function(w){g[w]=setTimeout(function(){h.delete(w)},f),typeof g[w].unref=="function"&&g[w].unref(),S&&(S[w]&&S[w]!=="nextTick"&&clearTimeout(S[w]),S[w]=setTimeout(function(){delete S[w]},y),typeof S[w].unref=="function"&&S[w].unref())}),h.on("delete"+v,function(w){clearTimeout(g[w]),delete g[w],S&&(S[w]!=="nextTick"&&clearTimeout(S[w]),delete S[w])}),p.preFetch&&(p.preFetch===!0||isNaN(p.preFetch)?y=.333:y=a(c(Number(p.preFetch),1),0),y&&(S={},y=(1-y)*f,h.on("get"+v,function(w,b,x){S[w]||(S[w]="nextTick",n(function(){var E;S[w]==="nextTick"&&(delete S[w],h.delete(w),p.async&&(b=e(b),b.push(s)),E=h.memoized.apply(x,b),p.promise&&r(E)&&(typeof E.done=="function"?E.done(s,s):E.then(s,s)))}))}))),h.on("clear"+v,function(){t(g,function(w){clearTimeout(w)}),g={},S&&(t(S,function(w){w!=="nextTick"&&clearTimeout(w)}),S={})}))},z9}var W9={},CB,G9;function r$e(){if(G9)return CB;G9=1;var e=im,t=Object.create,n=Object.prototype.hasOwnProperty;return CB=function(r){var i=0,o=1,s=t(null),a=t(null),c=0,u;return r=e(r),{hit:function(f){var h=a[f],p=++c;if(s[p]=f,a[f]=p,!h)return++i,i<=r?void 0:(f=s[o],u(f),f);if(delete s[h],o===h)for(;!n.call(s,++o););},delete:u=function(f){var h=a[f];if(h&&(delete s[h],delete a[f],--i,o===h)){if(!i){c=0,o=1;return}for(;!n.call(s,++o););}},clear:function(){i=0,o=1,s=t(null),a=t(null),c=0}}},CB}var V9;function i$e(){if(V9)return W9;V9=1;var e=im,t=r$e(),n=om;return n.max=function(r,i,o){var s,a,c;r=e(r),r&&(a=t(r),s=o.async&&n.async||o.promise&&n.promise?"async":"",i.on("set"+s,c=function(u){u=a.hit(u),u!==void 0&&i.delete(u)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))},W9}var q9={},X9;function o$e(){if(X9)return q9;X9=1;var e=sm,t=om,n=Object.create,r=Object.defineProperties;return t.refCounter=function(i,o,s){var a,c;a=n(null),c=s.async&&t.async||s.promise&&t.promise?"async":"",o.on("set"+c,function(u,f){a[u]=f||1}),o.on("get"+c,function(u){++a[u]}),o.on("delete"+c,function(u){delete a[u]}),o.on("clear"+c,function(){a={}}),r(o.memoized,{deleteRef:e(function(){var u=o.get(arguments);return u===null||!a[u]?null:--a[u]?!1:(o.delete(u),!0)}),getRefCount:e(function(){var u=o.get(arguments);return u===null||!a[u]?0:a[u]})})},q9}var s$e=jte,a$e=Ute,l$e=BBe,c$e=function(e){var t=s$e(arguments[1]),n;return t.normalizer||(n=t.length=a$e(t.length,e.length,t.async),n!==0&&(t.primitive?n===!1?t.normalizer=$Be():n>1&&(t.normalizer=FBe()(n)):n===!1?t.normalizer=HBe()():n===1?t.normalizer=WBe()():t.normalizer=GBe()(n))),t.async&&VBe(),t.promise&&JBe(),t.dispose&&ZBe(),t.maxAge&&n$e(),t.max&&i$e(),t.refCounter&&o$e(),l$e(e,t)};const Ov=us(c$e),u$e=e=>async t=>{const n=new e,r=await t(n);return n.terminate(),r},d$e=e=>t=>u$e(e)(n=>(n.postMessage(t),new Promise((r,i)=>{n.onmessage=o=>{r(o.data)},n.onerror=i}))),Mv=(e,t={async:!0,length:1})=>Ov(d$e(e),t),f$e=""+new URL("tree.worker-a5e2610c.js",import.meta.url).href;class h$e extends Worker{constructor(){super(f$e,{type:"module"})}}const p$e=Mv(h$e);function m$e(e){return Rv(async()=>await p$e(e),[e])}function g$e(e,t){const n=P.useMemo(()=>e,t);return m$e(n)}const v$e=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}}),y$e=$te;function ine(e,t=!1){const[n,r]=P.useState();return P.useEffect(()=>{t||e&&r(e)},[e,t]),n}const Y9={small:{value:0,name:"Current",description:"Show the current node and its parents"},medium:{value:4,name:"Nearby",description:"Show nodes with ≤4 degrees of separation"},infinite:{value:void 0,name:"All",description:"Show all nodes, may impact performance"}};function b$e(){var w,b,x,E,I;const{palette:e}=Ln(),{key:t,setKey:n,layer:r,setLayer:i,layers:o}=kv(),s=UQ(((w=r==null?void 0:r.source)==null?void 0:w.step)??0,600),{controls:a,onChange:c,state:u}=bf(),[f,h]=P.useState("small"),p=k1({"&.rd3t-link":{stroke:kn(e.text.primary,e.action.disabledOpacity)}}),{result:g,loading:v}=g$e({trace:(x=(b=r==null?void 0:r.source)==null?void 0:b.trace)==null?void 0:x.content,step:s,radius:Y9[f].value},[s,r,f]),y=ine(g,v),S=P.useCallback(()=>p,[p]);return C.jsxs(zn,{onChange:c,stack:u,children:[C.jsx(zn.Content,{children:C.jsx(En,{children:(I=(E=r==null?void 0:r.source)==null?void 0:E.trace)!=null&&I.content&&(y!=null&&y.tree)?C.jsx(Jk,{children:({width:A,height:k})=>C.jsx(mt,{width:A,height:k,children:C.jsx(y$e,{scaleExtent:{max:10,min:.01},translate:{x:A/2,y:A/2},data:y.tree,dimensions:{width:A,height:k},separation:{siblings:.4,nonSiblings:.4},pathClassFunc:S,renderCustomNodeElement:({nodeDatum:O,onNodeClick:D})=>{var N;return C.jsx(x$e,{node:O,onClick:()=>D==null?void 0:D({}),step:(N=r==null?void 0:r.source)==null?void 0:N.step,onStep:H=>i(Ca(r,G=>{ie.set(G,"source.step",H)}))})}})})}):C.jsx(hp,{icon:C.jsx(LQ,{}),label:"Tree"})})})," ",C.jsxs(zn.Options,{children:[C.jsx(Ws,{icon:C.jsx(Cw,{}),label:"Layer",value:t,items:ie.map(o,A=>({id:A.key,name:Aa(A)})),onChange:n,showArrow:!0}),v$e,C.jsx(Ws,{icon:C.jsx(F1e,{}),label:"Radius",value:f,onChange:A=>h(A),items:ie.map(ie.entries(Y9),([A,k])=>({id:A,...k})),showArrow:!0})]}),C.jsx(zn.Extras,{children:a})]})}const jb=16,fu=4;function x$e({onClick:e,node:t,step:n=0,onStep:r}){var f;const{palette:i,spacing:o,shape:s}=Ln(),a=ie.findLast(t==null?void 0:t.events,h=>h.step<=n),c=!!ie.find(t==null?void 0:t.events,h=>h.step===n),u=H1((f=a==null?void 0:a.data)==null?void 0:f.type);return C.jsx(em,{variant:"popover",children:h=>{var p,g;return C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:`f: ${((p=a==null?void 0:a.data)==null?void 0:p.f)??"unknown"}, g: ${((g=a==null?void 0:a.data)==null?void 0:g.g)??"unknown"}`,children:C.jsxs("g",{onClick:v=>{h.open(v)},children:[C.jsx("clipPath",{id:"clipPath",children:C.jsx("rect",{y:o(-fu/2),x:o(-.25),strokeWidth:0,width:o(jb),height:o(fu),rx:s.borderRadius})}),C.jsx("rect",{y:o(-fu/2),x:o(-.25),strokeWidth:0,fill:i.background.default,width:o(jb),height:o(fu),clipPath:"url(#clipPath)"}),c&&C.jsx("rect",{y:o(-fu/2),x:o(-.25),strokeWidth:0,fill:kn(i.primary.main,i.action.selectedOpacity),width:o(jb),height:o(fu),clipPath:"url(#clipPath)"}),C.jsx("rect",{x:o(-.25),y:o(-fu/2),height:o(fu),width:o(.5),fill:u,strokeWidth:0,clipPath:"url(#clipPath)"}),C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.primary,y:0,fontWeight:500,fontSize:"0.875rem",x:o(2-.25),alignmentBaseline:"central",children:t==null?void 0:t.name}),!!(t!=null&&t.cumulativeChildCount)&&C.jsxs(C.Fragment,{children:[C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.secondary,y:0,x:o(jb-2.25-1),textAnchor:"end",fontWeight:400,fontSize:"0.875rem",alignmentBaseline:"central",children:t==null?void 0:t.cumulativeChildCount}),C.jsx(y1e,{width:o(2),height:o(2),x:o(jb-2-1),y:o(-fu/2+1),strokeWidth:0,fill:i.text.primary,opacity:i.action.disabledOpacity})]})]})}),C.jsx(Zp,{anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{horizontal:"center",vertical:"top"},...$w(h),children:C.jsx(zk,{dense:!0,sx:{p:0},children:ie.map(t==null?void 0:t.events,v=>C.jsx(Ru,{selected:v.step===n,sx:{borderLeft:`4px solid ${H1(v.data.type)}`},onClick:()=>{h.close(),e==null||e(),ie.delay(()=>r==null?void 0:r(v.step),150)},children:C.jsx($z,{primary:ie.startCase(v.data.type),secondary:`Step ${v.step}`})}))})})]})}})}function w$e({selection:e,onClose:t}){const n=_$e(),r=ine(e),{client:i}=e??{};return C.jsx(Zp,{open:!!e,anchorReference:"anchorPosition",anchorPosition:{top:(i==null?void 0:i.y)??0,left:(i==null?void 0:i.x)??0},onClose:t,keepMounted:!0,children:C.jsx(zk,{dense:!0,sx:{py:0},children:C.jsx(n,{event:r,children:o=>{const s=ie.entries(o);return s.length?ie.chain(s).sortBy(([,a])=>a.index).map(([,{items:a,primary:c}],u)=>C.jsxs(C.Fragment,{children:[!!u&&C.jsx(Ku,{sx:{my:1,mx:2}}),c&&C.jsx(Fx,{sx:{py:0},children:C.jsx(Xt,{color:"text.secondary",variant:"overline",children:c})}),ie.chain(a).entries().sortBy(([,f])=>f.index).map(([f,{action:h,icon:p,primary:g,secondary:v}])=>h?C.jsxs(Ru,{onClick:()=>{h(),t==null||t()},children:[p&&C.jsx(Wd,{children:p}),C.jsx(rc,{primary:g,sx:{mr:4}}),C.jsx(Xt,{variant:"body2",color:"text.secondary",children:v})]},f):C.jsxs(Fx,{children:[p&&C.jsx(Wd,{children:p}),C.jsx(rc,{primary:g,sx:{mr:4}}),C.jsx(Xt,{variant:"body2",color:"text.secondary",children:v})]},f)).value()]})).value():C.jsx(C.Fragment,{children:C.jsx(Fx,{children:C.jsx(Xt,{children:"No info to show."})})})}})})})}const K9=({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e({})});function _$e(){const[{layers:e}]=tm();return P.useMemo(()=>ie.chain(e).reduce((t,n)=>{var i;const r=((i=hne(n))==null?void 0:i.getSelectionInfo)??K9;return({children:o,event:s})=>C.jsx(r,{layer:n.key,event:s,children:a=>C.jsx(t,{event:s,children:c=>o==null?void 0:o(ie.merge(a,c))})})},K9).value(),[e])}const[SA,S$e]=Qu([],{reduce:HQ}),E$e={tileSubdivision:2,workerCount:3,tileResolution:{width:256,height:256}},one=P.createContext({});function C$e(){return P.useContext(one)}function T$e(e,{width:t,height:n}={}){const r=Ln(),[i]=SA(),o=P.useRef(null),[s,a]=P.useState(""),[c,u]=P.useState();return P.useEffect(()=>{if(a(""),o.current&&t&&n&&e){const f=ie.find(i,h=>h.renderer.meta.id===e);if(f){const h=new f.renderer.constructor;return h.setup({...E$e,backgroundColor:r.palette.background.paper,accentColor:r.palette.primary.main}),o.current.append(h.getView()),u(h),()=>{var p,g;try{(g=(p=o.current)==null?void 0:p.removeChild)==null||g.call(p,h.getView()),u(void 0)}catch(v){console.warn(v)}finally{h.destroy()}}}}},[o.current,ie.map,e,i,r,a,u]),swe(()=>{c&&t&&n&&c.setOptions({screenSize:{width:t,height:n}})},r.transitions.duration.standard,[c,t,n]),{instance:c,ref:o,error:s}}function k$e(){const[{map:e,specimen:t}]=lA();return!!(e||t)&&C.jsx(Fk,{sx:{position:"absolute",top:n=>n.spacing(6+2),right:n=>n.spacing(2)}})}function A$e({width:e,height:t,renderer:n,rendererRef:r,layers:i}){const{instance:o,error:s,ref:a}=T$e(n,{width:e,height:t}),[c,u]=P.useState();P.useEffect(()=>{if(o){const h=(p,g)=>{const v=p;u({client:{x:v.clientX,y:v.clientY},world:g.world,info:{point:g.world,components:g.components}})};return o.on("click",h),()=>void o.off("click",h)}},[o]);const f=P.useMemo(()=>({renderer:o}),[o]);return P.useEffect(()=>r==null?void 0:r(o),[o,r]),C.jsxs(C.Fragment,{children:[C.jsx(k$e,{}),C.jsx(one.Provider,{value:f,children:i!=null&&i.length?s?C.jsxs(mt,{sx:{display:"flex",flexDirection:"column",width:e,height:t,alignItems:"center",justifyContent:"center",color:"text.secondary"},children:[C.jsx(m1e,{sx:{mb:2},fontSize:"large"}),s]}):C.jsx(C.Fragment,{children:C.jsx(mt,{ref:a,children:i.map(h=>C.jsx(RFe,{layer:h},h.key))})}):C.jsx(hp,{icon:C.jsx(FQ,{}),label:"No layers to render",width:e,height:t})}),C.jsx(w$e,{selection:c,onClose:()=>u(void 0)})]})}function K1({nodes:e}){const{renderer:t}=C$e();return P.useEffect(()=>{if(t&&(e!=null&&e.length))return t.add(e.flat())},[t,e]),C.jsx(C.Fragment,{})}function I$e({nodes:e,step:t}){const r=ie.floor((t??0)/200)*200,i=P.useMemo(()=>ie.slice(e,0,r),[e,r]),o=P.useMemo(()=>ie.slice(e,r,(t??0)+1),[e,r,t]);return C.jsxs(C.Fragment,{children:[!!r&&C.jsx(K1,{nodes:i}),C.jsx(K1,{nodes:o})]})}const EA=({variables:e},{x:t,y:n})=>(e==null?void 0:e.x)===t&&(e==null?void 0:e.y)===n,R$e=""+new URL("parseGrid.worker-d5269b43.js",import.meta.url).href;class P$e extends Worker{constructor(){super(R$e,{type:"module"})}}const O$e=Mv(P$e),{floor:Q9}=Math;function J9(e,t,n){return e>=t&&e({...await O$e({map:e,options:t})}),{normalizer:JSON.stringify}),L$e=e=>{const{width:t,height:n}=e.bounds;return{...e,snap:({x:r,y:i},o=1)=>{const[s,a]=[Q9(r+o/2),Q9(i+o/2)];if(J9(s,0,t)&&J9(a,0,n))return{x:s,y:a}},nodeAt:r=>{const{x:i,y:o}=r;return o*t+i},pointOf:r=>({x:r%t,y:~~(r/t)}),matchNode:EA}},D$e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:L$e,parse:M$e},Symbol.toStringTag,{value:"Module"})),N$e=""+new URL("parseMesh.worker-114081b8.js",import.meta.url).href;class B$e extends Worker{constructor(){super(N$e,{type:"module"})}}const $$e=Mv(B$e),F$e=Ov(async(e="",t)=>await $$e({map:e,options:t}),{normalizer:JSON.stringify}),z$e=e=>({...e,snap:ie.identity,nodeAt:ie.constant(0),pointOf:ie.constant({x:0,y:0}),matchNode:EA}),j$e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:z$e,parse:F$e},Symbol.toStringTag,{value:"Module"})),U$e=""+new URL("parseNetwork.worker-0345a67d.js",import.meta.url).href;class H$e extends Worker{constructor(){super(U$e,{type:"module"})}}const W$e=Mv(H$e),G$e=Ov(async(e="",t)=>await W$e({map:e,options:t}),{normalizer:JSON.stringify}),V$e=e=>({...e,snap:ie.identity,nodeAt:ie.constant(0),pointOf:ie.constant({x:0,y:0}),matchNode:EA}),q$e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:V$e,parse:G$e},Symbol.toStringTag,{value:"Module"})),X$e=""+new URL("parsePoly.worker-bf1460fa.js",import.meta.url).href;class Y$e extends Worker{constructor(){super(X$e,{type:"module"})}}const K$e=Mv(Y$e),Q$e=Ov(async(e="",t)=>await K$e({map:e,options:t}),{normalizer:JSON.stringify}),J$e=e=>({...e,snap:ie.identity,nodeAt:ie.constant(0),pointOf:ie.constant({x:0,y:0}),matchNode:EA}),Z$e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:J$e,parse:Q$e},Symbol.toStringTag,{value:"Module"})),rU={grid:D$e,xy:q$e,mesh:j$e,poly:Z$e};function sne(e=""){return rU[e]}const eFe=(e,t,n)=>{const r=P.useRef(n||[]),o=r.current===n||!r.current.every((a,c)=>a===n[c]);r.current=n;const s=t.map(()=>null);return P.useEffect(o?()=>void e():()=>{},o?t:s)};function tFe(e,t){return ie.zip(e,t).every(([n,r])=>n===r)}const nFe=(e,t=[],n=[])=>{const[r,i]=P.useState(t),[o,s]=P.useState(n);return P.useEffect(()=>{tFe(o,n)||(i(t),s(n))},[t,n,o]),zte(e,[...r,...o])};function iU(){const[e]=ev();return P.useCallback(t=>ie.find(e,t),[e])}function rFe(e){return iU()({url:e})}function iFe(e){const t=mc(),n=nm("map"),r=iU(),i=P.useMemo(()=>Ov(async({source:c,id:u}={})=>{if(c&&u){const f=r({url:c});if(f){t("Fetching map...");const h=await f.call("features/map",{id:u});return h==null?void 0:h.content}}},{normalizer:JSON.stringify}),[r,t]),{content:o,source:s,id:a}=e??{};return Rv(()=>n(async()=>{if(a)return{...e,content:o||await i({source:s,id:a})}}),[i,o,s,a])}function oFe(e){const t=mc(),n=Ln(),r=nm("map"),{format:i,content:o}=e??{};return Rv(()=>r(async()=>{var a,c;const s=n.palette.mode==="dark"?vv:gv;if(i&&o){t("Processing map...");const u=await((c=(a=sne(i))==null?void 0:a.parse)==null?void 0:c.call(a,o,{color:s(n.palette.background.paper,.25)}))??{nodes:[]};return t("Map loaded",`${u.nodes.length} elements, ${u.log.join(", ")}`),u}}),[i,o,n])}const ane=({label:e})=>C.jsx(Xt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:e}),sFe=({label:e})=>C.jsx(Xt,{variant:"body1",children:e}),Q1=({label:e,content:t})=>C.jsxs(En,{alignItems:"center",children:[C.jsx(sFe,{label:e}),C.jsx(ai,{flex:1}),t]}),aFe={key:"map",inferName:e=>{var t;return(t=e==null?void 0:e.source)!=null&&t.map?`${e.source.map.name} (${ie.startCase(e.source.map.format)})`:"Untitled Map"},editor:Kg(({value:e,produce:t})=>{var n;return C.jsx(C.Fragment,{children:C.jsx(Q1,{label:"Source",content:C.jsx(n2e,{value:(n=e==null?void 0:e.source)==null?void 0:n.map,onChange:r=>t(i=>ie.set(i,"source.map",r))})})})}),renderer:({layer:e})=>{var r;const{nodes:t}=((r=e==null?void 0:e.source)==null?void 0:r.parsedMap)??{},n=P.useMemo(()=>[t??[]],[t]);return C.jsx(K1,{nodes:n})},steps:({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e([])}),service:Kg(({value:e,produce:t})=>{var i;const{result:n}=iFe((i=e==null?void 0:e.source)==null?void 0:i.map),{result:r}=oFe(n);return eFe(()=>void t(o=>ie.set(o,"source.parsedMap",r)),[r,t],[r]),C.jsx(C.Fragment,{})}),getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=kv(n),{parsedMap:s}=(r==null?void 0:r.source)??{},{point:a,node:c}=P.useMemo(()=>{var f,h,p,g;if(s&&t){const v=(g=(p=sne((h=(f=r==null?void 0:r.source)==null?void 0:f.map)==null?void 0:h.format))==null?void 0:p.hydrate)==null?void 0:g.call(p,s);if(v){const y=(t==null?void 0:t.world)&&v.snap(t.world);if(y){const S=(t==null?void 0:t.world)&&v.nodeAt(y);return{point:y,node:S}}}}return{}},[s,t]),u=P.useMemo(()=>{const f=ie.filter(o,{source:{type:"query"}});return{...r&&a&&!ie.isUndefined(c)&&{[r.key]:{primary:Aa(r),items:{point:{primary:"Point",secondary:`(${ie.round(a.x,2)}, ${ie.round(a.y,2)})`},...ie.reduce(f,(h,p)=>({...h,[`${p.key}-a`]:{primary:"Set as source",secondary:Aa(p),action:()=>i(Ca(r,g=>{ie.set(g,"source.start",c),ie.set(g,"source.query",void 0),ie.set(g,"source.mapLayerKey",r.key),ie.set(g,"source.trace",void 0)})),icon:C.jsx($1e,{sx:{transform:"scale(0.5)"}})},[`${p.key}-b`]:{primary:"Set as destination",secondary:Aa(p),action:()=>i(Ca(r,g=>{ie.set(g,"source.end",c),ie.set(g,"source.query",void 0),ie.set(g,"source.mapLayerKey",r.key),ie.set(g,"source.trace",void 0)})),icon:C.jsx(P1e,{})}}),{})}}}}},[a,c,r,o,i]);return C.jsx(C.Fragment,{children:e==null?void 0:e(u)})}};var TB=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Mo,SE,lFe={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},ud;function kB(e){return TB.lastIndex=0,TB.test(e)?'"'+e.replace(TB,function(t){var n=lFe[t];return typeof n=="string"?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function EE(e,t,n){var r,i,o,s,a=Mo,c,u=t[e];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(e)),typeof ud=="function"&&(u=ud.call(t,e,u)),typeof u){case"string":return kB(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(Mo+=SE,c=[],Object.prototype.toString.apply(u)==="[object Array]"){for(s=u.length,r=0;rn?`[ -`+Mo+c.join(`, -`+Mo)+` -`+a+"]":"[ "+c.join(", ")+" ]":"["+c.join(",")+"]",Mo=a,o}if(ud&&typeof ud=="object")for(s=ud.length,r=0;rn?`{ -`+Mo+c.join(`, -`+Mo)+` -`+a+"}":"{ "+c.join(", ")+" }":"{"+c.join(",")+"}",Mo=a,o}}function cFe(e,t,n,r){var i;if(Mo="",SE="",r||(r=0),typeof r!="number")throw new Error("beaufifier: limit must be a number");if(typeof n=="number")for(i=0;ir!==void 0),([r,i])=>C.jsx(fFe,{label:r,value:i,type:{variant:t}}))})}var cne={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qt,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var i={};return r.m=n,r.c=i,r.d=function(o,s,a){r.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:a})},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=1)}([function(n,r,i){function o(a){var c=a===void 0?{}:a,u=c.ESCAPE,f=u===void 0?/^\\/:u,h=c.VARIABLE_START,p=h===void 0?/^\${\s*/:h,g=c.VARIABLE_END,v=g===void 0?/^\s*}/:g,y=c.PIPE_START,S=y===void 0?/^\s*\|\s*/:y,w=c.PIPE_PARAMETER_START,b=w===void 0?/^\s*:\s*/:w,x=c.QUOTED_STRING,E=x===void 0?r.DEFAULT_QUOTED_STRING_REGEX:x,I=c.QUOTED_STRING_TEST,A=I===void 0?null:I,k=c.QUOTED_STRING_GET_AND_ADVANCE,O=k===void 0?null:k,D=c.QUOTED_STRING_IN_PARAMETER_TEST,N=D===void 0?null:D,H=c.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,G=H===void 0?null:H,z=A||function(V){return E.test(V)},L=O||s(E),F=N||function(V){return E.test(V)},j=G||s(E);return function(V){function W(Pe){Pe===void 0&&(Pe=1),pe=pe.substr(Pe)}function K(Pe){Pe===void 0&&(Pe=/^/),W(pe.match(Pe)[0].length)}function X(){var Pe;return K(f),Pe=pe.length>0?pe[0]:"",W(),Pe}function Q(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;me={name:"",pipes:[]},Xe=!st}function re(){ve.variables.push(me),Q({isNull:!0})}function ce(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;be={name:"",parameters:[]},ct=!st}function ue(){me.pipes.push(be),ce({isNull:!0})}function se(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;Ze="",Bt=!st}function J(){be.parameters.push(Ze),se({isNull:!0})}function ae(){return!!v.test(pe)&&(K(v),ye>=3&&J(),ye>=2&&ue(),ye>=1&&re(),ye=0,!0)}function le(){return!!S.test(pe)&&(K(S),ye>=3&&J(),ye>=2&&ue(),ye>=1&&ce(),ye=2,!0)}function he(){return!!b.test(pe)&&(K(b),ye>=3&&J(),ye>=2&&se(),ye=3,!0)}for(var pe=V,ve={literals:[],variables:[]},ye=0,xe="",me={name:"",pipes:[]},be={name:"",parameters:[]},Ze="",Xe=!1,ct=!1,Bt=!1;pe&&pe.length>0;)switch(ye){case 0:if(f.test(pe)){xe+=X();continue}if(p.test(pe)){ye=1,Q(),ve.literals.push(xe),xe="",K(p);continue}xe+=pe[0],W();break;case 1:if(f.test(pe)){me.name+=X();continue}if(ae()||le())continue;if(z(pe)){me.name+=L(pe,W);continue}me.name+=pe[0],W();break;case 2:if(f.test(pe)){be.name+=X();continue}if(ae()||he()||le())continue;if(z(pe)){be.name+=L(pe,W);continue}be.name+=pe[0],W();break;case 3:if(f.test(pe)){Ze+=X();continue}if(ae()||he()||le())continue;if(F(pe)){Ze+=j(pe,W);continue}Ze+=pe[0],W()}return Bt&&be.parameters.push(Ze),ct&&me.pipes.push(be),Xe&&ve.variables.push(me),ve.literals.push(xe),ve}}function s(a){return function(c,u){var f=c.match(a);return u(f[0].length),f.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,r.parseStringTemplateGenerator=o,r.parseStringTemplate=o(),r.getQuotedStringAndAdvanceForRegex=s},function(n,r,i){n.exports=i(2)},function(n,r,i){function o(s){for(var a in s)r.hasOwnProperty(a)||(r[a]=s[a])}Object.defineProperty(r,"__esModule",{value:!0}),o(i(0)),o(i(3))},function(n,r,i){function o(f){return function(h){return f.hasOwnProperty(h)?f[h]:h.split(".").reduce(function(p,g){return p.hasOwnProperty(g)?p[g]:""},f)}}function s(f,h,p,g){g===void 0&&(g=o(h));var v=g(f.name);return f.pipes.reduce(function(y,S){return p.hasOwnProperty(S.name)?p[S.name](y,S.parameters):y},v??"")}function a(f,h,p,g){return g===void 0&&(g=o(h)),f.literals.length===0?"":f.literals.slice(1).reduce(function(v,y,S){return""+v+s(f.variables[S],h,p,g)+y},f.literals[0])}function c(f,h,p){return a(u.parseStringTemplate(f),h,p)}Object.defineProperty(r,"__esModule",{value:!0});var u=i(0);r.evaluateParsedString=a,r.evaluateStringTemplate=c}])})})(cne);var e7=cne.exports;function oU(e={},t){const{$:n,...r}=e;return{...ie.mapValues(r,t),$:n}}function Q3(e){switch(e==null?void 0:e.constructor){case Array:{const t=ie.map(e,Q3);return n=>ie.map(t,r=>r(n))}case Object:{const t=ie.mapValues(e,Q3);return n=>ie.mapValues(t,r=>r(n))}case String:return J3(e);default:return ie.constant(e)}}function VC(e={}){return oU(e,t=>ie.isFunction(t)?t:Q3(t))}function t7(e){const t=Function("ctx",`return ${e};`);return n=>t(new Proxy(VC(n),{get(r,i){var o;return(o=r[i])==null?void 0:o.call(r,{})}}))}const hFe=/^\{\{\s*/,pFe=/^\s*\}\}/,AB=/\b\B/;function J3(e){const n=e7.parseStringTemplateGenerator({VARIABLE_START:hFe,VARIABLE_END:pFe,PIPE_START:AB,PIPE_PARAMETER_START:AB,QUOTED_STRING:AB})(e);return ie.join(n.literals,"")?r=>e7.evaluateParsedString(n,{},{},i=>t7(i)(r)):t7(n.variables[0].name)}function mFe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var une={exports:{}};(function(e,t){(function(n,r){typeof mFe=="function"?e.exports=r():n.pluralize=r()})(qt,function(){var n=[],r=[],i={},o={},s={};function a(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function c(y,S){return y===S?S:y===y.toLowerCase()?S.toLowerCase():y===y.toUpperCase()?S.toUpperCase():y[0]===y[0].toUpperCase()?S.charAt(0).toUpperCase()+S.substr(1).toLowerCase():S.toLowerCase()}function u(y,S){return y.replace(/\$(\d{1,2})/g,function(w,b){return S[b]||""})}function f(y,S){return y.replace(S[0],function(w,b){var x=u(S[1],arguments);return c(w===""?y[b-1]:w,x)})}function h(y,S,w){if(!y.length||i.hasOwnProperty(y))return S;for(var b=w.length;b--;){var x=w[b];if(x[0].test(S))return f(S,x)}return S}function p(y,S,w){return function(b){var x=b.toLowerCase();return S.hasOwnProperty(x)?c(b,x):y.hasOwnProperty(x)?c(b,y[x]):h(x,b,w)}}function g(y,S,w,b){return function(x){var E=x.toLowerCase();return S.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:h(E,E,w)===E}}function v(y,S,w){var b=S===1?v.singular(y):v.plural(y);return(w?S+" ":"")+b}return v.plural=p(s,o,n),v.isPlural=g(s,o,n),v.singular=p(o,s,r),v.isSingular=g(o,s,r),v.addPluralRule=function(y,S){n.push([a(y),S])},v.addSingularRule=function(y,S){r.push([a(y),S])},v.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}v.addPluralRule(y,"$0"),v.addSingularRule(y,"$0")},v.addIrregularRule=function(y,S){S=S.toLowerCase(),y=y.toLowerCase(),s[y]=S,o[S]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return v.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return v.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return v.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(v.addUncountableRule),v})})(une);var gFe=une.exports;const vFe=us(gFe),yFe=""+new URL("parseTrace.worker-aa84109d.js",import.meta.url).href;class bFe extends Worker{constructor(){super(yFe,{type:"module"})}}const xFe=Mv(bFe);function wFe(e){const t=mc(),n=nm("specimen");return Rv(()=>n(async()=>{var r;if(e!=null&&e.trace){t("Processing trace...");try{const i=await xFe(e);return t("Trace loaded",vFe("step",((r=i==null?void 0:i.stepsPersistent)==null?void 0:r.length)??0,!0)),i}catch(i){t("Error parsing",`${i}`)}}}),[e])}function _Fe(e,t){const n=P.useMemo(()=>e,ie.map(t,JSON.stringify));return wFe(n)}function dne(e,t){const n=oU(t,r=>i=>r(dne(VC(i),e)));return{...e,...n}}function fne(e,t,n={}){return e.flatMap(r=>{const{$:i}=r,o=dne(VC(n),VC(r));return i in t?fne(t[i],t,o):[o]})}const SFe={color:gA};function EFe(e,t="main"){const n=Ln();return P.useMemo(()=>{var i,o,s,a;const r=fne(((s=(o=(i=e==null?void 0:e.render)==null?void 0:i.views)==null?void 0:o[t])==null?void 0:s.components)??[],((a=e==null?void 0:e.render)==null?void 0:a.components)??{});return{events:(e==null?void 0:e.events)??[],apply:(c,u)=>ie.map(r,f=>oU(f,h=>h({fill:n.palette.primary.main,alpha:1,...SFe,...u,...c})))}},[e,t,n])}const CFe=e=>e==null;function TFe(e){const t=[],n={},r={},i=ie.chain(e==null?void 0:e.events).map((a,c)=>({step:c,id:a.id,pId:a.pId})).groupBy("id").value();ie.forEach(e==null?void 0:e.events,({id:a,pId:c},u)=>{!CFe(c)&&n[a]!==c&&(t.push({id:a,pId:c,step:u,prev:ie.last(t)}),n[a]=c),r[u]=ie.last(t)});const o=(a,c=(u=>(u=e==null?void 0:e.events)==null?void 0:u.length)()??0)=>{let f=r[c];for(;f;){if(f.id===a)return f.pId;f=f.prev}};return{getParent:o,getPath:a=>{const c=[a];let u={...(e.events??[])[a],step:a};for(;u;){const f=o(u.id,u.step);if(f){const h=ie.findLast(i[f],p=>p.step<=u.step);if(h)c.push(h.step),u=h;else break}else break}return c}}}const px={key:"trace",inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Trace"},editor:Kg(({value:e,produce:t})=>{var n,r,i,o;return C.jsxs(C.Fragment,{children:[C.jsx(Q1,{label:"Trace",content:C.jsx(r2e,{onChange:s=>t(a=>ie.set(a,"source.trace",s)),value:(n=e==null?void 0:e.source)==null?void 0:n.trace})}),C.jsx(Q1,{label:"Onion Skinning",content:C.jsx(Ws,{disabled:!0,showArrow:!0,value:((r=e==null?void 0:e.source)==null?void 0:r.onion)??"off",items:["off","transparent","solid"].map(s=>({id:s,name:ie.startCase(s)})),onChange:s=>t(a=>ie.set(a,"source.onion",s))})}),C.jsx(ane,{label:"Preview"}),C.jsx(mt,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(lne,{trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content})})]})}),service:Kg(({value:e,produce:t})=>(P.useEffect(()=>{t(n=>{var r,i,o,s;return ie.set(n,"source.playbackTo",((s=(o=(i=(r=e==null?void 0:e.source)==null?void 0:r.trace)==null?void 0:i.content)==null?void 0:o.events)==null?void 0:s.length)??0)})},[e]),C.jsx(C.Fragment,{}))),renderer:({layer:e})=>{var c,u,f,h,p;const{palette:t}=Ln(),n=UQ(((c=e==null?void 0:e.source)==null?void 0:c.step)??0,1e3/60);console.log(n);const{result:r}=_Fe({trace:(f=(u=e==null?void 0:e.source)==null?void 0:u.trace)==null?void 0:f.content,context:{color:gA,themeAccent:t.primary.main,themeTextPrimary:t.text.primary,themeBackground:t.background.paper},view:"main"},[t.primary.main,t.text.primary,t.background.paper,(p=(h=e==null?void 0:e.source)==null?void 0:h.trace)==null?void 0:p.content]),i=kFe(e,n),o=P.useMemo(()=>ie.map(r==null?void 0:r.stepsPersistent,g=>ie.map(g,v=>ie.merge(v,{meta:{sourceLayer:e==null?void 0:e.key}}))),[r==null?void 0:r.stepsPersistent,e==null?void 0:e.key]),s=P.useMemo(()=>ie.map(r==null?void 0:r.stepsTransient,g=>ie.map(g,v=>ie.merge(v,{meta:{sourceLayer:e==null?void 0:e.key}}))),[r==null?void 0:r.stepsTransient,e==null?void 0:e.key]),a=P.useMemo(()=>[s[n]??[]],[s,n]);return C.jsxs(C.Fragment,{children:[C.jsx(I$e,{step:n,nodes:o}),C.jsx(K1,{nodes:a}),i]})},steps:({layer:e,children:t})=>{var r,i;const{events:n}=EFe((i=(r=e==null?void 0:e.source)==null?void 0:r.trace)==null?void 0:i.content);return C.jsx(C.Fragment,{children:t==null?void 0:t(n)})},getSelectionInfo:({layer:e,event:t,children:n})=>{const{layer:r,setLayer:i}=kv(e),o=P.useMemo(()=>{var c,u,f,h;const s=((f=(u=(c=r==null?void 0:r.source)==null?void 0:c.trace)==null?void 0:u.content)==null?void 0:f.events)??[],a=ie.chain((h=t==null?void 0:t.info)==null?void 0:h.components).filter(p=>{var g;return((g=p.meta)==null?void 0:g.sourceLayer)===(r==null?void 0:r.key)}).map(p=>{var g;return(g=p.meta)==null?void 0:g.step}).filter(ie.negate(ie.isUndefined)).sort((p,g)=>g-p).value();if(a.length&&r){const p=ie.last(a),g=s[p];if(g)return{[r.key]:{primary:Aa(r),items:{properties:{index:-1,primary:C.jsx(K3,{event:g,vertical:!0})},[`${g}`]:{primary:`Go to Step ${p}`,secondary:`${ie.startCase(g.type)}`,action:()=>i(Ca(r,v=>{ie.set(v,"source.step",p)})),icon:C.jsx(h1e,{})}}}}}return{}},[r,t]);return C.jsx(C.Fragment,{children:n==null?void 0:n(o)})}};function kFe(e,t=0){var o,s;const{palette:n}=Ln(),{getPath:r}=P.useMemo(()=>{var a,c;return(c=(a=e==null?void 0:e.source)==null?void 0:a.trace)!=null&&c.content?TFe(e.source.trace.content):{getParent:ie.constant(void 0),getPath:ie.constant([])}},[(s=(o=e==null?void 0:e.source)==null?void 0:o.trace)==null?void 0:s.content]);return P.useMemo(()=>{var a,c,u,f;if((f=(u=(c=(a=e==null?void 0:e.source)==null?void 0:a.trace)==null?void 0:c.content)==null?void 0:u.render)!=null&&f.path){const{pivot:h={},scale:p=1}=e.source.trace.content.render.path,{x:g,y:v}=h,y=g?J3(g):b=>b.x,S=v?J3(v):b=>b.y,w=ie.map(r(t),b=>{var x,E,I,A;return(A=(I=(E=(x=e==null?void 0:e.source)==null?void 0:x.trace)==null?void 0:E.content)==null?void 0:I.events)==null?void 0:A[b]});if(w.length){const b=[{$:"rect",x:y({x:0,y:0,...ie.head(w)})-2*p/2,y:S({x:0,y:0,...ie.head(w)})-2*p/2,fill:H1("destination"),width:2*p,height:2*p},{$:"rect",x:y({x:0,y:0,...ie.last(w)})-2*p/2,y:S({x:0,y:0,...ie.last(w)})-2*p/2,fill:H1("source"),width:2*p,height:2*p},{$:"path",points:w.map(x=>({x:y({x:0,y:0,...x}),y:S({x:0,y:0,...x})})),fill:n.primary.main,alpha:1,lineWidth:1*p}];return C.jsx(K1,{nodes:[ie.map(b,x=>({component:x,meta:{source:"path"}}))]})}}return C.jsx(C.Fragment,{})},[e,t,n,r])}async function AFe(e,t,n){for(const r of e){const i=await r.call("features/algorithms"),o=await r.call("features/formats");if(ie.find(i,{id:t})&&ie.find(o,{id:n}))return r}}const IFe={key:"query",editor:Kg(({value:e,produce:t})=>{var c,u;const{algorithm:n}=(e==null?void 0:e.source)??{},{layers:r,layer:i,key:o}=kv(void 0,f=>{var h;return((h=f.source)==null?void 0:h.type)==="map"}),[{algorithms:s}]=NC(),[a]=ev();return C.jsxs(C.Fragment,{children:[C.jsx(Q1,{label:"Algorithm",content:C.jsx(Ws,{showArrow:!0,icon:C.jsx(x1e,{}),label:"Choose Algorithm",value:n,items:s.map(f=>{var h;return{...f,description:(h=ie.find(a,{url:f.source}))==null?void 0:h.name}}),onChange:async f=>t(h=>ie.set(h,"source.algorithm",f))})}),!(s!=null&&s.length)&&C.jsx(Xt,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),C.jsx(Q1,{label:"Map",content:C.jsx(Ws,{showArrow:!0,icon:C.jsx(Cw,{}),label:"Choose Layer",value:o,items:r.map(f=>({id:f.key,name:Aa(f)})),onChange:async f=>t(h=>ie.set(h,"source.mapLayerKey",f))})}),i&&C.jsxs(Xt,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",Aa(i)]}),C.jsx(ane,{label:"Preview"}),C.jsx(mt,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(lne,{trace:(u=(c=e==null?void 0:e.source)==null?void 0:c.trace)==null?void 0:u.content})})]})}),service:Kg(({value:e,produce:t})=>{const n=mc(),{algorithm:r,mapLayerKey:i,start:o,end:s}=(e==null?void 0:e.source)??{},[{layers:a}]=tm(),[c]=ev(),[{algorithms:u}]=NC(),f=P.useMemo(()=>{if(i&&r)return ie.find(a,{key:i})},[i,r,a]);return nFe(async h=>{var p;if(f&&r){const{format:g,content:v}=((p=f==null?void 0:f.source)==null?void 0:p.map)??{};if(g&&v){const y=await AFe(c,r,g),S=ie.find(u,{id:r});if(y){n(`Executing ${Aa(e)} using ${y.name}...`);const w=await y.call("solve/pathfinding",{format:g,instances:[{start:o??0,end:s??0}],mapURI:`map:${encodeURIComponent(v)}`,algorithm:r});h.aborted?n("Canceled."):t(b=>ie.set(b,"source.trace",{name:`${S==null?void 0:S.name}`,content:w}))}}}},[f,c,r,o,s,t,n,e,u],[f,c,r,o,s]),C.jsx(C.Fragment,{children:px.service})}),inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Query"},renderer:px.renderer,steps:px.steps,getSelectionInfo:px.getSelectionInfo};function RFe({layer:e}){var t,n;return C.jsx(C.Fragment,{children:e&&P.createElement((n=Vw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""])==null?void 0:n.renderer,{layer:e})})}function Aa(e){var t,n;return e!=null&&e.name?e==null?void 0:e.name:(t=e==null?void 0:e.source)!=null&&t.type?Vw[(n=e.source)==null?void 0:n.type].inferName(e):"Untitled Layer"}function hne(e){var t;return Vw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""]}const Vw={map:aFe,trace:px,query:IFe};function PFe(e,t,n=600){const[r,i]=P.useState(e);P.useEffect(()=>void i(e),[i,e]);const o=P.useMemo(()=>ie.debounce(s=>t==null?void 0:t(s),n),[t,n]);return[r,s=>{i(s),o(s)}]}function OFe({value:e,onValueChange:t},n){var f,h,p;const[r,i]=PFe(e,t),o=g=>C.jsx(Xt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:g}),s=g=>C.jsx(Xt,{variant:"body1",children:g}),a=(g,v)=>C.jsxs(En,{alignItems:"center",children:[s(g),C.jsx(ai,{flex:1}),v]}),c=g=>g.map(v=>({id:v,name:ie.startCase(v)})),u=r.name||Aa(e);return C.jsx(C.Fragment,{children:C.jsxs(Gg,{alignItems:"center",direction:"row",gap:2,children:[C.jsxs(mt,{py:1,ml:-1,children:[C.jsx(Xt,{children:u}),C.jsx(Xt,{variant:"body2",color:"text.secondary",children:ie.startCase((f=r.source)==null?void 0:f.type)})]}),C.jsx(ai,{flex:1}),C.jsx(Gg,{alignItems:"center",direction:"row",children:C.jsx(Aj,{appBar:{children:C.jsx(kj,{children:"Edit Layer"})},trigger:g=>C.jsx($p,{size:"small",onClick:g,children:C.jsx(jk,{})}),children:C.jsxs(mt,{p:2,children:[C.jsx(mt,{pb:2,children:C.jsx(Ew,{fullWidth:!0,variant:"filled",label:"Layer Name",value:r.name??"",onChange:g=>i==null?void 0:i(Ca(r,v=>ie.set(v,"name",g.target.value)))})}),o("Layer Options"),a("Transparency",C.jsx(Ws,{label:"Transparency",items:c(["100%"]),showArrow:!0})),a("Display Mode",C.jsx(Ws,{label:"Display Mode",value:"normal",items:c(["normal","difference"]),showArrow:!0})),o("Source Options"),a("Type",C.jsx(Ws,{label:"Type",value:(h=r.source)==null?void 0:h.type,items:["map","trace","query"].map(g=>({id:g,name:ie.startCase(g)})),onChange:g=>i==null?void 0:i(Ca(r,v=>ie.set(v,"source.type",g))),showArrow:!0})),((p=r.source)==null?void 0:p.type)&&P.createElement(Vw[r.source.type].editor,{onChange:g=>i(g(r)),value:r})]})})})]})})}const MFe=P.forwardRef(OFe);function LFe(){const[{layers:e=[]},t]=tm();return C.jsx(mt,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(mt,{sx:{mb:2},children:C.jsx(aA,{sortable:!0,icon:null,value:e,useDelete:!0,useReorder:!0,editor:n=>C.jsx(MFe,{value:n}),create:()=>({source:{type:"trace",trace:{}}}),onChange:n=>t(()=>({layers:n})),addItemLabel:"Layer",placeholderText:C.jsx(mt,{pt:2,children:"Click the button below to add a layer."})})})})}function DFe(){const{controls:e,onChange:t,state:n}=bf();return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(mt,{p:2,pr:1,pt:6,children:C.jsx(LFe,{})})}),C.jsx(zn.Extras,{children:e})]})}function sg({label:e,icon:t,...n}){return C.jsx(vf,{title:ie.startCase(e),children:C.jsx("span",{children:C.jsx($p,{...n,children:t})})},e)}function pne(e){return C.jsx(S1e,{...e,sx:{fontSize:12,transform:"translateY(1.75px) translateX(-2px)",...e.sx}})}function NFe({children:e}){return C.jsx(Xt,{variant:"overline",sx:{my:-.75,display:"block"},children:e})}var qC={exports:{}};/** +`}}]),e}();ho(lU,"defaults",vne);function vFe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2?arguments[2]:void 0;n===void 0&&typeof t=="string"&&(n=t,t=!0);var r=Object.assign({},lU.defaults[qC.version],qC),i=new K1(r);return i.createNode(e,t,n)}var CA=function(e){sr(n,e);var t=ar(n);function n(r){return xn(this,n),t.call(this,Object.assign({},qC,r))}return n}(lU);function yFe(e,t){var n=[],r,i=ir(tU(e)),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,a=new CA(t);a.parse(s,r),n.push(a),r=a}}catch(c){i.e(c)}finally{i.f()}return n}function yne(e,t){var n=tU(e),r=new CA(t).parse(n[0]);if(n.length>1){var i="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Jt(n[1],i))}return r}function bFe(e,t){var n=yne(e,t);if(n.warnings.forEach(function(r){return sne(r)}),n.errors.length>0)throw n.errors[0];return n.toJSON()}function xFe(e,t){var n=new CA(t);return n.contents=e,String(n)}var wFe={createNode:vFe,defaultOptions:qC,Document:CA,parse:bFe,parseAllDocuments:yFe,parseCST:tU,parseDocument:yne,scalarOptions:aFe,stringify:xFe};const _Fe=Object.freeze(Object.defineProperty({__proto__:null,YAML:wFe},Symbol.toStringTag,{value:"Module"})),SFe=o4(_Fe);var EFe=SFe.YAML;const CFe=ds(EFe);function i7(e){switch(typeof e){case"number":case"string":return`${e}`;case"undefined":return"null";default:return C.jsx("code",{children:te.truncate(CFe.stringify(e).replace(` +`,", "),{length:30})})}}function o7({label:e,value:t,type:n}){return C.jsxs(En,{width:"auto",mr:3,mt:.5,children:[C.jsx(jt,{component:"div",variant:"body2",...n,sx:{opacity:.54,...n==null?void 0:n.sx},children:e}),C.jsx(ai,{}),C.jsx(jt,{component:"div",variant:"body2",...n,children:i7(t)??"none"})]},`${e}::${i7(t)}`)}function Q3({event:e,variant:t="body2",max:n=10,...r}){const i=te.filter(te.entries(e),([,o])=>o!==void 0);return C.jsxs(En,{...r,children:[te.map(te.slice(i,0,n),([o,s])=>C.jsx(o7,{label:o,value:s,type:{variant:t}})),i.length>n&&C.jsx(o7,{label:`${i.length-n} more`,type:{sx:{pt:1}},value:""})]})}var bne={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xt,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var i={};return r.m=n,r.c=i,r.d=function(o,s,a){r.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:a})},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=1)}([function(n,r,i){function o(a){var c=a===void 0?{}:a,u=c.ESCAPE,f=u===void 0?/^\\/:u,h=c.VARIABLE_START,p=h===void 0?/^\${\s*/:h,g=c.VARIABLE_END,v=g===void 0?/^\s*}/:g,y=c.PIPE_START,S=y===void 0?/^\s*\|\s*/:y,w=c.PIPE_PARAMETER_START,b=w===void 0?/^\s*:\s*/:w,x=c.QUOTED_STRING,E=x===void 0?r.DEFAULT_QUOTED_STRING_REGEX:x,I=c.QUOTED_STRING_TEST,A=I===void 0?null:I,k=c.QUOTED_STRING_GET_AND_ADVANCE,O=k===void 0?null:k,D=c.QUOTED_STRING_IN_PARAMETER_TEST,N=D===void 0?null:D,H=c.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,G=H===void 0?null:H,z=A||function(V){return E.test(V)},L=O||s(E),F=N||function(V){return E.test(V)},j=G||s(E);return function(V){function W(Pe){Pe===void 0&&(Pe=1),pe=pe.substr(Pe)}function K(Pe){Pe===void 0&&(Pe=/^/),W(pe.match(Pe)[0].length)}function X(){var Pe;return K(f),Pe=pe.length>0?pe[0]:"",W(),Pe}function Q(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;me={name:"",pipes:[]},Xe=!st}function ie(){ve.variables.push(me),Q({isNull:!0})}function ce(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;be={name:"",parameters:[]},ct=!st}function ue(){me.pipes.push(be),ce({isNull:!0})}function se(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;Ze="",Bt=!st}function J(){be.parameters.push(Ze),se({isNull:!0})}function ae(){return!!v.test(pe)&&(K(v),ye>=3&&J(),ye>=2&&ue(),ye>=1&&ie(),ye=0,!0)}function le(){return!!S.test(pe)&&(K(S),ye>=3&&J(),ye>=2&&ue(),ye>=1&&ce(),ye=2,!0)}function he(){return!!b.test(pe)&&(K(b),ye>=3&&J(),ye>=2&&se(),ye=3,!0)}for(var pe=V,ve={literals:[],variables:[]},ye=0,xe="",me={name:"",pipes:[]},be={name:"",parameters:[]},Ze="",Xe=!1,ct=!1,Bt=!1;pe&&pe.length>0;)switch(ye){case 0:if(f.test(pe)){xe+=X();continue}if(p.test(pe)){ye=1,Q(),ve.literals.push(xe),xe="",K(p);continue}xe+=pe[0],W();break;case 1:if(f.test(pe)){me.name+=X();continue}if(ae()||le())continue;if(z(pe)){me.name+=L(pe,W);continue}me.name+=pe[0],W();break;case 2:if(f.test(pe)){be.name+=X();continue}if(ae()||he()||le())continue;if(z(pe)){be.name+=L(pe,W);continue}be.name+=pe[0],W();break;case 3:if(f.test(pe)){Ze+=X();continue}if(ae()||he()||le())continue;if(F(pe)){Ze+=j(pe,W);continue}Ze+=pe[0],W()}return Bt&&be.parameters.push(Ze),ct&&me.pipes.push(be),Xe&&ve.variables.push(me),ve.literals.push(xe),ve}}function s(a){return function(c,u){var f=c.match(a);return u(f[0].length),f.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,r.parseStringTemplateGenerator=o,r.parseStringTemplate=o(),r.getQuotedStringAndAdvanceForRegex=s},function(n,r,i){n.exports=i(2)},function(n,r,i){function o(s){for(var a in s)r.hasOwnProperty(a)||(r[a]=s[a])}Object.defineProperty(r,"__esModule",{value:!0}),o(i(0)),o(i(3))},function(n,r,i){function o(f){return function(h){return f.hasOwnProperty(h)?f[h]:h.split(".").reduce(function(p,g){return p.hasOwnProperty(g)?p[g]:""},f)}}function s(f,h,p,g){g===void 0&&(g=o(h));var v=g(f.name);return f.pipes.reduce(function(y,S){return p.hasOwnProperty(S.name)?p[S.name](y,S.parameters):y},v??"")}function a(f,h,p,g){return g===void 0&&(g=o(h)),f.literals.length===0?"":f.literals.slice(1).reduce(function(v,y,S){return""+v+s(f.variables[S],h,p,g)+y},f.literals[0])}function c(f,h,p){return a(u.parseStringTemplate(f),h,p)}Object.defineProperty(r,"__esModule",{value:!0});var u=i(0);r.evaluateParsedString=a,r.evaluateStringTemplate=c}])})})(bne);var s7=bne.exports;function TFe(e={},t){const{$:n,...r}=e;return{...te.mapValues(r,t),$:n}}function J3(e){switch(e==null?void 0:e.constructor){case Array:{const t=te.map(e,J3);return n=>te.map(t,r=>r(n))}case Object:{const t=te.mapValues(e,J3);return n=>te.mapValues(t,r=>r(n))}case String:return Z3(e);default:return te.constant(e)}}function kFe(e={}){return TFe(e,t=>te.isFunction(t)?t:J3(t))}const a7=_f(e=>{const t=Function("$",`return ${e};`);return n=>t(new Proxy(kFe(n),{get(r,i){var o;return(o=r[i])==null?void 0:o.call(r,{})}}))},{primitive:!0}),AFe=/^\{\{\s*/,IFe=/^\s*\}\}/,IB=/\b\B/,Z3=_f(e=>{const n=s7.parseStringTemplateGenerator({VARIABLE_START:AFe,VARIABLE_END:IFe,PIPE_START:IB,PIPE_PARAMETER_START:IB,QUOTED_STRING:IB})(e);return te.join(n.literals,"")?r=>s7.evaluateParsedString(n,{},{},i=>a7(i)(r)):a7(n.variables[0].name)},{primitive:!0});function RFe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xne={exports:{}};(function(e,t){(function(n,r){typeof RFe=="function"?e.exports=r():n.pluralize=r()})(Xt,function(){var n=[],r=[],i={},o={},s={};function a(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function c(y,S){return y===S?S:y===y.toLowerCase()?S.toLowerCase():y===y.toUpperCase()?S.toUpperCase():y[0]===y[0].toUpperCase()?S.charAt(0).toUpperCase()+S.substr(1).toLowerCase():S.toLowerCase()}function u(y,S){return y.replace(/\$(\d{1,2})/g,function(w,b){return S[b]||""})}function f(y,S){return y.replace(S[0],function(w,b){var x=u(S[1],arguments);return c(w===""?y[b-1]:w,x)})}function h(y,S,w){if(!y.length||i.hasOwnProperty(y))return S;for(var b=w.length;b--;){var x=w[b];if(x[0].test(S))return f(S,x)}return S}function p(y,S,w){return function(b){var x=b.toLowerCase();return S.hasOwnProperty(x)?c(b,x):y.hasOwnProperty(x)?c(b,y[x]):h(x,b,w)}}function g(y,S,w,b){return function(x){var E=x.toLowerCase();return S.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:h(E,E,w)===E}}function v(y,S,w){var b=S===1?v.singular(y):v.plural(y);return(w?S+" ":"")+b}return v.plural=p(s,o,n),v.isPlural=g(s,o,n),v.singular=p(o,s,r),v.isSingular=g(o,s,r),v.addPluralRule=function(y,S){n.push([a(y),S])},v.addSingularRule=function(y,S){r.push([a(y),S])},v.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}v.addPluralRule(y,"$0"),v.addSingularRule(y,"$0")},v.addIrregularRule=function(y,S){S=S.toLowerCase(),y=y.toLowerCase(),s[y]=S,o[S]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return v.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return v.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return v.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(v.addUncountableRule),v})})(xne);var PFe=xne.exports;const OFe=ds(PFe),MFe=""+new URL("parseTrace.worker-c4cde251.js",import.meta.url).href;class LFe extends Worker{constructor(){super(MFe,{type:"module"})}}const DFe=Rv(LFe);function NFe(e){const t=gc(),n=om("specimen");return R.useCallback(()=>n(async()=>{var r;if(e!=null&&e.trace){t("Processing trace...");try{const i=await DFe(e);return t("Trace loaded",OFe("step",((r=i==null?void 0:i.stepsPersistent)==null?void 0:r.length)??0,!0)),i}catch(i){t("Error parsing",`${i}`)}}}),[e])}function cg({label:e,icon:t,...n}){return C.jsx(vf,{title:te.startCase(e),children:C.jsx("span",{children:C.jsx(Fp,{...n,children:t})})},e)}function BFe(){return R.useCallback(e=>({result:"",error:void 0,offset:0}),[])}function cU(e){const t=gc(),{layer:n,setLayer:r}=Vp(e),{playback:i,playbackTo:o,step:s=0}=(n==null?void 0:n.source)??{},a=te.min([o,s])??0,c=!!o,u=i==="playing",[f,h]=[0,(o??1)-1];return R.useMemo(()=>{function p(S){r(Ta(n,w=>te.set(w,"source",{...w==null?void 0:w.source,...S})))}const g={start:f,end:h,step:a,canPlay:c&&!u&&a0},v=S=>te.clamp(a+S,f,h);return{playing:i==="playing",...g,...{play:()=>{t("Playback started"),p({playback:"playing",step:v(1)})},pause:(S=0)=>{t("Playback paused"),p({playback:"paused",step:v(S)})},stepTo:(S=0)=>p({step:S}),stop:()=>p({step:f,playback:"paused"}),stepForward:()=>p({step:v(1)}),stepBackward:()=>p({step:v(-1)}),tick:(S=1)=>p({playback:"playing",step:v(S)})}}},[h,i,u,c,f,a,r])}function $Fe(e,t){let n=!1;return requestAnimationFrame(async()=>{const r=await e();n||t(r)}),()=>{n=!0}}function FFe({children:e,value:t}){const{step:n,tick:r,end:i,playing:o,pause:s}=cU(t==null?void 0:t.key);qQ();const a=gc(),[{playbackRate:c=1}]=Ju(),u=BFe(),f=R.useCallback((h,p)=>C.jsx(zz,{primary:h,secondary:`Step ${n+p}`}),[n]);return R.useEffect(()=>{if(o)return n{for(const h of te.range(c)){const p=u(n+h);if(p.result||p.error)return{...p,offset:h}}return{result:"",offset:0,error:void 0}},({result:h,offset:p,error:g})=>{g?(a(`${te.trimEnd(g,".")}.`,`${p}`),s()):h?(a(`Breakpoint hit: ${h}.`,`${p}`),s(p)):r(c)}):s()},[f,o,i,n,s,r,a,u,c]),C.jsx(C.Fragment,{children:e})}function zFe({layer:e}){const{playing:t,canPause:n,canPlay:r,canStepBackward:i,canStepForward:o,canStop:s,pause:a,play:c,stepBackward:u,stepForward:f,stop:h}=cU(e==null?void 0:e.key);return qQ(),C.jsxs(C.Fragment,{children:[C.jsx(cg,{label:"step-backward",icon:C.jsx(H1e,{}),onClick:u,disabled:!i}),C.jsx(cg,{...t?{label:"pause",icon:C.jsx(B1e,{}),onClick:()=>a(),disabled:!n}:{label:"play",icon:C.jsx(F1e,{}),onClick:()=>c(),disabled:!r,color:"primary"}}),C.jsx(cg,{label:"step-forward",icon:C.jsx(U1e,{}),onClick:f,disabled:!o}),C.jsx(cg,{label:"stop",icon:C.jsx(W1e,{}),onClick:h,disabled:!s})]})}const jFe=e=>e==null;function UFe(e){const t=[],n={},r={},i=te.chain(e==null?void 0:e.events).map((a,c)=>({step:c,id:a.id,pId:a.pId})).groupBy("id").value();te.forEach(e==null?void 0:e.events,({id:a,pId:c},u)=>{!jFe(c)&&n[a]!==c&&(t.push({id:a,pId:c,step:u,prev:te.last(t)}),n[a]=c),r[u]=te.last(t)});const o=(a,c=(u=>(u=e==null?void 0:e.events)==null?void 0:u.length)()??0)=>{let f=r[c];for(;f;){if(f.id===a)return f.pId;f=f.prev}};return{getParent:o,getPath:a=>{const c=[a];let u={...(e.events??[])[a],step:a};for(;u;){const f=o(u.id,u.step);if(f){const h=te.findLast(i[f],p=>p.step<=u.step);if(h)c.push(h.step),u=h;else break}else break}return c}}}const Xx={key:"trace",inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Trace"},editor:Jg(({value:e,produce:t})=>{var n,r,i,o;return C.jsxs(C.Fragment,{children:[C.jsx(G1,{label:"Trace",content:C.jsx(aOe,{onChange:s=>t(a=>te.set(a,"source.trace",{...s,key:qo()})),value:(n=e==null?void 0:e.source)==null?void 0:n.trace})}),C.jsx(G1,{label:"Onion Skinning",content:C.jsx(Gs,{disabled:!0,showArrow:!0,value:((r=e==null?void 0:e.source)==null?void 0:r.onion)??"off",items:["off","transparent","solid"].map(s=>({id:s,name:te.startCase(s)})),onChange:s=>t(a=>te.set(a,"source.onion",s))})}),C.jsx(Rte,{label:"Preview"}),C.jsx(ht,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Pte,{trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content})})]})}),service:Jg(({value:e,produce:t})=>{var i,o,s,a,c,u,f,h;const{palette:n}=Dn(),r=NFe({trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content,context:{color:Nj,themeAccent:n.primary.main,themeTextPrimary:n.text.primary,themeBackground:n.background.paper},view:"main"});return R.useEffect(()=>{t(p=>{var g,v,y,S;return te.set(p,"source.playbackTo",((S=(y=(v=(g=e==null?void 0:e.source)==null?void 0:g.trace)==null?void 0:v.content)==null?void 0:y.events)==null?void 0:S.length)??0)})},[(u=(c=(a=(s=e==null?void 0:e.source)==null?void 0:s.trace)==null?void 0:a.content)==null?void 0:c.events)==null?void 0:u.length]),Ite(async()=>{const p=await r();t(g=>te.set(g,"source.parsedTrace",p))},[r],[(h=(f=e==null?void 0:e.source)==null?void 0:f.trace)==null?void 0:h.key]),C.jsx(C.Fragment,{children:C.jsx(FFe,{value:e})})}),renderer:({layer:e})=>{var a,c;const t=(a=e==null?void 0:e.source)==null?void 0:a.parsedTrace,n=XQ(((c=e==null?void 0:e.source)==null?void 0:c.step)??0,1e3/60),r=HFe(e,n),i=R.useMemo(()=>te.map(t==null?void 0:t.stepsPersistent,u=>te.map(u,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsPersistent,e==null?void 0:e.key]),o=R.useMemo(()=>te.map(t==null?void 0:t.stepsTransient,u=>te.map(u,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsTransient,e==null?void 0:e.key]),s=R.useMemo(()=>[o[n]??[]],[o,n]);return C.jsxs(C.Fragment,{children:[C.jsx(RBe,{step:n,nodes:i}),C.jsx(W1,{nodes:s}),r]})},steps:({layer:e,children:t})=>{var n,r,i;return C.jsx(C.Fragment,{children:t==null?void 0:t(((i=(r=(n=e==null?void 0:e.source)==null?void 0:n.trace)==null?void 0:r.content)==null?void 0:i.events)??[])})},getSelectionInfo:({layer:e,event:t,children:n})=>{const{layer:r,setLayer:i}=Vp(e),o=R.useMemo(()=>{var c,u,f,h;const s=((f=(u=(c=r==null?void 0:r.source)==null?void 0:c.trace)==null?void 0:u.content)==null?void 0:f.events)??[],a=te.chain((h=t==null?void 0:t.info)==null?void 0:h.components).filter(p=>{var g;return((g=p.meta)==null?void 0:g.sourceLayer)===(r==null?void 0:r.key)}).map(p=>{var g;return(g=p.meta)==null?void 0:g.step}).filter(te.negate(te.isUndefined)).sort((p,g)=>p-g).value();if(a.length&&r){const p=te.last(a),g=s[p];if(g)return{[r.key]:{primary:ga(r),items:{properties:{index:-1,primary:C.jsx(Q3,{event:g,vertical:!0})},[`${g}`]:{primary:`Go to Step ${p}`,secondary:`${te.startCase(g.type)}`,action:()=>i(Ta(r,v=>{te.set(v,"source.step",p)})),icon:C.jsx(x1e,{})}}}}}return{}},[r,t]);return C.jsx(C.Fragment,{children:n==null?void 0:n(o)})}};function HFe(e,t=0){var o,s;const{palette:n}=Dn(),{getPath:r}=R.useMemo(()=>{var a,c;return(c=(a=e==null?void 0:e.source)==null?void 0:a.trace)!=null&&c.content?UFe(e.source.trace.content):{getParent:te.constant(void 0),getPath:te.constant([])}},[(s=(o=e==null?void 0:e.source)==null?void 0:o.trace)==null?void 0:s.content]);return R.useMemo(()=>{var a,c,u,f;if((f=(u=(c=(a=e==null?void 0:e.source)==null?void 0:a.trace)==null?void 0:c.content)==null?void 0:u.render)!=null&&f.path){const{pivot:h={},scale:p=1}=e.source.trace.content.render.path,{x:g,y:v}=h,y=g?Z3(g):b=>b.x,S=v?Z3(v):b=>b.y,w=te.map(r(t),b=>{var x,E,I,A;return(A=(I=(E=(x=e==null?void 0:e.source)==null?void 0:x.trace)==null?void 0:E.content)==null?void 0:I.events)==null?void 0:A[b]});if(w.length){const b=[{$:"rect",x:y({x:0,y:0,...te.head(w)})-2*p/2,y:S({x:0,y:0,...te.head(w)})-2*p/2,fill:B1("destination"),width:2*p,height:2*p},{$:"rect",x:y({x:0,y:0,...te.last(w)})-2*p/2,y:S({x:0,y:0,...te.last(w)})-2*p/2,fill:B1("source"),width:2*p,height:2*p},{$:"path",points:w.map(x=>({x:y({x:0,y:0,...x}),y:S({x:0,y:0,...x})})),fill:n.primary.main,alpha:1,lineWidth:1*p}];return C.jsx(W1,{nodes:[te.map(b,x=>({component:x,meta:{source:"path"}}))]})}}return C.jsx(C.Fragment,{})},[e,t,n,r])}const WFe=Xx.getSelectionInfo;async function GFe(e,t,n){for(const r of e){const i=await r.call("features/algorithms"),o=await r.call("features/formats");if(te.find(i,{id:t})&&te.find(o,{id:n}))return r}}const VFe={key:"query",editor:Jg(({value:e,produce:t})=>{var c,u;const{algorithm:n}=(e==null?void 0:e.source)??{},{layers:r,layer:i,key:o}=Vp(void 0,f=>{var h;return((h=f.source)==null?void 0:h.type)==="map"}),[{algorithms:s}]=$C(),[a]=nv();return C.jsxs(C.Fragment,{children:[C.jsx(G1,{label:"Algorithm",content:C.jsx(Gs,{showArrow:!0,icon:C.jsx(k1e,{}),label:"Choose Algorithm",value:n,items:s.map(f=>{var h;return{...f,description:(h=te.find(a,{url:f.source}))==null?void 0:h.name}}),onChange:async f=>t(h=>te.set(h,"source.algorithm",f))})}),!(s!=null&&s.length)&&C.jsx(jt,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),C.jsx(G1,{label:"Map",content:C.jsx(Gs,{showArrow:!0,icon:C.jsx(Cw,{}),label:"Choose Layer",value:o,items:r.map(f=>({id:f.key,name:ga(f)})),onChange:async f=>t(h=>te.set(h,"source.mapLayerKey",f))})}),i&&C.jsxs(jt,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",ga(i)]}),C.jsx(Rte,{label:"Preview"}),C.jsx(ht,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Pte,{trace:(u=(c=e==null?void 0:e.source)==null?void 0:c.trace)==null?void 0:u.content})})]})}),service:Jg(({value:e,produce:t})=>{const n=gc(),{algorithm:r,mapLayerKey:i,start:o,end:s}=(e==null?void 0:e.source)??{},[{layers:a}]=im(),[c]=nv(),[{algorithms:u}]=$C(),f=R.useMemo(()=>{if(i&&r)return te.find(a,{key:i})},[i,r,a]);return n$e(async h=>{var p;if(f&&r){const{format:g,content:v}=((p=f==null?void 0:f.source)==null?void 0:p.map)??{};if(g&&v){const y=await GFe(c,r,g),S=te.find(u,{id:r});if(y){n(`Executing ${ga(e)} using ${y.name}...`);const w=await y.call("solve/pathfinding",{format:g,instances:[{start:o??0,end:s??0}],mapURI:`map:${encodeURIComponent(v)}`,algorithm:r});h.aborted?n("Canceled."):t(b=>te.set(b,"source.trace",{name:`${S==null?void 0:S.name}`,content:w,key:qo()}))}}}},[f,c,r,o,s,t,n,e,u],[f,c,r,o,s]),C.jsx(C.Fragment,{children:Xx.service})}),inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Query"},renderer:Xx.renderer,steps:Xx.steps,getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=Vp(n),s=R.useMemo(()=>{const c=te.filter(o,{source:{type:"map"}});return te.filter(te.map(c,u=>{var h,p,g,v;const{parsedMap:f}=(u==null?void 0:u.source)??{};if(f&&t){const y=(v=(g=Qj((p=(h=u==null?void 0:u.source)==null?void 0:h.map)==null?void 0:p.format))==null?void 0:g.hydrate)==null?void 0:v.call(g,f);if(y){const S=(t==null?void 0:t.world)&&y.snap(t.world);if(S){const w=(t==null?void 0:t.world)&&y.nodeAt(S);return{point:S,node:w,key:u.key,name:ga(u)}}}}}))},[o]),a=R.useMemo(()=>!!r&&!!s.length&&{[r.key]:{primary:ga(r),items:{...te.reduce(s,(c,u)=>({...c,[`${n}-${u==null?void 0:u.key}-source`]:{primary:"Set as source",secondary:u==null?void 0:u.name,action:()=>i(Ta(r,f=>{te.set(f,"source.start",u==null?void 0:u.node),te.set(f,"source.query",void 0),te.set(f,"source.mapLayerKey",u==null?void 0:u.key),te.set(f,"source.trace",void 0)})),icon:C.jsx(G1e,{sx:{transform:"scale(0.5)"}})},[`${n}-${u==null?void 0:u.key}-destination`]:{primary:"Set as destination",secondary:u==null?void 0:u.name,action:()=>i(Ta(r,f=>{te.set(f,"source.end",u==null?void 0:u.node),te.set(f,"source.query",void 0),te.set(f,"source.mapLayerKey",u==null?void 0:u.key),te.set(f,"source.trace",void 0)})),icon:C.jsx($1e,{})}}),{})}}},[s,r,o,i]);return C.jsx(WFe,{event:t,layer:n,children:c=>e==null?void 0:e(te.merge(c,a))})}};function qFe({layer:e}){var t,n;return C.jsx(C.Fragment,{children:e&&R.createElement((n=qw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""])==null?void 0:n.renderer,{layer:e})})}function ga(e){var t,n;return e!=null&&e.name?e==null?void 0:e.name:(t=e==null?void 0:e.source)!=null&&t.type?qw[(n=e.source)==null?void 0:n.type].inferName(e):"Untitled Layer"}function wne(e){var t;return qw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""]}const qw={map:a$e,trace:Xx,query:VFe};function XFe(e,t,n=600){const[r,i]=R.useState(e);R.useEffect(()=>void i(e),[i,e]);const o=R.useMemo(()=>te.debounce(s=>t==null?void 0:t(s),n),[t,n]);return[r,s=>{i(s),o(s)}]}function YFe({value:e,onValueChange:t},n){var f,h,p;const[r,i]=XFe(e,t),o=g=>C.jsx(jt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:g}),s=g=>C.jsx(jt,{variant:"body1",children:g}),a=(g,v)=>C.jsxs(En,{alignItems:"center",children:[s(g),C.jsx(ai,{flex:1}),v]}),c=g=>g.map(v=>({id:v,name:te.startCase(v)})),u=r.name||ga(e);return C.jsx(C.Fragment,{children:C.jsxs(Up,{alignItems:"center",direction:"row",gap:2,children:[C.jsxs(ht,{py:1,ml:-1,children:[C.jsx(jt,{children:u}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:te.startCase((f=r.source)==null?void 0:f.type)})]}),C.jsx(ai,{flex:1}),C.jsx(Up,{alignItems:"center",direction:"row",children:C.jsx(Ij,{appBar:{children:C.jsx(Aj,{children:"Edit Layer"})},trigger:g=>C.jsx(Fp,{size:"small",onClick:g,children:C.jsx(jk,{})}),children:C.jsxs(ht,{p:2,children:[C.jsx(ht,{pb:2,children:C.jsx(Ew,{fullWidth:!0,variant:"filled",label:"Layer Name",value:r.name??"",onChange:g=>i==null?void 0:i(Ta(r,v=>te.set(v,"name",g.target.value)))})}),o("Layer Options"),a("Transparency",C.jsx(Gs,{label:"Transparency",items:["25","50","75","100"].map(g=>({id:g,name:`${g}%`})),value:"100",showArrow:!0})),a("Display Mode",C.jsx(Gs,{label:"Display Mode",value:"normal",items:c(["normal","difference"]),showArrow:!0})),o("Source Options"),a("Type",C.jsx(Gs,{label:"Type",value:(h=r.source)==null?void 0:h.type,items:["map","trace","query"].map(g=>({id:g,name:te.startCase(g)})),onChange:g=>i==null?void 0:i(Ta(r,v=>{te.set(v,"source",{type:g})})),showArrow:!0})),((p=r.source)==null?void 0:p.type)&&R.createElement(qw[r.source.type].editor,{onChange:g=>i(g(r)),value:r})]})})})]})})}const KFe=R.forwardRef(YFe);function QFe(){const[{layers:e=[]},t]=im();return C.jsx(ht,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(ht,{sx:{mb:2},children:C.jsx(lA,{sortable:!0,icon:null,value:e,useDelete:!0,useReorder:!0,editor:n=>C.jsx(KFe,{value:n}),create:()=>({source:{type:"trace",trace:{}}}),onChange:n=>t(()=>({layers:n})),addItemLabel:"Layer",placeholderText:C.jsx(ht,{pt:2,children:"Click the button below to add a layer."})})})})}function JFe(){const{controls:e,onChange:t,state:n}=bf();return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(ht,{p:2,pr:1,pt:6,children:C.jsx(QFe,{})})}),C.jsx(zn.Extras,{children:e})]})}function _ne(e){return C.jsx(R1e,{...e,sx:{fontSize:12,transform:"translateY(1.75px) translateX(-2px)",...e.sx}})}function ZFe({children:e}){return C.jsx(jt,{variant:"overline",sx:{my:-.75,display:"block"},children:e})}var XC={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */qC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,w=2,b=4,x=8,E=16,I=32,A=64,k=128,O=256,D=512,N=30,H="...",G=800,z=16,L=1,F=2,j=3,V=1/0,W=9007199254740991,K=17976931348623157e292,X=0/0,Q=4294967295,re=Q-1,ce=Q>>>1,ue=[["ary",k],["bind",S],["bindKey",w],["curry",x],["curryRight",E],["flip",D],["partial",I],["partialRight",A],["rearg",O]],se="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Ze="[object Null]",Xe="[object Object]",ct="[object Promise]",Bt="[object Proxy]",Pe="[object RegExp]",ze="[object Set]",st="[object String]",gt="[object Symbol]",vt="[object Undefined]",_e="[object WeakMap]",je="[object WeakSet]",Ke="[object ArrayBuffer]",Fe="[object DataView]",Be="[object Float32Array]",Pt="[object Float64Array]",dt="[object Int8Array]",Ie="[object Int16Array]",at="[object Int32Array]",$t="[object Uint8Array]",Re="[object Uint8ClampedArray]",He="[object Uint16Array]",xt="[object Uint32Array]",Wt=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,Kr=RegExp(Hr.source),ci=RegExp(Wr.source),hs=/<%-([\s\S]+?)%>/g,td=/<%([\s\S]+?)%>/g,oa=/<%=([\s\S]+?)%>/g,xc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wc=/^\w*$/,Tf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ps=/[\\^$.*+?()[\]{}|]/g,kf=RegExp(ps.source),xo=/^\s+/,_c=/\s/,Li=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ms=/\{\n\/\* \[wrapped with (.+)\] \*/,Af=/,? & /,gs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Na=/[()=,{}\[\]\/\s]/,nd=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lr=/\w*$/,Ll=/^[-+]0x[0-9a-f]+$/i,Dl=/^0b[01]+$/i,wo=/^\[object .+?Constructor\]$/,Uv=/^0o[0-7]+$/i,Hv=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=/($^)/,QA=/['\n\r\u2028\u2029\\]/g,Sc="\\ud800-\\udfff",JA="\\u0300-\\u036f",ZA="\\ufe20-\\ufe2f",eI="\\u20d0-\\u20ff",Wv=JA+ZA+eI,Gv="\\u2700-\\u27bf",Vv="a-z\\xdf-\\xf6\\xf8-\\xff",tI="\\xac\\xb1\\xd7\\xf7",nI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rI="\\u2000-\\u206f",iI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qv="A-Z\\xc0-\\xd6\\xd8-\\xde",Xv="\\ufe0e\\ufe0f",Yv=tI+nI+rI+iI,If="['’]",oI="["+Sc+"]",Kv="["+Yv+"]",Ec="["+Wv+"]",Qv="\\d+",sI="["+Gv+"]",Jv="["+Vv+"]",Zv="[^"+Sc+Yv+Qv+Gv+Vv+qv+"]",Rf="\\ud83c[\\udffb-\\udfff]",aI="(?:"+Ec+"|"+Rf+")",ey="[^"+Sc+"]",Pf="(?:\\ud83c[\\udde6-\\uddff]){2}",Of="[\\ud800-\\udbff][\\udc00-\\udfff]",vs="["+qv+"]",ty="\\u200d",ny="(?:"+Jv+"|"+Zv+")",lI="(?:"+vs+"|"+Zv+")",ry="(?:"+If+"(?:d|ll|m|re|s|t|ve))?",iy="(?:"+If+"(?:D|LL|M|RE|S|T|VE))?",oy=aI+"?",sy="["+Xv+"]?",cI="(?:"+ty+"(?:"+[ey,Pf,Of].join("|")+")"+sy+oy+")*",uI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ay=sy+oy+cI,fI="(?:"+[sI,Pf,Of].join("|")+")"+ay,hI="(?:"+[ey+Ec+"?",Ec,Pf,Of,oI].join("|")+")",pI=RegExp(If,"g"),mI=RegExp(Ec,"g"),Mf=RegExp(Rf+"(?="+Rf+")|"+hI+ay,"g"),gI=RegExp([vs+"?"+Jv+"+"+ry+"(?="+[Kv,vs,"$"].join("|")+")",lI+"+"+iy+"(?="+[Kv,vs+ny,"$"].join("|")+")",vs+"?"+ny+"+"+ry,vs+"+"+iy,dI,uI,Qv,fI].join("|"),"g"),vI=RegExp("["+ty+Sc+Wv+Xv+"]"),yI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xI=-1,Mt={};Mt[Be]=Mt[Pt]=Mt[dt]=Mt[Ie]=Mt[at]=Mt[$t]=Mt[Re]=Mt[He]=Mt[xt]=!0,Mt[se]=Mt[J]=Mt[Ke]=Mt[le]=Mt[Fe]=Mt[he]=Mt[ve]=Mt[ye]=Mt[me]=Mt[be]=Mt[Xe]=Mt[Pe]=Mt[ze]=Mt[st]=Mt[_e]=!1;var Tt={};Tt[se]=Tt[J]=Tt[Ke]=Tt[Fe]=Tt[le]=Tt[he]=Tt[Be]=Tt[Pt]=Tt[dt]=Tt[Ie]=Tt[at]=Tt[me]=Tt[be]=Tt[Xe]=Tt[Pe]=Tt[ze]=Tt[st]=Tt[gt]=Tt[$t]=Tt[Re]=Tt[He]=Tt[xt]=!0,Tt[ve]=Tt[ye]=Tt[_e]=!1;var wI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_I={"&":"&","<":"<",">":">",'"':""","'":"'"},SI={"&":"&","<":"<",">":">",""":'"',"'":"'"},EI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},CI=parseFloat,TI=parseInt,ly=typeof qt=="object"&&qt&&qt.Object===Object&&qt,kI=typeof self=="object"&&self&&self.Object===Object&&self,pn=ly||kI||Function("return this")(),Lf=t&&!t.nodeType&&t,_o=Lf&&!0&&e&&!e.nodeType&&e,cy=_o&&_o.exports===Lf,Df=cy&&ly.process,ur=function(){try{var q=_o&&_o.require&&_o.require("util").types;return q||Df&&Df.binding&&Df.binding("util")}catch{}}(),uy=ur&&ur.isArrayBuffer,dy=ur&&ur.isDate,fy=ur&&ur.isMap,hy=ur&&ur.isRegExp,py=ur&&ur.isSet,my=ur&&ur.isTypedArray;function Qn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function AI(q,ee,Z,ge){for(var De=-1,ft=q==null?0:q.length;++De-1}function Nf(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function Sy(q,ee){for(var Z=q.length;Z--&&ys(ee,q[Z],0)>-1;);return Z}function BI(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var $I=zf(wI),FI=zf(_I);function zI(q){return"\\"+EI[q]}function jI(q,ee){return q==null?n:q[ee]}function bs(q){return vI.test(q)}function UI(q){return yI.test(q)}function HI(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function Wf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Ey(q,ee){return function(Z){return q(ee(Z))}}function Bi(q,ee){for(var Z=-1,ge=q.length,De=0,ft=[];++Z-1}function RR(l,d){var m=this.__data__,_=Uc(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}ui.prototype.clear=TR,ui.prototype.delete=kR,ui.prototype.get=AR,ui.prototype.has=IR,ui.prototype.set=RR;function di(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function pr(l,d,m,_,T,M){var B,U=d&h,Y=d&p,te=d&g;if(m&&(B=T?m(l,_,T,M):m(l)),B!==n)return B;if(!Ft(l))return l;var ne=$e(l);if(ne){if(B=LP(l),!U)return Nn(l,B)}else{var oe=_n(l),fe=oe==ye||oe==xe;if(Hi(l))return s0(l,U);if(oe==Xe||oe==se||fe&&!T){if(B=Y||fe?{}:C0(l),!U)return Y?SP(l,VR(B,l)):_P(l,Ny(B,l))}else{if(!Tt[oe])return T?l:{};B=DP(l,oe,U)}}M||(M=new Rr);var we=M.get(l);if(we)return we;M.set(l,B),eb(l)?l.forEach(function(Ae){B.add(pr(Ae,d,m,Ae,l,M))}):J0(l)&&l.forEach(function(Ae,Je){B.set(Je,pr(Ae,d,m,Je,l,M))});var ke=te?Y?gh:mh:Y?$n:sn,qe=ne?n:ke(l);return dr(qe||l,function(Ae,Je){qe&&(Je=Ae,Ae=l[Je]),Ha(B,Je,pr(Ae,d,m,Je,l,M))}),B}function qR(l){var d=sn(l);return function(m){return By(m,l,d)}}function By(l,d,m){var _=m.length;if(l==null)return!_;for(l=St(l);_--;){var T=m[_],M=d[T],B=l[T];if(B===n&&!(T in l)||!M(B))return!1}return!0}function $y(l,d,m){if(typeof l!="function")throw new fr(s);return Ka(function(){l.apply(n,m)},d)}function Wa(l,d,m,_){var T=-1,M=Cc,B=!0,U=l.length,Y=[],te=d.length;if(!U)return Y;m&&(d=Nt(d,Jn(m))),_?(M=Nf,B=!1):d.length>=i&&(M=Ba,B=!1,d=new Co(d));e:for(;++TT?0:T+m),_=_===n||_>T?T:Ge(_),_<0&&(_+=T),_=m>_?0:nb(_);m<_;)l[m++]=d;return l}function zy(l,d){var m=[];return Fi(l,function(_,T,M){d(_,T,M)&&m.push(_)}),m}function mn(l,d,m,_,T){var M=-1,B=l.length;for(m||(m=BP),T||(T=[]);++M0&&m(U)?d>1?mn(U,d-1,m,_,T):Ni(T,U):_||(T[T.length]=U)}return T}var Qf=f0(),jy=f0(!0);function Qr(l,d){return l&&Qf(l,d,sn)}function Jf(l,d){return l&&jy(l,d,sn)}function Wc(l,d){return Di(d,function(m){return gi(l[m])})}function ko(l,d){d=ji(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Zr(d[m++])];return m&&m==_?l:n}function Uy(l,d,m){var _=d(l);return $e(l)?_:Ni(_,m(l))}function In(l){return l==null?l===n?vt:Ze:So&&So in St(l)?PP(l):WP(l)}function Zf(l,d){return l>d}function KR(l,d){return l!=null&&bt.call(l,d)}function QR(l,d){return l!=null&&d in St(l)}function JR(l,d,m){return l>=wn(d,m)&&l=120&&ne.length>=120)?new Co(B&&ne):n}ne=l[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==l&&Dc.call(U,Y,1),Dc.call(l,Y,1);return l}function Jy(l,d){for(var m=l?d.length:0,_=m-1;m--;){var T=d[m];if(m==_||T!==M){var M=T;mi(T)?Dc.call(l,T,1):lh(l,T)}}return l}function oh(l,d){return l+$c(Oy()*(d-l+1))}function dP(l,d,m,_){for(var T=-1,M=nn(Bc((d-l)/(m||1)),0),B=Z(M);M--;)B[_?M:++T]=l,l+=m;return B}function sh(l,d){var m="";if(!l||d<1||d>W)return m;do d%2&&(m+=l),d=$c(d/2),d&&(l+=l);while(d);return m}function Ye(l,d){return Sh(A0(l,d,Fn),l+"")}function fP(l){return Dy(Rs(l))}function hP(l,d){var m=Rs(l);return tu(m,To(d,0,m.length))}function qa(l,d,m,_){if(!Ft(l))return l;d=ji(d,l);for(var T=-1,M=d.length,B=M-1,U=l;U!=null&&++TT?0:T+d),m=m>T?T:m,m<0&&(m+=T),T=d>m?0:m-d>>>0,d>>>=0;for(var M=Z(T);++_>>1,B=l[M];B!==null&&!er(B)&&(m?B<=d:B=i){var te=d?null:kP(l);if(te)return kc(te);B=!1,T=Ba,Y=new Co}else Y=d?[]:U;e:for(;++_=_?l:mr(l,d,m)}var o0=iR||function(l){return pn.clearTimeout(l)};function s0(l,d){if(d)return l.slice();var m=l.length,_=ky?ky(m):new l.constructor(m);return l.copy(_),_}function fh(l){var d=new l.constructor(l.byteLength);return new Mc(d).set(new Mc(l)),d}function yP(l,d){var m=d?fh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function bP(l){var d=new l.constructor(l.source,lr.exec(l));return d.lastIndex=l.lastIndex,d}function xP(l){return Ua?St(Ua.call(l)):{}}function a0(l,d){var m=d?fh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function l0(l,d){if(l!==d){var m=l!==n,_=l===null,T=l===l,M=er(l),B=d!==n,U=d===null,Y=d===d,te=er(d);if(!U&&!te&&!M&&l>d||M&&B&&Y&&!U&&!te||_&&B&&Y||!m&&Y||!T)return 1;if(!_&&!M&&!te&&l=U)return Y;var te=m[_];return Y*(te=="desc"?-1:1)}}return l.index-d.index}function c0(l,d,m,_){for(var T=-1,M=l.length,B=m.length,U=-1,Y=d.length,te=nn(M-B,0),ne=Z(Y+te),oe=!_;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=l.length>3&&typeof M=="function"?(T--,M):n,B&&Rn(m[0],m[1],B)&&(M=T<3?n:M,T=1),d=St(d);++_-1?T[M?d[B]:B]:n}}function m0(l){return pi(function(d){var m=d.length,_=m,T=hr.prototype.thru;for(l&&d.reverse();_--;){var M=d[_];if(typeof M!="function")throw new fr(s);if(T&&!B&&Zc(M)=="wrapper")var B=new hr([],!0)}for(_=B?_:m;++_1&&it.reverse(),ne&&YU))return!1;var te=M.get(l),ne=M.get(d);if(te&&ne)return te==d&&ne==l;var oe=-1,fe=!0,we=m&y?new Co:n;for(M.set(l,d),M.set(d,l);++oe1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Li,`{ + */XC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,w=2,b=4,x=8,E=16,I=32,A=64,k=128,O=256,D=512,N=30,H="...",G=800,z=16,L=1,F=2,j=3,V=1/0,W=9007199254740991,K=17976931348623157e292,X=0/0,Q=4294967295,ie=Q-1,ce=Q>>>1,ue=[["ary",k],["bind",S],["bindKey",w],["curry",x],["curryRight",E],["flip",D],["partial",I],["partialRight",A],["rearg",O]],se="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Ze="[object Null]",Xe="[object Object]",ct="[object Promise]",Bt="[object Proxy]",Pe="[object RegExp]",ze="[object Set]",st="[object String]",gt="[object Symbol]",vt="[object Undefined]",_e="[object WeakMap]",je="[object WeakSet]",Ke="[object ArrayBuffer]",Fe="[object DataView]",Be="[object Float32Array]",Pt="[object Float64Array]",dt="[object Int8Array]",Ie="[object Int16Array]",at="[object Int32Array]",$t="[object Uint8Array]",Re="[object Uint8ClampedArray]",He="[object Uint16Array]",xt="[object Uint32Array]",Gt=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,Kr=RegExp(Hr.source),ci=RegExp(Wr.source),ps=/<%-([\s\S]+?)%>/g,ed=/<%([\s\S]+?)%>/g,sa=/<%=([\s\S]+?)%>/g,wc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_c=/^\w*$/,kf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/[\\^$.*+?()[\]{}|]/g,Af=RegExp(ms.source),xo=/^\s+/,Sc=/\s/,Di=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gs=/\{\n\/\* \[wrapped with (.+)\] \*/,If=/,? & /,vs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Na=/[()=,{}\[\]\/\s]/,td=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lr=/\w*$/,Ll=/^[-+]0x[0-9a-f]+$/i,Dl=/^0b[01]+$/i,wo=/^\[object .+?Constructor\]$/,jv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=/($^)/,JA=/['\n\r\u2028\u2029\\]/g,Ec="\\ud800-\\udfff",ZA="\\u0300-\\u036f",eI="\\ufe20-\\ufe2f",tI="\\u20d0-\\u20ff",Hv=ZA+eI+tI,Wv="\\u2700-\\u27bf",Gv="a-z\\xdf-\\xf6\\xf8-\\xff",nI="\\xac\\xb1\\xd7\\xf7",rI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",iI="\\u2000-\\u206f",oI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vv="A-Z\\xc0-\\xd6\\xd8-\\xde",qv="\\ufe0e\\ufe0f",Xv=nI+rI+iI+oI,Rf="['’]",sI="["+Ec+"]",Yv="["+Xv+"]",Cc="["+Hv+"]",Kv="\\d+",aI="["+Wv+"]",Qv="["+Gv+"]",Jv="[^"+Ec+Xv+Kv+Wv+Gv+Vv+"]",Pf="\\ud83c[\\udffb-\\udfff]",lI="(?:"+Cc+"|"+Pf+")",Zv="[^"+Ec+"]",Of="(?:\\ud83c[\\udde6-\\uddff]){2}",Mf="[\\ud800-\\udbff][\\udc00-\\udfff]",ys="["+Vv+"]",ey="\\u200d",ty="(?:"+Qv+"|"+Jv+")",cI="(?:"+ys+"|"+Jv+")",ny="(?:"+Rf+"(?:d|ll|m|re|s|t|ve))?",ry="(?:"+Rf+"(?:D|LL|M|RE|S|T|VE))?",iy=lI+"?",oy="["+qv+"]?",uI="(?:"+ey+"(?:"+[Zv,Of,Mf].join("|")+")"+oy+iy+")*",dI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sy=oy+iy+uI,hI="(?:"+[aI,Of,Mf].join("|")+")"+sy,pI="(?:"+[Zv+Cc+"?",Cc,Of,Mf,sI].join("|")+")",mI=RegExp(Rf,"g"),gI=RegExp(Cc,"g"),Lf=RegExp(Pf+"(?="+Pf+")|"+pI+sy,"g"),vI=RegExp([ys+"?"+Qv+"+"+ny+"(?="+[Yv,ys,"$"].join("|")+")",cI+"+"+ry+"(?="+[Yv,ys+ty,"$"].join("|")+")",ys+"?"+ty+"+"+ny,ys+"+"+ry,fI,dI,Kv,hI].join("|"),"g"),yI=RegExp("["+ey+Ec+Hv+qv+"]"),bI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wI=-1,Mt={};Mt[Be]=Mt[Pt]=Mt[dt]=Mt[Ie]=Mt[at]=Mt[$t]=Mt[Re]=Mt[He]=Mt[xt]=!0,Mt[se]=Mt[J]=Mt[Ke]=Mt[le]=Mt[Fe]=Mt[he]=Mt[ve]=Mt[ye]=Mt[me]=Mt[be]=Mt[Xe]=Mt[Pe]=Mt[ze]=Mt[st]=Mt[_e]=!1;var Tt={};Tt[se]=Tt[J]=Tt[Ke]=Tt[Fe]=Tt[le]=Tt[he]=Tt[Be]=Tt[Pt]=Tt[dt]=Tt[Ie]=Tt[at]=Tt[me]=Tt[be]=Tt[Xe]=Tt[Pe]=Tt[ze]=Tt[st]=Tt[gt]=Tt[$t]=Tt[Re]=Tt[He]=Tt[xt]=!0,Tt[ve]=Tt[ye]=Tt[_e]=!1;var _I={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},SI={"&":"&","<":"<",">":">",'"':""","'":"'"},EI={"&":"&","<":"<",">":">",""":'"',"'":"'"},CI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},TI=parseFloat,kI=parseInt,ay=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,AI=typeof self=="object"&&self&&self.Object===Object&&self,pn=ay||AI||Function("return this")(),Df=t&&!t.nodeType&&t,_o=Df&&!0&&e&&!e.nodeType&&e,ly=_o&&_o.exports===Df,Nf=ly&&ay.process,ur=function(){try{var q=_o&&_o.require&&_o.require("util").types;return q||Nf&&Nf.binding&&Nf.binding("util")}catch{}}(),cy=ur&&ur.isArrayBuffer,uy=ur&&ur.isDate,dy=ur&&ur.isMap,fy=ur&&ur.isRegExp,hy=ur&&ur.isSet,py=ur&&ur.isTypedArray;function Qn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function II(q,ee,Z,ge){for(var De=-1,ft=q==null?0:q.length;++De-1}function Bf(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function _y(q,ee){for(var Z=q.length;Z--&&bs(ee,q[Z],0)>-1;);return Z}function $I(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var FI=jf(_I),zI=jf(SI);function jI(q){return"\\"+CI[q]}function UI(q,ee){return q==null?n:q[ee]}function xs(q){return yI.test(q)}function HI(q){return bI.test(q)}function WI(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function Gf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Sy(q,ee){return function(Z){return q(ee(Z))}}function $i(q,ee){for(var Z=-1,ge=q.length,De=0,ft=[];++Z-1}function PR(l,d){var m=this.__data__,_=Hc(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}ui.prototype.clear=kR,ui.prototype.delete=AR,ui.prototype.get=IR,ui.prototype.has=RR,ui.prototype.set=PR;function di(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function pr(l,d,m,_,T,M){var B,U=d&h,Y=d&p,ne=d&g;if(m&&(B=T?m(l,_,T,M):m(l)),B!==n)return B;if(!Ft(l))return l;var re=$e(l);if(re){if(B=DP(l),!U)return Nn(l,B)}else{var oe=_n(l),fe=oe==ye||oe==xe;if(Wi(l))return o0(l,U);if(oe==Xe||oe==se||fe&&!T){if(B=Y||fe?{}:E0(l),!U)return Y?EP(l,qR(B,l)):SP(l,Dy(B,l))}else{if(!Tt[oe])return T?l:{};B=NP(l,oe,U)}}M||(M=new Rr);var we=M.get(l);if(we)return we;M.set(l,B),Z0(l)?l.forEach(function(Ae){B.add(pr(Ae,d,m,Ae,l,M))}):Q0(l)&&l.forEach(function(Ae,Je){B.set(Je,pr(Ae,d,m,Je,l,M))});var ke=ne?Y?vh:gh:Y?$n:sn,qe=re?n:ke(l);return dr(qe||l,function(Ae,Je){qe&&(Je=Ae,Ae=l[Je]),Ha(B,Je,pr(Ae,d,m,Je,l,M))}),B}function XR(l){var d=sn(l);return function(m){return Ny(m,l,d)}}function Ny(l,d,m){var _=m.length;if(l==null)return!_;for(l=St(l);_--;){var T=m[_],M=d[T],B=l[T];if(B===n&&!(T in l)||!M(B))return!1}return!0}function By(l,d,m){if(typeof l!="function")throw new fr(s);return Ka(function(){l.apply(n,m)},d)}function Wa(l,d,m,_){var T=-1,M=Tc,B=!0,U=l.length,Y=[],ne=d.length;if(!U)return Y;m&&(d=Nt(d,Jn(m))),_?(M=Bf,B=!1):d.length>=i&&(M=Ba,B=!1,d=new Co(d));e:for(;++TT?0:T+m),_=_===n||_>T?T:Ge(_),_<0&&(_+=T),_=m>_?0:tb(_);m<_;)l[m++]=d;return l}function Fy(l,d){var m=[];return zi(l,function(_,T,M){d(_,T,M)&&m.push(_)}),m}function mn(l,d,m,_,T){var M=-1,B=l.length;for(m||(m=$P),T||(T=[]);++M0&&m(U)?d>1?mn(U,d-1,m,_,T):Bi(T,U):_||(T[T.length]=U)}return T}var Jf=d0(),zy=d0(!0);function Qr(l,d){return l&&Jf(l,d,sn)}function Zf(l,d){return l&&zy(l,d,sn)}function Gc(l,d){return Ni(d,function(m){return gi(l[m])})}function ko(l,d){d=Ui(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Zr(d[m++])];return m&&m==_?l:n}function jy(l,d,m){var _=d(l);return $e(l)?_:Bi(_,m(l))}function In(l){return l==null?l===n?vt:Ze:So&&So in St(l)?OP(l):GP(l)}function eh(l,d){return l>d}function QR(l,d){return l!=null&&bt.call(l,d)}function JR(l,d){return l!=null&&d in St(l)}function ZR(l,d,m){return l>=wn(d,m)&&l=120&&re.length>=120)?new Co(B&&re):n}re=l[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==l&&Nc.call(U,Y,1),Nc.call(l,Y,1);return l}function Qy(l,d){for(var m=l?d.length:0,_=m-1;m--;){var T=d[m];if(m==_||T!==M){var M=T;mi(T)?Nc.call(l,T,1):ch(l,T)}}return l}function sh(l,d){return l+Fc(Py()*(d-l+1))}function fP(l,d,m,_){for(var T=-1,M=nn($c((d-l)/(m||1)),0),B=Z(M);M--;)B[_?M:++T]=l,l+=m;return B}function ah(l,d){var m="";if(!l||d<1||d>W)return m;do d%2&&(m+=l),d=Fc(d/2),d&&(l+=l);while(d);return m}function Ye(l,d){return Eh(k0(l,d,Fn),l+"")}function hP(l){return Ly(Ps(l))}function pP(l,d){var m=Ps(l);return nu(m,To(d,0,m.length))}function qa(l,d,m,_){if(!Ft(l))return l;d=Ui(d,l);for(var T=-1,M=d.length,B=M-1,U=l;U!=null&&++TT?0:T+d),m=m>T?T:m,m<0&&(m+=T),T=d>m?0:m-d>>>0,d>>>=0;for(var M=Z(T);++_>>1,B=l[M];B!==null&&!er(B)&&(m?B<=d:B=i){var ne=d?null:AP(l);if(ne)return Ac(ne);B=!1,T=Ba,Y=new Co}else Y=d?[]:U;e:for(;++_=_?l:mr(l,d,m)}var i0=oR||function(l){return pn.clearTimeout(l)};function o0(l,d){if(d)return l.slice();var m=l.length,_=Ty?Ty(m):new l.constructor(m);return l.copy(_),_}function hh(l){var d=new l.constructor(l.byteLength);return new Lc(d).set(new Lc(l)),d}function bP(l,d){var m=d?hh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function xP(l){var d=new l.constructor(l.source,lr.exec(l));return d.lastIndex=l.lastIndex,d}function wP(l){return Ua?St(Ua.call(l)):{}}function s0(l,d){var m=d?hh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function a0(l,d){if(l!==d){var m=l!==n,_=l===null,T=l===l,M=er(l),B=d!==n,U=d===null,Y=d===d,ne=er(d);if(!U&&!ne&&!M&&l>d||M&&B&&Y&&!U&&!ne||_&&B&&Y||!m&&Y||!T)return 1;if(!_&&!M&&!ne&&l=U)return Y;var ne=m[_];return Y*(ne=="desc"?-1:1)}}return l.index-d.index}function l0(l,d,m,_){for(var T=-1,M=l.length,B=m.length,U=-1,Y=d.length,ne=nn(M-B,0),re=Z(Y+ne),oe=!_;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=l.length>3&&typeof M=="function"?(T--,M):n,B&&Rn(m[0],m[1],B)&&(M=T<3?n:M,T=1),d=St(d);++_-1?T[M?d[B]:B]:n}}function p0(l){return pi(function(d){var m=d.length,_=m,T=hr.prototype.thru;for(l&&d.reverse();_--;){var M=d[_];if(typeof M!="function")throw new fr(s);if(T&&!B&&eu(M)=="wrapper")var B=new hr([],!0)}for(_=B?_:m;++_1&&it.reverse(),re&&YU))return!1;var ne=M.get(l),re=M.get(d);if(ne&&re)return ne==d&&re==l;var oe=-1,fe=!0,we=m&y?new Co:n;for(M.set(l,d),M.set(d,l);++oe1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Di,`{ /* [wrapped with `+d+`] */ -`)}function BP(l){return $e(l)||Ro(l)||!!(Ry&&l&&l[Ry])}function mi(l,d){var m=typeof l;return d=d??W,!!d&&(m=="number"||m!="symbol"&&Hv.test(l))&&l>-1&&l%1==0&&l0){if(++d>=G)return arguments[0]}else d=0;return l.apply(n,arguments)}}function tu(l,d){var m=-1,_=l.length,T=_-1;for(d=d===n?_:d;++m1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,z0(l,m)});function j0(l){var d=R(l);return d.__chain__=!0,d}function X2(l,d){return d(l),l}function nu(l,d){return d(l)}var Y2=pi(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,T=function(M){return Kf(M,l)};return d>1||this.__actions__.length||!(_ instanceof et)||!mi(m)?this.thru(T):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:nu,args:[T],thisArg:n}),new hr(_,this.__chain__).thru(function(M){return d&&!M.length&&M.push(n),M}))});function K2(){return j0(this)}function Q2(){return new hr(this.value(),this.__chain__)}function J2(){this.__values__===n&&(this.__values__=tb(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function Z2(){return this}function eO(l){for(var d,m=this;m instanceof jc;){var _=L0(m);_.__index__=0,_.__values__=n,d?T.__wrapped__=_:d=_;var T=_;m=m.__wrapped__}return T.__wrapped__=l,d}function tO(){var l=this.__wrapped__;if(l instanceof et){var d=l;return this.__actions__.length&&(d=new et(this)),d=d.reverse(),d.__actions__.push({func:nu,args:[Eh],thisArg:n}),new hr(d,this.__chain__)}return this.thru(Eh)}function nO(){return r0(this.__wrapped__,this.__actions__)}var rO=Xc(function(l,d,m){bt.call(l,m)?++l[m]:fi(l,m,1)});function iO(l,d,m){var _=$e(l)?gy:XR;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}function oO(l,d){var m=$e(l)?Di:zy;return m(l,Te(d,3))}var sO=p0(D0),aO=p0(N0);function lO(l,d){return mn(ru(l,d),1)}function cO(l,d){return mn(ru(l,d),V)}function uO(l,d,m){return m=m===n?1:Ge(m),mn(ru(l,d),m)}function U0(l,d){var m=$e(l)?dr:Fi;return m(l,Te(d,3))}function H0(l,d){var m=$e(l)?II:Fy;return m(l,Te(d,3))}var dO=Xc(function(l,d,m){bt.call(l,m)?l[m].push(d):fi(l,m,[d])});function fO(l,d,m,_){l=Bn(l)?l:Rs(l),m=m&&!_?Ge(m):0;var T=l.length;return m<0&&(m=nn(T+m,0)),lu(l)?m<=T&&l.indexOf(d,m)>-1:!!T&&ys(l,d,m)>-1}var hO=Ye(function(l,d,m){var _=-1,T=typeof d=="function",M=Bn(l)?Z(l.length):[];return Fi(l,function(B){M[++_]=T?Qn(d,B,m):Ga(B,d,m)}),M}),pO=Xc(function(l,d,m){fi(l,m,d)});function ru(l,d){var m=$e(l)?Nt:Vy;return m(l,Te(d,3))}function mO(l,d,m,_){return l==null?[]:($e(d)||(d=d==null?[]:[d]),m=_?n:m,$e(m)||(m=m==null?[]:[m]),Ky(l,d,m))}var gO=Xc(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function vO(l,d,m){var _=$e(l)?Bf:xy,T=arguments.length<3;return _(l,Te(d,4),m,T,Fi)}function yO(l,d,m){var _=$e(l)?RI:xy,T=arguments.length<3;return _(l,Te(d,4),m,T,Fy)}function bO(l,d){var m=$e(l)?Di:zy;return m(l,su(Te(d,3)))}function xO(l){var d=$e(l)?Dy:fP;return d(l)}function wO(l,d,m){(m?Rn(l,d,m):d===n)?d=1:d=Ge(d);var _=$e(l)?HR:hP;return _(l,d)}function _O(l){var d=$e(l)?WR:mP;return d(l)}function SO(l){if(l==null)return 0;if(Bn(l))return lu(l)?xs(l):l.length;var d=_n(l);return d==me||d==ze?l.size:nh(l).length}function EO(l,d,m){var _=$e(l)?$f:gP;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}var CO=Ye(function(l,d){if(l==null)return[];var m=d.length;return m>1&&Rn(l,d[0],d[1])?d=[]:m>2&&Rn(d[0],d[1],d[2])&&(d=[d[0]]),Ky(l,mn(d,1),[])}),iu=oR||function(){return pn.Date.now()};function TO(l,d){if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){if(--l<1)return d.apply(this,arguments)}}function W0(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,hi(l,k,n,n,n,n,d)}function G0(l,d){var m;if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var Th=Ye(function(l,d,m){var _=S;if(m.length){var T=Bi(m,As(Th));_|=I}return hi(l,_,d,m,T)}),V0=Ye(function(l,d,m){var _=S|w;if(m.length){var T=Bi(m,As(V0));_|=I}return hi(d,_,l,m,T)});function q0(l,d,m){d=m?n:d;var _=hi(l,x,n,n,n,n,n,d);return _.placeholder=q0.placeholder,_}function X0(l,d,m){d=m?n:d;var _=hi(l,E,n,n,n,n,n,d);return _.placeholder=X0.placeholder,_}function Y0(l,d,m){var _,T,M,B,U,Y,te=0,ne=!1,oe=!1,fe=!0;if(typeof l!="function")throw new fr(s);d=vr(d)||0,Ft(m)&&(ne=!!m.leading,oe="maxWait"in m,M=oe?nn(vr(m.maxWait)||0,d):M,fe="trailing"in m?!!m.trailing:fe);function we(Kt){var Or=_,yi=T;return _=T=n,te=Kt,B=l.apply(yi,Or),B}function ke(Kt){return te=Kt,U=Ka(Je,d),ne?we(Kt):B}function qe(Kt){var Or=Kt-Y,yi=Kt-te,pb=d-Or;return oe?wn(pb,M-yi):pb}function Ae(Kt){var Or=Kt-Y,yi=Kt-te;return Y===n||Or>=d||Or<0||oe&&yi>=M}function Je(){var Kt=iu();if(Ae(Kt))return it(Kt);U=Ka(Je,qe(Kt))}function it(Kt){return U=n,fe&&_?we(Kt):(_=T=n,B)}function tr(){U!==n&&o0(U),te=0,_=Y=T=U=n}function Pn(){return U===n?B:it(iu())}function nr(){var Kt=iu(),Or=Ae(Kt);if(_=arguments,T=this,Y=Kt,Or){if(U===n)return ke(Y);if(oe)return o0(U),U=Ka(Je,d),we(Y)}return U===n&&(U=Ka(Je,d)),B}return nr.cancel=tr,nr.flush=Pn,nr}var kO=Ye(function(l,d){return $y(l,1,d)}),AO=Ye(function(l,d,m){return $y(l,vr(d)||0,m)});function IO(l){return hi(l,D)}function ou(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new fr(s);var m=function(){var _=arguments,T=d?d.apply(this,_):_[0],M=m.cache;if(M.has(T))return M.get(T);var B=l.apply(this,_);return m.cache=M.set(T,B)||M,B};return m.cache=new(ou.Cache||di),m}ou.Cache=di;function su(l){if(typeof l!="function")throw new fr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function RO(l){return G0(2,l)}var PO=vP(function(l,d){d=d.length==1&&$e(d[0])?Nt(d[0],Jn(Te())):Nt(mn(d,1),Jn(Te()));var m=d.length;return Ye(function(_){for(var T=-1,M=wn(_.length,m);++T=d}),Ro=Hy(function(){return arguments}())?Hy:function(l){return jt(l)&&bt.call(l,"callee")&&!Iy.call(l,"callee")},$e=Z.isArray,VO=uy?Jn(uy):eP;function Bn(l){return l!=null&&au(l.length)&&!gi(l)}function Yt(l){return jt(l)&&Bn(l)}function qO(l){return l===!0||l===!1||jt(l)&&In(l)==le}var Hi=aR||$h,XO=dy?Jn(dy):tP;function YO(l){return jt(l)&&l.nodeType===1&&!Qa(l)}function KO(l){if(l==null)return!0;if(Bn(l)&&($e(l)||typeof l=="string"||typeof l.splice=="function"||Hi(l)||Is(l)||Ro(l)))return!l.length;var d=_n(l);if(d==me||d==ze)return!l.size;if(Ya(l))return!nh(l).length;for(var m in l)if(bt.call(l,m))return!1;return!0}function QO(l,d){return Va(l,d)}function JO(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?Va(l,d,n,m):!!_}function Ah(l){if(!jt(l))return!1;var d=In(l);return d==ve||d==pe||typeof l.message=="string"&&typeof l.name=="string"&&!Qa(l)}function ZO(l){return typeof l=="number"&&Py(l)}function gi(l){if(!Ft(l))return!1;var d=In(l);return d==ye||d==xe||d==ae||d==Bt}function Q0(l){return typeof l=="number"&&l==Ge(l)}function au(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Ft(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function jt(l){return l!=null&&typeof l=="object"}var J0=fy?Jn(fy):rP;function eM(l,d){return l===d||th(l,d,yh(d))}function tM(l,d,m){return m=typeof m=="function"?m:n,th(l,d,yh(d),m)}function nM(l){return Z0(l)&&l!=+l}function rM(l){if(zP(l))throw new De(o);return Wy(l)}function iM(l){return l===null}function oM(l){return l==null}function Z0(l){return typeof l=="number"||jt(l)&&In(l)==be}function Qa(l){if(!jt(l)||In(l)!=Xe)return!1;var d=Lc(l);if(d===null)return!0;var m=bt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Rc.call(m)==tR}var Ih=hy?Jn(hy):iP;function sM(l){return Q0(l)&&l>=-W&&l<=W}var eb=py?Jn(py):oP;function lu(l){return typeof l=="string"||!$e(l)&&jt(l)&&In(l)==st}function er(l){return typeof l=="symbol"||jt(l)&&In(l)==gt}var Is=my?Jn(my):sP;function aM(l){return l===n}function lM(l){return jt(l)&&_n(l)==_e}function cM(l){return jt(l)&&In(l)==je}var uM=Jc(rh),dM=Jc(function(l,d){return l<=d});function tb(l){if(!l)return[];if(Bn(l))return lu(l)?Ir(l):Nn(l);if($a&&l[$a])return HI(l[$a]());var d=_n(l),m=d==me?Wf:d==ze?kc:Rs;return m(l)}function vi(l){if(!l)return l===0?l:0;if(l=vr(l),l===V||l===-V){var d=l<0?-1:1;return d*K}return l===l?l:0}function Ge(l){var d=vi(l),m=d%1;return d===d?m?d-m:d:0}function nb(l){return l?To(Ge(l),0,Q):0}function vr(l){if(typeof l=="number")return l;if(er(l))return X;if(Ft(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Ft(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=wy(l);var m=Dl.test(l);return m||Uv.test(l)?TI(l.slice(2),m?2:8):Ll.test(l)?X:+l}function rb(l){return Jr(l,$n(l))}function fM(l){return l?To(Ge(l),-W,W):l===0?l:0}function ht(l){return l==null?"":Zn(l)}var hM=Ts(function(l,d){if(Ya(d)||Bn(d)){Jr(d,sn(d),l);return}for(var m in d)bt.call(d,m)&&Ha(l,m,d[m])}),ib=Ts(function(l,d){Jr(d,$n(d),l)}),cu=Ts(function(l,d,m,_){Jr(d,$n(d),l,_)}),pM=Ts(function(l,d,m,_){Jr(d,sn(d),l,_)}),mM=pi(Kf);function gM(l,d){var m=Cs(l);return d==null?m:Ny(m,d)}var vM=Ye(function(l,d){l=St(l);var m=-1,_=d.length,T=_>2?d[2]:n;for(T&&Rn(d[0],d[1],T)&&(_=1);++m<_;)for(var M=d[m],B=$n(M),U=-1,Y=B.length;++U1),M}),Jr(l,gh(l),m),_&&(m=pr(m,h|p|g,AP));for(var T=d.length;T--;)lh(m,d[T]);return m});function DM(l,d){return sb(l,su(Te(d)))}var NM=pi(function(l,d){return l==null?{}:cP(l,d)});function sb(l,d){if(l==null)return{};var m=Nt(gh(l),function(_){return[_]});return d=Te(d),Qy(l,m,function(_,T){return d(_,T[0])})}function BM(l,d,m){d=ji(d,l);var _=-1,T=d.length;for(T||(T=1,l=n);++_d){var _=l;l=d,d=_}if(m||l%1||d%1){var T=Oy();return wn(l+T*(d-l+CI("1e-"+((T+"").length-1))),d)}return oh(l,d)}var XM=ks(function(l,d,m){return d=d.toLowerCase(),l+(m?cb(d):d)});function cb(l){return Oh(ht(l).toLowerCase())}function ub(l){return l=ht(l),l&&l.replace(en,$I).replace(mI,"")}function YM(l,d,m){l=ht(l),d=Zn(d);var _=l.length;m=m===n?_:To(Ge(m),0,_);var T=m;return m-=d.length,m>=0&&l.slice(m,T)==d}function KM(l){return l=ht(l),l&&ci.test(l)?l.replace(Wr,FI):l}function QM(l){return l=ht(l),l&&kf.test(l)?l.replace(ps,"\\$&"):l}var JM=ks(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),ZM=ks(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),eL=h0("toLowerCase");function tL(l,d,m){l=ht(l),d=Ge(d);var _=d?xs(l):0;if(!d||_>=d)return l;var T=(d-_)/2;return Qc($c(T),m)+l+Qc(Bc(T),m)}function nL(l,d,m){l=ht(l),d=Ge(d);var _=d?xs(l):0;return d&&_>>0,m?(l=ht(l),l&&(typeof d=="string"||d!=null&&!Ih(d))&&(d=Zn(d),!d&&bs(l))?Ui(Ir(l),0,m):l.split(d,m)):[]}var cL=ks(function(l,d,m){return l+(m?" ":"")+Oh(d)});function uL(l,d,m){return l=ht(l),m=m==null?0:To(Ge(m),0,l.length),d=Zn(d),l.slice(m,m+d.length)==d}function dL(l,d,m){var _=R.templateSettings;m&&Rn(l,d,m)&&(d=n),l=ht(l),d=cu({},d,_,x0);var T=cu({},d.imports,_.imports,x0),M=sn(T),B=Hf(T,M),U,Y,te=0,ne=d.interpolate||Ar,oe="__p += '",fe=Gf((d.escape||Ar).source+"|"+ne.source+"|"+(ne===oa?Kn:Ar).source+"|"+(d.evaluate||Ar).source+"|$","g"),we="//# sourceURL="+(bt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xI+"]")+` -`;l.replace(fe,function(Ae,Je,it,tr,Pn,nr){return it||(it=tr),oe+=l.slice(te,nr).replace(QA,zI),Je&&(U=!0,oe+=`' + +`)}function $P(l){return $e(l)||Ro(l)||!!(Iy&&l&&l[Iy])}function mi(l,d){var m=typeof l;return d=d??W,!!d&&(m=="number"||m!="symbol"&&Uv.test(l))&&l>-1&&l%1==0&&l0){if(++d>=G)return arguments[0]}else d=0;return l.apply(n,arguments)}}function nu(l,d){var m=-1,_=l.length,T=_-1;for(d=d===n?_:d;++m1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,F0(l,m)});function z0(l){var d=P(l);return d.__chain__=!0,d}function Y2(l,d){return d(l),l}function ru(l,d){return d(l)}var K2=pi(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,T=function(M){return Qf(M,l)};return d>1||this.__actions__.length||!(_ instanceof et)||!mi(m)?this.thru(T):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:ru,args:[T],thisArg:n}),new hr(_,this.__chain__).thru(function(M){return d&&!M.length&&M.push(n),M}))});function Q2(){return z0(this)}function J2(){return new hr(this.value(),this.__chain__)}function Z2(){this.__values__===n&&(this.__values__=eb(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function eO(){return this}function tO(l){for(var d,m=this;m instanceof Uc;){var _=M0(m);_.__index__=0,_.__values__=n,d?T.__wrapped__=_:d=_;var T=_;m=m.__wrapped__}return T.__wrapped__=l,d}function nO(){var l=this.__wrapped__;if(l instanceof et){var d=l;return this.__actions__.length&&(d=new et(this)),d=d.reverse(),d.__actions__.push({func:ru,args:[Ch],thisArg:n}),new hr(d,this.__chain__)}return this.thru(Ch)}function rO(){return n0(this.__wrapped__,this.__actions__)}var iO=Yc(function(l,d,m){bt.call(l,m)?++l[m]:fi(l,m,1)});function oO(l,d,m){var _=$e(l)?my:YR;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}function sO(l,d){var m=$e(l)?Ni:Fy;return m(l,Te(d,3))}var aO=h0(L0),lO=h0(D0);function cO(l,d){return mn(iu(l,d),1)}function uO(l,d){return mn(iu(l,d),V)}function dO(l,d,m){return m=m===n?1:Ge(m),mn(iu(l,d),m)}function j0(l,d){var m=$e(l)?dr:zi;return m(l,Te(d,3))}function U0(l,d){var m=$e(l)?RI:$y;return m(l,Te(d,3))}var fO=Yc(function(l,d,m){bt.call(l,m)?l[m].push(d):fi(l,m,[d])});function hO(l,d,m,_){l=Bn(l)?l:Ps(l),m=m&&!_?Ge(m):0;var T=l.length;return m<0&&(m=nn(T+m,0)),cu(l)?m<=T&&l.indexOf(d,m)>-1:!!T&&bs(l,d,m)>-1}var pO=Ye(function(l,d,m){var _=-1,T=typeof d=="function",M=Bn(l)?Z(l.length):[];return zi(l,function(B){M[++_]=T?Qn(d,B,m):Ga(B,d,m)}),M}),mO=Yc(function(l,d,m){fi(l,m,d)});function iu(l,d){var m=$e(l)?Nt:Gy;return m(l,Te(d,3))}function gO(l,d,m,_){return l==null?[]:($e(d)||(d=d==null?[]:[d]),m=_?n:m,$e(m)||(m=m==null?[]:[m]),Yy(l,d,m))}var vO=Yc(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function yO(l,d,m){var _=$e(l)?$f:by,T=arguments.length<3;return _(l,Te(d,4),m,T,zi)}function bO(l,d,m){var _=$e(l)?PI:by,T=arguments.length<3;return _(l,Te(d,4),m,T,$y)}function xO(l,d){var m=$e(l)?Ni:Fy;return m(l,au(Te(d,3)))}function wO(l){var d=$e(l)?Ly:hP;return d(l)}function _O(l,d,m){(m?Rn(l,d,m):d===n)?d=1:d=Ge(d);var _=$e(l)?WR:pP;return _(l,d)}function SO(l){var d=$e(l)?GR:gP;return d(l)}function EO(l){if(l==null)return 0;if(Bn(l))return cu(l)?ws(l):l.length;var d=_n(l);return d==me||d==ze?l.size:rh(l).length}function CO(l,d,m){var _=$e(l)?Ff:vP;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}var TO=Ye(function(l,d){if(l==null)return[];var m=d.length;return m>1&&Rn(l,d[0],d[1])?d=[]:m>2&&Rn(d[0],d[1],d[2])&&(d=[d[0]]),Yy(l,mn(d,1),[])}),ou=sR||function(){return pn.Date.now()};function kO(l,d){if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){if(--l<1)return d.apply(this,arguments)}}function H0(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,hi(l,k,n,n,n,n,d)}function W0(l,d){var m;if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var kh=Ye(function(l,d,m){var _=S;if(m.length){var T=$i(m,Is(kh));_|=I}return hi(l,_,d,m,T)}),G0=Ye(function(l,d,m){var _=S|w;if(m.length){var T=$i(m,Is(G0));_|=I}return hi(d,_,l,m,T)});function V0(l,d,m){d=m?n:d;var _=hi(l,x,n,n,n,n,n,d);return _.placeholder=V0.placeholder,_}function q0(l,d,m){d=m?n:d;var _=hi(l,E,n,n,n,n,n,d);return _.placeholder=q0.placeholder,_}function X0(l,d,m){var _,T,M,B,U,Y,ne=0,re=!1,oe=!1,fe=!0;if(typeof l!="function")throw new fr(s);d=vr(d)||0,Ft(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?nn(vr(m.maxWait)||0,d):M,fe="trailing"in m?!!m.trailing:fe);function we(Kt){var Or=_,yi=T;return _=T=n,ne=Kt,B=l.apply(yi,Or),B}function ke(Kt){return ne=Kt,U=Ka(Je,d),re?we(Kt):B}function qe(Kt){var Or=Kt-Y,yi=Kt-ne,hb=d-Or;return oe?wn(hb,M-yi):hb}function Ae(Kt){var Or=Kt-Y,yi=Kt-ne;return Y===n||Or>=d||Or<0||oe&&yi>=M}function Je(){var Kt=ou();if(Ae(Kt))return it(Kt);U=Ka(Je,qe(Kt))}function it(Kt){return U=n,fe&&_?we(Kt):(_=T=n,B)}function tr(){U!==n&&i0(U),ne=0,_=Y=T=U=n}function Pn(){return U===n?B:it(ou())}function nr(){var Kt=ou(),Or=Ae(Kt);if(_=arguments,T=this,Y=Kt,Or){if(U===n)return ke(Y);if(oe)return i0(U),U=Ka(Je,d),we(Y)}return U===n&&(U=Ka(Je,d)),B}return nr.cancel=tr,nr.flush=Pn,nr}var AO=Ye(function(l,d){return By(l,1,d)}),IO=Ye(function(l,d,m){return By(l,vr(d)||0,m)});function RO(l){return hi(l,D)}function su(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new fr(s);var m=function(){var _=arguments,T=d?d.apply(this,_):_[0],M=m.cache;if(M.has(T))return M.get(T);var B=l.apply(this,_);return m.cache=M.set(T,B)||M,B};return m.cache=new(su.Cache||di),m}su.Cache=di;function au(l){if(typeof l!="function")throw new fr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function PO(l){return W0(2,l)}var OO=yP(function(l,d){d=d.length==1&&$e(d[0])?Nt(d[0],Jn(Te())):Nt(mn(d,1),Jn(Te()));var m=d.length;return Ye(function(_){for(var T=-1,M=wn(_.length,m);++T=d}),Ro=Uy(function(){return arguments}())?Uy:function(l){return Ut(l)&&bt.call(l,"callee")&&!Ay.call(l,"callee")},$e=Z.isArray,qO=cy?Jn(cy):tP;function Bn(l){return l!=null&&lu(l.length)&&!gi(l)}function Yt(l){return Ut(l)&&Bn(l)}function XO(l){return l===!0||l===!1||Ut(l)&&In(l)==le}var Wi=lR||Fh,YO=uy?Jn(uy):nP;function KO(l){return Ut(l)&&l.nodeType===1&&!Qa(l)}function QO(l){if(l==null)return!0;if(Bn(l)&&($e(l)||typeof l=="string"||typeof l.splice=="function"||Wi(l)||Rs(l)||Ro(l)))return!l.length;var d=_n(l);if(d==me||d==ze)return!l.size;if(Ya(l))return!rh(l).length;for(var m in l)if(bt.call(l,m))return!1;return!0}function JO(l,d){return Va(l,d)}function ZO(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?Va(l,d,n,m):!!_}function Ih(l){if(!Ut(l))return!1;var d=In(l);return d==ve||d==pe||typeof l.message=="string"&&typeof l.name=="string"&&!Qa(l)}function eM(l){return typeof l=="number"&&Ry(l)}function gi(l){if(!Ft(l))return!1;var d=In(l);return d==ye||d==xe||d==ae||d==Bt}function K0(l){return typeof l=="number"&&l==Ge(l)}function lu(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Ft(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ut(l){return l!=null&&typeof l=="object"}var Q0=dy?Jn(dy):iP;function tM(l,d){return l===d||nh(l,d,bh(d))}function nM(l,d,m){return m=typeof m=="function"?m:n,nh(l,d,bh(d),m)}function rM(l){return J0(l)&&l!=+l}function iM(l){if(jP(l))throw new De(o);return Hy(l)}function oM(l){return l===null}function sM(l){return l==null}function J0(l){return typeof l=="number"||Ut(l)&&In(l)==be}function Qa(l){if(!Ut(l)||In(l)!=Xe)return!1;var d=Dc(l);if(d===null)return!0;var m=bt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Pc.call(m)==nR}var Rh=fy?Jn(fy):oP;function aM(l){return K0(l)&&l>=-W&&l<=W}var Z0=hy?Jn(hy):sP;function cu(l){return typeof l=="string"||!$e(l)&&Ut(l)&&In(l)==st}function er(l){return typeof l=="symbol"||Ut(l)&&In(l)==gt}var Rs=py?Jn(py):aP;function lM(l){return l===n}function cM(l){return Ut(l)&&_n(l)==_e}function uM(l){return Ut(l)&&In(l)==je}var dM=Zc(ih),fM=Zc(function(l,d){return l<=d});function eb(l){if(!l)return[];if(Bn(l))return cu(l)?Ir(l):Nn(l);if($a&&l[$a])return WI(l[$a]());var d=_n(l),m=d==me?Gf:d==ze?Ac:Ps;return m(l)}function vi(l){if(!l)return l===0?l:0;if(l=vr(l),l===V||l===-V){var d=l<0?-1:1;return d*K}return l===l?l:0}function Ge(l){var d=vi(l),m=d%1;return d===d?m?d-m:d:0}function tb(l){return l?To(Ge(l),0,Q):0}function vr(l){if(typeof l=="number")return l;if(er(l))return X;if(Ft(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Ft(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=xy(l);var m=Dl.test(l);return m||jv.test(l)?kI(l.slice(2),m?2:8):Ll.test(l)?X:+l}function nb(l){return Jr(l,$n(l))}function hM(l){return l?To(Ge(l),-W,W):l===0?l:0}function pt(l){return l==null?"":Zn(l)}var pM=ks(function(l,d){if(Ya(d)||Bn(d)){Jr(d,sn(d),l);return}for(var m in d)bt.call(d,m)&&Ha(l,m,d[m])}),rb=ks(function(l,d){Jr(d,$n(d),l)}),uu=ks(function(l,d,m,_){Jr(d,$n(d),l,_)}),mM=ks(function(l,d,m,_){Jr(d,sn(d),l,_)}),gM=pi(Qf);function vM(l,d){var m=Ts(l);return d==null?m:Dy(m,d)}var yM=Ye(function(l,d){l=St(l);var m=-1,_=d.length,T=_>2?d[2]:n;for(T&&Rn(d[0],d[1],T)&&(_=1);++m<_;)for(var M=d[m],B=$n(M),U=-1,Y=B.length;++U1),M}),Jr(l,vh(l),m),_&&(m=pr(m,h|p|g,IP));for(var T=d.length;T--;)ch(m,d[T]);return m});function NM(l,d){return ob(l,au(Te(d)))}var BM=pi(function(l,d){return l==null?{}:uP(l,d)});function ob(l,d){if(l==null)return{};var m=Nt(vh(l),function(_){return[_]});return d=Te(d),Ky(l,m,function(_,T){return d(_,T[0])})}function $M(l,d,m){d=Ui(d,l);var _=-1,T=d.length;for(T||(T=1,l=n);++_d){var _=l;l=d,d=_}if(m||l%1||d%1){var T=Py();return wn(l+T*(d-l+TI("1e-"+((T+"").length-1))),d)}return sh(l,d)}var YM=As(function(l,d,m){return d=d.toLowerCase(),l+(m?lb(d):d)});function lb(l){return Mh(pt(l).toLowerCase())}function cb(l){return l=pt(l),l&&l.replace(en,FI).replace(gI,"")}function KM(l,d,m){l=pt(l),d=Zn(d);var _=l.length;m=m===n?_:To(Ge(m),0,_);var T=m;return m-=d.length,m>=0&&l.slice(m,T)==d}function QM(l){return l=pt(l),l&&ci.test(l)?l.replace(Wr,zI):l}function JM(l){return l=pt(l),l&&Af.test(l)?l.replace(ms,"\\$&"):l}var ZM=As(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),eL=As(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),tL=f0("toLowerCase");function nL(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;if(!d||_>=d)return l;var T=(d-_)/2;return Jc(Fc(T),m)+l+Jc($c(T),m)}function rL(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;return d&&_>>0,m?(l=pt(l),l&&(typeof d=="string"||d!=null&&!Rh(d))&&(d=Zn(d),!d&&xs(l))?Hi(Ir(l),0,m):l.split(d,m)):[]}var uL=As(function(l,d,m){return l+(m?" ":"")+Mh(d)});function dL(l,d,m){return l=pt(l),m=m==null?0:To(Ge(m),0,l.length),d=Zn(d),l.slice(m,m+d.length)==d}function fL(l,d,m){var _=P.templateSettings;m&&Rn(l,d,m)&&(d=n),l=pt(l),d=uu({},d,_,b0);var T=uu({},d.imports,_.imports,b0),M=sn(T),B=Wf(T,M),U,Y,ne=0,re=d.interpolate||Ar,oe="__p += '",fe=Vf((d.escape||Ar).source+"|"+re.source+"|"+(re===sa?Kn:Ar).source+"|"+(d.evaluate||Ar).source+"|$","g"),we="//# sourceURL="+(bt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wI+"]")+` +`;l.replace(fe,function(Ae,Je,it,tr,Pn,nr){return it||(it=tr),oe+=l.slice(ne,nr).replace(JA,jI),Je&&(U=!0,oe+=`' + __e(`+Je+`) + '`),Pn&&(Y=!0,oe+=`'; `+Pn+`; __p += '`),it&&(oe+=`' + ((__t = (`+it+`)) == null ? '' : __t) + -'`),te=nr+Ae.length,Ae}),oe+=`'; +'`),ne=nr+Ae.length,Ae}),oe+=`'; `;var ke=bt.call(d,"variable")&&d.variable;if(!ke)oe=`with (obj) { `+oe+` } -`;else if(Na.test(ke))throw new De(a);oe=(Y?oe.replace(Wt,""):oe).replace(yn,"$1").replace(Yr,"$1;"),oe="function("+(ke||"obj")+`) { +`;else if(Na.test(ke))throw new De(a);oe=(Y?oe.replace(Gt,""):oe).replace(yn,"$1").replace(Yr,"$1;"),oe="function("+(ke||"obj")+`) { `+(ke?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(Y?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+oe+`return __p -}`;var qe=fb(function(){return ft(M,we+"return "+oe).apply(n,B)});if(qe.source=oe,Ah(qe))throw qe;return qe}function fL(l){return ht(l).toLowerCase()}function hL(l){return ht(l).toUpperCase()}function pL(l,d,m){if(l=ht(l),l&&(m||d===n))return wy(l);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ir(d),M=_y(_,T),B=Sy(_,T)+1;return Ui(_,M,B).join("")}function mL(l,d,m){if(l=ht(l),l&&(m||d===n))return l.slice(0,Cy(l)+1);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Sy(_,Ir(d))+1;return Ui(_,0,T).join("")}function gL(l,d,m){if(l=ht(l),l&&(m||d===n))return l.replace(xo,"");if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=_y(_,Ir(d));return Ui(_,T).join("")}function vL(l,d){var m=N,_=H;if(Ft(d)){var T="separator"in d?d.separator:T;m="length"in d?Ge(d.length):m,_="omission"in d?Zn(d.omission):_}l=ht(l);var M=l.length;if(bs(l)){var B=Ir(l);M=B.length}if(m>=M)return l;var U=m-xs(_);if(U<1)return _;var Y=B?Ui(B,0,U).join(""):l.slice(0,U);if(T===n)return Y+_;if(B&&(U+=Y.length-U),Ih(T)){if(l.slice(U).search(T)){var te,ne=Y;for(T.global||(T=Gf(T.source,ht(lr.exec(T))+"g")),T.lastIndex=0;te=T.exec(ne);)var oe=te.index;Y=Y.slice(0,oe===n?U:oe)}}else if(l.indexOf(Zn(T),U)!=U){var fe=Y.lastIndexOf(T);fe>-1&&(Y=Y.slice(0,fe))}return Y+_}function yL(l){return l=ht(l),l&&Kr.test(l)?l.replace(Hr,qI):l}var bL=ks(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),Oh=h0("toUpperCase");function db(l,d,m){return l=ht(l),d=m?n:d,d===n?UI(l)?KI(l):MI(l):l.match(d)||[]}var fb=Ye(function(l,d){try{return Qn(l,n,d)}catch(m){return Ah(m)?m:new De(m)}}),xL=pi(function(l,d){return dr(d,function(m){m=Zr(m),fi(l,m,Th(l[m],l))}),l});function wL(l){var d=l==null?0:l.length,m=Te();return l=d?Nt(l,function(_){if(typeof _[1]!="function")throw new fr(s);return[m(_[0]),_[1]]}):[],Ye(function(_){for(var T=-1;++TW)return[];var m=Q,_=wn(l,Q);d=Te(d),l-=Q;for(var T=Uf(_,d);++m0||d<0)?new et(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=Ge(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},et.prototype.toArray=function(){return this.take(Q)},Qr(et.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),T=R[_?"take"+(d=="last"?"Right":""):d],M=_||/^find/.test(d);T&&(R.prototype[d]=function(){var B=this.__wrapped__,U=_?[1]:arguments,Y=B instanceof et,te=U[0],ne=Y||$e(B),oe=function(Je){var it=T.apply(R,Ni([Je],U));return _&&fe?it[0]:it};ne&&m&&typeof te=="function"&&te.length!=1&&(Y=ne=!1);var fe=this.__chain__,we=!!this.__actions__.length,ke=M&&!fe,qe=Y&&!we;if(!M&&ne){B=qe?B:new et(this);var Ae=l.apply(B,U);return Ae.__actions__.push({func:nu,args:[oe],thisArg:n}),new hr(Ae,fe)}return ke&&qe?l.apply(this,U):(Ae=this.thru(oe),ke?_?Ae.value()[0]:Ae.value():Ae)})}),dr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ac[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);R.prototype[l]=function(){var T=arguments;if(_&&!this.__chain__){var M=this.value();return d.apply($e(M)?M:[],T)}return this[m](function(B){return d.apply($e(B)?B:[],T)})}}),Qr(et.prototype,function(l,d){var m=R[d];if(m){var _=m.name+"";bt.call(Es,_)||(Es[_]=[]),Es[_].push({name:d,func:m})}}),Es[Yc(n,w).name]=[{name:"wrapper",func:n}],et.prototype.clone=yR,et.prototype.reverse=bR,et.prototype.value=xR,R.prototype.at=Y2,R.prototype.chain=K2,R.prototype.commit=Q2,R.prototype.next=J2,R.prototype.plant=eO,R.prototype.reverse=tO,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=nO,R.prototype.first=R.prototype.head,$a&&(R.prototype[$a]=Z2),R},ws=QI();_o?((_o.exports=ws)._=ws,Lf._=ws):pn._=ws}).call(qt)})(qC,qC.exports);var Zt=qC.exports;let BFe=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var am=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(am||{}),mne=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(mne||{}),Z3=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(Z3||{}),Dt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Dt||{}),Kl=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(Kl||{}),Ve=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(Ve||{}),wg=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(wg||{}),Ot=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Ot||{}),e5=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(e5||{}),ku=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(ku||{}),Qd=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Qd||{}),fc=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(fc||{}),Ml=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(Ml||{}),Gl=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Gl||{}),sU=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(sU||{}),ba=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(ba||{}),bi=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(bi||{}),ri=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(ri||{}),sc=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(sc||{});const $Fe={createCanvas:(e,t)=>{const n=document.createElement("canvas");return n.width=e,n.height=t,n},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},nt={ADAPTER:$Fe,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var IB=/iPhone/i,n7=/iPod/i,r7=/iPad/i,i7=/\biOS-universal(?:.+)Mac\b/i,RB=/\bAndroid(?:.+)Mobile\b/i,o7=/Android/i,bm=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,cS=/Silk/i,hu=/Windows Phone/i,s7=/\bWindows(?:.+)ARM\b/i,a7=/BlackBerry/i,l7=/BB10/i,c7=/Opera Mini/i,u7=/\b(CriOS|Chrome)(?:.+)Mobile/i,d7=/Mobile(?:.+)Firefox\b/i,f7=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function FFe(e){return function(t){return t.test(e)}}function h7(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var i=FFe(n),o={apple:{phone:i(IB)&&!i(hu),ipod:i(n7),tablet:!i(IB)&&(i(r7)||f7(t))&&!i(hu),universal:i(i7),device:(i(IB)||i(n7)||i(r7)||i(i7)||f7(t))&&!i(hu)},amazon:{phone:i(bm),tablet:!i(bm)&&i(cS),device:i(bm)||i(cS)},android:{phone:!i(hu)&&i(bm)||!i(hu)&&i(RB),tablet:!i(hu)&&!i(bm)&&!i(RB)&&(i(cS)||i(o7)),device:!i(hu)&&(i(bm)||i(cS)||i(RB)||i(o7))||i(/\bokhttp\b/i)},windows:{phone:i(hu),tablet:i(s7),device:i(hu)||i(s7)},other:{blackberry:i(a7),blackberry10:i(l7),opera:i(c7),firefox:i(d7),chrome:i(u7),device:i(a7)||i(l7)||i(c7)||i(d7)||i(u7)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const zFe=h7.default??h7,Au=zFe(globalThis.navigator);nt.RETINA_PREFIX=/@([0-9\.]+)x/;nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var gne={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function o(c,u,f,h,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new i(f,h||c,p),v=n?n+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],g]:c._events[v].push(g):(c._events[v]=g,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],f,h;if(this._eventsCount===0)return u;for(h in f=this._events)t.call(f,h)&&u.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},a.prototype.listeners=function(u){var f=n?n+u:u,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,v=new Array(g);p80*n){a=u=e[0],c=f=e[1];for(var v=n;vu&&(u=h),p>f&&(f=p);g=Math.max(u-a,f-c),g=g!==0?32767/g:0}return J1(o,s,n,a,c,g,0),s}function vne(e,t,n,r,i){var o,s;if(i===r5(e,t,n,r)>0)for(o=t;o=t;o-=r)s=p7(o,e[o],e[o+1],s);return s&&TA(s,s.next)&&(ew(s),s=s.next),s}function Gp(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(TA(n,n.next)||$r(n.prev,n,n.next)===0)){if(ew(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function J1(e,t,n,r,i,o,s){if(e){!s&&o&&QFe(e,r,i,o);for(var a=e,c,u;e.prev!==e.next;){if(c=e.prev,u=e.next,o?HFe(e,r,i,o):UFe(e)){t.push(c.i/n|0),t.push(e.i/n|0),t.push(u.i/n|0),ew(e),e=u.next,a=u.next;continue}if(e=u,e===a){s?s===1?(e=WFe(Gp(e),t,n),J1(e,t,n,r,i,o,2)):s===2&&GFe(e,t,n,r,i,o):J1(Gp(e),t,n,r,i,o,1);break}}}}function UFe(e){var t=e.prev,n=e,r=e.next;if($r(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,s=r.x,a=t.y,c=n.y,u=r.y,f=io?i>s?i:s:o>s?o:s,g=a>c?a>u?a:u:c>u?c:u,v=r.next;v!==t;){if(v.x>=f&&v.x<=p&&v.y>=h&&v.y<=g&&ag(i,a,o,c,s,u,v.x,v.y)&&$r(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function HFe(e,t,n,r){var i=e.prev,o=e,s=e.next;if($r(i,o,s)>=0)return!1;for(var a=i.x,c=o.x,u=s.x,f=i.y,h=o.y,p=s.y,g=ac?a>u?a:u:c>u?c:u,S=f>h?f>p?f:p:h>p?h:p,w=t5(g,v,t,n,r),b=t5(y,S,t,n,r),x=e.prevZ,E=e.nextZ;x&&x.z>=w&&E&&E.z<=b;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&ag(a,f,c,h,u,p,x.x,x.y)&&$r(x.prev,x,x.next)>=0||(x=x.prevZ,E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&ag(a,f,c,h,u,p,E.x,E.y)&&$r(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;x&&x.z>=w;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&ag(a,f,c,h,u,p,x.x,x.y)&&$r(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;E&&E.z<=b;){if(E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&ag(a,f,c,h,u,p,E.x,E.y)&&$r(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function WFe(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!TA(i,o)&&yne(i,r,r.next,o)&&Z1(i,o)&&Z1(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),ew(r),ew(r.next),r=e=o),r=r.next}while(r!==e);return Gp(r)}function GFe(e,t,n,r,i,o){var s=e;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&e3e(s,a)){var c=bne(s,a);s=Gp(s,s.next),c=Gp(c,c.next),J1(s,t,n,r,i,o,0),J1(c,t,n,r,i,o,0);return}a=a.next}s=s.next}while(s!==e)}function VFe(e,t,n,r){var i=[],o,s,a,c,u;for(o=0,s=t.length;o=n.next.y&&n.next.y!==n.y){var a=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=r&&a>o&&(o=a,s=n.x=n.x&&n.x>=u&&r!==n.x&&ag(is.x||n.x===s.x&&KFe(s,n)))&&(s=n,h=p)),n=n.next;while(n!==c);return s}function KFe(e,t){return $r(e.prev,e,t.prev)<0&&$r(t.next,e,e.next)<0}function QFe(e,t,n,r){var i=e;do i.z===0&&(i.z=t5(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,JFe(i)}function JFe(e){var t,n,r,i,o,s,a,c,u=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,r=n,a=0,t=0;t0||c>0&&r;)a!==0&&(c===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(s>1);return e}function t5(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function ZFe(e){var t=e,n=e;do(t.x=(e-s)*(o-a)&&(e-s)*(r-a)>=(n-s)*(t-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function e3e(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!t3e(e,t)&&(Z1(e,t)&&Z1(t,e)&&n3e(e,t)&&($r(e.prev,e,t.prev)||$r(e,t.prev,t))||TA(e,t)&&$r(e.prev,e,e.next)>0&&$r(t.prev,t,t.next)>0)}function $r(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function TA(e,t){return e.x===t.x&&e.y===t.y}function yne(e,t,n,r){var i=dS($r(e,t,n)),o=dS($r(e,t,r)),s=dS($r(n,r,e)),a=dS($r(n,r,t));return!!(i!==o&&s!==a||i===0&&uS(e,n,t)||o===0&&uS(e,r,t)||s===0&&uS(n,e,r)||a===0&&uS(n,t,r))}function uS(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function dS(e){return e>0?1:e<0?-1:0}function t3e(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&yne(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function Z1(e,t){return $r(e.prev,e,e.next)<0?$r(e,t,e.next)>=0&&$r(e,e.prev,t)>=0:$r(e,t,e.prev)<0||$r(e,e.next,t)<0}function n3e(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function bne(e,t){var n=new n5(e.i,e.x,e.y),r=new n5(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function p7(e,t,n,r){var i=new n5(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function ew(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function n5(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}CA.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,s=Math.abs(r5(e,0,o,n));if(i)for(var a=0,c=t.length;a0&&(r+=e[i-1].length,n.holes.push(r))}return n};var r3e=aU.exports;const i3e=us(r3e);var XC={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */XC.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof qt=="object"&&qt;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,a=2147483647,c=36,u=1,f=26,h=38,p=700,g=72,v=128,y="-",S=/^xn--/,w=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=c-u,I=Math.floor,A=String.fromCharCode,k;function O(X){throw new RangeError(x[X])}function D(X,Q){for(var re=X.length,ce=[];re--;)ce[re]=Q(X[re]);return ce}function N(X,Q){var re=X.split("@"),ce="";re.length>1&&(ce=re[0]+"@",X=re[1]),X=X.replace(b,".");var ue=X.split("."),se=D(ue,Q).join(".");return ce+se}function H(X){for(var Q=[],re=0,ce=X.length,ue,se;re=55296&&ue<=56319&&re65535&&(Q-=65536,re+=A(Q>>>10&1023|55296),Q=56320|Q&1023),re+=A(Q),re}).join("")}function z(X){return X-48<10?X-22:X-65<26?X-65:X-97<26?X-97:c}function L(X,Q){return X+22+75*(X<26)-((Q!=0)<<5)}function F(X,Q,re){var ce=0;for(X=re?I(X/p):X>>1,X+=I(X/Q);X>E*f>>1;ce+=c)X=I(X/E);return I(ce+(E+1)*X/(X+h))}function j(X){var Q=[],re=X.length,ce,ue=0,se=v,J=g,ae,le,he,pe,ve,ye,xe,me,be;for(ae=X.lastIndexOf(y),ae<0&&(ae=0),le=0;le=128&&O("not-basic"),Q.push(X.charCodeAt(le));for(he=ae>0?ae+1:0;he=re&&O("invalid-input"),xe=z(X.charCodeAt(he++)),(xe>=c||xe>I((a-ue)/ve))&&O("overflow"),ue+=xe*ve,me=ye<=J?u:ye>=J+f?f:ye-J,!(xeI(a/be)&&O("overflow"),ve*=be;ce=Q.length+1,J=F(ue-pe,ce,pe==0),I(ue/ce)>a-se&&O("overflow"),se+=I(ue/ce),ue%=ce,Q.splice(ue++,0,se)}return G(Q)}function V(X){var Q,re,ce,ue,se,J,ae,le,he,pe,ve,ye=[],xe,me,be,Ze;for(X=H(X),xe=X.length,Q=v,re=0,se=g,J=0;J=Q&&veI((a-re)/me)&&O("overflow"),re+=(ae-Q)*me,Q=ae,J=0;Ja&&O("overflow"),ve==Q){for(le=re,he=c;pe=he<=se?u:he>=se+f?f:he-se,!(le"u"||!Ti?dn:Ti(Uint8Array),kp={"%AggregateError%":typeof AggregateError>"u"?dn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dn:ArrayBuffer,"%ArrayIteratorPrototype%":xm&&Ti?Ti([][Symbol.iterator]()):dn,"%AsyncFromSyncIteratorPrototype%":dn,"%AsyncFunction%":Om,"%AsyncGenerator%":Om,"%AsyncGeneratorFunction%":Om,"%AsyncIteratorPrototype%":Om,"%Atomics%":typeof Atomics>"u"?dn:Atomics,"%BigInt%":typeof BigInt>"u"?dn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?dn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dn:FinalizationRegistry,"%Function%":xne,"%GeneratorFunction%":Om,"%Int8Array%":typeof Int8Array>"u"?dn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xm&&Ti?Ti(Ti([][Symbol.iterator]())):dn,"%JSON%":typeof JSON=="object"?JSON:dn,"%Map%":typeof Map>"u"?dn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xm||!Ti?dn:Ti(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dn:Promise,"%Proxy%":typeof Proxy>"u"?dn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?dn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xm||!Ti?dn:Ti(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xm&&Ti?Ti(""[Symbol.iterator]()):dn,"%Symbol%":xm?Symbol:dn,"%SyntaxError%":ov,"%ThrowTypeError%":y3e,"%TypedArray%":x3e,"%TypeError%":_g,"%Uint8Array%":typeof Uint8Array>"u"?dn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?dn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dn:WeakSet};if(Ti)try{null.error}catch(e){var w3e=Ti(Ti(e));kp["%Error.prototype%"]=w3e}var _3e=function e(t){var n;if(t==="%AsyncFunction%")n=OB("async function () {}");else if(t==="%GeneratorFunction%")n=OB("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=OB("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ti&&(n=Ti(i.prototype))}return kp[t]=n,n},v7={"%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"]},Xw=lU,YC=v3e,S3e=Xw.call(Function.call,Array.prototype.concat),E3e=Xw.call(Function.apply,Array.prototype.splice),y7=Xw.call(Function.call,String.prototype.replace),KC=Xw.call(Function.call,String.prototype.slice),C3e=Xw.call(Function.call,RegExp.prototype.exec),T3e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k3e=/\\(\\)?/g,A3e=function(t){var n=KC(t,0,1),r=KC(t,-1);if(n==="%"&&r!=="%")throw new ov("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ov("invalid intrinsic syntax, expected opening `%`");var i=[];return y7(t,T3e,function(o,s,a,c){i[i.length]=a?y7(c,k3e,"$1"):s||o}),i},I3e=function(t,n){var r=t,i;if(YC(v7,r)&&(i=v7[r],r="%"+i[0]+"%"),YC(kp,r)){var o=kp[r];if(o===Om&&(o=_3e(r)),typeof o>"u"&&!n)throw new _g("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new ov("intrinsic "+t+" does not exist!")},cU=function(t,n){if(typeof t!="string"||t.length===0)throw new _g("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new _g('"allowMissing" argument must be a boolean');if(C3e(/^%?[^%]*%?$/,t)===null)throw new ov("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=A3e(t),i=r.length>0?r[0]:"",o=I3e("%"+i+"%",n),s=o.name,a=o.value,c=!1,u=o.alias;u&&(i=u[0],E3e(r,S3e([0,1],u)));for(var f=1,h=!0;f=r.length){var y=Tp(a,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[p]}else h=YC(a,p),a=a[p];h&&!c&&(kp[s]=a)}}return a},wne={exports:{}};(function(e){var t=lU,n=cU,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var g=s(p,"length");g.configurable&&a(p,"length",{value:1+c(0,h.length-(arguments.length-1))})}return p};var u=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u})(wne);var R3e=wne.exports,_ne=cU,Sne=R3e,P3e=Sne(_ne("String.prototype.indexOf")),O3e=function(t,n){var r=_ne(t,!!n);return typeof r=="function"&&P3e(t,".prototype.")>-1?Sne(r):r};const M3e={},L3e=Object.freeze(Object.defineProperty({__proto__:null,default:M3e},Symbol.toStringTag,{value:"Module"})),Ene=i4(L3e);var uU=typeof Map=="function"&&Map.prototype,LB=Object.getOwnPropertyDescriptor&&uU?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,QC=uU&&LB&&typeof LB.get=="function"?LB.get:null,b7=uU&&Map.prototype.forEach,dU=typeof Set=="function"&&Set.prototype,DB=Object.getOwnPropertyDescriptor&&dU?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,JC=dU&&DB&&typeof DB.get=="function"?DB.get:null,x7=dU&&Set.prototype.forEach,D3e=typeof WeakMap=="function"&&WeakMap.prototype,Kx=D3e?WeakMap.prototype.has:null,N3e=typeof WeakSet=="function"&&WeakSet.prototype,Qx=N3e?WeakSet.prototype.has:null,B3e=typeof WeakRef=="function"&&WeakRef.prototype,w7=B3e?WeakRef.prototype.deref:null,$3e=Boolean.prototype.valueOf,F3e=Object.prototype.toString,z3e=Function.prototype.toString,j3e=String.prototype.match,fU=String.prototype.slice,Pd=String.prototype.replace,U3e=String.prototype.toUpperCase,_7=String.prototype.toLowerCase,Cne=RegExp.prototype.test,S7=Array.prototype.concat,Vl=Array.prototype.join,H3e=Array.prototype.slice,E7=Math.floor,i5=typeof BigInt=="function"?BigInt.prototype.valueOf:null,NB=Object.getOwnPropertySymbols,o5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sv=typeof Symbol=="function"&&typeof Symbol.iterator=="object",bo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sv||"symbol")?Symbol.toStringTag:null,Tne=Object.prototype.propertyIsEnumerable,C7=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T7(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Cne.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-E7(-e):E7(e);if(r!==e){var i=String(r),o=fU.call(t,i.length+1);return Pd.call(i,n,"$&_")+"."+Pd.call(Pd.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Pd.call(t,n,"$&_")}var s5=Ene,k7=s5.custom,A7=Ane(k7)?k7:null,W3e=function e(t,n,r,i){var o=n||{};if(bd(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(bd(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=bd(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(bd(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(bd(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Rne(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return a?T7(t,c):c}if(typeof t=="bigint"){var u=String(t)+"n";return a?T7(t,u):u}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return a5(t)?"[Array]":"[Object]";var h=l5e(o,r);if(typeof i>"u")i=[];else if(Ine(i,t)>=0)return"[Circular]";function p(z,L,F){if(L&&(i=H3e.call(i),i.push(L)),F){var j={depth:o.depth};return bd(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(z,j,r+1,i)}return e(z,o,r+1,i)}if(typeof t=="function"&&!I7(t)){var g=Z3e(t),v=fS(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Vl.call(v,", ")+" }":"")}if(Ane(t)){var y=sv?Pd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):o5.call(t);return typeof t=="object"&&!sv?Ub(y):y}if(o5e(t)){for(var S="<"+_7.call(String(t.nodeName)),w=t.attributes||[],b=0;b",S}if(a5(t)){if(t.length===0)return"[]";var x=fS(t,p);return h&&!a5e(x)?"["+l5(x,h)+"]":"[ "+Vl.call(x,", ")+" ]"}if(q3e(t)){var E=fS(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Tne.call(t,"cause")?"{ ["+String(t)+"] "+Vl.call(S7.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Vl.call(E,", ")+" }"}if(typeof t=="object"&&s){if(A7&&typeof t[A7]=="function"&&s5)return s5(t,{depth:f-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(e5e(t)){var I=[];return b7&&b7.call(t,function(z,L){I.push(p(L,t,!0)+" => "+p(z,t))}),R7("Map",QC.call(t),I,h)}if(r5e(t)){var A=[];return x7&&x7.call(t,function(z){A.push(p(z,t))}),R7("Set",JC.call(t),A,h)}if(t5e(t))return BB("WeakMap");if(i5e(t))return BB("WeakSet");if(n5e(t))return BB("WeakRef");if(Y3e(t))return Ub(p(Number(t)));if(Q3e(t))return Ub(p(i5.call(t)));if(K3e(t))return Ub($3e.call(t));if(X3e(t))return Ub(p(String(t)));if(!V3e(t)&&!I7(t)){var k=fS(t,p),O=C7?C7(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",N=!O&&bo&&Object(t)===t&&bo in t?fU.call(_f(t),8,-1):D?"Object":"",H=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",G=H+(N||D?"["+Vl.call(S7.call([],N||[],D||[]),": ")+"] ":"");return k.length===0?G+"{}":h?G+"{"+l5(k,h)+"}":G+"{ "+Vl.call(k,", ")+" }"}return String(t)};function kne(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function G3e(e){return Pd.call(String(e),/"/g,""")}function a5(e){return _f(e)==="[object Array]"&&(!bo||!(typeof e=="object"&&bo in e))}function V3e(e){return _f(e)==="[object Date]"&&(!bo||!(typeof e=="object"&&bo in e))}function I7(e){return _f(e)==="[object RegExp]"&&(!bo||!(typeof e=="object"&&bo in e))}function q3e(e){return _f(e)==="[object Error]"&&(!bo||!(typeof e=="object"&&bo in e))}function X3e(e){return _f(e)==="[object String]"&&(!bo||!(typeof e=="object"&&bo in e))}function Y3e(e){return _f(e)==="[object Number]"&&(!bo||!(typeof e=="object"&&bo in e))}function K3e(e){return _f(e)==="[object Boolean]"&&(!bo||!(typeof e=="object"&&bo in e))}function Ane(e){if(sv)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!o5)return!1;try{return o5.call(e),!0}catch{}return!1}function Q3e(e){if(!e||typeof e!="object"||!i5)return!1;try{return i5.call(e),!0}catch{}return!1}var J3e=Object.prototype.hasOwnProperty||function(e){return e in this};function bd(e,t){return J3e.call(e,t)}function _f(e){return F3e.call(e)}function Z3e(e){if(e.name)return e.name;var t=j3e.call(z3e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ine(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Rne(fU.call(e,0,t.maxStringLength),t)+r}var i=Pd.call(Pd.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,s5e);return kne(i,"single",t)}function s5e(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+U3e.call(t.toString(16))}function Ub(e){return"Object("+e+")"}function BB(e){return e+" { ? }"}function R7(e,t,n,r){var i=r?l5(n,r):Vl.call(n,", ");return e+" ("+t+") {"+i+"}"}function a5e(e){for(var t=0;t=0)return!1;return!0}function l5e(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Vl.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Vl.call(Array(t+1),n)}}function l5(e,t){if(e.length===0)return"";var n=` +}`;var qe=db(function(){return ft(M,we+"return "+oe).apply(n,B)});if(qe.source=oe,Ih(qe))throw qe;return qe}function hL(l){return pt(l).toLowerCase()}function pL(l){return pt(l).toUpperCase()}function mL(l,d,m){if(l=pt(l),l&&(m||d===n))return xy(l);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ir(d),M=wy(_,T),B=_y(_,T)+1;return Hi(_,M,B).join("")}function gL(l,d,m){if(l=pt(l),l&&(m||d===n))return l.slice(0,Ey(l)+1);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=_y(_,Ir(d))+1;return Hi(_,0,T).join("")}function vL(l,d,m){if(l=pt(l),l&&(m||d===n))return l.replace(xo,"");if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=wy(_,Ir(d));return Hi(_,T).join("")}function yL(l,d){var m=N,_=H;if(Ft(d)){var T="separator"in d?d.separator:T;m="length"in d?Ge(d.length):m,_="omission"in d?Zn(d.omission):_}l=pt(l);var M=l.length;if(xs(l)){var B=Ir(l);M=B.length}if(m>=M)return l;var U=m-ws(_);if(U<1)return _;var Y=B?Hi(B,0,U).join(""):l.slice(0,U);if(T===n)return Y+_;if(B&&(U+=Y.length-U),Rh(T)){if(l.slice(U).search(T)){var ne,re=Y;for(T.global||(T=Vf(T.source,pt(lr.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;Y=Y.slice(0,oe===n?U:oe)}}else if(l.indexOf(Zn(T),U)!=U){var fe=Y.lastIndexOf(T);fe>-1&&(Y=Y.slice(0,fe))}return Y+_}function bL(l){return l=pt(l),l&&Kr.test(l)?l.replace(Hr,XI):l}var xL=As(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),Mh=f0("toUpperCase");function ub(l,d,m){return l=pt(l),d=m?n:d,d===n?HI(l)?QI(l):LI(l):l.match(d)||[]}var db=Ye(function(l,d){try{return Qn(l,n,d)}catch(m){return Ih(m)?m:new De(m)}}),wL=pi(function(l,d){return dr(d,function(m){m=Zr(m),fi(l,m,kh(l[m],l))}),l});function _L(l){var d=l==null?0:l.length,m=Te();return l=d?Nt(l,function(_){if(typeof _[1]!="function")throw new fr(s);return[m(_[0]),_[1]]}):[],Ye(function(_){for(var T=-1;++TW)return[];var m=Q,_=wn(l,Q);d=Te(d),l-=Q;for(var T=Hf(_,d);++m0||d<0)?new et(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=Ge(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},et.prototype.toArray=function(){return this.take(Q)},Qr(et.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),T=P[_?"take"+(d=="last"?"Right":""):d],M=_||/^find/.test(d);T&&(P.prototype[d]=function(){var B=this.__wrapped__,U=_?[1]:arguments,Y=B instanceof et,ne=U[0],re=Y||$e(B),oe=function(Je){var it=T.apply(P,Bi([Je],U));return _&&fe?it[0]:it};re&&m&&typeof ne=="function"&&ne.length!=1&&(Y=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,ke=M&&!fe,qe=Y&&!we;if(!M&&re){B=qe?B:new et(this);var Ae=l.apply(B,U);return Ae.__actions__.push({func:ru,args:[oe],thisArg:n}),new hr(Ae,fe)}return ke&&qe?l.apply(this,U):(Ae=this.thru(oe),ke?_?Ae.value()[0]:Ae.value():Ae)})}),dr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ic[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var T=arguments;if(_&&!this.__chain__){var M=this.value();return d.apply($e(M)?M:[],T)}return this[m](function(B){return d.apply($e(B)?B:[],T)})}}),Qr(et.prototype,function(l,d){var m=P[d];if(m){var _=m.name+"";bt.call(Cs,_)||(Cs[_]=[]),Cs[_].push({name:d,func:m})}}),Cs[Kc(n,w).name]=[{name:"wrapper",func:n}],et.prototype.clone=bR,et.prototype.reverse=xR,et.prototype.value=wR,P.prototype.at=K2,P.prototype.chain=Q2,P.prototype.commit=J2,P.prototype.next=Z2,P.prototype.plant=tO,P.prototype.reverse=nO,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=rO,P.prototype.first=P.prototype.head,$a&&(P.prototype[$a]=eO),P},_s=JI();_o?((_o.exports=_s)._=_s,Df._=_s):pn._=_s}).call(Xt)})(XC,XC.exports);var Qt=XC.exports;let e3e=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var um=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(um||{}),Sne=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Sne||{}),e5=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(e5||{}),Dt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Dt||{}),Kl=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(Kl||{}),Ve=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(Ve||{}),Eg=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(Eg||{}),Ot=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Ot||{}),t5=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(t5||{}),ku=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(ku||{}),Qd=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Qd||{}),fc=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(fc||{}),Ml=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(Ml||{}),Gl=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Gl||{}),uU=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(uU||{}),xa=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(xa||{}),bi=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(bi||{}),ri=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(ri||{}),sc=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(sc||{});const t3e={createCanvas:(e,t)=>{const n=document.createElement("canvas");return n.width=e,n.height=t,n},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},nt={ADAPTER:t3e,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var RB=/iPhone/i,l7=/iPod/i,c7=/iPad/i,u7=/\biOS-universal(?:.+)Mac\b/i,PB=/\bAndroid(?:.+)Mobile\b/i,d7=/Android/i,_m=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,uS=/Silk/i,pu=/Windows Phone/i,f7=/\bWindows(?:.+)ARM\b/i,h7=/BlackBerry/i,p7=/BB10/i,m7=/Opera Mini/i,g7=/\b(CriOS|Chrome)(?:.+)Mobile/i,v7=/Mobile(?:.+)Firefox\b/i,y7=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function n3e(e){return function(t){return t.test(e)}}function b7(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var i=n3e(n),o={apple:{phone:i(RB)&&!i(pu),ipod:i(l7),tablet:!i(RB)&&(i(c7)||y7(t))&&!i(pu),universal:i(u7),device:(i(RB)||i(l7)||i(c7)||i(u7)||y7(t))&&!i(pu)},amazon:{phone:i(_m),tablet:!i(_m)&&i(uS),device:i(_m)||i(uS)},android:{phone:!i(pu)&&i(_m)||!i(pu)&&i(PB),tablet:!i(pu)&&!i(_m)&&!i(PB)&&(i(uS)||i(d7)),device:!i(pu)&&(i(_m)||i(uS)||i(PB)||i(d7))||i(/\bokhttp\b/i)},windows:{phone:i(pu),tablet:i(f7),device:i(pu)||i(f7)},other:{blackberry:i(h7),blackberry10:i(p7),opera:i(m7),firefox:i(v7),chrome:i(g7),device:i(h7)||i(p7)||i(m7)||i(v7)||i(g7)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const r3e=b7.default??b7,Au=r3e(globalThis.navigator);nt.RETINA_PREFIX=/@([0-9\.]+)x/;nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Ene={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function o(c,u,f,h,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new i(f,h||c,p),v=n?n+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],g]:c._events[v].push(g):(c._events[v]=g,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],f,h;if(this._eventsCount===0)return u;for(h in f=this._events)t.call(f,h)&&u.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},a.prototype.listeners=function(u){var f=n?n+u:u,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,v=new Array(g);p80*n){a=u=e[0],c=f=e[1];for(var v=n;vu&&(u=h),p>f&&(f=p);g=Math.max(u-a,f-c),g=g!==0?32767/g:0}return Q1(o,s,n,a,c,g,0),s}function Cne(e,t,n,r,i){var o,s;if(i===i5(e,t,n,r)>0)for(o=t;o=t;o-=r)s=x7(o,e[o],e[o+1],s);return s&&kA(s,s.next)&&(Z1(s),s=s.next),s}function Xp(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(kA(n,n.next)||$r(n.prev,n,n.next)===0)){if(Z1(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function Q1(e,t,n,r,i,o,s){if(e){!s&&o&&p3e(e,r,i,o);for(var a=e,c,u;e.prev!==e.next;){if(c=e.prev,u=e.next,o?s3e(e,r,i,o):o3e(e)){t.push(c.i/n|0),t.push(e.i/n|0),t.push(u.i/n|0),Z1(e),e=u.next,a=u.next;continue}if(e=u,e===a){s?s===1?(e=a3e(Xp(e),t,n),Q1(e,t,n,r,i,o,2)):s===2&&l3e(e,t,n,r,i,o):Q1(Xp(e),t,n,r,i,o,1);break}}}}function o3e(e){var t=e.prev,n=e,r=e.next;if($r(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,s=r.x,a=t.y,c=n.y,u=r.y,f=io?i>s?i:s:o>s?o:s,g=a>c?a>u?a:u:c>u?c:u,v=r.next;v!==t;){if(v.x>=f&&v.x<=p&&v.y>=h&&v.y<=g&&ug(i,a,o,c,s,u,v.x,v.y)&&$r(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function s3e(e,t,n,r){var i=e.prev,o=e,s=e.next;if($r(i,o,s)>=0)return!1;for(var a=i.x,c=o.x,u=s.x,f=i.y,h=o.y,p=s.y,g=ac?a>u?a:u:c>u?c:u,S=f>h?f>p?f:p:h>p?h:p,w=n5(g,v,t,n,r),b=n5(y,S,t,n,r),x=e.prevZ,E=e.nextZ;x&&x.z>=w&&E&&E.z<=b;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&ug(a,f,c,h,u,p,x.x,x.y)&&$r(x.prev,x,x.next)>=0||(x=x.prevZ,E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&ug(a,f,c,h,u,p,E.x,E.y)&&$r(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;x&&x.z>=w;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&ug(a,f,c,h,u,p,x.x,x.y)&&$r(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;E&&E.z<=b;){if(E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&ug(a,f,c,h,u,p,E.x,E.y)&&$r(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function a3e(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!kA(i,o)&&Tne(i,r,r.next,o)&&J1(i,o)&&J1(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),Z1(r),Z1(r.next),r=e=o),r=r.next}while(r!==e);return Xp(r)}function l3e(e,t,n,r,i,o){var s=e;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&v3e(s,a)){var c=kne(s,a);s=Xp(s,s.next),c=Xp(c,c.next),Q1(s,t,n,r,i,o,0),Q1(c,t,n,r,i,o,0);return}a=a.next}s=s.next}while(s!==e)}function c3e(e,t,n,r){var i=[],o,s,a,c,u;for(o=0,s=t.length;o=n.next.y&&n.next.y!==n.y){var a=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=r&&a>o&&(o=a,s=n.x=n.x&&n.x>=u&&r!==n.x&&ug(is.x||n.x===s.x&&h3e(s,n)))&&(s=n,h=p)),n=n.next;while(n!==c);return s}function h3e(e,t){return $r(e.prev,e,t.prev)<0&&$r(t.next,e,e.next)<0}function p3e(e,t,n,r){var i=e;do i.z===0&&(i.z=n5(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,m3e(i)}function m3e(e){var t,n,r,i,o,s,a,c,u=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,r=n,a=0,t=0;t0||c>0&&r;)a!==0&&(c===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(s>1);return e}function n5(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function g3e(e){var t=e,n=e;do(t.x=(e-s)*(o-a)&&(e-s)*(r-a)>=(n-s)*(t-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function v3e(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!y3e(e,t)&&(J1(e,t)&&J1(t,e)&&b3e(e,t)&&($r(e.prev,e,t.prev)||$r(e,t.prev,t))||kA(e,t)&&$r(e.prev,e,e.next)>0&&$r(t.prev,t,t.next)>0)}function $r(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function kA(e,t){return e.x===t.x&&e.y===t.y}function Tne(e,t,n,r){var i=fS($r(e,t,n)),o=fS($r(e,t,r)),s=fS($r(n,r,e)),a=fS($r(n,r,t));return!!(i!==o&&s!==a||i===0&&dS(e,n,t)||o===0&&dS(e,r,t)||s===0&&dS(n,e,r)||a===0&&dS(n,t,r))}function dS(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function fS(e){return e>0?1:e<0?-1:0}function y3e(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Tne(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function J1(e,t){return $r(e.prev,e,e.next)<0?$r(e,t,e.next)>=0&&$r(e,e.prev,t)>=0:$r(e,t,e.prev)<0||$r(e,e.next,t)<0}function b3e(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function kne(e,t){var n=new r5(e.i,e.x,e.y),r=new r5(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function x7(e,t,n,r){var i=new r5(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Z1(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function r5(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}TA.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,s=Math.abs(i5(e,0,o,n));if(i)for(var a=0,c=t.length;a0&&(r+=e[i-1].length,n.holes.push(r))}return n};var x3e=dU.exports;const w3e=ds(x3e);var YC={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */YC.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Xt=="object"&&Xt;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,a=2147483647,c=36,u=1,f=26,h=38,p=700,g=72,v=128,y="-",S=/^xn--/,w=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=c-u,I=Math.floor,A=String.fromCharCode,k;function O(X){throw new RangeError(x[X])}function D(X,Q){for(var ie=X.length,ce=[];ie--;)ce[ie]=Q(X[ie]);return ce}function N(X,Q){var ie=X.split("@"),ce="";ie.length>1&&(ce=ie[0]+"@",X=ie[1]),X=X.replace(b,".");var ue=X.split("."),se=D(ue,Q).join(".");return ce+se}function H(X){for(var Q=[],ie=0,ce=X.length,ue,se;ie=55296&&ue<=56319&&ie65535&&(Q-=65536,ie+=A(Q>>>10&1023|55296),Q=56320|Q&1023),ie+=A(Q),ie}).join("")}function z(X){return X-48<10?X-22:X-65<26?X-65:X-97<26?X-97:c}function L(X,Q){return X+22+75*(X<26)-((Q!=0)<<5)}function F(X,Q,ie){var ce=0;for(X=ie?I(X/p):X>>1,X+=I(X/Q);X>E*f>>1;ce+=c)X=I(X/E);return I(ce+(E+1)*X/(X+h))}function j(X){var Q=[],ie=X.length,ce,ue=0,se=v,J=g,ae,le,he,pe,ve,ye,xe,me,be;for(ae=X.lastIndexOf(y),ae<0&&(ae=0),le=0;le=128&&O("not-basic"),Q.push(X.charCodeAt(le));for(he=ae>0?ae+1:0;he=ie&&O("invalid-input"),xe=z(X.charCodeAt(he++)),(xe>=c||xe>I((a-ue)/ve))&&O("overflow"),ue+=xe*ve,me=ye<=J?u:ye>=J+f?f:ye-J,!(xeI(a/be)&&O("overflow"),ve*=be;ce=Q.length+1,J=F(ue-pe,ce,pe==0),I(ue/ce)>a-se&&O("overflow"),se+=I(ue/ce),ue%=ce,Q.splice(ue++,0,se)}return G(Q)}function V(X){var Q,ie,ce,ue,se,J,ae,le,he,pe,ve,ye=[],xe,me,be,Ze;for(X=H(X),xe=X.length,Q=v,ie=0,se=g,J=0;J=Q&&veI((a-ie)/me)&&O("overflow"),ie+=(ae-Q)*me,Q=ae,J=0;Ja&&O("overflow"),ve==Q){for(le=ie,he=c;pe=he<=se?u:he>=se+f?f:he-se,!(le"u"||!ki?dn:ki(Uint8Array),Ap={"%AggregateError%":typeof AggregateError>"u"?dn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dn:ArrayBuffer,"%ArrayIteratorPrototype%":Sm&&ki?ki([][Symbol.iterator]()):dn,"%AsyncFromSyncIteratorPrototype%":dn,"%AsyncFunction%":Dm,"%AsyncGenerator%":Dm,"%AsyncGeneratorFunction%":Dm,"%AsyncIteratorPrototype%":Dm,"%Atomics%":typeof Atomics>"u"?dn:Atomics,"%BigInt%":typeof BigInt>"u"?dn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?dn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dn:FinalizationRegistry,"%Function%":Ane,"%GeneratorFunction%":Dm,"%Int8Array%":typeof Int8Array>"u"?dn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Sm&&ki?ki(ki([][Symbol.iterator]())):dn,"%JSON%":typeof JSON=="object"?JSON:dn,"%Map%":typeof Map>"u"?dn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Sm||!ki?dn:ki(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dn:Promise,"%Proxy%":typeof Proxy>"u"?dn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?dn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Sm||!ki?dn:ki(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Sm&&ki?ki(""[Symbol.iterator]()):dn,"%Symbol%":Sm?Symbol:dn,"%SyntaxError%":av,"%ThrowTypeError%":D3e,"%TypedArray%":B3e,"%TypeError%":Cg,"%Uint8Array%":typeof Uint8Array>"u"?dn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?dn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dn:WeakSet};if(ki)try{null.error}catch(e){var $3e=ki(ki(e));Ap["%Error.prototype%"]=$3e}var F3e=function e(t){var n;if(t==="%AsyncFunction%")n=MB("async function () {}");else if(t==="%GeneratorFunction%")n=MB("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=MB("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ki&&(n=ki(i.prototype))}return Ap[t]=n,n},S7={"%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"]},Yw=fU,KC=L3e,z3e=Yw.call(Function.call,Array.prototype.concat),j3e=Yw.call(Function.apply,Array.prototype.splice),E7=Yw.call(Function.call,String.prototype.replace),QC=Yw.call(Function.call,String.prototype.slice),U3e=Yw.call(Function.call,RegExp.prototype.exec),H3e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W3e=/\\(\\)?/g,G3e=function(t){var n=QC(t,0,1),r=QC(t,-1);if(n==="%"&&r!=="%")throw new av("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new av("invalid intrinsic syntax, expected opening `%`");var i=[];return E7(t,H3e,function(o,s,a,c){i[i.length]=a?E7(c,W3e,"$1"):s||o}),i},V3e=function(t,n){var r=t,i;if(KC(S7,r)&&(i=S7[r],r="%"+i[0]+"%"),KC(Ap,r)){var o=Ap[r];if(o===Dm&&(o=F3e(r)),typeof o>"u"&&!n)throw new Cg("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new av("intrinsic "+t+" does not exist!")},hU=function(t,n){if(typeof t!="string"||t.length===0)throw new Cg("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Cg('"allowMissing" argument must be a boolean');if(U3e(/^%?[^%]*%?$/,t)===null)throw new av("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G3e(t),i=r.length>0?r[0]:"",o=V3e("%"+i+"%",n),s=o.name,a=o.value,c=!1,u=o.alias;u&&(i=u[0],j3e(r,z3e([0,1],u)));for(var f=1,h=!0;f=r.length){var y=kp(a,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[p]}else h=KC(a,p),a=a[p];h&&!c&&(Ap[s]=a)}}return a},Ine={exports:{}};(function(e){var t=fU,n=hU,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var g=s(p,"length");g.configurable&&a(p,"length",{value:1+c(0,h.length-(arguments.length-1))})}return p};var u=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u})(Ine);var q3e=Ine.exports,Rne=hU,Pne=q3e,X3e=Pne(Rne("String.prototype.indexOf")),Y3e=function(t,n){var r=Rne(t,!!n);return typeof r=="function"&&X3e(t,".prototype.")>-1?Pne(r):r};const K3e={},Q3e=Object.freeze(Object.defineProperty({__proto__:null,default:K3e},Symbol.toStringTag,{value:"Module"})),One=o4(Q3e);var pU=typeof Map=="function"&&Map.prototype,DB=Object.getOwnPropertyDescriptor&&pU?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,JC=pU&&DB&&typeof DB.get=="function"?DB.get:null,C7=pU&&Map.prototype.forEach,mU=typeof Set=="function"&&Set.prototype,NB=Object.getOwnPropertyDescriptor&&mU?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ZC=mU&&NB&&typeof NB.get=="function"?NB.get:null,T7=mU&&Set.prototype.forEach,J3e=typeof WeakMap=="function"&&WeakMap.prototype,Yx=J3e?WeakMap.prototype.has:null,Z3e=typeof WeakSet=="function"&&WeakSet.prototype,Kx=Z3e?WeakSet.prototype.has:null,e5e=typeof WeakRef=="function"&&WeakRef.prototype,k7=e5e?WeakRef.prototype.deref:null,t5e=Boolean.prototype.valueOf,n5e=Object.prototype.toString,r5e=Function.prototype.toString,i5e=String.prototype.match,gU=String.prototype.slice,Pd=String.prototype.replace,o5e=String.prototype.toUpperCase,A7=String.prototype.toLowerCase,Mne=RegExp.prototype.test,I7=Array.prototype.concat,Vl=Array.prototype.join,s5e=Array.prototype.slice,R7=Math.floor,o5=typeof BigInt=="function"?BigInt.prototype.valueOf:null,BB=Object.getOwnPropertySymbols,s5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,lv=typeof Symbol=="function"&&typeof Symbol.iterator=="object",bo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===lv||"symbol")?Symbol.toStringTag:null,Lne=Object.prototype.propertyIsEnumerable,P7=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O7(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Mne.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-R7(-e):R7(e);if(r!==e){var i=String(r),o=gU.call(t,i.length+1);return Pd.call(i,n,"$&_")+"."+Pd.call(Pd.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Pd.call(t,n,"$&_")}var a5=One,M7=a5.custom,L7=Nne(M7)?M7:null,a5e=function e(t,n,r,i){var o=n||{};if(yd(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yd(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=yd(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yd(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yd(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return $ne(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return a?O7(t,c):c}if(typeof t=="bigint"){var u=String(t)+"n";return a?O7(t,u):u}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return l5(t)?"[Array]":"[Object]";var h=C5e(o,r);if(typeof i>"u")i=[];else if(Bne(i,t)>=0)return"[Circular]";function p(z,L,F){if(L&&(i=s5e.call(i),i.push(L)),F){var j={depth:o.depth};return yd(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(z,j,r+1,i)}return e(z,o,r+1,i)}if(typeof t=="function"&&!D7(t)){var g=g5e(t),v=hS(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Vl.call(v,", ")+" }":"")}if(Nne(t)){var y=lv?Pd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):s5.call(t);return typeof t=="object"&&!lv?jb(y):y}if(_5e(t)){for(var S="<"+A7.call(String(t.nodeName)),w=t.attributes||[],b=0;b",S}if(l5(t)){if(t.length===0)return"[]";var x=hS(t,p);return h&&!E5e(x)?"["+c5(x,h)+"]":"[ "+Vl.call(x,", ")+" ]"}if(u5e(t)){var E=hS(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Lne.call(t,"cause")?"{ ["+String(t)+"] "+Vl.call(I7.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Vl.call(E,", ")+" }"}if(typeof t=="object"&&s){if(L7&&typeof t[L7]=="function"&&a5)return a5(t,{depth:f-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(v5e(t)){var I=[];return C7&&C7.call(t,function(z,L){I.push(p(L,t,!0)+" => "+p(z,t))}),N7("Map",JC.call(t),I,h)}if(x5e(t)){var A=[];return T7&&T7.call(t,function(z){A.push(p(z,t))}),N7("Set",ZC.call(t),A,h)}if(y5e(t))return $B("WeakMap");if(w5e(t))return $B("WeakSet");if(b5e(t))return $B("WeakRef");if(f5e(t))return jb(p(Number(t)));if(p5e(t))return jb(p(o5.call(t)));if(h5e(t))return jb(t5e.call(t));if(d5e(t))return jb(p(String(t)));if(!c5e(t)&&!D7(t)){var k=hS(t,p),O=P7?P7(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",N=!O&&bo&&Object(t)===t&&bo in t?gU.call(Sf(t),8,-1):D?"Object":"",H=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",G=H+(N||D?"["+Vl.call(I7.call([],N||[],D||[]),": ")+"] ":"");return k.length===0?G+"{}":h?G+"{"+c5(k,h)+"}":G+"{ "+Vl.call(k,", ")+" }"}return String(t)};function Dne(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function l5e(e){return Pd.call(String(e),/"/g,""")}function l5(e){return Sf(e)==="[object Array]"&&(!bo||!(typeof e=="object"&&bo in e))}function c5e(e){return Sf(e)==="[object Date]"&&(!bo||!(typeof e=="object"&&bo in e))}function D7(e){return Sf(e)==="[object RegExp]"&&(!bo||!(typeof e=="object"&&bo in e))}function u5e(e){return Sf(e)==="[object Error]"&&(!bo||!(typeof e=="object"&&bo in e))}function d5e(e){return Sf(e)==="[object String]"&&(!bo||!(typeof e=="object"&&bo in e))}function f5e(e){return Sf(e)==="[object Number]"&&(!bo||!(typeof e=="object"&&bo in e))}function h5e(e){return Sf(e)==="[object Boolean]"&&(!bo||!(typeof e=="object"&&bo in e))}function Nne(e){if(lv)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!s5)return!1;try{return s5.call(e),!0}catch{}return!1}function p5e(e){if(!e||typeof e!="object"||!o5)return!1;try{return o5.call(e),!0}catch{}return!1}var m5e=Object.prototype.hasOwnProperty||function(e){return e in this};function yd(e,t){return m5e.call(e,t)}function Sf(e){return n5e.call(e)}function g5e(e){if(e.name)return e.name;var t=i5e.call(r5e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Bne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $ne(gU.call(e,0,t.maxStringLength),t)+r}var i=Pd.call(Pd.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,S5e);return Dne(i,"single",t)}function S5e(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+o5e.call(t.toString(16))}function jb(e){return"Object("+e+")"}function $B(e){return e+" { ? }"}function N7(e,t,n,r){var i=r?c5(n,r):Vl.call(n,", ");return e+" ("+t+") {"+i+"}"}function E5e(e){for(var t=0;t=0)return!1;return!0}function C5e(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Vl.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Vl.call(Array(t+1),n)}}function c5(e,t){if(e.length===0)return"";var n=` `+t.prev+t.base;return n+Vl.call(e,","+n)+` -`+t.prev}function fS(e,t){var n=a5(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(lp(r)){for(var i=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===S5e.RFC1738&&(u===40||u===41)){a+=s.charAt(c);continue}if(u<128){a=a+$l[u];continue}if(u<2048){a=a+($l[192|u>>6]+$l[128|u&63]);continue}if(u<55296||u>=57344){a=a+($l[224|u>>12]+$l[128|u>>6&63]+$l[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),a+=$l[240|u>>18]+$l[128|u>>12&63]+$l[128|u>>6&63]+$l[128|u&63]}return a},I5e=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(x=0)}if(typeof c=="function"?w=c(n,w):w instanceof Date?w=h(w):r==="comma"&&xu(w)&&(w=CE.maybeMap(w,function(j){return j instanceof Date?h(j):j})),w===null){if(o)return a&&!v?a(n,co.encoder,y,"key",p):n;w=""}if(B5e(w)||CE.isBuffer(w)){if(a){var A=v?n:a(n,co.encoder,y,"key",p);return[g(A)+"="+g(a(w,co.encoder,y,"value",p))]}return[g(n)+"="+g(String(w))]}var k=[];if(typeof w>"u")return k;var O;if(r==="comma"&&xu(w))v&&a&&(w=CE.maybeMap(w,a)),O=[{value:w.length>0?w.join(",")||null:void 0}];else if(xu(c))O=c;else{var D=Object.keys(w);O=u?D.sort(u):D}for(var N=i&&xu(w)&&w.length===1?n+"[]":n,H=0;H"u"?co.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:co.charsetSentinel,delimiter:typeof t.delimiter>"u"?co.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:co.encode,encoder:typeof t.encoder=="function"?t.encoder:co.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:co.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:co.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:co.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:co.strictNullHandling}},z5e=function(e,t){var n=e,r=F5e(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):xu(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in P7?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var c=P7[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=Mne(),h=0;h0?v+g:""},av=One,c5=Object.prototype.hasOwnProperty,j5e=Array.isArray,Ci={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:av.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},U5e=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Dne=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},H5e="utf8=%26%2310003%3B",W5e="utf8=%E2%9C%93",G5e=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,c,u=n.charset;if(n.charsetSentinel)for(c=0;c-1&&(v=j5e(v)?[v]:v),c5.call(r,g)?r[g]=av.combine(r[g],v):r[g]=v}return r},V5e=function(e,t,n,r){for(var i=r?t:Dne(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=parseInt(c,10);!n.parseArrays&&c===""?s={0:i}:!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[],s[u]=i):c!=="__proto__"&&(s[c]=i)}i=s}return i},q5e=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=r.depth>0&&s.exec(o),u=c?o.slice(0,c.index):o,f=[];if(u){if(!r.plainObjects&&c5.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var h=0;r.depth>0&&(c=a.exec(o))!==null&&h"u"?Ci.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ci.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ci.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ci.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ci.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ci.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ci.comma,decoder:typeof t.decoder=="function"?t.decoder:Ci.decoder,delimiter:typeof t.delimiter=="string"||av.isRegExp(t.delimiter)?t.delimiter:Ci.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ci.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ci.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ci.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ci.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ci.strictNullHandling}},Y5e=function(e,t){var n=X5e(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?G5e(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s",'"',"`"," ","\r",` -`," "],o4e=["{","}","|","\\","^","`"].concat(i4e),u5=["'"].concat(o4e),M7=["%","/","?",";","#"].concat(u5),L7=["/","?","#"],s4e=255,D7=/^[+a-z0-9A-Z_-]{0,63}$/,a4e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,l4e={javascript:!0,"javascript:":!0},d5={javascript:!0,"javascript:":!0},Sg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f5=Z5e;function kA(e,t,n){if(e&&typeof e=="object"&&e instanceof Sl)return e;var r=new Sl;return r.parse(e,t,n),r}Sl.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?I+="x":I+=E[A];if(!I.match(D7)){var O=b.slice(0,g),D=b.slice(g+1),N=E.match(a4e);N&&(O.push(N[1]),D.unshift(N[2])),D.length&&(a="/"+D.join(".")+a),this.hostname=O.join(".");break}}}this.hostname.length>s4e?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=e4e.toASCII(this.hostname));var H=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+H,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!l4e[f])for(var g=0,x=u5.length;g0?n.host.split("@"):!1;I&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=b.slice(-1)[0],k=(n.host||e.host||b.length>1)&&(A==="."||A==="..")||A==="",O=0,D=b.length;D>=0;D--)A=b[D],A==="."?b.splice(D,1):A===".."?(b.splice(D,1),O++):O&&(b.splice(D,1),O--);if(!S&&!w)for(;O--;O)b.unshift("..");S&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")&&b.unshift(""),k&&b.join("/").substr(-1)!=="/"&&b.push("");var N=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(E){n.hostname=N?"":b.length?b.shift():"",n.host=n.hostname;var I=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;I&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname)}return S=S||n.host&&b.length,S&&!N&&b.unshift(""),b.length>0?n.pathname=b.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};Sl.prototype.parseHost=function(){var e=this.host,t=n4e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var d4e=kA,f4e=u4e,h4e=c4e;const p4e={parse:d4e,format:h4e,resolve:f4e};function Za(e){if(typeof e!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function Hb(e){return e.split("?")[0].split("#")[0]}function m4e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g4e(e,t,n){return e.replace(new RegExp(m4e(t),"g"),n)}function v4e(e,t){let n="",r=0,i=-1,o=0,s=-1;for(let a=0;a<=e.length;++a){if(a2){const c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+=`/${e.slice(i+1,a)}`:n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}const vo={toPosix(e){return g4e(e,"\\","/")},isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol(e){Za(e),e=this.toPosix(e);let t="";const n=/^file:\/\/\//.exec(e),r=/^[^/:]+:\/\//.exec(e),i=/^[^/:]+:\//.exec(e);if(n||r||i){const o=(n==null?void 0:n[0])||(r==null?void 0:r[0])||(i==null?void 0:i[0]);t=o,e=e.slice(o.length)}return t},toAbsolute(e,t,n){if(this.isDataUrl(e))return e;const r=Hb(this.toPosix(t??nt.ADAPTER.getBaseUrl())),i=Hb(this.toPosix(n??this.rootname(r)));return Za(e),e=this.toPosix(e),e.startsWith("/")?vo.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(r,e)},normalize(e){if(e=this.toPosix(e),Za(e),e.length===0)return".";let t="";const n=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));const r=e.endsWith("/");return e=v4e(e,!1),e.length>0&&r&&(e+="/"),n?`/${e}`:t+e},isAbsolute(e){return Za(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join(...e){if(e.length===0)return".";let t;for(let n=0;n0)if(t===void 0)t=r;else{const i=e[n-1]??"";this.extname(i)?t+=`/../${r}`:t+=`/${r}`}}return t===void 0?".":this.normalize(t)},dirname(e){if(Za(e),e.length===0)return".";e=this.toPosix(e);let t=e.charCodeAt(0);const n=t===47;let r=-1,i=!0;const o=this.getProtocol(e),s=e;e=e.slice(o.length);for(let a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!i){r=a;break}}else i=!1;return r===-1?n?"/":this.isUrl(s)?o+e:o:n&&r===1?"//":o+e.slice(0,r)},rootname(e){Za(e),e=this.toPosix(e);let t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){const n=e.indexOf("/",t.length);n!==-1?t=e.slice(0,n):t=e,t.endsWith("/")||(t+="/")}return t},basename(e,t){Za(e),t&&Za(t),e=Hb(this.toPosix(e));let n=0,r=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){const c=e.charCodeAt(o);if(c===47){if(!i){n=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){Za(e),e=Hb(this.toPosix(e));let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a===47){if(!i){n=s+1;break}continue}r===-1&&(i=!1,r=s+1),a===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},parse(e){Za(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=Hb(this.toPosix(e));let n=e.charCodeAt(0);const r=this.isAbsolute(e);let i;t.root=this.rootname(e),r||this.hasProtocol(e)?i=1:i=0;let o=-1,s=0,a=-1,c=!0,u=e.length-1,f=0;for(;u>=i;--u){if(n=e.charCodeAt(u),n===47){if(!c){s=u+1;break}continue}a===-1&&(c=!1,a=u+1),n===46?o===-1?o=u:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||a===-1||f===0||f===1&&o===a-1&&o===s+1?a!==-1&&(s===0&&r?t.base=t.name=e.slice(1,a):t.base=t.name=e.slice(s,a)):(s===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,a)):(t.name=e.slice(s,o),t.base=e.slice(s,a)),t.ext=e.slice(o,a)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"},N7={};function fn(e,t,n=3){if(N7[t])return;let r=new Error().stack;typeof r>"u"?console.warn("PixiJS Deprecation Warning: ",`${t} +`+t.prev}function hS(e,t){var n=l5(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(cp(r)){for(var i=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===z5e.RFC1738&&(u===40||u===41)){a+=s.charAt(c);continue}if(u<128){a=a+$l[u];continue}if(u<2048){a=a+($l[192|u>>6]+$l[128|u&63]);continue}if(u<55296||u>=57344){a=a+($l[224|u>>12]+$l[128|u>>6&63]+$l[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),a+=$l[240|u>>18]+$l[128|u>>12&63]+$l[128|u>>6&63]+$l[128|u&63]}return a},V5e=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(x=0)}if(typeof c=="function"?w=c(n,w):w instanceof Date?w=h(w):r==="comma"&&wu(w)&&(w=kE.maybeMap(w,function(j){return j instanceof Date?h(j):j})),w===null){if(o)return a&&!v?a(n,co.encoder,y,"key",p):n;w=""}if(e4e(w)||kE.isBuffer(w)){if(a){var A=v?n:a(n,co.encoder,y,"key",p);return[g(A)+"="+g(a(w,co.encoder,y,"value",p))]}return[g(n)+"="+g(String(w))]}var k=[];if(typeof w>"u")return k;var O;if(r==="comma"&&wu(w))v&&a&&(w=kE.maybeMap(w,a)),O=[{value:w.length>0?w.join(",")||null:void 0}];else if(wu(c))O=c;else{var D=Object.keys(w);O=u?D.sort(u):D}for(var N=i&&wu(w)&&w.length===1?n+"[]":n,H=0;H"u"?co.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:co.charsetSentinel,delimiter:typeof t.delimiter>"u"?co.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:co.encode,encoder:typeof t.encoder=="function"?t.encoder:co.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:co.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:co.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:co.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:co.strictNullHandling}},r4e=function(e,t){var n=e,r=n4e(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):wu(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in B7?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var c=B7[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=jne(),h=0;h0?v+g:""},cv=zne,u5=Object.prototype.hasOwnProperty,i4e=Array.isArray,Ci={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:cv.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o4e=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Hne=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s4e="utf8=%26%2310003%3B",a4e="utf8=%E2%9C%93",l4e=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,c,u=n.charset;if(n.charsetSentinel)for(c=0;c-1&&(v=i4e(v)?[v]:v),u5.call(r,g)?r[g]=cv.combine(r[g],v):r[g]=v}return r},c4e=function(e,t,n,r){for(var i=r?t:Hne(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=parseInt(c,10);!n.parseArrays&&c===""?s={0:i}:!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[],s[u]=i):c!=="__proto__"&&(s[c]=i)}i=s}return i},u4e=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=r.depth>0&&s.exec(o),u=c?o.slice(0,c.index):o,f=[];if(u){if(!r.plainObjects&&u5.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var h=0;r.depth>0&&(c=a.exec(o))!==null&&h"u"?Ci.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ci.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ci.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ci.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ci.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ci.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ci.comma,decoder:typeof t.decoder=="function"?t.decoder:Ci.decoder,delimiter:typeof t.delimiter=="string"||cv.isRegExp(t.delimiter)?t.delimiter:Ci.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ci.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ci.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ci.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ci.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ci.strictNullHandling}},f4e=function(e,t){var n=d4e(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?l4e(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s",'"',"`"," ","\r",` +`," "],_4e=["{","}","|","\\","^","`"].concat(w4e),d5=["'"].concat(_4e),F7=["%","/","?",";","#"].concat(d5),z7=["/","?","#"],S4e=255,j7=/^[+a-z0-9A-Z_-]{0,63}$/,E4e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,C4e={javascript:!0,"javascript:":!0},f5={javascript:!0,"javascript:":!0},Tg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h5=g4e;function AA(e,t,n){if(e&&typeof e=="object"&&e instanceof Sl)return e;var r=new Sl;return r.parse(e,t,n),r}Sl.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?I+="x":I+=E[A];if(!I.match(j7)){var O=b.slice(0,g),D=b.slice(g+1),N=E.match(E4e);N&&(O.push(N[1]),D.unshift(N[2])),D.length&&(a="/"+D.join(".")+a),this.hostname=O.join(".");break}}}this.hostname.length>S4e?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=v4e.toASCII(this.hostname));var H=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+H,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!C4e[f])for(var g=0,x=d5.length;g0?n.host.split("@"):!1;I&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=b.slice(-1)[0],k=(n.host||e.host||b.length>1)&&(A==="."||A==="..")||A==="",O=0,D=b.length;D>=0;D--)A=b[D],A==="."?b.splice(D,1):A===".."?(b.splice(D,1),O++):O&&(b.splice(D,1),O--);if(!S&&!w)for(;O--;O)b.unshift("..");S&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")&&b.unshift(""),k&&b.join("/").substr(-1)!=="/"&&b.push("");var N=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(E){n.hostname=N?"":b.length?b.shift():"",n.host=n.hostname;var I=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;I&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname)}return S=S||n.host&&b.length,S&&!N&&b.unshift(""),b.length>0?n.pathname=b.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};Sl.prototype.parseHost=function(){var e=this.host,t=b4e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var A4e=AA,I4e=k4e,R4e=T4e;const P4e={parse:A4e,format:R4e,resolve:I4e};function Za(e){if(typeof e!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function Ub(e){return e.split("?")[0].split("#")[0]}function O4e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M4e(e,t,n){return e.replace(new RegExp(O4e(t),"g"),n)}function L4e(e,t){let n="",r=0,i=-1,o=0,s=-1;for(let a=0;a<=e.length;++a){if(a2){const c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+=`/${e.slice(i+1,a)}`:n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}const vo={toPosix(e){return M4e(e,"\\","/")},isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol(e){Za(e),e=this.toPosix(e);let t="";const n=/^file:\/\/\//.exec(e),r=/^[^/:]+:\/\//.exec(e),i=/^[^/:]+:\//.exec(e);if(n||r||i){const o=(n==null?void 0:n[0])||(r==null?void 0:r[0])||(i==null?void 0:i[0]);t=o,e=e.slice(o.length)}return t},toAbsolute(e,t,n){if(this.isDataUrl(e))return e;const r=Ub(this.toPosix(t??nt.ADAPTER.getBaseUrl())),i=Ub(this.toPosix(n??this.rootname(r)));return Za(e),e=this.toPosix(e),e.startsWith("/")?vo.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(r,e)},normalize(e){if(e=this.toPosix(e),Za(e),e.length===0)return".";let t="";const n=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));const r=e.endsWith("/");return e=L4e(e,!1),e.length>0&&r&&(e+="/"),n?`/${e}`:t+e},isAbsolute(e){return Za(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join(...e){if(e.length===0)return".";let t;for(let n=0;n0)if(t===void 0)t=r;else{const i=e[n-1]??"";this.extname(i)?t+=`/../${r}`:t+=`/${r}`}}return t===void 0?".":this.normalize(t)},dirname(e){if(Za(e),e.length===0)return".";e=this.toPosix(e);let t=e.charCodeAt(0);const n=t===47;let r=-1,i=!0;const o=this.getProtocol(e),s=e;e=e.slice(o.length);for(let a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!i){r=a;break}}else i=!1;return r===-1?n?"/":this.isUrl(s)?o+e:o:n&&r===1?"//":o+e.slice(0,r)},rootname(e){Za(e),e=this.toPosix(e);let t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){const n=e.indexOf("/",t.length);n!==-1?t=e.slice(0,n):t=e,t.endsWith("/")||(t+="/")}return t},basename(e,t){Za(e),t&&Za(t),e=Ub(this.toPosix(e));let n=0,r=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){const c=e.charCodeAt(o);if(c===47){if(!i){n=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){Za(e),e=Ub(this.toPosix(e));let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a===47){if(!i){n=s+1;break}continue}r===-1&&(i=!1,r=s+1),a===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},parse(e){Za(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=Ub(this.toPosix(e));let n=e.charCodeAt(0);const r=this.isAbsolute(e);let i;t.root=this.rootname(e),r||this.hasProtocol(e)?i=1:i=0;let o=-1,s=0,a=-1,c=!0,u=e.length-1,f=0;for(;u>=i;--u){if(n=e.charCodeAt(u),n===47){if(!c){s=u+1;break}continue}a===-1&&(c=!1,a=u+1),n===46?o===-1?o=u:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||a===-1||f===0||f===1&&o===a-1&&o===s+1?a!==-1&&(s===0&&r?t.base=t.name=e.slice(1,a):t.base=t.name=e.slice(s,a)):(s===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,a)):(t.name=e.slice(s,o),t.base=e.slice(s,a)),t.ext=e.slice(o,a)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"},U7={};function fn(e,t,n=3){if(U7[t])return;let r=new Error().stack;typeof r>"u"?console.warn("PixiJS Deprecation Warning: ",`${t} Deprecated since v${e}`):(r=r.split(` `).splice(n).join(` `),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t} Deprecated since v${e}`),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${t} -Deprecated since v${e}`),console.warn(r))),N7[t]=!0}let jB;function y4e(){return typeof jB>"u"&&(jB=function(){var n;const t={stencil:!0,failIfMajorPerformanceCaveat:nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!nt.ADAPTER.getWebGLRenderingContext())return!1;const r=nt.ADAPTER.createCanvas();let i=r.getContext("webgl",t)||r.getContext("experimental-webgl",t);const o=!!((n=i==null?void 0:i.getContextAttributes())!=null&&n.stencil);if(i){const s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,o}catch{return!1}}()),jB}var b4e={grad:.9,turn:360,rad:360/(2*Math.PI)},pu=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Ai=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},xa=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Nne=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},B7=function(e){return{r:xa(e.r,0,255),g:xa(e.g,0,255),b:xa(e.b,0,255),a:xa(e.a)}},UB=function(e){return{r:Ai(e.r),g:Ai(e.g),b:Ai(e.b),a:Ai(e.a,3)}},x4e=/^#([0-9a-f]{3,8})$/i,mS=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Bne=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:i}},$ne=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),c=r*(1-(1-t+o)*n),u=o%6;return{r:255*[r,a,s,s,c,r][u],g:255*[c,r,r,a,s,s][u],b:255*[s,s,c,r,r,a][u],a:i}},$7=function(e){return{h:Nne(e.h),s:xa(e.s,0,100),l:xa(e.l,0,100),a:xa(e.a)}},F7=function(e){return{h:Ai(e.h),s:Ai(e.s),l:Ai(e.l),a:Ai(e.a,3)}},z7=function(e){return $ne((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Zx=function(e){return{h:(t=Bne(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},w4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,h5={string:[[function(e){var t=x4e.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Ai(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Ai(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=S4e.exec(e)||E4e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:B7({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=w4e.exec(e)||_4e.exec(e);if(!t)return null;var n,r,i=$7({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(b4e[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return z7(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i===void 0?1:i;return pu(t)&&pu(n)&&pu(r)?B7({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=i===void 0?1:i;if(!pu(t)||!pu(n)||!pu(r))return null;var s=$7({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return z7(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=i===void 0?1:i;if(!pu(t)||!pu(n)||!pu(r))return null;var s=function(a){return{h:Nne(a.h),s:xa(a.s,0,100),v:xa(a.v,0,100),a:xa(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return $ne(s)},"hsv"]]},j7=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=UB(this.rgba),n=t.r,r=t.g,i=t.b,s=(o=t.a)<1?mS(Ai(255*o)):"","#"+mS(n)+mS(r)+mS(i)+s;var t,n,r,i,o,s},e.prototype.toRgb=function(){return UB(this.rgba)},e.prototype.toRgbString=function(){return t=UB(this.rgba),n=t.r,r=t.g,i=t.b,(o=t.a)<1?"rgba("+n+", "+r+", "+i+", "+o+")":"rgb("+n+", "+r+", "+i+")";var t,n,r,i,o},e.prototype.toHsl=function(){return F7(Zx(this.rgba))},e.prototype.toHslString=function(){return t=F7(Zx(this.rgba)),n=t.h,r=t.s,i=t.l,(o=t.a)<1?"hsla("+n+", "+r+"%, "+i+"%, "+o+")":"hsl("+n+", "+r+"%, "+i+"%)";var t,n,r,i,o},e.prototype.toHsv=function(){return t=Bne(this.rgba),{h:Ai(t.h),s:Ai(t.s),v:Ai(t.v),a:Ai(t.a,3)};var t},e.prototype.invert=function(){return Fl({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Fl(HB(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Fl(HB(this.rgba,-t))},e.prototype.grayscale=function(){return Fl(HB(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Fl(U7(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Fl(U7(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Fl({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Ai(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Zx(this.rgba);return typeof t=="number"?Fl({h:t,s:n.s,l:n.l,a:n.a}):Ai(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Fl(t).toHex()},e}(),Fl=function(e){return e instanceof p5?e:new p5(e)},H7=[],T4e=function(e){e.forEach(function(t){H7.indexOf(t)<0&&(t(p5,h5),H7.push(t))})};function k4e(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var o={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,u=r[this.toHex()];if(u)return u;if(s!=null&&s.closest){var f=this.toRgb(),h=1/0,p="black";if(!o.length)for(var g in n)o[g]=new e(n[g]).toRgb();for(var v in n){var y=(a=f,c=o[v],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));yi===t[o]);if(e!==null&&t!==null){const i=Object.keys(e),o=Object.keys(t);return i.length!==o.length?!1:i.every(s=>e[s]===t[s])}return e===t}toRgba(){const[e,t,n,r]=this._components;return{r:e,g:t,b:n,a:r}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,r]=this._components;return e=e??[],e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(r*255),e}toRgbArray(e){e=e??[];const[t,n,r]=this._components;return e[0]=t,e[1]=n,e[2]=r,e}toNumber(){return this._int}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[t,n,r,i]=Eg.temp.setValue(e)._components;return this._components[0]*=t,this._components[1]*=n,this._components[2]*=r,this._components[3]*=i,this.refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this.refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(e===1)return(255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,r=this._int>>8&255,i=this._int&255;return t&&(n=n*e+.5|0,r=r*e+.5|0,i=i*e+.5|0),(e*255<<24)+(n<<16)+(r<<8)+i}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const t=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(e){return this._components[3]=this._clamp(e),this}round(e){const[t,n,r]=this._components;return this._components[0]=Math.round(t*e)/e,this._components[1]=Math.round(n*e)/e,this._components[2]=Math.round(r*e)/e,this.refreshInt(),this._value=null,this}toArray(e){e=e??[];const[t,n,r,i]=this._components;return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}normalize(e){let t,n,r,i;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const o=e;t=(o>>16&255)/255,n=(o>>8&255)/255,r=(o&255)/255,i=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[t,n,r,i=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[t,n,r,i=255]=e,t/=255,n/=255,r/=255,i/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const s=Eg.HEX_PATTERN.exec(e);s&&(e=`#${s[2]}`)}const o=Fl(e);o.isValid()&&({r:t,g:n,b:r,a:i}=o.rgba,t/=255,n/=255,r/=255)}if(t!==void 0)this._components[0]=t,this._components[1]=n,this._components[2]=r,this._components[3]=i,this.refreshInt();else throw new Error(`Unable to convert color ${e}`)}refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0)}_clamp(e,t=0,n=1){return typeof e=="number"?Math.min(Math.max(e,t),n):(e.forEach((r,i)=>{e[i]=Math.min(Math.max(r,t),n)}),e)}};let Vn=Eg;Vn.shared=new Eg;Vn.temp=new Eg;Vn.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;function A4e(e){return fn("7.2.0","utils.hex2string is deprecated, use Color#toHex instead"),Vn.shared.setValue(e).toHex()}function I4e(e){return fn("7.2.0","utils.rgb2hex is deprecated, use Color#toNumber instead"),Vn.shared.setValue(e).toNumber()}function R4e(){const e=[],t=[];for(let r=0;r<32;r++)e[r]=r,t[r]=r;e[Dt.NORMAL_NPM]=Dt.NORMAL,e[Dt.ADD_NPM]=Dt.ADD,e[Dt.SCREEN_NPM]=Dt.SCREEN,t[Dt.NORMAL]=Dt.NORMAL_NPM,t[Dt.ADD]=Dt.ADD_NPM,t[Dt.SCREEN]=Dt.SCREEN_NPM;const n=[];return n.push(t),n.push(e),n}const Fne=R4e();function zne(e,t){return Fne[t?1:0][e]}function P4e(e,t=null){const n=e*6;if(t=t||new Uint16Array(n),t.length!==n)throw new Error(`Out buffer length is incorrect, got ${t.length} and expected ${n}`);for(let r=0,i=0;r>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function W7(e){return!(e&e-1)&&!!e}function G7(e){let t=(e>65535?1:0)<<4;e>>>=t;let n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function Cg(e,t,n){const r=e.length;let i;if(t>=r||n===0)return;n=t+n>r?r-t:n;const o=r-n;for(i=t;i(e.Renderer="renderer",e.Application="application",e.RendererSystem="renderer-webgl-system",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererSystem="renderer-canvas-system",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Asset="asset",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser",e))(ot||{});const g5=e=>{if(typeof e=="function"||typeof e=="object"&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");e={...typeof e.extension!="object"?{type:e.extension}:e.extension,ref:e}}if(typeof e=="object")e={...e};else throw new Error("Invalid extension type");return typeof e.type=="string"&&(e.type=[e.type]),e},Y7=(e,t)=>g5(e).priority??t,wt={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...e){return e.map(g5).forEach(t=>{t.type.forEach(n=>{var r,i;return(i=(r=this._removeHandlers)[n])==null?void 0:i.call(r,t)})}),this},add(...e){return e.map(g5).forEach(t=>{t.type.forEach(n=>{const r=this._addHandlers,i=this._queue;r[n]?r[n](t):(i[n]=i[n]||[],i[n].push(t))})}),this},handle(e,t,n){const r=this._addHandlers,i=this._removeHandlers;if(r[e]||i[e])throw new Error(`Extension type ${e} already has a handler`);r[e]=t,i[e]=n;const o=this._queue;return o[e]&&(o[e].forEach(s=>t(s)),delete o[e]),this},handleByMap(e,t){return this.handle(e,n=>{t[n.name]=n.ref},n=>{delete t[n.name]})},handleByList(e,t,n=-1){return this.handle(e,r=>{t.includes(r.ref)||(t.push(r.ref),t.sort((i,o)=>Y7(o,n)-Y7(i,n)))},r=>{const i=t.indexOf(r.ref);i!==-1&&t.splice(i,1)})}};class v5{constructor(t){typeof t=="number"?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${t} isn't a valid view type`)}}}const B4e=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(` -`);function $4e(e){let t="";for(let n=0;n0&&(t+=` -else `),n=0;--r){const i=y5[r];if(i.test&&i.test(e,n))return new i(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}class El{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,n,r,i,o,s,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:u,items:f}=this;this._aliasCount++;for(let h=0,p=f.length;h0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const n=this.items.indexOf(t);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(El.prototype,{dispatch:{value:El.prototype.emit},run:{value:El.prototype.emit}});class tw{constructor(t=0,n=0){this._width=t,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new El("setRealSize"),this.onUpdate=new El("update"),this.onError=new El("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,n){(t!==this._width||n!==this._height)&&(this._width=t,this._height=n,this.onResize.emit(t,n))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,n,r){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(t,n){return!1}}class Yw extends tw{constructor(t,n){const{width:r,height:i}=n||{};if(!r||!i)throw new Error("BufferResource width or height invalid");super(r,i),this.data=t}upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Ml.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}dispose(){this.data=null}static test(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array}}const z4e={scaleMode:ku.NEAREST,format:Ve.RGBA,alphaMode:Ml.NPM},Mm=class extends qw{constructor(e=null,t=null){super(),t=Object.assign({},Mm.defaultOptions,t);const{alphaMode:n,mipmap:r,anisotropicLevel:i,scaleMode:o,width:s,height:a,wrapMode:c,format:u,type:f,target:h,resolution:p,resourceOptions:g}=t;e&&!(e instanceof tw)&&(e=Hne(e,g),e.internal=!0),this.resolution=p||nt.RESOLUTION,this.width=Math.round((s||0)*this.resolution)/this.resolution,this.height=Math.round((a||0)*this.resolution)/this.resolution,this._mipmap=r,this.anisotropicLevel=i,this._wrapMode=c,this._scaleMode=o,this.format=u,this.type=f,this.target=h,this.alphaMode=n,this.uid=Vp(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=s>0&&a>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(e)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)}setStyle(e,t){let n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this}setSize(e,t,n){return n=n||this.resolution,this.setRealSize(e*n,t*n,n)}setRealSize(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=W7(this.realWidth)&&W7(this.realHeight)}setResolution(e){const t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT(),this)}setResource(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(e){this.emit("error",this,e)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete ad[this.cacheId],delete zl[this.cacheId],this.cacheId=null),this.dispose(),Mm.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(e,t,n=nt.STRICT_TEXTURE_CACHE){const r=typeof e=="string";let i=null;if(r)i=e;else{if(!e._pixiId){const s=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e._pixiId=`${s}_${Vp()}`}i=e._pixiId}let o=ad[i];if(r&&n&&!o)throw new Error(`The cacheId "${i}" does not exist in BaseTextureCache.`);return o||(o=new Mm(e,t),o.cacheId=i,Mm.addToCache(o,i)),o}static fromBuffer(e,t,n,r){e=e||new Float32Array(t*n*4);const i=new Yw(e,{width:t,height:n}),o=e instanceof Float32Array?Ot.FLOAT:Ot.UNSIGNED_BYTE;return new Mm(i,Object.assign({},z4e,{type:o},r))}static addToCache(e,t){t&&(e.textureCacheIds.includes(t)||e.textureCacheIds.push(t),ad[t]&&ad[t]!==e&&console.warn(`BaseTexture added to the cache with an id [${t}] that already had an entry`),ad[t]=e)}static removeFromCache(e){if(typeof e=="string"){const t=ad[e];if(t){const n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete ad[e],t}}else if(e!=null&&e.textureCacheIds){for(let t=0;t1){for(let h=0;h(e[e.POLY=0]="POLY",e[e.RECT=1]="RECT",e[e.CIRC=2]="CIRC",e[e.ELIP=3]="ELIP",e[e.RREC=4]="RREC",e))(Qi||{});class Lt{constructor(t=0,n=0){this.x=0,this.y=0,this.x=t,this.y=n}clone(){return new Lt(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,n=t){return this.x=t,this.y=n,this}toString(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`}}const vS=[new Lt,new Lt,new Lt,new Lt];class Jt{constructor(t=0,n=0,r=0,i=0){this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=Qi.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Jt(0,0,0,0)}clone(){return new Jt(this.x,this.y,this.width,this.height)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}contains(t,n){return this.width<=0||this.height<=0?!1:t>=this.x&&t=this.y&&nt.right?t.right:this.right)<=O)return!1;const N=this.yt.bottom?t.bottom:this.bottom)>N}const r=this.left,i=this.right,o=this.top,s=this.bottom;if(i<=r||s<=o)return!1;const a=vS[0].set(t.left,t.top),c=vS[1].set(t.left,t.bottom),u=vS[2].set(t.right,t.top),f=vS[3].set(t.right,t.bottom);if(u.x<=a.x||c.y<=a.y)return!1;const h=Math.sign(n.a*n.d-n.b*n.c);if(h===0||(n.apply(a,a),n.apply(c,c),n.apply(u,u),n.apply(f,f),Math.max(a.x,c.x,u.x,f.x)<=r||Math.min(a.x,c.x,u.x,f.x)>=i||Math.max(a.y,c.y,u.y,f.y)<=o||Math.min(a.y,c.y,u.y,f.y)>=s))return!1;const p=h*(c.y-a.y),g=h*(a.x-c.x),v=p*r+g*o,y=p*i+g*o,S=p*r+g*s,w=p*i+g*s;if(Math.max(v,y,S,w)<=p*a.x+g*a.y||Math.min(v,y,S,w)>=p*f.x+g*f.y)return!1;const b=h*(a.y-u.y),x=h*(u.x-a.x),E=b*r+x*o,I=b*i+x*o,A=b*r+x*s,k=b*i+x*s;return!(Math.max(E,I,A,k)<=b*a.x+x*a.y||Math.min(E,I,A,k)>=b*f.x+x*f.y)}pad(t=0,n=t){return this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2,this}fit(t){const n=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=n,this.width=Math.max(r-n,0),this.y=i,this.height=Math.max(o-i,0),this}ceil(t=1,n=.001){const r=Math.ceil((this.x+this.width-n)*t)/t,i=Math.ceil((this.y+this.height-n)*t)/t;return this.x=Math.floor((this.x+n)*t)/t,this.y=Math.floor((this.y+n)*t)/t,this.width=r-this.x,this.height=i-this.y,this}enlarge(t){const n=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=n,this.width=r-n,this.y=i,this.height=o-i,this}toString(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class gU{constructor(t=0,n=0,r=0){this.x=t,this.y=n,this.radius=r,this.type=Qi.CIRC}clone(){return new gU(this.x,this.y,this.radius)}contains(t,n){if(this.radius<=0)return!1;const r=this.radius*this.radius;let i=this.x-t,o=this.y-n;return i*=i,o*=o,i+o<=r}getBounds(){return new Jt(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}toString(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class vU{constructor(t=0,n=0,r=0,i=0){this.x=t,this.y=n,this.width=r,this.height=i,this.type=Qi.ELIP}clone(){return new vU(this.x,this.y,this.width,this.height)}contains(t,n){if(this.width<=0||this.height<=0)return!1;let r=(t-this.x)/this.width,i=(n-this.y)/this.height;return r*=r,i*=i,r+i<=1}getBounds(){return new Jt(this.x-this.width,this.y-this.height,this.width,this.height)}toString(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class Tg{constructor(...t){let n=Array.isArray(t[0])?t[0]:t;if(typeof n[0]!="number"){const r=[];for(let i=0,o=n.length;in!=f>n&&t<(u-a)*((n-c)/(f-c))+a&&(r=!r)}return r}toString(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((t,n)=>`${t}, ${n}`,"")}]`}}class yU{constructor(t=0,n=0,r=0,i=0,o=20){this.x=t,this.y=n,this.width=r,this.height=i,this.radius=o,this.type=Qi.RREC}clone(){return new yU(this.x,this.y,this.width,this.height,this.radius)}contains(t,n){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){const r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+r&&n<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;let i=t-(this.x+r),o=n-(this.y+r);const s=r*r;if(i*i+o*o<=s||(i=t-(this.x+this.width-r),i*i+o*o<=s)||(o=n-(this.y+this.height-r),i*i+o*o<=s)||(i=t-(this.x+r),i*i+o*o<=s))return!0}return!1}toString(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}class Cr{constructor(t=1,n=0,r=0,i=1,o=0,s=0){this.array=null,this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,n,r,i,o,s){return this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s,this}toArray(t,n){this.array||(this.array=new Float32Array(9));const r=n||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r}apply(t,n){n=n||new Lt;const r=t.x,i=t.y;return n.x=this.a*r+this.c*i+this.tx,n.y=this.b*r+this.d*i+this.ty,n}applyInverse(t,n){n=n||new Lt;const r=1/(this.a*this.d+this.c*-this.b),i=t.x,o=t.y;return n.x=this.d*r*i+-this.c*r*o+(this.ty*this.c-this.tx*this.d)*r,n.y=this.a*r*o+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,n}translate(t,n){return this.tx+=t,this.ty+=n,this}scale(t,n){return this.a*=t,this.d*=n,this.c*=t,this.b*=n,this.tx*=t,this.ty*=n,this}rotate(t){const n=Math.cos(t),r=Math.sin(t),i=this.a,o=this.c,s=this.tx;return this.a=i*n-this.b*r,this.b=i*r+this.b*n,this.c=o*n-this.d*r,this.d=o*r+this.d*n,this.tx=s*n-this.ty*r,this.ty=s*r+this.ty*n,this}append(t){const n=this.a,r=this.b,i=this.c,o=this.d;return this.a=t.a*n+t.b*i,this.b=t.a*r+t.b*o,this.c=t.c*n+t.d*i,this.d=t.c*r+t.d*o,this.tx=t.tx*n+t.ty*i+this.tx,this.ty=t.tx*r+t.ty*o+this.ty,this}setTransform(t,n,r,i,o,s,a,c,u){return this.a=Math.cos(a+u)*o,this.b=Math.sin(a+u)*o,this.c=-Math.sin(a-c)*s,this.d=Math.cos(a-c)*s,this.tx=t-(r*this.a+i*this.c),this.ty=n-(r*this.b+i*this.d),this}prepend(t){const n=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){const r=this.a,i=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=n*t.a+this.ty*t.c+t.tx,this.ty=n*t.b+this.ty*t.d+t.ty,this}decompose(t){const n=this.a,r=this.b,i=this.c,o=this.d,s=t.pivot,a=-Math.atan2(-i,o),c=Math.atan2(r,n),u=Math.abs(a+c);return u<1e-5||Math.abs(tT-u)<1e-5?(t.rotation=c,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=c),t.scale.x=Math.sqrt(n*n+r*r),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(s.x*n+s.y*i),t.position.y=this.ty+(s.x*r+s.y*o),t}invert(){const t=this.a,n=this.b,r=this.c,i=this.d,o=this.tx,s=t*i-n*r;return this.a=i/s,this.b=-n/s,this.c=-r/s,this.d=t/s,this.tx=(r*this.ty-i*o)/s,this.ty=-(t*this.ty-n*o)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const t=new Cr;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}toString(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return new Cr}static get TEMP_MATRIX(){return new Cr}}const np=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],rp=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ip=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],op=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],x5=[],Vne=[],yS=Math.sign;function X4e(){for(let e=0;e<16;e++){const t=[];x5.push(t);for(let n=0;n<16;n++){const r=yS(np[e]*np[n]+ip[e]*rp[n]),i=yS(rp[e]*np[n]+op[e]*rp[n]),o=yS(np[e]*ip[n]+ip[e]*op[n]),s=yS(rp[e]*ip[n]+op[e]*op[n]);for(let a=0;a<16;a++)if(np[a]===r&&rp[a]===i&&ip[a]===o&&op[a]===s){t.push(a);break}}}for(let e=0;e<16;e++){const t=new Cr;t.set(np[e],rp[e],ip[e],op[e],0,0),Vne.push(t)}}X4e();const Mr={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:e=>np[e],uY:e=>rp[e],vX:e=>ip[e],vY:e=>op[e],inv:e=>e&8?e&15:-e&7,add:(e,t)=>x5[e][t],sub:(e,t)=>x5[e][Mr.inv(t)],rotate180:e=>e^4,isVertical:e=>(e&3)===2,byDirection:(e,t)=>Math.abs(e)*2<=Math.abs(t)?t>=0?Mr.S:Mr.N:Math.abs(t)*2<=Math.abs(e)?e>0?Mr.E:Mr.W:t>0?e>0?Mr.SE:Mr.SW:e>0?Mr.NE:Mr.NW,matrixAppendRotationInv:(e,t,n=0,r=0)=>{const i=Vne[Mr.inv(t)];i.tx=n,i.ty=r,e.append(i)}};class Md{constructor(t,n,r=0,i=0){this._x=r,this._y=i,this.cb=t,this.scope=n}clone(t=this.cb,n=this.scope){return new Md(t,n,this._x,this._y)}set(t=0,n=t){return(this._x!==t||this._y!==n)&&(this._x=t,this._y=n,this.cb.call(this.scope)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}toString(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=${this.scope}]`}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}const qne=class{constructor(){this.worldTransform=new Cr,this.localTransform=new Cr,this.position=new Md(this.onChange,this,0,0),this.scale=new Md(this.onChange,this,1,1),this.pivot=new Md(this.onChange,this,0,0),this.skew=new Md(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}toString(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`}updateLocalTransform(){const e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(e){const t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){const n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}}setFromMatrix(e){e.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())}};let bU=qne;bU.IDENTITY=new qne;var Y4e=`varying vec2 vTextureCoord; +Deprecated since v${e}`),console.warn(r))),U7[t]=!0}let UB;function D4e(){return typeof UB>"u"&&(UB=function(){var n;const t={stencil:!0,failIfMajorPerformanceCaveat:nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!nt.ADAPTER.getWebGLRenderingContext())return!1;const r=nt.ADAPTER.createCanvas();let i=r.getContext("webgl",t)||r.getContext("experimental-webgl",t);const o=!!((n=i==null?void 0:i.getContextAttributes())!=null&&n.stencil);if(i){const s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,o}catch{return!1}}()),UB}var N4e={grad:.9,turn:360,rad:360/(2*Math.PI)},mu=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Ii=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},wa=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Wne=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},H7=function(e){return{r:wa(e.r,0,255),g:wa(e.g,0,255),b:wa(e.b,0,255),a:wa(e.a)}},HB=function(e){return{r:Ii(e.r),g:Ii(e.g),b:Ii(e.b),a:Ii(e.a,3)}},B4e=/^#([0-9a-f]{3,8})$/i,gS=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Gne=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:i}},Vne=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),c=r*(1-(1-t+o)*n),u=o%6;return{r:255*[r,a,s,s,c,r][u],g:255*[c,r,r,a,s,s][u],b:255*[s,s,c,r,r,a][u],a:i}},W7=function(e){return{h:Wne(e.h),s:wa(e.s,0,100),l:wa(e.l,0,100),a:wa(e.a)}},G7=function(e){return{h:Ii(e.h),s:Ii(e.s),l:Ii(e.l),a:Ii(e.a,3)}},V7=function(e){return Vne((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Jx=function(e){return{h:(t=Gne(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},$4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,F4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,z4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p5={string:[[function(e){var t=B4e.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Ii(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Ii(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=z4e.exec(e)||j4e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:H7({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=$4e.exec(e)||F4e.exec(e);if(!t)return null;var n,r,i=W7({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(N4e[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return V7(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i===void 0?1:i;return mu(t)&&mu(n)&&mu(r)?H7({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=i===void 0?1:i;if(!mu(t)||!mu(n)||!mu(r))return null;var s=W7({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return V7(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=i===void 0?1:i;if(!mu(t)||!mu(n)||!mu(r))return null;var s=function(a){return{h:Wne(a.h),s:wa(a.s,0,100),v:wa(a.v,0,100),a:wa(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return Vne(s)},"hsv"]]},q7=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=HB(this.rgba),n=t.r,r=t.g,i=t.b,s=(o=t.a)<1?gS(Ii(255*o)):"","#"+gS(n)+gS(r)+gS(i)+s;var t,n,r,i,o,s},e.prototype.toRgb=function(){return HB(this.rgba)},e.prototype.toRgbString=function(){return t=HB(this.rgba),n=t.r,r=t.g,i=t.b,(o=t.a)<1?"rgba("+n+", "+r+", "+i+", "+o+")":"rgb("+n+", "+r+", "+i+")";var t,n,r,i,o},e.prototype.toHsl=function(){return G7(Jx(this.rgba))},e.prototype.toHslString=function(){return t=G7(Jx(this.rgba)),n=t.h,r=t.s,i=t.l,(o=t.a)<1?"hsla("+n+", "+r+"%, "+i+"%, "+o+")":"hsl("+n+", "+r+"%, "+i+"%)";var t,n,r,i,o},e.prototype.toHsv=function(){return t=Gne(this.rgba),{h:Ii(t.h),s:Ii(t.s),v:Ii(t.v),a:Ii(t.a,3)};var t},e.prototype.invert=function(){return Fl({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Fl(WB(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Fl(WB(this.rgba,-t))},e.prototype.grayscale=function(){return Fl(WB(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Fl(X7(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Fl(X7(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Fl({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Ii(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Jx(this.rgba);return typeof t=="number"?Fl({h:t,s:n.s,l:n.l,a:n.a}):Ii(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Fl(t).toHex()},e}(),Fl=function(e){return e instanceof m5?e:new m5(e)},Y7=[],H4e=function(e){e.forEach(function(t){Y7.indexOf(t)<0&&(t(m5,p5),Y7.push(t))})};function W4e(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var o={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,u=r[this.toHex()];if(u)return u;if(s!=null&&s.closest){var f=this.toRgb(),h=1/0,p="black";if(!o.length)for(var g in n)o[g]=new e(n[g]).toRgb();for(var v in n){var y=(a=f,c=o[v],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));yi===t[o]);if(e!==null&&t!==null){const i=Object.keys(e),o=Object.keys(t);return i.length!==o.length?!1:i.every(s=>e[s]===t[s])}return e===t}toRgba(){const[e,t,n,r]=this._components;return{r:e,g:t,b:n,a:r}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,r]=this._components;return e=e??[],e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(r*255),e}toRgbArray(e){e=e??[];const[t,n,r]=this._components;return e[0]=t,e[1]=n,e[2]=r,e}toNumber(){return this._int}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[t,n,r,i]=kg.temp.setValue(e)._components;return this._components[0]*=t,this._components[1]*=n,this._components[2]*=r,this._components[3]*=i,this.refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this.refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(e===1)return(255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,r=this._int>>8&255,i=this._int&255;return t&&(n=n*e+.5|0,r=r*e+.5|0,i=i*e+.5|0),(e*255<<24)+(n<<16)+(r<<8)+i}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const t=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(e){return this._components[3]=this._clamp(e),this}round(e){const[t,n,r]=this._components;return this._components[0]=Math.round(t*e)/e,this._components[1]=Math.round(n*e)/e,this._components[2]=Math.round(r*e)/e,this.refreshInt(),this._value=null,this}toArray(e){e=e??[];const[t,n,r,i]=this._components;return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}normalize(e){let t,n,r,i;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const o=e;t=(o>>16&255)/255,n=(o>>8&255)/255,r=(o&255)/255,i=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[t,n,r,i=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[t,n,r,i=255]=e,t/=255,n/=255,r/=255,i/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const s=kg.HEX_PATTERN.exec(e);s&&(e=`#${s[2]}`)}const o=Fl(e);o.isValid()&&({r:t,g:n,b:r,a:i}=o.rgba,t/=255,n/=255,r/=255)}if(t!==void 0)this._components[0]=t,this._components[1]=n,this._components[2]=r,this._components[3]=i,this.refreshInt();else throw new Error(`Unable to convert color ${e}`)}refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0)}_clamp(e,t=0,n=1){return typeof e=="number"?Math.min(Math.max(e,t),n):(e.forEach((r,i)=>{e[i]=Math.min(Math.max(r,t),n)}),e)}};let Vn=kg;Vn.shared=new kg;Vn.temp=new kg;Vn.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;function G4e(e){return fn("7.2.0","utils.hex2string is deprecated, use Color#toHex instead"),Vn.shared.setValue(e).toHex()}function V4e(e){return fn("7.2.0","utils.rgb2hex is deprecated, use Color#toNumber instead"),Vn.shared.setValue(e).toNumber()}function q4e(){const e=[],t=[];for(let r=0;r<32;r++)e[r]=r,t[r]=r;e[Dt.NORMAL_NPM]=Dt.NORMAL,e[Dt.ADD_NPM]=Dt.ADD,e[Dt.SCREEN_NPM]=Dt.SCREEN,t[Dt.NORMAL]=Dt.NORMAL_NPM,t[Dt.ADD]=Dt.ADD_NPM,t[Dt.SCREEN]=Dt.SCREEN_NPM;const n=[];return n.push(t),n.push(e),n}const qne=q4e();function Xne(e,t){return qne[t?1:0][e]}function X4e(e,t=null){const n=e*6;if(t=t||new Uint16Array(n),t.length!==n)throw new Error(`Out buffer length is incorrect, got ${t.length} and expected ${n}`);for(let r=0,i=0;r>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function K7(e){return!(e&e-1)&&!!e}function Q7(e){let t=(e>65535?1:0)<<4;e>>>=t;let n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function Ag(e,t,n){const r=e.length;let i;if(t>=r||n===0)return;n=t+n>r?r-t:n;const o=r-n;for(i=t;i(e.Renderer="renderer",e.Application="application",e.RendererSystem="renderer-webgl-system",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererSystem="renderer-canvas-system",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Asset="asset",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser",e))(ot||{});const v5=e=>{if(typeof e=="function"||typeof e=="object"&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");e={...typeof e.extension!="object"?{type:e.extension}:e.extension,ref:e}}if(typeof e=="object")e={...e};else throw new Error("Invalid extension type");return typeof e.type=="string"&&(e.type=[e.type]),e},tV=(e,t)=>v5(e).priority??t,wt={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...e){return e.map(v5).forEach(t=>{t.type.forEach(n=>{var r,i;return(i=(r=this._removeHandlers)[n])==null?void 0:i.call(r,t)})}),this},add(...e){return e.map(v5).forEach(t=>{t.type.forEach(n=>{const r=this._addHandlers,i=this._queue;r[n]?r[n](t):(i[n]=i[n]||[],i[n].push(t))})}),this},handle(e,t,n){const r=this._addHandlers,i=this._removeHandlers;if(r[e]||i[e])throw new Error(`Extension type ${e} already has a handler`);r[e]=t,i[e]=n;const o=this._queue;return o[e]&&(o[e].forEach(s=>t(s)),delete o[e]),this},handleByMap(e,t){return this.handle(e,n=>{t[n.name]=n.ref},n=>{delete t[n.name]})},handleByList(e,t,n=-1){return this.handle(e,r=>{t.includes(r.ref)||(t.push(r.ref),t.sort((i,o)=>tV(o,n)-tV(i,n)))},r=>{const i=t.indexOf(r.ref);i!==-1&&t.splice(i,1)})}};class y5{constructor(t){typeof t=="number"?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${t} isn't a valid view type`)}}}const eze=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(` +`);function tze(e){let t="";for(let n=0;n0&&(t+=` +else `),n=0;--r){const i=b5[r];if(i.test&&i.test(e,n))return new i(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}class El{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,n,r,i,o,s,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:u,items:f}=this;this._aliasCount++;for(let h=0,p=f.length;h0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const n=this.items.indexOf(t);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(El.prototype,{dispatch:{value:El.prototype.emit},run:{value:El.prototype.emit}});class ew{constructor(t=0,n=0){this._width=t,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new El("setRealSize"),this.onUpdate=new El("update"),this.onError=new El("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,n){(t!==this._width||n!==this._height)&&(this._width=t,this._height=n,this.onResize.emit(t,n))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,n,r){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(t,n){return!1}}class Kw extends ew{constructor(t,n){const{width:r,height:i}=n||{};if(!r||!i)throw new Error("BufferResource width or height invalid");super(r,i),this.data=t}upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Ml.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}dispose(){this.data=null}static test(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array}}const rze={scaleMode:ku.NEAREST,format:Ve.RGBA,alphaMode:Ml.NPM},Nm=class extends Xw{constructor(e=null,t=null){super(),t=Object.assign({},Nm.defaultOptions,t);const{alphaMode:n,mipmap:r,anisotropicLevel:i,scaleMode:o,width:s,height:a,wrapMode:c,format:u,type:f,target:h,resolution:p,resourceOptions:g}=t;e&&!(e instanceof ew)&&(e=Qne(e,g),e.internal=!0),this.resolution=p||nt.RESOLUTION,this.width=Math.round((s||0)*this.resolution)/this.resolution,this.height=Math.round((a||0)*this.resolution)/this.resolution,this._mipmap=r,this.anisotropicLevel=i,this._wrapMode=c,this._scaleMode=o,this.format=u,this.type=f,this.target=h,this.alphaMode=n,this.uid=Yp(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=s>0&&a>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(e)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)}setStyle(e,t){let n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this}setSize(e,t,n){return n=n||this.resolution,this.setRealSize(e*n,t*n,n)}setRealSize(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=K7(this.realWidth)&&K7(this.realHeight)}setResolution(e){const t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT(),this)}setResource(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(e){this.emit("error",this,e)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete sd[this.cacheId],delete zl[this.cacheId],this.cacheId=null),this.dispose(),Nm.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(e,t,n=nt.STRICT_TEXTURE_CACHE){const r=typeof e=="string";let i=null;if(r)i=e;else{if(!e._pixiId){const s=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e._pixiId=`${s}_${Yp()}`}i=e._pixiId}let o=sd[i];if(r&&n&&!o)throw new Error(`The cacheId "${i}" does not exist in BaseTextureCache.`);return o||(o=new Nm(e,t),o.cacheId=i,Nm.addToCache(o,i)),o}static fromBuffer(e,t,n,r){e=e||new Float32Array(t*n*4);const i=new Kw(e,{width:t,height:n}),o=e instanceof Float32Array?Ot.FLOAT:Ot.UNSIGNED_BYTE;return new Nm(i,Object.assign({},rze,{type:o},r))}static addToCache(e,t){t&&(e.textureCacheIds.includes(t)||e.textureCacheIds.push(t),sd[t]&&sd[t]!==e&&console.warn(`BaseTexture added to the cache with an id [${t}] that already had an entry`),sd[t]=e)}static removeFromCache(e){if(typeof e=="string"){const t=sd[e];if(t){const n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete sd[e],t}}else if(e!=null&&e.textureCacheIds){for(let t=0;t1){for(let h=0;h(e[e.POLY=0]="POLY",e[e.RECT=1]="RECT",e[e.CIRC=2]="CIRC",e[e.ELIP=3]="ELIP",e[e.RREC=4]="RREC",e))(Qi||{});class Lt{constructor(t=0,n=0){this.x=0,this.y=0,this.x=t,this.y=n}clone(){return new Lt(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,n=t){return this.x=t,this.y=n,this}toString(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`}}const yS=[new Lt,new Lt,new Lt,new Lt];class Zt{constructor(t=0,n=0,r=0,i=0){this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=Qi.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Zt(0,0,0,0)}clone(){return new Zt(this.x,this.y,this.width,this.height)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}contains(t,n){return this.width<=0||this.height<=0?!1:t>=this.x&&t=this.y&&nt.right?t.right:this.right)<=O)return!1;const N=this.yt.bottom?t.bottom:this.bottom)>N}const r=this.left,i=this.right,o=this.top,s=this.bottom;if(i<=r||s<=o)return!1;const a=yS[0].set(t.left,t.top),c=yS[1].set(t.left,t.bottom),u=yS[2].set(t.right,t.top),f=yS[3].set(t.right,t.bottom);if(u.x<=a.x||c.y<=a.y)return!1;const h=Math.sign(n.a*n.d-n.b*n.c);if(h===0||(n.apply(a,a),n.apply(c,c),n.apply(u,u),n.apply(f,f),Math.max(a.x,c.x,u.x,f.x)<=r||Math.min(a.x,c.x,u.x,f.x)>=i||Math.max(a.y,c.y,u.y,f.y)<=o||Math.min(a.y,c.y,u.y,f.y)>=s))return!1;const p=h*(c.y-a.y),g=h*(a.x-c.x),v=p*r+g*o,y=p*i+g*o,S=p*r+g*s,w=p*i+g*s;if(Math.max(v,y,S,w)<=p*a.x+g*a.y||Math.min(v,y,S,w)>=p*f.x+g*f.y)return!1;const b=h*(a.y-u.y),x=h*(u.x-a.x),E=b*r+x*o,I=b*i+x*o,A=b*r+x*s,k=b*i+x*s;return!(Math.max(E,I,A,k)<=b*a.x+x*a.y||Math.min(E,I,A,k)>=b*f.x+x*f.y)}pad(t=0,n=t){return this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2,this}fit(t){const n=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=n,this.width=Math.max(r-n,0),this.y=i,this.height=Math.max(o-i,0),this}ceil(t=1,n=.001){const r=Math.ceil((this.x+this.width-n)*t)/t,i=Math.ceil((this.y+this.height-n)*t)/t;return this.x=Math.floor((this.x+n)*t)/t,this.y=Math.floor((this.y+n)*t)/t,this.width=r-this.x,this.height=i-this.y,this}enlarge(t){const n=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=n,this.width=r-n,this.y=i,this.height=o-i,this}toString(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class xU{constructor(t=0,n=0,r=0){this.x=t,this.y=n,this.radius=r,this.type=Qi.CIRC}clone(){return new xU(this.x,this.y,this.radius)}contains(t,n){if(this.radius<=0)return!1;const r=this.radius*this.radius;let i=this.x-t,o=this.y-n;return i*=i,o*=o,i+o<=r}getBounds(){return new Zt(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}toString(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class wU{constructor(t=0,n=0,r=0,i=0){this.x=t,this.y=n,this.width=r,this.height=i,this.type=Qi.ELIP}clone(){return new wU(this.x,this.y,this.width,this.height)}contains(t,n){if(this.width<=0||this.height<=0)return!1;let r=(t-this.x)/this.width,i=(n-this.y)/this.height;return r*=r,i*=i,r+i<=1}getBounds(){return new Zt(this.x-this.width,this.y-this.height,this.width,this.height)}toString(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class Ig{constructor(...t){let n=Array.isArray(t[0])?t[0]:t;if(typeof n[0]!="number"){const r=[];for(let i=0,o=n.length;in!=f>n&&t<(u-a)*((n-c)/(f-c))+a&&(r=!r)}return r}toString(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((t,n)=>`${t}, ${n}`,"")}]`}}class _U{constructor(t=0,n=0,r=0,i=0,o=20){this.x=t,this.y=n,this.width=r,this.height=i,this.radius=o,this.type=Qi.RREC}clone(){return new _U(this.x,this.y,this.width,this.height,this.radius)}contains(t,n){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){const r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+r&&n<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;let i=t-(this.x+r),o=n-(this.y+r);const s=r*r;if(i*i+o*o<=s||(i=t-(this.x+this.width-r),i*i+o*o<=s)||(o=n-(this.y+this.height-r),i*i+o*o<=s)||(i=t-(this.x+r),i*i+o*o<=s))return!0}return!1}toString(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}class Cr{constructor(t=1,n=0,r=0,i=1,o=0,s=0){this.array=null,this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,n,r,i,o,s){return this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s,this}toArray(t,n){this.array||(this.array=new Float32Array(9));const r=n||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r}apply(t,n){n=n||new Lt;const r=t.x,i=t.y;return n.x=this.a*r+this.c*i+this.tx,n.y=this.b*r+this.d*i+this.ty,n}applyInverse(t,n){n=n||new Lt;const r=1/(this.a*this.d+this.c*-this.b),i=t.x,o=t.y;return n.x=this.d*r*i+-this.c*r*o+(this.ty*this.c-this.tx*this.d)*r,n.y=this.a*r*o+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,n}translate(t,n){return this.tx+=t,this.ty+=n,this}scale(t,n){return this.a*=t,this.d*=n,this.c*=t,this.b*=n,this.tx*=t,this.ty*=n,this}rotate(t){const n=Math.cos(t),r=Math.sin(t),i=this.a,o=this.c,s=this.tx;return this.a=i*n-this.b*r,this.b=i*r+this.b*n,this.c=o*n-this.d*r,this.d=o*r+this.d*n,this.tx=s*n-this.ty*r,this.ty=s*r+this.ty*n,this}append(t){const n=this.a,r=this.b,i=this.c,o=this.d;return this.a=t.a*n+t.b*i,this.b=t.a*r+t.b*o,this.c=t.c*n+t.d*i,this.d=t.c*r+t.d*o,this.tx=t.tx*n+t.ty*i+this.tx,this.ty=t.tx*r+t.ty*o+this.ty,this}setTransform(t,n,r,i,o,s,a,c,u){return this.a=Math.cos(a+u)*o,this.b=Math.sin(a+u)*o,this.c=-Math.sin(a-c)*s,this.d=Math.cos(a-c)*s,this.tx=t-(r*this.a+i*this.c),this.ty=n-(r*this.b+i*this.d),this}prepend(t){const n=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){const r=this.a,i=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=n*t.a+this.ty*t.c+t.tx,this.ty=n*t.b+this.ty*t.d+t.ty,this}decompose(t){const n=this.a,r=this.b,i=this.c,o=this.d,s=t.pivot,a=-Math.atan2(-i,o),c=Math.atan2(r,n),u=Math.abs(a+c);return u<1e-5||Math.abs(nT-u)<1e-5?(t.rotation=c,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=c),t.scale.x=Math.sqrt(n*n+r*r),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(s.x*n+s.y*i),t.position.y=this.ty+(s.x*r+s.y*o),t}invert(){const t=this.a,n=this.b,r=this.c,i=this.d,o=this.tx,s=t*i-n*r;return this.a=i/s,this.b=-n/s,this.c=-r/s,this.d=t/s,this.tx=(r*this.ty-i*o)/s,this.ty=-(t*this.ty-n*o)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const t=new Cr;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}toString(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return new Cr}static get TEMP_MATRIX(){return new Cr}}const rp=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ip=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],op=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],sp=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],w5=[],ere=[],bS=Math.sign;function dze(){for(let e=0;e<16;e++){const t=[];w5.push(t);for(let n=0;n<16;n++){const r=bS(rp[e]*rp[n]+op[e]*ip[n]),i=bS(ip[e]*rp[n]+sp[e]*ip[n]),o=bS(rp[e]*op[n]+op[e]*sp[n]),s=bS(ip[e]*op[n]+sp[e]*sp[n]);for(let a=0;a<16;a++)if(rp[a]===r&&ip[a]===i&&op[a]===o&&sp[a]===s){t.push(a);break}}}for(let e=0;e<16;e++){const t=new Cr;t.set(rp[e],ip[e],op[e],sp[e],0,0),ere.push(t)}}dze();const Mr={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:e=>rp[e],uY:e=>ip[e],vX:e=>op[e],vY:e=>sp[e],inv:e=>e&8?e&15:-e&7,add:(e,t)=>w5[e][t],sub:(e,t)=>w5[e][Mr.inv(t)],rotate180:e=>e^4,isVertical:e=>(e&3)===2,byDirection:(e,t)=>Math.abs(e)*2<=Math.abs(t)?t>=0?Mr.S:Mr.N:Math.abs(t)*2<=Math.abs(e)?e>0?Mr.E:Mr.W:t>0?e>0?Mr.SE:Mr.SW:e>0?Mr.NE:Mr.NW,matrixAppendRotationInv:(e,t,n=0,r=0)=>{const i=ere[Mr.inv(t)];i.tx=n,i.ty=r,e.append(i)}};class Md{constructor(t,n,r=0,i=0){this._x=r,this._y=i,this.cb=t,this.scope=n}clone(t=this.cb,n=this.scope){return new Md(t,n,this._x,this._y)}set(t=0,n=t){return(this._x!==t||this._y!==n)&&(this._x=t,this._y=n,this.cb.call(this.scope)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}toString(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=${this.scope}]`}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}const tre=class{constructor(){this.worldTransform=new Cr,this.localTransform=new Cr,this.position=new Md(this.onChange,this,0,0),this.scale=new Md(this.onChange,this,1,1),this.pivot=new Md(this.onChange,this,0,0),this.skew=new Md(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}toString(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`}updateLocalTransform(){const e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(e){const t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){const n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}}setFromMatrix(e){e.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())}};let SU=tre;SU.IDENTITY=new tre;var fze=`varying vec2 vTextureCoord; uniform sampler2D uSampler; void main(void){ gl_FragColor *= texture2D(uSampler, vTextureCoord); -}`,K4e=`attribute vec2 aVertexPosition; +}`,hze=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -714,7 +714,7 @@ void main(void){ gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; } -`;function Q7(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}function QB(e){const t=new Array(e);for(let n=0;ne.type==="float"&&e.size===1&&!e.isArray,code:e=>` +`;function rV(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}function JB(e){const t=new Array(e);for(let n=0;ne.type==="float"&&e.size===1&&!e.isArray,code:e=>` if(uv["${e}"] !== ud["${e}"].value) { ud["${e}"].value = uv["${e}"] @@ -834,7 +834,7 @@ void main(void){ cv[3] = v[3]; gl.uniform4f(ud["${e}"].location, v[0], v[1], v[2], v[3]) - }`}],Q4e={float:` + }`}],pze={float:` if (cv !== v) { cu.value = v; @@ -970,7 +970,7 @@ void main(void){ cu.value = v; gl.uniform1i(location, v); - }`},J4e={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function Z4e(e,t){var r;const n=[` + }`},mze={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function gze(e,t){var r;const n=[` var v = null; var cv = null; var cu = null; @@ -980,18 +980,18 @@ void main(void){ renderer.shader.syncUniformBufferGroup(uv.${i}, '${i}'); `):n.push(` renderer.shader.syncUniformGroup(uv.${i}, syncData); - `));continue}const s=e.uniforms[i];let a=!1;for(let c=0;c=am.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),wm=t}return wm}let bS;function tze(){if(!bS){bS=ba.MEDIUM;const e=eze();e&&e.getShaderPrecisionFormat&&(bS=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision?ba.HIGH:ba.MEDIUM)}return bS}function J7(e,t){const n=e.getShaderSource(t).split(` +`))}const rre={};let Em=rre;function vze(){if(Em===rre||Em!=null&&Em.isContextLost()){const e=nt.ADAPTER.createCanvas();let t;nt.PREFER_ENV>=um.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Em=t}return Em}let xS;function yze(){if(!xS){xS=xa.MEDIUM;const e=vze();e&&e.getShaderPrecisionFormat&&(xS=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision?xa.HIGH:xa.MEDIUM)}return xS}function iV(e,t){const n=e.getShaderSource(t).split(` `).map((u,f)=>`${f}: ${u}`),r=e.getShaderInfoLog(t),i=r.split(` `),o={},s=i.map(u=>parseFloat(u.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(u=>u&&!o[u]?(o[u]=!0,!0):!1),a=[""];s.forEach(u=>{n[u-1]=`%c${n[u-1]}%c`,a.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const c=n.join(` -`);a[0]=c,console.error(r),console.groupCollapsed("click to view full shader code"),console.warn(...a),console.groupEnd()}function nze(e,t,n,r){e.getProgramParameter(t,e.LINK_STATUS)||(e.getShaderParameter(n,e.COMPILE_STATUS)||J7(e,n),e.getShaderParameter(r,e.COMPILE_STATUS)||J7(e,r),console.error("PixiJS Error: Could not initialize shader."),e.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(t)))}const rze={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Kne(e){return rze[e]}let xS=null;const Z7={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function Qne(e,t){if(!xS){const n=Object.keys(Z7);xS={};for(let r=0;r0&&(n+=` else `),rthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=nl._textureArrayPool,r=this.renderer.batch,i=this._tempBoundTextures,o=this.renderer.textureGC.count;let s=++Gt._globalBatch,a=0,c=n[0],u=0;r.copyBoundTextures(i,t);for(let f=0;f=t&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,u,f),u=f,c=n[++a],++s),h._batchEnabled=s,h.touched=o,c.elements[c.count++]=h)}c.count>0&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,u,this._bufferSize),++a,++s);for(let f=0;f0);for(let v=0;vthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=nl._textureArrayPool,r=this.renderer.batch,i=this._tempBoundTextures,o=this.renderer.textureGC.count;let s=++Vt._globalBatch,a=0,c=n[0],u=0;r.copyBoundTextures(i,t);for(let f=0;f=t&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,u,f),u=f,c=n[++a],++s),h._batchEnabled=s,h.touched=o,c.elements[c.count++]=h)}c.count>0&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,u,this._bufferSize),++a,++s);for(let f=0;f0);for(let v=0;v=0;--i)t[i]=r[i]||null,t[i]&&(t[i]._batchLocation=i)}boundArray(t,n,r,i){const{elements:o,ids:s,count:a}=t;let c=0;for(let u=0;u=0&&h=am.WEBGL2&&(r=t.getContext("webgl2",n)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,n={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,n,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,n,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})}handleContextLost(t){t.preventDefault(),setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()},0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){const t=this.renderer.view;this.renderer=null,t.removeEventListener!==void 0&&(t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(t){const n=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const i=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}}RA.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"};RA.extension={type:ot.RendererSystem,name:"context"};wt.add(RA);class pze extends Yw{upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Ml.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}}class _5{constructor(t,n){this.width=Math.round(t||100),this.height=Math.round(n||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new El("disposeFramebuffer"),this.multisample=ri.NONE}get colorTexture(){return this.colorTextures[0]}addColorTexture(t=0,n){return this.colorTextures[t]=n||new Gt(null,{scaleMode:ku.NEAREST,resolution:1,mipmap:fc.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(t){return this.depthTexture=t||new Gt(new pze(null,{width:this.width,height:this.height}),{scaleMode:ku.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:fc.OFF,format:Ve.DEPTH_COMPONENT,type:Ot.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(t,n){if(t=Math.round(t),n=Math.round(n),!(t===this.width&&n===this.height)){this.width=t,this.height=n,this.dirtyId++,this.dirtySize++;for(let r=0;r{const i=this.source;this.url=i.src;const o=()=>{this.destroyed||(i.onload=null,i.onerror=null,this.resize(i.width,i.height),this._load=null,this.createBitmap?n(this.process()):n(this))};i.complete&&i.src?o():(i.onload=o,i.onerror=s=>{r(s),this.onError.emit(s)})}),this._load)}process(){const t=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);const n=globalThis.createImageBitmap,r=!t.crossOrigin||t.crossOrigin==="anonymous";return this._process=fetch(t.src,{mode:r?"cors":"no-cors"}).then(i=>i.blob()).then(i=>n(i,0,0,t.width,t.height,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===Ml.UNPACK?"premultiply":"none"})).then(i=>this.destroyed?Promise.reject():(this.bitmap=i,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(t,n,r){if(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(t,n,r);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(t,n,r,this.bitmap),!this.preserveBitmap){let i=!0;const o=n._glTextures;for(const s in o){const a=o[s];if(a!==r&&a.dirtyId!==n.dirtyId){i=!1;break}}i&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(t){return typeof HTMLImageElement<"u"&&(typeof t=="string"||t instanceof HTMLImageElement)}}class tre{constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}set(t,n,r){const i=n.width,o=n.height;if(r){const s=t.width/2/i,a=t.height/2/o,c=t.x/i+s,u=t.y/o+a;r=Mr.add(r,Mr.NW),this.x0=c+s*Mr.uX(r),this.y0=u+a*Mr.uY(r),r=Mr.add(r,2),this.x1=c+s*Mr.uX(r),this.y1=u+a*Mr.uY(r),r=Mr.add(r,2),this.x2=c+s*Mr.uX(r),this.y2=u+a*Mr.uY(r),r=Mr.add(r,2),this.x3=c+s*Mr.uX(r),this.y3=u+a*Mr.uY(r)}else this.x0=t.x/i,this.y0=t.y/o,this.x1=(t.x+t.width)/i,this.y1=t.y/o,this.x2=(t.x+t.width)/i,this.y2=(t.y+t.height)/o,this.x3=t.x/i,this.y3=(t.y+t.height)/o;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}toString(){return`[@pixi/core:TextureUvs x0=${this.x0} y0=${this.y0} x1=${this.x1} y1=${this.y1} x2=${this.x2} y2=${this.y2} x3=${this.x3} y3=${this.y3}]`}}const nV=new tre;function _S(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}class pt extends qw{constructor(t,n,r,i,o,s,a){if(super(),this.noFrame=!1,n||(this.noFrame=!0,n=new Jt(0,0,1,1)),t instanceof pt&&(t=t.baseTexture),this.baseTexture=t,this._frame=n,this.trim=i,this.valid=!1,this._uvs=nV,this.uvMatrix=null,this.orig=r||n,this._rotate=Number(o||0),o===!0)this._rotate=2;else if(this._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=s?new Lt(s.x,s.y):new Lt(0,0),this.defaultBorders=a,this._updateID=0,this.textureCacheIds=[],t.valid?this.noFrame?t.valid&&this.onBaseTextureUpdated(t):this.frame=n:t.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&t.on("update",this.onBaseTextureUpdated,this)}update(){this.baseTexture.resource&&this.baseTexture.resource.update()}onBaseTextureUpdated(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(t){if(this.baseTexture){if(t){const{resource:n}=this.baseTexture;n!=null&&n.url&&zl[n.url]&&pt.removeFromCache(n.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,pt.removeFromCache(this),this.textureCacheIds=null}clone(){var i;const t=this._frame.clone(),n=this._frame===this.orig?t:this.orig.clone(),r=new pt(this.baseTexture,!this.noFrame&&t,n,(i=this.trim)==null?void 0:i.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(r._frame=t),r}updateUvs(){this._uvs===nV&&(this._uvs=new tre),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(t,n={},r=nt.STRICT_TEXTURE_CACHE){const i=typeof t=="string";let o=null;if(i)o=t;else if(t instanceof Gt){if(!t.cacheId){const a=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t.cacheId=`${a}-${Vp()}`,Gt.addToCache(t,t.cacheId)}o=t.cacheId}else{if(!t._pixiId){const a=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t._pixiId=`${a}_${Vp()}`}o=t._pixiId}let s=zl[o];if(i&&r&&!s)throw new Error(`The cacheId "${o}" does not exist in TextureCache.`);return!s&&!(t instanceof Gt)?(n.resolution||(n.resolution=sf(t)),s=new pt(new Gt(t,n)),s.baseTexture.cacheId=o,Gt.addToCache(s.baseTexture,o),pt.addToCache(s,o)):!s&&t instanceof Gt&&(s=new pt(t),pt.addToCache(s,o)),s}static fromURL(t,n){const r=Object.assign({autoLoad:!1},n==null?void 0:n.resourceOptions),i=pt.from(t,Object.assign({resourceOptions:r},n),!1),o=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):o.load().then(()=>Promise.resolve(i))}static fromBuffer(t,n,r,i){return new pt(Gt.fromBuffer(t,n,r,i))}static fromLoader(t,n,r,i){const o=new Gt(t,Object.assign({scaleMode:Gt.defaultOptions.scaleMode,resolution:sf(n)},i)),{resource:s}=o;s instanceof ere&&(s.url=n);const a=new pt(o);return r||(r=n),Gt.addToCache(a.baseTexture,r),pt.addToCache(a,r),r!==n&&(Gt.addToCache(a.baseTexture,n),pt.addToCache(a,n)),a.baseTexture.valid?Promise.resolve(a):new Promise(c=>{a.baseTexture.once("loaded",()=>c(a))})}static addToCache(t,n){n&&(t.textureCacheIds.includes(n)||t.textureCacheIds.push(n),zl[n]&&zl[n]!==t&&console.warn(`Texture added to the cache with an id [${n}] that already had an entry`),zl[n]=t)}static removeFromCache(t){if(typeof t=="string"){const n=zl[t];if(n){const r=n.textureCacheIds.indexOf(t);return r>-1&&n.textureCacheIds.splice(r,1),delete zl[t],n}}else if(t!=null&&t.textureCacheIds){for(let n=0;nthis.baseTexture.width,a=r+o>this.baseTexture.height;if(s||a){const c=s&&a?"and":"or",u=`X: ${n} + ${i} = ${n+i} > ${this.baseTexture.width}`,f=`Y: ${r} + ${o} = ${r+o} > ${this.baseTexture.height}`;throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${u} ${c} ${f}`)}this.valid=i&&o&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=t),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(t){this._rotate=t,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return pt._EMPTY||(pt._EMPTY=new pt(new Gt),_S(pt._EMPTY),_S(pt._EMPTY.baseTexture)),pt._EMPTY}static get WHITE(){if(!pt._WHITE){const t=nt.ADAPTER.createCanvas(16,16),n=t.getContext("2d");t.width=16,t.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),pt._WHITE=new pt(Gt.from(t)),_S(pt._WHITE),_S(pt._WHITE.baseTexture)}return pt._WHITE}}class lm extends pt{constructor(t,n){super(t,n),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(t){this.framebuffer.multisample=t}resize(t,n,r=!0){const i=this.baseTexture.resolution,o=Math.round(t*i)/i,s=Math.round(n*i)/i;this.valid=o>0&&s>0,this._frame.width=this.orig.width=o,this._frame.height=this.orig.height=s,r&&this.baseTexture.resize(o,s),this.updateUvs()}setResolution(t){const{baseTexture:n}=this;n.resolution!==t&&(n.setResolution(t),this.resize(n.width,n.height,!1))}static create(t){return new lm(new Zne(t))}}class nre{constructor(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}createTexture(t,n,r=ri.NONE){const i=new Zne(Object.assign({width:t,height:n,resolution:1,multisample:r},this.textureOptions));return new lm(i)}getOptimalTexture(t,n,r=1,i=ri.NONE){let o;t=Math.ceil(t*r-1e-6),n=Math.ceil(n*r-1e-6),!this.enableFullScreen||t!==this._pixelsWidth||n!==this._pixelsHeight?(t=ZC(t),n=ZC(n),o=((t&65535)<<16|n&65535)>>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);let s=this.texturePool[o].pop();return s||(s=this.createTexture(t,n,i)),s.filterPoolKey=o,s.setResolution(r),s}getFilterTexture(t,n,r){const i=this.getOptimalTexture(t.width,t.height,n||t.resolution,r||ri.NONE);return i.filterFrame=t.filterFrame,i}returnTexture(t){const n=t.filterPoolKey;t.filterFrame=null,this.texturePool[n].push(t)}returnFilterTexture(t){this.returnTexture(t)}clear(t){if(t=t!==!1,t)for(const n in this.texturePool){const r=this.texturePool[n];if(r)for(let i=0;i0&&t.height>0;for(const n in this.texturePool){if(!(Number(n)<0))continue;const r=this.texturePool[n];if(r)for(let i=0;i1&&(f=this.getOptimalFilterTexture(u.width,u.height,n.resolution),f.filterFrame=u.filterFrame),r[h].apply(this,u,f,Gl.CLEAR,n);const p=u;u=f,f=p}r[h].apply(this,u,c.renderTexture,Gl.BLEND,n),h>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(u),this.returnFilterTexture(f)}n.clear(),this.statePool.push(n)}bindAndClear(t,n=Gl.CLEAR){const{renderTexture:r,state:i}=this.renderer;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t!=null&&t.filterFrame){const s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,r.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);const o=i.stateId&1||this.forceClear;(n===Gl.CLEAR||n===Gl.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(t,n,r,i){const o=this.renderer;o.state.set(t.state),this.bindAndClear(r,i),t.uniforms.uSampler=n,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(n._frame,n.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(Kl.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(Kl.TRIANGLE_STRIP))}calculateSpriteMatrix(t,n){const{sourceFrame:r,destinationFrame:i}=this.activeState,{orig:o}=n._texture,s=t.set(i.width,0,0,i.height,r.x,r.y),a=n.worldTransform.copyTo(Cr.TEMP_MATRIX);return a.invert(),s.prepend(a),s.scale(1/o.width,1/o.height),s.translate(n.anchor.x,n.anchor.y),s}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(t,n,r=1,i=ri.NONE){return this.texturePool.getOptimalTexture(t,n,r,i)}getFilterTexture(t,n,r){if(typeof t=="number"){const o=t;t=n,n=o}t=t||this.activeState.renderTexture;const i=this.texturePool.getOptimalTexture(t.width,t.height,n||t.resolution,r||ri.NONE);return i.filterFrame=t.filterFrame,i}returnFilterTexture(t){this.texturePool.returnTexture(t)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(t,n){const r=SS[0],i=SS[1],o=SS[2],s=SS[3];r.set(n.left,n.top),i.set(n.left,n.bottom),o.set(n.right,n.top),s.set(n.right,n.bottom),t.apply(r,r),t.apply(i,i),t.apply(o,o),t.apply(s,s);const a=Math.min(r.x,i.x,o.x,s.x),c=Math.min(r.y,i.y,o.y,s.y),u=Math.max(r.x,i.x,o.x,s.x),f=Math.max(r.y,i.y,o.y,s.y);n.x=a,n.y=c,n.width=u-a,n.height=f-c}roundFrame(t,n,r,i,o){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(o){const{a:s,b:a,c,d:u}=o;if((Math.abs(a)>1e-4||Math.abs(c)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(u)>1e-4))return}o=o?JB.copyFrom(o):JB.identity(),o.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(n),this.transformAABB(o.invert(),t)}}}ire.extension={type:ot.RendererSystem,name:"filter"};wt.add(ire);class vze{constructor(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=ri.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}const yze=new Jt;class ore{constructor(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new _5(10,10),this.msaaSamples=null}contextChange(){this.disposeAll(!0);const t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Jt,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){let n=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;nt.PREFER_ENV===am.WEBGL_LEGACY&&(n=null,r=null),n?t.drawBuffers=i=>n.drawBuffersWEBGL(i):(this.hasMRT=!1,t.drawBuffers=()=>{}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)}bind(t,n,r=0){const{gl:i}=this;if(t){const o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=r),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(let s=0;s>r,a=n.height>>r,c=s/n.width;this.setViewport(n.x*c,n.y*c,s,a)}else{const s=t.width>>r,a=t.height>>r;this.setViewport(0,0,s,a)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(t,n,r,i){const o=this.viewport;t=Math.round(t),n=Math.round(n),r=Math.round(r),i=Math.round(i),(o.width!==r||o.height!==i||o.x!==t||o.y!==n)&&(o.x=t,o.y=n,o.width=r,o.height=i,this.gl.viewport(t,n,r,i))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(t,n,r,i,o=Z3.COLOR|Z3.DEPTH){const{gl:s}=this;s.clearColor(t,n,r,i),s.clear(o)}initFramebuffer(t){const{gl:n}=this,r=new vze(n.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r}resizeFramebuffer(t){const{gl:n}=this,r=t.glFramebuffers[this.CONTEXT_UID];r.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height));const i=t.colorTextures;let o=i.length;n.drawBuffers||(o=Math.min(o,1));for(let s=0;s1&&this.canMultisampleFramebuffer(t)?i.msaaBuffer=i.msaaBuffer||r.createRenderbuffer():i.msaaBuffer&&(r.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));const a=[];for(let c=0;c1&&r.drawBuffers(a),t.depthTexture&&this.writeDepthTexture){const u=t.depthTexture;this.renderer.texture.bind(u,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,u._glTextures[this.CONTEXT_UID].texture,n)}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.stencil),i.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,i.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i.stencil)):i.stencil&&(r.deleteRenderbuffer(i.stencil),i.stencil=null)}canMultisampleFramebuffer(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture}detectSamples(t){const{msaaSamples:n}=this;let r=ri.NONE;if(t<=1||n===null)return r;for(let i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),n||(i.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&i.deleteRenderbuffer(r.msaaBuffer),r.stencil&&i.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&this.disposeFramebuffer(r.blitFramebuffer,n)}disposeAll(t){const n=this.managedFramebuffers;this.managedFramebuffers=[];for(let r=0;rr.createVertexArrayOES(),t.bindVertexArray=i=>r.bindVertexArrayOES(i),t.deleteVertexArray=i=>r.deleteVertexArrayOES(i)):(this.hasVao=!1,t.createVertexArray=()=>null,t.bindVertexArray=()=>null,t.deleteVertexArray=()=>null)}if(n.webGLVersion!==2){const r=t.getExtension("ANGLE_instanced_arrays");r?(t.vertexAttribDivisor=(i,o)=>r.vertexAttribDivisorANGLE(i,o),t.drawElementsInstanced=(i,o,s,a,c)=>r.drawElementsInstancedANGLE(i,o,s,a,c),t.drawArraysInstanced=(i,o,s,a)=>r.drawArraysInstancedANGLE(i,o,s,a)):this.hasInstance=!1}this.canUseUInt32ElementIndex=n.webGLVersion===2||!!n.extensions.uint32ElementIndex}bind(t,n){n=n||this.renderer.shader.shader;const{gl:r}=this;let i=t.glVertexArrayObjects[this.CONTEXT_UID],o=!1;i||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=i={},o=!0);const s=i[n.program.id]||this.initGeometryVao(t,n,o);this._activeGeometry=t,this._activeVao!==s&&(this._activeVao=s,this.hasVao?r.bindVertexArray(s):this.activateVao(t,n.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const t=this._activeGeometry,n=this.renderer.buffer;for(let r=0;r"u"?.5:n,this.isSimple=!1}get texture(){return this._texture}set texture(t){this._texture=t,this._textureID=-1}multiplyUvs(t,n){n===void 0&&(n=t);const r=this.mapCoord;for(let i=0;i=0;--i)t[i]=r[i]||null,t[i]&&(t[i]._batchLocation=i)}boundArray(t,n,r,i){const{elements:o,ids:s,count:a}=t;let c=0;for(let u=0;u=0&&h=um.WEBGL2&&(r=t.getContext("webgl2",n)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,n={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,n,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,n,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})}handleContextLost(t){t.preventDefault(),setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()},0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){const t=this.renderer.view;this.renderer=null,t.removeEventListener!==void 0&&(t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(t){const n=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const i=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}}PA.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"};PA.extension={type:ot.RendererSystem,name:"context"};wt.add(PA);class Pze extends Kw{upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Ml.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}}class S5{constructor(t,n){this.width=Math.round(t||100),this.height=Math.round(n||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new El("disposeFramebuffer"),this.multisample=ri.NONE}get colorTexture(){return this.colorTextures[0]}addColorTexture(t=0,n){return this.colorTextures[t]=n||new Vt(null,{scaleMode:ku.NEAREST,resolution:1,mipmap:fc.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(t){return this.depthTexture=t||new Vt(new Pze(null,{width:this.width,height:this.height}),{scaleMode:ku.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:fc.OFF,format:Ve.DEPTH_COMPONENT,type:Ot.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(t,n){if(t=Math.round(t),n=Math.round(n),!(t===this.width&&n===this.height)){this.width=t,this.height=n,this.dirtyId++,this.dirtySize++;for(let r=0;r{const i=this.source;this.url=i.src;const o=()=>{this.destroyed||(i.onload=null,i.onerror=null,this.resize(i.width,i.height),this._load=null,this.createBitmap?n(this.process()):n(this))};i.complete&&i.src?o():(i.onload=o,i.onerror=s=>{r(s),this.onError.emit(s)})}),this._load)}process(){const t=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);const n=globalThis.createImageBitmap,r=!t.crossOrigin||t.crossOrigin==="anonymous";return this._process=fetch(t.src,{mode:r?"cors":"no-cors"}).then(i=>i.blob()).then(i=>n(i,0,0,t.width,t.height,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===Ml.UNPACK?"premultiply":"none"})).then(i=>this.destroyed?Promise.reject():(this.bitmap=i,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(t,n,r){if(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(t,n,r);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(t,n,r,this.bitmap),!this.preserveBitmap){let i=!0;const o=n._glTextures;for(const s in o){const a=o[s];if(a!==r&&a.dirtyId!==n.dirtyId){i=!1;break}}i&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(t){return typeof HTMLImageElement<"u"&&(typeof t=="string"||t instanceof HTMLImageElement)}}class cre{constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}set(t,n,r){const i=n.width,o=n.height;if(r){const s=t.width/2/i,a=t.height/2/o,c=t.x/i+s,u=t.y/o+a;r=Mr.add(r,Mr.NW),this.x0=c+s*Mr.uX(r),this.y0=u+a*Mr.uY(r),r=Mr.add(r,2),this.x1=c+s*Mr.uX(r),this.y1=u+a*Mr.uY(r),r=Mr.add(r,2),this.x2=c+s*Mr.uX(r),this.y2=u+a*Mr.uY(r),r=Mr.add(r,2),this.x3=c+s*Mr.uX(r),this.y3=u+a*Mr.uY(r)}else this.x0=t.x/i,this.y0=t.y/o,this.x1=(t.x+t.width)/i,this.y1=t.y/o,this.x2=(t.x+t.width)/i,this.y2=(t.y+t.height)/o,this.x3=t.x/i,this.y3=(t.y+t.height)/o;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}toString(){return`[@pixi/core:TextureUvs x0=${this.x0} y0=${this.y0} x1=${this.x1} y1=${this.y1} x2=${this.x2} y2=${this.y2} x3=${this.x3} y3=${this.y3}]`}}const lV=new cre;function SS(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}class mt extends Xw{constructor(t,n,r,i,o,s,a){if(super(),this.noFrame=!1,n||(this.noFrame=!0,n=new Zt(0,0,1,1)),t instanceof mt&&(t=t.baseTexture),this.baseTexture=t,this._frame=n,this.trim=i,this.valid=!1,this._uvs=lV,this.uvMatrix=null,this.orig=r||n,this._rotate=Number(o||0),o===!0)this._rotate=2;else if(this._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=s?new Lt(s.x,s.y):new Lt(0,0),this.defaultBorders=a,this._updateID=0,this.textureCacheIds=[],t.valid?this.noFrame?t.valid&&this.onBaseTextureUpdated(t):this.frame=n:t.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&t.on("update",this.onBaseTextureUpdated,this)}update(){this.baseTexture.resource&&this.baseTexture.resource.update()}onBaseTextureUpdated(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(t){if(this.baseTexture){if(t){const{resource:n}=this.baseTexture;n!=null&&n.url&&zl[n.url]&&mt.removeFromCache(n.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,mt.removeFromCache(this),this.textureCacheIds=null}clone(){var i;const t=this._frame.clone(),n=this._frame===this.orig?t:this.orig.clone(),r=new mt(this.baseTexture,!this.noFrame&&t,n,(i=this.trim)==null?void 0:i.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(r._frame=t),r}updateUvs(){this._uvs===lV&&(this._uvs=new cre),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(t,n={},r=nt.STRICT_TEXTURE_CACHE){const i=typeof t=="string";let o=null;if(i)o=t;else if(t instanceof Vt){if(!t.cacheId){const a=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t.cacheId=`${a}-${Yp()}`,Vt.addToCache(t,t.cacheId)}o=t.cacheId}else{if(!t._pixiId){const a=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t._pixiId=`${a}_${Yp()}`}o=t._pixiId}let s=zl[o];if(i&&r&&!s)throw new Error(`The cacheId "${o}" does not exist in TextureCache.`);return!s&&!(t instanceof Vt)?(n.resolution||(n.resolution=sf(t)),s=new mt(new Vt(t,n)),s.baseTexture.cacheId=o,Vt.addToCache(s.baseTexture,o),mt.addToCache(s,o)):!s&&t instanceof Vt&&(s=new mt(t),mt.addToCache(s,o)),s}static fromURL(t,n){const r=Object.assign({autoLoad:!1},n==null?void 0:n.resourceOptions),i=mt.from(t,Object.assign({resourceOptions:r},n),!1),o=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):o.load().then(()=>Promise.resolve(i))}static fromBuffer(t,n,r,i){return new mt(Vt.fromBuffer(t,n,r,i))}static fromLoader(t,n,r,i){const o=new Vt(t,Object.assign({scaleMode:Vt.defaultOptions.scaleMode,resolution:sf(n)},i)),{resource:s}=o;s instanceof lre&&(s.url=n);const a=new mt(o);return r||(r=n),Vt.addToCache(a.baseTexture,r),mt.addToCache(a,r),r!==n&&(Vt.addToCache(a.baseTexture,n),mt.addToCache(a,n)),a.baseTexture.valid?Promise.resolve(a):new Promise(c=>{a.baseTexture.once("loaded",()=>c(a))})}static addToCache(t,n){n&&(t.textureCacheIds.includes(n)||t.textureCacheIds.push(n),zl[n]&&zl[n]!==t&&console.warn(`Texture added to the cache with an id [${n}] that already had an entry`),zl[n]=t)}static removeFromCache(t){if(typeof t=="string"){const n=zl[t];if(n){const r=n.textureCacheIds.indexOf(t);return r>-1&&n.textureCacheIds.splice(r,1),delete zl[t],n}}else if(t!=null&&t.textureCacheIds){for(let n=0;nthis.baseTexture.width,a=r+o>this.baseTexture.height;if(s||a){const c=s&&a?"and":"or",u=`X: ${n} + ${i} = ${n+i} > ${this.baseTexture.width}`,f=`Y: ${r} + ${o} = ${r+o} > ${this.baseTexture.height}`;throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${u} ${c} ${f}`)}this.valid=i&&o&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=t),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(t){this._rotate=t,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return mt._EMPTY||(mt._EMPTY=new mt(new Vt),SS(mt._EMPTY),SS(mt._EMPTY.baseTexture)),mt._EMPTY}static get WHITE(){if(!mt._WHITE){const t=nt.ADAPTER.createCanvas(16,16),n=t.getContext("2d");t.width=16,t.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),mt._WHITE=new mt(Vt.from(t)),SS(mt._WHITE),SS(mt._WHITE.baseTexture)}return mt._WHITE}}class dm extends mt{constructor(t,n){super(t,n),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(t){this.framebuffer.multisample=t}resize(t,n,r=!0){const i=this.baseTexture.resolution,o=Math.round(t*i)/i,s=Math.round(n*i)/i;this.valid=o>0&&s>0,this._frame.width=this.orig.width=o,this._frame.height=this.orig.height=s,r&&this.baseTexture.resize(o,s),this.updateUvs()}setResolution(t){const{baseTexture:n}=this;n.resolution!==t&&(n.setResolution(t),this.resize(n.width,n.height,!1))}static create(t){return new dm(new are(t))}}class ure{constructor(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}createTexture(t,n,r=ri.NONE){const i=new are(Object.assign({width:t,height:n,resolution:1,multisample:r},this.textureOptions));return new dm(i)}getOptimalTexture(t,n,r=1,i=ri.NONE){let o;t=Math.ceil(t*r-1e-6),n=Math.ceil(n*r-1e-6),!this.enableFullScreen||t!==this._pixelsWidth||n!==this._pixelsHeight?(t=eT(t),n=eT(n),o=((t&65535)<<16|n&65535)>>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);let s=this.texturePool[o].pop();return s||(s=this.createTexture(t,n,i)),s.filterPoolKey=o,s.setResolution(r),s}getFilterTexture(t,n,r){const i=this.getOptimalTexture(t.width,t.height,n||t.resolution,r||ri.NONE);return i.filterFrame=t.filterFrame,i}returnTexture(t){const n=t.filterPoolKey;t.filterFrame=null,this.texturePool[n].push(t)}returnFilterTexture(t){this.returnTexture(t)}clear(t){if(t=t!==!1,t)for(const n in this.texturePool){const r=this.texturePool[n];if(r)for(let i=0;i0&&t.height>0;for(const n in this.texturePool){if(!(Number(n)<0))continue;const r=this.texturePool[n];if(r)for(let i=0;i1&&(f=this.getOptimalFilterTexture(u.width,u.height,n.resolution),f.filterFrame=u.filterFrame),r[h].apply(this,u,f,Gl.CLEAR,n);const p=u;u=f,f=p}r[h].apply(this,u,c.renderTexture,Gl.BLEND,n),h>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(u),this.returnFilterTexture(f)}n.clear(),this.statePool.push(n)}bindAndClear(t,n=Gl.CLEAR){const{renderTexture:r,state:i}=this.renderer;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t!=null&&t.filterFrame){const s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,r.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);const o=i.stateId&1||this.forceClear;(n===Gl.CLEAR||n===Gl.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(t,n,r,i){const o=this.renderer;o.state.set(t.state),this.bindAndClear(r,i),t.uniforms.uSampler=n,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(n._frame,n.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(Kl.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(Kl.TRIANGLE_STRIP))}calculateSpriteMatrix(t,n){const{sourceFrame:r,destinationFrame:i}=this.activeState,{orig:o}=n._texture,s=t.set(i.width,0,0,i.height,r.x,r.y),a=n.worldTransform.copyTo(Cr.TEMP_MATRIX);return a.invert(),s.prepend(a),s.scale(1/o.width,1/o.height),s.translate(n.anchor.x,n.anchor.y),s}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(t,n,r=1,i=ri.NONE){return this.texturePool.getOptimalTexture(t,n,r,i)}getFilterTexture(t,n,r){if(typeof t=="number"){const o=t;t=n,n=o}t=t||this.activeState.renderTexture;const i=this.texturePool.getOptimalTexture(t.width,t.height,n||t.resolution,r||ri.NONE);return i.filterFrame=t.filterFrame,i}returnFilterTexture(t){this.texturePool.returnTexture(t)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(t,n){const r=ES[0],i=ES[1],o=ES[2],s=ES[3];r.set(n.left,n.top),i.set(n.left,n.bottom),o.set(n.right,n.top),s.set(n.right,n.bottom),t.apply(r,r),t.apply(i,i),t.apply(o,o),t.apply(s,s);const a=Math.min(r.x,i.x,o.x,s.x),c=Math.min(r.y,i.y,o.y,s.y),u=Math.max(r.x,i.x,o.x,s.x),f=Math.max(r.y,i.y,o.y,s.y);n.x=a,n.y=c,n.width=u-a,n.height=f-c}roundFrame(t,n,r,i,o){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(o){const{a:s,b:a,c,d:u}=o;if((Math.abs(a)>1e-4||Math.abs(c)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(u)>1e-4))return}o=o?ZB.copyFrom(o):ZB.identity(),o.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(n),this.transformAABB(o.invert(),t)}}}fre.extension={type:ot.RendererSystem,name:"filter"};wt.add(fre);class Lze{constructor(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=ri.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}const Dze=new Zt;class hre{constructor(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new S5(10,10),this.msaaSamples=null}contextChange(){this.disposeAll(!0);const t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Zt,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){let n=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;nt.PREFER_ENV===um.WEBGL_LEGACY&&(n=null,r=null),n?t.drawBuffers=i=>n.drawBuffersWEBGL(i):(this.hasMRT=!1,t.drawBuffers=()=>{}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)}bind(t,n,r=0){const{gl:i}=this;if(t){const o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=r),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(let s=0;s>r,a=n.height>>r,c=s/n.width;this.setViewport(n.x*c,n.y*c,s,a)}else{const s=t.width>>r,a=t.height>>r;this.setViewport(0,0,s,a)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(t,n,r,i){const o=this.viewport;t=Math.round(t),n=Math.round(n),r=Math.round(r),i=Math.round(i),(o.width!==r||o.height!==i||o.x!==t||o.y!==n)&&(o.x=t,o.y=n,o.width=r,o.height=i,this.gl.viewport(t,n,r,i))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(t,n,r,i,o=e5.COLOR|e5.DEPTH){const{gl:s}=this;s.clearColor(t,n,r,i),s.clear(o)}initFramebuffer(t){const{gl:n}=this,r=new Lze(n.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r}resizeFramebuffer(t){const{gl:n}=this,r=t.glFramebuffers[this.CONTEXT_UID];r.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height));const i=t.colorTextures;let o=i.length;n.drawBuffers||(o=Math.min(o,1));for(let s=0;s1&&this.canMultisampleFramebuffer(t)?i.msaaBuffer=i.msaaBuffer||r.createRenderbuffer():i.msaaBuffer&&(r.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));const a=[];for(let c=0;c1&&r.drawBuffers(a),t.depthTexture&&this.writeDepthTexture){const u=t.depthTexture;this.renderer.texture.bind(u,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,u._glTextures[this.CONTEXT_UID].texture,n)}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.stencil),i.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,i.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i.stencil)):i.stencil&&(r.deleteRenderbuffer(i.stencil),i.stencil=null)}canMultisampleFramebuffer(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture}detectSamples(t){const{msaaSamples:n}=this;let r=ri.NONE;if(t<=1||n===null)return r;for(let i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),n||(i.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&i.deleteRenderbuffer(r.msaaBuffer),r.stencil&&i.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&this.disposeFramebuffer(r.blitFramebuffer,n)}disposeAll(t){const n=this.managedFramebuffers;this.managedFramebuffers=[];for(let r=0;rr.createVertexArrayOES(),t.bindVertexArray=i=>r.bindVertexArrayOES(i),t.deleteVertexArray=i=>r.deleteVertexArrayOES(i)):(this.hasVao=!1,t.createVertexArray=()=>null,t.bindVertexArray=()=>null,t.deleteVertexArray=()=>null)}if(n.webGLVersion!==2){const r=t.getExtension("ANGLE_instanced_arrays");r?(t.vertexAttribDivisor=(i,o)=>r.vertexAttribDivisorANGLE(i,o),t.drawElementsInstanced=(i,o,s,a,c)=>r.drawElementsInstancedANGLE(i,o,s,a,c),t.drawArraysInstanced=(i,o,s,a)=>r.drawArraysInstancedANGLE(i,o,s,a)):this.hasInstance=!1}this.canUseUInt32ElementIndex=n.webGLVersion===2||!!n.extensions.uint32ElementIndex}bind(t,n){n=n||this.renderer.shader.shader;const{gl:r}=this;let i=t.glVertexArrayObjects[this.CONTEXT_UID],o=!1;i||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=i={},o=!0);const s=i[n.program.id]||this.initGeometryVao(t,n,o);this._activeGeometry=t,this._activeVao!==s&&(this._activeVao=s,this.hasVao?r.bindVertexArray(s):this.activateVao(t,n.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const t=this._activeGeometry,n=this.renderer.buffer;for(let r=0;r"u"?.5:n,this.isSimple=!1}get texture(){return this._texture}set texture(t){this._texture=t,this._textureID=-1}multiplyUvs(t,n){n===void 0&&(n=t);const r=this.mapCoord;for(let i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;r!==n&&this.renderer.gl.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)}destroy(){this.renderer=null}}lre.extension={type:ot.RendererSystem,name:"mask"};wt.add(lre);class cre{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:n}=this.renderer,r=this.getStackLength();this.maskStack=t;const i=this.getStackLength();i!==r&&(i===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const iV=new Cr,oV=[],TE=class extends cre{constructor(e){super(e),this.glConst=nt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:r}=this,i=r.renderTexture,o=n.getBounds(!0,oV.pop()??new Jt);this.roundFrameToPixels(o,i.current?i.current.resolution:r.resolution,i.sourceFrame,i.destinationFrame,r.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static isMatrixRotated(e){if(!e)return!1;const{a:t,b:n,c:r,d:i}=e;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(i)>1e-4)}testScissor(e){const{maskObject:t}=e;if(!t.isFastRect||!t.isFastRect()||TE.isMatrixRotated(t.worldTransform)||TE.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);const n=e._scissorRectLocal;return n.width>0&&n.height>0}roundFrameToPixels(e,t,n,r,i){TE.isMatrixRotated(i)||(i=i?iV.copyFrom(i):iV.identity(),i.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.renderer.filter.transformAABB(i,e),e.fit(r),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))}push(e){e._scissorRectLocal||this.calcScissorRect(e);const{gl:t}=this.renderer;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()}pop(e){const{gl:t}=this.renderer;e&&oV.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)}_useCurrent(){const e=this.maskStack[this.maskStack.length-1]._scissorRect;let t;this.renderer.renderTexture.current?t=e.y:t=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)}};let ure=TE;ure.extension={type:ot.RendererSystem,name:"scissor"};wt.add(ure);class dre extends cre{constructor(t){super(t),this.glConst=nt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0}push(t){const n=t.maskObject,{gl:r}=this.renderer,i=t._stencilCounter;i===0&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),t._stencilCounter++;const o=t._colorMask;o!==0&&(t._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilFunc(r.EQUAL,i,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,o!==0&&(t._colorMask=o,r.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}pop(t){const n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{const r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,i=r?r._colorMask:15;i!==0&&(r._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,i!==0&&(r._colorMask=i,n.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)),this._useCurrent()}}_useCurrent(){const t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)}}dre.extension={type:ot.RendererSystem,name:"stencil"};wt.add(dre);class fre{constructor(t){this.renderer=t,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.extract has moved to renderer.extract"),t.extract}},prepare:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),t.prepare}},interaction:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),t.events}}})}init(){const t=this.rendererPlugins;for(const n in t)this.plugins[n]=new t[n](this.renderer)}destroy(){for(const t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null}}fre.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"_plugin"};wt.add(fre);class hre{constructor(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Cr,this.transform=null}update(t,n,r,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);const o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)}calculateProjection(t,n,r,i){const o=this.projectionMatrix,s=i?-1:1;o.identity(),o.a=1/n.width*2,o.d=s*(1/n.height*2),o.tx=-1-n.x*o.a,o.ty=-s-n.y*o.d}setTransform(t){}destroy(){this.renderer=null}}hre.extension={type:ot.RendererSystem,name:"projection"};wt.add(hre);const Sze=new bU;class pre{constructor(t){this.renderer=t,this._tempMatrix=new Cr}generateTexture(t,n){const{region:r,...i}=n||{},o=r||t.getLocalBounds(null,!0);o.width===0&&(o.width=1),o.height===0&&(o.height=1);const s=lm.create({width:o.width,height:o.height,...i});this._tempMatrix.tx=-o.x,this._tempMatrix.ty=-o.y;const a=t.transform;return t.transform=Sze,this.renderer.render(t,{renderTexture:s,transform:this._tempMatrix,skipUpdateTransform:!!t.parent,blit:!0}),t.transform=a,s}destroy(){}}pre.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"textureGenerator"};wt.add(pre);const Hh=new Jt,Gb=new Jt;class mre{constructor(t){this.renderer=t,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Jt,this.destinationFrame=new Jt,this.viewportFrame=new Jt}contextChange(){var n;const t=(n=this.renderer)==null?void 0:n.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(t&&t.alpha&&t.premultipliedAlpha)}bind(t=null,n,r){const i=this.renderer;this.current=t;let o,s,a;t?(o=t.baseTexture,a=o.resolution,n||(Hh.width=t.frame.width,Hh.height=t.frame.height,n=Hh),r||(Gb.x=t.frame.x,Gb.y=t.frame.y,Gb.width=n.width,Gb.height=n.height,r=Gb),s=o.framebuffer):(a=i.resolution,n||(Hh.width=i._view.screen.width,Hh.height=i._view.screen.height,n=Hh),r||(r=Hh,r.width=n.width,r.height=n.height));const c=this.viewportFrame;c.x=r.x*a,c.y=r.y*a,c.width=r.width*a,c.height=r.height*a,t||(c.y=i.view.height-(c.y+c.height)),c.ceil(),this.renderer.framebuffer.bind(s,c),this.renderer.projection.update(r,n,a,!s),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(r)}clear(t,n){const r=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,i=Vn.shared.setValue(t||r);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&i.premultiply(i.alpha);const o=this.destinationFrame,s=this.current?this.current.baseTexture:this.renderer._view.screen,a=o.width!==s.width||o.height!==s.height;if(a){let{x:c,y:u,width:f,height:h}=this.viewportFrame;c=Math.round(c),u=Math.round(u),f=Math.round(f),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(c,u,f,h)}this.renderer.framebuffer.clear(i.red,i.green,i.blue,i.alpha,n),a&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}}mre.extension={type:ot.RendererSystem,name:"renderTexture"};wt.add(mre);class Eze{constructor(t,n){this.program=t,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}}function Cze(e,t){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;if>h?1:-1);for(let f=0;f0?this.maskStack[this.maskStack.length-1]._colorMask:15;r!==n&&this.renderer.gl.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)}destroy(){this.renderer=null}}gre.extension={type:ot.RendererSystem,name:"mask"};wt.add(gre);class vre{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:n}=this.renderer,r=this.getStackLength();this.maskStack=t;const i=this.getStackLength();i!==r&&(i===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const uV=new Cr,dV=[],AE=class extends vre{constructor(e){super(e),this.glConst=nt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:r}=this,i=r.renderTexture,o=n.getBounds(!0,dV.pop()??new Zt);this.roundFrameToPixels(o,i.current?i.current.resolution:r.resolution,i.sourceFrame,i.destinationFrame,r.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static isMatrixRotated(e){if(!e)return!1;const{a:t,b:n,c:r,d:i}=e;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(i)>1e-4)}testScissor(e){const{maskObject:t}=e;if(!t.isFastRect||!t.isFastRect()||AE.isMatrixRotated(t.worldTransform)||AE.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);const n=e._scissorRectLocal;return n.width>0&&n.height>0}roundFrameToPixels(e,t,n,r,i){AE.isMatrixRotated(i)||(i=i?uV.copyFrom(i):uV.identity(),i.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.renderer.filter.transformAABB(i,e),e.fit(r),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))}push(e){e._scissorRectLocal||this.calcScissorRect(e);const{gl:t}=this.renderer;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()}pop(e){const{gl:t}=this.renderer;e&&dV.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)}_useCurrent(){const e=this.maskStack[this.maskStack.length-1]._scissorRect;let t;this.renderer.renderTexture.current?t=e.y:t=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)}};let yre=AE;yre.extension={type:ot.RendererSystem,name:"scissor"};wt.add(yre);class bre extends vre{constructor(t){super(t),this.glConst=nt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0}push(t){const n=t.maskObject,{gl:r}=this.renderer,i=t._stencilCounter;i===0&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),t._stencilCounter++;const o=t._colorMask;o!==0&&(t._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilFunc(r.EQUAL,i,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,o!==0&&(t._colorMask=o,r.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}pop(t){const n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{const r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,i=r?r._colorMask:15;i!==0&&(r._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,i!==0&&(r._colorMask=i,n.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)),this._useCurrent()}}_useCurrent(){const t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)}}bre.extension={type:ot.RendererSystem,name:"stencil"};wt.add(bre);class xre{constructor(t){this.renderer=t,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.extract has moved to renderer.extract"),t.extract}},prepare:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),t.prepare}},interaction:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),t.events}}})}init(){const t=this.rendererPlugins;for(const n in t)this.plugins[n]=new t[n](this.renderer)}destroy(){for(const t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null}}xre.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"_plugin"};wt.add(xre);class wre{constructor(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Cr,this.transform=null}update(t,n,r,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);const o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)}calculateProjection(t,n,r,i){const o=this.projectionMatrix,s=i?-1:1;o.identity(),o.a=1/n.width*2,o.d=s*(1/n.height*2),o.tx=-1-n.x*o.a,o.ty=-s-n.y*o.d}setTransform(t){}destroy(){this.renderer=null}}wre.extension={type:ot.RendererSystem,name:"projection"};wt.add(wre);const zze=new SU;class _re{constructor(t){this.renderer=t,this._tempMatrix=new Cr}generateTexture(t,n){const{region:r,...i}=n||{},o=r||t.getLocalBounds(null,!0);o.width===0&&(o.width=1),o.height===0&&(o.height=1);const s=dm.create({width:o.width,height:o.height,...i});this._tempMatrix.tx=-o.x,this._tempMatrix.ty=-o.y;const a=t.transform;return t.transform=zze,this.renderer.render(t,{renderTexture:s,transform:this._tempMatrix,skipUpdateTransform:!!t.parent,blit:!0}),t.transform=a,s}destroy(){}}_re.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"textureGenerator"};wt.add(_re);const Wh=new Zt,Wb=new Zt;class Sre{constructor(t){this.renderer=t,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Zt,this.destinationFrame=new Zt,this.viewportFrame=new Zt}contextChange(){var n;const t=(n=this.renderer)==null?void 0:n.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(t&&t.alpha&&t.premultipliedAlpha)}bind(t=null,n,r){const i=this.renderer;this.current=t;let o,s,a;t?(o=t.baseTexture,a=o.resolution,n||(Wh.width=t.frame.width,Wh.height=t.frame.height,n=Wh),r||(Wb.x=t.frame.x,Wb.y=t.frame.y,Wb.width=n.width,Wb.height=n.height,r=Wb),s=o.framebuffer):(a=i.resolution,n||(Wh.width=i._view.screen.width,Wh.height=i._view.screen.height,n=Wh),r||(r=Wh,r.width=n.width,r.height=n.height));const c=this.viewportFrame;c.x=r.x*a,c.y=r.y*a,c.width=r.width*a,c.height=r.height*a,t||(c.y=i.view.height-(c.y+c.height)),c.ceil(),this.renderer.framebuffer.bind(s,c),this.renderer.projection.update(r,n,a,!s),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(r)}clear(t,n){const r=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,i=Vn.shared.setValue(t||r);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&i.premultiply(i.alpha);const o=this.destinationFrame,s=this.current?this.current.baseTexture:this.renderer._view.screen,a=o.width!==s.width||o.height!==s.height;if(a){let{x:c,y:u,width:f,height:h}=this.viewportFrame;c=Math.round(c),u=Math.round(u),f=Math.round(f),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(c,u,f,h)}this.renderer.framebuffer.clear(i.red,i.green,i.blue,i.alpha,n),a&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}}Sre.extension={type:ot.RendererSystem,name:"renderTexture"};wt.add(Sre);class jze{constructor(t,n){this.program=t,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}}function Uze(e,t){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;if>h?1:-1);for(let f=0;f({data:o,offset:0,dataLen:0,dirty:0}));let n=0,r=0,i=0;for(let o=0;o1&&(n=Math.max(n,16)*s.data.size),s.dataLen=n,r%n!==0&&r<16){const a=r%n%16;r+=a,i+=a}r+n>16?(i=Math.ceil(i/16)*16,s.offset=i,i+=n,r=n):(s.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function Pze(e,t){const n=[];for(const r in e)t[r]&&n.push(t[r]);return n.sort((r,i)=>r.index-i.index),n}function Oze(e,t){if(!e.autoManage)return{size:0,syncFunc:Aze};const n=Pze(e.uniforms,t),{uboElements:r,size:i}=Rze(n),o=[` + `},Ere={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function qze(e){const t=e.map(o=>({data:o,offset:0,dataLen:0,dirty:0}));let n=0,r=0,i=0;for(let o=0;o1&&(n=Math.max(n,16)*s.data.size),s.dataLen=n,r%n!==0&&r<16){const a=r%n%16;r+=a,i+=a}r+n>16?(i=Math.ceil(i/16)*16,s.offset=i,i+=n,r=n):(s.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function Xze(e,t){const n=[];for(const r in e)t[r]&&n.push(t[r]);return n.sort((r,i)=>r.index-i.index),n}function Yze(e,t){if(!e.autoManage)return{size:0,syncFunc:Gze};const n=Xze(e.uniforms,t),{uboElements:r,size:i}=qze(n),o=[` var v = null; var v2 = null; var cv = null; @@ -1150,7 +1150,7 @@ void main(void) var gl = renderer.gl var index = 0; var data = buffer.data; - `];for(let s=0;s1){const h=Kne(a.data.type),p=Math.max(gre[a.data.type]/16,1),g=h/p,v=(4-g%4)%4;o.push(` + `];for(let s=0;s1){const h=ire(a.data.type),p=Math.max(Ere[a.data.type]/16,1),g=h/p,v=(4-g%4)%4;o.push(` cv = ud.${u}.value; v = uv.${u}; offset = ${a.offset/4}; @@ -1166,7 +1166,7 @@ void main(void) offset += ${v}; } - `)}else{const h=Ize[a.data.type];o.push(` + `)}else{const h=Vze[a.data.type];o.push(` cv = ud.${u}.value; v = uv.${u}; offset = ${a.offset/4}; @@ -1174,7 +1174,7 @@ void main(void) `)}}return o.push(` renderer.buffer.update(buffer); `),{size:i,syncFunc:new Function("ud","uv","renderer","syncData","buffer",o.join(` -`))}}let Mze=0;const ES={textureCount:0,uboCount:0};class vre{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Mze++}systemCheck(){if(!ize())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,n){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const r=t.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),n||(ES.textureCount=0,ES.uboCount=0,this.syncUniformGroup(t.uniformGroup,ES)),i}setUniforms(t){const n=this.shader.program,r=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(r.uniformData,t,this.renderer)}syncUniformGroup(t,n){const r=this.getGlProgram();(!t.static||t.dirtyId!==r.uniformDirtyGroups[t.id])&&(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,n))}syncUniforms(t,n,r){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(n.uniformData,t.uniforms,this.renderer,r)}createSyncGroups(t){const n=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=Z4e(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[n],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,n){const r=this.getGlProgram();if(!t.static||t.dirtyId!==0||!r.uniformGroups[t.id]){t.dirtyId=0;const i=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,n);t.buffer.update(),i(r.uniformData,t.uniforms,this.renderer,ES,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[n])}createSyncBufferGroup(t,n,r){const{gl:i}=this.renderer;this.renderer.buffer.bind(t.buffer);const o=this.gl.getUniformBlockIndex(n.program,r);n.uniformBufferBindings[r]=this.shader.uniformBindCount,i.uniformBlockBinding(n.program,o,this.shader.uniformBindCount),this.shader.uniformBindCount++;const s=this.getSignature(t,this.shader.program.uniformData,"ubo");let a=this._uboCache[s];if(a||(a=this._uboCache[s]=Oze(t,this.shader.program.uniformData)),t.autoManage){const c=new Float32Array(a.size/4);t.buffer.update(c)}return n.uniformGroups[t.id]=a.syncFunc,n.uniformGroups[t.id]}getSignature(t,n,r){const i=t.uniforms,o=[`${r}-`];for(const s in i)o.push(s),n[s]&&o.push(n[s].type);return o.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const n=this.gl,r=t.program,i=kze(n,r);return r.glPrograms[this.renderer.CONTEXT_UID]=i,i}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}vre.extension={type:ot.RendererSystem,name:"shader"};wt.add(vre);class PA{constructor(t){this.renderer=t}run(t){const{renderer:n}=this;n.runners.init.emit(n.options),t.hello&&console.log(`PixiJS 7.2.4 - ${n.rendererLogId} - https://pixijs.com`),n.resize(n.screen.width,n.screen.height)}destroy(){}}PA.defaultOptions={hello:!1};PA.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"startup"};wt.add(PA);function Lze(e,t=[]){return t[Dt.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.ADD]=[e.ONE,e.ONE],t[Dt.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.NONE]=[0,0],t[Dt.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[Dt.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[Dt.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[Dt.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Dt.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[Dt.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[Dt.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[Dt.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[Dt.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Dt.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t}const Dze=0,Nze=1,Bze=2,$ze=3,Fze=4,zze=5,S5=class{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Dt.NONE,this._blendEq=!1,this.map=[],this.map[Dze]=this.setBlend,this.map[Nze]=this.setOffset,this.map[Bze]=this.setCullFace,this.map[$ze]=this.setDepthTest,this.map[Fze]=this.setFrontFace,this.map[zze]=this.setDepthMask,this.checks=[],this.defaultState=new ed,this.defaultState.blend=!0}contextChange(e){this.gl=e,this.blendModes=Lze(e),this.set(this.defaultState),this.reset()}set(e){if(e=e||this.defaultState,this.stateId!==e.data){let t=this.stateId^e.data,n=0;for(;t;)t&1&&this.map[n].call(this,!!(e.data&1<>1,n++;this.stateId=e.data}for(let t=0;tt.systems[i]),r=[...n,...Object.keys(t.systems).filter(i=>!n.includes(i))];for(const i of r)this.addSystem(t.systems[i],i)}addRunners(...t){t.forEach(n=>{this.runners[n]=new El(n)})}addSystem(t,n){const r=new t(this);if(this[n])throw new Error(`Whoops! The name "${n}" is already in use`);this[n]=r,this._systemsHash[n]=r;for(const i in this.runners)this.runners[i].add(r);return this}emitWithCustomOptions(t,n){const r=Object.keys(this._systemsHash);t.items.forEach(i=>{const o=r.find(s=>this._systemsHash[s]===i);i[t.name](n[o])})}destroy(){Object.values(this.runners).forEach(t=>{t.destroy()}),this._systemsHash={}}}const kE=class{constructor(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=kE.defaultMaxIdle,this.checkCountMax=kE.defaultCheckCountMax,this.mode=kE.defaultMode}postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==sU.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const e=this.renderer.texture,t=e.managedTextures;let n=!1;for(let r=0;rthis.maxIdle&&(e.destroyTexture(i,!0),t[r]=null,n=!0)}if(n){let r=0;for(let i=0;i=0;r--)this.unload(e.children[r])}destroy(){this.renderer=null}};let fl=kE;fl.defaultMode=sU.AUTO;fl.defaultMaxIdle=60*60;fl.defaultCheckCountMax=60*10;fl.extension={type:ot.RendererSystem,name:"textureGC"};wt.add(fl);class e${constructor(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=Ot.UNSIGNED_BYTE,this.internalFormat=Ve.RGBA,this.samplerType=0}}function Uze(e){let t;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?t={[Ot.UNSIGNED_BYTE]:{[Ve.RGBA]:e.RGBA8,[Ve.RGB]:e.RGB8,[Ve.RG]:e.RG8,[Ve.RED]:e.R8,[Ve.RGBA_INTEGER]:e.RGBA8UI,[Ve.RGB_INTEGER]:e.RGB8UI,[Ve.RG_INTEGER]:e.RG8UI,[Ve.RED_INTEGER]:e.R8UI,[Ve.ALPHA]:e.ALPHA,[Ve.LUMINANCE]:e.LUMINANCE,[Ve.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Ot.BYTE]:{[Ve.RGBA]:e.RGBA8_SNORM,[Ve.RGB]:e.RGB8_SNORM,[Ve.RG]:e.RG8_SNORM,[Ve.RED]:e.R8_SNORM,[Ve.RGBA_INTEGER]:e.RGBA8I,[Ve.RGB_INTEGER]:e.RGB8I,[Ve.RG_INTEGER]:e.RG8I,[Ve.RED_INTEGER]:e.R8I},[Ot.UNSIGNED_SHORT]:{[Ve.RGBA_INTEGER]:e.RGBA16UI,[Ve.RGB_INTEGER]:e.RGB16UI,[Ve.RG_INTEGER]:e.RG16UI,[Ve.RED_INTEGER]:e.R16UI,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT16},[Ot.SHORT]:{[Ve.RGBA_INTEGER]:e.RGBA16I,[Ve.RGB_INTEGER]:e.RGB16I,[Ve.RG_INTEGER]:e.RG16I,[Ve.RED_INTEGER]:e.R16I},[Ot.UNSIGNED_INT]:{[Ve.RGBA_INTEGER]:e.RGBA32UI,[Ve.RGB_INTEGER]:e.RGB32UI,[Ve.RG_INTEGER]:e.RG32UI,[Ve.RED_INTEGER]:e.R32UI,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT24},[Ot.INT]:{[Ve.RGBA_INTEGER]:e.RGBA32I,[Ve.RGB_INTEGER]:e.RGB32I,[Ve.RG_INTEGER]:e.RG32I,[Ve.RED_INTEGER]:e.R32I},[Ot.FLOAT]:{[Ve.RGBA]:e.RGBA32F,[Ve.RGB]:e.RGB32F,[Ve.RG]:e.RG32F,[Ve.RED]:e.R32F,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT32F},[Ot.HALF_FLOAT]:{[Ve.RGBA]:e.RGBA16F,[Ve.RGB]:e.RGB16F,[Ve.RG]:e.RG16F,[Ve.RED]:e.R16F},[Ot.UNSIGNED_SHORT_5_6_5]:{[Ve.RGB]:e.RGB565},[Ot.UNSIGNED_SHORT_4_4_4_4]:{[Ve.RGBA]:e.RGBA4},[Ot.UNSIGNED_SHORT_5_5_5_1]:{[Ve.RGBA]:e.RGB5_A1},[Ot.UNSIGNED_INT_2_10_10_10_REV]:{[Ve.RGBA]:e.RGB10_A2,[Ve.RGBA_INTEGER]:e.RGB10_A2UI},[Ot.UNSIGNED_INT_10F_11F_11F_REV]:{[Ve.RGB]:e.R11F_G11F_B10F},[Ot.UNSIGNED_INT_5_9_9_9_REV]:{[Ve.RGB]:e.RGB9_E5},[Ot.UNSIGNED_INT_24_8]:{[Ve.DEPTH_STENCIL]:e.DEPTH24_STENCIL8},[Ot.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[Ve.DEPTH_STENCIL]:e.DEPTH32F_STENCIL8}}:t={[Ot.UNSIGNED_BYTE]:{[Ve.RGBA]:e.RGBA,[Ve.RGB]:e.RGB,[Ve.ALPHA]:e.ALPHA,[Ve.LUMINANCE]:e.LUMINANCE,[Ve.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Ot.UNSIGNED_SHORT_5_6_5]:{[Ve.RGB]:e.RGB},[Ot.UNSIGNED_SHORT_4_4_4_4]:{[Ve.RGBA]:e.RGBA},[Ot.UNSIGNED_SHORT_5_5_5_1]:{[Ve.RGBA]:e.RGBA}},t}class bre{constructor(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Gt,this.hasIntegerTextures=!1}contextChange(){const t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Uze(t);const n=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(let i=0;i=0;--o){const s=n[o];s&&s._glTextures[i].samplerType!==e5.FLOAT&&this.renderer.texture.unbind(s)}}initTexture(t){const n=new e$(this.gl.createTexture());return n.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),n}initTextureType(t,n){var r;n.internalFormat=((r=this.internalFormats[t.type])==null?void 0:r[t.format])??t.format,this.webGLVersion===2&&t.type===Ot.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=t.type}updateTexture(t){var i;const n=t._glTextures[this.CONTEXT_UID];if(!n)return;const r=this.renderer;if(this.initTextureType(t,n),(i=t.resource)!=null&&i.upload(r,t,n))n.samplerType!==e5.FLOAT&&(this.hasIntegerTextures=!0);else{const o=t.realWidth,s=t.realHeight,a=r.gl;(n.width!==o||n.height!==s||n.dirtyId<0)&&(n.width=o,n.height=s,a.texImage2D(t.target,0,n.internalFormat,o,s,0,t.format,n.type,null))}t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId}destroyTexture(t,n){const{gl:r}=this;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!n)){const i=this.managedTextures.indexOf(t);i!==-1&&Cg(this.managedTextures,i,1)}}updateTextureStyle(t){var r;const n=t._glTextures[this.CONTEXT_UID];n&&((t.mipmap===fc.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?n.mipmap=!1:n.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?n.wrapMode=Qd.CLAMP:n.wrapMode=t.wrapMode,(r=t.resource)!=null&&r.style(this.renderer,t,n)||this.setStyle(t,n),n.dirtyStyleId=t.dirtyStyleId)}setStyle(t,n){const r=this.gl;if(n.mipmap&&t.mipmap!==fc.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,n.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);const i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===ku.LINEAR){const o=Math.min(t.anisotropicLevel,r.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR:r.NEAREST)}destroy(){this.renderer=null}}bre.extension={type:ot.RendererSystem,name:"texture"};wt.add(bre);class xre{constructor(t){this.renderer=t}contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glTransformFeedbacks[r]||this.createGLTransformFeedback(t);n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,i)}unbind(){const{gl:t}=this;t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(t,n){const{gl:r,renderer:i}=this;n&&i.shader.bind(n),r.beginTransformFeedback(t)}endTransformFeedback(){const{gl:t}=this;t.endTransformFeedback()}createGLTransformFeedback(t){const{gl:n,renderer:r,CONTEXT_UID:i}=this,o=n.createTransformFeedback();t._glTransformFeedbacks[i]=o,n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,o);for(let s=0;s(e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY",e))(qp||{});class t${constructor(t,n=null,r=0,i=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=n,this.priority=r,this.once=i}match(t,n=null){return this.fn===t&&this.context===n}emit(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));const n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}destroy(t=!1){this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const n=this.next;return this.next=t?null:n,this.previous=null,n}}const Os=class{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new t$(null,null,1/0),this.deltaMS=1/Os.targetFPMS,this.elapsedMS=1/Os.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,n=qp.NORMAL){return this._addListener(new t$(e,t,n))}addOnce(e,t,n=qp.NORMAL){return this._addListener(new t$(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n.match(e,t)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){const i=e-this._lastFrame|0;if(i{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?Si.shared:new Si,t.autoStart&&this.start()}static destroy(){if(this._ticker){const t=this._ticker;this.ticker=null,t.destroy()}}}wre.extension=ot.Application;wt.add(wre);const _re=[];wt.handleByList(ot.Renderer,_re);function Hze(e){for(const t of _re)if(t.test(e))return new t(e);throw new Error("Unable to auto-detect a suitable renderer.")}var Wze=`attribute vec2 aVertexPosition; +`))}}let Kze=0;const CS={textureCount:0,uboCount:0};class Cre{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Kze++}systemCheck(){if(!wze())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,n){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const r=t.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),n||(CS.textureCount=0,CS.uboCount=0,this.syncUniformGroup(t.uniformGroup,CS)),i}setUniforms(t){const n=this.shader.program,r=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(r.uniformData,t,this.renderer)}syncUniformGroup(t,n){const r=this.getGlProgram();(!t.static||t.dirtyId!==r.uniformDirtyGroups[t.id])&&(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,n))}syncUniforms(t,n,r){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(n.uniformData,t.uniforms,this.renderer,r)}createSyncGroups(t){const n=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=gze(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[n],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,n){const r=this.getGlProgram();if(!t.static||t.dirtyId!==0||!r.uniformGroups[t.id]){t.dirtyId=0;const i=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,n);t.buffer.update(),i(r.uniformData,t.uniforms,this.renderer,CS,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[n])}createSyncBufferGroup(t,n,r){const{gl:i}=this.renderer;this.renderer.buffer.bind(t.buffer);const o=this.gl.getUniformBlockIndex(n.program,r);n.uniformBufferBindings[r]=this.shader.uniformBindCount,i.uniformBlockBinding(n.program,o,this.shader.uniformBindCount),this.shader.uniformBindCount++;const s=this.getSignature(t,this.shader.program.uniformData,"ubo");let a=this._uboCache[s];if(a||(a=this._uboCache[s]=Yze(t,this.shader.program.uniformData)),t.autoManage){const c=new Float32Array(a.size/4);t.buffer.update(c)}return n.uniformGroups[t.id]=a.syncFunc,n.uniformGroups[t.id]}getSignature(t,n,r){const i=t.uniforms,o=[`${r}-`];for(const s in i)o.push(s),n[s]&&o.push(n[s].type);return o.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const n=this.gl,r=t.program,i=Wze(n,r);return r.glPrograms[this.renderer.CONTEXT_UID]=i,i}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}Cre.extension={type:ot.RendererSystem,name:"shader"};wt.add(Cre);class OA{constructor(t){this.renderer=t}run(t){const{renderer:n}=this;n.runners.init.emit(n.options),t.hello&&console.log(`PixiJS 7.2.4 - ${n.rendererLogId} - https://pixijs.com`),n.resize(n.screen.width,n.screen.height)}destroy(){}}OA.defaultOptions={hello:!1};OA.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"startup"};wt.add(OA);function Qze(e,t=[]){return t[Dt.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.ADD]=[e.ONE,e.ONE],t[Dt.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.NONE]=[0,0],t[Dt.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[Dt.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[Dt.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[Dt.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Dt.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[Dt.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[Dt.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[Dt.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[Dt.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Dt.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t}const Jze=0,Zze=1,eje=2,tje=3,nje=4,rje=5,E5=class{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Dt.NONE,this._blendEq=!1,this.map=[],this.map[Jze]=this.setBlend,this.map[Zze]=this.setOffset,this.map[eje]=this.setCullFace,this.map[tje]=this.setDepthTest,this.map[nje]=this.setFrontFace,this.map[rje]=this.setDepthMask,this.checks=[],this.defaultState=new Zu,this.defaultState.blend=!0}contextChange(e){this.gl=e,this.blendModes=Qze(e),this.set(this.defaultState),this.reset()}set(e){if(e=e||this.defaultState,this.stateId!==e.data){let t=this.stateId^e.data,n=0;for(;t;)t&1&&this.map[n].call(this,!!(e.data&1<>1,n++;this.stateId=e.data}for(let t=0;tt.systems[i]),r=[...n,...Object.keys(t.systems).filter(i=>!n.includes(i))];for(const i of r)this.addSystem(t.systems[i],i)}addRunners(...t){t.forEach(n=>{this.runners[n]=new El(n)})}addSystem(t,n){const r=new t(this);if(this[n])throw new Error(`Whoops! The name "${n}" is already in use`);this[n]=r,this._systemsHash[n]=r;for(const i in this.runners)this.runners[i].add(r);return this}emitWithCustomOptions(t,n){const r=Object.keys(this._systemsHash);t.items.forEach(i=>{const o=r.find(s=>this._systemsHash[s]===i);i[t.name](n[o])})}destroy(){Object.values(this.runners).forEach(t=>{t.destroy()}),this._systemsHash={}}}const IE=class{constructor(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=IE.defaultMaxIdle,this.checkCountMax=IE.defaultCheckCountMax,this.mode=IE.defaultMode}postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==uU.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const e=this.renderer.texture,t=e.managedTextures;let n=!1;for(let r=0;rthis.maxIdle&&(e.destroyTexture(i,!0),t[r]=null,n=!0)}if(n){let r=0;for(let i=0;i=0;r--)this.unload(e.children[r])}destroy(){this.renderer=null}};let fl=IE;fl.defaultMode=uU.AUTO;fl.defaultMaxIdle=60*60;fl.defaultCheckCountMax=60*10;fl.extension={type:ot.RendererSystem,name:"textureGC"};wt.add(fl);class t${constructor(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=Ot.UNSIGNED_BYTE,this.internalFormat=Ve.RGBA,this.samplerType=0}}function oje(e){let t;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?t={[Ot.UNSIGNED_BYTE]:{[Ve.RGBA]:e.RGBA8,[Ve.RGB]:e.RGB8,[Ve.RG]:e.RG8,[Ve.RED]:e.R8,[Ve.RGBA_INTEGER]:e.RGBA8UI,[Ve.RGB_INTEGER]:e.RGB8UI,[Ve.RG_INTEGER]:e.RG8UI,[Ve.RED_INTEGER]:e.R8UI,[Ve.ALPHA]:e.ALPHA,[Ve.LUMINANCE]:e.LUMINANCE,[Ve.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Ot.BYTE]:{[Ve.RGBA]:e.RGBA8_SNORM,[Ve.RGB]:e.RGB8_SNORM,[Ve.RG]:e.RG8_SNORM,[Ve.RED]:e.R8_SNORM,[Ve.RGBA_INTEGER]:e.RGBA8I,[Ve.RGB_INTEGER]:e.RGB8I,[Ve.RG_INTEGER]:e.RG8I,[Ve.RED_INTEGER]:e.R8I},[Ot.UNSIGNED_SHORT]:{[Ve.RGBA_INTEGER]:e.RGBA16UI,[Ve.RGB_INTEGER]:e.RGB16UI,[Ve.RG_INTEGER]:e.RG16UI,[Ve.RED_INTEGER]:e.R16UI,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT16},[Ot.SHORT]:{[Ve.RGBA_INTEGER]:e.RGBA16I,[Ve.RGB_INTEGER]:e.RGB16I,[Ve.RG_INTEGER]:e.RG16I,[Ve.RED_INTEGER]:e.R16I},[Ot.UNSIGNED_INT]:{[Ve.RGBA_INTEGER]:e.RGBA32UI,[Ve.RGB_INTEGER]:e.RGB32UI,[Ve.RG_INTEGER]:e.RG32UI,[Ve.RED_INTEGER]:e.R32UI,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT24},[Ot.INT]:{[Ve.RGBA_INTEGER]:e.RGBA32I,[Ve.RGB_INTEGER]:e.RGB32I,[Ve.RG_INTEGER]:e.RG32I,[Ve.RED_INTEGER]:e.R32I},[Ot.FLOAT]:{[Ve.RGBA]:e.RGBA32F,[Ve.RGB]:e.RGB32F,[Ve.RG]:e.RG32F,[Ve.RED]:e.R32F,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT32F},[Ot.HALF_FLOAT]:{[Ve.RGBA]:e.RGBA16F,[Ve.RGB]:e.RGB16F,[Ve.RG]:e.RG16F,[Ve.RED]:e.R16F},[Ot.UNSIGNED_SHORT_5_6_5]:{[Ve.RGB]:e.RGB565},[Ot.UNSIGNED_SHORT_4_4_4_4]:{[Ve.RGBA]:e.RGBA4},[Ot.UNSIGNED_SHORT_5_5_5_1]:{[Ve.RGBA]:e.RGB5_A1},[Ot.UNSIGNED_INT_2_10_10_10_REV]:{[Ve.RGBA]:e.RGB10_A2,[Ve.RGBA_INTEGER]:e.RGB10_A2UI},[Ot.UNSIGNED_INT_10F_11F_11F_REV]:{[Ve.RGB]:e.R11F_G11F_B10F},[Ot.UNSIGNED_INT_5_9_9_9_REV]:{[Ve.RGB]:e.RGB9_E5},[Ot.UNSIGNED_INT_24_8]:{[Ve.DEPTH_STENCIL]:e.DEPTH24_STENCIL8},[Ot.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[Ve.DEPTH_STENCIL]:e.DEPTH32F_STENCIL8}}:t={[Ot.UNSIGNED_BYTE]:{[Ve.RGBA]:e.RGBA,[Ve.RGB]:e.RGB,[Ve.ALPHA]:e.ALPHA,[Ve.LUMINANCE]:e.LUMINANCE,[Ve.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Ot.UNSIGNED_SHORT_5_6_5]:{[Ve.RGB]:e.RGB},[Ot.UNSIGNED_SHORT_4_4_4_4]:{[Ve.RGBA]:e.RGBA},[Ot.UNSIGNED_SHORT_5_5_5_1]:{[Ve.RGBA]:e.RGBA}},t}class kre{constructor(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Vt,this.hasIntegerTextures=!1}contextChange(){const t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=oje(t);const n=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(let i=0;i=0;--o){const s=n[o];s&&s._glTextures[i].samplerType!==t5.FLOAT&&this.renderer.texture.unbind(s)}}initTexture(t){const n=new t$(this.gl.createTexture());return n.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),n}initTextureType(t,n){var r;n.internalFormat=((r=this.internalFormats[t.type])==null?void 0:r[t.format])??t.format,this.webGLVersion===2&&t.type===Ot.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=t.type}updateTexture(t){var i;const n=t._glTextures[this.CONTEXT_UID];if(!n)return;const r=this.renderer;if(this.initTextureType(t,n),(i=t.resource)!=null&&i.upload(r,t,n))n.samplerType!==t5.FLOAT&&(this.hasIntegerTextures=!0);else{const o=t.realWidth,s=t.realHeight,a=r.gl;(n.width!==o||n.height!==s||n.dirtyId<0)&&(n.width=o,n.height=s,a.texImage2D(t.target,0,n.internalFormat,o,s,0,t.format,n.type,null))}t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId}destroyTexture(t,n){const{gl:r}=this;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!n)){const i=this.managedTextures.indexOf(t);i!==-1&&Ag(this.managedTextures,i,1)}}updateTextureStyle(t){var r;const n=t._glTextures[this.CONTEXT_UID];n&&((t.mipmap===fc.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?n.mipmap=!1:n.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?n.wrapMode=Qd.CLAMP:n.wrapMode=t.wrapMode,(r=t.resource)!=null&&r.style(this.renderer,t,n)||this.setStyle(t,n),n.dirtyStyleId=t.dirtyStyleId)}setStyle(t,n){const r=this.gl;if(n.mipmap&&t.mipmap!==fc.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,n.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);const i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===ku.LINEAR){const o=Math.min(t.anisotropicLevel,r.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR:r.NEAREST)}destroy(){this.renderer=null}}kre.extension={type:ot.RendererSystem,name:"texture"};wt.add(kre);class Are{constructor(t){this.renderer=t}contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glTransformFeedbacks[r]||this.createGLTransformFeedback(t);n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,i)}unbind(){const{gl:t}=this;t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(t,n){const{gl:r,renderer:i}=this;n&&i.shader.bind(n),r.beginTransformFeedback(t)}endTransformFeedback(){const{gl:t}=this;t.endTransformFeedback()}createGLTransformFeedback(t){const{gl:n,renderer:r,CONTEXT_UID:i}=this,o=n.createTransformFeedback();t._glTransformFeedbacks[i]=o,n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,o);for(let s=0;s(e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY",e))(Kp||{});class n${constructor(t,n=null,r=0,i=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=n,this.priority=r,this.once=i}match(t,n=null){return this.fn===t&&this.context===n}emit(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));const n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}destroy(t=!1){this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const n=this.next;return this.next=t?null:n,this.previous=null,n}}const Ms=class{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new n$(null,null,1/0),this.deltaMS=1/Ms.targetFPMS,this.elapsedMS=1/Ms.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,n=Kp.NORMAL){return this._addListener(new n$(e,t,n))}addOnce(e,t,n=Kp.NORMAL){return this._addListener(new n$(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n.match(e,t)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){const i=e-this._lastFrame|0;if(i{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?Si.shared:new Si,t.autoStart&&this.start()}static destroy(){if(this._ticker){const t=this._ticker;this.ticker=null,t.destroy()}}}Ire.extension=ot.Application;wt.add(Ire);const Rre=[];wt.handleByList(ot.Renderer,Rre);function sje(e){for(const t of Rre)if(t.test(e))return new t(e);throw new Error("Unable to auto-detect a suitable renderer.")}var aje=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -1185,7 +1185,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Gze=`attribute vec2 aVertexPosition; +}`,lje=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1211,7 +1211,7 @@ void main(void) gl_Position = filterVertexPosition(); vTextureCoord = filterTextureCoord(); } -`;const Vze=Wze,Sre=Gze;class Ere{constructor(t){this.renderer=t}contextChange(t){let n;if(this.renderer.context.webGLVersion===1){const r=t.getParameter(t.FRAMEBUFFER_BINDING);t.bindFramebuffer(t.FRAMEBUFFER,null),n=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.FRAMEBUFFER,r)}else{const r=t.getParameter(t.DRAW_FRAMEBUFFER_BINDING);t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),n=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,r)}n>=ri.HIGH?this.multisample=ri.HIGH:n>=ri.MEDIUM?this.multisample=ri.MEDIUM:n>=ri.LOW?this.multisample=ri.LOW:this.multisample=ri.NONE}destroy(){}}Ere.extension={type:ot.RendererSystem,name:"_multisample"};wt.add(Ere);class qze{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class Cre{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);n.bindBuffer(t.type,i.buffer)}unbind(t){const{gl:n}=this;n.bindBuffer(t,null)}bindBufferBase(t,n){const{gl:r,CONTEXT_UID:i}=this;if(this.boundBufferBases[n]!==t){const o=t._glBuffers[i]||this.createGLBuffer(t);this.boundBufferBases[n]=t,r.bindBufferBase(r.UNIFORM_BUFFER,n,o.buffer)}}bindBufferRange(t,n,r){const{gl:i,CONTEXT_UID:o}=this;r=r||0;const s=t._glBuffers[o]||this.createGLBuffer(t);i.bindBufferRange(i.UNIFORM_BUFFER,n||0,s.buffer,r*256,256)}update(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);if(t._updateID!==i.updateID)if(i.updateID=t._updateID,n.bindBuffer(t.type,i.buffer),i.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{const o=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;i.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,o)}}dispose(t,n){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const r=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),r&&(n||i.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const n=Object.keys(this.managedBuffers);for(let r=0;rr.resource).filter(r=>r).map(r=>r.load());return this._load=Promise.all(n).then(()=>{const{realWidth:r,realHeight:i}=this.items[0];return this.resize(r,i),Promise.resolve(this)}),this._load}}class Xze extends kre{constructor(t,n){const{width:r,height:i}=n||{};let o,s;Array.isArray(t)?(o=t,s=t.length):s=t,super(s,{width:r,height:i}),o&&this.initFromArray(o,n)}addBaseTextureAt(t,n){if(t.resource)this.addResourceAt(t.resource,n);else throw new Error("ArrayResource does not support RenderTexture");return this}bind(t){super.bind(t),t.target=wg.TEXTURE_2D_ARRAY}upload(t,n,r){const{length:i,itemDirtyIds:o,items:s}=this,{gl:a}=t;r.dirtyId<0&&a.texImage3D(a.TEXTURE_2D_ARRAY,0,r.internalFormat,this._width,this._height,i,0,n.format,r.type,null);for(let c=0;c0)if(e.resource)this.addResourceAt(e.resource,t);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=wg.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this}upload(e,t,n){const r=this.itemDirtyIds;for(let i=0;i{if(this.url===null){t(this);return}try{const r=await nt.ADAPTER.fetch(this.url,{mode:this.crossOrigin?"cors":"no-cors"});if(this.destroyed)return;const i=await r.blob();if(this.destroyed)return;const o=await createImageBitmap(i,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===Ml.UNPACK?"premultiply":"none"});if(this.destroyed)return;this.source=o,this.update(),t(this)}catch(r){if(this.destroyed)return;n(r),this.onError.emit(r)}}),this._load)}upload(t,n,r){return this.source instanceof ImageBitmap?(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),super.upload(t,n,r)):(this.load(),!1)}dispose(){this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(t){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&(typeof t=="string"||t instanceof ImageBitmap)}static get EMPTY(){return lg._EMPTY=lg._EMPTY??nt.ADAPTER.createCanvas(0,0),lg._EMPTY}}const AE=class extends lf{constructor(e,t){t=t||{},super(nt.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=e,this.scale=t.scale||1,this._overrideWidth=t.width,this._overrideHeight=t.height,this._resolve=null,this._crossorigin=t.crossorigin,this._load=null,t.autoLoad!==!1&&this.load()}load(){return this._load?this._load:(this._load=new Promise(e=>{if(this._resolve=()=>{this.resize(this.source.width,this.source.height),e(this)},AE.SVG_XML.test(this.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");this.svg=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`}this._loadSvg()}),this._load)}_loadSvg(){const e=new Image;lf.crossOrigin(e,this.svg,this._crossorigin),e.src=this.svg,e.onerror=t=>{this._resolve&&(e.onerror=null,this.onError.emit(t))},e.onload=()=>{if(!this._resolve)return;const t=e.width,n=e.height;if(!t||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");let r=t*this.scale,i=n*this.scale;(this._overrideWidth||this._overrideHeight)&&(r=this._overrideWidth||this._overrideHeight/n*t,i=this._overrideHeight||this._overrideWidth/t*n),r=Math.round(r),i=Math.round(i);const o=this.source;o.width=r,o.height=i,o._pixiId=`canvas_${Vp()}`,o.getContext("2d").drawImage(e,0,0,t,n,0,0,r,i),this._resolve(),this._resolve=null}}static getSize(e){const t=AE.SVG_SIZE.exec(e),n={};return t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7]))),n}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(e,t){return t==="svg"||typeof e=="string"&&e.startsWith("data:image/svg+xml")||typeof e=="string"&&AE.SVG_XML.test(e)}};let nw=AE;nw.SVG_XML=/^(<\?xml[^?]+\?>)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;const C5=class extends lf{constructor(e,t){if(t=t||{},!(e instanceof HTMLVideoElement)){const n=document.createElement("video");n.setAttribute("preload","auto"),n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);const r=e[0].src||e[0];lf.crossOrigin(n,r,t.crossorigin);for(let i=0;i{this.valid?t(this):(this._resolve=t,e.load())}),this._load}_onError(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)}_isSourcePlaying(){const e=this.source;return!e.paused&&!e.ended&&this._isSourceReady()}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Si.shared.add(this.update,this),this._isConnectedToTicker=!0)}_onPlayStop(){this._isConnectedToTicker&&(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1)}_onCanPlay(){const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()}dispose(){this._isConnectedToTicker&&(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1);const e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Si.shared.add(this.update,this),this._isConnectedToTicker=!0))}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e)}static test(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||C5.TYPES.includes(t)}};let xU=C5;xU.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"];xU.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};y5.push(lg,ere,Yze,xU,nw,Yw,Are,Xze);class nT{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?Jt.EMPTY:(t=t||new Jt(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,n){const{a:r,b:i,c:o,d:s,tx:a,ty:c}=t,u=r*n.x+o*n.y+a,f=i*n.x+s*n.y+c;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,f),this.maxY=Math.max(this.maxY,f)}addQuad(t){let n=this.minX,r=this.minY,i=this.maxX,o=this.maxY,s=t[0],a=t[1];n=si?s:i,o=a>o?a:o,s=t[2],a=t[3],n=si?s:i,o=a>o?a:o,s=t[4],a=t[5],n=si?s:i,o=a>o?a:o,s=t[6],a=t[7],n=si?s:i,o=a>o?a:o,this.minX=n,this.minY=r,this.maxX=i,this.maxY=o}addFrame(t,n,r,i,o){this.addFrameMatrix(t.worldTransform,n,r,i,o)}addFrameMatrix(t,n,r,i,o){const s=t.a,a=t.b,c=t.c,u=t.d,f=t.tx,h=t.ty;let p=this.minX,g=this.minY,v=this.maxX,y=this.maxY,S=s*n+c*r+f,w=a*n+u*r+h;p=Sv?S:v,y=w>y?w:y,S=s*i+c*r+f,w=a*i+u*r+h,p=Sv?S:v,y=w>y?w:y,S=s*n+c*o+f,w=a*n+u*o+h,p=Sv?S:v,y=w>y?w:y,S=s*i+c*o+f,w=a*i+u*o+h,p=Sv?S:v,y=w>y?w:y,this.minX=p,this.minY=g,this.maxX=v,this.maxY=y}addVertexData(t,n,r){let i=this.minX,o=this.minY,s=this.maxX,a=this.maxY;for(let c=n;cs?u:s,a=f>a?f:a}this.minX=i,this.minY=o,this.maxX=s,this.maxY=a}addVertices(t,n,r,i){this.addVerticesMatrix(t.worldTransform,n,r,i)}addVerticesMatrix(t,n,r,i,o=0,s=o){const a=t.a,c=t.b,u=t.c,f=t.d,h=t.tx,p=t.ty;let g=this.minX,v=this.minY,y=this.maxX,S=this.maxY;for(let w=r;wi?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,n){const r=t.minX>n.minX?t.minX:n.minX,i=t.minY>n.minY?t.minY:n.minY,o=t.maxXu?o:u,this.maxY=s>f?s:f}}addBoundsMatrix(t,n){this.addFrameMatrix(n,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,n){const r=t.minX>n.x?t.minX:n.x,i=t.minY>n.y?t.minY:n.y,o=t.maxXu?o:u,this.maxY=s>f?s:f}}pad(t=0,n=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=n,this.maxY+=n)}addFramePad(t,n,r,i,o,s){t-=o,n-=s,r+=o,i+=s,this.minX=this.minXr?this.maxX:r,this.minY=this.minYi?this.maxY:i}}class Ur extends qw{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new bU,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new nT,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const n=Object.keys(t);for(let r=0;r1)for(let t=0;tthis.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const n=this.getChildIndex(e);Cg(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t0&&i<=r){o=this.children.splice(n,i);for(let s=0;s1&&this.children.sort(Jze),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e0&&t.height>0))return;let n,r;this.cullArea?(n=this.cullArea,r=this.worldTransform):this._render!==T5.prototype._render&&(n=this.getBounds(!0));const i=e.projection.transform;if(i&&(r?(r=Qze.copyFrom(r),r.prepend(i)):r=i),n&&t.intersects(n,r))this._render(e);else if(this.cullArea)return;for(let o=0,s=this.children.length;ot in e?Zze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>(eje(e,typeof t!="symbol"?t+"":t,n),n);let Da=class{constructor(t){Ee(this,"parent"),Ee(this,"paused"),this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}};var tje=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ire={exports:{}};(function(e,t){(function(){var n,r;r=function(i){return e.exports=i},n={linear:function(i,o,s,a){return s*i/a+o},easeInQuad:function(i,o,s,a){return s*(i/=a)*i+o},easeOutQuad:function(i,o,s,a){return-s*(i/=a)*(i-2)+o},easeInOutQuad:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i+o:-s/2*(--i*(i-2)-1)+o},easeInCubic:function(i,o,s,a){return s*(i/=a)*i*i+o},easeOutCubic:function(i,o,s,a){return s*((i=i/a-1)*i*i+1)+o},easeInOutCubic:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i+o:s/2*((i-=2)*i*i+2)+o},easeInQuart:function(i,o,s,a){return s*(i/=a)*i*i*i+o},easeOutQuart:function(i,o,s,a){return-s*((i=i/a-1)*i*i*i-1)+o},easeInOutQuart:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i*i+o:-s/2*((i-=2)*i*i*i-2)+o},easeInQuint:function(i,o,s,a){return s*(i/=a)*i*i*i*i+o},easeOutQuint:function(i,o,s,a){return s*((i=i/a-1)*i*i*i*i+1)+o},easeInOutQuint:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i*i*i+o:s/2*((i-=2)*i*i*i*i+2)+o},easeInSine:function(i,o,s,a){return-s*Math.cos(i/a*(Math.PI/2))+s+o},easeOutSine:function(i,o,s,a){return s*Math.sin(i/a*(Math.PI/2))+o},easeInOutSine:function(i,o,s,a){return-s/2*(Math.cos(Math.PI*i/a)-1)+o},easeInExpo:function(i,o,s,a){return i===0?o:s*Math.pow(2,10*(i/a-1))+o},easeOutExpo:function(i,o,s,a){return i===a?o+s:s*(-Math.pow(2,-10*i/a)+1)+o},easeInOutExpo:function(i,o,s,a){return(i/=a/2)<1?s/2*Math.pow(2,10*(i-1))+o:s/2*(-Math.pow(2,-10*--i)+2)+o},easeInCirc:function(i,o,s,a){return-s*(Math.sqrt(1-(i/=a)*i)-1)+o},easeOutCirc:function(i,o,s,a){return s*Math.sqrt(1-(i=i/a-1)*i)+o},easeInOutCirc:function(i,o,s,a){return(i/=a/2)<1?-s/2*(Math.sqrt(1-i*i)-1)+o:s/2*(Math.sqrt(1-(i-=2)*i)+1)+o},easeInElastic:function(i,o,s,a){var c,u,f;return f=1.70158,u=0,c=s,i===0||(i/=a),u||(u=a*.3),c=this.options.time){const r=this.parent.width,i=this.parent.height;this.complete(),(r!==this.parent.width||i!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}else{const r=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const i=this.startWidth,o=this.deltaWidth;this.parent.fitWidth(i+o*r,this.keepCenter,this.height===null)}if(this.height!==null){const i=this.startHeight,o=this.deltaHeight;this.parent.fitHeight(i+o*r,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const i=this.startX,o=this.startY,s=this.deltaX,a=this.deltaY,c=new Lt(this.parent.x,this.parent.y);this.parent.moveCenter(i+s*r,o+a*r),this.parent.emit("moved",{viewport:this.parent,original:c,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}}};const ije={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};let oje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"left"),Ee(this,"top"),Ee(this,"right"),Ee(this,"bottom"),Ee(this,"underflowX"),Ee(this,"underflowY"),Ee(this,"ease"),Ee(this,"toX"),Ee(this,"toY"),this.options=Object.assign({},ije,n),this.ease=MA(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const r=this.options.underflow.toLowerCase();r==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=r.indexOf("left")!==-1?-1:r.indexOf("right")!==-1?1:0,this.underflowY=r.indexOf("top")!==-1?-1:r.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const n=this.toX;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),n.time>=this.options.time?(this.parent.x=n.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(n.time,n.start,n.delta,this.options.time)}if(this.toY){const n=this.toY;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),n.time>=this.options.time?(this.parent.y=n.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(n.time,n.start,n.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const n=typeof t.x>"u"?0:t.x,r=typeof t.y>"u"?0:t.y,i=typeof t.width>"u"?this.parent.worldWidth:t.width,o=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.lefti,top:this.parent.topo,topLeft:new Lt(n*this.parent.scale.x,r*this.parent.scale.y),bottomRight:new Lt(i*this.parent.scale.x-this.parent.screenWidth,o*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new Lt(0,0),bottomRight:new Lt(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,n;if(this.paused)return;let r,i=this.parent.plugins.get("decelerate",!0);i&&(i.x||i.y)&&(i.x&&i.percentChangeX===((t=i.options)==null?void 0:t.friction)||i.y&&i.percentChangeY===((n=i.options)==null?void 0:n.friction))&&(r=this.oob(),(r.left&&this.left||r.right&&this.right)&&(i.percentChangeX=this.options.friction),(r.top&&this.top||r.bottom&&this.bottom)&&(i.percentChangeY=this.options.friction));const o=this.parent.plugins.get("drag",!0)||{},s=this.parent.plugins.get("pinch",!0)||{};if(i=i||{},!(o!=null&&o.active)&&!(s!=null&&s.active)&&(!this.toX||!this.toY)&&(!i.x||!i.y)){r=r||this.oob();const a=r.topLeft,c=r.bottomRight;if(!this.toX&&!i.x){let u=null;r.left&&this.left?u=this.parent.screenWorldWidth(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,n.x=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let r=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,n.y=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}};const lje={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};let cje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),this.options=Object.assign({},lje,n),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&tthis.options.maxWidth){const r=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&nthis.options.maxHeight){const r=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},n={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const o=this.options.minScale;t.x=typeof o.x>"u"?null:o.x,t.y=typeof o.y>"u"?null:o.y}if(typeof this.options.maxScale=="number")n.x=this.options.maxScale,n.y=this.options.maxScale;else if(this.options.maxScale!==null){const o=this.options.maxScale;n.x=typeof o.x>"u"?null:o.x,n.y=typeof o.y>"u"?null:o.y}let r=this.parent.scale.x,i=this.parent.scale.y;t.x!==null&&rn.x&&(r=n.x),t.y!==null&&in.y&&(i=n.y),(r!==this.parent.scale.x||i!==this.parent.scale.y)&&(this.parent.scale.set(r,i),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}};const uje={friction:.98,bounce:.8,minSpeed:.01},ld=16;let dje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"x"),Ee(this,"y"),Ee(this,"percentChangeX"),Ee(this,"percentChangeY"),Ee(this,"saved"),Ee(this,"timeSinceRelease"),this.options=Object.assign({},uje,n),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",r=>this.handleMoved(r))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const n=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?n.x===t.original.x&&(n.x=this.parent.x):t.type==="clamp-y"&&t.original&&n.y===t.original.y&&(n.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const n of this.saved)if(n.time>=t-100){const r=t-n.time;this.x=(this.parent.x-n.x)/r,this.y=(this.parent.y-n.y)/r,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const n=this.x||this.y,r=this.timeSinceRelease,i=this.timeSinceRelease+t;if(this.x){const o=this.percentChangeX,s=Math.log(o);this.parent.x+=this.x*ld/s*(Math.pow(o,i/ld)-Math.pow(o,r/ld)),this.x*=Math.pow(this.percentChangeX,t/ld)}if(this.y){const o=this.percentChangeY,s=Math.log(o);this.parent.y+=this.y*ld/s*(Math.pow(o,i/ld)-Math.pow(o,r/ld)),this.y*=Math.pow(this.percentChangeY,t/ld)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x){t.includes(i.code)&&(this.keyIsPressed=!0)},r=i=>{t.includes(i.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",r),this.addWindowEventHandler("keydown",n)}addWindowEventHandler(t,n){window.addEventListener(t,n),this.windowEventHandlers.push({event:t,handler:n})}destroy(){this.windowEventHandlers.forEach(({event:t,handler:n})=>{window.removeEventListener(t,n)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const n=t.pointerType==="mouse",r=this.parent.input.count();return!!((r===1||r>1&&!this.parent.plugins.get("pinch",!0))&&(!n||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const n=t.global.x,r=t.global.y,i=this.parent.input.count();if(i===1||i>1&&!this.parent.plugins.get("pinch",!0)){const o=n-this.last.x,s=r-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(o)||this.yDirection&&this.parent.input.checkThreshold(s)){const a={x:n,y:r};return this.xDirection&&(this.parent.x+=(a.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(a.y-this.last.y)*this.options.factor),this.last=a,this.moved||this.parent.emit("drag-start",{event:t,screen:new Lt(this.last.x,this.last.y),world:this.parent.toWorld(new Lt(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const n=this.parent.input.touches;if(n.length===1){const r=n[0];return r.last&&(this.last={x:r.last.x,y:r.last.y},this.current=r.id),this.moved=!1,!0}else if(this.last&&this.moved){const r=new Lt(this.last.x,this.last.y);return this.parent.emit("drag-end",{event:t,screen:r,world:this.parent.toWorld(r),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const n=this.parent.plugins.get("wheel",!0);if(!n||!n.options.wheelZoom&&!t.ctrlKey){const r=t.deltaMode?this.options.lineHeight:1,i=[t.deltaX,t.deltaY],[o,s]=this.options.wheelSwapAxes?i.reverse():i;return this.xDirection&&(this.parent.x+=o*r*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=s*r*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidththis.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeightthis.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}};const pje={speed:0,acceleration:null,radius:null};let mje=class extends Da{constructor(t,n,r={}){super(t),Ee(this,"options"),Ee(this,"target"),Ee(this,"velocity"),this.target=n,this.options=Object.assign({},pje,r),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const n=this.parent.center;let r=this.target.x,i=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-n.y,2)+Math.pow(this.target.x-n.x,2))>this.options.radius){const a=Math.atan2(this.target.y-n.y,this.target.x-n.x);r=this.target.x-Math.cos(a)*this.options.radius,i=this.target.y-Math.sin(a)*this.options.radius}else return;const o=r-n.x,s=i-n.y;if(o||s)if(this.options.speed)if(this.options.acceleration){const a=Math.atan2(i-n.y,r-n.x),c=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));if(c){const u=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);c>u?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const f=Math.cos(a)*this.velocity.x,h=Math.sin(a)*this.velocity.y,p=Math.abs(f)>Math.abs(o)?r:n.x+f,g=Math.abs(h)>Math.abs(s)?i:n.y+h;this.parent.moveCenter(p,g),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const a=Math.atan2(i-n.y,r-n.x),c=Math.cos(a)*this.options.speed,u=Math.sin(a)*this.options.speed,f=Math.abs(c)>Math.abs(o)?r:n.x+c,h=Math.abs(u)>Math.abs(s)?i:n.y+u;this.parent.moveCenter(f,h),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(r,i),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}};const gje={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};let vje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"reverse"),Ee(this,"radiusSquared"),Ee(this,"left"),Ee(this,"top"),Ee(this,"right"),Ee(this,"bottom"),Ee(this,"horizontal"),Ee(this,"vertical"),this.options=Object.assign({},gje,n),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const n=t.global.x,r=t.global.y;if(this.radiusSquared){const i=this.parent.toScreen(this.parent.center);if(Math.pow(i.x-n,2)+Math.pow(i.y-r,2)>=this.radiusSquared){const o=Math.atan2(i.y-r,i.x-n);this.options.linear?(this.horizontal=Math.round(Math.cos(o))*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.round(Math.sin(o))*this.options.speed*this.reverse*(60/1e3)):(this.horizontal=Math.cos(o)*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.sin(o)*this.options.speed*this.reverse*(60/1e3))}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&nthis.right?this.horizontal=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&rthis.bottom?this.vertical=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}};const yje={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};let bje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"active",!1),Ee(this,"pinching",!1),Ee(this,"moved",!1),Ee(this,"lastCenter"),this.options=Object.assign({},yje,n)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const n=t.global.x,r=t.global.y,i=this.parent.input.touches;if(i.length>=2){const o=i[0],s=i[1],a=o.last&&s.last?Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2)):null;if(o.id===t.pointerId?o.last={x:n,y:r,data:t}:s.id===t.pointerId&&(s.last={x:n,y:r,data:t}),a){let c;const u=new Lt(o.last.x+(s.last.x-o.last.x)/2,o.last.y+(s.last.y-o.last.y)/2);this.options.center||(c=this.parent.toLocal(u));let f=Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2));f=f===0?f=1e-10:f;const h=(1-a/f)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=h),this.isAxisY()&&(this.parent.scale.y+=h),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:u});const p=this.parent.plugins.get("clamp-zoom",!0);if(p&&p.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=this.parent.toGlobal(c);this.parent.x+=(u.x-g.x)*this.options.factor,this.parent.y+=(u.y-g.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(u.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(u.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=u,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}};const xje={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};let wje=class extends Da{constructor(t,n,r,i={}){super(t),Ee(this,"options"),Ee(this,"ease"),Ee(this,"x"),Ee(this,"y"),Ee(this,"percent"),Ee(this,"snapping"),Ee(this,"deltaX"),Ee(this,"deltaY"),Ee(this,"startX"),Ee(this,"startY"),this.options=Object.assign({},xje,i),this.ease=MA(i.ease,"easeInOutSine"),this.x=n,this.y=r,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const n=this.snapping;n.time+=t;let r,i,o;const s=this.startX,a=this.startY,c=this.deltaX,u=this.deltaY;if(n.time>this.options.time)r=!0,i=s+c,o=a+u;else{const f=this.ease(n.time,0,1,this.options.time);i=s+c*f,o=a+u*f}this.options.topLeft?this.parent.moveCorner(i,o):this.parent.moveCenter(i,o),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),r&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const n=this.options.topLeft?this.parent.corner:this.parent.center;(n.x!==this.x||n.y!==this.y)&&this.snapStart()}}};const _je={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};let Sje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"ease"),Ee(this,"xScale"),Ee(this,"yScale"),Ee(this,"xIndependent"),Ee(this,"yIndependent"),Ee(this,"snapping"),this.options=Object.assign({},_je,n),this.ease=MA(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):n.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,r=this.parent.screenWidth/this.xScale,i=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:n,deltaX:r-t,deltaY:i-n},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let n;if(!this.options.center&&!this.options.noMove&&(n=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const r=this.snapping;if(r.time+=t,r.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const o=this.snapping,s=this.ease(o.time,o.startX,o.deltaX,this.options.time),a=this.ease(o.time,o.startY,o.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/s,this.parent.scale.y=this.parent.screenHeight/a}const i=this.parent.plugins.get("clamp-zoom",!0);i&&i.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(n))}}resume(){this.snapping=null,super.resume()}};const Eje={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};let Cje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"smoothing"),Ee(this,"smoothingCenter"),Ee(this,"smoothingCount"),Ee(this,"keyIsPressed"),this.options=Object.assign({},Eje,n),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){window.addEventListener("keydown",n=>{t.includes(n.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",n=>{t.includes(n.code)&&(this.keyIsPressed=!1)})}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,n=this.smoothing;let r;this.options.center||(r=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=n.x),this.isAxisY()&&(this.parent.scale.y+=n.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const i=this.parent.plugins.get("clamp-zoom",!0);if(i&&i.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const o=this.parent.toGlobal(r);this.parent.x+=t.x-o.x,this.parent.y+=t.y-o.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const n=this.parent.input.getPointerPosition(t),r=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,i=Math.pow(2,(1+this.options.percent)*r);let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(o);this.parent.x+=n.x-a.x,this.parent.y+=n.y-a.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const n=this.parent.input.getPointerPosition(t),r=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,i=Math.pow(2,(1+this.options.percent)*r);if(this.options.smooth){const o={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+o.x)*i-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+o.y)*i-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=n}else{let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(o);this.parent.x+=n.x-a.x,this.parent.y+=n.y-a.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}},Tje=class{constructor(t){Ee(this,"viewport"),Ee(this,"clickedAvailable"),Ee(this,"isMouseDown"),Ee(this,"last"),Ee(this,"wheelFunction"),Ee(this,"touches"),this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.interactive=!0,this.viewport.forceHitArea||(this.viewport.hitArea=new Jt(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){this.viewport.options.events.domElement.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.worldVisible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const n=this.viewport.plugins.get("decelerate",!0),r=this.viewport.plugins.get("bounce",!0);(!n||!n.isActive())&&(!r||!r.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const r=t.global.x-this.last.x,i=t.global.y-this.last.y;(this.checkThreshold(r)||this.checkThreshold(i))&&(this.clickedAvailable=!1)}n&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.worldVisible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const n=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),n&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const n=new Lt;return this.viewport.options.events.mapPositionToPoint(n,t.clientX,t.clientY),n}handleWheel(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=n.x&&n.x<=this.viewport.right&&this.viewport.top<=n.y&&n.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const n of this.touches)if(n.id===t)return n;return null}remove(t){for(let n=0;n{t.destroy()}),this.plugins={},this.sort()}remove(t){var n;this.plugins[t]&&((n=this.plugins[t])==null||n.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var n;(n=this.plugins[t])==null||n.pause()}resume(t){var n;(n=this.plugins[t])==null||n.resume()}sort(){this.list=[];for(const t of Vb)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let n=!1;for(const r of this.list)r.down(t)&&(n=!0);return n}move(t){let n=!1;for(const r of this.viewport.plugins.list)r.move(t)&&(n=!0);return n}up(t){let n=!1;for(const r of this.list)r.up(t)&&(n=!0);return n}wheel(t){let n=!1;for(const r of this.list)r.wheel(t)&&(n=!0);return n}};const Aje={screenWidth:window.innerWidth,screenHeight:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:Si.shared,allowPreserveDragOutside:!1};class Ije extends cs{constructor(t){super(),Ee(this,"moving"),Ee(this,"screenWidth"),Ee(this,"screenHeight"),Ee(this,"threshold"),Ee(this,"input"),Ee(this,"plugins"),Ee(this,"zooming"),Ee(this,"lastViewport"),Ee(this,"options"),Ee(this,"_dirty"),Ee(this,"_forceHitArea"),Ee(this,"_hitAreaDefault"),Ee(this,"_pause"),Ee(this,"tickerFunction"),Ee(this,"_worldWidth"),Ee(this,"_worldHeight"),Ee(this,"_disableOnContextMenu",n=>n.preventDefault()),this.options={...Aje,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new Tje(this),this.plugins=new kje(this)}destroy(t){!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&this.options.events.domElement.removeEventListener("contextmenu",this._disableOnContextMenu),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new Jt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=window.innerWidth,n=window.innerHeight,r,i){this.screenWidth=t,this.screenHeight=n,typeof r<"u"&&(this._worldWidth=r),typeof i<"u"&&(this._worldHeight=i),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new Jt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,n){return arguments.length===2?this.toLocal(new Lt(t,n)):this.toLocal(t)}toScreen(t,n){return arguments.length===2?this.toGlobal(new Lt(t,n)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new Lt(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let n,r;typeof t[0]=="number"?(n=t[0],r=t[1]):(n=t[0].x,r=t[0].y);const i=(this.worldScreenWidth/2-n)*this.scale.x,o=(this.worldScreenHeight/2-r)*this.scale.y;return(this.x!==i||this.y!==o)&&(this.position.set(i,o),this.plugins.reset(),this.dirty=!0),this}get corner(){return new Lt(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let n,r;return t.length===1?(n=-t[0].x*this.scale.x,r=-t[0].y*this.scale.y):(n=-t[0]*this.scale.x,r=-t[1]*this.scale.y),(n!==this.x||r!==this.y)&&(this.position.set(n,r),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.min(r,i)}findCover(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.max(r,i)}fitWidth(t=this.worldWidth,n,r=!0,i){let o;n&&(o=this.center),this.scale.x=this.screenWidth/t,r&&(this.scale.y=this.scale.x);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitHeight(t=this.worldHeight,n,r=!0,i){let o;n&&(o=this.center),this.scale.y=this.screenHeight/t,r&&(this.scale.x=this.scale.y);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitWorld(t){let n;t&&(n=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.xthis.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new Lt(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new Jt(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new hje(this,t)),this}clamp(t){return this.plugins.add("clamp",new aje(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new dje(this,t)),this}bounce(t){return this.plugins.add("bounce",new oje(this,t)),this}pinch(t){return this.plugins.add("pinch",new bje(this,t)),this}snap(t,n,r){return this.plugins.add("snap",new wje(this,t,n,r)),this}follow(t,n){return this.plugins.add("follow",new mje(this,t,n)),this}wheel(t){return this.plugins.add("wheel",new Cje(this,t)),this}animate(t){return this.plugins.add("animate",new rje(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new cje(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new vje(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,n,r,i,o){o&&(r>this.worldScreenWidth||i>this.worldScreenHeight)&&(this.fit(!0,r,i),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let s=!1;tthis.right&&(this.right=t+r,s=!0),nthis.bottom&&(this.bottom=n+i,s=!0),s&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const qb=new Lt,Rje=new Uint16Array([0,1,2,0,2,3]);class cm extends cs{constructor(t){super(),this._anchor=new Md(this._onAnchorUpdate,this,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new Vn(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=Dt.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=t||pt.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=Rje,this.pluginName="batch",this.isSprite=!0,this._roundPixels=nt.ROUND_PIXELS}_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Od(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Od(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){const t=this._texture;if(this._transformID===this.transform._worldID&&this._textureID===t._updateID)return;this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;const n=this.transform.worldTransform,r=n.a,i=n.b,o=n.c,s=n.d,a=n.tx,c=n.ty,u=this.vertexData,f=t.trim,h=t.orig,p=this._anchor;let g=0,v=0,y=0,S=0;if(f?(v=f.x-p._x*h.width,g=v+f.width,S=f.y-p._y*h.height,y=S+f.height):(v=-p._x*h.width,g=v+h.width,S=-p._y*h.height,y=S+h.height),u[0]=r*v+o*S+a,u[1]=s*S+i*v+c,u[2]=r*g+o*S+a,u[3]=s*S+i*g+c,u[4]=r*g+o*y+a,u[5]=s*y+i*g+c,u[6]=r*v+o*y+a,u[7]=s*y+i*v+c,this._roundPixels){const w=nt.RESOLUTION;for(let b=0;b=i&&qb.x=o&&qb.y=ri.HIGH?this.multisample=ri.HIGH:n>=ri.MEDIUM?this.multisample=ri.MEDIUM:n>=ri.LOW?this.multisample=ri.LOW:this.multisample=ri.NONE}destroy(){}}Ore.extension={type:ot.RendererSystem,name:"_multisample"};wt.add(Ore);class uje{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class Mre{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);n.bindBuffer(t.type,i.buffer)}unbind(t){const{gl:n}=this;n.bindBuffer(t,null)}bindBufferBase(t,n){const{gl:r,CONTEXT_UID:i}=this;if(this.boundBufferBases[n]!==t){const o=t._glBuffers[i]||this.createGLBuffer(t);this.boundBufferBases[n]=t,r.bindBufferBase(r.UNIFORM_BUFFER,n,o.buffer)}}bindBufferRange(t,n,r){const{gl:i,CONTEXT_UID:o}=this;r=r||0;const s=t._glBuffers[o]||this.createGLBuffer(t);i.bindBufferRange(i.UNIFORM_BUFFER,n||0,s.buffer,r*256,256)}update(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);if(t._updateID!==i.updateID)if(i.updateID=t._updateID,n.bindBuffer(t.type,i.buffer),i.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{const o=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;i.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,o)}}dispose(t,n){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const r=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),r&&(n||i.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const n=Object.keys(this.managedBuffers);for(let r=0;rr.resource).filter(r=>r).map(r=>r.load());return this._load=Promise.all(n).then(()=>{const{realWidth:r,realHeight:i}=this.items[0];return this.resize(r,i),Promise.resolve(this)}),this._load}}class dje extends Dre{constructor(t,n){const{width:r,height:i}=n||{};let o,s;Array.isArray(t)?(o=t,s=t.length):s=t,super(s,{width:r,height:i}),o&&this.initFromArray(o,n)}addBaseTextureAt(t,n){if(t.resource)this.addResourceAt(t.resource,n);else throw new Error("ArrayResource does not support RenderTexture");return this}bind(t){super.bind(t),t.target=Eg.TEXTURE_2D_ARRAY}upload(t,n,r){const{length:i,itemDirtyIds:o,items:s}=this,{gl:a}=t;r.dirtyId<0&&a.texImage3D(a.TEXTURE_2D_ARRAY,0,r.internalFormat,this._width,this._height,i,0,n.format,r.type,null);for(let c=0;c0)if(e.resource)this.addResourceAt(e.resource,t);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=Eg.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this}upload(e,t,n){const r=this.itemDirtyIds;for(let i=0;i{if(this.url===null){t(this);return}try{const r=await nt.ADAPTER.fetch(this.url,{mode:this.crossOrigin?"cors":"no-cors"});if(this.destroyed)return;const i=await r.blob();if(this.destroyed)return;const o=await createImageBitmap(i,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===Ml.UNPACK?"premultiply":"none"});if(this.destroyed)return;this.source=o,this.update(),t(this)}catch(r){if(this.destroyed)return;n(r),this.onError.emit(r)}}),this._load)}upload(t,n,r){return this.source instanceof ImageBitmap?(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),super.upload(t,n,r)):(this.load(),!1)}dispose(){this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(t){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&(typeof t=="string"||t instanceof ImageBitmap)}static get EMPTY(){return dg._EMPTY=dg._EMPTY??nt.ADAPTER.createCanvas(0,0),dg._EMPTY}}const RE=class extends lf{constructor(e,t){t=t||{},super(nt.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=e,this.scale=t.scale||1,this._overrideWidth=t.width,this._overrideHeight=t.height,this._resolve=null,this._crossorigin=t.crossorigin,this._load=null,t.autoLoad!==!1&&this.load()}load(){return this._load?this._load:(this._load=new Promise(e=>{if(this._resolve=()=>{this.resize(this.source.width,this.source.height),e(this)},RE.SVG_XML.test(this.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");this.svg=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`}this._loadSvg()}),this._load)}_loadSvg(){const e=new Image;lf.crossOrigin(e,this.svg,this._crossorigin),e.src=this.svg,e.onerror=t=>{this._resolve&&(e.onerror=null,this.onError.emit(t))},e.onload=()=>{if(!this._resolve)return;const t=e.width,n=e.height;if(!t||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");let r=t*this.scale,i=n*this.scale;(this._overrideWidth||this._overrideHeight)&&(r=this._overrideWidth||this._overrideHeight/n*t,i=this._overrideHeight||this._overrideWidth/t*n),r=Math.round(r),i=Math.round(i);const o=this.source;o.width=r,o.height=i,o._pixiId=`canvas_${Yp()}`,o.getContext("2d").drawImage(e,0,0,t,n,0,0,r,i),this._resolve(),this._resolve=null}}static getSize(e){const t=RE.SVG_SIZE.exec(e),n={};return t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7]))),n}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(e,t){return t==="svg"||typeof e=="string"&&e.startsWith("data:image/svg+xml")||typeof e=="string"&&RE.SVG_XML.test(e)}};let tw=RE;tw.SVG_XML=/^(<\?xml[^?]+\?>)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;const T5=class extends lf{constructor(e,t){if(t=t||{},!(e instanceof HTMLVideoElement)){const n=document.createElement("video");n.setAttribute("preload","auto"),n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);const r=e[0].src||e[0];lf.crossOrigin(n,r,t.crossorigin);for(let i=0;i{this.valid?t(this):(this._resolve=t,e.load())}),this._load}_onError(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)}_isSourcePlaying(){const e=this.source;return!e.paused&&!e.ended&&this._isSourceReady()}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Si.shared.add(this.update,this),this._isConnectedToTicker=!0)}_onPlayStop(){this._isConnectedToTicker&&(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1)}_onCanPlay(){const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()}dispose(){this._isConnectedToTicker&&(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1);const e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Si.shared.add(this.update,this),this._isConnectedToTicker=!0))}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e)}static test(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||T5.TYPES.includes(t)}};let EU=T5;EU.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"];EU.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};b5.push(dg,lre,fje,EU,tw,Kw,Nre,dje);class rT{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?Zt.EMPTY:(t=t||new Zt(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,n){const{a:r,b:i,c:o,d:s,tx:a,ty:c}=t,u=r*n.x+o*n.y+a,f=i*n.x+s*n.y+c;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,f),this.maxY=Math.max(this.maxY,f)}addQuad(t){let n=this.minX,r=this.minY,i=this.maxX,o=this.maxY,s=t[0],a=t[1];n=si?s:i,o=a>o?a:o,s=t[2],a=t[3],n=si?s:i,o=a>o?a:o,s=t[4],a=t[5],n=si?s:i,o=a>o?a:o,s=t[6],a=t[7],n=si?s:i,o=a>o?a:o,this.minX=n,this.minY=r,this.maxX=i,this.maxY=o}addFrame(t,n,r,i,o){this.addFrameMatrix(t.worldTransform,n,r,i,o)}addFrameMatrix(t,n,r,i,o){const s=t.a,a=t.b,c=t.c,u=t.d,f=t.tx,h=t.ty;let p=this.minX,g=this.minY,v=this.maxX,y=this.maxY,S=s*n+c*r+f,w=a*n+u*r+h;p=Sv?S:v,y=w>y?w:y,S=s*i+c*r+f,w=a*i+u*r+h,p=Sv?S:v,y=w>y?w:y,S=s*n+c*o+f,w=a*n+u*o+h,p=Sv?S:v,y=w>y?w:y,S=s*i+c*o+f,w=a*i+u*o+h,p=Sv?S:v,y=w>y?w:y,this.minX=p,this.minY=g,this.maxX=v,this.maxY=y}addVertexData(t,n,r){let i=this.minX,o=this.minY,s=this.maxX,a=this.maxY;for(let c=n;cs?u:s,a=f>a?f:a}this.minX=i,this.minY=o,this.maxX=s,this.maxY=a}addVertices(t,n,r,i){this.addVerticesMatrix(t.worldTransform,n,r,i)}addVerticesMatrix(t,n,r,i,o=0,s=o){const a=t.a,c=t.b,u=t.c,f=t.d,h=t.tx,p=t.ty;let g=this.minX,v=this.minY,y=this.maxX,S=this.maxY;for(let w=r;wi?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,n){const r=t.minX>n.minX?t.minX:n.minX,i=t.minY>n.minY?t.minY:n.minY,o=t.maxXu?o:u,this.maxY=s>f?s:f}}addBoundsMatrix(t,n){this.addFrameMatrix(n,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,n){const r=t.minX>n.x?t.minX:n.x,i=t.minY>n.y?t.minY:n.y,o=t.maxXu?o:u,this.maxY=s>f?s:f}}pad(t=0,n=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=n,this.maxY+=n)}addFramePad(t,n,r,i,o,s){t-=o,n-=s,r+=o,i+=s,this.minX=this.minXr?this.maxX:r,this.minY=this.minYi?this.maxY:i}}class Ur extends Xw{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new SU,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new rT,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const n=Object.keys(t);for(let r=0;r1)for(let t=0;tthis.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const n=this.getChildIndex(e);Ag(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t0&&i<=r){o=this.children.splice(n,i);for(let s=0;s1&&this.children.sort(mje),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e0&&t.height>0))return;let n,r;this.cullArea?(n=this.cullArea,r=this.worldTransform):this._render!==k5.prototype._render&&(n=this.getBounds(!0));const i=e.projection.transform;if(i&&(r?(r=pje.copyFrom(r),r.prepend(i)):r=i),n&&t.intersects(n,r))this._render(e);else if(this.cullArea)return;for(let o=0,s=this.children.length;ot in e?gje(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>(vje(e,typeof t!="symbol"?t+"":t,n),n);let Da=class{constructor(t){Ee(this,"parent"),Ee(this,"paused"),this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}};var yje=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Bre={exports:{}};(function(e,t){(function(){var n,r;r=function(i){return e.exports=i},n={linear:function(i,o,s,a){return s*i/a+o},easeInQuad:function(i,o,s,a){return s*(i/=a)*i+o},easeOutQuad:function(i,o,s,a){return-s*(i/=a)*(i-2)+o},easeInOutQuad:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i+o:-s/2*(--i*(i-2)-1)+o},easeInCubic:function(i,o,s,a){return s*(i/=a)*i*i+o},easeOutCubic:function(i,o,s,a){return s*((i=i/a-1)*i*i+1)+o},easeInOutCubic:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i+o:s/2*((i-=2)*i*i+2)+o},easeInQuart:function(i,o,s,a){return s*(i/=a)*i*i*i+o},easeOutQuart:function(i,o,s,a){return-s*((i=i/a-1)*i*i*i-1)+o},easeInOutQuart:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i*i+o:-s/2*((i-=2)*i*i*i-2)+o},easeInQuint:function(i,o,s,a){return s*(i/=a)*i*i*i*i+o},easeOutQuint:function(i,o,s,a){return s*((i=i/a-1)*i*i*i*i+1)+o},easeInOutQuint:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i*i*i+o:s/2*((i-=2)*i*i*i*i+2)+o},easeInSine:function(i,o,s,a){return-s*Math.cos(i/a*(Math.PI/2))+s+o},easeOutSine:function(i,o,s,a){return s*Math.sin(i/a*(Math.PI/2))+o},easeInOutSine:function(i,o,s,a){return-s/2*(Math.cos(Math.PI*i/a)-1)+o},easeInExpo:function(i,o,s,a){return i===0?o:s*Math.pow(2,10*(i/a-1))+o},easeOutExpo:function(i,o,s,a){return i===a?o+s:s*(-Math.pow(2,-10*i/a)+1)+o},easeInOutExpo:function(i,o,s,a){return(i/=a/2)<1?s/2*Math.pow(2,10*(i-1))+o:s/2*(-Math.pow(2,-10*--i)+2)+o},easeInCirc:function(i,o,s,a){return-s*(Math.sqrt(1-(i/=a)*i)-1)+o},easeOutCirc:function(i,o,s,a){return s*Math.sqrt(1-(i=i/a-1)*i)+o},easeInOutCirc:function(i,o,s,a){return(i/=a/2)<1?-s/2*(Math.sqrt(1-i*i)-1)+o:s/2*(Math.sqrt(1-(i-=2)*i)+1)+o},easeInElastic:function(i,o,s,a){var c,u,f;return f=1.70158,u=0,c=s,i===0||(i/=a),u||(u=a*.3),c=this.options.time){const r=this.parent.width,i=this.parent.height;this.complete(),(r!==this.parent.width||i!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}else{const r=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const i=this.startWidth,o=this.deltaWidth;this.parent.fitWidth(i+o*r,this.keepCenter,this.height===null)}if(this.height!==null){const i=this.startHeight,o=this.deltaHeight;this.parent.fitHeight(i+o*r,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const i=this.startX,o=this.startY,s=this.deltaX,a=this.deltaY,c=new Lt(this.parent.x,this.parent.y);this.parent.moveCenter(i+s*r,o+a*r),this.parent.emit("moved",{viewport:this.parent,original:c,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}}};const wje={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};let _je=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"left"),Ee(this,"top"),Ee(this,"right"),Ee(this,"bottom"),Ee(this,"underflowX"),Ee(this,"underflowY"),Ee(this,"ease"),Ee(this,"toX"),Ee(this,"toY"),this.options=Object.assign({},wje,n),this.ease=LA(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const r=this.options.underflow.toLowerCase();r==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=r.indexOf("left")!==-1?-1:r.indexOf("right")!==-1?1:0,this.underflowY=r.indexOf("top")!==-1?-1:r.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const n=this.toX;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),n.time>=this.options.time?(this.parent.x=n.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(n.time,n.start,n.delta,this.options.time)}if(this.toY){const n=this.toY;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),n.time>=this.options.time?(this.parent.y=n.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(n.time,n.start,n.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const n=typeof t.x>"u"?0:t.x,r=typeof t.y>"u"?0:t.y,i=typeof t.width>"u"?this.parent.worldWidth:t.width,o=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.lefti,top:this.parent.topo,topLeft:new Lt(n*this.parent.scale.x,r*this.parent.scale.y),bottomRight:new Lt(i*this.parent.scale.x-this.parent.screenWidth,o*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new Lt(0,0),bottomRight:new Lt(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,n;if(this.paused)return;let r,i=this.parent.plugins.get("decelerate",!0);i&&(i.x||i.y)&&(i.x&&i.percentChangeX===((t=i.options)==null?void 0:t.friction)||i.y&&i.percentChangeY===((n=i.options)==null?void 0:n.friction))&&(r=this.oob(),(r.left&&this.left||r.right&&this.right)&&(i.percentChangeX=this.options.friction),(r.top&&this.top||r.bottom&&this.bottom)&&(i.percentChangeY=this.options.friction));const o=this.parent.plugins.get("drag",!0)||{},s=this.parent.plugins.get("pinch",!0)||{};if(i=i||{},!(o!=null&&o.active)&&!(s!=null&&s.active)&&(!this.toX||!this.toY)&&(!i.x||!i.y)){r=r||this.oob();const a=r.topLeft,c=r.bottomRight;if(!this.toX&&!i.x){let u=null;r.left&&this.left?u=this.parent.screenWorldWidth(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,n.x=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let r=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,n.y=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}};const Cje={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};let Tje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),this.options=Object.assign({},Cje,n),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&tthis.options.maxWidth){const r=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&nthis.options.maxHeight){const r=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},n={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const o=this.options.minScale;t.x=typeof o.x>"u"?null:o.x,t.y=typeof o.y>"u"?null:o.y}if(typeof this.options.maxScale=="number")n.x=this.options.maxScale,n.y=this.options.maxScale;else if(this.options.maxScale!==null){const o=this.options.maxScale;n.x=typeof o.x>"u"?null:o.x,n.y=typeof o.y>"u"?null:o.y}let r=this.parent.scale.x,i=this.parent.scale.y;t.x!==null&&rn.x&&(r=n.x),t.y!==null&&in.y&&(i=n.y),(r!==this.parent.scale.x||i!==this.parent.scale.y)&&(this.parent.scale.set(r,i),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}};const kje={friction:.98,bounce:.8,minSpeed:.01},ad=16;let Aje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"x"),Ee(this,"y"),Ee(this,"percentChangeX"),Ee(this,"percentChangeY"),Ee(this,"saved"),Ee(this,"timeSinceRelease"),this.options=Object.assign({},kje,n),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",r=>this.handleMoved(r))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const n=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?n.x===t.original.x&&(n.x=this.parent.x):t.type==="clamp-y"&&t.original&&n.y===t.original.y&&(n.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const n of this.saved)if(n.time>=t-100){const r=t-n.time;this.x=(this.parent.x-n.x)/r,this.y=(this.parent.y-n.y)/r,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const n=this.x||this.y,r=this.timeSinceRelease,i=this.timeSinceRelease+t;if(this.x){const o=this.percentChangeX,s=Math.log(o);this.parent.x+=this.x*ad/s*(Math.pow(o,i/ad)-Math.pow(o,r/ad)),this.x*=Math.pow(this.percentChangeX,t/ad)}if(this.y){const o=this.percentChangeY,s=Math.log(o);this.parent.y+=this.y*ad/s*(Math.pow(o,i/ad)-Math.pow(o,r/ad)),this.y*=Math.pow(this.percentChangeY,t/ad)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x){t.includes(i.code)&&(this.keyIsPressed=!0)},r=i=>{t.includes(i.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",r),this.addWindowEventHandler("keydown",n)}addWindowEventHandler(t,n){window.addEventListener(t,n),this.windowEventHandlers.push({event:t,handler:n})}destroy(){this.windowEventHandlers.forEach(({event:t,handler:n})=>{window.removeEventListener(t,n)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const n=t.pointerType==="mouse",r=this.parent.input.count();return!!((r===1||r>1&&!this.parent.plugins.get("pinch",!0))&&(!n||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const n=t.global.x,r=t.global.y,i=this.parent.input.count();if(i===1||i>1&&!this.parent.plugins.get("pinch",!0)){const o=n-this.last.x,s=r-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(o)||this.yDirection&&this.parent.input.checkThreshold(s)){const a={x:n,y:r};return this.xDirection&&(this.parent.x+=(a.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(a.y-this.last.y)*this.options.factor),this.last=a,this.moved||this.parent.emit("drag-start",{event:t,screen:new Lt(this.last.x,this.last.y),world:this.parent.toWorld(new Lt(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const n=this.parent.input.touches;if(n.length===1){const r=n[0];return r.last&&(this.last={x:r.last.x,y:r.last.y},this.current=r.id),this.moved=!1,!0}else if(this.last&&this.moved){const r=new Lt(this.last.x,this.last.y);return this.parent.emit("drag-end",{event:t,screen:r,world:this.parent.toWorld(r),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const n=this.parent.plugins.get("wheel",!0);if(!n||!n.options.wheelZoom&&!t.ctrlKey){const r=t.deltaMode?this.options.lineHeight:1,i=[t.deltaX,t.deltaY],[o,s]=this.options.wheelSwapAxes?i.reverse():i;return this.xDirection&&(this.parent.x+=o*r*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=s*r*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidththis.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeightthis.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}};const Pje={speed:0,acceleration:null,radius:null};let Oje=class extends Da{constructor(t,n,r={}){super(t),Ee(this,"options"),Ee(this,"target"),Ee(this,"velocity"),this.target=n,this.options=Object.assign({},Pje,r),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const n=this.parent.center;let r=this.target.x,i=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-n.y,2)+Math.pow(this.target.x-n.x,2))>this.options.radius){const a=Math.atan2(this.target.y-n.y,this.target.x-n.x);r=this.target.x-Math.cos(a)*this.options.radius,i=this.target.y-Math.sin(a)*this.options.radius}else return;const o=r-n.x,s=i-n.y;if(o||s)if(this.options.speed)if(this.options.acceleration){const a=Math.atan2(i-n.y,r-n.x),c=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));if(c){const u=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);c>u?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const f=Math.cos(a)*this.velocity.x,h=Math.sin(a)*this.velocity.y,p=Math.abs(f)>Math.abs(o)?r:n.x+f,g=Math.abs(h)>Math.abs(s)?i:n.y+h;this.parent.moveCenter(p,g),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const a=Math.atan2(i-n.y,r-n.x),c=Math.cos(a)*this.options.speed,u=Math.sin(a)*this.options.speed,f=Math.abs(c)>Math.abs(o)?r:n.x+c,h=Math.abs(u)>Math.abs(s)?i:n.y+u;this.parent.moveCenter(f,h),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(r,i),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}};const Mje={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};let Lje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"reverse"),Ee(this,"radiusSquared"),Ee(this,"left"),Ee(this,"top"),Ee(this,"right"),Ee(this,"bottom"),Ee(this,"horizontal"),Ee(this,"vertical"),this.options=Object.assign({},Mje,n),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const n=t.global.x,r=t.global.y;if(this.radiusSquared){const i=this.parent.toScreen(this.parent.center);if(Math.pow(i.x-n,2)+Math.pow(i.y-r,2)>=this.radiusSquared){const o=Math.atan2(i.y-r,i.x-n);this.options.linear?(this.horizontal=Math.round(Math.cos(o))*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.round(Math.sin(o))*this.options.speed*this.reverse*(60/1e3)):(this.horizontal=Math.cos(o)*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.sin(o)*this.options.speed*this.reverse*(60/1e3))}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&nthis.right?this.horizontal=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&rthis.bottom?this.vertical=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}};const Dje={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};let Nje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"active",!1),Ee(this,"pinching",!1),Ee(this,"moved",!1),Ee(this,"lastCenter"),this.options=Object.assign({},Dje,n)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const n=t.global.x,r=t.global.y,i=this.parent.input.touches;if(i.length>=2){const o=i[0],s=i[1],a=o.last&&s.last?Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2)):null;if(o.id===t.pointerId?o.last={x:n,y:r,data:t}:s.id===t.pointerId&&(s.last={x:n,y:r,data:t}),a){let c;const u=new Lt(o.last.x+(s.last.x-o.last.x)/2,o.last.y+(s.last.y-o.last.y)/2);this.options.center||(c=this.parent.toLocal(u));let f=Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2));f=f===0?f=1e-10:f;const h=(1-a/f)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=h),this.isAxisY()&&(this.parent.scale.y+=h),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:u});const p=this.parent.plugins.get("clamp-zoom",!0);if(p&&p.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=this.parent.toGlobal(c);this.parent.x+=(u.x-g.x)*this.options.factor,this.parent.y+=(u.y-g.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(u.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(u.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=u,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}};const Bje={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};let $je=class extends Da{constructor(t,n,r,i={}){super(t),Ee(this,"options"),Ee(this,"ease"),Ee(this,"x"),Ee(this,"y"),Ee(this,"percent"),Ee(this,"snapping"),Ee(this,"deltaX"),Ee(this,"deltaY"),Ee(this,"startX"),Ee(this,"startY"),this.options=Object.assign({},Bje,i),this.ease=LA(i.ease,"easeInOutSine"),this.x=n,this.y=r,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const n=this.snapping;n.time+=t;let r,i,o;const s=this.startX,a=this.startY,c=this.deltaX,u=this.deltaY;if(n.time>this.options.time)r=!0,i=s+c,o=a+u;else{const f=this.ease(n.time,0,1,this.options.time);i=s+c*f,o=a+u*f}this.options.topLeft?this.parent.moveCorner(i,o):this.parent.moveCenter(i,o),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),r&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const n=this.options.topLeft?this.parent.corner:this.parent.center;(n.x!==this.x||n.y!==this.y)&&this.snapStart()}}};const Fje={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};let zje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"ease"),Ee(this,"xScale"),Ee(this,"yScale"),Ee(this,"xIndependent"),Ee(this,"yIndependent"),Ee(this,"snapping"),this.options=Object.assign({},Fje,n),this.ease=LA(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):n.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,r=this.parent.screenWidth/this.xScale,i=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:n,deltaX:r-t,deltaY:i-n},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let n;if(!this.options.center&&!this.options.noMove&&(n=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const r=this.snapping;if(r.time+=t,r.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const o=this.snapping,s=this.ease(o.time,o.startX,o.deltaX,this.options.time),a=this.ease(o.time,o.startY,o.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/s,this.parent.scale.y=this.parent.screenHeight/a}const i=this.parent.plugins.get("clamp-zoom",!0);i&&i.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(n))}}resume(){this.snapping=null,super.resume()}};const jje={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};let Uje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"smoothing"),Ee(this,"smoothingCenter"),Ee(this,"smoothingCount"),Ee(this,"keyIsPressed"),this.options=Object.assign({},jje,n),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){window.addEventListener("keydown",n=>{t.includes(n.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",n=>{t.includes(n.code)&&(this.keyIsPressed=!1)})}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,n=this.smoothing;let r;this.options.center||(r=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=n.x),this.isAxisY()&&(this.parent.scale.y+=n.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const i=this.parent.plugins.get("clamp-zoom",!0);if(i&&i.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const o=this.parent.toGlobal(r);this.parent.x+=t.x-o.x,this.parent.y+=t.y-o.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const n=this.parent.input.getPointerPosition(t),r=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,i=Math.pow(2,(1+this.options.percent)*r);let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(o);this.parent.x+=n.x-a.x,this.parent.y+=n.y-a.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const n=this.parent.input.getPointerPosition(t),r=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,i=Math.pow(2,(1+this.options.percent)*r);if(this.options.smooth){const o={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+o.x)*i-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+o.y)*i-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=n}else{let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(o);this.parent.x+=n.x-a.x,this.parent.y+=n.y-a.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}},Hje=class{constructor(t){Ee(this,"viewport"),Ee(this,"clickedAvailable"),Ee(this,"isMouseDown"),Ee(this,"last"),Ee(this,"wheelFunction"),Ee(this,"touches"),this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.interactive=!0,this.viewport.forceHitArea||(this.viewport.hitArea=new Zt(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){this.viewport.options.events.domElement.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.worldVisible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const n=this.viewport.plugins.get("decelerate",!0),r=this.viewport.plugins.get("bounce",!0);(!n||!n.isActive())&&(!r||!r.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const r=t.global.x-this.last.x,i=t.global.y-this.last.y;(this.checkThreshold(r)||this.checkThreshold(i))&&(this.clickedAvailable=!1)}n&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.worldVisible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const n=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),n&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const n=new Lt;return this.viewport.options.events.mapPositionToPoint(n,t.clientX,t.clientY),n}handleWheel(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=n.x&&n.x<=this.viewport.right&&this.viewport.top<=n.y&&n.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const n of this.touches)if(n.id===t)return n;return null}remove(t){for(let n=0;n{t.destroy()}),this.plugins={},this.sort()}remove(t){var n;this.plugins[t]&&((n=this.plugins[t])==null||n.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var n;(n=this.plugins[t])==null||n.pause()}resume(t){var n;(n=this.plugins[t])==null||n.resume()}sort(){this.list=[];for(const t of Gb)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let n=!1;for(const r of this.list)r.down(t)&&(n=!0);return n}move(t){let n=!1;for(const r of this.viewport.plugins.list)r.move(t)&&(n=!0);return n}up(t){let n=!1;for(const r of this.list)r.up(t)&&(n=!0);return n}wheel(t){let n=!1;for(const r of this.list)r.wheel(t)&&(n=!0);return n}};const Gje={screenWidth:window.innerWidth,screenHeight:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:Si.shared,allowPreserveDragOutside:!1};class Vje extends us{constructor(t){super(),Ee(this,"moving"),Ee(this,"screenWidth"),Ee(this,"screenHeight"),Ee(this,"threshold"),Ee(this,"input"),Ee(this,"plugins"),Ee(this,"zooming"),Ee(this,"lastViewport"),Ee(this,"options"),Ee(this,"_dirty"),Ee(this,"_forceHitArea"),Ee(this,"_hitAreaDefault"),Ee(this,"_pause"),Ee(this,"tickerFunction"),Ee(this,"_worldWidth"),Ee(this,"_worldHeight"),Ee(this,"_disableOnContextMenu",n=>n.preventDefault()),this.options={...Gje,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new Hje(this),this.plugins=new Wje(this)}destroy(t){!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&this.options.events.domElement.removeEventListener("contextmenu",this._disableOnContextMenu),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new Zt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=window.innerWidth,n=window.innerHeight,r,i){this.screenWidth=t,this.screenHeight=n,typeof r<"u"&&(this._worldWidth=r),typeof i<"u"&&(this._worldHeight=i),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new Zt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,n){return arguments.length===2?this.toLocal(new Lt(t,n)):this.toLocal(t)}toScreen(t,n){return arguments.length===2?this.toGlobal(new Lt(t,n)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new Lt(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let n,r;typeof t[0]=="number"?(n=t[0],r=t[1]):(n=t[0].x,r=t[0].y);const i=(this.worldScreenWidth/2-n)*this.scale.x,o=(this.worldScreenHeight/2-r)*this.scale.y;return(this.x!==i||this.y!==o)&&(this.position.set(i,o),this.plugins.reset(),this.dirty=!0),this}get corner(){return new Lt(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let n,r;return t.length===1?(n=-t[0].x*this.scale.x,r=-t[0].y*this.scale.y):(n=-t[0]*this.scale.x,r=-t[1]*this.scale.y),(n!==this.x||r!==this.y)&&(this.position.set(n,r),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.min(r,i)}findCover(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.max(r,i)}fitWidth(t=this.worldWidth,n,r=!0,i){let o;n&&(o=this.center),this.scale.x=this.screenWidth/t,r&&(this.scale.y=this.scale.x);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitHeight(t=this.worldHeight,n,r=!0,i){let o;n&&(o=this.center),this.scale.y=this.screenHeight/t,r&&(this.scale.x=this.scale.y);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitWorld(t){let n;t&&(n=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.xthis.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new Lt(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new Zt(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new Rje(this,t)),this}clamp(t){return this.plugins.add("clamp",new Eje(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Aje(this,t)),this}bounce(t){return this.plugins.add("bounce",new _je(this,t)),this}pinch(t){return this.plugins.add("pinch",new Nje(this,t)),this}snap(t,n,r){return this.plugins.add("snap",new $je(this,t,n,r)),this}follow(t,n){return this.plugins.add("follow",new Oje(this,t,n)),this}wheel(t){return this.plugins.add("wheel",new Uje(this,t)),this}animate(t){return this.plugins.add("animate",new xje(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Tje(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new Lje(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,n,r,i,o){o&&(r>this.worldScreenWidth||i>this.worldScreenHeight)&&(this.fit(!0,r,i),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let s=!1;tthis.right&&(this.right=t+r,s=!0),nthis.bottom&&(this.bottom=n+i,s=!0),s&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const Vb=new Lt,qje=new Uint16Array([0,1,2,0,2,3]);class fm extends us{constructor(t){super(),this._anchor=new Md(this._onAnchorUpdate,this,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new Vn(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=Dt.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=t||mt.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=qje,this.pluginName="batch",this.isSprite=!0,this._roundPixels=nt.ROUND_PIXELS}_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Od(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Od(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){const t=this._texture;if(this._transformID===this.transform._worldID&&this._textureID===t._updateID)return;this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;const n=this.transform.worldTransform,r=n.a,i=n.b,o=n.c,s=n.d,a=n.tx,c=n.ty,u=this.vertexData,f=t.trim,h=t.orig,p=this._anchor;let g=0,v=0,y=0,S=0;if(f?(v=f.x-p._x*h.width,g=v+f.width,S=f.y-p._y*h.height,y=S+f.height):(v=-p._x*h.width,g=v+h.width,S=-p._y*h.height,y=S+h.height),u[0]=r*v+o*S+a,u[1]=s*S+i*v+c,u[2]=r*g+o*S+a,u[3]=s*S+i*g+c,u[4]=r*g+o*y+a,u[5]=s*y+i*g+c,u[6]=r*v+o*y+a,u[7]=s*y+i*v+c,this._roundPixels){const w=nt.RESOLUTION;for(let b=0;b=i&&Vb.x=o&&Vb.y=n&&(s=e-a-1),c=c.replace("%value%",t[s].toString()),i+=c,i+=` -`}return r=r.replace("%blur%",i),r=r.replace("%size%",e.toString()),r}const Bje=` +`;class Kje extends to{constructor(t=1){super(cje,Yje,{uAlpha:1}),this.alpha=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}}const Qje={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},Jje=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(` +`);function Zje(e){const t=Qje[e],n=t.length;let r=Jje,i="";const o="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let s;for(let a=0;a=n&&(s=e-a-1),c=c.replace("%value%",t[s].toString()),i+=c,i+=` +`}return r=r.replace("%blur%",i),r=r.replace("%size%",e.toString()),r}const eUe=` attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1252,8 +1252,8 @@ void main(void) vec2 textureCoord = filterTextureCoord(); %blur% - }`;function $je(e,t){const n=Math.ceil(e/2);let r=Bje,i="",o;t?o="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":o="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let s=0;s{Object.defineProperty(aV,e,{get(){return fn("7.1.0",`filters.${e} has moved to ${e}`),t}})});class Yje{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(Si.system.add(this.tickerUpdate,this,qp.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Si.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&t.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTimer.priority-i.priority)}dispatchEvent(t,n){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,n),this.dispatch.emit(n||t.type,t)}mapEvent(t){if(!this.rootTarget)return;const n=this.mappingTable[t.type];if(n)for(let r=0,i=n.length;r=0;i--)if(t.currentTarget=r[i],this.notifyTarget(t,n),t.propagationStopped||t.propagationImmediatelyStopped)return}}all(t,n,r=this._allInteractiveElements){if(r.length===0)return;t.eventPhase=t.BUBBLING_PHASE;const i=Array.isArray(n)?n:[n];for(let o=r.length-1;o>=0;o--)i.forEach(s=>{t.currentTarget=r[o],this.notifyTarget(t,s)})}propagationPath(t){const n=[t];for(let r=0;r=0;h--){const p=f[h],g=this.hitTestMoveRecursive(p,this._isInteractive(n)?n:p.eventMode,r,i,o,s||o(t,r));if(g){if(g.length>0&&!g[g.length-1].parent)continue;const v=t.isInteractive();(g.length>0||v)&&(v&&this._allInteractiveElements.push(t),g.push(t)),this._hitElements.length===0&&(this._hitElements=g),a=!0}}}const c=this._isInteractive(n),u=t.isInteractive();return u&&u&&this._allInteractiveElements.push(t),s||this._hitElements.length>0?null:a?this._hitElements:c&&!o(t,r)&&i(t,r)?u?[t]:[]:null}hitTestRecursive(t,n,r,i,o){if(this._interactivePrune(t)||o(t,r))return null;if((t.eventMode==="dynamic"||n==="dynamic")&&(Sd.pauseUpdate=!1),t.interactiveChildren&&t.children){const c=t.children;for(let u=c.length-1;u>=0;u--){const f=c[u],h=this.hitTestRecursive(f,this._isInteractive(n)?n:f.eventMode,r,i,o);if(h){if(h.length>0&&!h[h.length-1].parent)continue;const p=t.isInteractive();return(h.length>0||p)&&h.push(t),h}}}const s=this._isInteractive(n),a=t.isInteractive();return s&&i(t,r)?a?[t]:[]:null}_isInteractive(t){return t==="static"||t==="dynamic"}_interactivePrune(t){return!!(!t||t.isMask||!t.visible||!t.renderable||t.eventMode==="none"||t.eventMode==="passive"&&!t.interactiveChildren||t.isMask)}hitPruneFn(t,n){var r;if(t.hitArea&&(t.worldTransform.applyInverse(n,n$),!t.hitArea.contains(n$.x,n$.y)))return!0;if(t._mask){const i=t._mask.isMaskData?t._mask.maskObject:t._mask;if(i&&!((r=i.containsPoint)!=null&&r.call(i,n)))return!0}return!1}hitTestFn(t,n){return t.eventMode==="passive"?!1:t.hitArea?!0:t.containsPoint?t.containsPoint(n):!1}notifyTarget(t,n){var o,s;n=n??t.type;const r=`on${n}`;(s=(o=t.currentTarget)[r])==null||s.call(o,t);const i=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${n}capture`:n;this.notifyListeners(t,i),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,n)}mapPointerDown(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.createPointerEvent(t);if(this.dispatchEvent(n,"pointerdown"),n.pointerType==="touch")this.dispatchEvent(n,"touchstart");else if(n.pointerType==="mouse"||n.pointerType==="pen"){const i=n.button===2;this.dispatchEvent(n,i?"rightdown":"mousedown")}const r=this.trackingData(t.pointerId);r.pressTargetsByButton[t.button]=n.composedPath(),this.freeEvent(n)}mapPointerMove(t){var c,u;if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const n=this.createPointerEvent(t);this._isPointerMoveEvent=!1;const r=n.pointerType==="mouse"||n.pointerType==="pen",i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.overTargets);if(((c=i.overTargets)==null?void 0:c.length)>0&&o!==n.target){const f=t.type==="mousemove"?"mouseout":"pointerout",h=this.createPointerEvent(t,f,o);if(this.dispatchEvent(h,"pointerout"),r&&this.dispatchEvent(h,"mouseout"),!n.composedPath().includes(o)){const p=this.createPointerEvent(t,"pointerleave",o);for(p.eventPhase=p.AT_TARGET;p.target&&!n.composedPath().includes(p.target);)p.currentTarget=p.target,this.notifyTarget(p),r&&this.notifyTarget(p,"mouseleave"),p.target=p.target.parent;this.freeEvent(p)}this.freeEvent(h)}if(o!==n.target){const f=t.type==="mousemove"?"mouseover":"pointerover",h=this.clonePointerEvent(n,f);this.dispatchEvent(h,"pointerover"),r&&this.dispatchEvent(h,"mouseover");let p=o==null?void 0:o.parent;for(;p&&p!==this.rootTarget.parent&&p!==n.target;)p=p.parent;if(!p||p===this.rootTarget.parent){const v=this.clonePointerEvent(n,"pointerenter");for(v.eventPhase=v.AT_TARGET;v.target&&v.target!==o&&v.target!==this.rootTarget.parent;)v.currentTarget=v.target,this.notifyTarget(v),r&&this.notifyTarget(v,"mouseenter"),v.target=v.target.parent;this.freeEvent(v)}this.freeEvent(h)}const s=[],a=this.enableGlobalMoveEvents??!0;this.moveOnAll?s.push("pointermove"):this.dispatchEvent(n,"pointermove"),a&&s.push("globalpointermove"),n.pointerType==="touch"&&(this.moveOnAll?s.splice(1,0,"touchmove"):this.dispatchEvent(n,"touchmove"),a&&s.push("globaltouchmove")),r&&(this.moveOnAll?s.splice(1,0,"mousemove"):this.dispatchEvent(n,"mousemove"),a&&s.push("globalmousemove"),this.cursor=(u=n.target)==null?void 0:u.cursor),s.length>0&&this.all(n,s),this._allInteractiveElements.length=0,this._hitElements.length=0,i.overTargets=n.composedPath(),this.freeEvent(n)}mapPointerOver(t){var s;if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.createPointerEvent(t),i=r.pointerType==="mouse"||r.pointerType==="pen";this.dispatchEvent(r,"pointerover"),i&&this.dispatchEvent(r,"mouseover"),r.pointerType==="mouse"&&(this.cursor=(s=r.target)==null?void 0:s.cursor);const o=this.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),i&&this.notifyTarget(o,"mouseenter"),o.target=o.target.parent;n.overTargets=r.composedPath(),this.freeEvent(r),this.freeEvent(o)}mapPointerOut(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId);if(n.overTargets){const r=t.pointerType==="mouse"||t.pointerType==="pen",i=this.findMountedTarget(n.overTargets),o=this.createPointerEvent(t,"pointerout",i);this.dispatchEvent(o),r&&this.dispatchEvent(o,"mouseout");const s=this.createPointerEvent(t,"pointerleave",i);for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),r&&this.notifyTarget(s,"mouseleave"),s.target=s.target.parent;n.overTargets=null,this.freeEvent(o),this.freeEvent(s)}this.cursor=null}mapPointerUp(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=performance.now(),r=this.createPointerEvent(t);if(this.dispatchEvent(r,"pointerup"),r.pointerType==="touch")this.dispatchEvent(r,"touchend");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const a=r.button===2;this.dispatchEvent(r,a?"rightup":"mouseup")}const i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.pressTargetsByButton[t.button]);let s=o;if(o&&!r.composedPath().includes(o)){let a=o;for(;a&&!r.composedPath().includes(a);){if(r.currentTarget=a,this.notifyTarget(r,"pointerupoutside"),r.pointerType==="touch")this.notifyTarget(r,"touchendoutside");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const c=r.button===2;this.notifyTarget(r,c?"rightupoutside":"mouseupoutside")}a=a.parent}delete i.pressTargetsByButton[t.button],s=a}if(s){const a=this.clonePointerEvent(r,"click");a.target=s,a.path=null,i.clicksByButton[t.button]||(i.clicksByButton[t.button]={clickCount:0,target:a.target,timeStamp:n});const c=i.clicksByButton[t.button];if(c.target===a.target&&n-c.timeStamp<200?++c.clickCount:c.clickCount=1,c.target=a.target,c.timeStamp=n,a.detail=c.clickCount,a.pointerType==="mouse"){const u=a.button===2;this.dispatchEvent(a,u?"rightclick":"click")}else a.pointerType==="touch"&&this.dispatchEvent(a,"tap");this.dispatchEvent(a,"pointertap"),this.freeEvent(a)}this.freeEvent(r)}mapPointerUpOutside(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.findMountedTarget(n.pressTargetsByButton[t.button]),i=this.createPointerEvent(t);if(r){let o=r;for(;o;)i.currentTarget=o,this.notifyTarget(i,"pointerupoutside"),i.pointerType==="touch"?this.notifyTarget(i,"touchendoutside"):(i.pointerType==="mouse"||i.pointerType==="pen")&&this.notifyTarget(i,i.button===2?"rightupoutside":"mouseupoutside"),o=o.parent;delete n.pressTargetsByButton[t.button]}this.freeEvent(i)}mapWheel(t){if(!(t instanceof lv)){console.warn("EventBoundary cannot map a non-wheel event as a wheel event");return}const n=this.createWheelEvent(t);this.dispatchEvent(n),this.freeEvent(n)}findMountedTarget(t){if(!t)return null;let n=t[0];for(let r=1;r(n==="globalMove"&&(this.rootBoundary.enableGlobalMoveEvents=r),t[n]=r,!0)}),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOverOut=this.onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}static get defaultEventMode(){return this._defaultEventMode}init(e){const{view:t,resolution:n}=this.renderer;this.setTargetElement(t),this.resolution=n,I5._defaultEventMode=e.eventMode??"auto",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(e){this.resolution=e}destroy(){this.setTargetElement(null),this.renderer=null}setCursor(e){e=e||"default";let t=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=!1),this.currentCursor===e)return;this.currentCursor=e;const n=this.cursorStyles[e];if(n)switch(typeof n){case"string":t&&(this.domElement.style.cursor=n);break;case"function":n(e);break;case"object":t&&Object.assign(this.domElement.style,n);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e)}get pointer(){return this.rootPointerEvent}onPointerDown(e){if(!this.features.click||(this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.supportsTouchEvents&&e.pointerType==="touch"))return;const t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let n=0,r=t.length;n0&&(t=e.composedPath()[0]);const n=t!==this.domElement?"outside":"",r=this.normalizeToPointerData(e);for(let i=0,o=r.length;i"u"&&(i.button=0),typeof i.buttons>"u"&&(i.buttons=1),typeof i.isPrimary>"u"&&(i.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof i.width>"u"&&(i.width=i.radiusX||1),typeof i.height>"u"&&(i.height=i.radiusY||1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="touch"),typeof i.pointerId>"u"&&(i.pointerId=i.identifier||0),typeof i.pressure>"u"&&(i.pressure=i.force||.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),typeof i.layerX>"u"&&(i.layerX=i.offsetX=i.clientX),typeof i.layerY>"u"&&(i.layerY=i.offsetY=i.clientY),i.isNormalized=!0,i.type=e.type,t.push(i)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){const n=e;typeof n.isPrimary>"u"&&(n.isPrimary=!0),typeof n.width>"u"&&(n.width=1),typeof n.height>"u"&&(n.height=1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="mouse"),typeof n.pointerId>"u"&&(n.pointerId=Zje),typeof n.pressure>"u"&&(n.pressure=.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),n.isNormalized=!0,t.push(n)}else t.push(e);return t}normalizeWheelEvent(e){const t=this.rootWheelEvent;return this.transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this.transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=eUe[e.type]||e.type),e}transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}};let rw=I5;rw.extension={name:"events",type:[ot.RendererSystem,ot.CanvasRendererSystem]};rw.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0};wt.add(rw);function lV(e){return e==="dynamic"||e==="static"}const tUe={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,_internalInteractive:void 0,get interactive(){return this._internalInteractive??lV(rw.defaultEventMode)},set interactive(e){fn("7.2.0","Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."),this._internalInteractive=e,this.eventMode=e?"static":"auto"},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??rw.defaultEventMode},set eventMode(e){this._internalInteractive=lV(e),this._internalEventMode=e},isInteractive(){return this.eventMode==="static"||this.eventMode==="dynamic"},interactiveChildren:!0,hitArea:null,addEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.on(e,t,i)},removeEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.off(e,t,i)},dispatchEvent(e){if(!(e instanceof Kw))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return e.defaultPrevented=!1,e.path=null,e.target=this,e.manager.dispatchEvent(e),!e.defaultPrevented}};Ur.mixin(tUe);const nUe={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};Ur.mixin(nUe);const rUe=9,CS=100,iUe=0,oUe=0,cV=2,uV=1,sUe=-1e3,aUe=-1e3,lUe=2;class Pre{constructor(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(Au.tablet||Au.phone)&&this.createTouchHook();const n=document.createElement("div");n.style.width=`${CS}px`,n.style.height=`${CS}px`,n.style.position="absolute",n.style.top=`${iUe}px`,n.style.left=`${oUe}px`,n.style.zIndex=cV.toString(),this.div=n,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}createTouchHook(){const t=document.createElement("button");t.style.width=`${uV}px`,t.style.height=`${uV}px`,t.style.position="absolute",t.style.top=`${sUe}px`,t.style.left=`${aUe}px`,t.style.zIndex=lUe.toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",()=>{this._isMobileAccessibility=!0,this.activate(),this.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t}destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)}activate(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)==null||t.appendChild(this.div))}deactivate(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)==null||t.removeChild(this.div))}updateAccessibleObjects(t){if(!t.visible||!t.accessibleChildren)return;t.accessible&&t.isInteractive()&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);const n=t.children;if(n)for(let r=0;r title : ${t.title}
tabIndex: ${t.tabIndex}`}capHitArea(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);const{width:n,height:r}=this.renderer;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>r&&(t.height=r-t.y)}addChild(t){let n=this.pool.pop();n||(n=document.createElement("button"),n.style.width=`${CS}px`,n.style.height=`${CS}px`,n.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",n.style.position="absolute",n.style.zIndex=cV.toString(),n.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?n.setAttribute("aria-live","off"):n.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?n.setAttribute("aria-relevant","additions"):n.setAttribute("aria-relevant","text"),n.addEventListener("click",this._onClick.bind(this)),n.addEventListener("focus",this._onFocus.bind(this)),n.addEventListener("focusout",this._onFocusOut.bind(this))),n.style.pointerEvents=t.accessiblePointerEvents,n.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?n.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(n.title=`displayObject ${t.tabIndex}`),t.accessibleHint&&t.accessibleHint!==null&&n.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(n),t._accessibleActive=!0,t._accessibleDiv=n,n.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex}_dispatchEvent(t,n){const{displayObject:r}=t.target,i=this.renderer.events.rootBoundary,o=Object.assign(new Kw(i),{target:r});i.rootTarget=this.renderer.lastObjectRendered,n.forEach(s=>i.dispatchEvent(o,s))}_onClick(t){this._dispatchEvent(t,["click","pointertap","tap"])}_onFocus(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive"),this._dispatchEvent(t,["mouseover"])}_onFocusOut(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite"),this._dispatchEvent(t,["mouseout"])}_onKeyDown(t){t.keyCode===rUe&&this.activate()}_onMouseMove(t){t.movementX===0&&t.movementY===0||this.deactivate()}destroy(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null}}Pre.extension={name:"accessibility",type:[ot.RendererPlugin,ot.CanvasRendererPlugin]};wt.add(Pre);const R5=class{constructor(e){this.stage=new cs,e=Object.assign({forceCanvas:!1},e),this.renderer=Hze(e),R5._plugins.forEach(t=>{t.init.call(this,e)})}render(){this.renderer.render(this.stage)}get view(){return this.renderer.view}get screen(){return this.renderer.screen}destroy(e,t){const n=R5._plugins.slice(0);n.reverse(),n.forEach(r=>{r.destroy.call(this)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null}};let wU=R5;wU._plugins=[];wt.handleByList(ot.Application,wU._plugins);class Ore{static init(t){Object.defineProperty(this,"resizeTo",{set(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this.cancelResize();let n,r;if(this._resizeTo===globalThis.window)n=globalThis.innerWidth,r=globalThis.innerHeight;else{const{clientWidth:i,clientHeight:o}=this._resizeTo;n=i,r=o}this.renderer.resize(n,r),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}Ore.extension=ot.Application;wt.add(Ore);const dV={loader:ot.LoadParser,resolver:ot.ResolveParser,cache:ot.CacheParser,detection:ot.DetectionParser};wt.handle(ot.Asset,e=>{const t=e.ref;Object.entries(dV).filter(([n])=>!!t[n]).forEach(([n,r])=>wt.add(Object.assign(t[n],{extension:t[n].extension??r})))},e=>{const t=e.ref;Object.keys(dV).filter(n=>!!t[n]).forEach(n=>wt.remove(t[n]))});class cUe{constructor(t,n=!1){this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=n}add(t){t.forEach(n=>{this._assetList.push(n)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const t=[],n=Math.min(this._assetList.length,this._maxConcurrent);for(let r=0;r(Array.isArray(e)||(e=[e]),t?e.map(n=>typeof n=="string"?t(n):n):e),P5=(e,t)=>{const n=t.split("?")[1];return n&&(e+=`?${n}`),e};function Mre(e,t,n,r,i){const o=t[n];for(let s=0;s{const s=o.substring(1,o.length-1).split(",");i.push(s)}),Mre(e,i,0,n,r)}else r.push(e);return r}const iT=e=>!Array.isArray(e);class dUe{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(t){return this._cache.has(t)}get(t){const n=this._cache.get(t);return n||console.warn(`[Assets] Asset id ${t} was not found in the Cache`),n}set(t,n){const r=Lu(t);let i;for(let a=0;a{i[a]=n}));const o=Object.keys(i),s={cacheKeys:o,keys:r};if(r.forEach(a=>{this._cacheMap.set(a,s)}),o.forEach(a=>{this._cache.has(a)&&this._cache.get(a)!==n&&console.warn("[Cache] already has key:",a),this._cache.set(a,i[a])}),n instanceof pt){const a=n;r.forEach(c=>{a.baseTexture!==pt.EMPTY.baseTexture&&Gt.addToCache(a.baseTexture,c),pt.addToCache(a,c)})}}remove(t){if(this._cacheMap.get(t),!this._cacheMap.has(t)){console.warn(`[Assets] Asset id ${t} was not found in the Cache`);return}const n=this._cacheMap.get(t);n.cacheKeys.forEach(i=>{this._cache.delete(i)}),n.keys.forEach(i=>{this._cacheMap.delete(i)})}get parsers(){return this._parsers}}const Xb=new dUe;class fUe{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(t,n,r)=>(this._parsersValidated=!1,t[n]=r,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(t,n){const r={promise:null,parser:null};return r.promise=(async()=>{var s,a;let i=null,o=null;if(n.loadParser&&(o=this._parserHash[n.loadParser],o||console.warn(`[Assets] specified load parser "${n.loadParser}" not found while loading ${t}`)),!o){for(let c=0;c({src:u})),a=s.length,c=s.map(async u=>{const f=vo.toAbsolute(u.src);if(!i[u.src])try{this.promiseCache[f]||(this.promiseCache[f]=this._getLoadPromiseAndParser(f,u)),i[u.src]=await this.promiseCache[f].promise,n&&n(++r/a)}catch(h){throw delete this.promiseCache[f],delete i[u.src],new Error(`[Loader.load] Failed to load ${f}. -${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=Lu(t,i=>({src:i})).map(async i=>{var a,c;const o=vo.toAbsolute(i.src),s=this.promiseCache[o];if(s){const u=await s.promise;(c=(a=s.parser)==null?void 0:a.unload)==null||c.call(a,u,i,this),delete this.promiseCache[o]}});await Promise.all(r)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,n)=>(t[n.name]&&console.warn(`[Assets] loadParser name conflict "${n.name}"`),{...t,[n.name]:n}),{})}}var yc=(e=>(e[e.Low=0]="Low",e[e.Normal=1]="Normal",e[e.High=2]="High",e))(yc||{});const hUe=".json",pUe="application/json",mUe={extension:{type:ot.LoadParser,priority:yc.Low},name:"loadJson",test(e){return Qw(e,pUe)||um(e,hUe)},async load(e){return await(await nt.ADAPTER.fetch(e)).json()}};wt.add(mUe);const gUe=".txt",vUe="text/plain",yUe={name:"loadTxt",extension:{type:ot.LoadParser,priority:yc.Low},test(e){return Qw(e,vUe)||um(e,gUe)},async load(e){return await(await nt.ADAPTER.fetch(e)).text()}};wt.add(yUe);const bUe=["normal","bold","100","200","300","400","500","600","700","800","900"],xUe=[".ttf",".otf",".woff",".woff2"],wUe=["font/ttf","font/otf","font/woff","font/woff2"],_Ue=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function SUe(e){const t=vo.extname(e),i=vo.basename(e,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(a=>a.charAt(0).toUpperCase()+a.slice(1));let o=i.length>0;for(const a of i)if(!a.match(_Ue)){o=!1;break}let s=i.join(" ");return o||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const EUe={extension:{type:ot.LoadParser,priority:yc.Low},name:"loadWebFont",test(e){return Qw(e,wUe)||um(e,xUe)},async load(e,t){var r,i,o;const n=nt.ADAPTER.getFontFaceSet();if(n){const s=[],a=((r=t.data)==null?void 0:r.family)??SUe(e),c=((o=(i=t.data)==null?void 0:i.weights)==null?void 0:o.filter(f=>bUe.includes(f)))??["normal"],u=t.data??{};for(let f=0;fnt.ADAPTER.getFontFaceSet().delete(t))}};wt.add(EUe);let fV=0,r$;const CUe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",TUe={id:"checkImageBitmap",code:` +`;class dUe extends to{constructor(t=.5,n=Math.random()){super(Pre,uUe,{uNoise:0,uSeed:0}),this.noise=t,this.seed=n}get noise(){return this.uniforms.uNoise}set noise(t){this.uniforms.uNoise=t}get seed(){return this.uniforms.uSeed}set seed(t){this.uniforms.uSeed=t}}const hV={AlphaFilter:Kje,BlurFilter:nUe,BlurFilterPass:A5,ColorMatrixFilter:I5,DisplacementFilter:sUe,FXAAFilter:cUe,NoiseFilter:dUe};Object.entries(hV).forEach(([e,t])=>{Object.defineProperty(hV,e,{get(){return fn("7.1.0",`filters.${e} has moved to ${e}`),t}})});class fUe{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(Si.system.add(this.tickerUpdate,this,Kp.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Si.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&t.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTimer.priority-i.priority)}dispatchEvent(t,n){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,n),this.dispatch.emit(n||t.type,t)}mapEvent(t){if(!this.rootTarget)return;const n=this.mappingTable[t.type];if(n)for(let r=0,i=n.length;r=0;i--)if(t.currentTarget=r[i],this.notifyTarget(t,n),t.propagationStopped||t.propagationImmediatelyStopped)return}}all(t,n,r=this._allInteractiveElements){if(r.length===0)return;t.eventPhase=t.BUBBLING_PHASE;const i=Array.isArray(n)?n:[n];for(let o=r.length-1;o>=0;o--)i.forEach(s=>{t.currentTarget=r[o],this.notifyTarget(t,s)})}propagationPath(t){const n=[t];for(let r=0;r=0;h--){const p=f[h],g=this.hitTestMoveRecursive(p,this._isInteractive(n)?n:p.eventMode,r,i,o,s||o(t,r));if(g){if(g.length>0&&!g[g.length-1].parent)continue;const v=t.isInteractive();(g.length>0||v)&&(v&&this._allInteractiveElements.push(t),g.push(t)),this._hitElements.length===0&&(this._hitElements=g),a=!0}}}const c=this._isInteractive(n),u=t.isInteractive();return u&&u&&this._allInteractiveElements.push(t),s||this._hitElements.length>0?null:a?this._hitElements:c&&!o(t,r)&&i(t,r)?u?[t]:[]:null}hitTestRecursive(t,n,r,i,o){if(this._interactivePrune(t)||o(t,r))return null;if((t.eventMode==="dynamic"||n==="dynamic")&&(_d.pauseUpdate=!1),t.interactiveChildren&&t.children){const c=t.children;for(let u=c.length-1;u>=0;u--){const f=c[u],h=this.hitTestRecursive(f,this._isInteractive(n)?n:f.eventMode,r,i,o);if(h){if(h.length>0&&!h[h.length-1].parent)continue;const p=t.isInteractive();return(h.length>0||p)&&h.push(t),h}}}const s=this._isInteractive(n),a=t.isInteractive();return s&&i(t,r)?a?[t]:[]:null}_isInteractive(t){return t==="static"||t==="dynamic"}_interactivePrune(t){return!!(!t||t.isMask||!t.visible||!t.renderable||t.eventMode==="none"||t.eventMode==="passive"&&!t.interactiveChildren||t.isMask)}hitPruneFn(t,n){var r;if(t.hitArea&&(t.worldTransform.applyInverse(n,r$),!t.hitArea.contains(r$.x,r$.y)))return!0;if(t._mask){const i=t._mask.isMaskData?t._mask.maskObject:t._mask;if(i&&!((r=i.containsPoint)!=null&&r.call(i,n)))return!0}return!1}hitTestFn(t,n){return t.eventMode==="passive"?!1:t.hitArea?!0:t.containsPoint?t.containsPoint(n):!1}notifyTarget(t,n){var o,s;n=n??t.type;const r=`on${n}`;(s=(o=t.currentTarget)[r])==null||s.call(o,t);const i=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${n}capture`:n;this.notifyListeners(t,i),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,n)}mapPointerDown(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.createPointerEvent(t);if(this.dispatchEvent(n,"pointerdown"),n.pointerType==="touch")this.dispatchEvent(n,"touchstart");else if(n.pointerType==="mouse"||n.pointerType==="pen"){const i=n.button===2;this.dispatchEvent(n,i?"rightdown":"mousedown")}const r=this.trackingData(t.pointerId);r.pressTargetsByButton[t.button]=n.composedPath(),this.freeEvent(n)}mapPointerMove(t){var c,u;if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const n=this.createPointerEvent(t);this._isPointerMoveEvent=!1;const r=n.pointerType==="mouse"||n.pointerType==="pen",i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.overTargets);if(((c=i.overTargets)==null?void 0:c.length)>0&&o!==n.target){const f=t.type==="mousemove"?"mouseout":"pointerout",h=this.createPointerEvent(t,f,o);if(this.dispatchEvent(h,"pointerout"),r&&this.dispatchEvent(h,"mouseout"),!n.composedPath().includes(o)){const p=this.createPointerEvent(t,"pointerleave",o);for(p.eventPhase=p.AT_TARGET;p.target&&!n.composedPath().includes(p.target);)p.currentTarget=p.target,this.notifyTarget(p),r&&this.notifyTarget(p,"mouseleave"),p.target=p.target.parent;this.freeEvent(p)}this.freeEvent(h)}if(o!==n.target){const f=t.type==="mousemove"?"mouseover":"pointerover",h=this.clonePointerEvent(n,f);this.dispatchEvent(h,"pointerover"),r&&this.dispatchEvent(h,"mouseover");let p=o==null?void 0:o.parent;for(;p&&p!==this.rootTarget.parent&&p!==n.target;)p=p.parent;if(!p||p===this.rootTarget.parent){const v=this.clonePointerEvent(n,"pointerenter");for(v.eventPhase=v.AT_TARGET;v.target&&v.target!==o&&v.target!==this.rootTarget.parent;)v.currentTarget=v.target,this.notifyTarget(v),r&&this.notifyTarget(v,"mouseenter"),v.target=v.target.parent;this.freeEvent(v)}this.freeEvent(h)}const s=[],a=this.enableGlobalMoveEvents??!0;this.moveOnAll?s.push("pointermove"):this.dispatchEvent(n,"pointermove"),a&&s.push("globalpointermove"),n.pointerType==="touch"&&(this.moveOnAll?s.splice(1,0,"touchmove"):this.dispatchEvent(n,"touchmove"),a&&s.push("globaltouchmove")),r&&(this.moveOnAll?s.splice(1,0,"mousemove"):this.dispatchEvent(n,"mousemove"),a&&s.push("globalmousemove"),this.cursor=(u=n.target)==null?void 0:u.cursor),s.length>0&&this.all(n,s),this._allInteractiveElements.length=0,this._hitElements.length=0,i.overTargets=n.composedPath(),this.freeEvent(n)}mapPointerOver(t){var s;if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.createPointerEvent(t),i=r.pointerType==="mouse"||r.pointerType==="pen";this.dispatchEvent(r,"pointerover"),i&&this.dispatchEvent(r,"mouseover"),r.pointerType==="mouse"&&(this.cursor=(s=r.target)==null?void 0:s.cursor);const o=this.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),i&&this.notifyTarget(o,"mouseenter"),o.target=o.target.parent;n.overTargets=r.composedPath(),this.freeEvent(r),this.freeEvent(o)}mapPointerOut(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId);if(n.overTargets){const r=t.pointerType==="mouse"||t.pointerType==="pen",i=this.findMountedTarget(n.overTargets),o=this.createPointerEvent(t,"pointerout",i);this.dispatchEvent(o),r&&this.dispatchEvent(o,"mouseout");const s=this.createPointerEvent(t,"pointerleave",i);for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),r&&this.notifyTarget(s,"mouseleave"),s.target=s.target.parent;n.overTargets=null,this.freeEvent(o),this.freeEvent(s)}this.cursor=null}mapPointerUp(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=performance.now(),r=this.createPointerEvent(t);if(this.dispatchEvent(r,"pointerup"),r.pointerType==="touch")this.dispatchEvent(r,"touchend");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const a=r.button===2;this.dispatchEvent(r,a?"rightup":"mouseup")}const i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.pressTargetsByButton[t.button]);let s=o;if(o&&!r.composedPath().includes(o)){let a=o;for(;a&&!r.composedPath().includes(a);){if(r.currentTarget=a,this.notifyTarget(r,"pointerupoutside"),r.pointerType==="touch")this.notifyTarget(r,"touchendoutside");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const c=r.button===2;this.notifyTarget(r,c?"rightupoutside":"mouseupoutside")}a=a.parent}delete i.pressTargetsByButton[t.button],s=a}if(s){const a=this.clonePointerEvent(r,"click");a.target=s,a.path=null,i.clicksByButton[t.button]||(i.clicksByButton[t.button]={clickCount:0,target:a.target,timeStamp:n});const c=i.clicksByButton[t.button];if(c.target===a.target&&n-c.timeStamp<200?++c.clickCount:c.clickCount=1,c.target=a.target,c.timeStamp=n,a.detail=c.clickCount,a.pointerType==="mouse"){const u=a.button===2;this.dispatchEvent(a,u?"rightclick":"click")}else a.pointerType==="touch"&&this.dispatchEvent(a,"tap");this.dispatchEvent(a,"pointertap"),this.freeEvent(a)}this.freeEvent(r)}mapPointerUpOutside(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.findMountedTarget(n.pressTargetsByButton[t.button]),i=this.createPointerEvent(t);if(r){let o=r;for(;o;)i.currentTarget=o,this.notifyTarget(i,"pointerupoutside"),i.pointerType==="touch"?this.notifyTarget(i,"touchendoutside"):(i.pointerType==="mouse"||i.pointerType==="pen")&&this.notifyTarget(i,i.button===2?"rightupoutside":"mouseupoutside"),o=o.parent;delete n.pressTargetsByButton[t.button]}this.freeEvent(i)}mapWheel(t){if(!(t instanceof uv)){console.warn("EventBoundary cannot map a non-wheel event as a wheel event");return}const n=this.createWheelEvent(t);this.dispatchEvent(n),this.freeEvent(n)}findMountedTarget(t){if(!t)return null;let n=t[0];for(let r=1;r(n==="globalMove"&&(this.rootBoundary.enableGlobalMoveEvents=r),t[n]=r,!0)}),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOverOut=this.onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}static get defaultEventMode(){return this._defaultEventMode}init(e){const{view:t,resolution:n}=this.renderer;this.setTargetElement(t),this.resolution=n,R5._defaultEventMode=e.eventMode??"auto",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(e){this.resolution=e}destroy(){this.setTargetElement(null),this.renderer=null}setCursor(e){e=e||"default";let t=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=!1),this.currentCursor===e)return;this.currentCursor=e;const n=this.cursorStyles[e];if(n)switch(typeof n){case"string":t&&(this.domElement.style.cursor=n);break;case"function":n(e);break;case"object":t&&Object.assign(this.domElement.style,n);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e)}get pointer(){return this.rootPointerEvent}onPointerDown(e){if(!this.features.click||(this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.supportsTouchEvents&&e.pointerType==="touch"))return;const t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let n=0,r=t.length;n0&&(t=e.composedPath()[0]);const n=t!==this.domElement?"outside":"",r=this.normalizeToPointerData(e);for(let i=0,o=r.length;i"u"&&(i.button=0),typeof i.buttons>"u"&&(i.buttons=1),typeof i.isPrimary>"u"&&(i.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof i.width>"u"&&(i.width=i.radiusX||1),typeof i.height>"u"&&(i.height=i.radiusY||1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="touch"),typeof i.pointerId>"u"&&(i.pointerId=i.identifier||0),typeof i.pressure>"u"&&(i.pressure=i.force||.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),typeof i.layerX>"u"&&(i.layerX=i.offsetX=i.clientX),typeof i.layerY>"u"&&(i.layerY=i.offsetY=i.clientY),i.isNormalized=!0,i.type=e.type,t.push(i)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){const n=e;typeof n.isPrimary>"u"&&(n.isPrimary=!0),typeof n.width>"u"&&(n.width=1),typeof n.height>"u"&&(n.height=1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="mouse"),typeof n.pointerId>"u"&&(n.pointerId=gUe),typeof n.pressure>"u"&&(n.pressure=.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),n.isNormalized=!0,t.push(n)}else t.push(e);return t}normalizeWheelEvent(e){const t=this.rootWheelEvent;return this.transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this.transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=vUe[e.type]||e.type),e}transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}};let nw=R5;nw.extension={name:"events",type:[ot.RendererSystem,ot.CanvasRendererSystem]};nw.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0};wt.add(nw);function pV(e){return e==="dynamic"||e==="static"}const yUe={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,_internalInteractive:void 0,get interactive(){return this._internalInteractive??pV(nw.defaultEventMode)},set interactive(e){fn("7.2.0","Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."),this._internalInteractive=e,this.eventMode=e?"static":"auto"},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??nw.defaultEventMode},set eventMode(e){this._internalInteractive=pV(e),this._internalEventMode=e},isInteractive(){return this.eventMode==="static"||this.eventMode==="dynamic"},interactiveChildren:!0,hitArea:null,addEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.on(e,t,i)},removeEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.off(e,t,i)},dispatchEvent(e){if(!(e instanceof Qw))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return e.defaultPrevented=!1,e.path=null,e.target=this,e.manager.dispatchEvent(e),!e.defaultPrevented}};Ur.mixin(yUe);const bUe={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};Ur.mixin(bUe);const xUe=9,TS=100,wUe=0,_Ue=0,mV=2,gV=1,SUe=-1e3,EUe=-1e3,CUe=2;class Fre{constructor(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(Au.tablet||Au.phone)&&this.createTouchHook();const n=document.createElement("div");n.style.width=`${TS}px`,n.style.height=`${TS}px`,n.style.position="absolute",n.style.top=`${wUe}px`,n.style.left=`${_Ue}px`,n.style.zIndex=mV.toString(),this.div=n,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}createTouchHook(){const t=document.createElement("button");t.style.width=`${gV}px`,t.style.height=`${gV}px`,t.style.position="absolute",t.style.top=`${SUe}px`,t.style.left=`${EUe}px`,t.style.zIndex=CUe.toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",()=>{this._isMobileAccessibility=!0,this.activate(),this.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t}destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)}activate(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)==null||t.appendChild(this.div))}deactivate(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)==null||t.removeChild(this.div))}updateAccessibleObjects(t){if(!t.visible||!t.accessibleChildren)return;t.accessible&&t.isInteractive()&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);const n=t.children;if(n)for(let r=0;r title : ${t.title}
tabIndex: ${t.tabIndex}`}capHitArea(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);const{width:n,height:r}=this.renderer;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>r&&(t.height=r-t.y)}addChild(t){let n=this.pool.pop();n||(n=document.createElement("button"),n.style.width=`${TS}px`,n.style.height=`${TS}px`,n.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",n.style.position="absolute",n.style.zIndex=mV.toString(),n.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?n.setAttribute("aria-live","off"):n.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?n.setAttribute("aria-relevant","additions"):n.setAttribute("aria-relevant","text"),n.addEventListener("click",this._onClick.bind(this)),n.addEventListener("focus",this._onFocus.bind(this)),n.addEventListener("focusout",this._onFocusOut.bind(this))),n.style.pointerEvents=t.accessiblePointerEvents,n.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?n.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(n.title=`displayObject ${t.tabIndex}`),t.accessibleHint&&t.accessibleHint!==null&&n.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(n),t._accessibleActive=!0,t._accessibleDiv=n,n.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex}_dispatchEvent(t,n){const{displayObject:r}=t.target,i=this.renderer.events.rootBoundary,o=Object.assign(new Qw(i),{target:r});i.rootTarget=this.renderer.lastObjectRendered,n.forEach(s=>i.dispatchEvent(o,s))}_onClick(t){this._dispatchEvent(t,["click","pointertap","tap"])}_onFocus(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive"),this._dispatchEvent(t,["mouseover"])}_onFocusOut(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite"),this._dispatchEvent(t,["mouseout"])}_onKeyDown(t){t.keyCode===xUe&&this.activate()}_onMouseMove(t){t.movementX===0&&t.movementY===0||this.deactivate()}destroy(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null}}Fre.extension={name:"accessibility",type:[ot.RendererPlugin,ot.CanvasRendererPlugin]};wt.add(Fre);const P5=class{constructor(e){this.stage=new us,e=Object.assign({forceCanvas:!1},e),this.renderer=sje(e),P5._plugins.forEach(t=>{t.init.call(this,e)})}render(){this.renderer.render(this.stage)}get view(){return this.renderer.view}get screen(){return this.renderer.screen}destroy(e,t){const n=P5._plugins.slice(0);n.reverse(),n.forEach(r=>{r.destroy.call(this)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null}};let CU=P5;CU._plugins=[];wt.handleByList(ot.Application,CU._plugins);class zre{static init(t){Object.defineProperty(this,"resizeTo",{set(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this.cancelResize();let n,r;if(this._resizeTo===globalThis.window)n=globalThis.innerWidth,r=globalThis.innerHeight;else{const{clientWidth:i,clientHeight:o}=this._resizeTo;n=i,r=o}this.renderer.resize(n,r),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}zre.extension=ot.Application;wt.add(zre);const vV={loader:ot.LoadParser,resolver:ot.ResolveParser,cache:ot.CacheParser,detection:ot.DetectionParser};wt.handle(ot.Asset,e=>{const t=e.ref;Object.entries(vV).filter(([n])=>!!t[n]).forEach(([n,r])=>wt.add(Object.assign(t[n],{extension:t[n].extension??r})))},e=>{const t=e.ref;Object.keys(vV).filter(n=>!!t[n]).forEach(n=>wt.remove(t[n]))});class TUe{constructor(t,n=!1){this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=n}add(t){t.forEach(n=>{this._assetList.push(n)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const t=[],n=Math.min(this._assetList.length,this._maxConcurrent);for(let r=0;r(Array.isArray(e)||(e=[e]),t?e.map(n=>typeof n=="string"?t(n):n):e),O5=(e,t)=>{const n=t.split("?")[1];return n&&(e+=`?${n}`),e};function jre(e,t,n,r,i){const o=t[n];for(let s=0;s{const s=o.substring(1,o.length-1).split(",");i.push(s)}),jre(e,i,0,n,r)}else r.push(e);return r}const oT=e=>!Array.isArray(e);class AUe{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(t){return this._cache.has(t)}get(t){const n=this._cache.get(t);return n||console.warn(`[Assets] Asset id ${t} was not found in the Cache`),n}set(t,n){const r=Lu(t);let i;for(let a=0;a{i[a]=n}));const o=Object.keys(i),s={cacheKeys:o,keys:r};if(r.forEach(a=>{this._cacheMap.set(a,s)}),o.forEach(a=>{this._cache.has(a)&&this._cache.get(a)!==n&&console.warn("[Cache] already has key:",a),this._cache.set(a,i[a])}),n instanceof mt){const a=n;r.forEach(c=>{a.baseTexture!==mt.EMPTY.baseTexture&&Vt.addToCache(a.baseTexture,c),mt.addToCache(a,c)})}}remove(t){if(this._cacheMap.get(t),!this._cacheMap.has(t)){console.warn(`[Assets] Asset id ${t} was not found in the Cache`);return}const n=this._cacheMap.get(t);n.cacheKeys.forEach(i=>{this._cache.delete(i)}),n.keys.forEach(i=>{this._cacheMap.delete(i)})}get parsers(){return this._parsers}}const qb=new AUe;class IUe{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(t,n,r)=>(this._parsersValidated=!1,t[n]=r,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(t,n){const r={promise:null,parser:null};return r.promise=(async()=>{var s,a;let i=null,o=null;if(n.loadParser&&(o=this._parserHash[n.loadParser],o||console.warn(`[Assets] specified load parser "${n.loadParser}" not found while loading ${t}`)),!o){for(let c=0;c({src:u})),a=s.length,c=s.map(async u=>{const f=vo.toAbsolute(u.src);if(!i[u.src])try{this.promiseCache[f]||(this.promiseCache[f]=this._getLoadPromiseAndParser(f,u)),i[u.src]=await this.promiseCache[f].promise,n&&n(++r/a)}catch(h){throw delete this.promiseCache[f],delete i[u.src],new Error(`[Loader.load] Failed to load ${f}. +${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=Lu(t,i=>({src:i})).map(async i=>{var a,c;const o=vo.toAbsolute(i.src),s=this.promiseCache[o];if(s){const u=await s.promise;(c=(a=s.parser)==null?void 0:a.unload)==null||c.call(a,u,i,this),delete this.promiseCache[o]}});await Promise.all(r)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,n)=>(t[n.name]&&console.warn(`[Assets] loadParser name conflict "${n.name}"`),{...t,[n.name]:n}),{})}}var bc=(e=>(e[e.Low=0]="Low",e[e.Normal=1]="Normal",e[e.High=2]="High",e))(bc||{});const RUe=".json",PUe="application/json",OUe={extension:{type:ot.LoadParser,priority:bc.Low},name:"loadJson",test(e){return Jw(e,PUe)||hm(e,RUe)},async load(e){return await(await nt.ADAPTER.fetch(e)).json()}};wt.add(OUe);const MUe=".txt",LUe="text/plain",DUe={name:"loadTxt",extension:{type:ot.LoadParser,priority:bc.Low},test(e){return Jw(e,LUe)||hm(e,MUe)},async load(e){return await(await nt.ADAPTER.fetch(e)).text()}};wt.add(DUe);const NUe=["normal","bold","100","200","300","400","500","600","700","800","900"],BUe=[".ttf",".otf",".woff",".woff2"],$Ue=["font/ttf","font/otf","font/woff","font/woff2"],FUe=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function zUe(e){const t=vo.extname(e),i=vo.basename(e,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(a=>a.charAt(0).toUpperCase()+a.slice(1));let o=i.length>0;for(const a of i)if(!a.match(FUe)){o=!1;break}let s=i.join(" ");return o||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const jUe={extension:{type:ot.LoadParser,priority:bc.Low},name:"loadWebFont",test(e){return Jw(e,$Ue)||hm(e,BUe)},async load(e,t){var r,i,o;const n=nt.ADAPTER.getFontFaceSet();if(n){const s=[],a=((r=t.data)==null?void 0:r.family)??zUe(e),c=((o=(i=t.data)==null?void 0:i.weights)==null?void 0:o.filter(f=>NUe.includes(f)))??["normal"],u=t.data??{};for(let f=0;fnt.ADAPTER.getFontFaceSet().delete(t))}};wt.add(jUe);let yV=0,i$;const UUe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",HUe={id:"checkImageBitmap",code:` async function checkImageBitmap() { try { if (typeof createImageBitmap !== 'function') return false; - const response = await fetch('${CUe}'); + const response = await fetch('${UUe}'); const imageBlob = await response.blob(); const imageBitmap = await createImageBitmap(imageBlob); @@ -1571,7 +1571,7 @@ ${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=Lu } } checkImageBitmap().then((result) => { self.postMessage(result); }); - `},kUe={id:"loadImageBitmap",code:` + `},WUe={id:"loadImageBitmap",code:` async function loadImageBitmap(url) { const response = await fetch(url); @@ -1607,7 +1607,7 @@ ${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=Lu id: event.data.id, }); } - };`};let i$;class AUe{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(t=>{const n=URL.createObjectURL(new Blob([TUe.code],{type:"application/javascript"})),r=new Worker(n);r.addEventListener("message",i=>{r.terminate(),URL.revokeObjectURL(n),t(i.data)})}),this._isImageBitmapSupported)}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){r$===void 0&&(r$=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers{this.complete(n.data),this.returnWorker(n.target),this.next()})),t}returnWorker(t){this.workerPool.push(t)}complete(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,n){await this._initWorkers();const r=new Promise((i,o)=>{this.queue.push({id:t,arguments:n,resolve:i,reject:o})});return this.next(),r}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const n=this.queue.pop(),r=n.id;this.resolveHash[fV]={resolve:n.resolve,reject:n.reject},t.postMessage({data:n.arguments,uuid:fV++,id:r})}}const hV=new AUe;function LA(e,t,n){const r=new pt(e);return r.baseTexture.on("dispose",()=>{delete t.promiseCache[n]}),r}const IUe=[".jpeg",".jpg",".png",".webp",".avif"],RUe=["image/jpeg","image/png","image/webp","image/avif"];async function PUe(e){const t=await nt.ADAPTER.fetch(e);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${e}: ${t.status} ${t.statusText}`);const n=await t.blob();return await createImageBitmap(n)}const DA={name:"loadTextures",extension:{type:ot.LoadParser,priority:yc.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(e){return Qw(e,RUe)||um(e,IUe)},async load(e,t,n){let r=null;globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await hV.isImageBitmapSupported()?r=await hV.loadImageBitmap(e):r=await PUe(e):r=await new Promise(o=>{r=new Image,r.crossOrigin=this.config.crossOrigin,r.src=e,r.complete?o(r):r.onload=()=>{o(r)}});const i=new Gt(r,{resolution:sf(e),...t.data});return i.resource.src=e,LA(i,n,e)},unload(e){e.destroy(!0)}};wt.add(DA);const OUe=".svg",MUe="image/svg+xml",LUe={extension:{type:ot.LoadParser,priority:yc.High},name:"loadSVG",test(e){return Qw(e,MUe)||um(e,OUe)},async testParse(e){return nw.test(e)},async parse(e,t,n){var s;const r=new nw(e,(s=t==null?void 0:t.data)==null?void 0:s.resourceOptions);await r.load();const i=new Gt(r,{resolution:sf(e),...t==null?void 0:t.data});return i.resource.src=e,LA(i,n,e)},async load(e,t){return(await nt.ADAPTER.fetch(e)).text()},unload:DA.unload};wt.add(LUe);class DUe{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,n)=>`${t}${this._bundleIdConnector}${n}`,extractAssetIdFromBundle:(t,n)=>n.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach(n=>{this._preferredOrder.push(n),n.priority||(n.priority=Object.keys(n.params))}),this._resolverHash={}}set basePath(t){this._basePath=t}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(t){if(typeof t=="string")this._defaultSearchParams=t;else{const n=t;this._defaultSearchParams=Object.keys(n).map(r=>`${encodeURIComponent(r)}=${encodeURIComponent(n[r])}`).join("&")}}addManifest(t){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(n=>{this.addBundle(n.name,n.assets)})}addBundle(t,n){const r=[];Array.isArray(n)?n.forEach(i=>{if(typeof i.name=="string"){const o=this._createBundleAssetId(t,i.name);r.push(o),this.add([i.name,o],i.srcs,i.data)}else{const o=i.name.map(s=>this._createBundleAssetId(t,s));o.forEach(s=>{r.push(s)}),this.add([...i.name,...o],i.srcs)}}):Object.keys(n).forEach(i=>{r.push(this._createBundleAssetId(t,i)),this.add([i,this._createBundleAssetId(t,i)],n[i])}),this._bundles[t]=r}add(t,n,r){const i=Lu(t);i.forEach(s=>{this.hasKey(s)&&console.warn(`[Resolver] already has key: ${s} overwriting`)}),Array.isArray(n)||(typeof n=="string"?n=uUe(n):n=[n]);const o=n.map(s=>{let a=s;if(typeof s=="string"){let c=!1;for(let u=0;u{this._assetMap[s]=o})}resolveBundle(t){const n=iT(t);t=Lu(t);const r={};return t.forEach(i=>{const o=this._bundles[i];if(o){const s=this.resolve(o),a={};for(const c in s){const u=s[c];a[this._extractAssetIdFromBundle(i,c)]=u}r[i]=a}}),n?r[t[0]]:r}resolveUrl(t){const n=this.resolve(t);if(typeof t!="string"){const r={};for(const i in n)r[i]=n[i].src;return r}return n.src}resolve(t){const n=iT(t);t=Lu(t);const r={};return t.forEach(i=>{if(!this._resolverHash[i])if(this._assetMap[i]){let o=this._assetMap[i];const s=this._getPreferredOrder(o),a=o[0];s==null||s.priority.forEach(c=>{s.params[c].forEach(u=>{const f=o.filter(h=>h[c]?h[c]===u:!1);f.length&&(o=f)})}),this._resolverHash[i]=o[0]??a}else{let o=i;(this._basePath||this._rootPath)&&(o=vo.toAbsolute(o,this._basePath,this._rootPath)),o=this._appendDefaultSearchParams(o),this._resolverHash[i]={src:o}}r[i]=this._resolverHash[i]}),n?r[t[0]]:r}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let n=0;no.params.format.includes(r.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const n=/\?/.test(t)?"&":"?";return`${t}${n}${this._defaultSearchParams}`}}class NUe{constructor(){this._detections=[],this._initialized=!1,this.resolver=new DUe,this.loader=new fUe,this.cache=Xb,this._backgroundLoader=new cUe(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){var o,s,a;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let c=t.manifest;typeof c=="string"&&(c=await this.load(c)),this.resolver.addManifest(c)}const n=((o=t.texturePreference)==null?void 0:o.resolution)??1,r=typeof n=="number"?[n]:n;let i=[];if((s=t.texturePreference)!=null&&s.format){const c=(a=t.texturePreference)==null?void 0:a.format;i=typeof c=="string"?[c]:c;for(const u of this._detections)await u.test()||(i=await u.remove(i))}else for(const c of this._detections)await c.test()&&(i=await c.add(i));this.resolver.prefer({params:{format:i,resolution:r}}),t.preferences&&this.setPreferences(t.preferences)}add(t,n,r){this.resolver.add(t,n,r)}async load(t,n){this._initialized||await this.init();const r=iT(t),i=Lu(t).map(a=>typeof a!="string"?(this.resolver.add(a.src,a),a.src):(this.resolver.hasKey(a)||this.resolver.add(a,a),a)),o=this.resolver.resolve(i),s=await this._mapLoadToResolve(o,n);return r?s[i[0]]:s}addBundle(t,n){this.resolver.addBundle(t,n)}async loadBundle(t,n){this._initialized||await this.init();let r=!1;typeof t=="string"&&(r=!0,t=[t]);const i=this.resolver.resolveBundle(t),o={},s=Object.keys(i);let a=0,c=0;const u=()=>{n==null||n(++a/c)},f=s.map(h=>{const p=i[h];return c+=Object.keys(p).length,this._mapLoadToResolve(p,u).then(g=>{o[h]=g})});return await Promise.all(f),r?o[t[0]]:o}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(n))}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolveBundle(t);Object.values(n).forEach(r=>{this._backgroundLoader.add(Object.values(r))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if(typeof t=="string")return Xb.get(t);const n={};for(let r=0;r{const u=o[a.src],f=[a.src];a.alias&&f.push(...a.alias),s[i[c]]=u,Xb.set(f,u)}),s}async unload(t){this._initialized||await this.init();const n=Lu(t).map(i=>typeof i!="string"?i.src:i),r=this.resolver.resolve(n);await this._unloadFromResolved(r)}async unloadBundle(t){this._initialized||await this.init(),t=Lu(t);const n=this.resolver.resolveBundle(t),r=Object.keys(n).map(i=>this._unloadFromResolved(n[i]));await Promise.all(r)}async _unloadFromResolved(t){const n=Object.values(t);n.forEach(r=>{Xb.remove(r.src)}),await this.loader.unload(n)}get detections(){return this._detections}get preferWorkers(){return DA.config.preferWorkers}set preferWorkers(t){fn("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:t})}setPreferences(t){this.loader.parsers.forEach(n=>{n.config&&Object.keys(n.config).filter(r=>r in t).forEach(r=>{n.config[r]=t[r]})})}}const TS=new NUe;wt.handleByList(ot.LoadParser,TS.loader.parsers).handleByList(ot.ResolveParser,TS.resolver.parsers).handleByList(ot.CacheParser,TS.cache.parsers).handleByList(ot.DetectionParser,TS.detections);const BUe={extension:ot.CacheParser,test:e=>Array.isArray(e)&&e.every(t=>t instanceof pt),getCacheableAssets:(e,t)=>{const n={};return e.forEach(r=>{t.forEach((i,o)=>{n[r+(o===0?"":o+1)]=i})}),n}};wt.add(BUe);const $Ue={extension:{type:ot.DetectionParser,priority:1},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",t=await nt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"avif"],remove:async e=>e.filter(t=>t!=="avif")};wt.add($Ue);const FUe={extension:{type:ot.DetectionParser,priority:0},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",t=await nt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"webp"],remove:async e=>e.filter(t=>t!=="webp")};wt.add(FUe);const pV=["png","jpg","jpeg"],zUe={extension:{type:ot.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async e=>[...e,...pV],remove:async e=>e.filter(t=>!pV.includes(t))};wt.add(zUe);const jUe={extension:ot.ResolveParser,test:DA.test,parse:e=>{var t;return{resolution:parseFloat(((t=nt.RETINA_PREFIX.exec(e))==null?void 0:t[1])??"1"),format:e.split(".").pop(),src:e}}};wt.add(jUe);var Ms=(e=>(e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR",e))(Ms||{});const oT={33776:.5,33777:.5,33778:1,33779:1,35916:.5,35917:.5,35918:1,35919:1,37488:.5,37489:.5,37490:1,37491:1,37492:.5,37496:1,37493:.5,37497:1,37494:.5,37495:.5,35840:.5,35842:.5,35841:.25,35843:.25,36196:.5,35986:.5,35986:1,34798:1,37808:1};let gu,Dm;function mV(){Dm={s3tc:gu.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:gu.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:gu.getExtension("WEBGL_compressed_texture_etc"),etc1:gu.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:gu.getExtension("WEBGL_compressed_texture_pvrtc")||gu.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:gu.getExtension("WEBGL_compressed_texture_atc"),astc:gu.getExtension("WEBGL_compressed_texture_astc")}}const UUe={extension:{type:ot.DetectionParser,priority:2},test:async()=>{const t=nt.ADAPTER.createCanvas().getContext("webgl");return t?(gu=t,!0):(console.warn("WebGL not available for compressed textures."),!1)},add:async e=>{Dm||mV();const t=[];for(const n in Dm)Dm[n]&&t.push(n);return[...t,...e]},remove:async e=>(Dm||mV(),e.filter(t=>!(t in Dm)))};wt.add(UUe);class HUe extends Yw{constructor(t,n={width:1,height:1,autoLoad:!0}){let r,i;typeof t=="string"?(r=t,i=new Uint8Array):(r=null,i=t),super(i,n),this.origin=r,this.buffer=i?new v5(i):null,this._load=null,this.loaded=!1,this.origin!==null&&n.autoLoad!==!1&&this.load(),this.origin===null&&this.buffer&&(this._load=Promise.resolve(this),this.loaded=!0,this.onBlobLoaded(this.buffer.rawBinaryData))}onBlobLoaded(t){}load(){return this._load?this._load:(this._load=fetch(this.origin).then(t=>t.blob()).then(t=>t.arrayBuffer()).then(t=>(this.data=new Uint32Array(t),this.buffer=new v5(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),this)),this._load)}}class Ap extends HUe{constructor(t,n){super(t,n),this.format=n.format,this.levels=n.levels||1,this._width=n.width,this._height=n.height,this._extension=Ap._formatToExtension(this.format),(n.levelBuffers||this.buffer)&&(this._levelBuffers=n.levelBuffers||Ap._createLevelBuffers(t instanceof Uint8Array?t:this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height))}upload(t,n,r){const i=t.gl;if(!t.context.extensions[this._extension])throw new Error(`${this._extension} textures are not supported on the current machine`);if(!this._levelBuffers)return!1;for(let s=0,a=this.levels;s=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")}static _createLevelBuffers(t,n,r,i,o,s,a){const c=new Array(r);let u=t.byteOffset,f=s,h=a,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*oT[n];for(let y=0;y1?f:p,levelHeight:r>1?h:g,levelBuffer:new Uint8Array(t.buffer,u,v)},u+=v,f=f>>1||1,h=h>>1||1,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*oT[n];return c}}const o$=4,kS=124,WUe=32,gV=20,GUe=542327876,AS={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},VUe={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},IS={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4},qUe=1,XUe=2,YUe=4,KUe=64,QUe=512,JUe=131072,ZUe=827611204,e6e=861165636,t6e=894720068,n6e=808540228,r6e=4,i6e={[ZUe]:Ms.COMPRESSED_RGBA_S3TC_DXT1_EXT,[e6e]:Ms.COMPRESSED_RGBA_S3TC_DXT3_EXT,[t6e]:Ms.COMPRESSED_RGBA_S3TC_DXT5_EXT},o6e={70:Ms.COMPRESSED_RGBA_S3TC_DXT1_EXT,71:Ms.COMPRESSED_RGBA_S3TC_DXT1_EXT,73:Ms.COMPRESSED_RGBA_S3TC_DXT3_EXT,74:Ms.COMPRESSED_RGBA_S3TC_DXT3_EXT,76:Ms.COMPRESSED_RGBA_S3TC_DXT5_EXT,77:Ms.COMPRESSED_RGBA_S3TC_DXT5_EXT,72:Ms.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,75:Ms.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,78:Ms.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT};function s6e(e){const t=new Uint32Array(e);if(t[0]!==GUe)throw new Error("Invalid DDS file magic word");const r=new Uint32Array(e,0,kS/Uint32Array.BYTES_PER_ELEMENT),i=r[AS.HEIGHT],o=r[AS.WIDTH],s=r[AS.MIPMAP_COUNT],a=new Uint32Array(e,AS.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,WUe/Uint32Array.BYTES_PER_ELEMENT),c=a[qUe];if(c&YUe){const u=a[VUe.FOURCC];if(u!==n6e){const x=i6e[u],E=o$+kS,I=new Uint8Array(e,E);return[new Ap(I,{format:x,width:o,height:i,levels:s})]}const f=o$+kS,h=new Uint32Array(t.buffer,f,gV/Uint32Array.BYTES_PER_ELEMENT),p=h[IS.DXGI_FORMAT],g=h[IS.RESOURCE_DIMENSION],v=h[IS.MISC_FLAG],y=h[IS.ARRAY_SIZE],S=o6e[p];if(S===void 0)throw new Error(`DDSParser cannot parse texture data with DXGI format ${p}`);if(v===r6e)throw new Error("DDSParser does not support cubemap textures");if(g===6)throw new Error("DDSParser does not supported 3D texture data");const w=new Array,b=o$+kS+gV;if(y===1)w.push(new Uint8Array(e,b));else{const x=oT[S];let E=0,I=o,A=i;for(let O=0;O>>1,A=A>>>1}let k=b;for(let O=0;Onew Ap(x,{format:S,width:o,height:i,levels:s}))}throw c&KUe?new Error("DDSParser does not support uncompressed texture data."):c&QUe?new Error("DDSParser does not supported YUV uncompressed texture data."):c&JUe?new Error("DDSParser does not support single-channel (lumninance) texture data!"):c&XUe?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}const vV=[171,75,84,88,32,49,49,187,13,10,26,10],a6e=67305985,el={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},O5=64,yV={[Ot.UNSIGNED_BYTE]:1,[Ot.UNSIGNED_SHORT]:2,[Ot.INT]:4,[Ot.UNSIGNED_INT]:4,[Ot.FLOAT]:4,[Ot.HALF_FLOAT]:8},l6e={[Ve.RGBA]:4,[Ve.RGB]:3,[Ve.RG]:2,[Ve.RED]:1,[Ve.LUMINANCE]:1,[Ve.LUMINANCE_ALPHA]:2,[Ve.ALPHA]:1},c6e={[Ot.UNSIGNED_SHORT_4_4_4_4]:2,[Ot.UNSIGNED_SHORT_5_5_5_1]:2,[Ot.UNSIGNED_SHORT_5_6_5]:2};function u6e(e,t,n=!1){const r=new DataView(t);if(!d6e(e,r))return null;const i=r.getUint32(el.ENDIANNESS,!0)===a6e,o=r.getUint32(el.GL_TYPE,i),s=r.getUint32(el.GL_FORMAT,i),a=r.getUint32(el.GL_INTERNAL_FORMAT,i),c=r.getUint32(el.PIXEL_WIDTH,i),u=r.getUint32(el.PIXEL_HEIGHT,i)||1,f=r.getUint32(el.PIXEL_DEPTH,i)||1,h=r.getUint32(el.NUMBER_OF_ARRAY_ELEMENTS,i)||1,p=r.getUint32(el.NUMBER_OF_FACES,i),g=r.getUint32(el.NUMBER_OF_MIPMAP_LEVELS,i),v=r.getUint32(el.BYTES_OF_KEY_VALUE_DATA,i);if(u===0||f!==1)throw new Error("Only 2D textures are supported");if(p!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(h!==1)throw new Error("WebGL does not support array textures");const y=4,S=4,w=c+3&-4,b=u+3&-4,x=new Array(h);let E=c*u;o===0&&(E=w*b);let I;if(o!==0?yV[o]?I=yV[o]*l6e[s]:I=c6e[o]:I=oT[a],I===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");const A=n?h6e(r,v,i):null;let O=E*I,D=c,N=u,H=w,G=b,z=O5+v;for(let L=0;L1||o!==0?D:H,levelHeight:g>1||o!==0?N:G,levelBuffer:new Uint8Array(t,j,O)},j+=O}z+=F+4,z=z%4!==0?z+4-z%4:z,D=D>>1||1,N=N>>1||1,H=D+y-1&~(y-1),G=N+S-1&~(S-1),O=H*G*I}return o!==0?{uncompressed:x.map(L=>{let F=L[0].levelBuffer,j=!1;return o===Ot.FLOAT?F=new Float32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4):o===Ot.UNSIGNED_INT?(j=!0,F=new Uint32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4)):o===Ot.INT&&(j=!0,F=new Int32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4)),{resource:new Yw(F,{width:L[0].levelWidth,height:L[0].levelHeight}),type:o,format:j?f6e(s):s}}),kvData:A}:{compressed:x.map(L=>new Ap(null,{format:a,width:c,height:u,levels:g,levelBuffers:L})),kvData:A}}function d6e(e,t){for(let n=0;nt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}let c=0;for(;c{const c=new Gt(a,{mipmap:fc.OFF,alphaMode:Ml.NO_PREMULTIPLIED_ALPHA,resolution:sf(e),...t.data});return LA(c,n,e)});return s.length===1?s[0]:s},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};wt.add(p6e);const m6e={extension:{type:ot.LoadParser,priority:yc.High},name:"loadKTX",test(e){return um(e,".ktx")},async load(e,t,n){const i=await(await nt.ADAPTER.fetch(e)).arrayBuffer(),{compressed:o,uncompressed:s,kvData:a}=u6e(e,i),c=o??s,u={mipmap:fc.OFF,alphaMode:Ml.NO_PREMULTIPLIED_ALPHA,resolution:sf(e),...t.data},f=c.map(h=>{c===s&&Object.assign(u,{type:h.type,format:h.format});const p=new Gt(h,u);return p.ktxKeyValueData=a,LA(p,n,e)});return f.length===1?f[0]:f},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};wt.add(m6e);const g6e={extension:ot.ResolveParser,test:e=>{const n=e.split("?")[0].split(".").pop();return["basis","ktx","dds"].includes(n)},parse:e=>{var r,i;if(e.split("?")[0].split(".").pop()==="ktx"){const o=[".s3tc.ktx",".s3tc_sRGB.ktx",".etc.ktx",".etc1.ktx",".pvrt.ktx",".atc.ktx",".astc.ktx"];if(o.some(s=>e.endsWith(s)))return{resolution:parseFloat(((r=nt.RETINA_PREFIX.exec(e))==null?void 0:r[1])??"1"),format:o.find(s=>e.endsWith(s)),src:e}}return{resolution:parseFloat(((i=nt.RETINA_PREFIX.exec(e))==null?void 0:i[1])??"1"),format:e.split(".").pop(),src:e}}};wt.add(g6e);const v6e=new Jt,y6e=4,vx=class{constructor(e){this.renderer=e}async image(e,t,n){const r=new Image;return r.src=await this.base64(e,t,n),r}async base64(e,t,n){const r=this.canvas(e);if(r.toBlob!==void 0)return new Promise((i,o)=>{r.toBlob(s=>{if(!s){o(new Error("ICanvas.toBlob failed!"));return}const a=new FileReader;a.onload=()=>i(a.result),a.onerror=o,a.readAsDataURL(s)},t,n)});if(r.toDataURL!==void 0)return r.toDataURL(t,n);if(r.convertToBlob!==void 0){const i=await r.convertToBlob({type:t,quality:n});return new Promise((o,s)=>{const a=new FileReader;a.onload=()=>o(a.result),a.onerror=s,a.readAsDataURL(i)})}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}canvas(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);o&&vx._flipY(n,r,i),vx._unpremultiplyAlpha(n);const s=new M4e(r,i,1),a=new ImageData(new Uint8ClampedArray(n.buffer),r,i);return s.context.putImageData(a,0,0),s.canvas}pixels(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);return o&&vx._flipY(n,r,i),vx._unpremultiplyAlpha(n),n}_rawPixels(e,t){const n=this.renderer;if(!n)throw new Error("The Extract has already been destroyed");let r,i=!1,o,s=!1;if(e&&(e instanceof lm?o=e:(o=n.generateTexture(e,{resolution:n.resolution,multisample:n.multisample}),s=!0)),o){if(r=o.baseTexture.resolution,t=t??o.frame,i=!1,!s){n.renderTexture.bind(o);const h=o.framebuffer.glFramebuffers[n.CONTEXT_UID];h.blitFramebuffer&&n.framebuffer.bind(h.blitFramebuffer)}}else r=n.resolution,t||(t=v6e,t.width=n.width/r,t.height=n.height/r),i=!0,n.renderTexture.bind();const a=Math.round(t.width*r),c=Math.round(t.height*r),u=new Uint8Array(y6e*a*c),f=n.gl;return f.readPixels(Math.round(t.x*r),Math.round(t.y*r),a,c,f.RGBA,f.UNSIGNED_BYTE,u),s&&(o==null||o.destroy(!0)),{pixels:u,width:a,height:c,flipY:i}}destroy(){this.renderer=null}static _flipY(e,t,n){const r=t<<2,i=n>>1,o=new Uint8Array(r);for(let s=0;s=0&&a>=0&&i>=0&&o>=0)){t.length=0;return}const c=Math.ceil(2.3*Math.sqrt(s+a)),u=c*8+(i?4:0)+(o?4:0);if(t.length=u,u===0)return;if(c===0){t.length=8,t[0]=t[6]=n+i,t[1]=t[3]=r+o,t[2]=t[4]=n-i,t[5]=t[7]=r-o;return}let f=0,h=c*4+(i?2:0)+2,p=h,g=u;{const v=i+s,y=o,S=n+v,w=n-v,b=r+y;if(t[f++]=S,t[f++]=b,t[--h]=b,t[--h]=w,o){const x=r-y;t[p++]=w,t[p++]=x,t[--g]=x,t[--g]=S}}for(let v=1;v0||t&&r<=0){const i=n/2;for(let o=i+i%2;o=6){bV(n,!1);const s=[];for(let u=0;u=0&&o>=0&&s.push(n,r,n+i,r,n+i,r+o,n,r+o)},triangulate(e,t){const n=e.points,r=t.points;if(n.length===0)return;const i=r.length/2;r.push(n[0],n[1],n[2],n[3],n[6],n[7],n[4],n[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},x6e={build(e){sT.build(e)},triangulate(e,t){sT.triangulate(e,t)}};var al=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(al||{}),gp=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(gp||{});const cv={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let n=Math.ceil(e/this.maxLength);return nthis.maxSegments&&(n=this.maxSegments),n}};class xV{static curveTo(t,n,r,i,o,s){const a=s[s.length-2],u=s[s.length-1]-n,f=a-t,h=i-n,p=r-t,g=Math.abs(u*p-f*h);if(g<1e-8||o===0)return(s[s.length-2]!==t||s[s.length-1]!==n)&&s.push(t,n),null;const v=u*u+f*f,y=h*h+p*p,S=u*h+f*p,w=o*Math.sqrt(v)/g,b=o*Math.sqrt(y)/g,x=w*S/v,E=b*S/y,I=w*p+b*f,A=w*h+b*u,k=f*(b+x),O=u*(b+x),D=p*(w+E),N=h*(w+E),H=Math.atan2(O-A,k-I),G=Math.atan2(N-A,D-I);return{cx:I+t,cy:A+n,radius:o,startAngle:H,endAngle:G,anticlockwise:f*h>p*u}}static arc(t,n,r,i,o,s,a,c,u){const f=a-s,h=cv._segmentsCount(Math.abs(f)*o,Math.ceil(Math.abs(f)/tT)*40),p=f/(h*2),g=p*2,v=Math.cos(p),y=Math.sin(p),S=h-1,w=S%1/S;for(let b=0;b<=S;++b){const x=b+w*b,E=p+s+g*x,I=Math.cos(E),A=-Math.sin(E);u.push((v*I+y*A)*o+r,(v*-A+y*I)*o+i)}}}class w6e{constructor(){this.reset()}begin(t,n,r){this.reset(),this.style=t,this.start=n,this.attribStart=r}end(t,n){this.attribSize=n-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class _U{static curveLength(t,n,r,i,o,s,a,c){let f=0,h=0,p=0,g=0,v=0,y=0,S=0,w=0,b=0,x=0,E=0,I=t,A=n;for(let k=1;k<=10;++k)h=k/10,p=h*h,g=p*h,v=1-h,y=v*v,S=y*v,w=S*t+3*y*h*r+3*v*p*o+g*a,b=S*n+3*y*h*i+3*v*p*s+g*c,x=I-w,E=A-b,I=w,A=b,f+=Math.sqrt(x*x+E*E);return f}static curveTo(t,n,r,i,o,s,a){const c=a[a.length-2],u=a[a.length-1];a.length-=2;const f=cv._segmentsCount(_U.curveLength(c,u,t,n,r,i,o,s));let h=0,p=0,g=0,v=0,y=0;a.push(c,u);for(let S=1,w=0;S<=f;++S)w=S/f,h=1-w,p=h*h,g=p*h,v=w*w,y=v*w,a.push(g*c+3*p*w*t+3*h*v*r+y*o,g*u+3*p*w*n+3*h*v*i+y*s)}}function wV(e,t,n,r,i,o,s,a){const c=e-n*i,u=t-r*i,f=e+n*o,h=t+r*o;let p,g;s?(p=r,g=-n):(p=-r,g=n);const v=c+p,y=u+g,S=f+p,w=h+g;return a.push(v,y,S,w),2}function Wh(e,t,n,r,i,o,s,a){const c=n-e,u=r-t;let f=Math.atan2(c,u),h=Math.atan2(i-e,o-t);a&&fh&&(h+=Math.PI*2);let p=f;const g=h-f,v=Math.abs(g),y=Math.sqrt(c*c+u*u),S=(15*v*Math.sqrt(y)/Math.PI>>0)+1,w=g/S;if(p+=w,a){s.push(e,t,n,r);for(let b=1,x=p;b=0&&(o.join===al.ROUND?p+=Wh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+4:p+=2,f.push(x-D*L,E-N*L,x+D*z,E+N*z));continue}const se=(-k+w)*(-O+E)-(-k+x)*(-O+b),J=(-D+I)*(-N+E)-(-D+x)*(-N+A),ae=(W*J-X*se)/ce,le=(Q*se-K*J)/ce,he=(ae-x)*(ae-x)+(le-E)*(le-E),pe=x+(ae-x)*z,ve=E+(le-E)*z,ye=x-(ae-x)*L,xe=E-(le-E)*L,me=Math.min(W*W+K*K,X*X+Q*Q),be=ue?z:L,Ze=me+be*be*y,Xe=he<=Ze;let ct=o.join;if(ct===al.MITER&&he/y>S&&(ct=al.BEVEL),Xe)switch(ct){case al.MITER:{f.push(pe,ve,ye,xe);break}case al.BEVEL:{ue?f.push(pe,ve,x+k*L,E+O*L,pe,ve,x+D*L,E+N*L):f.push(x-k*z,E-O*z,ye,xe,x-D*z,E-N*z,ye,xe),p+=2;break}case al.ROUND:{ue?(f.push(pe,ve,x+k*L,E+O*L),p+=Wh(x,E,x+k*L,E+O*L,x+D*L,E+N*L,f,!0)+4,f.push(pe,ve,x+D*L,E+N*L)):(f.push(x-k*z,E-O*z,ye,xe),p+=Wh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+4,f.push(x-D*z,E-N*z,ye,xe));break}}else{switch(f.push(x-k*z,E-O*z,x+k*L,E+O*L),ct){case al.MITER:{ue?f.push(ye,xe,ye,xe):f.push(pe,ve,pe,ve),p+=2;break}case al.ROUND:{ue?p+=Wh(x,E,x+k*L,E+O*L,x+D*L,E+N*L,f,!0)+2:p+=Wh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+2;break}}f.push(x-D*z,E-N*z,x+D*L,E+N*L),p+=2}}w=r[(h-2)*2],b=r[(h-2)*2+1],x=r[(h-1)*2],E=r[(h-1)*2+1],k=-(b-E),O=w-x,H=Math.sqrt(k*k+O*O),k/=H,O/=H,k*=v,O*=v,f.push(x-k*z,E-O*z,x+k*L,E+O*L),c||(o.cap===gp.ROUND?p+=Wh(x-k*(z-L)*.5,E-O*(z-L)*.5,x-k*z,E-O*z,x+k*L,E+O*L,f,!1)+2:o.cap===gp.SQUARE&&(p+=wV(x,E,k,O,z,L,!1,f)));const F=t.indices,j=cv.epsilon*cv.epsilon;for(let V=g;V0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,n=null,r=null){const i=new aT(e,t,n,r);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const n=new aT(e,null,null,t),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this}destroy(){super.destroy();for(let e=0;e0&&(n=this.batches[this.batches.length-1],r=n.style);for(let a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&s===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=s?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e65535*2)return!1;const e=this.batches;for(let t=0;t0&&(r=RS.pop(),r||(r=new b5,r.texArray=new w5),this.drawCalls.push(r)),r.start=u,r.size=0,r.texArray.count=0,r.type=c),v.touched=1,v._batchEnabled=e,v._batchLocation=i,v.wrapMode=Qd.REPEAT,r.texArray.elements[r.texArray.count++]=v,i++)),r.size+=h.size,u+=h.size,s=v._batchLocation,this.addColors(t,g.color,g.alpha,h.attribSize,h.attribStart),this.addTextureIds(n,s,h.attribSize,h.attribStart)}Gt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,n=this.colors,r=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),s=new Uint32Array(i);let a=0;for(let c=0;c0&&e.alpha>0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:n},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new Tg,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new Tg,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const n=this.currentPath.points,r=n[n.length-2],i=n[n.length-1];return(r!==e||i!==t)&&n.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,n,r){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),SU.curveTo(e,t,n,r,i),this}bezierCurveTo(e,t,n,r,i,o){return this._initCurve(),_U.curveTo(e,t,n,r,i,o,this.currentPath.points),this}arcTo(e,t,n,r,i){this._initCurve(e,t);const o=this.currentPath.points,s=xV.curveTo(e,t,n,r,i,o);if(s){const{cx:a,cy:c,radius:u,startAngle:f,endAngle:h,anticlockwise:p}=s;this.arc(a,c,u,f,h,p)}return this}arc(e,t,n,r,i,o=!1){if(r===i)return this;if(!o&&i<=r?i+=tT:o&&r<=i&&(r+=tT),i-r===0)return this;const a=e+Math.cos(r)*n,c=t+Math.sin(r)*n,u=this._geometry.closePointEps;let f=this.currentPath?this.currentPath.points:null;if(f){const h=Math.abs(f[f.length-2]-a),p=Math.abs(f[f.length-1]-c);h0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:n},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,n,r){return this.drawShape(new Jt(e,t,n,r))}drawRoundedRect(e,t,n,r,i){return this.drawShape(new yU(e,t,n,r,i))}drawCircle(e,t,n){return this.drawShape(new gU(e,t,n))}drawEllipse(e,t,n,r){return this.drawShape(new vU(e,t,n,r))}drawPolygon(...e){let t,n=!0;const r=e[0];r.points?(n=r.closeStroke,t=r.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new Tg(t);return i.closeStroke=n,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Qi.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,n=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(e.points);for(let r=0;r{const n=URL.createObjectURL(new Blob([HUe.code],{type:"application/javascript"})),r=new Worker(n);r.addEventListener("message",i=>{r.terminate(),URL.revokeObjectURL(n),t(i.data)})}),this._isImageBitmapSupported)}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){i$===void 0&&(i$=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers{this.complete(n.data),this.returnWorker(n.target),this.next()})),t}returnWorker(t){this.workerPool.push(t)}complete(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,n){await this._initWorkers();const r=new Promise((i,o)=>{this.queue.push({id:t,arguments:n,resolve:i,reject:o})});return this.next(),r}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const n=this.queue.pop(),r=n.id;this.resolveHash[yV]={resolve:n.resolve,reject:n.reject},t.postMessage({data:n.arguments,uuid:yV++,id:r})}}const bV=new GUe;function DA(e,t,n){const r=new mt(e);return r.baseTexture.on("dispose",()=>{delete t.promiseCache[n]}),r}const VUe=[".jpeg",".jpg",".png",".webp",".avif"],qUe=["image/jpeg","image/png","image/webp","image/avif"];async function XUe(e){const t=await nt.ADAPTER.fetch(e);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${e}: ${t.status} ${t.statusText}`);const n=await t.blob();return await createImageBitmap(n)}const NA={name:"loadTextures",extension:{type:ot.LoadParser,priority:bc.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(e){return Jw(e,qUe)||hm(e,VUe)},async load(e,t,n){let r=null;globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await bV.isImageBitmapSupported()?r=await bV.loadImageBitmap(e):r=await XUe(e):r=await new Promise(o=>{r=new Image,r.crossOrigin=this.config.crossOrigin,r.src=e,r.complete?o(r):r.onload=()=>{o(r)}});const i=new Vt(r,{resolution:sf(e),...t.data});return i.resource.src=e,DA(i,n,e)},unload(e){e.destroy(!0)}};wt.add(NA);const YUe=".svg",KUe="image/svg+xml",QUe={extension:{type:ot.LoadParser,priority:bc.High},name:"loadSVG",test(e){return Jw(e,KUe)||hm(e,YUe)},async testParse(e){return tw.test(e)},async parse(e,t,n){var s;const r=new tw(e,(s=t==null?void 0:t.data)==null?void 0:s.resourceOptions);await r.load();const i=new Vt(r,{resolution:sf(e),...t==null?void 0:t.data});return i.resource.src=e,DA(i,n,e)},async load(e,t){return(await nt.ADAPTER.fetch(e)).text()},unload:NA.unload};wt.add(QUe);class JUe{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,n)=>`${t}${this._bundleIdConnector}${n}`,extractAssetIdFromBundle:(t,n)=>n.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach(n=>{this._preferredOrder.push(n),n.priority||(n.priority=Object.keys(n.params))}),this._resolverHash={}}set basePath(t){this._basePath=t}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(t){if(typeof t=="string")this._defaultSearchParams=t;else{const n=t;this._defaultSearchParams=Object.keys(n).map(r=>`${encodeURIComponent(r)}=${encodeURIComponent(n[r])}`).join("&")}}addManifest(t){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(n=>{this.addBundle(n.name,n.assets)})}addBundle(t,n){const r=[];Array.isArray(n)?n.forEach(i=>{if(typeof i.name=="string"){const o=this._createBundleAssetId(t,i.name);r.push(o),this.add([i.name,o],i.srcs,i.data)}else{const o=i.name.map(s=>this._createBundleAssetId(t,s));o.forEach(s=>{r.push(s)}),this.add([...i.name,...o],i.srcs)}}):Object.keys(n).forEach(i=>{r.push(this._createBundleAssetId(t,i)),this.add([i,this._createBundleAssetId(t,i)],n[i])}),this._bundles[t]=r}add(t,n,r){const i=Lu(t);i.forEach(s=>{this.hasKey(s)&&console.warn(`[Resolver] already has key: ${s} overwriting`)}),Array.isArray(n)||(typeof n=="string"?n=kUe(n):n=[n]);const o=n.map(s=>{let a=s;if(typeof s=="string"){let c=!1;for(let u=0;u{this._assetMap[s]=o})}resolveBundle(t){const n=oT(t);t=Lu(t);const r={};return t.forEach(i=>{const o=this._bundles[i];if(o){const s=this.resolve(o),a={};for(const c in s){const u=s[c];a[this._extractAssetIdFromBundle(i,c)]=u}r[i]=a}}),n?r[t[0]]:r}resolveUrl(t){const n=this.resolve(t);if(typeof t!="string"){const r={};for(const i in n)r[i]=n[i].src;return r}return n.src}resolve(t){const n=oT(t);t=Lu(t);const r={};return t.forEach(i=>{if(!this._resolverHash[i])if(this._assetMap[i]){let o=this._assetMap[i];const s=this._getPreferredOrder(o),a=o[0];s==null||s.priority.forEach(c=>{s.params[c].forEach(u=>{const f=o.filter(h=>h[c]?h[c]===u:!1);f.length&&(o=f)})}),this._resolverHash[i]=o[0]??a}else{let o=i;(this._basePath||this._rootPath)&&(o=vo.toAbsolute(o,this._basePath,this._rootPath)),o=this._appendDefaultSearchParams(o),this._resolverHash[i]={src:o}}r[i]=this._resolverHash[i]}),n?r[t[0]]:r}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let n=0;no.params.format.includes(r.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const n=/\?/.test(t)?"&":"?";return`${t}${n}${this._defaultSearchParams}`}}class ZUe{constructor(){this._detections=[],this._initialized=!1,this.resolver=new JUe,this.loader=new IUe,this.cache=qb,this._backgroundLoader=new TUe(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){var o,s,a;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let c=t.manifest;typeof c=="string"&&(c=await this.load(c)),this.resolver.addManifest(c)}const n=((o=t.texturePreference)==null?void 0:o.resolution)??1,r=typeof n=="number"?[n]:n;let i=[];if((s=t.texturePreference)!=null&&s.format){const c=(a=t.texturePreference)==null?void 0:a.format;i=typeof c=="string"?[c]:c;for(const u of this._detections)await u.test()||(i=await u.remove(i))}else for(const c of this._detections)await c.test()&&(i=await c.add(i));this.resolver.prefer({params:{format:i,resolution:r}}),t.preferences&&this.setPreferences(t.preferences)}add(t,n,r){this.resolver.add(t,n,r)}async load(t,n){this._initialized||await this.init();const r=oT(t),i=Lu(t).map(a=>typeof a!="string"?(this.resolver.add(a.src,a),a.src):(this.resolver.hasKey(a)||this.resolver.add(a,a),a)),o=this.resolver.resolve(i),s=await this._mapLoadToResolve(o,n);return r?s[i[0]]:s}addBundle(t,n){this.resolver.addBundle(t,n)}async loadBundle(t,n){this._initialized||await this.init();let r=!1;typeof t=="string"&&(r=!0,t=[t]);const i=this.resolver.resolveBundle(t),o={},s=Object.keys(i);let a=0,c=0;const u=()=>{n==null||n(++a/c)},f=s.map(h=>{const p=i[h];return c+=Object.keys(p).length,this._mapLoadToResolve(p,u).then(g=>{o[h]=g})});return await Promise.all(f),r?o[t[0]]:o}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(n))}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolveBundle(t);Object.values(n).forEach(r=>{this._backgroundLoader.add(Object.values(r))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if(typeof t=="string")return qb.get(t);const n={};for(let r=0;r{const u=o[a.src],f=[a.src];a.alias&&f.push(...a.alias),s[i[c]]=u,qb.set(f,u)}),s}async unload(t){this._initialized||await this.init();const n=Lu(t).map(i=>typeof i!="string"?i.src:i),r=this.resolver.resolve(n);await this._unloadFromResolved(r)}async unloadBundle(t){this._initialized||await this.init(),t=Lu(t);const n=this.resolver.resolveBundle(t),r=Object.keys(n).map(i=>this._unloadFromResolved(n[i]));await Promise.all(r)}async _unloadFromResolved(t){const n=Object.values(t);n.forEach(r=>{qb.remove(r.src)}),await this.loader.unload(n)}get detections(){return this._detections}get preferWorkers(){return NA.config.preferWorkers}set preferWorkers(t){fn("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:t})}setPreferences(t){this.loader.parsers.forEach(n=>{n.config&&Object.keys(n.config).filter(r=>r in t).forEach(r=>{n.config[r]=t[r]})})}}const kS=new ZUe;wt.handleByList(ot.LoadParser,kS.loader.parsers).handleByList(ot.ResolveParser,kS.resolver.parsers).handleByList(ot.CacheParser,kS.cache.parsers).handleByList(ot.DetectionParser,kS.detections);const e6e={extension:ot.CacheParser,test:e=>Array.isArray(e)&&e.every(t=>t instanceof mt),getCacheableAssets:(e,t)=>{const n={};return e.forEach(r=>{t.forEach((i,o)=>{n[r+(o===0?"":o+1)]=i})}),n}};wt.add(e6e);const t6e={extension:{type:ot.DetectionParser,priority:1},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",t=await nt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"avif"],remove:async e=>e.filter(t=>t!=="avif")};wt.add(t6e);const n6e={extension:{type:ot.DetectionParser,priority:0},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",t=await nt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"webp"],remove:async e=>e.filter(t=>t!=="webp")};wt.add(n6e);const xV=["png","jpg","jpeg"],r6e={extension:{type:ot.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async e=>[...e,...xV],remove:async e=>e.filter(t=>!xV.includes(t))};wt.add(r6e);const i6e={extension:ot.ResolveParser,test:NA.test,parse:e=>{var t;return{resolution:parseFloat(((t=nt.RETINA_PREFIX.exec(e))==null?void 0:t[1])??"1"),format:e.split(".").pop(),src:e}}};wt.add(i6e);var Ls=(e=>(e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR",e))(Ls||{});const sT={33776:.5,33777:.5,33778:1,33779:1,35916:.5,35917:.5,35918:1,35919:1,37488:.5,37489:.5,37490:1,37491:1,37492:.5,37496:1,37493:.5,37497:1,37494:.5,37495:.5,35840:.5,35842:.5,35841:.25,35843:.25,36196:.5,35986:.5,35986:1,34798:1,37808:1};let vu,$m;function wV(){$m={s3tc:vu.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:vu.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:vu.getExtension("WEBGL_compressed_texture_etc"),etc1:vu.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:vu.getExtension("WEBGL_compressed_texture_pvrtc")||vu.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:vu.getExtension("WEBGL_compressed_texture_atc"),astc:vu.getExtension("WEBGL_compressed_texture_astc")}}const o6e={extension:{type:ot.DetectionParser,priority:2},test:async()=>{const t=nt.ADAPTER.createCanvas().getContext("webgl");return t?(vu=t,!0):(console.warn("WebGL not available for compressed textures."),!1)},add:async e=>{$m||wV();const t=[];for(const n in $m)$m[n]&&t.push(n);return[...t,...e]},remove:async e=>($m||wV(),e.filter(t=>!(t in $m)))};wt.add(o6e);class s6e extends Kw{constructor(t,n={width:1,height:1,autoLoad:!0}){let r,i;typeof t=="string"?(r=t,i=new Uint8Array):(r=null,i=t),super(i,n),this.origin=r,this.buffer=i?new y5(i):null,this._load=null,this.loaded=!1,this.origin!==null&&n.autoLoad!==!1&&this.load(),this.origin===null&&this.buffer&&(this._load=Promise.resolve(this),this.loaded=!0,this.onBlobLoaded(this.buffer.rawBinaryData))}onBlobLoaded(t){}load(){return this._load?this._load:(this._load=fetch(this.origin).then(t=>t.blob()).then(t=>t.arrayBuffer()).then(t=>(this.data=new Uint32Array(t),this.buffer=new y5(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),this)),this._load)}}class Ip extends s6e{constructor(t,n){super(t,n),this.format=n.format,this.levels=n.levels||1,this._width=n.width,this._height=n.height,this._extension=Ip._formatToExtension(this.format),(n.levelBuffers||this.buffer)&&(this._levelBuffers=n.levelBuffers||Ip._createLevelBuffers(t instanceof Uint8Array?t:this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height))}upload(t,n,r){const i=t.gl;if(!t.context.extensions[this._extension])throw new Error(`${this._extension} textures are not supported on the current machine`);if(!this._levelBuffers)return!1;for(let s=0,a=this.levels;s=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")}static _createLevelBuffers(t,n,r,i,o,s,a){const c=new Array(r);let u=t.byteOffset,f=s,h=a,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*sT[n];for(let y=0;y1?f:p,levelHeight:r>1?h:g,levelBuffer:new Uint8Array(t.buffer,u,v)},u+=v,f=f>>1||1,h=h>>1||1,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*sT[n];return c}}const s$=4,AS=124,a6e=32,_V=20,l6e=542327876,IS={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},c6e={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},RS={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4},u6e=1,d6e=2,f6e=4,h6e=64,p6e=512,m6e=131072,g6e=827611204,v6e=861165636,y6e=894720068,b6e=808540228,x6e=4,w6e={[g6e]:Ls.COMPRESSED_RGBA_S3TC_DXT1_EXT,[v6e]:Ls.COMPRESSED_RGBA_S3TC_DXT3_EXT,[y6e]:Ls.COMPRESSED_RGBA_S3TC_DXT5_EXT},_6e={70:Ls.COMPRESSED_RGBA_S3TC_DXT1_EXT,71:Ls.COMPRESSED_RGBA_S3TC_DXT1_EXT,73:Ls.COMPRESSED_RGBA_S3TC_DXT3_EXT,74:Ls.COMPRESSED_RGBA_S3TC_DXT3_EXT,76:Ls.COMPRESSED_RGBA_S3TC_DXT5_EXT,77:Ls.COMPRESSED_RGBA_S3TC_DXT5_EXT,72:Ls.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,75:Ls.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,78:Ls.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT};function S6e(e){const t=new Uint32Array(e);if(t[0]!==l6e)throw new Error("Invalid DDS file magic word");const r=new Uint32Array(e,0,AS/Uint32Array.BYTES_PER_ELEMENT),i=r[IS.HEIGHT],o=r[IS.WIDTH],s=r[IS.MIPMAP_COUNT],a=new Uint32Array(e,IS.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,a6e/Uint32Array.BYTES_PER_ELEMENT),c=a[u6e];if(c&f6e){const u=a[c6e.FOURCC];if(u!==b6e){const x=w6e[u],E=s$+AS,I=new Uint8Array(e,E);return[new Ip(I,{format:x,width:o,height:i,levels:s})]}const f=s$+AS,h=new Uint32Array(t.buffer,f,_V/Uint32Array.BYTES_PER_ELEMENT),p=h[RS.DXGI_FORMAT],g=h[RS.RESOURCE_DIMENSION],v=h[RS.MISC_FLAG],y=h[RS.ARRAY_SIZE],S=_6e[p];if(S===void 0)throw new Error(`DDSParser cannot parse texture data with DXGI format ${p}`);if(v===x6e)throw new Error("DDSParser does not support cubemap textures");if(g===6)throw new Error("DDSParser does not supported 3D texture data");const w=new Array,b=s$+AS+_V;if(y===1)w.push(new Uint8Array(e,b));else{const x=sT[S];let E=0,I=o,A=i;for(let O=0;O>>1,A=A>>>1}let k=b;for(let O=0;Onew Ip(x,{format:S,width:o,height:i,levels:s}))}throw c&h6e?new Error("DDSParser does not support uncompressed texture data."):c&p6e?new Error("DDSParser does not supported YUV uncompressed texture data."):c&m6e?new Error("DDSParser does not support single-channel (lumninance) texture data!"):c&d6e?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}const SV=[171,75,84,88,32,49,49,187,13,10,26,10],E6e=67305985,el={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},M5=64,EV={[Ot.UNSIGNED_BYTE]:1,[Ot.UNSIGNED_SHORT]:2,[Ot.INT]:4,[Ot.UNSIGNED_INT]:4,[Ot.FLOAT]:4,[Ot.HALF_FLOAT]:8},C6e={[Ve.RGBA]:4,[Ve.RGB]:3,[Ve.RG]:2,[Ve.RED]:1,[Ve.LUMINANCE]:1,[Ve.LUMINANCE_ALPHA]:2,[Ve.ALPHA]:1},T6e={[Ot.UNSIGNED_SHORT_4_4_4_4]:2,[Ot.UNSIGNED_SHORT_5_5_5_1]:2,[Ot.UNSIGNED_SHORT_5_6_5]:2};function k6e(e,t,n=!1){const r=new DataView(t);if(!A6e(e,r))return null;const i=r.getUint32(el.ENDIANNESS,!0)===E6e,o=r.getUint32(el.GL_TYPE,i),s=r.getUint32(el.GL_FORMAT,i),a=r.getUint32(el.GL_INTERNAL_FORMAT,i),c=r.getUint32(el.PIXEL_WIDTH,i),u=r.getUint32(el.PIXEL_HEIGHT,i)||1,f=r.getUint32(el.PIXEL_DEPTH,i)||1,h=r.getUint32(el.NUMBER_OF_ARRAY_ELEMENTS,i)||1,p=r.getUint32(el.NUMBER_OF_FACES,i),g=r.getUint32(el.NUMBER_OF_MIPMAP_LEVELS,i),v=r.getUint32(el.BYTES_OF_KEY_VALUE_DATA,i);if(u===0||f!==1)throw new Error("Only 2D textures are supported");if(p!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(h!==1)throw new Error("WebGL does not support array textures");const y=4,S=4,w=c+3&-4,b=u+3&-4,x=new Array(h);let E=c*u;o===0&&(E=w*b);let I;if(o!==0?EV[o]?I=EV[o]*C6e[s]:I=T6e[o]:I=sT[a],I===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");const A=n?R6e(r,v,i):null;let O=E*I,D=c,N=u,H=w,G=b,z=M5+v;for(let L=0;L1||o!==0?D:H,levelHeight:g>1||o!==0?N:G,levelBuffer:new Uint8Array(t,j,O)},j+=O}z+=F+4,z=z%4!==0?z+4-z%4:z,D=D>>1||1,N=N>>1||1,H=D+y-1&~(y-1),G=N+S-1&~(S-1),O=H*G*I}return o!==0?{uncompressed:x.map(L=>{let F=L[0].levelBuffer,j=!1;return o===Ot.FLOAT?F=new Float32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4):o===Ot.UNSIGNED_INT?(j=!0,F=new Uint32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4)):o===Ot.INT&&(j=!0,F=new Int32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4)),{resource:new Kw(F,{width:L[0].levelWidth,height:L[0].levelHeight}),type:o,format:j?I6e(s):s}}),kvData:A}:{compressed:x.map(L=>new Ip(null,{format:a,width:c,height:u,levels:g,levelBuffers:L})),kvData:A}}function A6e(e,t){for(let n=0;nt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}let c=0;for(;c{const c=new Vt(a,{mipmap:fc.OFF,alphaMode:Ml.NO_PREMULTIPLIED_ALPHA,resolution:sf(e),...t.data});return DA(c,n,e)});return s.length===1?s[0]:s},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};wt.add(P6e);const O6e={extension:{type:ot.LoadParser,priority:bc.High},name:"loadKTX",test(e){return hm(e,".ktx")},async load(e,t,n){const i=await(await nt.ADAPTER.fetch(e)).arrayBuffer(),{compressed:o,uncompressed:s,kvData:a}=k6e(e,i),c=o??s,u={mipmap:fc.OFF,alphaMode:Ml.NO_PREMULTIPLIED_ALPHA,resolution:sf(e),...t.data},f=c.map(h=>{c===s&&Object.assign(u,{type:h.type,format:h.format});const p=new Vt(h,u);return p.ktxKeyValueData=a,DA(p,n,e)});return f.length===1?f[0]:f},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};wt.add(O6e);const M6e={extension:ot.ResolveParser,test:e=>{const n=e.split("?")[0].split(".").pop();return["basis","ktx","dds"].includes(n)},parse:e=>{var r,i;if(e.split("?")[0].split(".").pop()==="ktx"){const o=[".s3tc.ktx",".s3tc_sRGB.ktx",".etc.ktx",".etc1.ktx",".pvrt.ktx",".atc.ktx",".astc.ktx"];if(o.some(s=>e.endsWith(s)))return{resolution:parseFloat(((r=nt.RETINA_PREFIX.exec(e))==null?void 0:r[1])??"1"),format:o.find(s=>e.endsWith(s)),src:e}}return{resolution:parseFloat(((i=nt.RETINA_PREFIX.exec(e))==null?void 0:i[1])??"1"),format:e.split(".").pop(),src:e}}};wt.add(M6e);const L6e=new Zt,D6e=4,mx=class{constructor(e){this.renderer=e}async image(e,t,n){const r=new Image;return r.src=await this.base64(e,t,n),r}async base64(e,t,n){const r=this.canvas(e);if(r.toBlob!==void 0)return new Promise((i,o)=>{r.toBlob(s=>{if(!s){o(new Error("ICanvas.toBlob failed!"));return}const a=new FileReader;a.onload=()=>i(a.result),a.onerror=o,a.readAsDataURL(s)},t,n)});if(r.toDataURL!==void 0)return r.toDataURL(t,n);if(r.convertToBlob!==void 0){const i=await r.convertToBlob({type:t,quality:n});return new Promise((o,s)=>{const a=new FileReader;a.onload=()=>o(a.result),a.onerror=s,a.readAsDataURL(i)})}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}canvas(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);o&&mx._flipY(n,r,i),mx._unpremultiplyAlpha(n);const s=new K4e(r,i,1),a=new ImageData(new Uint8ClampedArray(n.buffer),r,i);return s.context.putImageData(a,0,0),s.canvas}pixels(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);return o&&mx._flipY(n,r,i),mx._unpremultiplyAlpha(n),n}_rawPixels(e,t){const n=this.renderer;if(!n)throw new Error("The Extract has already been destroyed");let r,i=!1,o,s=!1;if(e&&(e instanceof dm?o=e:(o=n.generateTexture(e,{resolution:n.resolution,multisample:n.multisample}),s=!0)),o){if(r=o.baseTexture.resolution,t=t??o.frame,i=!1,!s){n.renderTexture.bind(o);const h=o.framebuffer.glFramebuffers[n.CONTEXT_UID];h.blitFramebuffer&&n.framebuffer.bind(h.blitFramebuffer)}}else r=n.resolution,t||(t=L6e,t.width=n.width/r,t.height=n.height/r),i=!0,n.renderTexture.bind();const a=Math.round(t.width*r),c=Math.round(t.height*r),u=new Uint8Array(D6e*a*c),f=n.gl;return f.readPixels(Math.round(t.x*r),Math.round(t.y*r),a,c,f.RGBA,f.UNSIGNED_BYTE,u),s&&(o==null||o.destroy(!0)),{pixels:u,width:a,height:c,flipY:i}}destroy(){this.renderer=null}static _flipY(e,t,n){const r=t<<2,i=n>>1,o=new Uint8Array(r);for(let s=0;s=0&&a>=0&&i>=0&&o>=0)){t.length=0;return}const c=Math.ceil(2.3*Math.sqrt(s+a)),u=c*8+(i?4:0)+(o?4:0);if(t.length=u,u===0)return;if(c===0){t.length=8,t[0]=t[6]=n+i,t[1]=t[3]=r+o,t[2]=t[4]=n-i,t[5]=t[7]=r-o;return}let f=0,h=c*4+(i?2:0)+2,p=h,g=u;{const v=i+s,y=o,S=n+v,w=n-v,b=r+y;if(t[f++]=S,t[f++]=b,t[--h]=b,t[--h]=w,o){const x=r-y;t[p++]=w,t[p++]=x,t[--g]=x,t[--g]=S}}for(let v=1;v0||t&&r<=0){const i=n/2;for(let o=i+i%2;o=6){CV(n,!1);const s=[];for(let u=0;u=0&&o>=0&&s.push(n,r,n+i,r,n+i,r+o,n,r+o)},triangulate(e,t){const n=e.points,r=t.points;if(n.length===0)return;const i=r.length/2;r.push(n[0],n[1],n[2],n[3],n[6],n[7],n[4],n[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},B6e={build(e){aT.build(e)},triangulate(e,t){aT.triangulate(e,t)}};var al=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(al||{}),vp=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(vp||{});const dv={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let n=Math.ceil(e/this.maxLength);return nthis.maxSegments&&(n=this.maxSegments),n}};class TV{static curveTo(t,n,r,i,o,s){const a=s[s.length-2],u=s[s.length-1]-n,f=a-t,h=i-n,p=r-t,g=Math.abs(u*p-f*h);if(g<1e-8||o===0)return(s[s.length-2]!==t||s[s.length-1]!==n)&&s.push(t,n),null;const v=u*u+f*f,y=h*h+p*p,S=u*h+f*p,w=o*Math.sqrt(v)/g,b=o*Math.sqrt(y)/g,x=w*S/v,E=b*S/y,I=w*p+b*f,A=w*h+b*u,k=f*(b+x),O=u*(b+x),D=p*(w+E),N=h*(w+E),H=Math.atan2(O-A,k-I),G=Math.atan2(N-A,D-I);return{cx:I+t,cy:A+n,radius:o,startAngle:H,endAngle:G,anticlockwise:f*h>p*u}}static arc(t,n,r,i,o,s,a,c,u){const f=a-s,h=dv._segmentsCount(Math.abs(f)*o,Math.ceil(Math.abs(f)/nT)*40),p=f/(h*2),g=p*2,v=Math.cos(p),y=Math.sin(p),S=h-1,w=S%1/S;for(let b=0;b<=S;++b){const x=b+w*b,E=p+s+g*x,I=Math.cos(E),A=-Math.sin(E);u.push((v*I+y*A)*o+r,(v*-A+y*I)*o+i)}}}class $6e{constructor(){this.reset()}begin(t,n,r){this.reset(),this.style=t,this.start=n,this.attribStart=r}end(t,n){this.attribSize=n-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class TU{static curveLength(t,n,r,i,o,s,a,c){let f=0,h=0,p=0,g=0,v=0,y=0,S=0,w=0,b=0,x=0,E=0,I=t,A=n;for(let k=1;k<=10;++k)h=k/10,p=h*h,g=p*h,v=1-h,y=v*v,S=y*v,w=S*t+3*y*h*r+3*v*p*o+g*a,b=S*n+3*y*h*i+3*v*p*s+g*c,x=I-w,E=A-b,I=w,A=b,f+=Math.sqrt(x*x+E*E);return f}static curveTo(t,n,r,i,o,s,a){const c=a[a.length-2],u=a[a.length-1];a.length-=2;const f=dv._segmentsCount(TU.curveLength(c,u,t,n,r,i,o,s));let h=0,p=0,g=0,v=0,y=0;a.push(c,u);for(let S=1,w=0;S<=f;++S)w=S/f,h=1-w,p=h*h,g=p*h,v=w*w,y=v*w,a.push(g*c+3*p*w*t+3*h*v*r+y*o,g*u+3*p*w*n+3*h*v*i+y*s)}}function kV(e,t,n,r,i,o,s,a){const c=e-n*i,u=t-r*i,f=e+n*o,h=t+r*o;let p,g;s?(p=r,g=-n):(p=-r,g=n);const v=c+p,y=u+g,S=f+p,w=h+g;return a.push(v,y,S,w),2}function Gh(e,t,n,r,i,o,s,a){const c=n-e,u=r-t;let f=Math.atan2(c,u),h=Math.atan2(i-e,o-t);a&&fh&&(h+=Math.PI*2);let p=f;const g=h-f,v=Math.abs(g),y=Math.sqrt(c*c+u*u),S=(15*v*Math.sqrt(y)/Math.PI>>0)+1,w=g/S;if(p+=w,a){s.push(e,t,n,r);for(let b=1,x=p;b=0&&(o.join===al.ROUND?p+=Gh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+4:p+=2,f.push(x-D*L,E-N*L,x+D*z,E+N*z));continue}const se=(-k+w)*(-O+E)-(-k+x)*(-O+b),J=(-D+I)*(-N+E)-(-D+x)*(-N+A),ae=(W*J-X*se)/ce,le=(Q*se-K*J)/ce,he=(ae-x)*(ae-x)+(le-E)*(le-E),pe=x+(ae-x)*z,ve=E+(le-E)*z,ye=x-(ae-x)*L,xe=E-(le-E)*L,me=Math.min(W*W+K*K,X*X+Q*Q),be=ue?z:L,Ze=me+be*be*y,Xe=he<=Ze;let ct=o.join;if(ct===al.MITER&&he/y>S&&(ct=al.BEVEL),Xe)switch(ct){case al.MITER:{f.push(pe,ve,ye,xe);break}case al.BEVEL:{ue?f.push(pe,ve,x+k*L,E+O*L,pe,ve,x+D*L,E+N*L):f.push(x-k*z,E-O*z,ye,xe,x-D*z,E-N*z,ye,xe),p+=2;break}case al.ROUND:{ue?(f.push(pe,ve,x+k*L,E+O*L),p+=Gh(x,E,x+k*L,E+O*L,x+D*L,E+N*L,f,!0)+4,f.push(pe,ve,x+D*L,E+N*L)):(f.push(x-k*z,E-O*z,ye,xe),p+=Gh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+4,f.push(x-D*z,E-N*z,ye,xe));break}}else{switch(f.push(x-k*z,E-O*z,x+k*L,E+O*L),ct){case al.MITER:{ue?f.push(ye,xe,ye,xe):f.push(pe,ve,pe,ve),p+=2;break}case al.ROUND:{ue?p+=Gh(x,E,x+k*L,E+O*L,x+D*L,E+N*L,f,!0)+2:p+=Gh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+2;break}}f.push(x-D*z,E-N*z,x+D*L,E+N*L),p+=2}}w=r[(h-2)*2],b=r[(h-2)*2+1],x=r[(h-1)*2],E=r[(h-1)*2+1],k=-(b-E),O=w-x,H=Math.sqrt(k*k+O*O),k/=H,O/=H,k*=v,O*=v,f.push(x-k*z,E-O*z,x+k*L,E+O*L),c||(o.cap===vp.ROUND?p+=Gh(x-k*(z-L)*.5,E-O*(z-L)*.5,x-k*z,E-O*z,x+k*L,E+O*L,f,!1)+2:o.cap===vp.SQUARE&&(p+=kV(x,E,k,O,z,L,!1,f)));const F=t.indices,j=dv.epsilon*dv.epsilon;for(let V=g;V0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,n=null,r=null){const i=new lT(e,t,n,r);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const n=new lT(e,null,null,t),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this}destroy(){super.destroy();for(let e=0;e0&&(n=this.batches[this.batches.length-1],r=n.style);for(let a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&s===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=s?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e65535*2)return!1;const e=this.batches;for(let t=0;t0&&(r=PS.pop(),r||(r=new x5,r.texArray=new _5),this.drawCalls.push(r)),r.start=u,r.size=0,r.texArray.count=0,r.type=c),v.touched=1,v._batchEnabled=e,v._batchLocation=i,v.wrapMode=Qd.REPEAT,r.texArray.elements[r.texArray.count++]=v,i++)),r.size+=h.size,u+=h.size,s=v._batchLocation,this.addColors(t,g.color,g.alpha,h.attribSize,h.attribStart),this.addTextureIds(n,s,h.attribSize,h.attribStart)}Vt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,n=this.colors,r=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),s=new Uint32Array(i);let a=0;for(let c=0;c0&&e.alpha>0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:n},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new Ig,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new Ig,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const n=this.currentPath.points,r=n[n.length-2],i=n[n.length-1];return(r!==e||i!==t)&&n.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,n,r){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),kU.curveTo(e,t,n,r,i),this}bezierCurveTo(e,t,n,r,i,o){return this._initCurve(),TU.curveTo(e,t,n,r,i,o,this.currentPath.points),this}arcTo(e,t,n,r,i){this._initCurve(e,t);const o=this.currentPath.points,s=TV.curveTo(e,t,n,r,i,o);if(s){const{cx:a,cy:c,radius:u,startAngle:f,endAngle:h,anticlockwise:p}=s;this.arc(a,c,u,f,h,p)}return this}arc(e,t,n,r,i,o=!1){if(r===i)return this;if(!o&&i<=r?i+=nT:o&&r<=i&&(r+=nT),i-r===0)return this;const a=e+Math.cos(r)*n,c=t+Math.sin(r)*n,u=this._geometry.closePointEps;let f=this.currentPath?this.currentPath.points:null;if(f){const h=Math.abs(f[f.length-2]-a),p=Math.abs(f[f.length-1]-c);h0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:n},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,n,r){return this.drawShape(new Zt(e,t,n,r))}drawRoundedRect(e,t,n,r,i){return this.drawShape(new _U(e,t,n,r,i))}drawCircle(e,t,n){return this.drawShape(new xU(e,t,n))}drawEllipse(e,t,n,r){return this.drawShape(new wU(e,t,n,r))}drawPolygon(...e){let t,n=!0;const r=e[0];r.points?(n=r.closeStroke,t=r.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new Ig(t);return i.closeStroke=n,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Qi.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,n=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(e.points);for(let r=0;rr&&!t.autoResize&&(s=r);let a=t._buffers;a||(a=t._buffers=this.generateBuffers(t));const c=n[0]._texture.baseTexture,u=c.alphaMode>0;this.state.blendMode=zne(t.blendMode,u),o.state.set(this.state);const f=o.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(o.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=Vn.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,u).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let p=!1;for(let g=0,v=0;gi&&(y=i),v>=a.length&&a.push(this._generateOneMoreBuffer(t));const S=a[v];S.uploadDynamic(n,g,y);const w=t._bufferUpdateIDs[v]||0;p=p||S._updateID0);i[s]=u,i[s+o]=u,i[s+o*2]=u,i[s+o*3]=u,s+=o*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}Fre.extension={name:"particle",type:ot.RendererPlugin};wt.add(Fre);var BA=(e=>(e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",e))(BA||{});const PS={willReadFrequently:!0},yt=class{static get experimentalLetterSpacingSupported(){let e=yt._experimentalLetterSpacingSupported;if(e!==void 0){const t=nt.ADAPTER.getCanvasRenderingContext2D().prototype;e=yt._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,r,i,o,s,a,c){this.text=e,this.style=t,this.width=n,this.height=r,this.lines=i,this.lineWidths=o,this.lineHeight=s,this.maxLineWidth=a,this.fontProperties=c}static measureText(e,t,n,r=yt._canvas){n=n??t.wordWrap;const i=t.toFontString(),o=yt.measureFont(i);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const s=r.getContext("2d",PS);s.font=i;const c=(n?yt.wordWrap(e,t,r):e).split(/(?:\r\n|\r|\n)/),u=new Array(c.length);let f=0;for(let v=0;v0&&(r?i-=t:i+=(yt.graphemeSegmenter(e).length-1)*t),i}static wordWrap(e,t,n=yt._canvas){const r=n.getContext("2d",PS);let i=0,o="",s="";const a=Object.create(null),{letterSpacing:c,whiteSpace:u}=t,f=yt.collapseSpaces(u),h=yt.collapseNewlines(u);let p=!f;const g=t.wordWrapWidth+c,v=yt.tokenize(e);for(let y=0;yg)if(o!==""&&(s+=yt.addLine(o),o="",i=0),yt.canBreakWords(S,t.breakWords)){const b=yt.wordWrapSplit(S);for(let x=0;xg&&(s+=yt.addLine(o),p=!1,o="",i=0),o+=E,i+=k}}else{o.length>0&&(s+=yt.addLine(o),o="",i=0);const b=y===v.length-1;s+=yt.addLine(S,!b),p=!1,o="",i=0}else w+i>g&&(p=!1,s+=yt.addLine(o),o="",i=0),(o.length>0||!yt.isBreakingSpace(S)||p)&&(o+=S,i+=w)}return s+=yt.addLine(o,!1),s}static addLine(e,t=!0){return e=yt.trimRight(e),e=t?`${e} -`:e,e}static getFromCache(e,t,n,r){let i=n[e];return typeof i!="number"&&(i=yt._measureText(e,t,r)+t,n[e]=i),i}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!yt.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:yt._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:yt._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let r=0;rs;--h){for(let v=0;v{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const e=new Intl.Segmenter;return t=>[...e.segment(t)].map(n=>n.segment)}return e=>[...e]})();Ki.experimentalLetterSpacing=!1;Ki._fonts={};Ki._newlines=[10,13];Ki._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];const R6e=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],yx=class{constructor(e){this.styleID=0,this.reset(),u$(this,e,e)}clone(){const e={};return u$(e,this,yx.defaultStyle),new yx(e)}reset(){u$(this,yx.defaultStyle,yx.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=c$(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=c$(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){P6e(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}get leading(){return this._leading}set leading(e){this._leading!==e&&(this._leading=e,this.styleID++)}get lineJoin(){return this._lineJoin}set lineJoin(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}get padding(){return this._padding}set padding(e){this._padding!==e&&(this._padding=e,this.styleID++)}get stroke(){return this._stroke}set stroke(e){const t=c$(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}get strokeThickness(){return this._strokeThickness}set strokeThickness(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}get trim(){return this._trim}set trim(e){this._trim!==e&&(this._trim=e,this.styleID++)}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}toFontString(){const e=typeof this.fontSize=="number"?`${this.fontSize}px`:this.fontSize;let t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(let n=t.length-1;n>=0;n--){let r=t[n].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&!R6e.includes(r)&&(r=`"${r}"`),t[n]=r}return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${e} ${t.join(",")}`}};let Gu=yx;Gu.defaultStyle={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:BA.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};function c$(e){const t=Vn.shared;return Array.isArray(e)?e.map(n=>t.setValue(n).toHex()):t.setValue(e).toHex()}function P6e(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n0&&g>v&&(y=(v+g)/2);const S=v+h,w=n.lineHeight*(p+1);let b=S;p+10}}function L6e(e,t){var r;let n=!1;if((r=e==null?void 0:e._textures)!=null&&r.length){for(let i=0;i{this.queue&&this.prepareItems()},this.registerFindHook(F6e),this.registerFindHook(z6e),this.registerFindHook(L6e),this.registerFindHook(D6e),this.registerFindHook(N6e),this.registerUploadHook(B6e),this.registerUploadHook($6e)}upload(e){return new Promise(t=>{e&&this.add(e),this.queue.length?(this.completes.push(t),this.ticking||(this.ticking=!0,Si.system.addOnce(this.tick,this,qp.UTILITY))):t()})}tick(){setTimeout(this.delayedTick,0)}prepareItems(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){const e=this.queue[0];let t=!1;if(e&&!e._destroyed){for(let n=0,r=this.uploadHooks.length;n=0;t--)this.add(e.children[t]);return this}destroy(){this.ticking&&Si.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null}};let lT=zre;lT.uploadsPerFrame=4;Object.defineProperties(nt,{UPLOADS_PER_FRAME:{get(){return lT.uploadsPerFrame},set(e){fn("7.1.0","settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"),lT.uploadsPerFrame=e}}});function jre(e,t){return t instanceof Gt?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function j6e(e,t){if(!(t instanceof uv))return!1;const{geometry:n}=t;t.finishPoly(),n.updateBatches();const{batches:r}=n;for(let i=0;ir&&!t.autoResize&&(s=r);let a=t._buffers;a||(a=t._buffers=this.generateBuffers(t));const c=n[0]._texture.baseTexture,u=c.alphaMode>0;this.state.blendMode=Xne(t.blendMode,u),o.state.set(this.state);const f=o.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(o.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=Vn.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,u).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let p=!1;for(let g=0,v=0;gi&&(y=i),v>=a.length&&a.push(this._generateOneMoreBuffer(t));const S=a[v];S.uploadDynamic(n,g,y);const w=t._bufferUpdateIDs[v]||0;p=p||S._updateID0);i[s]=u,i[s+o]=u,i[s+o*2]=u,i[s+o*3]=u,s+=o*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}qre.extension={name:"particle",type:ot.RendererPlugin};wt.add(qre);var $A=(e=>(e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",e))($A||{});const OS={willReadFrequently:!0},yt=class{static get experimentalLetterSpacingSupported(){let e=yt._experimentalLetterSpacingSupported;if(e!==void 0){const t=nt.ADAPTER.getCanvasRenderingContext2D().prototype;e=yt._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,r,i,o,s,a,c){this.text=e,this.style=t,this.width=n,this.height=r,this.lines=i,this.lineWidths=o,this.lineHeight=s,this.maxLineWidth=a,this.fontProperties=c}static measureText(e,t,n,r=yt._canvas){n=n??t.wordWrap;const i=t.toFontString(),o=yt.measureFont(i);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const s=r.getContext("2d",OS);s.font=i;const c=(n?yt.wordWrap(e,t,r):e).split(/(?:\r\n|\r|\n)/),u=new Array(c.length);let f=0;for(let v=0;v0&&(r?i-=t:i+=(yt.graphemeSegmenter(e).length-1)*t),i}static wordWrap(e,t,n=yt._canvas){const r=n.getContext("2d",OS);let i=0,o="",s="";const a=Object.create(null),{letterSpacing:c,whiteSpace:u}=t,f=yt.collapseSpaces(u),h=yt.collapseNewlines(u);let p=!f;const g=t.wordWrapWidth+c,v=yt.tokenize(e);for(let y=0;yg)if(o!==""&&(s+=yt.addLine(o),o="",i=0),yt.canBreakWords(S,t.breakWords)){const b=yt.wordWrapSplit(S);for(let x=0;xg&&(s+=yt.addLine(o),p=!1,o="",i=0),o+=E,i+=k}}else{o.length>0&&(s+=yt.addLine(o),o="",i=0);const b=y===v.length-1;s+=yt.addLine(S,!b),p=!1,o="",i=0}else w+i>g&&(p=!1,s+=yt.addLine(o),o="",i=0),(o.length>0||!yt.isBreakingSpace(S)||p)&&(o+=S,i+=w)}return s+=yt.addLine(o,!1),s}static addLine(e,t=!0){return e=yt.trimRight(e),e=t?`${e} +`:e,e}static getFromCache(e,t,n,r){let i=n[e];return typeof i!="number"&&(i=yt._measureText(e,t,r)+t,n[e]=i),i}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!yt.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:yt._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:yt._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let r=0;rs;--h){for(let v=0;v{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const e=new Intl.Segmenter;return t=>[...e.segment(t)].map(n=>n.segment)}return e=>[...e]})();Ki.experimentalLetterSpacing=!1;Ki._fonts={};Ki._newlines=[10,13];Ki._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];const q6e=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],gx=class{constructor(e){this.styleID=0,this.reset(),d$(this,e,e)}clone(){const e={};return d$(e,this,gx.defaultStyle),new gx(e)}reset(){d$(this,gx.defaultStyle,gx.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=u$(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=u$(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){X6e(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}get leading(){return this._leading}set leading(e){this._leading!==e&&(this._leading=e,this.styleID++)}get lineJoin(){return this._lineJoin}set lineJoin(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}get padding(){return this._padding}set padding(e){this._padding!==e&&(this._padding=e,this.styleID++)}get stroke(){return this._stroke}set stroke(e){const t=u$(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}get strokeThickness(){return this._strokeThickness}set strokeThickness(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}get trim(){return this._trim}set trim(e){this._trim!==e&&(this._trim=e,this.styleID++)}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}toFontString(){const e=typeof this.fontSize=="number"?`${this.fontSize}px`:this.fontSize;let t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(let n=t.length-1;n>=0;n--){let r=t[n].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&!q6e.includes(r)&&(r=`"${r}"`),t[n]=r}return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${e} ${t.join(",")}`}};let Gu=gx;Gu.defaultStyle={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:$A.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};function u$(e){const t=Vn.shared;return Array.isArray(e)?e.map(n=>t.setValue(n).toHex()):t.setValue(e).toHex()}function X6e(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n0&&g>v&&(y=(v+g)/2);const S=v+h,w=n.lineHeight*(p+1);let b=S;p+10}}function Q6e(e,t){var r;let n=!1;if((r=e==null?void 0:e._textures)!=null&&r.length){for(let i=0;i{this.queue&&this.prepareItems()},this.registerFindHook(n8e),this.registerFindHook(r8e),this.registerFindHook(Q6e),this.registerFindHook(J6e),this.registerFindHook(Z6e),this.registerUploadHook(e8e),this.registerUploadHook(t8e)}upload(e){return new Promise(t=>{e&&this.add(e),this.queue.length?(this.completes.push(t),this.ticking||(this.ticking=!0,Si.system.addOnce(this.tick,this,Kp.UTILITY))):t()})}tick(){setTimeout(this.delayedTick,0)}prepareItems(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){const e=this.queue[0];let t=!1;if(e&&!e._destroyed){for(let n=0,r=this.uploadHooks.length;n=0;t--)this.add(e.children[t]);return this}destroy(){this.ticking&&Si.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null}};let cT=Xre;cT.uploadsPerFrame=4;Object.defineProperties(nt,{UPLOADS_PER_FRAME:{get(){return cT.uploadsPerFrame},set(e){fn("7.1.0","settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"),cT.uploadsPerFrame=e}}});function Yre(e,t){return t instanceof Vt?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function i8e(e,t){if(!(t instanceof fv))return!1;const{geometry:n}=t;t.finishPoly(),n.updateBatches();const{batches:r}=n;for(let i=0;i1?ac.from(W6e,H6e,n):ac.from(kV,G6e,n)}render(t){const n=this.renderer,r=this.quad;let i=r.vertices;i[0]=i[6]=t._width*-t.anchor.x,i[1]=i[3]=t._height*-t.anchor.y,i[2]=i[4]=t._width*(1-t.anchor.x),i[5]=i[7]=t._height*(1-t.anchor.y);const o=t.uvRespectAnchor?t.anchor.x:0,s=t.uvRespectAnchor?t.anchor.y:0;i=r.uvs,i[0]=i[6]=-o,i[1]=i[3]=-s,i[2]=i[4]=1-o,i[5]=i[7]=1-s,r.invalidate();const a=t._texture,c=a.baseTexture,u=c.alphaMode>0,f=t.tileTransform.localTransform,h=t.uvMatrix;let p=c.isPowerOfTwo&&a.frame.width===c.width&&a.frame.height===c.height;p&&(c._glTextures[n.CONTEXT_UID]?p=c.wrapMode!==Qd.CLAMP:c.wrapMode===Qd.CLAMP&&(c.wrapMode=Qd.REPEAT));const g=p?this.simpleShader:this.shader,v=a.width,y=a.height,S=t._width,w=t._height;OS.set(f.a*v/S,f.b*v/w,f.c*y/S,f.d*y/w,f.tx/S,f.ty/w),OS.invert(),p?OS.prepend(h.mapCoord):(g.uniforms.uMapCoord=h.mapCoord.toArray(!0),g.uniforms.uClampFrame=h.uClampFrame,g.uniforms.uClampOffset=h.uClampOffset),g.uniforms.uTransform=OS.toArray(!0),g.uniforms.uColor=Vn.shared.setValue(t.tint).premultiply(t.worldAlpha,u).toArray(g.uniforms.uColor),g.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),g.uniforms.uSampler=a,n.shader.bind(g),n.geometry.bind(r),this.state.blendMode=zne(t.blendMode,u),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}Hre.extension={name:"tilingSprite",type:ot.RendererPlugin};wt.add(Hre);const bx=class{constructor(e,t,n=null){this.linkedSheets=[],this._texture=e instanceof pt?e:null,this.baseTexture=e instanceof Gt?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;const r=this.baseTexture.resource;this.resolution=this._updateResolution(n||(r?r.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let n=sf(e,null);return n===null&&(n=parseFloat(t??"1")),n!==1&&this.baseTexture.setResolution(n),n}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=bx.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=bx.BATCH_SIZE;for(;t-e{this._batchIndex*bx.BATCH_SIZE{r[i]=t}),Object.keys(t.textures).forEach(i=>{r[i]=t.textures[i]}),!n){const i=vo.dirname(e[0]);t.linkedSheets.forEach((o,s)=>{const a=Wre([`${i}/${t.data.meta.related_multi_packs[s]}`],o,!0);Object.assign(r,a)})}return r}const X6e={extension:ot.Asset,cache:{test:e=>e instanceof D5,getCacheableAssets:(e,t)=>Wre(e,t,!1)},resolver:{test:e=>{const n=e.split("?")[0].split("."),r=n.pop(),i=n.pop();return r==="json"&&q6e.includes(i)},parse:e=>{var n;const t=e.split(".");return{resolution:parseFloat(((n=nt.RETINA_PREFIX.exec(e))==null?void 0:n[1])??"1"),format:t[t.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:ot.LoadParser,priority:yc.Normal},async testParse(e,t){return vo.extname(t.src).toLowerCase()===".json"&&!!e.frames},async parse(e,t,n){var u,f;let r=vo.dirname(t.src);r&&r.lastIndexOf("/")!==r.length-1&&(r+="/");let i=r+e.meta.image;i=P5(i,t.src);const s=(await n.load([i]))[i],a=new D5(s.baseTexture,e,t.src);await a.parse();const c=(u=e==null?void 0:e.meta)==null?void 0:u.related_multi_packs;if(Array.isArray(c)){const h=[];for(const g of c){if(typeof g!="string")continue;let v=r+g;(f=t.data)!=null&&f.ignoreMultiPack||(v=P5(v,t.src),h.push(n.load({src:v,data:{ignoreMultiPack:!0}})))}const p=await Promise.all(h);a.linkedSheets=p,p.forEach(g=>{g.linkedSheets=[a].concat(a.linkedSheets.filter(v=>v!==g))})}return a},unload(e){e.destroy(!0)}}};wt.add(X6e);class cT{constructor(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}}class RE{static test(t){return typeof t=="string"&&t.startsWith("info face=")}static parse(t){const n=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const o in n){const s=n[o].match(/^[a-z]+/gm)[0],a=n[o].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),c={};for(const u in a){const f=a[u].split("="),h=f[0],p=f[1].replace(/"/gm,""),g=parseFloat(p),v=isNaN(g)?p:g;c[h]=v}r[s].push(c)}const i=new cT;return r.info.forEach(o=>i.info.push({face:o.face,size:parseInt(o.size,10)})),r.common.forEach(o=>i.common.push({lineHeight:parseInt(o.lineHeight,10)})),r.page.forEach(o=>i.page.push({id:parseInt(o.id,10),file:o.file})),r.char.forEach(o=>i.char.push({id:parseInt(o.id,10),page:parseInt(o.page,10),x:parseInt(o.x,10),y:parseInt(o.y,10),width:parseInt(o.width,10),height:parseInt(o.height,10),xoffset:parseInt(o.xoffset,10),yoffset:parseInt(o.yoffset,10),xadvance:parseInt(o.xadvance,10)})),r.kerning.forEach(o=>i.kerning.push({first:parseInt(o.first,10),second:parseInt(o.second,10),amount:parseInt(o.amount,10)})),r.distanceField.forEach(o=>i.distanceField.push({distanceRange:parseInt(o.distanceRange,10),fieldType:o.fieldType})),i}}class N5{static test(t){const n=t;return"getElementsByTagName"in n&&n.getElementsByTagName("page").length&&n.getElementsByTagName("info")[0].getAttribute("face")!==null}static parse(t){const n=new cT,r=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),a=t.getElementsByTagName("kerning"),c=t.getElementsByTagName("distanceField");for(let u=0;u")?N5.test(nt.ADAPTER.parseXML(t)):!1}static parse(t){return N5.parse(nt.ADAPTER.parseXML(t))}}const d$=[RE,N5,B5];function Y6e(e){for(let t=0;t=a-D*o){if(v===0)throw new Error(`[BitmapFont] textureHeight ${a}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${A}')`);--I,y=null,S=null,w=null,v=0,g=0,b=0;continue}if(b=Math.max(D+k.fontProperties.descent,b),N*o+g>=h){if(g===0)throw new Error(`[BitmapFont] textureWidth ${s}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${A}')`);--I,v+=b*o,v=Math.ceil(v),g=0,b=0;continue}Q6e(y,S,k,g,v,o,f);const H=PE(k.text);p.char.push({id:H,page:x.length-1,x:g/o,y:v/o,width:N,height:D,xoffset:0,yoffset:0,xadvance:O-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0)}),g+=(N+2*i)*o,g=Math.ceil(g)}for(let I=0,A=u.length;I1?ac.from(a8e,s8e,n):ac.from(MV,l8e,n)}render(t){const n=this.renderer,r=this.quad;let i=r.vertices;i[0]=i[6]=t._width*-t.anchor.x,i[1]=i[3]=t._height*-t.anchor.y,i[2]=i[4]=t._width*(1-t.anchor.x),i[5]=i[7]=t._height*(1-t.anchor.y);const o=t.uvRespectAnchor?t.anchor.x:0,s=t.uvRespectAnchor?t.anchor.y:0;i=r.uvs,i[0]=i[6]=-o,i[1]=i[3]=-s,i[2]=i[4]=1-o,i[5]=i[7]=1-s,r.invalidate();const a=t._texture,c=a.baseTexture,u=c.alphaMode>0,f=t.tileTransform.localTransform,h=t.uvMatrix;let p=c.isPowerOfTwo&&a.frame.width===c.width&&a.frame.height===c.height;p&&(c._glTextures[n.CONTEXT_UID]?p=c.wrapMode!==Qd.CLAMP:c.wrapMode===Qd.CLAMP&&(c.wrapMode=Qd.REPEAT));const g=p?this.simpleShader:this.shader,v=a.width,y=a.height,S=t._width,w=t._height;MS.set(f.a*v/S,f.b*v/w,f.c*y/S,f.d*y/w,f.tx/S,f.ty/w),MS.invert(),p?MS.prepend(h.mapCoord):(g.uniforms.uMapCoord=h.mapCoord.toArray(!0),g.uniforms.uClampFrame=h.uClampFrame,g.uniforms.uClampOffset=h.uClampOffset),g.uniforms.uTransform=MS.toArray(!0),g.uniforms.uColor=Vn.shared.setValue(t.tint).premultiply(t.worldAlpha,u).toArray(g.uniforms.uColor),g.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),g.uniforms.uSampler=a,n.shader.bind(g),n.geometry.bind(r),this.state.blendMode=Xne(t.blendMode,u),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}Qre.extension={name:"tilingSprite",type:ot.RendererPlugin};wt.add(Qre);const vx=class{constructor(e,t,n=null){this.linkedSheets=[],this._texture=e instanceof mt?e:null,this.baseTexture=e instanceof Vt?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;const r=this.baseTexture.resource;this.resolution=this._updateResolution(n||(r?r.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let n=sf(e,null);return n===null&&(n=parseFloat(t??"1")),n!==1&&this.baseTexture.setResolution(n),n}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=vx.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=vx.BATCH_SIZE;for(;t-e{this._batchIndex*vx.BATCH_SIZE{r[i]=t}),Object.keys(t.textures).forEach(i=>{r[i]=t.textures[i]}),!n){const i=vo.dirname(e[0]);t.linkedSheets.forEach((o,s)=>{const a=Jre([`${i}/${t.data.meta.related_multi_packs[s]}`],o,!0);Object.assign(r,a)})}return r}const d8e={extension:ot.Asset,cache:{test:e=>e instanceof N5,getCacheableAssets:(e,t)=>Jre(e,t,!1)},resolver:{test:e=>{const n=e.split("?")[0].split("."),r=n.pop(),i=n.pop();return r==="json"&&u8e.includes(i)},parse:e=>{var n;const t=e.split(".");return{resolution:parseFloat(((n=nt.RETINA_PREFIX.exec(e))==null?void 0:n[1])??"1"),format:t[t.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:ot.LoadParser,priority:bc.Normal},async testParse(e,t){return vo.extname(t.src).toLowerCase()===".json"&&!!e.frames},async parse(e,t,n){var u,f;let r=vo.dirname(t.src);r&&r.lastIndexOf("/")!==r.length-1&&(r+="/");let i=r+e.meta.image;i=O5(i,t.src);const s=(await n.load([i]))[i],a=new N5(s.baseTexture,e,t.src);await a.parse();const c=(u=e==null?void 0:e.meta)==null?void 0:u.related_multi_packs;if(Array.isArray(c)){const h=[];for(const g of c){if(typeof g!="string")continue;let v=r+g;(f=t.data)!=null&&f.ignoreMultiPack||(v=O5(v,t.src),h.push(n.load({src:v,data:{ignoreMultiPack:!0}})))}const p=await Promise.all(h);a.linkedSheets=p,p.forEach(g=>{g.linkedSheets=[a].concat(a.linkedSheets.filter(v=>v!==g))})}return a},unload(e){e.destroy(!0)}}};wt.add(d8e);class uT{constructor(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}}class OE{static test(t){return typeof t=="string"&&t.startsWith("info face=")}static parse(t){const n=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const o in n){const s=n[o].match(/^[a-z]+/gm)[0],a=n[o].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),c={};for(const u in a){const f=a[u].split("="),h=f[0],p=f[1].replace(/"/gm,""),g=parseFloat(p),v=isNaN(g)?p:g;c[h]=v}r[s].push(c)}const i=new uT;return r.info.forEach(o=>i.info.push({face:o.face,size:parseInt(o.size,10)})),r.common.forEach(o=>i.common.push({lineHeight:parseInt(o.lineHeight,10)})),r.page.forEach(o=>i.page.push({id:parseInt(o.id,10),file:o.file})),r.char.forEach(o=>i.char.push({id:parseInt(o.id,10),page:parseInt(o.page,10),x:parseInt(o.x,10),y:parseInt(o.y,10),width:parseInt(o.width,10),height:parseInt(o.height,10),xoffset:parseInt(o.xoffset,10),yoffset:parseInt(o.yoffset,10),xadvance:parseInt(o.xadvance,10)})),r.kerning.forEach(o=>i.kerning.push({first:parseInt(o.first,10),second:parseInt(o.second,10),amount:parseInt(o.amount,10)})),r.distanceField.forEach(o=>i.distanceField.push({distanceRange:parseInt(o.distanceRange,10),fieldType:o.fieldType})),i}}class B5{static test(t){const n=t;return"getElementsByTagName"in n&&n.getElementsByTagName("page").length&&n.getElementsByTagName("info")[0].getAttribute("face")!==null}static parse(t){const n=new uT,r=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),a=t.getElementsByTagName("kerning"),c=t.getElementsByTagName("distanceField");for(let u=0;u")?B5.test(nt.ADAPTER.parseXML(t)):!1}static parse(t){return B5.parse(nt.ADAPTER.parseXML(t))}}const f$=[OE,B5,$5];function f8e(e){for(let t=0;t=a-D*o){if(v===0)throw new Error(`[BitmapFont] textureHeight ${a}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${A}')`);--I,y=null,S=null,w=null,v=0,g=0,b=0;continue}if(b=Math.max(D+k.fontProperties.descent,b),N*o+g>=h){if(g===0)throw new Error(`[BitmapFont] textureWidth ${s}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${A}')`);--I,v+=b*o,v=Math.ceil(v),g=0,b=0;continue}p8e(y,S,k,g,v,o,f);const H=ME(k.text);p.char.push({id:H,page:x.length-1,x:g/o,y:v/o,width:N,height:D,xoffset:0,yoffset:0,xadvance:O-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0)}),g+=(N+2*i)*o,g=Math.ceil(g)}for(let I=0,A=u.length;I{this.dirty=!0},this,0,0),this._roundPixels=nt.ROUND_PIXELS,this.dirty=!0,this._resolution=nt.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var N;const e=qo.available[this._fontName],t=this.fontSize,n=t/e.size,r=new Lt,i=[],o=[],s=[],a=this._text.replace(/(?:\r\n|\r)/g,` -`)||" ",c=Gre(a),u=this._maxWidth*e.size/t,f=e.distanceFieldType==="none"?AV:IV;let h=null,p=0,g=0,v=0,y=-1,S=0,w=0,b=0,x=0;for(let H=0;H0&&r.x>u&&(++w,Cg(i,1+y-w,1+H-y),H=y,y=-1,o.push(S),s.push(i.length>0?i[i.length-1].prevSpaces:0),g=Math.max(g,S),v++,r.x=0,r.y+=e.lineHeight,h=null,x=0)}const E=c[c.length-1];E!=="\r"&&E!==` -`&&(/(?:\s)/.test(E)&&(p=S),o.push(p),g=Math.max(g,p),s.push(-1));const I=[];for(let H=0;H<=v;H++){let G=0;this._align==="right"?G=g-o[H]:this._align==="center"?G=(g-o[H])/2:this._align==="justify"&&(G=s[H]<0?0:(g-o[H])/s[H]),I.push(G)}const A=i.length,k={},O=[],D=this._activePagesMeshData;f.push(...D);for(let H=0;H6*z)||G.vertices.lengtht[i.mesh.texture.baseTexture.uid]).forEach(i=>{i.mesh.texture=pt.EMPTY});for(const i in t)t[i].destroy(),delete t[i];this._font=null,this._tintColor=null,this._textureCache=null,super.destroy(e)}};let t8e=Vre;t8e.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0};const n8e=[".xml",".fnt"],r8e={extension:{type:ot.LoadParser,priority:yc.Normal},name:"loadBitmapFont",test(e){return n8e.includes(vo.extname(e).toLowerCase())},async testParse(e){return RE.test(e)||B5.test(e)},async parse(e,t,n){const r=RE.test(e)?RE.parse(e):B5.parse(e),{src:i}=t,{page:o}=r,s=[];for(let u=0;ua[u]);return qo.install(r,c,!0)},async load(e,t){return(await nt.ADAPTER.fetch(e)).text()},unload(e){e.destroy()}};wt.add(r8e);const Nm=class extends Gu{constructor(){super(...arguments),this._fonts=[],this._overrides=[],this._stylesheet="",this.fontsDirty=!1}static from(e){return new Nm(Object.keys(Nm.defaultOptions).reduce((t,n)=>({...t,[n]:e[n]}),{}))}cleanFonts(){this._fonts.length>0&&(this._fonts.forEach(e=>{URL.revokeObjectURL(e.src),e.refs--,e.refs===0&&(e.fontFace&&document.fonts.delete(e.fontFace),delete Nm.availableFonts[e.originalUrl])}),this.fontFamily="Arial",this._fonts.length=0,this.styleID++,this.fontsDirty=!0)}loadFont(e,t={}){const{availableFonts:n}=Nm;if(n[e]){const r=n[e];return this._fonts.push(r),r.refs++,this.styleID++,this.fontsDirty=!0,Promise.resolve()}return nt.ADAPTER.fetch(e).then(r=>r.blob()).then(async r=>new Promise((i,o)=>{const s=URL.createObjectURL(r),a=new FileReader;a.onload=()=>i([s,a.result]),a.onerror=o,a.readAsDataURL(r)})).then(async([r,i])=>{const o=Object.assign({family:vo.basename(e,vo.extname(e)),weight:"normal",style:"normal",src:r,dataSrc:i,refs:1,originalUrl:e,fontFace:null},t);n[e]=o,this._fonts.push(o),this.styleID++;const s=new FontFace(o.family,`url(${o.src})`,{weight:o.weight,style:o.style});o.fontFace=s,await s.load(),document.fonts.add(s),await document.fonts.ready,this.styleID++,this.fontsDirty=!0})}addOverride(...e){const t=e.filter(n=>!this._overrides.includes(n));t.length>0&&(this._overrides.push(...t),this.styleID++)}removeOverride(...e){const t=e.filter(n=>this._overrides.includes(n));t.length>0&&(this._overrides=this._overrides.filter(n=>!t.includes(n)),this.styleID++)}toCSS(e){return[`transform: scale(${e})`,"transform-origin: top left","display: inline-block",`color: ${this.normalizeColor(this.fill)}`,`font-size: ${this.fontSize}px`,`font-family: ${this.fontFamily}`,`font-weight: ${this.fontWeight}`,`font-style: ${this.fontStyle}`,`font-variant: ${this.fontVariant}`,`letter-spacing: ${this.letterSpacing}px`,`text-align: ${this.align}`,`padding: ${this.padding}px`,`white-space: ${this.whiteSpace}`,...this.lineHeight?[`line-height: ${this.lineHeight}px`]:[],...this.wordWrap?[`word-wrap: ${this.breakWords?"break-all":"break-word"}`,`max-width: ${this.wordWrapWidth}px`]:[],...this.strokeThickness?[`-webkit-text-stroke-width: ${this.strokeThickness}px`,`-webkit-text-stroke-color: ${this.normalizeColor(this.stroke)}`,`text-stroke-width: ${this.strokeThickness}px`,`text-stroke-color: ${this.normalizeColor(this.stroke)}`,"paint-order: stroke"]:[],...this.dropShadow?[this.dropShadowToCSS()]:[],...this._overrides].join(";")}toGlobalCSS(){return this._fonts.reduce((e,t)=>`${e} +`;const LV=[],DV=[],NV=[],eie=class extends us{constructor(e,t={}){super();const{align:n,tint:r,maxWidth:i,letterSpacing:o,fontName:s,fontSize:a}=Object.assign({},eie.styleDefaults,t);if(!Xo.available[s])throw new Error(`Missing BitmapFont "${s}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=n,this._tintColor=new Vn(r),this._font=void 0,this._fontName=s,this._fontSize=a,this.text=e,this._maxWidth=i,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new Md(()=>{this.dirty=!0},this,0,0),this._roundPixels=nt.ROUND_PIXELS,this.dirty=!0,this._resolution=nt.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var N;const e=Xo.available[this._fontName],t=this.fontSize,n=t/e.size,r=new Lt,i=[],o=[],s=[],a=this._text.replace(/(?:\r\n|\r)/g,` +`)||" ",c=Zre(a),u=this._maxWidth*e.size/t,f=e.distanceFieldType==="none"?LV:DV;let h=null,p=0,g=0,v=0,y=-1,S=0,w=0,b=0,x=0;for(let H=0;H0&&r.x>u&&(++w,Ag(i,1+y-w,1+H-y),H=y,y=-1,o.push(S),s.push(i.length>0?i[i.length-1].prevSpaces:0),g=Math.max(g,S),v++,r.x=0,r.y+=e.lineHeight,h=null,x=0)}const E=c[c.length-1];E!=="\r"&&E!==` +`&&(/(?:\s)/.test(E)&&(p=S),o.push(p),g=Math.max(g,p),s.push(-1));const I=[];for(let H=0;H<=v;H++){let G=0;this._align==="right"?G=g-o[H]:this._align==="center"?G=(g-o[H])/2:this._align==="justify"&&(G=s[H]<0?0:(g-o[H])/s[H]),I.push(G)}const A=i.length,k={},O=[],D=this._activePagesMeshData;f.push(...D);for(let H=0;H6*z)||G.vertices.lengtht[i.mesh.texture.baseTexture.uid]).forEach(i=>{i.mesh.texture=mt.EMPTY});for(const i in t)t[i].destroy(),delete t[i];this._font=null,this._tintColor=null,this._textureCache=null,super.destroy(e)}};let y8e=eie;y8e.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0};const b8e=[".xml",".fnt"],x8e={extension:{type:ot.LoadParser,priority:bc.Normal},name:"loadBitmapFont",test(e){return b8e.includes(vo.extname(e).toLowerCase())},async testParse(e){return OE.test(e)||$5.test(e)},async parse(e,t,n){const r=OE.test(e)?OE.parse(e):$5.parse(e),{src:i}=t,{page:o}=r,s=[];for(let u=0;ua[u]);return Xo.install(r,c,!0)},async load(e,t){return(await nt.ADAPTER.fetch(e)).text()},unload(e){e.destroy()}};wt.add(x8e);const Fm=class extends Gu{constructor(){super(...arguments),this._fonts=[],this._overrides=[],this._stylesheet="",this.fontsDirty=!1}static from(e){return new Fm(Object.keys(Fm.defaultOptions).reduce((t,n)=>({...t,[n]:e[n]}),{}))}cleanFonts(){this._fonts.length>0&&(this._fonts.forEach(e=>{URL.revokeObjectURL(e.src),e.refs--,e.refs===0&&(e.fontFace&&document.fonts.delete(e.fontFace),delete Fm.availableFonts[e.originalUrl])}),this.fontFamily="Arial",this._fonts.length=0,this.styleID++,this.fontsDirty=!0)}loadFont(e,t={}){const{availableFonts:n}=Fm;if(n[e]){const r=n[e];return this._fonts.push(r),r.refs++,this.styleID++,this.fontsDirty=!0,Promise.resolve()}return nt.ADAPTER.fetch(e).then(r=>r.blob()).then(async r=>new Promise((i,o)=>{const s=URL.createObjectURL(r),a=new FileReader;a.onload=()=>i([s,a.result]),a.onerror=o,a.readAsDataURL(r)})).then(async([r,i])=>{const o=Object.assign({family:vo.basename(e,vo.extname(e)),weight:"normal",style:"normal",src:r,dataSrc:i,refs:1,originalUrl:e,fontFace:null},t);n[e]=o,this._fonts.push(o),this.styleID++;const s=new FontFace(o.family,`url(${o.src})`,{weight:o.weight,style:o.style});o.fontFace=s,await s.load(),document.fonts.add(s),await document.fonts.ready,this.styleID++,this.fontsDirty=!0})}addOverride(...e){const t=e.filter(n=>!this._overrides.includes(n));t.length>0&&(this._overrides.push(...t),this.styleID++)}removeOverride(...e){const t=e.filter(n=>this._overrides.includes(n));t.length>0&&(this._overrides=this._overrides.filter(n=>!t.includes(n)),this.styleID++)}toCSS(e){return[`transform: scale(${e})`,"transform-origin: top left","display: inline-block",`color: ${this.normalizeColor(this.fill)}`,`font-size: ${this.fontSize}px`,`font-family: ${this.fontFamily}`,`font-weight: ${this.fontWeight}`,`font-style: ${this.fontStyle}`,`font-variant: ${this.fontVariant}`,`letter-spacing: ${this.letterSpacing}px`,`text-align: ${this.align}`,`padding: ${this.padding}px`,`white-space: ${this.whiteSpace}`,...this.lineHeight?[`line-height: ${this.lineHeight}px`]:[],...this.wordWrap?[`word-wrap: ${this.breakWords?"break-all":"break-word"}`,`max-width: ${this.wordWrapWidth}px`]:[],...this.strokeThickness?[`-webkit-text-stroke-width: ${this.strokeThickness}px`,`-webkit-text-stroke-color: ${this.normalizeColor(this.stroke)}`,`text-stroke-width: ${this.strokeThickness}px`,`text-stroke-color: ${this.normalizeColor(this.stroke)}`,"paint-order: stroke"]:[],...this.dropShadow?[this.dropShadowToCSS()]:[],...this._overrides].join(";")}toGlobalCSS(){return this._fonts.reduce((e,t)=>`${e} @font-face { font-family: "${t.family}"; src: url('${t.dataSrc}'); font-weight: ${t.weight}; font-style: ${t.style}; - }`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=I4e(e)),typeof e=="number"?A4e(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,n=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),r=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const i=`${n}px ${r}px`;return this.dropShadowBlur>0?`text-shadow: ${i} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${i} ${e}`}reset(){Object.assign(this,Nm.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=nt.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};let e1=Nm;e1.availableFonts={};e1.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};const Bm=class extends cm{constructor(e="",t={}){super(pt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this._loading=!1,this.localStyleID=-1,this.dirty=!1,this.ownsStyle=!1;const n=new Image,r=pt.from(n,{scaleMode:nt.SCALE_MODE,resourceOptions:{autoLoad:!1}});r.orig=new Jt,r.trim=new Jt,this.texture=r;const i="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject"),c=document.createElementNS(o,"div"),u=document.createElementNS(o,"style");a.setAttribute("width","10000"),a.setAttribute("height","10000"),a.style.overflow="hidden",s.appendChild(a),this.maxWidth=Bm.defaultMaxWidth,this.maxHeight=Bm.defaultMaxHeight,this._domElement=c,this._styleElement=u,this._svgRoot=s,this._foreignObject=a,this._foreignObject.appendChild(u),this._foreignObject.appendChild(c),this._image=n,this._loadImage=new Image,this._autoResolution=Bm.defaultAutoResolution,this._resolution=Bm.defaultResolution??nt.RESOLUTION,this.text=e,this.style=t}measureText(e){var a,c;const{text:t,style:n,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(r)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const i=this._domElement.getBoundingClientRect();this._svgRoot.remove();const o=Math.min(this.maxWidth,Math.ceil(i.width)),s=Math.min(this.maxHeight,Math.ceil(i.height));return this._svgRoot.setAttribute("width",o.toString()),this._svgRoot.setAttribute("height",s.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(a=this._style)==null?void 0:a.toCSS(r)}),this._styleElement.textContent=(c=this._style)==null?void 0:c.toGlobalCSS()),{width:o+n.padding*2,height:s+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:r}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:i,height:o}=this.measureText();n.width=r.width=Math.ceil(Math.max(1,i)),n.height=r.height=Math.ceil(Math.max(1,o)),this._loading||(this._loading=!0,await new Promise(s=>{r.onload=async()=>{await t.onBeforeDraw(),this._loading=!1,n.src=r.src,r.onload=null,r.src="",this.updateTexture(),s()};const a=new XMLSerializer().serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(a)}`}))}get source(){return this._image}updateTexture(){const{style:e,texture:t,_image:n,resolution:r}=this,{padding:i}=e,{baseTexture:o}=t;t.trim.width=t._frame.width=n.width/r,t.trim.height=t._frame.height=n.height/r,t.trim.x=-i,t.trim.y=-i,t.orig.width=t._frame.width-i*2,t.orig.height=t._frame.height-i*2,this._onTextureUpdate(),o.setRealSize(n.width,n.height,r),this.dirty=!1}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._render(e)}_renderCanvas(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(e)}getLocalBounds(e){return this.updateText(!0),super.getLocalBounds(e)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(e){var n,r,i,o,s;typeof e=="boolean"&&(e={children:e}),e=Object.assign({},Bm.defaultDestroyOptions,e),super.destroy(e);const t=null;this.ownsStyle&&((n=this._style)==null||n.cleanFonts()),this._style=t,(r=this._svgRoot)==null||r.remove(),this._svgRoot=t,(i=this._domElement)==null||i.remove(),this._domElement=t,(o=this._foreignObject)==null||o.remove(),this._foreignObject=t,(s=this._styleElement)==null||s.remove(),this._styleElement=t,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=t,this._image.src="",this._image=t}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(e){this.updateText(!0);const t=Od(this.scale.x)||1;this.scale.x=t*e/this._image.width/this.resolution,this._width=e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(e){this.updateText(!0);const t=Od(this.scale.y)||1;this.scale.y=t*e/this._image.height/this.resolution,this._height=e}get style(){return this._style}set style(e){this._style!==e&&(e=e||{},e instanceof e1?(this.ownsStyle=!1,this._style=e):e instanceof Gu?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=e1.from(e)):(this.ownsStyle=!0,this._style=new e1(e)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(e){e=String(e===""||e===null||e===void 0?" ":e),e=this.sanitiseText(e),this._text!==e&&(this._text=e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)}sanitiseText(e){return e.replace(/

/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};let $A=Bm;$A.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0};$A.defaultMaxWidth=2024;$A.defaultMaxHeight=2024;$A.defaultAutoResolution=!0;function i8e(e,t){return{constructor:e,meta:t}}function o8e(e,t,n,r,i){qre(e,t,n||0,r||e.length-1,i||s8e)}function qre(e,t,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,s=t-n+1,a=Math.log(o),c=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*c*(o-c)/o)*(s-o/2<0?-1:1),f=Math.max(n,Math.floor(t-s*c/o+u)),h=Math.min(r,Math.floor(t+(o-s)*c/o+u));qre(e,t,f,h,i)}var p=e[t],g=n,v=r;for(Yb(e,n,t),i(e[r],p)>0&&Yb(e,n,r);g0;)v--}i(e[n],p)===0?Yb(e,n,v):(v++,Yb(e,v,r)),v<=t&&(n=v+1),t<=v&&(r=v-1)}}function Yb(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function s8e(e,t){return et?1:0}class a8e{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let n=this.data;const r=[];if(!LS(t,n))return r;const i=this.toBBox,o=[];for(;n;){for(let s=0;s=0&&o[n].children.length>this._maxEntries;)this._split(o,n),n--;this._adjustParentBBoxes(i,o,n)}_split(t,n){const r=t[n],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const s=this._chooseSplitIndex(r,o,i),a=$m(r.children.splice(s,r.children.length-s));a.height=r.height,a.leaf=r.leaf,Sm(r,this.toBBox),Sm(a,this.toBBox),n?t[n-1].children.push(a):this._splitRoot(r,a)}_splitRoot(t,n){this.data=$m([t,n]),this.data.height=t.height+1,this.data.leaf=!1,Sm(this.data,this.toBBox)}_chooseSplitIndex(t,n,r){let i,o=1/0,s=1/0;for(let a=n;a<=r-n;a++){const c=xx(t,0,a,this.toBBox),u=xx(t,a,r,this.toBBox),f=f8e(c,u),h=f$(c)+f$(u);f=n;u--){const f=t.children[u];wx(a,t.leaf?o(f):f),c+=MS(a)}return c}_adjustParentBBoxes(t,n,r){for(let i=r;i>=0;i--)wx(n[i],t)}_condense(t){for(let n=t.length-1,r;n>=0;n--)t[n].children.length===0?n>0?(r=t[n-1].children,r.splice(r.indexOf(t[n]),1)):this.clear():Sm(t[n],this.toBBox)}}function l8e(e,t,n){if(!n)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function $m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function PV(e,t,n,r,i){const o=[t,n];for(;o.length;){if(n=o.pop(),t=o.pop(),n-t<=r)continue;const s=t+Math.ceil((n-t)/r/2)*r;o8e(e,s,t,n,i),o.push(t,s,s,n)}}class h8e extends a8e{toBBox(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}compareMinX(t,n){return t.left-n.left}compareMinY(t,n){return t.top-n.top}}const OV={screenSize:{width:256,height:256},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:75,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:1.5,minScale:1,dtMax:1.5,dtMin:1.1}};var Xre={},uT=qt&&qt.__assign||function(){return uT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?1:-1}),p$}var C8e=S8e()?Math.sign:E8e(),T8e=C8e,k8e=Math.abs,A8e=Math.floor,I8e=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:T8e(e)*A8e(k8e(e)))},R8e=I8e,P8e=Math.max,O8e=function(e){return P8e(0,R8e(e))},Yre=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},M8e=Nv,Kre=function(e){if(!M8e(e))throw new TypeError("Cannot use null or undefined");return e},L8e={exports:{}},D8e=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},m$,LV;function N8e(){return LV||(LV=1,m$=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),m$}var g$,DV;function B8e(){if(DV)return g$;DV=1;var e=Nv,t=Object.keys;return g$=function(n){return t(e(n)?Object(n):n)},g$}var v$,NV;function $8e(){return NV||(NV=1,v$=N8e()()?Object.keys:B8e()),v$}var y$,BV;function F8e(){if(BV)return y$;BV=1;var e=$8e(),t=Kre,n=Math.max;return y$=function(r,i){var o,s,a=n(arguments.length,2),c;for(r=Object(t(r)),c=function(u){try{r[u]=i[u]}catch(f){o||(o=f)}},s=1;s-1},x$}var rHe=tHe()?String.prototype.contains:nHe(),OE=eie,FV=eHe,tie=Qre,nie=_8e,t1=rHe,iHe=Zre.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],OE(e)?(n=t1.call(e,"c"),r=t1.call(e,"e"),i=t1.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?tie(nie(o),s):s};iHe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],OE(t)?FV(t)?OE(n)?FV(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,OE(e)?(r=t1.call(e,"c"),i=t1.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?tie(nie(o),s):s};var Jw=Zre.exports,$5={exports:{}};(function(e,t){var n=Jw,r=Yre,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,a=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,w;h=function(b,x){var E;return r(x),u.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),a(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,I;return r(x),I=this,h.call(this,b,E=function(){g.call(I,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,I,A,k;if(r(x),!u.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(I=E[b],typeof I=="object")for(k=0;A=I[k];++k)(A===x||A.__eeOnceListener__===x)&&(I.length===2?E[b]=I[k?0:1]:I.splice(k,1));else(I===x||I.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,I,A,k;if(u.call(this,"__ee__")&&(A=this.__ee__[b],!!A))if(typeof A=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?u.call(g,v,O,w):O,y?(f.value=O,h(b,w,f)):b[w]=O,++w;x=w}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=6&&(n-=6),kt(n<1?255*((t-e)*n+e):n<3?255*t:n<4?255*((t-e)*(4-n)+e):255*e)},Xi=function(e,t,n){t/=100;var r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{r:F$(i,r,(e/=60)+2),g:F$(i,r,e),b:F$(i,r,e-2)}},TU=function(e,t,n,r){return{r:kt(255*(1-e)*(r=1-r)),g:kt(255*(1-t)*r),b:kt(255*(1-n)*r)}},lie=function(e,t,n){e/=255,t/=255,n/=255;var r=1-Math.max(e,t,n),i=1-r,o=i&&(i-t)/i,s=i&&(i-n)/i;return{c:kt(100*(i&&(i-e)/i)),m:kt(100*o),y:kt(100*s),k:kt(100*r)}},dv=function(e,t,n,r){r===void 0&&(r=1),e/=255,t/=255,n/=255,r=Math.min(r,1);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=i-o,a=0,c=0,u=(i+o)/2;if(s!==0){switch(i){case e:a=(t-n)/s%6;break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}(a=kt(60*a))<0&&(a+=360),c=s/(1-Math.abs(2*u-1))}return{h:a,s:kt(100*c),l:kt(100*u),a:r}},rq=function(e,t){if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;var n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,o=0,s=0,a=0,c=0;return(t?n:r).find(function(u,f){return e>=u[0]&&e360||e<0)&&(e-=360*Math.floor(e/360)),e},Bo=function(e){return typeof e=="string"&&(e=Bv.test(e)?zA(e)/100:+e),isNaN(+e)||e>1?1:kt(e)},$v=function(e,t,n){return t.reduce(function(r,i){return F5(F5([],r,!0),[cn(cn({},e),{h:n===Xo.ADDITIVE?iw(e.h+i):iw(rq(rq(e.h,!1)+i,!0))})],!1)},[cn({},e)])},IHe=function(e,t){return $v(e,[30,-30],t)},RHe=function(e,t){return $v(e,[180],t)},PHe=function(e,t){return $v(e,[150,-150],t)},OHe=function(e,t){return $v(e,[120,-120],t)},MHe=function(e,t){return $v(e,[60,-120,180],t)},LHe=function(e,t){return $v(e,[90,-90,180],t)},ca=function(e){return typeof e=="string"?function(t){var n;if(Object.keys(Vt).some(function(r){if(_x[r].test(t))return n=r,!0}),!n&&~sie.indexOf(t)&&(n=Vt.HEX),!n)throw new Error(kHe);return n}(e):function(t){var n,r=!1,i=aie(Object.keys(t));if(z5[i]&&(n=z5[i]),n&&n===Vt.RGB){var o=Object.entries(t).some(function(a){return!j5.test("".concat(a[1]))}),s=Object.entries(t).some(function(a){return!(Bv.test("".concat(a[1]))||!j5.test("".concat(a[1]))&&!isNaN(+a[1])&&+a[1]<=255)});o&&s&&(r=!0),o||(n=Vt.HEX)}if(!n||r)throw new Error(AHe);return n}(e)},DHe=((Jb={})[Vt.HEX]=function(e){var t=(~sie.indexOf(e)?dT[e]:e).match(_x.HEX),n={r:DS(t[1]||t[5]),g:DS(t[2]||t[6]),b:DS(t[3]||t[7])},r=t[4]||t[8];return r!==void 0&&(n.a=DS(r)/255),n},Jb[Vt.RGB]=function(e){var t=e.match(_x.RGB),n=vp(t[1]||t[5]),r=vp(t[2]||t[6]),i=vp(t[3]||t[7]),o=t[4]||t[8],s={r:Math.min(n,255),g:Math.min(r,255),b:Math.min(i,255)};return o!==void 0&&(s.a=Bo(o)),s},Jb[Vt.HSL]=function(e){var t=e.match(_x.HSL),n=iw(t[1]||t[5]),r=fT(t[2]||t[6]),i=fT(t[3]||t[7]),o=t[4]||t[8],s=Xi(n,r,i);return o!==void 0&&(s.a=Bo(o)),s},Jb[Vt.CMYK]=function(e){var t=e.match(_x.CMYK),n=Ld(t[1]||t[6]),r=Ld(t[2]||t[7]),i=Ld(t[3]||t[8]),o=Ld(t[4]||t[9]),s=t[5]||t[10],a=TU(n,r,i,o);return s!==void 0&&(a.a=Bo(s)),a},Jb),NHe=((Zb={})[Vt.HEX]=function(e){var t={r:vp("".concat(e.r)),g:vp("".concat(e.g)),b:vp("".concat(e.b))};return po(e,"a")&&(t.a=Math.min(vp("".concat(e.a),!0),1)),t},Zb[Vt.RGB]=function(e){return this.HEX(e)},Zb[Vt.HSL]=function(e){var t=fT("".concat(e.s)),n=fT("".concat(e.l)),r=Xi(iw(e.h),t,n);return po(e,"a")&&(r.a=Bo(e.a)),r},Zb[Vt.CMYK]=function(e){var t=Ld("".concat(e.c)),n=Ld("".concat(e.m)),r=Ld("".concat(e.y)),i=Ld("".concat(e.k)),o=TU(t,n,r,i);return po(e,"a")&&(o.a=Bo(e.a)),o},Zb),Xp=function(e,t){return t===void 0&&(t=ca(e)),typeof e=="string"?DHe[t](e):NHe[t](e)},an=((mu={})[Vt.HEX]=function(e){return{r:NS(e.r),g:NS(e.g),b:NS(e.b)}},mu.HEXA=function(e){var t=an.HEX(e);return t.a=po(e,"a")?NS(255*e.a):"0xFF",t},mu[Vt.RGB]=function(e,t){return po(e,"a")&&delete e.a,Ip(e,t)},mu.RGBA=function(e,t){return e.a=po(e,"a")?kt(e.a):1,Ip(e,t)},mu[Vt.HSL]=function(e,t){var n=dv(e.r,e.g,e.b);return delete n.a,cg(n,t)},mu.HSLA=function(e,t){var n=an.HSL(e,t);return n.a=po(e,"a")?kt(e.a,t):1,n},mu[Vt.CMYK]=function(e,t){return BHe(lie(e.r,e.g,e.b),t)},mu.CMYKA=function(e,t){var n=an.CMYK(e,t);return n.a=po(e,"a")?kt(e.a,t):1,n},mu),iq=function(e,t,n,r){var i=ca(e),o=typeof e=="string",s=Xp(e,i),a=typeof e=="string"&&po(s,"a")||typeof e!="string"&&po(e,"a"),c=dv(s.r,s.g,s.b,s.a);a||delete c.a;var u=n?c.l/(t+1):(100-c.l)/(t+1),f=Array(t).fill(null).map(function(h,p){return cn(cn({},c),{l:c.l+u*(p+1)*(1-2*+n)})});switch(i){case Vt.HEX:default:return f.map(function(h){var p=Xi(h.h,h.s,h.l);return a&&(p.a=h.a),o?a?on.HEX(Ip(cn(cn({},p),{a:kt(255*p.a)}),r)):on.HEX(Ip(p,r)):a?an.HEXA(p):an.HEX(p)});case Vt.RGB:return f.map(function(h){var p=Xi(h.h,h.s,h.l);return a&&(p.a=h.a),o?on.RGB(Ip(p,r)):a?an.RGBA(p,r):an.RGB(p,r)});case Vt.HSL:return f.map(function(h){return o?on.HSL(cg(h,r)):a?an.HSLA(cn(cn({},Xi(h.h,h.s,h.l)),{a:h.a}),r):an.HSL(Xi(h.h,h.s,h.l),r)})}},Em=((Gh={buildHarmony:function(e,t,n,r){var i=ca(e),o=Xp(e,i),s=dv(o.r,o.g,o.b,o.a),a=typeof e=="string"&&po(o,"a")||typeof e!="string"&&po(e,"a"),c=typeof e=="string";switch(i){case Vt.HEX:default:return a?this.HEXA(cg(s,0),t,n,c):this.HEX(cg(s,0),t,n,c);case Vt.HSL:return a?this.HSLA(s,t,n,c,r):this.HSL(s,t,n,c,r);case Vt.RGB:return a?this.RGBA(s,t,n,c,r):this.RGB(s,t,n,c,r)}}})[Vt.HEX]=function(e,t,n,r){return t(e,n).map(function(i){return r?on.HEX(Xi(i.h,i.s,i.l)):an.HEX(Xi(i.h,i.s,i.l))})},Gh.HEXA=function(e,t,n,r){return t(e,n).map(function(i){return r?on.HEX(cn(cn({},Xi(i.h,i.s,i.l)),{a:255*Bo(i.a)})):an.HEXA(cn(cn({},Xi(i.h,i.s,i.l)),{a:Bo(i.a)}))})},Gh[Vt.RGB]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.RGB(Ip(Xi(o.h,o.s,o.l),i)):an.RGB(Xi(o.h,o.s,o.l),i)})},Gh.RGBA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.RGB(Ip(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)):an.RGBA(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)})},Gh[Vt.HSL]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.HSL(cg({h:o.h,s:o.s,l:o.l},i)):an.HSL(Xi(o.h,o.s,o.l),i)})},Gh.HSLA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.HSL(cg(cn(cn({},o),{a:Bo(o.a)}),i)):an.HSLA(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)})},Gh),Cm=((Vh={mix:function(e,t){var n,r,i,o,s,a,c,u,f,h,p,g,v,y,S,w=e.map(function(I){var A=ca(I);return Xp(I,A)}),b=t===Xo.SUBTRACTIVE?w.map(function(I){var A,k,O,D,N,H,G,z,L,F,j,V,W,K,X=(A=I.r,k=I.g,O=I.b,D=Math.min(A,k,O),N=Math.min(255-A,255-k,255-O),H=A-D,G=k-D,z=O-D,L=Math.min(H,G),F=H-L,j=(G+L)/2,V=(z+G-L)/2,W=Math.max(F,j,V)/Math.max(H,G,z),K=isNaN(W)||W===1/0||W<=0?1:W,{r:F/K+N,y:j/K+N,b:V/K+N});return po(I,"a")&&(X.a=I.a),X}):null;function x(I){var A=t===Xo.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return I.reduce(function(k,O){var D=po(O,"a")?O.a:1,N={r:Math.min(k.r+O.r*D,255),b:Math.min(k.b+O.b*D,255),a:1-(1-D)*(1-k.a)},H="g"in k?k.g:k.y,G="g"in O?O.g:O.y;return cn(cn({},N),t===Xo.ADDITIVE?{g:Math.min(H+G*D,255)}:{y:Math.min(H+G*D,255)})},A)}if(t===Xo.ADDITIVE)n=x(w);else{var E=x(b);r=E.r,i=E.y,o=E.b,s=Math.min(r,i,o),a=Math.min(255-r,255-i,255-o),c=r-s,u=i-s,f=o-s,h=Math.min(u,f),p=c+u-h,g=u+h,v=2*(f-h),y=Math.max(p,g,v)/Math.max(c,u,f),S=isNaN(y)||y===1/0||y<=0?1:y,(n={r:p/S+a,g:g/S+a,b:v/S+a}).a=E.a}return{r:kt(n.r),g:kt(n.g),b:kt(n.b),a:il(n.a,0,1)}}})[Vt.HEX]=function(e,t,n){var r=this.mix(e,t);return delete r.a,n?on.HEX(r):an.HEX(r)},Vh.HEXA=function(e,t,n){var r=this.mix(e,t);return r.a=n?255*Bo(r.a):Bo(r.a),n?on.HEX(r):an.HEXA(r)},Vh[Vt.RGB]=function(e,t,n,r){var i=this.mix(e,t);return delete i.a,n?on.RGB(i):an.RGB(i,r)},Vh.RGBA=function(e,t,n,r){var i=this.mix(e,t);return n?on.RGB(i):an.RGBA(i,r)},Vh[Vt.HSL]=function(e,t,n,r){var i=this.mix(e,t),o=dv(i.r,i.g,i.b);return delete i.a,delete o.a,n?on.HSL(o):an.HSL(i,r)},Vh.HSLA=function(e,t,n,r){var i=this.mix(e,t),o=dv(i.r,i.g,i.b,i.a);return n?on.HSL(o):an.HSLA(i,r)},Vh),Ip=function(e,t){return cn({r:kt(e.r,t),g:kt(e.g,t),b:kt(e.b,t)},po(e,"a")?{a:kt(e.a,t)}:{})},cg=function(e,t){return cn({h:kt(e.h,t),s:kt(e.s,t),l:kt(e.l,t)},po(e,"a")?{a:kt(e.a,t)}:{})},BHe=function(e,t){return{c:kt(e.c,t),m:kt(e.m,t),y:kt(e.y,t),k:kt(e.k,t)}},cd=function(e,t,n,r,i,o){var s=i(Xp(e,t),r);return n?o(s):s},Tm=function(e,t,n,r,i,o,s){n<1&&(n=5);var a=function(c,u,f){var h=f-1,p=(u.r-c.r)/h,g=(u.g-c.g)/h,v=(u.b-c.b)/h,y=Bo(c.a),S=(Bo(u.a)-y)/h;return Array(f).fill(null).map(function(w,b){return b===0?c:b===h?u:{r:kt(c.r+p*b),g:kt(c.g+g*b),b:kt(c.b+v*b),a:kt(y+S*b)}})}(Xp(e),Xp(t),n);return a.map(function(c){var u=o(c,i);return r?s(u):u})},$He=function(){function e(t,n){n===void 0&&(n=6),this.rgb=Xp(t),this._decimals=n,this.updateHSL(),this.updateCMYK()}return e.prototype.updateRGB=function(){this.rgb=cn(cn({},Xi(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},e.prototype.updateRGBFromCMYK=function(){this.rgb=cn(cn({},TU(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},e.prototype.updateHSL=function(){this.hsl=dv(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},e.prototype.updateCMYK=function(){this.cmyk=lie(this.rgb.r,this.rgb.g,this.rgb.b)},e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},e.prototype.setDecimals=function(t){return this._decimals=t,this},e.prototype.setH=function(t){return this.hsl.h=iw(t),this.updateRGBAndCMYK()},e.prototype.setS=function(t){return this.hsl.s=il(t,0,100),this.updateRGBAndCMYK()},e.prototype.setL=function(t){return this.hsl.l=il(t,0,100),this.updateRGBAndCMYK()},e.prototype.setR=function(t){return this.rgb.r=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setG=function(t){return this.rgb.g=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setB=function(t){return this.rgb.b=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setA=function(t){return this.hsl.a=this.rgb.a=il(t,0,1),this},e.prototype.setC=function(t){return this.cmyk.c=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setM=function(t){return this.cmyk.m=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setY=function(t){return this.cmyk.y=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setK=function(t){return this.cmyk.k=il(t,0,100),this.updateRGBAndHSL()},Object.defineProperty(e.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"H",{get:function(){return kt(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"S",{get:function(){return kt(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"L",{get:function(){return kt(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"R",{get:function(){return kt(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"G",{get:function(){return kt(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"B",{get:function(){return kt(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"A",{get:function(){return kt(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"C",{get:function(){return kt(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"M",{get:function(){return kt(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Y",{get:function(){return kt(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"K",{get:function(){return kt(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXObject",{get:function(){return an.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXAObject",{get:function(){return an.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBAObject",{get:function(){return cn(cn({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLAObject",{get:function(){return cn(cn({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKAObject",{get:function(){return cn(cn({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEX",{get:function(){return on.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXA",{get:function(){return on.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){return on.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBA",{get:function(){return on.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSL",{get:function(){return on.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLA",{get:function(){return on.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYK",{get:function(){return on.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKA",{get:function(){return on.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),e.toHEX=function(t,n){n===void 0&&(n=!0);var r=ca(t);return cd(t,r,n,0,an.HEX,on.HEX)},e.toHEXA=function(t,n){n===void 0&&(n=!0);var r=ca(t);return cd(t,r,n,0,an.HEXA,on.HEX)},e.toRGB=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ca(t);return cd(t,i,n,r,an.RGB,on.RGB)},e.toRGBA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ca(t);return cd(t,i,n,r,an.RGBA,on.RGB)},e.toHSL=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ca(t);return cd(t,i,n,r,an.HSL,on.HSL)},e.toHSLA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ca(t);return cd(t,i,n,r,an.HSLA,on.HSL)},e.toCMYK=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ca(t);return cd(t,i,n,r,an.CMYK,on.CMYK)},e.toCMYKA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ca(t);return cd(t,i,n,r,an.CMYKA,on.CMYK)},e.getBlendHEX=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Tm(t,n,r,i,o,an.HEX,on.HEX)},e.getBlendHEXA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Tm(t,n,r,i,o,an.HEXA,on.HEX)},e.getBlendRGB=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Tm(t,n,r,i,o,an.RGB,on.RGB)},e.getBlendRGBA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Tm(t,n,r,i,o,an.RGBA,on.RGB)},e.getBlendHSL=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Tm(t,n,r,i,o,an.HSL,on.HSL)},e.getBlendHSLA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Tm(t,n,r,i,o,an.HSLA,on.HSL)},e.getMixHEX=function(t,n,r){return n===void 0&&(n=Xo.ADDITIVE),r===void 0&&(r=!0),Cm.HEX(t,n,r)},e.getMixHEXA=function(t,n,r){return n===void 0&&(n=Xo.ADDITIVE),r===void 0&&(r=!0),Cm.HEXA(t,n,r)},e.getMixRGB=function(t,n,r,i){return n===void 0&&(n=Xo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Cm.RGB(t,n,r,i)},e.getMixRGBA=function(t,n,r,i){return n===void 0&&(n=Xo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Cm.RGBA(t,n,r,i)},e.getMixHSL=function(t,n,r,i){return n===void 0&&(n=Xo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Cm.HSL(t,n,r,i)},e.getMixHSLA=function(t,n,r,i){return n===void 0&&(n=Xo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Cm.HSLA(t,n,r,i)},e.getShades=function(t,n,r){return r===void 0&&(r=6),iq(t,n,!0,r)},e.getTints=function(t,n,r){return r===void 0&&(r=6),iq(t,n,!1,r)},e.getHarmony=function(t,n,r,i){return n===void 0&&(n=yu.COMPLEMENTARY),r===void 0&&(r=Xo.ADDITIVE),i===void 0&&(i=6),function(o,s,a,c){var u;return(u={},u[yu.ANALOGOUS]=Em.buildHarmony(s,IHe,c,a),u[yu.COMPLEMENTARY]=Em.buildHarmony(s,RHe,c,a),u[yu.SPLIT_COMPLEMENTARY]=Em.buildHarmony(s,PHe,c,a),u[yu.TRIADIC]=Em.buildHarmony(s,OHe,c,a),u[yu.TETRADIC]=Em.buildHarmony(s,MHe,c,a),u[yu.SQUARE]=Em.buildHarmony(s,LHe,c,a),u)[o]}(n,t,i,r)},e}();const FHe={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:Ji,PI:zHe}=Math,Zw=(e,t)=>new $He(e).setA(t??FHe.alpha).RGBA,jHe=(e,t)=>Zw(e,t);function cf(e,t){return{width:e.width*t.scale.x,height:e.height*t.scale.y,x:e.x*t.scale.x+t.x,y:e.y*t.scale.y+t.y}}const UHe={draw(e,t,n){if(e.text){const r=cf(e,{x:e.textX,y:e.textY,scale:{x:1,y:1}}),i=cf(r,n);t.font=`${e.fontSize*n.scale.x}px Arial`,t.fillStyle=Zw(e.fontColor,e.alpha),t.fillText(e.text,i.x,i.y)}},test(e){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},HHe={draw(e,t,n){const{x:r,y:i,width:o,height:s}=cf(e,n);t.fillStyle=Zw(e.fill,e.alpha),t.fillRect(Ji(r),Ji(i),Ji(o)||1,Ji(s)||1)},test(e){return{left:e.x,right:e.x+e.width,top:e.y,bottom:e.y+e.height}}},WHe={draw(e,t,n){t.fillStyle=Zw(e.fill,e.alpha),t.beginPath();const r=cf({...e,width:e.radius,height:e.radius},n);t.ellipse(Ji(r.x),Ji(r.y),Ji(r.width),Ji(r.height),0,0,2*zHe),t.fill()},test(e){return{left:e.x-e.radius,right:e.x+e.radius,top:e.y-e.radius,bottom:e.y+e.radius}}},GHe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.fillStyle=Zw(e.fill,e.alpha);const{x:o,y:s}=cf({...r,width:0,height:0},n);t.moveTo(Ji(o),Ji(s));for(const a of i){const{x:c,y:u}=cf({...a,width:0,height:0},n);t.lineTo(Ji(c),Ji(u))}t.closePath(),t.fill()},test(e){var t,n,r,i;return{left:((t=Zt.minBy(e.points,"x"))==null?void 0:t.x)??0,right:((n=Zt.maxBy(e.points,"x"))==null?void 0:n.x)??0,top:((r=Zt.minBy(e.points,"y"))==null?void 0:r.y)??0,bottom:((i=Zt.maxBy(e.points,"y"))==null?void 0:i.y)??0}}},VHe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.lineCap="round",t.lineJoin="round",t.strokeStyle=jHe(e.fill,e.alpha);const{x:o,y:s,width:a}=cf({...r,width:e.lineWidth,height:0},n);t.lineWidth=Ji(a),t.moveTo(Ji(o),Ji(s));for(const c of i){const{x:u,y:f}=cf({...c,width:0,height:0},n);t.lineTo(Ji(u),Ji(f))}t.stroke()},test(e){var t,n,r,i;return{left:((t=Zt.minBy(e.points,"x"))==null?void 0:t.x)??0-e.lineWidth??0,right:((n=Zt.maxBy(e.points,"x"))==null?void 0:n.x)??0+e.lineWidth??0,top:((r=Zt.minBy(e.points,"y"))==null?void 0:r.y)??0-e.lineWidth??0,bottom:((i=Zt.maxBy(e.points,"y"))==null?void 0:i.y)??0+e.lineWidth??0}}},qHe={text:UHe,path:VHe,rect:HHe,polygon:GHe,circle:WHe},{log2:XHe,max:YHe}=Math,oq=e=>Zt.floor(XHe(e+1));function sq({right:e,left:t,bottom:n,top:r},i){const o=YHe(oq(e-t),oq(n-r))-i,s=2**o,a={left:Zt.floor(t/s),right:Zt.ceil((e+1)/s),top:Zt.floor(r/s),bottom:Zt.ceil((n+1)/s)};return{zoom:o,order:s,tiles:Zt.shuffle(m8e({x:Zt.range(a.left,a.right+1),y:Zt.range(a.top,a.bottom+1)}).map(c=>{const u=c.x*s,f=c.y*s;return{tile:c,bounds:{left:u-s/2,right:u+s/2,top:f-s/2,bottom:f+s/2}}}))}}const KHe=""+new URL("D2Renderer.worker-533100e6.js",import.meta.url).href;class QHe extends Worker{constructor(){super(KHe,{type:"module"})}call(t,n,r=[]){return this.postMessage({action:t,payload:n},r)}on(t,n){const r=i=>{const{action:o,payload:s}=i.data;o===t&&n(s)};return this.addEventListener("message",r),()=>this.removeEventListener("message",r)}}function JHe(e,t){return!(t.left>=e.right||t.right<=e.left||t.top>=e.bottom||t.bottom<=e.top)}const{max:aq,min:lq}=Math,cie=class uie extends cm{constructor(t,n){super(t),this.bounds=n,this.age=uie.age++}};cie.age=0;let ZHe=cie;var la,qr,Ed,_u,Vi,Ul,Su,Cd,yT,bT,die,xT,fie,Ig,uw,wT,_T,hie,ST,pie,ET,mie,CT,gie,dw,U5,fw,H5,TT,vie,hw,W5,kT,yie,AT,bie;class eWe extends SHe{constructor(){super(...arguments);yr(this,bT);yr(this,xT);yr(this,_T);yr(this,ST);yr(this,ET);yr(this,CT);yr(this,dw);yr(this,fw);yr(this,TT);yr(this,hw);yr(this,kT);yr(this,AT);yr(this,la,void 0);yr(this,qr,void 0);yr(this,Ed,void 0);yr(this,_u,void 0);yr(this,Vi,OV);yr(this,Ul,[]);yr(this,Su,new h8e(16));yr(this,Cd,void 0);yr(this,yT,0);yr(this,Ig,Zt.once(()=>Zt.debounce(()=>oo(this,dw,U5).call(this),rt(this,Vi).debounceInterval)));yr(this,uw,Zt.once(()=>Zt.throttle(()=>oo(this,fw,H5).call(this),rt(this,Vi).refreshInterval)));yr(this,wT,Zt.once(()=>Zt.throttle(n=>oo(this,TT,vie).call(this,n),rt(this,Vi).refreshInterval)))}getInstance(){return{app:rt(this,la),viewport:rt(this,qr)}}fitCamera(){var r,i,o,s;const n=Zt.values(rt(this,Su).all()).flat();if(n.length){const a=Zt.reduce(n,(c,u)=>({top:lq(c.top,u.top),left:lq(c.left,u.left),bottom:aq(c.bottom,u.bottom),right:aq(c.right,u.right)}),{bottom:-1/0,top:1/0,left:1/0,right:-1/0});console.log(a),console.log(rt(this,Su).all()),(s=(r=rt(this,qr))==null?void 0:r.animate)==null||s.call(r,{position:new Lt((a.left+a.right)/2,(a.top+a.bottom)/2),scale:((o=(i=rt(this,qr))==null?void 0:i.findFit)==null?void 0:o.call(i,a.right-a.left,a.bottom-a.top))*.8,ease:"easeOutExpo",time:rt(this,Vi).animationDuration*1.5,callbackOnComplete:()=>rt(this,Ig).call(this)()})}}initialCamera(){var n,r;(r=(n=rt(this,qr))==null?void 0:n.animate)==null||r.call(n,{scale:1,ease:"easeOutExpo",time:rt(this,Vi).animationDuration*1.5,callbackOnComplete:()=>rt(this,Ig).call(this)()})}getView(){var n;return(n=rt(this,la))==null?void 0:n.view}setup(n){const r={...OV,...n};oo(this,xT,fie).call(this,r),this.setOptions(r),oo(this,ST,pie).call(this,r)}destroy(){Zt.map(rt(this,Ul),n=>n.terminate()),rt(this,la).destroy()}add(n){const r=BFe(),i=Zt.map(n,({component:o,meta:s})=>({...qHe[o.$].test(o),component:o,meta:s,index:oo(this,bT,die).call(this)}));return rt(this,Su).load(i),Zt.map(rt(this,Ul),o=>o.call("add",[Zt.map(n,"component"),r])),()=>{for(const o of i)rt(this,Su).remove(o);Zt.map(rt(this,Ul),o=>o.call("remove",[r]))}}setOptions(n){const r={...rt(this,Vi),...n};oo(this,ET,mie).call(this,r),uu(this,Vi,r),oo(this,dw,U5).call(this),oo(this,fw,H5).call(this)}}la=new WeakMap,qr=new WeakMap,Ed=new WeakMap,_u=new WeakMap,Vi=new WeakMap,Ul=new WeakMap,Su=new WeakMap,Cd=new WeakMap,yT=new WeakMap,bT=new WeakSet,die=function(){return YU(this,yT)._++},xT=new WeakSet,fie=function(n){uu(this,la,new wU({backgroundAlpha:0,width:n.screenSize.width,height:n.screenSize.height,autoDensity:!0,resolution:2})),uu(this,qr,new Ije({stopPropagation:!0,screenWidth:n.screenSize.width,screenHeight:n.screenSize.height,events:rt(this,la).renderer.events,passiveWheel:!1})),rt(this,qr).on("clicked",r=>{const{x:i,y:o}=r.world,s=rt(this,Su).search({minX:i,minY:o,maxX:i+Number.MIN_VALUE,maxY:o+Number.MIN_VALUE});this.emit("click",r.event,{world:r.world,components:s})}),rt(this,la).stage.addChild(rt(this,qr)),rt(this,qr).drag().pinch().wheel().decelerate({friction:.98}).clampZoom({maxScale:300,minScale:1e-5}),rt(this,qr).on("moved",()=>{rt(this,Ig).call(this)(),rt(this,uw).call(this)()}),rt(this,qr).on("mousemove",r=>rt(this,wT).call(this)(r)),uu(this,Ed,new cs),rt(this,qr).addChild(rt(this,Ed)),uu(this,_u,new uv),rt(this,qr).addChild(rt(this,_u)),uu(this,Cd,new uv),rt(this,qr).addChild(rt(this,Cd)),oo(this,_T,hie).call(this)},Ig=new WeakMap,uw=new WeakMap,wT=new WeakMap,_T=new WeakSet,hie=function(){const{dynamicResolution:n}=rt(this,Vi),{dtMax:r,dtMin:i,increment:o,intervalMs:s,maxScale:a,minScale:c}=n,u=Zt.floor(Si.targetFPMS*s);let f=0,h=0,p=1;rt(this,la).ticker.add(g=>{const{tileResolution:v}=rt(this,Vi);if(!(f%u)){const y=h/u;p=Zt.clamp(y>=r?p+o:y<=i?p-o:p,c,a),Zt.map(rt(this,Ul),S=>{S.call("setTileResolution",[{width:Zt.ceil(v.width/p),height:Zt.ceil(v.height/p)}])}),h=0}h+=g,f++})},ST=new WeakSet,pie=function(n){Zt.map(rt(this,Ul),r=>r.terminate()),uu(this,Ul,Zt.times(n.workerCount,r=>{const i=new QHe;return i.on("update",o=>oo(this,CT,gie).call(this,o)),i.onerror=o=>{throw o},i.call("setup",[{...n,workerIndex:r}]),i}))},ET=new WeakSet,mie=function(n){var o,s,a,c;const{width:r,height:i}=n.screenSize;(a=(s=(o=rt(this,la))==null?void 0:o.renderer)==null?void 0:s.resize)==null||a.call(s,r,i),(c=rt(this,qr))==null||c.resize(r,i)},CT=new WeakSet,gie=function({bounds:n,bitmap:r}){const i=pt.from(r);oo(this,kT,yie).call(this,i,n)},dw=new WeakSet,U5=function(){const{top:n,bottom:r,left:i,right:o}=rt(this,qr);Zt.map(rt(this,Ul),s=>s.call("setFrustum",[{top:n,bottom:r,left:i,right:o}]))},fw=new WeakSet,H5=function(){var s,a,c,u,f;const{tileSubdivision:n,accentColor:r}=rt(this,Vi),{tiles:i}=sq(rt(this,qr),n),o=oo(this,hw,W5).call(this);(s=rt(this,_u))==null||s.clear(),(a=rt(this,_u))==null||a.lineStyle(1*o,r,.5),(c=rt(this,_u))==null||c.beginFill(r,.05);for(const{bounds:h,tile:p}of i)Zt.find((u=rt(this,Ed))==null?void 0:u.children,g=>Zt.isEqual(g.bounds,h))||(f=rt(this,_u))==null||f.drawRect(h.left,h.top,h.right-h.left,h.bottom-h.top)},TT=new WeakSet,vie=function(n){var c;const{accentColor:r}=rt(this,Vi),i=oo(this,hw,W5).call(this),{x:o,y:s}=rt(this,qr).toWorld(n.globalX,n.globalY),a=rt(this,Su).search({minX:o,minY:s,maxX:o+Number.MIN_VALUE,maxY:s+Number.MIN_VALUE});rt(this,Cd).clear(),rt(this,Cd).lineStyle(2*i,r,1);for(const u of a)(c=rt(this,Cd))==null||c.drawRect(u.left,u.top,u.right-u.left,u.bottom-u.top)},hw=new WeakSet,W5=function(){const{right:n,left:r}=rt(this,qr),{width:i}=rt(this,Vi).screenSize;return(n-r)/i},kT=new WeakSet,yie=async function(n,r){var s;const{tileSubdivision:i}=rt(this,Vi),{tiles:o}=sq(rt(this,qr),i);if(Zt.find(o,a=>Zt.isEqual(a.bounds,r))){const a={x:(r.right-r.left)/n.width,y:(r.bottom-r.top)/n.height},c=new ZHe(n,r);(s=rt(this,Ed))==null||s.addChild(c).setTransform(r.left,r.top,a.x,a.y),rt(this,uw).call(this)(),await oo(this,AT,bie).call(this,c);for(const u of rt(this,Ed).children)JHe(u.bounds,r)&&u.age{const o=s=>{n.alpha+=s/Si.targetFPMS/rt(this,Vi).animationDuration,n.alpha>1&&(r.remove(o),i())};n.alpha=0,r.add(o)})};const tWe=i8e(eWe,{components:["rect","circle","path","polygon"],id:"d2-renderer",name:"Pixi",description:"Provides 2D Visualisation Support",version:"1.0.0"}),nWe={"d2-renderer":tWe};var rWe=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},kU={},iWe=Object.prototype.hasOwnProperty,oWe;function cq(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function uq(e){try{return encodeURIComponent(e)}catch{return null}}function sWe(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var i=cq(r[1]),o=cq(r[2]);i===null||o===null||i in n||(n[i]=o)}return n}function aWe(e,t){t=t||"";var n=[],r,i;typeof t!="string"&&(t="?");for(i in e)if(iWe.call(e,i)){if(r=e[i],!r&&(r===null||r===oWe||isNaN(r))&&(r=""),i=uq(i),r=uq(r),i===null||r===null)continue;n.push(i+"="+r)}return n.length?t+n.join("&"):""}kU.stringify=aWe;kU.parse=sWe;var xie=rWe,jA=kU,lWe=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,wie=/[\n\r\t]/g,cWe=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_ie=/:\d+$/,uWe=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,dWe=/^[a-zA-Z]:/;function AU(e){return(e||"").toString().replace(lWe,"")}var G5=[["#","hash"],["?","query"],function(t,n){return lc(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],dq={hash:1,query:1};function Sie(e){var t;typeof window<"u"?t=window:typeof qt<"u"?t=qt:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},i=typeof e,o;if(e.protocol==="blob:")r=new hc(unescape(e.pathname),{});else if(i==="string"){r=new hc(e,{});for(o in dq)delete r[o]}else if(i==="object"){for(o in e)o in dq||(r[o]=e[o]);r.slashes===void 0&&(r.slashes=cWe.test(e.href))}return r}function lc(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Eie(e,t){e=AU(e),e=e.replace(wie,""),t=t||{};var n=uWe.exec(e),r=n[1]?n[1].toLowerCase():"",i=!!n[2],o=!!n[3],s=0,a;return i?o?(a=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(a=n[2]+n[4],s=n[2].length):o?(a=n[3]+n[4],s=n[3].length):a=n[4],r==="file:"?s>=2&&(a=a.slice(2)):lc(r)?a=n[4]:r?i&&(a=a.slice(2)):s>=2&&lc(t.protocol)&&(a=n[4]),{protocol:r,slashes:i||lc(r),slashesCount:s,rest:a}}function fWe(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),s++):s&&(r===0&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),(i==="."||i==="..")&&n.push(""),n.join("/")}function hc(e,t,n){if(e=AU(e),e=e.replace(wie,""),!(this instanceof hc))return new hc(e,t,n);var r,i,o,s,a,c,u=G5.slice(),f=typeof t,h=this,p=0;for(f!=="object"&&f!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=jA.parse),t=Sie(t),i=Eie(e||"",t),r=!i.protocol&&!i.slashes,h.slashes=i.slashes||r&&t.slashes,h.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||dWe.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!lc(h.protocol)))&&(u[3]=[/(.*)/,"pathname"]);p{const n=[];for(const{transport:r,url:i,key:o,disabled:s}of e??[])if(!s){const a=new Tie[r].constructor({url:i});n.push({key:o,url:i,renderer:await a.get()})}t(()=>n)},[e,t]),C.jsx(C.Fragment,{})}const yWe={connected:"success.light",connecting:"warning.light",error:"error.light",disabled:"text.disabled"};function bWe({value:e,onValueChange:t}){const[n]=SA(),r=ie.find(n,{key:e.key});function i(s){t==null||t(zz(e,s))}const o=e!=null&&e.disabled?"disabled":r?"connected":"error";return C.jsx(C.Fragment,{children:C.jsxs(En,{alignItems:"center",py:.5,children:[C.jsx(pne,{sx:{color:yWe[o]}}),C.jsx(ai,{}),C.jsxs(mt,{flex:1,children:[C.jsx(Xt,{children:r?`${r.renderer.meta.name} ${r.renderer.meta.version}`:ie.startCase(o)}),C.jsx(Xt,{variant:"body2",color:"text.secondary",children:r?C.jsxs(C.Fragment,{children:[C.jsx("span",{children:r.renderer.meta.description}),C.jsx("br",{}),C.jsxs("span",{children:["Contributes: ",ie.join(r.renderer.meta.components,", ")]})]}):(e==null?void 0:e.url)||"No URL"})]}),C.jsx(vf,{title:`${e.disabled?"Enable":"Disable"} Renderer`,children:C.jsx(mt,{children:C.jsx(qg,{checked:!e.disabled,onChange:(s,a)=>i({disabled:!a})})})}),C.jsx(Aj,{trigger:s=>C.jsx(sg,{icon:C.jsx(jk,{}),label:"Edit Renderer",onClick:s}),appBar:{children:C.jsx(kj,{children:"Edit Renderer"})},children:C.jsxs(mt,{p:2.5,children:[C.jsx(Ew,{value:e.url,onChange:s=>i({url:s.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(jx,{placeholder:"Renderer Type",items:ie.entries(Tie).map(([s,{name:a}])=>({value:s,label:a})),fullWidth:!0,value:e.transport,onChange:s=>i({transport:s})})]})})]})})}var IU={},UA={},e_={};(function(e){var t=qt&&qt.__extends||function(){var g=function(v,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var b in w)Object.prototype.hasOwnProperty.call(w,b)&&(S[b]=w[b])},g(v,y)};return function(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");g(v,y);function S(){this.constructor=v}v.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONRPCNotification=e.createJSONRPCRequest=e.createJSONRPCSuccessResponse=e.createJSONRPCErrorResponse=e.JSONRPCErrorCode=e.JSONRPCErrorException=e.isJSONRPCResponses=e.isJSONRPCResponse=e.isJSONRPCRequests=e.isJSONRPCRequest=e.isJSONRPCID=e.JSONRPC=void 0,e.JSONRPC="2.0";var n=function(g){return typeof g=="string"||typeof g=="number"||g===null};e.isJSONRPCID=n;var r=function(g){return g.jsonrpc===e.JSONRPC&&g.method!==void 0&&g.result===void 0&&g.error===void 0};e.isJSONRPCRequest=r;var i=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCRequest)};e.isJSONRPCRequests=i;var o=function(g){return g.jsonrpc===e.JSONRPC&&g.id!==void 0&&(g.result!==void 0||g.error!==void 0)};e.isJSONRPCResponse=o;var s=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCResponse)};e.isJSONRPCResponses=s;var a=function(g,v,y){var S={code:g,message:v};return y!=null&&(S.data=y),S},c=function(g){t(v,g);function v(y,S,w){var b=g.call(this,y)||this;return Object.setPrototypeOf(b,v.prototype),b.code=S,b.data=w,b}return v.prototype.toObject=function(){return a(this.code,this.message,this.data)},v}(Error);e.JSONRPCErrorException=c,function(g){g[g.ParseError=-32700]="ParseError",g[g.InvalidRequest=-32600]="InvalidRequest",g[g.MethodNotFound=-32601]="MethodNotFound",g[g.InvalidParams=-32602]="InvalidParams",g[g.InternalError=-32603]="InternalError"}(e.JSONRPCErrorCode||(e.JSONRPCErrorCode={}));var u=function(g,v,y,S){return{jsonrpc:e.JSONRPC,id:g,error:a(v,y,S)}};e.createJSONRPCErrorResponse=u;var f=function(g,v){return{jsonrpc:e.JSONRPC,id:g,result:v??null}};e.createJSONRPCSuccessResponse=f;var h=function(g,v,y){return{jsonrpc:e.JSONRPC,id:g,method:v,params:y}};e.createJSONRPCRequest=h;var p=function(g,v){return{jsonrpc:e.JSONRPC,method:g,params:v}};e.createJSONRPCNotification=p})(e_);var t_={};Object.defineProperty(t_,"__esModule",{value:!0});t_.DefaultErrorCode=void 0;t_.DefaultErrorCode=0;var fq=qt&&qt.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(f){try{u(r.next(f))}catch(h){s(h)}}function c(f){try{u(r.throw(f))}catch(h){s(h)}}function u(f){f.done?o(f.value):i(f.value).then(a,c)}u((r=r.apply(e,t||[])).next())})},hq=qt&&qt.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]{const r=({data:i})=>{i.id===n.id&&(this.rpc.receive(i),this.worker.removeEventListener("message",r))};this.worker.postMessage(n),this.worker.addEventListener("message",r)})}connect(){return this.worker.postMessage(this.options.url),new Promise(t=>{const n=()=>{t(),this.worker.removeEventListener("message",n)};this.worker.addEventListener("message",n)})}async disconnect(){this.worker.terminate()}async call(t,n){return await this.rpc.request(t,n)}}const $We={trace:async(e,t)=>{switch(e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:n}=t;try{return JSON.parse((n==null?void 0:n.content)??"")}catch{return{}}}}}};class FWe{constructor(t){hm(this,"handler");this.options=t;const{hostname:n}=Cie(t.url);this.handler=$We[n]}async connect(){}async disconnect(){}async call(t,n){return await this.handler(t,n)}}const pc=Object.create(null);pc.open="0";pc.close="1";pc.ping="2";pc.pong="3";pc.message="4";pc.upgrade="5";pc.noop="6";const ME=Object.create(null);Object.keys(pc).forEach(e=>{ME[pc[e]]=e});const V5={type:"error",data:"parser error"},Aie=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Iie=typeof ArrayBuffer=="function",Rie=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,RU=({type:e,data:t},n,r)=>Aie&&t instanceof Blob?n?r(t):vq(t,r):Iie&&(t instanceof ArrayBuffer||Rie(t))?n?r(t):vq(new Blob([t]),r):r(pc[e]+(t||"")),vq=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function yq(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let j$;function zWe(e,t){if(Aie&&e.data instanceof Blob)return e.data.arrayBuffer().then(yq).then(t);if(Iie&&(e.data instanceof ArrayBuffer||Rie(e.data)))return t(yq(e.data));RU(e,!1,n=>{j$||(j$=new TextEncoder),t(j$.encode(n))})}const bq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sx=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,o,s,a,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|c&63;return u},UWe=typeof ArrayBuffer=="function",PU=(e,t)=>{if(typeof e!="string")return{type:"message",data:Pie(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:HWe(e.substring(1),t)}:ME[n]?e.length>1?{type:ME[n],data:e.substring(1)}:{type:ME[n]}:V5},HWe=(e,t)=>{if(UWe){const n=jWe(e);return Pie(n,t)}else return{base64:!0,data:e}},Pie=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Oie=String.fromCharCode(30),WWe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{RU(o,!1,a=>{r[s]=a,++i===n&&t(r.join(Oie))})})},GWe=(e,t)=>{const n=e.split(Oie),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let U$;function zS(e){return e.reduce((t,n)=>t+n.length,0)}function jS(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){a.enqueue(V5);break}i=f*Math.pow(2,32)+u.getUint32(4),r=3}else{if(zS(n)e){a.enqueue(V5);break}}}})}const Mie=4;function li(e){if(e)return XWe(e)}function XWe(e){for(var t in li.prototype)e[t]=li.prototype[t];return e}li.prototype.on=li.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};li.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};li.prototype.off=li.prototype.removeListener=li.prototype.removeAllListeners=li.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Lie(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const YWe=pa.setTimeout,KWe=pa.clearTimeout;function GA(e,t){t.useNativeTimers?(e.setTimeoutFn=YWe.bind(pa),e.clearTimeoutFn=KWe.bind(pa)):(e.setTimeoutFn=pa.setTimeout.bind(pa),e.clearTimeoutFn=pa.clearTimeout.bind(pa))}const QWe=1.33;function JWe(e){return typeof e=="string"?ZWe(e):Math.ceil((e.byteLength||e.size)*QWe)}function ZWe(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function eGe(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function tGe(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function Nie(){const e=_q(+new Date);return e!==wq?(xq=0,wq=e):e+"."+_q(xq++)}for(;US{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};GWe(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,WWe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Nie()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new cc(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class cc extends li{constructor(t,n){super(),GA(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=Lie(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $ie(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=cc.requestsCount++,cc.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=oGe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete cc.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}cc.requestsCount=0;cc.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Sq);else if(typeof addEventListener=="function"){const e="onpagehide"in pa?"pagehide":"unload";addEventListener(e,Sq,!1)}}function Sq(){for(let e in cc.requests)cc.requests.hasOwnProperty(e)&&cc.requests[e].abort()}const MU=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),HS=pa.WebSocket||pa.MozWebSocket,Eq=!0,lGe="arraybuffer",Cq=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class cGe extends OU{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Cq?{}:Lie(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Eq&&!Cq?n?new HS(t,n):new HS(t):new HS(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{Eq&&this.ws.send(o)}catch{}i&&MU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Nie()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!HS}}class uGe extends OU{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=qWe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=VWe();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&MU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const dGe={websocket:cGe,webtransport:uGe,polling:aGe},fGe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,hGe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function X5(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=fGe.exec(e||""),o={},s=14;for(;s--;)o[hGe[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=pGe(o,o.path),o.queryKey=mGe(o,o.query),o}function pGe(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function mGe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let Fie=class Fm extends li{constructor(t,n={}){super(),this.binaryType=lGe,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=X5(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=X5(n.host).host),GA(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=tGe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Mie,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new dGe[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Fm.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Fm.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Fm.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const p=new Error("probe error: "+h);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function a(){s("transport closed")}function c(){s("socket closed")}function u(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",c),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",c),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Fm.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Fm.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,zie=Object.prototype.toString,bGe=typeof Blob=="function"||typeof Blob<"u"&&zie.call(Blob)==="[object BlobConstructor]",xGe=typeof File=="function"||typeof File<"u"&&zie.call(File)==="[object FileConstructor]";function LU(e){return vGe&&(e instanceof ArrayBuffer||yGe(e))||bGe&&e instanceof Blob||xGe&&e instanceof File}function LE(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:gn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case gn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case gn.EVENT:case gn.BINARY_EVENT:this.onevent(t);break;case gn.ACK:case gn.BINARY_ACK:this.onack(t);break;case gn.DISCONNECT:this.ondisconnect();break;case gn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:gn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:gn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Fv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Fv.prototype.reset=function(){this.attempts=0};Fv.prototype.setMin=function(e){this.ms=e};Fv.prototype.setMax=function(e){this.max=e};Fv.prototype.setJitter=function(e){this.jitter=e};class Q5 extends li{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,GA(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Fv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||kGe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Fie(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=cl(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=cl(n,"error",o);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(cl(t,"ping",this.onping.bind(this)),cl(t,"data",this.ondata.bind(this)),cl(t,"error",this.onerror.bind(this)),cl(t,"close",this.onclose.bind(this)),cl(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){MU(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new jie(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ex={};function DE(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=gGe(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=ex[i]&&o in ex[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return a?c=new Q5(r,t):(ex[i]||(ex[i]=new Q5(r,t)),c=ex[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(DE,{Manager:Q5,Socket:jie,io:DE,connect:DE});class IGe{constructor(t){hm(this,"rpc");hm(this,"socket");this.options=t,this.socket=DE(t.url),this.rpc=new IU.JSONRPCClient(async n=>{const r=i=>{i.id===n.id&&(this.socket.off("response",r),this.rpc.receive(i))};this.socket.emit("request",n),this.socket.on("response",r)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(t,n){return await this.rpc.request(t,n)}}const NU={socketio:{name:"socket.io",constructor:IGe},ipc:{name:"Web Worker",constructor:BWe},native:{name:"Internal",constructor:FWe}};function RGe(e){return NU[e].constructor}const Uie=ie.first(ie.keys(NU));function PGe(){const[{renderer:e},t]=Zu();return C.jsx(C.Fragment,{children:C.jsx(aA,{editor:n=>C.jsx(bWe,{value:n}),icon:null,value:e,onChange:ie.debounce(n=>t(()=>({renderer:n})),300),addItemLabel:"Add Renderer",create:()=>({transport:Uie,url:"",disabled:!0}),extras:C.jsx(nf,{icon:C.jsx($Q,{}),sx:{ml:2},onClick:()=>t(()=>({renderer:LJ})),children:"Reset to Defaults"})})})}function OGe(e){const[{connections:t}]=lA(),n=iU(),[{remote:r}]=Zu(),i=ie.find(r,{url:e});return i&&!(i!=null&&i.disabled)?n({url:e})?"connected":t?"connecting":e?"error":"not-connected":"not-connected"}const MGe={connected:"success.light",connecting:"warning.light",error:"error.light","not-connected":"text.disabled"};function LGe({value:e,onValueChange:t}){const n=rFe(e.url),r=OGe(e.url);function i(o){t==null||t(zz(e,o))}return C.jsx(C.Fragment,{children:C.jsxs(En,{alignItems:"center",py:.5,children:[C.jsx(pne,{sx:{color:MGe[r]}}),C.jsx(ai,{}),C.jsxs(mt,{flex:1,children:[C.jsx(Xt,{children:n?`${n.name} ${n.version}`:ie.startCase(r)}),C.jsx(Xt,{variant:"body2",color:"text.secondary",children:(n==null?void 0:n.description)??((e==null?void 0:e.url)||"No URL")})]}),C.jsx(vf,{title:`${e.disabled?"Enable":"Disable"} Connection`,children:C.jsx(mt,{children:C.jsx(qg,{checked:!e.disabled,onChange:(o,s)=>i({disabled:!s})})})}),C.jsx(Aj,{trigger:o=>C.jsx(sg,{icon:C.jsx(jk,{}),label:"Edit Connection",onClick:o}),appBar:{children:C.jsx(kj,{children:"Edit Connection"})},children:C.jsxs(mt,{p:2.5,children:[C.jsx(Ew,{value:e.url,onChange:o=>i({url:o.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(jx,{placeholder:"Connection Type",items:ie.entries(NU).map(([o,{name:s}])=>({value:o,label:s})),fullWidth:!0,value:e.transport,onChange:o=>i({transport:o})})]})})]})})}function DGe(){const[{remote:e},t]=Zu();return C.jsx(C.Fragment,{children:C.jsx(aA,{editor:n=>C.jsx(LGe,{value:n}),icon:null,value:e,onChange:ie.debounce(n=>t(()=>({remote:n})),300),addItemLabel:"Add Solver",create:()=>({transport:Uie,url:"",disabled:!0}),extras:C.jsx(nf,{icon:C.jsx($Q,{}),sx:{ml:2},onClick:()=>t(()=>({remote:MJ})),children:"Reset to Defaults"})})})}const kq=e=>`${e}x`;function NGe(){const{controls:e,onChange:t,state:n}=bf(),[{playbackRate:r=1,acrylic:i,theme:o="light",accentColor:s="teal"},a]=Zu(),[c,u]=P.useState("general");function f(p){return C.jsx(Xt,{variant:"overline",color:"text.secondary",children:p})}function h(p){return C.jsx(Xt,{variant:"body1",children:p})}return C.jsx(BJ,{value:c,children:C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Options,{children:C.jsxs(jJ,{onChange:(p,g)=>u(g),children:[C.jsx(Zm,{label:"General",value:"general"}),C.jsx(Zm,{label:"Connections",value:"connections"}),C.jsx(Zm,{label:"Renderers",value:"renderers"}),C.jsx(Zm,{label:"Map Parsers",value:"map-parsers"})]})}),C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,children:C.jsx(Aw,{y:!0,children:C.jsxs(En,{vertical:!0,pt:6,children:[C.jsx(rg,{value:"general",children:C.jsxs(mt,{children:[f("Playback"),C.jsxs(En,{alignItems:"center",children:[h("Playback Rate"),C.jsx(ai,{flex:1}),C.jsx(Ube,{sx:{maxWidth:320,mr:2},marks:[.25,1,5].map(p=>({value:p*Pm,label:kq(p)})),step:.25*Pm,min:.25*Pm,max:5*Pm,valueLabelFormat:p=>kq(p/Pm),valueLabelDisplay:"auto",defaultValue:r,onChangeCommitted:(p,g)=>a(()=>({playbackRate:g}))})]}),f("UI"),C.jsxs(En,{alignItems:"center",children:[h("Acrylic"),C.jsx(ai,{flex:1}),C.jsx(qg,{defaultChecked:!!i,onChange:(p,g)=>a(()=>({acrylic:g}))})]}),C.jsxs(En,{alignItems:"center",children:[h("Dark Mode"),C.jsx(ai,{flex:1}),C.jsx(qg,{defaultChecked:o==="dark",onChange:(p,g)=>a(()=>({theme:g?"dark":"light"}))})]}),C.jsxs(En,{alignItems:"center",children:[h("Accent"),C.jsx(ai,{flex:1}),C.jsx(Ws,{value:s,items:ie.map(ie.keys(vSe),p=>({id:p,name:ie.startCase(p)})),showArrow:!0,onChange:p=>a(()=>({accentColor:p}))})]})]})}),C.jsx(rg,{value:"connections",children:C.jsxs(mt,{children:[f("Solvers"),C.jsx(DGe,{})]})}),C.jsx(rg,{value:"renderers",children:C.jsxs(mt,{children:[f("Renderers"),C.jsx(PGe,{})]})}),C.jsx(rg,{value:"map-parsers",children:C.jsxs(mt,{children:[f("Map Parsers"),C.jsx(BGe,{})]})})]})})})}),C.jsx(zn.Extras,{children:e})]})})}function BGe(){return C.jsx(Vg,{children:ie.keys(rU).map(e=>C.jsx(Fx,{children:C.jsx(rc,{primary:e,secondary:"Internal"})},e))})}function $Ge(){return P.useCallback(e=>({result:"",error:void 0,offset:0}),[])}function Hie(e){const t=mc(),{layer:n,setLayer:r}=kv(e),{playback:i,playbackTo:o,step:s=0}=(n==null?void 0:n.source)??{},a=ie.min([o,s])??0,c=!!o,u=i==="playing",[f,h]=[0,(o??1)-1];return P.useMemo(()=>{function p(S){r(Ca(n,w=>ie.set(w,"source",{...w==null?void 0:w.source,...S})))}const g={start:f,end:h,step:a,canPlay:c&&!u&&a0},v=S=>ie.clamp(a+S,f,h);return{playing:i==="playing",...g,...{play:()=>{t("Playback started"),p({playback:"playing",step:v(1)})},pause:(S=0)=>{t("Playback paused"),p({playback:"paused",step:v(S)})},stepTo:(S=0)=>p({step:S}),stop:()=>p({step:f,playback:"paused"}),stepForward:()=>p({step:v(1)}),stepBackward:()=>p({step:v(-1)}),tick:(S=1)=>p({playback:"playing",step:v(S)})}}},[h,i,u,c,f,a,n,r])}function FGe(e,t){let n=!1;return requestAnimationFrame(async()=>{const r=await e();n||t(r)}),()=>{n=!0}}function zGe({layer:e}){const{step:t,tick:n,end:r,playing:i,canPause:o,canPlay:s,canStepBackward:a,canStepForward:c,canStop:u,pause:f,play:h,stepBackward:p,stepForward:g,stop:v}=Hie(e==null?void 0:e.key);fwe();const y=mc(),[{playbackRate:S=1}]=Zu(),w=$Ge(),b=P.useCallback((x,E)=>C.jsx($z,{primary:x,secondary:`Step ${t+E}`}),[t]);return P.useEffect(()=>{if(i)return t{for(const x of ie.range(S)){const E=w(t+x);if(E.result||E.error)return{...E,offset:x}}return{result:"",offset:0,error:void 0}},({result:x,offset:E,error:I})=>{I?(y(`${ie.trimEnd(I,".")}.`,`${E}`),f()):x?(y(`Breakpoint hit: ${x}.`,`${E}`),f(E)):n(S)}):f()},[b,i,r,t,f,n,y,w,S]),C.jsxs(C.Fragment,{children:[C.jsx(sg,{label:"step-backward",icon:C.jsx(N1e,{}),onClick:p,disabled:!a}),C.jsx(sg,{...i?{label:"pause",icon:C.jsx(R1e,{}),onClick:()=>f(),disabled:!o}:{label:"play",icon:C.jsx(O1e,{}),onClick:()=>h(),disabled:!s,color:"primary"}}),C.jsx(sg,{label:"step-forward",icon:C.jsx(D1e,{}),onClick:g,disabled:!c}),C.jsx(sg,{label:"stop",icon:C.jsx(B1e,{}),onClick:v,disabled:!u})]})}const VA=0,Sf=1,zv=2,Wie=4;function Gie(e,t){return n=>e(t(n))}function jGe(e,t){return t(e)}function Vie(e,t){return n=>e(t,n)}function Aq(e,t){return()=>e(t)}function qA(e,t){return t(e),e}function kr(...e){return e}function UGe(e){e()}function Iq(e){return()=>e}function HGe(...e){return()=>{e.map(UGe)}}function BU(e){return e!==void 0}function jv(){}function qn(e,t){return e(Sf,t)}function rn(e,t){e(VA,t)}function $U(e){e(zv)}function js(e){return e(Wie)}function Et(e,t){return qn(e,Vie(t,VA))}function Vu(e,t){const n=e(Sf,r=>{n(),t(r)});return n}function Sn(){const e=[];return(t,n)=>{switch(t){case zv:e.splice(0,e.length);return;case Sf:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case VA:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function tt(e){let t=e;const n=Sn();return(r,i)=>{switch(r){case Sf:i(t);break;case VA:t=i;break;case Wie:return t}return n(r,i)}}function WGe(e){let t,n;const r=()=>t&&t();return function(i,o){switch(i){case Sf:return o?n===o?void 0:(r(),n=o,t=qn(e,o),t):(r(),jv);case zv:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function Ys(e){return qA(Sn(),t=>Et(e,t))}function Fo(e,t){return qA(tt(t),n=>Et(e,n))}function GGe(...e){return t=>e.reduceRight(jGe,t)}function Oe(e,...t){const n=GGe(...t);return(r,i)=>{switch(r){case Sf:return qn(e,n(i));case zv:$U(e);return}}}function qie(e,t){return e===t}function Sr(e=qie){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function Ht(e){return t=>n=>{e(n)&&t(n)}}function ut(e){return t=>Gie(t,e)}function wu(e){return t=>()=>t(e)}function Ql(e,t){return n=>r=>n(t=e(t,r))}function fv(e){return t=>n=>{e>0?e--:t(n)}}function Dd(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Rq(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function un(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const a=Math.pow(2,s);qn(o,c=>{const u=n;n=n|a,t[s]=c,u!==i&&n===i&&r&&(r(),r=null)})}),o=>s=>{const a=()=>o([s].concat(t));n===i?a():r=a}}function Pq(...e){return function(t,n){switch(t){case Sf:return HGe(...e.map(r=>qn(r,n)));case zv:return;default:throw new Error(`unrecognized action ${t}`)}}}function Ut(e,t=qie){return Oe(e,Sr(t))}function Ii(...e){const t=Sn(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const a=Math.pow(2,s);qn(o,c=>{n[s]=c,r=r|a,r===i&&rn(t,n)})}),function(o,s){switch(o){case Sf:return r===i&&s(n),qn(t,s);case zv:return $U(t);default:throw new Error(`unrecognized action ${o}`)}}}function Wn(e,t=[],{singleton:n}={singleton:!0}){return{id:VGe(),constructor:e,dependencies:t,singleton:n}}const VGe=()=>Symbol();function qGe(e){const t=new Map,n=({id:r,constructor:i,dependencies:o,singleton:s})=>{if(s&&t.has(r))return t.get(r);const a=i(o.map(c=>n(c)));return s&&t.set(r,a),a};return n(e)}function XGe(e,t){const n={},r={};let i=0;const o=e.length;for(;i(S[w]=b=>{const x=y[t.methods[w]];rn(x,b)},S),{})}function f(y){return s.reduce((S,w)=>(S[w]=WGe(y[t.events[w]]),S),{})}return{Component:de.forwardRef((y,S)=>{const{children:w,...b}=y,[x]=de.useState(()=>qA(qGe(e),I=>c(I,b))),[E]=de.useState(Aq(f,x));return WS(()=>{for(const I of s)I in b&&qn(E[I],b[I]);return()=>{Object.values(E).map($U)}},[b,E,x]),WS(()=>{c(x,b)}),de.useImperativeHandle(S,Iq(u(x))),de.createElement(a.Provider,{value:x},n?de.createElement(n,XGe([...r,...i,...s],b),w):w)}),usePublisher:y=>de.useCallback(Vie(rn,de.useContext(a)[y]),[y]),useEmitterValue:y=>{const w=de.useContext(a)[y],[b,x]=de.useState(Aq(js,w));return WS(()=>qn(w,E=>{E!==b&&x(Iq(E))}),[w,b]),b},useEmitter:(y,S)=>{const b=de.useContext(a)[y];WS(()=>qn(b,S),[S,b])}}}const YGe=typeof document<"u"?de.useLayoutEffect:de.useEffect,KGe=YGe;var Ks=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Ks||{});const QGe={0:"debug",1:"log",2:"warn",3:"error"},JGe=()=>typeof globalThis>"u"?window:globalThis,Ef=Wn(()=>{const e=tt(3);return{log:tt((n,r,i=1)=>{var o;const s=(o=JGe().VIRTUOSO_LOG_LEVEL)!=null?o:js(e);i>=s&&console[QGe[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function FU(e,t=!0){const n=de.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=de.useMemo(()=>new ResizeObserver(o=>{const s=o[0].target;s.offsetParent!==null&&e(s)}),[e]);r=o=>{o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function dm(e,t=!0){return FU(e,t).callbackRef}function ZGe(e,t,n,r,i,o,s){const a=de.useCallback(c=>{const u=e9e(c.children,t,"offsetHeight",i);let f=c.parentElement;for(;!f.dataset.virtuosoScroller;)f=f.parentElement;const h=f.lastElementChild.dataset.viewportType==="window",p=s?s.scrollTop:h?window.pageYOffset||document.documentElement.scrollTop:f.scrollTop,g=s?s.scrollHeight:h?document.documentElement.scrollHeight:f.scrollHeight,v=s?s.offsetHeight:h?window.innerHeight:f.offsetHeight;r({scrollTop:Math.max(p,0),scrollHeight:g,viewportHeight:v}),o==null||o(t9e("row-gap",getComputedStyle(c).rowGap,i)),u!==null&&e(u)},[e,t,i,o,s,r]);return FU(a,n)}function e9e(e,t,n,r){const i=e.length;if(i===0)return null;const o=[];for(let s=0;s{const p=h.target,g=p===window||p===document,v=g?window.pageYOffset||document.documentElement.scrollTop:p.scrollTop,y=g?document.documentElement.scrollHeight:p.scrollHeight,S=g?window.innerHeight:p.offsetHeight,w=()=>{e({scrollTop:Math.max(v,0),scrollHeight:y,viewportHeight:S})};h.suppressFlushSync?w():Jm.flushSync(w),s.current!==null&&(v===s.current||v<=0||v===y-S)&&(s.current=null,t(!0),a.current&&(clearTimeout(a.current),a.current=null))},[e,t]);de.useEffect(()=>{const h=i||o.current;return r(i||o.current),c({target:h,suppressFlushSync:!0}),h.addEventListener("scroll",c,{passive:!0}),()=>{r(null),h.removeEventListener("scroll",c)}},[o,c,n,r,i]);function u(h){const p=o.current;if(!p||"offsetHeight"in p&&p.offsetHeight===0)return;const g=h.behavior==="smooth";let v,y,S;p===window?(y=Math.max(uf(document.documentElement,"height"),document.documentElement.scrollHeight),v=window.innerHeight,S=document.documentElement.scrollTop):(y=p.scrollHeight,v=uf(p,"height"),S=p.scrollTop);const w=y-v;if(h.top=Math.ceil(Math.max(Math.min(w,h.top),0)),Yie(v,y)||h.top===S){e({scrollTop:S,scrollHeight:y,viewportHeight:v}),g&&t(!0);return}g?(s.current=h.top,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{a.current=null,s.current=null,t(!0)},1e3)):s.current=null,p.scrollTo(h)}function f(h){o.current.scrollBy(h)}return{scrollerRef:o,scrollByCallback:f,scrollToCallback:u}}const Wo=Wn(()=>{const e=Sn(),t=Sn(),n=tt(0),r=Sn(),i=tt(0),o=Sn(),s=Sn(),a=tt(0),c=tt(0),u=tt(0),f=tt(0),h=Sn(),p=Sn(),g=tt(!1);return Et(Oe(e,ut(({scrollTop:v})=>v)),t),Et(Oe(e,ut(({scrollHeight:v})=>v)),s),Et(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:a,fixedHeaderHeight:c,fixedFooterHeight:u,footerHeight:f,scrollHeight:s,smoothScrollTargetReached:r,scrollTo:h,scrollBy:p,statefulScrollTop:i,deviation:n,scrollingInProgress:g}},[],{singleton:!0}),ow={lvl:0};function Qie(e,t,n,r=ow,i=ow){return{k:e,v:t,lvl:n,l:r,r:i}}function rr(e){return e===ow}function Ag(){return ow}function J5(e,t){if(rr(e))return ow;const{k:n,l:r,r:i}=e;if(t===n){if(rr(r))return i;if(rr(i))return r;{const[o,s]=Jie(r);return NE(wi(e,{k:o,v:s,l:Zie(r)}))}}else return tt&&(a=a.concat(Z5(o,t,n))),r>=t&&r<=n&&a.push({k:r,v:i}),r<=n&&(a=a.concat(Z5(s,t,n))),a}function yp(e){return rr(e)?[]:[...yp(e.l),{k:e.k,v:e.v},...yp(e.r)]}function Jie(e){return rr(e.r)?[e.k,e.v]:Jie(e.r)}function Zie(e){return rr(e.r)?e.l:NE(wi(e,{r:Zie(e.r)}))}function wi(e,t){return Qie(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function H$(e){return rr(e)||e.lvl>e.r.lvl}function Oq(e){return e4(toe(e))}function NE(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(H$(t))return toe(wi(e,{lvl:r-1}));if(!rr(t)&&!rr(t.r))return wi(t.r,{l:wi(t,{r:t.r.l}),r:wi(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(H$(e))return e4(wi(e,{lvl:r-1}));if(!rr(n)&&!rr(n.l)){const i=n.l,o=H$(i)?n.lvl-1:n.lvl;return wi(i,{l:wi(e,{r:i.l,lvl:r-1}),r:e4(wi(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function XA(e,t,n){if(rr(e))return[];const r=Rl(e,t)[0];return n9e(Z5(e,r,n))}function eoe(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const o=[];for(let s=1;s({index:t,value:n}))}function e4(e){const{r:t,lvl:n}=e;return!rr(t)&&!rr(t.r)&&t.lvl===n&&t.r.lvl===n?wi(t,{l:wi(e,{r:t.l}),lvl:n+1}):e}function toe(e){const{l:t}=e;return!rr(t)&&t.lvl===e.lvl?wi(t,{r:wi(e,{l:t.r})}):e}function pT(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),s=e[o],a=n(s,t);if(a===0)return o;if(a===-1){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function noe(e,t,n){return e[pT(e,t,n)]}function r9e(e,t,n,r){const i=pT(e,t,r),o=pT(e,n,r,i);return e.slice(i,o+1)}const zU=Wn(()=>({recalcInProgress:tt(!1)}),[],{singleton:!0});function i9e(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function Mq(e,t){let n=0,r=0;for(;n=f||i===p)&&(e=J5(e,f)):(u=p!==i,c=!0),h>s&&s>=f&&p!==i&&(e=$s(e,s+1,p));u&&(e=$s(e,o,i))}return[e,n]}function s9e(){return{offsetTree:[],sizeTree:Ag(),groupOffsetTree:Ag(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function jU({index:e},t){return t===e?0:t0&&(t=Math.max(t,noe(e,r,jU).offset)),eoe(r9e(e,t,n,a9e),l9e)}function t4(e,t,n,r){let i=e,o=0,s=0,a=0,c=0;if(t!==0){c=pT(i,t-1,jU),a=i[c].offset;const f=Rl(n,t-1);o=f[0],s=f[1],i.length&&i[c].size===Rl(n,t)[1]&&(c-=1),i=i.slice(0,c+1)}else i=[];for(const{start:u,value:f}of XA(n,t,1/0)){const h=u-o,p=h*s+a+h*r;i.push({offset:p,size:f,index:u}),o=u,a=p,s=f}return{offsetTree:i,lastIndex:o,lastOffset:a,lastSize:s}}function u9e(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,Ks.DEBUG);const o=e.sizeTree;let s=o,a=0;if(n.length>0&&rr(o)&&t.length===2){const p=t[0].size,g=t[1].size;s=n.reduce((v,y)=>$s($s(v,y,p),y+1,g),s)}else[s,a]=o9e(s,t);if(s===o)return e;const{offsetTree:c,lastIndex:u,lastSize:f,lastOffset:h}=t4(e.offsetTree,a,s,i);return{sizeTree:s,offsetTree:c,lastIndex:u,lastOffset:h,lastSize:f,groupOffsetTree:n.reduce((p,g)=>$s(p,g,aw(g,c,i)),Ag()),groupIndices:n}}function aw(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:o}=noe(t,e,jU),s=e-i,a=o*s+(s-1)*n+r;return a>0?a+n:a}function d9e(e){return typeof e.groupIndex<"u"}function roe(e,t,n){if(d9e(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=ioe(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function ioe(e,t){if(!YA(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function YA(e){return!rr(e.groupOffsetTree)}function f9e(e){return yp(e).map(({k:t,v:n},r,i)=>{const o=i[r+1],s=o?o.k-1:1/0;return{startIndex:t,endIndex:s,size:n}})}const h9e={offsetHeight:"height",offsetWidth:"width"},bc=Wn(([{log:e},{recalcInProgress:t}])=>{const n=Sn(),r=Sn(),i=Fo(r,0),o=Sn(),s=Sn(),a=tt(0),c=tt([]),u=tt(void 0),f=tt(void 0),h=tt((I,A)=>uf(I,h9e[A])),p=tt(void 0),g=tt(0),v=s9e(),y=Fo(Oe(n,un(c,e,g),Ql(u9e,v),Sr()),v),S=Fo(Oe(c,Sr(),Ql((I,A)=>({prev:I.current,current:A}),{prev:[],current:[]}),ut(({prev:I})=>I)),[]);Et(Oe(c,Ht(I=>I.length>0),un(y,g),ut(([I,A,k])=>{const O=I.reduce((D,N,H)=>$s(D,N,aw(N,A.offsetTree,k)||H),Ag());return{...A,groupIndices:I,groupOffsetTree:O}})),y),Et(Oe(r,un(y),Ht(([I,{lastIndex:A}])=>I[{startIndex:I,endIndex:A,size:k}])),n),Et(u,f);const w=Fo(Oe(u,ut(I=>I===void 0)),!0);Et(Oe(f,Ht(I=>I!==void 0&&rr(js(y).sizeTree)),ut(I=>[{startIndex:0,endIndex:0,size:I}])),n);const b=Ys(Oe(n,un(y),Ql(({sizes:I},[A,k])=>({changed:k!==I,sizes:k}),{changed:!1,sizes:v}),ut(I=>I.changed)));qn(Oe(a,Ql((I,A)=>({diff:I.prev-A,prev:A}),{diff:0,prev:0}),ut(I=>I.diff)),I=>{const{groupIndices:A}=js(y);if(I>0)rn(t,!0),rn(o,I+Mq(I,A));else if(I<0){const k=js(S);k.length>0&&(I-=Mq(-I,k)),rn(s,I)}}),qn(Oe(a,un(e)),([I,A])=>{I<0&&A("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:a},Ks.ERROR)});const x=Ys(o);Et(Oe(o,un(y),ut(([I,A])=>{const k=A.groupIndices.length>0,O=[],D=A.lastSize;if(k){const N=sw(A.sizeTree,0);let H=0,G=0;for(;H{let W=F.ranges;return F.prevSize!==0&&(W=[...F.ranges,{startIndex:F.prevIndex,endIndex:j+I-1,size:F.prevSize}]),{ranges:W,prevIndex:j+I,prevSize:V}},{ranges:O,prevIndex:I,prevSize:0}).ranges}return yp(A.sizeTree).reduce((N,{k:H,v:G})=>({ranges:[...N.ranges,{startIndex:N.prevIndex,endIndex:H+I-1,size:N.prevSize}],prevIndex:H+I,prevSize:G}),{ranges:[],prevIndex:0,prevSize:D}).ranges})),n);const E=Ys(Oe(s,un(y,g),ut(([I,{offsetTree:A},k])=>{const O=-I;return aw(O,A,k)})));return Et(Oe(s,un(y,g),ut(([I,A,k])=>{if(A.groupIndices.length>0){if(rr(A.sizeTree))return A;let D=Ag();const N=js(S);let H=0,G=0,z=0;for(;H<-I;){z=N[G];const F=N[G+1]-z-1;G++,H+=F+1}if(D=yp(A.sizeTree).reduce((F,{k:j,v:V})=>$s(F,Math.max(0,j+I),V),D),H!==-I){const F=sw(A.sizeTree,z);D=$s(D,0,F);const j=Rl(A.sizeTree,-I+1)[1];D=$s(D,1,j)}return{...A,sizeTree:D,...t4(A.offsetTree,0,D,k)}}else{const D=yp(A.sizeTree).reduce((N,{k:H,v:G})=>$s(N,Math.max(0,H+I),G),Ag());return{...A,sizeTree:D,...t4(A.offsetTree,0,D,k)}}})),y),{data:p,totalCount:r,sizeRanges:n,groupIndices:c,defaultItemSize:f,fixedItemSize:u,unshiftWith:o,shiftWith:s,shiftWithOffset:E,beforeUnshiftWith:x,firstItemIndex:a,gap:g,sizes:y,listRefresh:b,statefulTotalCount:i,trackItemSizes:w,itemSize:h}},kr(Ef,zU),{singleton:!0}),p9e=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function ooe(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!p9e)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const n_=Wn(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:o,scrollTo:s,smoothScrollTargetReached:a,headerHeight:c,footerHeight:u,fixedHeaderHeight:f,fixedFooterHeight:h},{log:p}])=>{const g=Sn(),v=tt(0);let y=null,S=null,w=null;function b(){y&&(y(),y=null),w&&(w(),w=null),S&&(clearTimeout(S),S=null),rn(i,!1)}return Et(Oe(g,un(e,o,t,v,c,u,p),un(r,f,h),ut(([[x,E,I,A,k,O,D,N],H,G,z])=>{const L=ooe(x),{align:F,behavior:j,offset:V}=L,W=A-1,K=roe(L,E,W);let X=aw(K,E.offsetTree,H)+O;F==="end"?(X+=G+Rl(E.sizeTree,K)[1]-I+z,K===W&&(X+=D)):F==="center"?X+=(G+Rl(E.sizeTree,K)[1]-I+z)/2:X-=k,V&&(X+=V);const Q=re=>{b(),re?(N("retrying to scroll to",{location:x},Ks.DEBUG),rn(g,x)):N("list did not change, scroll successful",{},Ks.DEBUG)};if(b(),j==="smooth"){let re=!1;w=qn(n,ce=>{re=re||ce}),y=Vu(a,()=>{Q(re)})}else y=Vu(Oe(n,m9e(150)),Q);return S=setTimeout(()=>{b()},1200),rn(i,!0),N("scrolling from index to",{index:K,top:X,behavior:j},Ks.DEBUG),{top:X,behavior:j}})),s),{scrollToIndex:g,topListHeight:v}},kr(bc,Wo,Ef),{singleton:!0});function m9e(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const lw="up",n1="down",g9e="none",v9e={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},y9e=0,r_=Wn(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:o}])=>{const s=tt(!1),a=tt(!0),c=Sn(),u=Sn(),f=tt(4),h=tt(y9e),p=Fo(Oe(Pq(Oe(Ut(t),fv(1),wu(!0)),Oe(Ut(t),fv(1),wu(!1),Rq(100))),Sr()),!1),g=Fo(Oe(Pq(Oe(o,wu(!0)),Oe(o,wu(!1),Rq(200))),Sr()),!1);Et(Oe(Ii(Ut(t),Ut(h)),ut(([b,x])=>b<=x),Sr()),a),Et(Oe(a,Dd(50)),u);const v=Ys(Oe(Ii(e,Ut(n),Ut(r),Ut(i),Ut(f)),Ql((b,[{scrollTop:x,scrollHeight:E},I,A,k,O])=>{const D=x+I-E>-O,N={viewportHeight:I,scrollTop:x,scrollHeight:E};if(D){let G,z;return x>b.state.scrollTop?(G="SCROLLED_DOWN",z=b.state.scrollTop-x):(G="SIZE_DECREASED",z=b.state.scrollTop-x||b.scrollTopDelta),{atBottom:!0,state:N,atBottomBecause:G,scrollTopDelta:z}}let H;return N.scrollHeight>b.state.scrollHeight?H="SIZE_INCREASED":Ib&&b.atBottom===x.atBottom))),y=Fo(Oe(e,Ql((b,{scrollTop:x,scrollHeight:E,viewportHeight:I})=>{if(Yie(b.scrollHeight,E))return{scrollTop:x,scrollHeight:E,jump:0,changed:!1};{const A=E-(x+I)<1;return b.scrollTop!==x&&A?{scrollHeight:E,scrollTop:x,jump:b.scrollTop-x,changed:!0}:{scrollHeight:E,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),Ht(b=>b.changed),ut(b=>b.jump)),0);Et(Oe(v,ut(b=>b.atBottom)),s),Et(Oe(s,Dd(50)),c);const S=tt(n1);Et(Oe(e,ut(({scrollTop:b})=>b),Sr(),Ql((b,x)=>js(g)?{direction:b.direction,prevScrollTop:x}:{direction:xb.direction)),S),Et(Oe(e,Dd(50),wu(g9e)),S);const w=tt(0);return Et(Oe(p,Ht(b=>!b),wu(0)),w),Et(Oe(t,Dd(100),un(p),Ht(([b,x])=>!!x),Ql(([b,x],[E])=>[x,E],[0,0]),ut(([b,x])=>x-b)),w),{isScrolling:p,isAtTop:a,isAtBottom:s,atBottomState:v,atTopStateChange:u,atBottomStateChange:c,scrollDirection:S,atBottomThreshold:f,atTopThreshold:h,scrollVelocity:w,lastJumpDueToItemResize:y}},kr(Wo)),Cf=Wn(([{log:e}])=>{const t=tt(!1),n=Ys(Oe(t,Ht(r=>r),Sr()));return qn(t,r=>{r&&js(e)("props updated",{},Ks.DEBUG)}),{propsReady:t,didMount:n}},kr(Ef),{singleton:!0});function UU(e,t){e==0?t():requestAnimationFrame(()=>UU(e-1,t))}function HU(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const i_=Wn(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i},{didMount:o}])=>{const s=tt(!0),a=tt(0),c=tt(!1);return Et(Oe(o,un(a),Ht(([u,f])=>!!f),wu(!1)),s),qn(Oe(Ii(t,o),un(s,e,n,c),Ht(([[,u],f,{sizeTree:h},p,g])=>u&&(!rr(h)||BU(p))&&!f&&!g),un(a)),([,u])=>{rn(c,!0),UU(3,()=>{Vu(r,()=>rn(s,!0)),rn(i,u)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:a}},kr(bc,Wo,n_,Cf),{singleton:!0});function Lq(e){return e?e==="smooth"?"smooth":"auto":!1}const b9e=(e,t)=>typeof e=="function"?Lq(e(t)):t&&Lq(e),x9e=Wn(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:o},{propsReady:s,didMount:a},{log:c},{scrollingInProgress:u}])=>{const f=tt(!1),h=Sn();let p=null;function g(y){rn(i,{index:"LAST",align:"end",behavior:y})}qn(Oe(Ii(Oe(Ut(e),fv(1)),a),un(Ut(f),n,o,u),ut(([[y,S],w,b,x,E])=>{let I=S&&x,A="auto";return I&&(A=b9e(w,b||E),I=I&&!!A),{totalCount:y,shouldFollow:I,followOutputBehavior:A}}),Ht(({shouldFollow:y})=>y)),({totalCount:y,followOutputBehavior:S})=>{p&&(p(),p=null),p=Vu(t,()=>{js(c)("following output to ",{totalCount:y},Ks.DEBUG),g(S),p=null})});function v(y){const S=Vu(r,w=>{y&&!w.atBottom&&w.notAtBottomBecause==="SIZE_INCREASED"&&!p&&(js(c)("scrolling to bottom due to increased size",{},Ks.DEBUG),g("auto"))});setTimeout(S,100)}return qn(Oe(Ii(Ut(f),e,s),Ht(([y,,S])=>y&&S),Ql(({value:y},[,S])=>({refreshed:y===S,value:S}),{refreshed:!1,value:0}),Ht(({refreshed:y})=>y),un(f,e)),([,y])=>{v(y!==!1)}),qn(h,()=>{v(js(f)!==!1)}),qn(Ii(Ut(f),r),([y,S])=>{y&&!S.atBottom&&S.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&g("auto")}),{followOutput:f,autoscrollToBottom:h}},kr(bc,r_,n_,i_,Cf,Ef,Wo));function w9e(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const soe=Wn(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const o=Sn(),s=Sn(),a=Ys(Oe(o,ut(w9e)));return Et(Oe(a,ut(c=>c.totalCount)),e),Et(Oe(a,ut(c=>c.groupIndices)),t),Et(Oe(Ii(r,n,i),Ht(([c,u])=>YA(u)),ut(([c,u,f])=>Rl(u.groupOffsetTree,Math.max(c-f,0),"v")[0]),Sr(),ut(c=>[c])),s),{groupCounts:o,topItemsIndexes:s}},kr(bc,Wo));function cw(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function aoe(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const mT="top",gT="bottom",Dq="none";function Nq(e,t,n){return typeof e=="number"?n===lw&&t===mT||n===n1&&t===gT?e:0:n===lw?t===mT?e.main:e.reverse:t===gT?e.main:e.reverse}function Bq(e,t){return typeof e=="number"?e:e[t]||0}const WU=Wn(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const o=Sn(),s=tt(0),a=tt(0),c=tt(0),u=Fo(Oe(Ii(Ut(e),Ut(t),Ut(r),Ut(o,cw),Ut(c),Ut(s),Ut(i),Ut(n),Ut(a)),ut(([f,h,p,[g,v],y,S,w,b,x])=>{const E=f-b,I=S+w,A=Math.max(p-E,0);let k=Dq;const O=Bq(x,mT),D=Bq(x,gT);return g-=b,g+=p+w,v+=p+w,v-=b,g>f+I-O&&(k=lw),vf!=null),Sr(cw)),[0,0]);return{listBoundary:o,overscan:c,topListHeight:s,increaseViewportBy:a,visibleRange:u}},kr(Wo),{singleton:!0});function _9e(e,t,n){if(YA(t)){const r=ioe(e,t);return[{index:Rl(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const W$={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function $q(e,t,n){if(e.length===0)return[];if(!YA(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,o=[],s=XA(t.groupOffsetTree,r,i);let a,c=0;for(const u of e){(!a||a.end0){u=e[0].offset;const y=e[e.length-1];f=y.offset+y.size}const h=n-c,p=a+h*s+(h-1)*r,g=u,v=p-f;return{items:$q(e,i,o),topItems:$q(t,i,o),topListHeight:t.reduce((y,S)=>S.size+y,0),offsetTop:u,offsetBottom:v,top:g,bottom:f,totalCount:n,firstItemIndex:o}}function loe(e,t,n,r,i,o){let s=0;if(n.groupIndices.length>0)for(const f of n.groupIndices){if(f-s>=e)break;s++}const a=e+s,c=HU(t,a),u=Array.from({length:a}).map((f,h)=>({index:h+c,size:0,offset:0,data:o[h+c]}));return BE(u,[],a,i,n,r)}const fm=Wn(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},o,{visibleRange:s,listBoundary:a,topListHeight:c},{scrolledToInitialItem:u,initialTopMostItemIndex:f},{topListHeight:h},p,{didMount:g},{recalcInProgress:v}])=>{const y=tt([]),S=tt(0),w=Sn();Et(o.topItemsIndexes,y);const b=Fo(Oe(Ii(g,v,Ut(s,cw),Ut(t),Ut(e),Ut(f),u,Ut(y),Ut(r),Ut(i),n),Ht(([A,k,,O,,,,,,,D])=>{const N=D&&D.length!==O;return A&&!k&&!N}),ut(([,,[A,k],O,D,N,H,G,z,L,F])=>{const j=D,{sizeTree:V,offsetTree:W}=j,K=js(S);if(O===0)return{...W$,totalCount:O};if(A===0&&k===0)return K===0?{...W$,totalCount:O}:loe(K,N,D,z,L,F||[]);if(rr(V))return K>0?null:BE(_9e(HU(N,O),j,F),[],O,L,j,z);const X=[];if(G.length>0){const se=G[0],J=G[G.length-1];let ae=0;for(const le of XA(V,se,J)){const he=le.value,pe=Math.max(le.start,se),ve=Math.min(le.end,J);for(let ye=pe;ye<=ve;ye++)X.push({index:ye,size:he,offset:ae,data:F&&F[ye]}),ae+=he}}if(!H)return BE([],X,O,L,j,z);const Q=G.length>0?G[G.length-1]+1:0,re=c9e(W,A,k,Q);if(re.length===0)return null;const ce=O-1,ue=qA([],se=>{for(const J of re){const ae=J.value;let le=ae.offset,he=J.start;const pe=ae.size;if(ae.offset=k);ye++)se.push({index:ye,size:pe,offset:le,data:F&&F[ye]}),le+=pe+L}});return BE(ue,X,O,L,j,z)}),Ht(A=>A!==null),Sr()),W$);Et(Oe(n,Ht(BU),ut(A=>A==null?void 0:A.length)),t),Et(Oe(b,ut(A=>A.topListHeight)),h),Et(h,c),Et(Oe(b,ut(A=>[A.top,A.bottom])),a),Et(Oe(b,ut(A=>A.items)),w);const x=Ys(Oe(b,Ht(({items:A})=>A.length>0),un(t,n),Ht(([{items:A},k])=>A[A.length-1].originalIndex===k-1),ut(([,A,k])=>[A-1,k]),Sr(cw),ut(([A])=>A))),E=Ys(Oe(b,Dd(200),Ht(({items:A,topItems:k})=>A.length>0&&A[0].originalIndex===k.length),ut(({items:A})=>A[0].index),Sr())),I=Ys(Oe(b,Ht(({items:A})=>A.length>0),ut(({items:A})=>{let k=0,O=A.length-1;for(;A[k].type==="group"&&kk;)O--;return{startIndex:A[k].index,endIndex:A[O].index}}),Sr(aoe)));return{listState:b,topItemsIndexes:y,endReached:x,startReached:E,rangeChanged:I,itemsRendered:w,initialItemCount:S,...p}},kr(bc,soe,WU,i_,n_,r_,Cf,zU),{singleton:!0}),S9e=Wn(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:o,listState:s},{didMount:a}])=>(Et(Oe(a,un(o),Ht(([,c])=>c!==0),un(i,e,t,r,n),ut(([[,c],u,f,h,p,g=[]])=>loe(c,u,f,h,p,g))),s),{}),kr(bc,i_,fm,Cf),{singleton:!0}),coe=Wn(([{scrollVelocity:e}])=>{const t=tt(!1),n=Sn(),r=tt(!1);return Et(Oe(e,un(r,t,n),Ht(([i,o])=>!!o),ut(([i,o,s,a])=>{const{exit:c,enter:u}=o;if(s){if(c(i,a))return!1}else if(u(i,a))return!0;return s}),Sr()),t),qn(Oe(Ii(t,e,n),un(r)),([[i,o,s],a])=>i&&a&&a.change&&a.change(o,s)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},kr(r_),{singleton:!0}),E9e=Wn(([{topItemsIndexes:e}])=>{const t=tt(0);return Et(Oe(t,Ht(n=>n>0),ut(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},kr(fm)),uoe=Wn(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const o=Sn(),s=Fo(Oe(Ii(e,r,t,n,i),ut(([a,c,u,f,h])=>a+c+u+f+h.offsetBottom+h.bottom)),0);return Et(Ut(s),o),{totalListHeight:s,totalListHeightChanged:o}},kr(Wo,fm),{singleton:!0});function doe(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const C9e=doe(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),T9e=Wn(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:o,scrollDirection:s,lastJumpDueToItemResize:a},{listState:c},{beforeUnshiftWith:u,shiftWithOffset:f,sizes:h,gap:p},{log:g},{recalcInProgress:v}])=>{const y=Ys(Oe(c,un(a),Ql(([,w,b,x],[{items:E,totalCount:I,bottom:A,offsetBottom:k},O])=>{const D=A+k;let N=0;return b===I&&w.length>0&&E.length>0&&(E[0].originalIndex===0&&w[0].originalIndex===0||(N=D-x,N!==0&&(N+=O))),[N,E,I,D]},[0,[],0,0]),Ht(([w])=>w!==0),un(t,s,r,o,g,v),Ht(([,w,b,x,,,E])=>!E&&!x&&w!==0&&b===lw),ut(([[w],,,,,b])=>(b("Upward scrolling compensation",{amount:w},Ks.DEBUG),w))));function S(w){w>0?(rn(e,{top:-w,behavior:"auto"}),rn(n,0)):(rn(n,0),rn(e,{top:-w,behavior:"auto"}))}return qn(Oe(y,un(n,i)),([w,b,x])=>{x&&C9e()?rn(n,b-w):S(-w)}),qn(Oe(Ii(Fo(i,!1),n,v),Ht(([w,b,x])=>!w&&!x&&b!==0),ut(([w,b])=>b),Dd(1)),S),Et(Oe(f,ut(w=>({top:-w}))),e),qn(Oe(u,un(h,p),ut(([w,{lastSize:b,groupIndices:x,sizeTree:E},I])=>{function A(k){return k*(b+I)}if(x.length===0)return A(w);{let k=0;const O=sw(E,0);let D=0,N=0;for(;Dw&&(k-=O,H=w-D+1),D+=H,k+=A(H),N++}return k}})),w=>{rn(n,w),requestAnimationFrame(()=>{rn(e,{top:w}),requestAnimationFrame(()=>{rn(n,0),rn(v,!1)})})}),{deviation:n}},kr(Wo,r_,fm,bc,Ef,zU)),k9e=Wn(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=tt(0);return qn(Oe(e,un(r),Ht(([,i])=>i!==0),ut(([,i])=>({top:i}))),i=>{Vu(Oe(n,fv(1),Ht(o=>o.items.length>1)),()=>{requestAnimationFrame(()=>{rn(t,i)})})}),{initialScrollTop:r}},kr(Cf,Wo,fm),{singleton:!0}),A9e=Wn(([{viewportHeight:e},{totalListHeight:t}])=>{const n=tt(!1),r=Fo(Oe(Ii(n,e,t),Ht(([i])=>i),ut(([,i,o])=>Math.max(0,i-o)),Dd(0),Sr()),0);return{alignToBottom:n,paddingTopAddition:r}},kr(Wo,uoe),{singleton:!0}),GU=Wn(([{scrollTo:e,scrollContainerState:t}])=>{const n=Sn(),r=Sn(),i=Sn(),o=tt(!1),s=tt(void 0);return Et(Oe(Ii(n,r),ut(([{viewportHeight:a,scrollTop:c,scrollHeight:u},{offsetTop:f}])=>({scrollTop:Math.max(0,c-f),scrollHeight:u,viewportHeight:a}))),t),Et(Oe(e,un(r),ut(([a,{offsetTop:c}])=>({...a,top:a.top+c}))),i),{useWindowScroll:o,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},kr(Wo)),I9e=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:o,...s}})=>er?{...s,behavior:i,align:o??"end"}:null,R9e=Wn(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:o,fixedHeaderHeight:s,fixedFooterHeight:a,scrollingInProgress:c},{scrollToIndex:u}])=>{const f=Sn();return Et(Oe(f,un(e,i,t,o,s,a,r),un(n),ut(([[h,p,g,v,y,S,w,b],x])=>{const{done:E,behavior:I,align:A,calculateViewLocation:k=I9e,...O}=h,D=roe(h,p,v-1),N=aw(D,p.offsetTree,x)+y+S,H=N+Rl(p.sizeTree,D)[1],G=b+S,z=b+g-w,L=k({itemTop:N,itemBottom:H,viewportTop:G,viewportBottom:z,locationParams:{behavior:I,align:A,...O}});return L?E&&Vu(Oe(c,Ht(F=>F===!1),fv(js(c)?1:2)),E):E&&E(),L}),Ht(h=>h!==null)),u),{scrollIntoView:f}},kr(bc,Wo,n_,fm,Ef),{singleton:!0}),P9e=Wn(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:a}])=>{const c=Sn(),u=tt(void 0),f=tt(null),h=tt(null);return Et(s,f),Et(a,h),qn(Oe(c,un(e,n,o,f,h)),([p,g,v,y,S,w])=>{const b=f9e(g.sizeTree);y&&S!==null&&w!==null&&(v=S.scrollTop-w.offsetTop),p({ranges:b,scrollTop:v})}),Et(Oe(u,Ht(BU),ut(O9e)),r),Et(Oe(i,un(u),Ht(([,p])=>p!==void 0),Sr(),ut(([,p])=>p.ranges)),t),{getState:c,restoreStateFrom:u}},kr(bc,Wo,i_,Cf,GU));function O9e(e){return{offset:e.scrollTop,index:0,align:"start"}}const M9e=Wn(([e,t,n,r,i,o,s,a,c,u])=>({...e,...t,...n,...r,...i,...o,...s,...a,...c,...u}),kr(WU,S9e,Cf,coe,uoe,k9e,A9e,GU,R9e,Ef)),L9e=Wn(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:o,data:s,firstItemIndex:a,groupIndices:c,statefulTotalCount:u,gap:f,sizes:h},{initialTopMostItemIndex:p,scrolledToInitialItem:g},v,y,S,{listState:w,topItemsIndexes:b,...x},{scrollToIndex:E},I,{topItemCount:A},{groupCounts:k},O])=>(Et(x.rangeChanged,O.scrollSeekRangeChanged),Et(Oe(O.windowViewportRect,ut(D=>D.visibleHeight)),v.viewportHeight),{totalCount:e,data:s,firstItemIndex:a,sizeRanges:t,initialTopMostItemIndex:p,scrolledToInitialItem:g,topItemsIndexes:b,topItemCount:A,groupCounts:k,fixedItemHeight:n,defaultItemHeight:r,gap:f,...S,statefulTotalCount:u,listState:w,scrollToIndex:E,trackItemSizes:i,itemSize:o,groupIndices:c,...x,...O,...v,sizes:h,...y}),kr(bc,i_,Wo,P9e,x9e,fm,n_,T9e,E9e,soe,M9e)),G$="-webkit-sticky",Fq="sticky",foe=doe(()=>{if(typeof document>"u")return Fq;const e=document.createElement("div");return e.style.position=G$,e.style.position===G$?G$:Fq});function hoe(e,t){const n=de.useRef(null),r=de.useCallback(a=>{if(a===null||!a.offsetParent)return;const c=a.getBoundingClientRect(),u=c.width;let f,h;if(t){const p=t.getBoundingClientRect(),g=c.top-p.top;f=p.height-Math.max(0,g),h=g+t.scrollTop}else f=window.innerHeight-Math.max(0,c.top),h=c.top+window.pageYOffset;n.current={offsetTop:h,visibleHeight:f,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:o}=FU(r),s=de.useCallback(()=>{r(o.current)},[r,o]);return de.useEffect(()=>{if(t){t.addEventListener("scroll",s);const a=new ResizeObserver(s);return a.observe(t),()=>{t.removeEventListener("scroll",s),a.unobserve(t)}}else return window.addEventListener("scroll",s),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s,t]),i}const poe=de.createContext(void 0),moe=de.createContext(void 0);function goe(e){return e}const D9e=Wn(()=>{const e=tt(c=>`Item ${c}`),t=tt(null),n=tt(c=>`Group ${c}`),r=tt({}),i=tt(goe),o=tt("div"),s=tt(jv),a=(c,u=null)=>Fo(Oe(r,ut(f=>f[c]),Sr()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:s,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}),N9e=Wn(([e,t])=>({...e,...t}),kr(L9e,D9e)),B9e=({height:e})=>de.createElement("div",{style:{height:e}}),$9e={position:foe(),zIndex:1,overflowAnchor:"none"},F9e={overflowAnchor:"none"},zq=de.memo(function({showTopList:t=!1}){const n=bn("listState"),r=wa("sizeRanges"),i=bn("useWindowScroll"),o=bn("customScrollParent"),s=wa("windowScrollContainerState"),a=wa("scrollContainerState"),c=o||i?s:a,u=bn("itemContent"),f=bn("context"),h=bn("groupContent"),p=bn("trackItemSizes"),g=bn("itemSize"),v=bn("log"),y=wa("gap"),{callbackRef:S}=ZGe(r,g,p,t?jv:c,v,y,o),[w,b]=de.useState(0);VU("deviation",L=>{w!==L&&b(L)});const x=bn("EmptyPlaceholder"),E=bn("ScrollSeekPlaceholder")||B9e,I=bn("ListComponent"),A=bn("ItemComponent"),k=bn("GroupComponent"),O=bn("computeItemKey"),D=bn("isSeeking"),N=bn("groupIndices").length>0,H=bn("paddingTopAddition"),G=bn("scrolledToInitialItem"),z=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop+H,paddingBottom:n.offsetBottom,marginTop:w,...G?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?de.createElement(x,Jo(x,f)):de.createElement(I,{...Jo(I,f),ref:S,style:z,"data-test-id":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(L=>{const F=L.originalIndex,j=O(F+n.firstItemIndex,L.data,f);return D?de.createElement(E,{...Jo(E,f),key:j,index:L.index,height:L.size,type:L.type||"item",...L.type==="group"?{}:{groupIndex:L.groupIndex}}):L.type==="group"?de.createElement(k,{...Jo(k,f),key:j,"data-index":F,"data-known-size":L.size,"data-item-index":L.index,style:$9e},h(L.index,f)):de.createElement(A,{...Jo(A,f),key:j,"data-index":F,"data-known-size":L.size,"data-item-index":L.index,"data-item-group-index":L.groupIndex,item:L.data,style:F9e},N?u(L.index,L.groupIndex,L.data,f):u(L.index,L.data,f))}))}),z9e={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},KA={width:"100%",height:"100%",position:"absolute",top:0},j9e={width:"100%",position:foe(),top:0,zIndex:1};function Jo(e,t){if(typeof e!="string")return{context:t}}const U9e=de.memo(function(){const t=bn("HeaderComponent"),n=wa("headerHeight"),r=bn("headerFooterTag"),i=dm(s=>n(uf(s,"height"))),o=bn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Jo(t,o))):null}),H9e=de.memo(function(){const t=bn("FooterComponent"),n=wa("footerHeight"),r=bn("headerFooterTag"),i=dm(s=>n(uf(s,"height"))),o=bn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Jo(t,o))):null});function voe({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...a}){const c=e("scrollContainerState"),u=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("scrollerRef"),p=n("context"),{scrollerRef:g,scrollByCallback:v,scrollToCallback:y}=Kie(c,f,u,h);return t("scrollTo",y),t("scrollBy",v),de.createElement(u,{ref:g,style:{...z9e,...o},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...Jo(u,p)},s)})}function yoe({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...a}){const c=e("windowScrollContainerState"),u=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("totalListHeight"),p=n("deviation"),g=n("customScrollParent"),v=n("context"),{scrollerRef:y,scrollByCallback:S,scrollToCallback:w}=Kie(c,f,u,jv,g);return KGe(()=>(y.current=g||window,()=>{y.current=null}),[y,g]),t("windowScrollTo",w),t("scrollBy",S),de.createElement(u,{style:{position:"relative",...o,...h!==0?{height:h+p}:{}},"data-virtuoso-scroller":!0,...a,...Jo(u,v)},s)})}const W9e=({children:e})=>{const t=de.useContext(poe),n=wa("viewportHeight"),r=wa("fixedItemHeight"),i=dm(Gie(n,o=>uf(o,"height")));return de.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),de.createElement("div",{style:KA,ref:i,"data-viewport-type":"element"},e)},G9e=({children:e})=>{const t=de.useContext(poe),n=wa("windowViewportRect"),r=wa("fixedItemHeight"),i=bn("customScrollParent"),o=hoe(n,i);return de.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),de.createElement("div",{ref:o,style:KA,"data-viewport-type":"window"},e)},V9e=({children:e})=>{const t=bn("TopItemListComponent"),n=bn("headerHeight"),r={...j9e,marginTop:`${n}px`},i=bn("context");return de.createElement(t||"div",{style:r,context:i},e)},q9e=de.memo(function(t){const n=bn("useWindowScroll"),r=bn("topItemsIndexes").length>0,i=bn("customScrollParent"),o=i||n?K9e:Y9e,s=i||n?G9e:W9e;return de.createElement(o,{...t},r&&de.createElement(V9e,null,de.createElement(zq,{showTopList:!0})),de.createElement(s,null,de.createElement(U9e,null),de.createElement(zq,null),de.createElement(H9e,null)))}),{Component:X9e,usePublisher:wa,useEmitterValue:bn,useEmitter:VU}=Xie(N9e,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},q9e),Y9e=voe({usePublisher:wa,useEmitterValue:bn,useEmitter:VU}),K9e=yoe({usePublisher:wa,useEmitterValue:bn,useEmitter:VU}),Q9e=X9e,jq={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},J9e={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:Uq,ceil:Hq,floor:vT,min:V$,max:r1}=Math;function Z9e(e){return{...J9e,items:e}}function Wq(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const o=n===null?null:n[i+e];return{index:i+e,data:o}})}function e7e(e,t){return e&&e.column===t.column&&e.row===t.row}function GS(e,t){return e&&e.width===t.width&&e.height===t.height}const t7e=Wn(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:o,scrollTo:s,smoothScrollTargetReached:a,scrollContainerState:c,footerHeight:u,headerHeight:f},h,p,{propsReady:g,didMount:v},{windowViewportRect:y,useWindowScroll:S,customScrollParent:w,windowScrollContainerState:b,windowScrollTo:x},E])=>{const I=tt(0),A=tt(0),k=tt(jq),O=tt({height:0,width:0}),D=tt({height:0,width:0}),N=Sn(),H=Sn(),G=tt(0),z=tt(null),L=tt({row:0,column:0}),F=Sn(),j=Sn(),V=tt(!1),W=tt(0),K=tt(!0),X=tt(!1);qn(Oe(v,un(W),Ht(([J,ae])=>!!ae)),()=>{rn(K,!1),rn(A,0)}),qn(Oe(Ii(v,K,D,O,W,X),Ht(([J,ae,le,he,,pe])=>J&&!ae&&le.height!==0&&he.height!==0&&!pe)),([,,,,J])=>{rn(X,!0),UU(1,()=>{rn(N,J)}),Vu(Oe(r),()=>{rn(n,[0,0]),rn(K,!0)})}),Et(Oe(j,Ht(J=>J!=null&&J.scrollTop>0),wu(0)),A),qn(Oe(v,un(j),Ht(([,J])=>J!=null)),([,J])=>{J&&(rn(O,J.viewport),rn(D,J==null?void 0:J.item),rn(L,J.gap),J.scrollTop>0&&(rn(V,!0),Vu(Oe(r,fv(1)),ae=>{rn(V,!1)}),rn(s,{top:J.scrollTop})))}),Et(Oe(O,ut(({height:J})=>J)),i),Et(Oe(Ii(Ut(O,GS),Ut(D,GS),Ut(L,(J,ae)=>J&&J.column===ae.column&&J.row===ae.row),Ut(r)),ut(([J,ae,le,he])=>({viewport:J,item:ae,gap:le,scrollTop:he}))),F),Et(Oe(Ii(Ut(I),t,Ut(L,e7e),Ut(D,GS),Ut(O,GS),Ut(z),Ut(A),Ut(V),Ut(K),Ut(W)),Ht(([,,,,,,,J])=>!J),ut(([J,[ae,le],he,pe,ve,ye,xe,,me,be])=>{const{row:Ze,column:Xe}=he,{height:ct,width:Bt}=pe,{width:Pe}=ve;if(xe===0&&(J===0||Pe===0))return jq;if(Bt===0){const Pt=HU(be,J),dt=Pt===0?Math.max(xe-1,0):Pt;return Z9e(Wq(Pt,dt,ye))}const ze=boe(Pe,Bt,Xe);let st,gt;me?ae===0&&le===0&&xe>0?(st=0,gt=xe-1):(st=ze*vT((ae+Ze)/(ct+Ze)),gt=ze*Hq((le+Ze)/(ct+Ze))-1,gt=V$(J-1,r1(gt,ze-1)),st=V$(gt,r1(0,st))):(st=0,gt=-1);const vt=Wq(st,gt,ye),{top:_e,bottom:je}=Gq(ve,he,pe,vt),Ke=Hq(J/ze),Be=Ke*ct+(Ke-1)*Ze-je;return{items:vt,offsetTop:_e,offsetBottom:Be,top:_e,bottom:je,itemHeight:ct,itemWidth:Bt}})),k),Et(Oe(z,Ht(J=>J!==null),ut(J=>J.length)),I),Et(Oe(Ii(O,D,k,L),Ht(([J,ae,{items:le}])=>le.length>0&&ae.height!==0&&J.height!==0),ut(([J,ae,{items:le},he])=>{const{top:pe,bottom:ve}=Gq(J,he,ae,le);return[pe,ve]}),Sr(cw)),n);const Q=tt(!1);Et(Oe(r,un(Q),ut(([J,ae])=>ae||J!==0)),Q);const re=Ys(Oe(Ut(k),Ht(({items:J})=>J.length>0),un(I,Q),Ht(([{items:J},ae,le])=>le&&J[J.length-1].index===ae-1),ut(([,J])=>J-1),Sr())),ce=Ys(Oe(Ut(k),Ht(({items:J})=>J.length>0&&J[0].index===0),wu(0),Sr())),ue=Ys(Oe(Ut(k),un(V),Ht(([{items:J},ae])=>J.length>0&&!ae),ut(([{items:J}])=>({startIndex:J[0].index,endIndex:J[J.length-1].index})),Sr(aoe),Dd(0)));Et(ue,p.scrollSeekRangeChanged),Et(Oe(N,un(O,D,I,L),ut(([J,ae,le,he,pe])=>{const ve=ooe(J),{align:ye,behavior:xe,offset:me}=ve;let be=ve.index;be==="LAST"&&(be=he-1),be=r1(0,be,V$(he-1,be));let Ze=n4(ae,pe,le,be);return ye==="end"?Ze=Uq(Ze-ae.height+le.height):ye==="center"&&(Ze=Uq(Ze-ae.height/2+le.height/2)),me&&(Ze+=me),{top:Ze,behavior:xe}})),s);const se=Fo(Oe(k,ut(J=>J.offsetBottom+J.bottom)),0);return Et(Oe(y,ut(J=>({width:J.visibleWidth,height:J.visibleHeight}))),O),{data:z,totalCount:I,viewportDimensions:O,itemDimensions:D,scrollTop:r,scrollHeight:H,overscan:e,scrollBy:o,scrollTo:s,scrollToIndex:N,smoothScrollTargetReached:a,windowViewportRect:y,windowScrollTo:x,useWindowScroll:S,customScrollParent:w,windowScrollContainerState:b,deviation:G,scrollContainerState:c,footerHeight:u,headerHeight:f,initialItemCount:A,gap:L,restoreStateFrom:j,...p,initialTopMostItemIndex:W,gridState:k,totalListHeight:se,...h,startReached:ce,endReached:re,rangeChanged:ue,stateChanged:F,propsReady:g,stateRestoreInProgress:V,...E}},kr(WU,Wo,r_,coe,Cf,GU,Ef));function Gq(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const o=n4(e,t,n,r[0].index),s=n4(e,t,n,r[r.length-1].index)+i;return{top:o,bottom:s}}function n4(e,t,n,r){const i=boe(e.width,n.width,t.column),o=vT(r/i),s=o*n.height+r1(0,o-1)*t.row;return s>0?s+t.row:s}function boe(e,t,n){return r1(1,vT((e+n)/(vT(t)+n)))}const n7e=Wn(()=>{const e=tt(u=>`Item ${u}`),t=tt({}),n=tt(null),r=tt("virtuoso-grid-item"),i=tt("virtuoso-grid-list"),o=tt(goe),s=tt("div"),a=tt(jv),c=(u,f=null)=>Fo(Oe(t,ut(h=>h[u]),Sr()),f);return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,headerFooterTag:s,scrollerRef:a,FooterComponent:c("Footer"),HeaderComponent:c("Header"),ListComponent:c("List","div"),ItemComponent:c("Item","div"),ScrollerComponent:c("Scroller","div"),ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),r7e=Wn(([e,t])=>({...e,...t}),kr(t7e,n7e)),i7e=de.memo(function(){const t=Lr("gridState"),n=Lr("listClassName"),r=Lr("itemClassName"),i=Lr("itemContent"),o=Lr("computeItemKey"),s=Lr("isSeeking"),a=Tl("scrollHeight"),c=Lr("ItemComponent"),u=Lr("ListComponent"),f=Lr("ScrollSeekPlaceholder"),h=Lr("context"),p=Tl("itemDimensions"),g=Tl("gap"),v=Lr("log"),y=Lr("stateRestoreInProgress"),S=dm(w=>{const b=w.parentElement.parentElement.scrollHeight;a(b);const x=w.firstChild;if(x){const{width:E,height:I}=x.getBoundingClientRect();p({width:E,height:I})}g({row:Vq("row-gap",getComputedStyle(w).rowGap,v),column:Vq("column-gap",getComputedStyle(w).columnGap,v)})});return y?null:de.createElement(u,{ref:S,className:n,...Jo(u,h),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-test-id":"virtuoso-item-list"},t.items.map(w=>{const b=o(w.index,w.data,h);return s?de.createElement(f,{key:b,...Jo(f,h),index:w.index,height:t.itemHeight,width:t.itemWidth}):de.createElement(c,{...Jo(c,h),className:r,"data-index":w.index,key:b},i(w.index,w.data,h))}))}),o7e=de.memo(function(){const t=Lr("HeaderComponent"),n=Tl("headerHeight"),r=Lr("headerFooterTag"),i=dm(s=>n(uf(s,"height"))),o=Lr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Jo(t,o))):null}),s7e=de.memo(function(){const t=Lr("FooterComponent"),n=Tl("footerHeight"),r=Lr("headerFooterTag"),i=dm(s=>n(uf(s,"height"))),o=Lr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Jo(t,o))):null}),a7e=({children:e})=>{const t=de.useContext(moe),n=Tl("itemDimensions"),r=Tl("viewportDimensions"),i=dm(o=>{r(o.getBoundingClientRect())});return de.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),de.createElement("div",{style:KA,ref:i},e)},l7e=({children:e})=>{const t=de.useContext(moe),n=Tl("windowViewportRect"),r=Tl("itemDimensions"),i=Lr("customScrollParent"),o=hoe(n,i);return de.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),de.createElement("div",{ref:o,style:KA},e)},c7e=de.memo(function({...t}){const n=Lr("useWindowScroll"),r=Lr("customScrollParent"),i=r||n?d7e:u7e,o=r||n?l7e:a7e;return de.createElement(i,{...t},de.createElement(o,null,de.createElement(o7e,null),de.createElement(i7e,null),de.createElement(s7e,null)))}),{Component:gVe,usePublisher:Tl,useEmitterValue:Lr,useEmitter:xoe}=Xie(r7e,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},c7e),u7e=voe({usePublisher:Tl,useEmitterValue:Lr,useEmitter:xoe}),d7e=yoe({usePublisher:Tl,useEmitterValue:Lr,useEmitter:xoe});function Vq(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Ks.WARN),t==="normal"?0:parseInt(t??"0",10)}const f7e=P.forwardRef(({style:e,children:t,...n},r)=>{const i=P.useRef(null),{palette:o,spacing:s}=Ln(),a=k1({".os-scrollbar":{visibility:"visible",opacity:1},".os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle":{"min-height":s(12)},"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${s(6)})`,marginTop:s(6)}}),[c]=_J({options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{autoHide:"move",theme:o.mode==="dark"?"os-theme-light":"os-theme-dark"}}});P.useEffect(()=>{typeof r!="function"&&(r!=null&&r.current)&&(i!=null&&i.current)&&c({target:i.current,elements:{viewport:r.current}})},[c]);const u=P.useCallback(f=>{f&&r&&(typeof r=="function"?r(f):r.current=f)},[r]);return C.jsx("div",{ref:i,style:e,className:a,children:C.jsx("div",{ref:u,...n,children:t})})});function h7e({items:e=[],renderItem:t,listOptions:n,placeholder:r,...i}){return C.jsx(mt,{...i,children:C.jsx(Q9e,{components:{Scroller:f7e},totalCount:e.length,itemContent:o=>t==null?void 0:t(e[o],o),...n})})}function p7e({event:e,hidden:t}){return C.jsxs(NFe,{children:[ie.startCase(`${(e==null?void 0:e.type)??"unsupported"} #${(e==null?void 0:e.id)??"-"}`)," ",t&&C.jsx(C1e,{sx:{opacity:.56,fontSize:12,ml:1,transform:"translateY(1.75px)"}})]})}function m7e({event:e,index:t,selected:n,...r}){const{spacing:i}=Ln();return C.jsxs(e3,{selected:n,...r,sx:{borderLeft:`${i(.5)} solid ${H1(e==null?void 0:e.type)}`,...r.sx},children:[C.jsx(Wd,{children:C.jsx(Xt,{variant:"body2",children:t})}),C.jsx(vf,{title:C.jsx(K3,{event:e,flexDirection:"column"}),children:C.jsx(rc,{sx:{overflow:"hidden"},primary:C.jsx(p7e,{event:e,hidden:!1}),secondary:C.jsx(K3,{event:ie.pick(e,"f","g","pId")})})})]})}const g7e=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}}),v7e=e=>Number(e.replace(/px$/,""));function y7e(){const{spacing:e}=Ln(),{controls:t,onChange:n,state:r}=bf(),i=P.useRef(null),{key:o,setKey:s,layers:a,layer:c}=kv(),{step:u,playing:f,pause:h,stepTo:p}=Hie(o),g=P.useMemo(()=>{var v;if(c)return P.createElement(Vw[((v=c==null?void 0:c.source)==null?void 0:v.type)??""].steps,{layer:c})},[c]);return P.useEffect(()=>{f||ie.delay(()=>{var v,y;return(y=(v=i==null?void 0:i.current)==null?void 0:v.scrollToIndex)==null?void 0:y.call(v,{index:u,align:"start",behavior:"smooth",offset:-v7e(e(6+2))})},150)},[u,f,e]),C.jsxs(zn,{onChange:n,stack:r,children:[C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,alignItems:"center",children:g?f?C.jsx(hp,{icon:C.jsx(Fk,{}),label:C.jsxs(C.Fragment,{children:[C.jsx(Xt,{children:"Running"}),C.jsx(Lz,{onClick:()=>h(),children:"Pause"})]})}):P.cloneElement(g,{children:v=>c?v.length?C.jsx(h7e,{sx:{width:"100%",height:"100%"},items:v,listOptions:{ref:i,defaultItemHeight:80,overscan:0},renderItem:(y,S)=>C.jsxs(mt,{sx:{height:e(S?10:16),pt:S?0:e(6)},children:[C.jsx(m7e,{event:y,index:S,selected:S===u,sx:{height:"100%"},onClick:()=>p(S)}),C.jsx(Ku,{variant:"inset"})]})}):C.jsx(hp,{icon:C.jsx(cE,{}),label:`${Aa(c)} has no steps to display`}):C.jsx(hp,{icon:C.jsx(cE,{}),label:"Steps"})}):C.jsx(hp,{icon:C.jsx(cE,{}),label:"Steps"})})}),C.jsxs(zn.Options,{children:[C.jsx(Ws,{icon:C.jsx(Cw,{}),label:"Layer",value:o,items:ie.map(a,v=>({id:v.key,name:Aa(v)})),onChange:s,showArrow:!0}),g7e,C.jsx(zGe,{layer:c})]}),C.jsx(zn.Extras,{children:t})]})}const b7e=e=>e?48:36,x7e=8;function w7e({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Options",defaultChecked:o}){const s=nj(),a=ie.max([ie.findIndex(t,({value:c})=>!!(n!=null&&n[c])),0])??0;return C.jsx(em,{variant:"popover",children:c=>C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:i,children:C.jsx("span",{children:e==null?void 0:e(Kk(c))})}),C.jsx(Zp,{...$w(c),anchorOrigin:{horizontal:"center",vertical:-b7e(s)*a-x7e},transformOrigin:{vertical:"top",horizontal:"center"},children:ie.map(t,({value:u,label:f,disabled:h})=>C.jsxs(Ru,{disabled:h,onClick:()=>{r==null||r({...n,[u]:!((n==null?void 0:n[u])??o)})},children:[C.jsx(Wd,{children:C.jsx(Nge,{sx:{p:0},checked:!!((n==null?void 0:n[u])??o)})}),f]},u))})]})})}function _7e({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,defaultChecked:s}){var u;const a=ie.filter(r,({id:f})=>!!((t==null?void 0:t[f])??s)),c=a.length?a.length===1?(u=ie.head(a))==null?void 0:u.name:`${a.length} Selected`:e;return C.jsx(w7e,{defaultChecked:!0,placeholder:ie.startCase(e),trigger:f=>C.jsx(nf,{...f,disabled:!(r!=null&&r.length),icon:i,showArrow:o,children:c}),items:ie.map(r,({id:f,name:h,description:p,hidden:g})=>({value:f,label:C.jsxs(C.Fragment,{children:[C.jsx(Xt,{children:h}),C.jsx(ai,{}),C.jsx(Xt,{variant:"body2",color:"text.secondary",children:p})]}),disabled:g})),value:t,onChange:n})}const qq=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}});function S7e(){var p,g,v,y;const{controls:e,onChange:t,state:n}=bf(),[r]=SA(),[{layers:i}]=tm(),[o,s]=P.useState({}),a=P.useMemo(()=>ie.filter(i,S=>(o==null?void 0:o[S.key])??!0),[o,i]),[c,u]=P.useState(),f=P.useMemo(()=>ie.head(r),[r]),h=n!=null&&n.renderer&&n.renderer!=="internal:auto"?n.renderer:(g=(p=f==null?void 0:f.renderer)==null?void 0:p.meta)==null?void 0:g.id;return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(En,{children:C.jsx(Jk,{children:S=>C.jsx(mt,{children:C.jsx(A$e,{...S,layers:a,renderer:h,rendererRef:u})})})})}),C.jsx(zn.Options,{children:C.jsxs(Gg,{direction:"row",children:[C.jsx(Ws,{label:"Renderer",icon:C.jsx(p1e,{}),value:(n==null?void 0:n.renderer)??"internal:auto",onChange:S=>t==null?void 0:t({renderer:S}),items:[{id:"internal:auto",name:`Auto (${((y=(v=f==null?void 0:f.renderer)==null?void 0:v.meta)==null?void 0:y.name)??"None"})`},...ie.map(r,({renderer:S})=>({id:S.meta.id,name:S.meta.name,description:S.meta.id}))],showArrow:!0}),qq,C.jsx(_7e,{defaultChecked:!0,label:"Layers",icon:C.jsx(Cw,{}),value:o,onChange:s,items:ie.map(i,S=>({id:S.key,name:Aa(S)})),showArrow:!0}),qq,C.jsx(nf,{disabled:!c,onClick:()=>{c==null||c.fitCamera()},icon:C.jsx(v1e,{}),children:"Fit"}),C.jsx(nf,{disabled:!c,onClick:()=>{c==null||c.initialCamera()},icon:C.jsx(w1e,{}),children:"1:1"})]})}),C.jsx(zn.Extras,{children:e})]})}const r4={viewport:{id:"viewport",name:"Viewport",icon:C.jsx(FQ,{}),content:S7e},tree:{id:"tree",name:"Tree",icon:C.jsx(LQ,{}),content:b$e},steps:{id:"steps",name:"Steps",icon:C.jsx(cE,{}),content:y7e},info:{id:"info",name:"Logs",icon:C.jsx(BQ,{}),content:bRe},layers:{id:"layers",name:"Layers",icon:C.jsx(Cw,{}),content:DFe},debug:{id:"debug",name:"Debugger",icon:C.jsx(g1e,{}),content:yRe},settings:{id:"settings",name:"Settings",icon:C.jsx(L1e,{}),content:NGe},about:{id:"about",name:"About",icon:C.jsx(T1e,{}),content:kSe}},[E7e,C7e]=Qu({view:{type:"branch",key:da(),orientation:"horizontal",children:[{size:75,type:"branch",key:da(),orientation:"horizontal",children:[{type:"leaf",size:25,key:da(),content:{type:"layers"}},{size:75,type:"branch",key:da(),orientation:"vertical",children:[{type:"leaf",size:75,key:da(),content:{type:"viewport"}},{type:"leaf",size:25,key:da(),content:{type:"info"}}]}]},{size:25,type:"leaf",key:da(),content:{type:"steps"}}]}});function T7e(e){const t=ORe(),[{view:n},r]=E7e();return C.jsxs(C.Fragment,{children:[C.jsx(En,{...e,children:C.jsx(OJ,{root:n,onChange:i=>r(()=>({view:i})),renderLeaf:({content:i})=>{var o;return C.jsx(zp,{in:!0,children:C.jsx(mt,{sx:{width:"100%",height:"100%"},children:P.createElement((o=r4[(i==null?void 0:i.type)??""])==null?void 0:o.content)})})}})}),C.jsx(zp,{in:t,children:C.jsx(Tye,{variant:"indeterminate",sx:{position:"absolute",bottom:0,width:"100%",zIndex:1}})})]})}const k7e=e=>Z$(e,"#ffffff")>Z$(e,"#000000")?"#ffffff":"#000000";function A7e(e){P.useEffect(()=>{document.querySelector('meta[name="theme-color"]').setAttribute("content",e),document.title=m3,"electron"in window&&window.electron.invoke("title-bar","#00000000",k7e(e))},[e])}function I7e(e){return new Promise(t=>ie.delay(t,e))}async function R7e(e,t=2500){const n=ie.now();return{result:await Promise.any([e(),I7e(t)]),delta:ie.now()-n}}function P7e(){const e=mc(),[{remote:t}]=Zu(),[,n]=ev(),r=nm("connections");return P.useEffect(()=>{let i=!1,o=[];return r(async()=>{if(t!=null&&t.length){for(const{transport:s,url:a,disabled:c}of t){if(c!==!0){e(`Connecting to ${a}...`);const u=new(RGe(s))({url:a});await u.connect();const{result:f,delta:h}=await R7e(()=>u.call("about"));f?(e(`Connected to ${f.name}.`),o=[...o,{...f,url:a,ping:h,call:u.call.bind(u),disconnect:u.disconnect.bind(u)}]):await u.disconnect()}i||n(()=>o)}i||e(`Connected to ${o.length} of ${t.length} solvers.`)}}),()=>{i=!0,o.map(s=>s.disconnect())}},[t,n,e,r]),C.jsx(C.Fragment,{})}const O7e=e=>t=>({...t,source:e});function M7e(){const[e]=ev(),[,t]=NC(),n=nm("features");return zte(r=>n(async()=>{const i={algorithms:[],formats:ie.keys(rU).map(o=>({id:o,source:"internal"})),maps:[]};for(const{call:o,url:s}of e)for(const a of["algorithms","formats","maps"])i[a]=ie.uniqBy([...i[a],...ie.map(await o(`features/${a}`),O7e(s))],"id");r.aborted||t(()=>i)}),[e,t]),C.jsx(C.Fragment,{})}function L7e(){const[{layers:e},t]=tm();return P.useMemo(()=>ie.map(e,n=>{const r=hne(n).service;if(r)return P.createElement(r,{key:n.key,value:n,onChange:i=>t(({layers:o})=>({layers:ie.map(o,s=>s.key===n.key?i(s):s)}))})}),[e,t])}function D7e(){const e=L7e();return C.jsx(C.Fragment,{children:e})}function woe({slices:e,children:t,services:n}){return C.jsx(C.Fragment,{children:ie.reduce(ie.map(e,r=>P.createElement(r)),(r,i)=>P.cloneElement(i,{},r),C.jsxs(C.Fragment,{children:[t,ie.map(n,(r,i)=>P.createElement(r,{key:i}))]}))})}var _oe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qt,function(){return function n(r,i,o){var s=window,a="application/octet-stream",c=o||a,u=r,f=!i&&!o&&u,h=document.createElement("a"),p=function(k){return String(k)},g=s.Blob||s.MozBlob||s.WebKitBlob||p,v=i||"download",y,S;if(g=g.call?g.bind(s):Blob,String(this)==="true"&&(u=[u,c],c=u[0],u=u[1]),f&&f.length<2048&&(v=f.split("/").pop().split("?")[0],h.href=f,h.href.indexOf(f)!==-1)){var w=new XMLHttpRequest;return w.open("GET",f,!0),w.responseType="blob",w.onload=function(k){n(k.target.response,v,a)},setTimeout(function(){w.send()},0),w}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))if(u.length>1024*1024*1.999&&g!==p)u=I(u),c=u.type||a;else return navigator.msSaveBlob?navigator.msSaveBlob(I(u),v):A(u);else if(/([\x80-\xff])/.test(u)){var b=0,x=new Uint8Array(u.length),E=x.length;for(b;b0?`text-shadow: ${i} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${i} ${e}`}reset(){Object.assign(this,Fm.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=nt.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};let Zx=Fm;Zx.availableFonts={};Zx.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};const zm=class extends fm{constructor(e="",t={}){super(mt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this._loading=!1,this.localStyleID=-1,this.dirty=!1,this.ownsStyle=!1;const n=new Image,r=mt.from(n,{scaleMode:nt.SCALE_MODE,resourceOptions:{autoLoad:!1}});r.orig=new Zt,r.trim=new Zt,this.texture=r;const i="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject"),c=document.createElementNS(o,"div"),u=document.createElementNS(o,"style");a.setAttribute("width","10000"),a.setAttribute("height","10000"),a.style.overflow="hidden",s.appendChild(a),this.maxWidth=zm.defaultMaxWidth,this.maxHeight=zm.defaultMaxHeight,this._domElement=c,this._styleElement=u,this._svgRoot=s,this._foreignObject=a,this._foreignObject.appendChild(u),this._foreignObject.appendChild(c),this._image=n,this._loadImage=new Image,this._autoResolution=zm.defaultAutoResolution,this._resolution=zm.defaultResolution??nt.RESOLUTION,this.text=e,this.style=t}measureText(e){var a,c;const{text:t,style:n,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(r)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const i=this._domElement.getBoundingClientRect();this._svgRoot.remove();const o=Math.min(this.maxWidth,Math.ceil(i.width)),s=Math.min(this.maxHeight,Math.ceil(i.height));return this._svgRoot.setAttribute("width",o.toString()),this._svgRoot.setAttribute("height",s.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(a=this._style)==null?void 0:a.toCSS(r)}),this._styleElement.textContent=(c=this._style)==null?void 0:c.toGlobalCSS()),{width:o+n.padding*2,height:s+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:r}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:i,height:o}=this.measureText();n.width=r.width=Math.ceil(Math.max(1,i)),n.height=r.height=Math.ceil(Math.max(1,o)),this._loading||(this._loading=!0,await new Promise(s=>{r.onload=async()=>{await t.onBeforeDraw(),this._loading=!1,n.src=r.src,r.onload=null,r.src="",this.updateTexture(),s()};const a=new XMLSerializer().serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(a)}`}))}get source(){return this._image}updateTexture(){const{style:e,texture:t,_image:n,resolution:r}=this,{padding:i}=e,{baseTexture:o}=t;t.trim.width=t._frame.width=n.width/r,t.trim.height=t._frame.height=n.height/r,t.trim.x=-i,t.trim.y=-i,t.orig.width=t._frame.width-i*2,t.orig.height=t._frame.height-i*2,this._onTextureUpdate(),o.setRealSize(n.width,n.height,r),this.dirty=!1}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._render(e)}_renderCanvas(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(e)}getLocalBounds(e){return this.updateText(!0),super.getLocalBounds(e)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(e){var n,r,i,o,s;typeof e=="boolean"&&(e={children:e}),e=Object.assign({},zm.defaultDestroyOptions,e),super.destroy(e);const t=null;this.ownsStyle&&((n=this._style)==null||n.cleanFonts()),this._style=t,(r=this._svgRoot)==null||r.remove(),this._svgRoot=t,(i=this._domElement)==null||i.remove(),this._domElement=t,(o=this._foreignObject)==null||o.remove(),this._foreignObject=t,(s=this._styleElement)==null||s.remove(),this._styleElement=t,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=t,this._image.src="",this._image=t}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(e){this.updateText(!0);const t=Od(this.scale.x)||1;this.scale.x=t*e/this._image.width/this.resolution,this._width=e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(e){this.updateText(!0);const t=Od(this.scale.y)||1;this.scale.y=t*e/this._image.height/this.resolution,this._height=e}get style(){return this._style}set style(e){this._style!==e&&(e=e||{},e instanceof Zx?(this.ownsStyle=!1,this._style=e):e instanceof Gu?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=Zx.from(e)):(this.ownsStyle=!0,this._style=new Zx(e)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(e){e=String(e===""||e===null||e===void 0?" ":e),e=this.sanitiseText(e),this._text!==e&&(this._text=e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)}sanitiseText(e){return e.replace(/
/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};let FA=zm;FA.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0};FA.defaultMaxWidth=2024;FA.defaultMaxHeight=2024;FA.defaultAutoResolution=!0;function w8e(e,t){return{constructor:e,meta:t}}function _8e(e,t,n,r,i){tie(e,t,n||0,r||e.length-1,i||S8e)}function tie(e,t,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,s=t-n+1,a=Math.log(o),c=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*c*(o-c)/o)*(s-o/2<0?-1:1),f=Math.max(n,Math.floor(t-s*c/o+u)),h=Math.min(r,Math.floor(t+(o-s)*c/o+u));tie(e,t,f,h,i)}var p=e[t],g=n,v=r;for(Xb(e,n,t),i(e[r],p)>0&&Xb(e,n,r);g0;)v--}i(e[n],p)===0?Xb(e,n,v):(v++,Xb(e,v,r)),v<=t&&(n=v+1),t<=v&&(r=v-1)}}function Xb(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S8e(e,t){return et?1:0}class E8e{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let n=this.data;const r=[];if(!DS(t,n))return r;const i=this.toBBox,o=[];for(;n;){for(let s=0;s=0&&o[n].children.length>this._maxEntries;)this._split(o,n),n--;this._adjustParentBBoxes(i,o,n)}_split(t,n){const r=t[n],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const s=this._chooseSplitIndex(r,o,i),a=jm(r.children.splice(s,r.children.length-s));a.height=r.height,a.leaf=r.leaf,Tm(r,this.toBBox),Tm(a,this.toBBox),n?t[n-1].children.push(a):this._splitRoot(r,a)}_splitRoot(t,n){this.data=jm([t,n]),this.data.height=t.height+1,this.data.leaf=!1,Tm(this.data,this.toBBox)}_chooseSplitIndex(t,n,r){let i,o=1/0,s=1/0;for(let a=n;a<=r-n;a++){const c=yx(t,0,a,this.toBBox),u=yx(t,a,r,this.toBBox),f=I8e(c,u),h=h$(c)+h$(u);f=n;u--){const f=t.children[u];bx(a,t.leaf?o(f):f),c+=LS(a)}return c}_adjustParentBBoxes(t,n,r){for(let i=r;i>=0;i--)bx(n[i],t)}_condense(t){for(let n=t.length-1,r;n>=0;n--)t[n].children.length===0?n>0?(r=t[n-1].children,r.splice(r.indexOf(t[n]),1)):this.clear():Tm(t[n],this.toBBox)}}function C8e(e,t,n){if(!n)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function jm(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function BV(e,t,n,r,i){const o=[t,n];for(;o.length;){if(n=o.pop(),t=o.pop(),n-t<=r)continue;const s=t+Math.ceil((n-t)/r/2)*r;_8e(e,s,t,n,i),o.push(t,s,s,n)}}class R8e extends E8e{toBBox(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}compareMinX(t,n){return t.left-n.left}compareMinY(t,n){return t.top-n.top}}const $V={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:75,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:2,minScale:1,dtMax:1.5,dtMin:1.1}};var nie={},dT=Xt&&Xt.__assign||function(){return dT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?1:-1}),m$}var U8e=z8e()?Math.sign:j8e(),H8e=U8e,W8e=Math.abs,G8e=Math.floor,V8e=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:H8e(e)*G8e(W8e(e)))},q8e=V8e,X8e=Math.max,Y8e=function(e){return X8e(0,q8e(e))},rie=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},K8e=Dv,iie=function(e){if(!K8e(e))throw new TypeError("Cannot use null or undefined");return e},Q8e={exports:{}},J8e=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},g$,zV;function Z8e(){return zV||(zV=1,g$=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),g$}var v$,jV;function eHe(){if(jV)return v$;jV=1;var e=Dv,t=Object.keys;return v$=function(n){return t(e(n)?Object(n):n)},v$}var y$,UV;function tHe(){return UV||(UV=1,y$=Z8e()()?Object.keys:eHe()),y$}var b$,HV;function nHe(){if(HV)return b$;HV=1;var e=tHe(),t=iie,n=Math.max;return b$=function(r,i){var o,s,a=n(arguments.length,2),c;for(r=Object(t(r)),c=function(u){try{r[u]=i[u]}catch(f){o||(o=f)}},s=1;s-1},w$}var xHe=yHe()?String.prototype.contains:bHe(),LE=lie,GV=vHe,cie=oie,uie=F8e,e1=xHe,wHe=aie.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],LE(e)?(n=e1.call(e,"c"),r=e1.call(e,"e"),i=e1.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?cie(uie(o),s):s};wHe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],LE(t)?GV(t)?LE(n)?GV(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,LE(e)?(r=e1.call(e,"c"),i=e1.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?cie(uie(o),s):s};var Zw=aie.exports,F5={exports:{}};(function(e,t){var n=Zw,r=rie,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,a=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,w;h=function(b,x){var E;return r(x),u.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),a(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,I;return r(x),I=this,h.call(this,b,E=function(){g.call(I,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,I,A,k;if(r(x),!u.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(I=E[b],typeof I=="object")for(k=0;A=I[k];++k)(A===x||A.__eeOnceListener__===x)&&(I.length===2?E[b]=I[k?0:1]:I.splice(k,1));else(I===x||I.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,I,A,k;if(u.call(this,"__ee__")&&(A=this.__ee__[b],!!A))if(typeof A=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?u.call(g,v,O,w):O,y?(f.value=O,h(b,w,f)):b[w]=O,++w;x=w}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=6&&(n-=6),kt(n<1?255*((t-e)*n+e):n<3?255*t:n<4?255*((t-e)*(4-n)+e):255*e)},Xi=function(e,t,n){t/=100;var r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{r:z$(i,r,(e/=60)+2),g:z$(i,r,e),b:z$(i,r,e-2)}},RU=function(e,t,n,r){return{r:kt(255*(1-e)*(r=1-r)),g:kt(255*(1-t)*r),b:kt(255*(1-n)*r)}},gie=function(e,t,n){e/=255,t/=255,n/=255;var r=1-Math.max(e,t,n),i=1-r,o=i&&(i-t)/i,s=i&&(i-n)/i;return{c:kt(100*(i&&(i-e)/i)),m:kt(100*o),y:kt(100*s),k:kt(100*r)}},hv=function(e,t,n,r){r===void 0&&(r=1),e/=255,t/=255,n/=255,r=Math.min(r,1);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=i-o,a=0,c=0,u=(i+o)/2;if(s!==0){switch(i){case e:a=(t-n)/s%6;break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}(a=kt(60*a))<0&&(a+=360),c=s/(1-Math.abs(2*u-1))}return{h:a,s:kt(100*c),l:kt(100*u),a:r}},cq=function(e,t){if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;var n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,o=0,s=0,a=0,c=0;return(t?n:r).find(function(u,f){return e>=u[0]&&e360||e<0)&&(e-=360*Math.floor(e/360)),e},Bo=function(e){return typeof e=="string"&&(e=Nv.test(e)?jA(e)/100:+e),isNaN(+e)||e>1?1:kt(e)},Bv=function(e,t,n){return t.reduce(function(r,i){return z5(z5([],r,!0),[cn(cn({},e),{h:n===Yo.ADDITIVE?rw(e.h+i):rw(cq(cq(e.h,!1)+i,!0))})],!1)},[cn({},e)])},VHe=function(e,t){return Bv(e,[30,-30],t)},qHe=function(e,t){return Bv(e,[180],t)},XHe=function(e,t){return Bv(e,[150,-150],t)},YHe=function(e,t){return Bv(e,[120,-120],t)},KHe=function(e,t){return Bv(e,[60,-120,180],t)},QHe=function(e,t){return Bv(e,[90,-90,180],t)},ua=function(e){return typeof e=="string"?function(t){var n;if(Object.keys(qt).some(function(r){if(xx[r].test(t))return n=r,!0}),!n&&~pie.indexOf(t)&&(n=qt.HEX),!n)throw new Error(WHe);return n}(e):function(t){var n,r=!1,i=mie(Object.keys(t));if(j5[i]&&(n=j5[i]),n&&n===qt.RGB){var o=Object.entries(t).some(function(a){return!U5.test("".concat(a[1]))}),s=Object.entries(t).some(function(a){return!(Nv.test("".concat(a[1]))||!U5.test("".concat(a[1]))&&!isNaN(+a[1])&&+a[1]<=255)});o&&s&&(r=!0),o||(n=qt.HEX)}if(!n||r)throw new Error(GHe);return n}(e)},JHe=((Qb={})[qt.HEX]=function(e){var t=(~pie.indexOf(e)?fT[e]:e).match(xx.HEX),n={r:NS(t[1]||t[5]),g:NS(t[2]||t[6]),b:NS(t[3]||t[7])},r=t[4]||t[8];return r!==void 0&&(n.a=NS(r)/255),n},Qb[qt.RGB]=function(e){var t=e.match(xx.RGB),n=yp(t[1]||t[5]),r=yp(t[2]||t[6]),i=yp(t[3]||t[7]),o=t[4]||t[8],s={r:Math.min(n,255),g:Math.min(r,255),b:Math.min(i,255)};return o!==void 0&&(s.a=Bo(o)),s},Qb[qt.HSL]=function(e){var t=e.match(xx.HSL),n=rw(t[1]||t[5]),r=hT(t[2]||t[6]),i=hT(t[3]||t[7]),o=t[4]||t[8],s=Xi(n,r,i);return o!==void 0&&(s.a=Bo(o)),s},Qb[qt.CMYK]=function(e){var t=e.match(xx.CMYK),n=Ld(t[1]||t[6]),r=Ld(t[2]||t[7]),i=Ld(t[3]||t[8]),o=Ld(t[4]||t[9]),s=t[5]||t[10],a=RU(n,r,i,o);return s!==void 0&&(a.a=Bo(s)),a},Qb),ZHe=((Jb={})[qt.HEX]=function(e){var t={r:yp("".concat(e.r)),g:yp("".concat(e.g)),b:yp("".concat(e.b))};return po(e,"a")&&(t.a=Math.min(yp("".concat(e.a),!0),1)),t},Jb[qt.RGB]=function(e){return this.HEX(e)},Jb[qt.HSL]=function(e){var t=hT("".concat(e.s)),n=hT("".concat(e.l)),r=Xi(rw(e.h),t,n);return po(e,"a")&&(r.a=Bo(e.a)),r},Jb[qt.CMYK]=function(e){var t=Ld("".concat(e.c)),n=Ld("".concat(e.m)),r=Ld("".concat(e.y)),i=Ld("".concat(e.k)),o=RU(t,n,r,i);return po(e,"a")&&(o.a=Bo(e.a)),o},Jb),Qp=function(e,t){return t===void 0&&(t=ua(e)),typeof e=="string"?JHe[t](e):ZHe[t](e)},an=((gu={})[qt.HEX]=function(e){return{r:BS(e.r),g:BS(e.g),b:BS(e.b)}},gu.HEXA=function(e){var t=an.HEX(e);return t.a=po(e,"a")?BS(255*e.a):"0xFF",t},gu[qt.RGB]=function(e,t){return po(e,"a")&&delete e.a,Rp(e,t)},gu.RGBA=function(e,t){return e.a=po(e,"a")?kt(e.a):1,Rp(e,t)},gu[qt.HSL]=function(e,t){var n=hv(e.r,e.g,e.b);return delete n.a,fg(n,t)},gu.HSLA=function(e,t){var n=an.HSL(e,t);return n.a=po(e,"a")?kt(e.a,t):1,n},gu[qt.CMYK]=function(e,t){return eWe(gie(e.r,e.g,e.b),t)},gu.CMYKA=function(e,t){var n=an.CMYK(e,t);return n.a=po(e,"a")?kt(e.a,t):1,n},gu),uq=function(e,t,n,r){var i=ua(e),o=typeof e=="string",s=Qp(e,i),a=typeof e=="string"&&po(s,"a")||typeof e!="string"&&po(e,"a"),c=hv(s.r,s.g,s.b,s.a);a||delete c.a;var u=n?c.l/(t+1):(100-c.l)/(t+1),f=Array(t).fill(null).map(function(h,p){return cn(cn({},c),{l:c.l+u*(p+1)*(1-2*+n)})});switch(i){case qt.HEX:default:return f.map(function(h){var p=Xi(h.h,h.s,h.l);return a&&(p.a=h.a),o?a?on.HEX(Rp(cn(cn({},p),{a:kt(255*p.a)}),r)):on.HEX(Rp(p,r)):a?an.HEXA(p):an.HEX(p)});case qt.RGB:return f.map(function(h){var p=Xi(h.h,h.s,h.l);return a&&(p.a=h.a),o?on.RGB(Rp(p,r)):a?an.RGBA(p,r):an.RGB(p,r)});case qt.HSL:return f.map(function(h){return o?on.HSL(fg(h,r)):a?an.HSLA(cn(cn({},Xi(h.h,h.s,h.l)),{a:h.a}),r):an.HSL(Xi(h.h,h.s,h.l),r)})}},km=((Vh={buildHarmony:function(e,t,n,r){var i=ua(e),o=Qp(e,i),s=hv(o.r,o.g,o.b,o.a),a=typeof e=="string"&&po(o,"a")||typeof e!="string"&&po(e,"a"),c=typeof e=="string";switch(i){case qt.HEX:default:return a?this.HEXA(fg(s,0),t,n,c):this.HEX(fg(s,0),t,n,c);case qt.HSL:return a?this.HSLA(s,t,n,c,r):this.HSL(s,t,n,c,r);case qt.RGB:return a?this.RGBA(s,t,n,c,r):this.RGB(s,t,n,c,r)}}})[qt.HEX]=function(e,t,n,r){return t(e,n).map(function(i){return r?on.HEX(Xi(i.h,i.s,i.l)):an.HEX(Xi(i.h,i.s,i.l))})},Vh.HEXA=function(e,t,n,r){return t(e,n).map(function(i){return r?on.HEX(cn(cn({},Xi(i.h,i.s,i.l)),{a:255*Bo(i.a)})):an.HEXA(cn(cn({},Xi(i.h,i.s,i.l)),{a:Bo(i.a)}))})},Vh[qt.RGB]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.RGB(Rp(Xi(o.h,o.s,o.l),i)):an.RGB(Xi(o.h,o.s,o.l),i)})},Vh.RGBA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.RGB(Rp(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)):an.RGBA(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)})},Vh[qt.HSL]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.HSL(fg({h:o.h,s:o.s,l:o.l},i)):an.HSL(Xi(o.h,o.s,o.l),i)})},Vh.HSLA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.HSL(fg(cn(cn({},o),{a:Bo(o.a)}),i)):an.HSLA(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)})},Vh),Am=((qh={mix:function(e,t){var n,r,i,o,s,a,c,u,f,h,p,g,v,y,S,w=e.map(function(I){var A=ua(I);return Qp(I,A)}),b=t===Yo.SUBTRACTIVE?w.map(function(I){var A,k,O,D,N,H,G,z,L,F,j,V,W,K,X=(A=I.r,k=I.g,O=I.b,D=Math.min(A,k,O),N=Math.min(255-A,255-k,255-O),H=A-D,G=k-D,z=O-D,L=Math.min(H,G),F=H-L,j=(G+L)/2,V=(z+G-L)/2,W=Math.max(F,j,V)/Math.max(H,G,z),K=isNaN(W)||W===1/0||W<=0?1:W,{r:F/K+N,y:j/K+N,b:V/K+N});return po(I,"a")&&(X.a=I.a),X}):null;function x(I){var A=t===Yo.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return I.reduce(function(k,O){var D=po(O,"a")?O.a:1,N={r:Math.min(k.r+O.r*D,255),b:Math.min(k.b+O.b*D,255),a:1-(1-D)*(1-k.a)},H="g"in k?k.g:k.y,G="g"in O?O.g:O.y;return cn(cn({},N),t===Yo.ADDITIVE?{g:Math.min(H+G*D,255)}:{y:Math.min(H+G*D,255)})},A)}if(t===Yo.ADDITIVE)n=x(w);else{var E=x(b);r=E.r,i=E.y,o=E.b,s=Math.min(r,i,o),a=Math.min(255-r,255-i,255-o),c=r-s,u=i-s,f=o-s,h=Math.min(u,f),p=c+u-h,g=u+h,v=2*(f-h),y=Math.max(p,g,v)/Math.max(c,u,f),S=isNaN(y)||y===1/0||y<=0?1:y,(n={r:p/S+a,g:g/S+a,b:v/S+a}).a=E.a}return{r:kt(n.r),g:kt(n.g),b:kt(n.b),a:il(n.a,0,1)}}})[qt.HEX]=function(e,t,n){var r=this.mix(e,t);return delete r.a,n?on.HEX(r):an.HEX(r)},qh.HEXA=function(e,t,n){var r=this.mix(e,t);return r.a=n?255*Bo(r.a):Bo(r.a),n?on.HEX(r):an.HEXA(r)},qh[qt.RGB]=function(e,t,n,r){var i=this.mix(e,t);return delete i.a,n?on.RGB(i):an.RGB(i,r)},qh.RGBA=function(e,t,n,r){var i=this.mix(e,t);return n?on.RGB(i):an.RGBA(i,r)},qh[qt.HSL]=function(e,t,n,r){var i=this.mix(e,t),o=hv(i.r,i.g,i.b);return delete i.a,delete o.a,n?on.HSL(o):an.HSL(i,r)},qh.HSLA=function(e,t,n,r){var i=this.mix(e,t),o=hv(i.r,i.g,i.b,i.a);return n?on.HSL(o):an.HSLA(i,r)},qh),Rp=function(e,t){return cn({r:kt(e.r,t),g:kt(e.g,t),b:kt(e.b,t)},po(e,"a")?{a:kt(e.a,t)}:{})},fg=function(e,t){return cn({h:kt(e.h,t),s:kt(e.s,t),l:kt(e.l,t)},po(e,"a")?{a:kt(e.a,t)}:{})},eWe=function(e,t){return{c:kt(e.c,t),m:kt(e.m,t),y:kt(e.y,t),k:kt(e.k,t)}},ld=function(e,t,n,r,i,o){var s=i(Qp(e,t),r);return n?o(s):s},Im=function(e,t,n,r,i,o,s){n<1&&(n=5);var a=function(c,u,f){var h=f-1,p=(u.r-c.r)/h,g=(u.g-c.g)/h,v=(u.b-c.b)/h,y=Bo(c.a),S=(Bo(u.a)-y)/h;return Array(f).fill(null).map(function(w,b){return b===0?c:b===h?u:{r:kt(c.r+p*b),g:kt(c.g+g*b),b:kt(c.b+v*b),a:kt(y+S*b)}})}(Qp(e),Qp(t),n);return a.map(function(c){var u=o(c,i);return r?s(u):u})},tWe=function(){function e(t,n){n===void 0&&(n=6),this.rgb=Qp(t),this._decimals=n,this.updateHSL(),this.updateCMYK()}return e.prototype.updateRGB=function(){this.rgb=cn(cn({},Xi(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},e.prototype.updateRGBFromCMYK=function(){this.rgb=cn(cn({},RU(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},e.prototype.updateHSL=function(){this.hsl=hv(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},e.prototype.updateCMYK=function(){this.cmyk=gie(this.rgb.r,this.rgb.g,this.rgb.b)},e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},e.prototype.setDecimals=function(t){return this._decimals=t,this},e.prototype.setH=function(t){return this.hsl.h=rw(t),this.updateRGBAndCMYK()},e.prototype.setS=function(t){return this.hsl.s=il(t,0,100),this.updateRGBAndCMYK()},e.prototype.setL=function(t){return this.hsl.l=il(t,0,100),this.updateRGBAndCMYK()},e.prototype.setR=function(t){return this.rgb.r=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setG=function(t){return this.rgb.g=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setB=function(t){return this.rgb.b=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setA=function(t){return this.hsl.a=this.rgb.a=il(t,0,1),this},e.prototype.setC=function(t){return this.cmyk.c=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setM=function(t){return this.cmyk.m=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setY=function(t){return this.cmyk.y=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setK=function(t){return this.cmyk.k=il(t,0,100),this.updateRGBAndHSL()},Object.defineProperty(e.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"H",{get:function(){return kt(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"S",{get:function(){return kt(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"L",{get:function(){return kt(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"R",{get:function(){return kt(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"G",{get:function(){return kt(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"B",{get:function(){return kt(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"A",{get:function(){return kt(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"C",{get:function(){return kt(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"M",{get:function(){return kt(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Y",{get:function(){return kt(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"K",{get:function(){return kt(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXObject",{get:function(){return an.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXAObject",{get:function(){return an.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBAObject",{get:function(){return cn(cn({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLAObject",{get:function(){return cn(cn({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKAObject",{get:function(){return cn(cn({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEX",{get:function(){return on.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXA",{get:function(){return on.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){return on.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBA",{get:function(){return on.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSL",{get:function(){return on.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLA",{get:function(){return on.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYK",{get:function(){return on.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKA",{get:function(){return on.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),e.toHEX=function(t,n){n===void 0&&(n=!0);var r=ua(t);return ld(t,r,n,0,an.HEX,on.HEX)},e.toHEXA=function(t,n){n===void 0&&(n=!0);var r=ua(t);return ld(t,r,n,0,an.HEXA,on.HEX)},e.toRGB=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.RGB,on.RGB)},e.toRGBA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.RGBA,on.RGB)},e.toHSL=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.HSL,on.HSL)},e.toHSLA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.HSLA,on.HSL)},e.toCMYK=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.CMYK,on.CMYK)},e.toCMYKA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.CMYKA,on.CMYK)},e.getBlendHEX=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.HEX,on.HEX)},e.getBlendHEXA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.HEXA,on.HEX)},e.getBlendRGB=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.RGB,on.RGB)},e.getBlendRGBA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.RGBA,on.RGB)},e.getBlendHSL=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.HSL,on.HSL)},e.getBlendHSLA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.HSLA,on.HSL)},e.getMixHEX=function(t,n,r){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),Am.HEX(t,n,r)},e.getMixHEXA=function(t,n,r){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),Am.HEXA(t,n,r)},e.getMixRGB=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Am.RGB(t,n,r,i)},e.getMixRGBA=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Am.RGBA(t,n,r,i)},e.getMixHSL=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Am.HSL(t,n,r,i)},e.getMixHSLA=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Am.HSLA(t,n,r,i)},e.getShades=function(t,n,r){return r===void 0&&(r=6),uq(t,n,!0,r)},e.getTints=function(t,n,r){return r===void 0&&(r=6),uq(t,n,!1,r)},e.getHarmony=function(t,n,r,i){return n===void 0&&(n=bu.COMPLEMENTARY),r===void 0&&(r=Yo.ADDITIVE),i===void 0&&(i=6),function(o,s,a,c){var u;return(u={},u[bu.ANALOGOUS]=km.buildHarmony(s,VHe,c,a),u[bu.COMPLEMENTARY]=km.buildHarmony(s,qHe,c,a),u[bu.SPLIT_COMPLEMENTARY]=km.buildHarmony(s,XHe,c,a),u[bu.TRIADIC]=km.buildHarmony(s,YHe,c,a),u[bu.TETRADIC]=km.buildHarmony(s,KHe,c,a),u[bu.SQUARE]=km.buildHarmony(s,QHe,c,a),u)[o]}(n,t,i,r)},e}();const nWe={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:Ji,PI:rWe}=Math,e_=(e,t)=>new tWe(e).setA(t??nWe.alpha).RGBA,iWe=(e,t)=>e_(e,t);function cf(e,t){return{width:e.width*t.scale.x,height:e.height*t.scale.y,x:e.x*t.scale.x+t.x,y:e.y*t.scale.y+t.y}}const oWe={draw(e,t,n){if(e.text){const r=cf(e,{x:e.textX,y:e.textY,scale:{x:1,y:1}}),i=cf(r,n);t.font=`${e.fontSize*n.scale.x}px Arial`,t.fillStyle=e_(e.fontColor,e.alpha),t.fillText(e.text,i.x,i.y)}},test(e){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},sWe={draw(e,t,n){const{x:r,y:i,width:o,height:s}=cf(e,n);t.fillStyle=e_(e.fill,e.alpha),t.fillRect(Ji(r),Ji(i),Ji(o)||1,Ji(s)||1)},test(e){return{left:e.x,right:e.x+e.width,top:e.y,bottom:e.y+e.height}}},aWe={draw(e,t,n){t.fillStyle=e_(e.fill,e.alpha),t.beginPath();const r=cf({...e,width:e.radius,height:e.radius},n);t.ellipse(Ji(r.x),Ji(r.y),Ji(r.width),Ji(r.height),0,0,2*rWe),t.fill()},test(e){return{left:e.x-e.radius,right:e.x+e.radius,top:e.y-e.radius,bottom:e.y+e.radius}}},lWe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.fillStyle=e_(e.fill,e.alpha);const{x:o,y:s}=cf({...r,width:0,height:0},n);t.moveTo(Ji(o),Ji(s));for(const a of i){const{x:c,y:u}=cf({...a,width:0,height:0},n);t.lineTo(Ji(c),Ji(u))}t.closePath(),t.fill()},test(e){var t,n,r,i;return{left:((t=Qt.minBy(e.points,"x"))==null?void 0:t.x)??0,right:((n=Qt.maxBy(e.points,"x"))==null?void 0:n.x)??0,top:((r=Qt.minBy(e.points,"y"))==null?void 0:r.y)??0,bottom:((i=Qt.maxBy(e.points,"y"))==null?void 0:i.y)??0}}},cWe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.lineCap="round",t.lineJoin="round",t.strokeStyle=iWe(e.fill,e.alpha);const{x:o,y:s,width:a}=cf({...r,width:e.lineWidth,height:0},n);t.lineWidth=Ji(a),t.moveTo(Ji(o),Ji(s));for(const c of i){const{x:u,y:f}=cf({...c,width:0,height:0},n);t.lineTo(Ji(u),Ji(f))}t.stroke()},test(e){var t,n,r,i;return{left:((t=Qt.minBy(e.points,"x"))==null?void 0:t.x)??0-e.lineWidth??0,right:((n=Qt.maxBy(e.points,"x"))==null?void 0:n.x)??0+e.lineWidth??0,top:((r=Qt.minBy(e.points,"y"))==null?void 0:r.y)??0-e.lineWidth??0,bottom:((i=Qt.maxBy(e.points,"y"))==null?void 0:i.y)??0+e.lineWidth??0}}},uWe={text:oWe,path:cWe,rect:sWe,polygon:lWe,circle:aWe},{log2:dWe,max:fWe}=Math,dq=e=>Qt.floor(dWe(e+1));function fq({right:e,left:t,bottom:n,top:r},i){const o=fWe(dq(e-t),dq(n-r))-i,s=2**o,a={left:Qt.floor(t/s),right:Qt.ceil((e+1)/s),top:Qt.floor(r/s),bottom:Qt.ceil((n+1)/s)};return{zoom:o,order:s,tiles:Qt.shuffle(O8e({x:Qt.range(a.left,a.right+1),y:Qt.range(a.top,a.bottom+1)}).map(c=>{const u=c.x*s,f=c.y*s;return{tile:c,bounds:{left:u-s/2,right:u+s/2,top:f-s/2,bottom:f+s/2}}}))}}const hWe=""+new URL("D2Renderer.worker-57d004c7.js",import.meta.url).href;class pWe extends Worker{constructor(){super(hWe,{type:"module"})}call(t,n,r=[]){return this.postMessage({action:t,payload:n},r)}on(t,n){const r=i=>{const{action:o,payload:s}=i.data;o===t&&n(s)};return this.addEventListener("message",r),()=>this.removeEventListener("message",r)}}function mWe(e,t){return!(t.left>=e.right||t.right<=e.left||t.top>=e.bottom||t.bottom<=e.top)}const{max:hq,min:pq}=Math,vie=class yie extends fm{constructor(t,n){super(t),this.bounds=n,this.age=yie.age++}};vie.age=0;let gWe=vie;function zS(e,t){return Qt.isNaN(e)?t:e}var ca,qr,Sd,Su,Ti,Ul,Ed,Cd,bT,xT,bie,wT,xie,Og,cw,_T,ST,wie,ET,_ie,CT,Sie,TT,Eie,uw,H5,dw,W5,kT,Cie,fw,G5,AT,Tie,IT,kie;class vWe extends zHe{constructor(){super(...arguments);yr(this,xT);yr(this,wT);yr(this,ST);yr(this,ET);yr(this,CT);yr(this,TT);yr(this,uw);yr(this,dw);yr(this,kT);yr(this,fw);yr(this,AT);yr(this,IT);yr(this,ca,void 0);yr(this,qr,void 0);yr(this,Sd,void 0);yr(this,Su,void 0);yr(this,Ti,$V);yr(this,Ul,[]);yr(this,Ed,new R8e(16));yr(this,Cd,void 0);yr(this,bT,0);yr(this,Og,Qt.once(()=>Qt.debounce(()=>oo(this,uw,H5).call(this),rt(this,Ti).debounceInterval)));yr(this,cw,Qt.once(()=>Qt.throttle(()=>oo(this,dw,W5).call(this),rt(this,Ti).refreshInterval)));yr(this,_T,Qt.once(()=>Qt.throttle(n=>oo(this,kT,Cie).call(this,n),rt(this,Ti).refreshInterval)))}getInstance(){return{app:rt(this,ca),viewport:rt(this,qr)}}fitCamera(){var r,i,o,s;const n=Qt.values(rt(this,Ed).all()).flat();if(n.length){const a=Qt.reduce(n,(c,u)=>({top:zS(pq(c.top,u.top),c.top),left:zS(pq(c.left,u.left),c.left),bottom:zS(hq(c.bottom,u.bottom),c.bottom),right:zS(hq(c.right,u.right),c.right)}),{bottom:-1/0,top:1/0,left:1/0,right:-1/0});(s=(r=rt(this,qr))==null?void 0:r.animate)==null||s.call(r,{position:new Lt((a.left+a.right)/2,(a.top+a.bottom)/2),scale:((o=(i=rt(this,qr))==null?void 0:i.findFit)==null?void 0:o.call(i,a.right-a.left,a.bottom-a.top))*.8,ease:"easeOutExpo",time:rt(this,Ti).animationDuration*1.5,callbackOnComplete:()=>rt(this,Og).call(this)()})}}initialCamera(){var n,r;(r=(n=rt(this,qr))==null?void 0:n.animate)==null||r.call(n,{scale:1,ease:"easeOutExpo",time:rt(this,Ti).animationDuration*1.5,callbackOnComplete:()=>rt(this,Og).call(this)()})}getView(){var n;return(n=rt(this,ca))==null?void 0:n.view}setup(n){const r={...$V,...n};oo(this,wT,xie).call(this,r),this.setOptions(r),oo(this,ET,_ie).call(this,r)}destroy(){Qt.map(rt(this,Ul),n=>n.terminate()),rt(this,ca).destroy()}add(n){const r=e3e(),i=Qt.map(n,({component:o,meta:s})=>({...uWe[o.$].test(o),component:o,meta:s,index:oo(this,xT,bie).call(this)}));return rt(this,Ed).load(i),Qt.map(rt(this,Ul),o=>o.call("add",[Qt.map(n,"component"),r])),()=>{for(const o of i)rt(this,Ed).remove(o);Qt.map(rt(this,Ul),o=>o.call("remove",[r]))}}setOptions(n){const r={...rt(this,Ti),...n};oo(this,CT,Sie).call(this,r),du(this,Ti,r),oo(this,uw,H5).call(this),oo(this,dw,W5).call(this)}}ca=new WeakMap,qr=new WeakMap,Sd=new WeakMap,Su=new WeakMap,Ti=new WeakMap,Ul=new WeakMap,Ed=new WeakMap,Cd=new WeakMap,bT=new WeakMap,xT=new WeakSet,bie=function(){return ZU(this,bT)._++},wT=new WeakSet,xie=function(n){du(this,ca,new CU({backgroundAlpha:0,width:n.screenSize.width,height:n.screenSize.height,autoDensity:!0,resolution:2})),du(this,qr,new Vje({stopPropagation:!0,screenWidth:n.screenSize.width,screenHeight:n.screenSize.height,events:rt(this,ca).renderer.events,passiveWheel:!1})),rt(this,qr).on("clicked",r=>{const{x:i,y:o}=r.world,s=rt(this,Ed).search({minX:i,minY:o,maxX:i+Number.MIN_VALUE,maxY:o+Number.MIN_VALUE});this.emit("click",r.event,{world:r.world,components:s})}),rt(this,ca).stage.addChild(rt(this,qr)),rt(this,qr).drag().pinch().wheel().decelerate({friction:.98}).clampZoom({maxScale:300,minScale:1e-5}),rt(this,qr).on("moved",()=>{rt(this,Og).call(this)(),rt(this,cw).call(this)()}),rt(this,qr).on("mousemove",r=>rt(this,_T).call(this)(r)),du(this,Sd,new us),rt(this,qr).addChild(rt(this,Sd)),du(this,Su,new fv),rt(this,qr).addChild(rt(this,Su)),du(this,Cd,new fv),rt(this,qr).addChild(rt(this,Cd)),oo(this,ST,wie).call(this)},Og=new WeakMap,cw=new WeakMap,_T=new WeakMap,ST=new WeakSet,wie=function(){const{dynamicResolution:n}=rt(this,Ti),{dtMax:r,dtMin:i,increment:o,intervalMs:s,maxScale:a,minScale:c}=n,u=Qt.floor(Si.targetFPMS*s);let f=0,h=0,p=1;rt(this,ca).ticker.add(g=>{const{tileResolution:v}=rt(this,Ti);if(!(f%u)){const y=h/u;p=Qt.clamp(y>=r?p+o:y<=i?p-o:p,c,a),Qt.map(rt(this,Ul),S=>{S.call("setTileResolution",[{width:Qt.ceil(v.width/p),height:Qt.ceil(v.height/p)}])}),h=0}h+=g,f++})},ET=new WeakSet,_ie=function(n){Qt.map(rt(this,Ul),r=>r.terminate()),du(this,Ul,Qt.times(n.workerCount,r=>{const i=new pWe;return i.on("update",o=>oo(this,TT,Eie).call(this,o)),i.onerror=o=>{throw o},i.call("setup",[{...n,workerIndex:r}]),i}))},CT=new WeakSet,Sie=function(n){var o,s,a,c;const{width:r,height:i}=n.screenSize;(a=(s=(o=rt(this,ca))==null?void 0:o.renderer)==null?void 0:s.resize)==null||a.call(s,r,i),(c=rt(this,qr))==null||c.resize(r,i)},TT=new WeakSet,Eie=function({bounds:n,bitmap:r}){const i=mt.from(r);oo(this,AT,Tie).call(this,i,n)},uw=new WeakSet,H5=function(){const{top:n,bottom:r,left:i,right:o}=rt(this,qr);Qt.map(rt(this,Ul),s=>s.call("setFrustum",[{top:n,bottom:r,left:i,right:o}]))},dw=new WeakSet,W5=function(){var s,a,c,u,f;const{tileSubdivision:n,accentColor:r}=rt(this,Ti),{tiles:i}=fq(rt(this,qr),n),o=oo(this,fw,G5).call(this);(s=rt(this,Su))==null||s.clear(),(a=rt(this,Su))==null||a.lineStyle(1*o,r,.5),(c=rt(this,Su))==null||c.beginFill(r,.05);for(const{bounds:h,tile:p}of i)Qt.find((u=rt(this,Sd))==null?void 0:u.children,g=>Qt.isEqual(g.bounds,h))||(f=rt(this,Su))==null||f.drawRect(h.left,h.top,h.right-h.left,h.bottom-h.top)},kT=new WeakSet,Cie=function(n){var c;const{accentColor:r}=rt(this,Ti),i=oo(this,fw,G5).call(this),{x:o,y:s}=rt(this,qr).toWorld(n.globalX,n.globalY),a=rt(this,Ed).search({minX:o,minY:s,maxX:o+Number.MIN_VALUE,maxY:s+Number.MIN_VALUE});rt(this,Cd).clear(),rt(this,Cd).lineStyle(2*i,r,1);for(const u of a)(c=rt(this,Cd))==null||c.drawRect(u.left,u.top,u.right-u.left,u.bottom-u.top)},fw=new WeakSet,G5=function(){const{right:n,left:r}=rt(this,qr),{width:i}=rt(this,Ti).screenSize;return(n-r)/i},AT=new WeakSet,Tie=async function(n,r){var s;const{tileSubdivision:i}=rt(this,Ti),{tiles:o}=fq(rt(this,qr),i);if(Qt.find(o,a=>Qt.isEqual(a.bounds,r))){const a={x:(r.right-r.left)/n.width,y:(r.bottom-r.top)/n.height},c=new gWe(n,r);(s=rt(this,Sd))==null||s.addChild(c).setTransform(r.left,r.top,a.x,a.y),rt(this,cw).call(this)(),await oo(this,IT,kie).call(this,c);for(const u of rt(this,Sd).children)mWe(u.bounds,r)&&u.age{const o=s=>{n.alpha+=s/Si.targetFPMS/rt(this,Ti).animationDuration,n.alpha>1&&(r.remove(o),i())};n.alpha=0,Qt.delay(()=>r.add(o),rt(this,Ti).animationDuration)})};const yWe=w8e(vWe,{components:["rect","circle","path","polygon"],id:"d2-renderer",name:"Pixi",description:"Provides 2D Visualisation Support",version:"1.0.0"}),bWe={"d2-renderer":yWe};var xWe=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},PU={},wWe=Object.prototype.hasOwnProperty,_We;function mq(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function gq(e){try{return encodeURIComponent(e)}catch{return null}}function SWe(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var i=mq(r[1]),o=mq(r[2]);i===null||o===null||i in n||(n[i]=o)}return n}function EWe(e,t){t=t||"";var n=[],r,i;typeof t!="string"&&(t="?");for(i in e)if(wWe.call(e,i)){if(r=e[i],!r&&(r===null||r===_We||isNaN(r))&&(r=""),i=gq(i),r=gq(r),i===null||r===null)continue;n.push(i+"="+r)}return n.length?t+n.join("&"):""}PU.stringify=EWe;PU.parse=SWe;var Aie=xWe,UA=PU,CWe=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Iie=/[\n\r\t]/g,TWe=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Rie=/:\d+$/,kWe=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,AWe=/^[a-zA-Z]:/;function OU(e){return(e||"").toString().replace(CWe,"")}var V5=[["#","hash"],["?","query"],function(t,n){return lc(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],vq={hash:1,query:1};function Pie(e){var t;typeof window<"u"?t=window:typeof Xt<"u"?t=Xt:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},i=typeof e,o;if(e.protocol==="blob:")r=new hc(unescape(e.pathname),{});else if(i==="string"){r=new hc(e,{});for(o in vq)delete r[o]}else if(i==="object"){for(o in e)o in vq||(r[o]=e[o]);r.slashes===void 0&&(r.slashes=TWe.test(e.href))}return r}function lc(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Oie(e,t){e=OU(e),e=e.replace(Iie,""),t=t||{};var n=kWe.exec(e),r=n[1]?n[1].toLowerCase():"",i=!!n[2],o=!!n[3],s=0,a;return i?o?(a=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(a=n[2]+n[4],s=n[2].length):o?(a=n[3]+n[4],s=n[3].length):a=n[4],r==="file:"?s>=2&&(a=a.slice(2)):lc(r)?a=n[4]:r?i&&(a=a.slice(2)):s>=2&&lc(t.protocol)&&(a=n[4]),{protocol:r,slashes:i||lc(r),slashesCount:s,rest:a}}function IWe(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),s++):s&&(r===0&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),(i==="."||i==="..")&&n.push(""),n.join("/")}function hc(e,t,n){if(e=OU(e),e=e.replace(Iie,""),!(this instanceof hc))return new hc(e,t,n);var r,i,o,s,a,c,u=V5.slice(),f=typeof t,h=this,p=0;for(f!=="object"&&f!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=UA.parse),t=Pie(t),i=Oie(e||"",t),r=!i.protocol&&!i.slashes,h.slashes=i.slashes||r&&t.slashes,h.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||AWe.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!lc(h.protocol)))&&(u[3]=[/(.*)/,"pathname"]);p{const n=[];for(const{transport:r,url:i,key:o,disabled:s}of e??[])if(!s){const a=new Lie[r].constructor({url:i});n.push({key:o,url:i,renderer:await a.get()})}t(()=>n)},[e,t]),C.jsx(C.Fragment,{})}const DWe={connected:"success.light",connecting:"warning.light",error:"error.light",disabled:"text.disabled"};function NWe({value:e,onValueChange:t}){const[n]=vA(),r=te.find(n,{key:e.key});function i(s){t==null||t(Uk(e,s))}const o=e!=null&&e.disabled?"disabled":r?"connected":"error";return C.jsx(C.Fragment,{children:C.jsxs(En,{alignItems:"center",py:.5,children:[C.jsx(_ne,{sx:{color:DWe[o]}}),C.jsx(ai,{}),C.jsxs(ht,{flex:1,children:[C.jsx(jt,{children:r?`${r.renderer.meta.name} ${r.renderer.meta.version}`:te.startCase(o)}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:r?C.jsxs(C.Fragment,{children:[C.jsx("span",{children:r.renderer.meta.description}),C.jsx("br",{}),C.jsxs("span",{children:["Contributes: ",te.join(r.renderer.meta.components,", ")]})]}):(e==null?void 0:e.url)||"No URL"})]}),C.jsx(vf,{title:`${e.disabled?"Enable":"Disable"} Renderer`,children:C.jsx(ht,{children:C.jsx(Yg,{checked:!e.disabled,onChange:(s,a)=>i({disabled:!a})})})}),C.jsx(Ij,{trigger:s=>C.jsx(cg,{icon:C.jsx(jk,{}),label:"Edit Renderer",onClick:s}),appBar:{children:C.jsx(Aj,{children:"Edit Renderer"})},children:C.jsxs(ht,{p:2.5,children:[C.jsx(Ew,{value:e.url,onChange:s=>i({url:s.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(Fx,{placeholder:"Renderer Type",items:te.entries(Lie).map(([s,{name:a}])=>({value:s,label:a})),fullWidth:!0,value:e.transport,onChange:s=>i({transport:s})})]})})]})})}var MU={},HA={},t_={};(function(e){var t=Xt&&Xt.__extends||function(){var g=function(v,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var b in w)Object.prototype.hasOwnProperty.call(w,b)&&(S[b]=w[b])},g(v,y)};return function(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");g(v,y);function S(){this.constructor=v}v.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONRPCNotification=e.createJSONRPCRequest=e.createJSONRPCSuccessResponse=e.createJSONRPCErrorResponse=e.JSONRPCErrorCode=e.JSONRPCErrorException=e.isJSONRPCResponses=e.isJSONRPCResponse=e.isJSONRPCRequests=e.isJSONRPCRequest=e.isJSONRPCID=e.JSONRPC=void 0,e.JSONRPC="2.0";var n=function(g){return typeof g=="string"||typeof g=="number"||g===null};e.isJSONRPCID=n;var r=function(g){return g.jsonrpc===e.JSONRPC&&g.method!==void 0&&g.result===void 0&&g.error===void 0};e.isJSONRPCRequest=r;var i=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCRequest)};e.isJSONRPCRequests=i;var o=function(g){return g.jsonrpc===e.JSONRPC&&g.id!==void 0&&(g.result!==void 0||g.error!==void 0)};e.isJSONRPCResponse=o;var s=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCResponse)};e.isJSONRPCResponses=s;var a=function(g,v,y){var S={code:g,message:v};return y!=null&&(S.data=y),S},c=function(g){t(v,g);function v(y,S,w){var b=g.call(this,y)||this;return Object.setPrototypeOf(b,v.prototype),b.code=S,b.data=w,b}return v.prototype.toObject=function(){return a(this.code,this.message,this.data)},v}(Error);e.JSONRPCErrorException=c,function(g){g[g.ParseError=-32700]="ParseError",g[g.InvalidRequest=-32600]="InvalidRequest",g[g.MethodNotFound=-32601]="MethodNotFound",g[g.InvalidParams=-32602]="InvalidParams",g[g.InternalError=-32603]="InternalError"}(e.JSONRPCErrorCode||(e.JSONRPCErrorCode={}));var u=function(g,v,y,S){return{jsonrpc:e.JSONRPC,id:g,error:a(v,y,S)}};e.createJSONRPCErrorResponse=u;var f=function(g,v){return{jsonrpc:e.JSONRPC,id:g,result:v??null}};e.createJSONRPCSuccessResponse=f;var h=function(g,v,y){return{jsonrpc:e.JSONRPC,id:g,method:v,params:y}};e.createJSONRPCRequest=h;var p=function(g,v){return{jsonrpc:e.JSONRPC,method:g,params:v}};e.createJSONRPCNotification=p})(t_);var n_={};Object.defineProperty(n_,"__esModule",{value:!0});n_.DefaultErrorCode=void 0;n_.DefaultErrorCode=0;var yq=Xt&&Xt.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(f){try{u(r.next(f))}catch(h){s(h)}}function c(f){try{u(r.throw(f))}catch(h){s(h)}}function u(f){f.done?o(f.value):i(f.value).then(a,c)}u((r=r.apply(e,t||[])).next())})},bq=Xt&&Xt.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]{const r=({data:i})=>{i.id===n.id&&(this.rpc.receive(i),this.worker.removeEventListener("message",r))};this.worker.postMessage(n),this.worker.addEventListener("message",r)})}connect(){return this.worker.postMessage(this.options.url),new Promise(t=>{const n=()=>{t(),this.worker.removeEventListener("message",n)};this.worker.addEventListener("message",n)})}async disconnect(){this.worker.terminate()}async call(t,n){return await this.rpc.request(t,n)}}const ZWe={trace:async(e,t)=>{switch(e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:n}=t;try{return JSON.parse((n==null?void 0:n.content)??"")}catch{return{}}}}}};class eGe{constructor(t){gm(this,"handler");this.options=t;const{hostname:n}=Mie(t.url);this.handler=ZWe[n]}async connect(){}async disconnect(){}async call(t,n){return await this.handler(t,n)}}const pc=Object.create(null);pc.open="0";pc.close="1";pc.ping="2";pc.pong="3";pc.message="4";pc.upgrade="5";pc.noop="6";const DE=Object.create(null);Object.keys(pc).forEach(e=>{DE[pc[e]]=e});const q5={type:"error",data:"parser error"},Nie=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Bie=typeof ArrayBuffer=="function",$ie=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,LU=({type:e,data:t},n,r)=>Nie&&t instanceof Blob?n?r(t):Sq(t,r):Bie&&(t instanceof ArrayBuffer||$ie(t))?n?r(t):Sq(new Blob([t]),r):r(pc[e]+(t||"")),Sq=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Eq(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let U$;function tGe(e,t){if(Nie&&e.data instanceof Blob)return e.data.arrayBuffer().then(Eq).then(t);if(Bie&&(e.data instanceof ArrayBuffer||$ie(e.data)))return t(Eq(e.data));LU(e,!1,n=>{U$||(U$=new TextEncoder),t(U$.encode(n))})}const Cq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wx=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,o,s,a,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|c&63;return u},rGe=typeof ArrayBuffer=="function",DU=(e,t)=>{if(typeof e!="string")return{type:"message",data:Fie(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:iGe(e.substring(1),t)}:DE[n]?e.length>1?{type:DE[n],data:e.substring(1)}:{type:DE[n]}:q5},iGe=(e,t)=>{if(rGe){const n=nGe(e);return Fie(n,t)}else return{base64:!0,data:e}},Fie=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},zie=String.fromCharCode(30),oGe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{LU(o,!1,a=>{r[s]=a,++i===n&&t(r.join(zie))})})},sGe=(e,t)=>{const n=e.split(zie),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let H$;function US(e){return e.reduce((t,n)=>t+n.length,0)}function HS(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){a.enqueue(q5);break}i=f*Math.pow(2,32)+u.getUint32(4),r=3}else{if(US(n)e){a.enqueue(q5);break}}}})}const jie=4;function li(e){if(e)return cGe(e)}function cGe(e){for(var t in li.prototype)e[t]=li.prototype[t];return e}li.prototype.on=li.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};li.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};li.prototype.off=li.prototype.removeListener=li.prototype.removeAllListeners=li.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Uie(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const uGe=pa.setTimeout,dGe=pa.clearTimeout;function VA(e,t){t.useNativeTimers?(e.setTimeoutFn=uGe.bind(pa),e.clearTimeoutFn=dGe.bind(pa)):(e.setTimeoutFn=pa.setTimeout.bind(pa),e.clearTimeoutFn=pa.clearTimeout.bind(pa))}const fGe=1.33;function hGe(e){return typeof e=="string"?pGe(e):Math.ceil((e.byteLength||e.size)*fGe)}function pGe(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function mGe(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function gGe(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function Wie(){const e=Aq(+new Date);return e!==kq?(Tq=0,kq=e):e+"."+Aq(Tq++)}for(;WS{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};sGe(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,oGe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Wie()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new cc(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class cc extends li{constructor(t,n){super(),VA(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=Uie(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Vie(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=cc.requestsCount++,cc.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=xGe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete cc.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}cc.requestsCount=0;cc.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Iq);else if(typeof addEventListener=="function"){const e="onpagehide"in pa?"pagehide":"unload";addEventListener(e,Iq,!1)}}function Iq(){for(let e in cc.requests)cc.requests.hasOwnProperty(e)&&cc.requests[e].abort()}const BU=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),GS=pa.WebSocket||pa.MozWebSocket,Rq=!0,SGe="arraybuffer",Pq=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class EGe extends NU{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Pq?{}:Uie(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Rq&&!Pq?n?new GS(t,n):new GS(t):new GS(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{Rq&&this.ws.send(o)}catch{}i&&BU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Wie()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!GS}}class CGe extends NU{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=lGe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=aGe();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&BU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const TGe={websocket:EGe,webtransport:CGe,polling:_Ge},kGe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,AGe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Y5(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=kGe.exec(e||""),o={},s=14;for(;s--;)o[AGe[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=IGe(o,o.path),o.queryKey=RGe(o,o.query),o}function IGe(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function RGe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let qie=class Um extends li{constructor(t,n={}){super(),this.binaryType=SGe,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Y5(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Y5(n.host).host),VA(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=gGe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=jie,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new TGe[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Um.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Um.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Um.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const p=new Error("probe error: "+h);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function a(){s("transport closed")}function c(){s("socket closed")}function u(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",c),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",c),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Um.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Um.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Xie=Object.prototype.toString,LGe=typeof Blob=="function"||typeof Blob<"u"&&Xie.call(Blob)==="[object BlobConstructor]",DGe=typeof File=="function"||typeof File<"u"&&Xie.call(File)==="[object FileConstructor]";function $U(e){return OGe&&(e instanceof ArrayBuffer||MGe(e))||LGe&&e instanceof Blob||DGe&&e instanceof File}function NE(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:gn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case gn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case gn.EVENT:case gn.BINARY_EVENT:this.onevent(t);break;case gn.ACK:case gn.BINARY_ACK:this.onack(t);break;case gn.DISCONNECT:this.ondisconnect();break;case gn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:gn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:gn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}$v.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};$v.prototype.reset=function(){this.attempts=0};$v.prototype.setMin=function(e){this.ms=e};$v.prototype.setMax=function(e){this.max=e};$v.prototype.setJitter=function(e){this.jitter=e};class J5 extends li{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,VA(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new $v({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||UGe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new qie(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=cl(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=cl(n,"error",o);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(cl(t,"ping",this.onping.bind(this)),cl(t,"data",this.ondata.bind(this)),cl(t,"error",this.onerror.bind(this)),cl(t,"close",this.onclose.bind(this)),cl(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){BU(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Yie(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Zb={};function BE(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=PGe(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=Zb[i]&&o in Zb[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return a?c=new J5(r,t):(Zb[i]||(Zb[i]=new J5(r,t)),c=Zb[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(BE,{Manager:J5,Socket:Yie,io:BE,connect:BE});class WGe{constructor(t){gm(this,"rpc");gm(this,"socket");this.options=t,this.socket=BE(t.url),this.rpc=new MU.JSONRPCClient(async n=>{const r=i=>{i.id===n.id&&(this.socket.off("response",r),this.rpc.receive(i))};this.socket.emit("request",n),this.socket.on("response",r)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(t,n){return await this.rpc.request(t,n)}}const zU={socketio:{name:"socket.io",constructor:WGe},ipc:{name:"Web Worker",constructor:JWe},native:{name:"Internal",constructor:eGe}};function GGe(e){return zU[e].constructor}const Kie=te.first(te.keys(zU));function VGe(){const[{renderer:e},t]=Ju();return C.jsx(C.Fragment,{children:C.jsx(lA,{editor:n=>C.jsx(NWe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({renderer:n})),300),addItemLabel:"Add Renderer",create:()=>({transport:Kie,url:"",disabled:!0}),extras:C.jsx(nf,{icon:C.jsx(HQ,{}),sx:{ml:2},onClick:()=>t(()=>({renderer:zJ})),children:"Reset to Defaults"})})})}function qGe(e){const[{connections:t}]=cA(),n=Jj(),[{remote:r}]=Ju(),i=te.find(r,{url:e});return i&&!(i!=null&&i.disabled)?n({url:e})?"connected":t?"connecting":e?"error":"not-connected":"not-connected"}const XGe={connected:"success.light",connecting:"warning.light",error:"error.light","not-connected":"text.disabled"};function YGe({value:e,onValueChange:t}){const n=r$e(e.url),r=qGe(e.url);function i(o){t==null||t(Uk(e,o))}return C.jsx(C.Fragment,{children:C.jsxs(En,{alignItems:"center",py:.5,children:[C.jsx(_ne,{sx:{color:XGe[r]}}),C.jsx(ai,{}),C.jsxs(ht,{flex:1,children:[C.jsx(jt,{children:n?`${n.name} ${n.version}`:te.startCase(r)}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:(n==null?void 0:n.description)??((e==null?void 0:e.url)||"No URL")})]}),C.jsx(vf,{title:`${e.disabled?"Enable":"Disable"} Connection`,children:C.jsx(ht,{children:C.jsx(Yg,{checked:!e.disabled,onChange:(o,s)=>i({disabled:!s})})})}),C.jsx(Ij,{trigger:o=>C.jsx(cg,{icon:C.jsx(jk,{}),label:"Edit Connection",onClick:o}),appBar:{children:C.jsx(Aj,{children:"Edit Connection"})},children:C.jsxs(ht,{p:2.5,children:[C.jsx(Ew,{value:e.url,onChange:o=>i({url:o.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(Fx,{placeholder:"Connection Type",items:te.entries(zU).map(([o,{name:s}])=>({value:o,label:s})),fullWidth:!0,value:e.transport,onChange:o=>i({transport:o})})]})})]})})}function KGe(){const[{remote:e},t]=Ju();return C.jsx(C.Fragment,{children:C.jsx(lA,{editor:n=>C.jsx(YGe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({remote:n})),300),addItemLabel:"Add Solver",create:()=>({transport:Kie,url:"",disabled:!0}),extras:C.jsx(nf,{icon:C.jsx(HQ,{}),sx:{ml:2},onClick:()=>t(()=>({remote:FJ})),children:"Reset to Defaults"})})})}const Mq=e=>`${e}x`;function QGe(){const{controls:e,onChange:t,state:n}=bf(),[{playbackRate:r=1,acrylic:i,theme:o="light",accentColor:s="teal"},a]=Ju(),[c,u]=R.useState("general");function f(p){return C.jsx(jt,{variant:"overline",color:"text.secondary",children:p})}function h(p){return C.jsx(jt,{variant:"body1",children:p})}return C.jsx(WJ,{value:c,children:C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Options,{children:C.jsxs(XJ,{onChange:(p,g)=>u(g),children:[C.jsx(ng,{label:"General",value:"general"}),C.jsx(ng,{label:"Connections",value:"connections"}),C.jsx(ng,{label:"Renderers",value:"renderers"}),C.jsx(ng,{label:"Map Parsers",value:"map-parsers"})]})}),C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,children:C.jsx(Aw,{y:!0,children:C.jsxs(En,{vertical:!0,pt:6,children:[C.jsx(sg,{value:"general",children:C.jsxs(ht,{children:[f("Playback"),C.jsxs(En,{alignItems:"center",children:[h("Playback Rate"),C.jsx(ai,{flex:1}),C.jsx(Ybe,{sx:{maxWidth:320,mr:2},marks:[.25,1,5].map(p=>({value:p*Lm,label:Mq(p)})),step:.25*Lm,min:.25*Lm,max:5*Lm,valueLabelFormat:p=>Mq(p/Lm),valueLabelDisplay:"auto",defaultValue:r,onChangeCommitted:(p,g)=>a(()=>({playbackRate:g}))})]}),f("UI"),C.jsxs(En,{alignItems:"center",children:[h("Acrylic"),C.jsx(ai,{flex:1}),C.jsx(Yg,{defaultChecked:!!i,onChange:(p,g)=>a(()=>({acrylic:g}))})]}),C.jsxs(En,{alignItems:"center",children:[h("Dark Mode"),C.jsx(ai,{flex:1}),C.jsx(Yg,{defaultChecked:o==="dark",onChange:(p,g)=>a(()=>({theme:g?"dark":"light"}))})]}),C.jsxs(En,{alignItems:"center",children:[h("Accent"),C.jsx(ai,{flex:1}),C.jsx(Gs,{value:s,items:te.map(te.keys(SSe),p=>({id:p,name:te.startCase(p)})),showArrow:!0,onChange:p=>a(()=>({accentColor:p}))})]})]})}),C.jsx(sg,{value:"connections",children:C.jsxs(ht,{children:[f("Solvers"),C.jsx(KGe,{})]})}),C.jsx(sg,{value:"renderers",children:C.jsxs(ht,{children:[f("Renderers"),C.jsx(VGe,{})]})}),C.jsx(sg,{value:"map-parsers",children:C.jsxs(ht,{children:[f("Map Parsers"),C.jsx(JGe,{})]})})]})})})}),C.jsx(zn.Extras,{children:e})]})})}function JGe(){return C.jsx(Xg,{children:te.keys(Kj).map(e=>C.jsx(Bx,{children:C.jsx(rc,{primary:e,secondary:"Internal"})},e))})}const qA=0,Ef=1,Fv=2,Qie=4;function Jie(e,t){return n=>e(t(n))}function ZGe(e,t){return t(e)}function Zie(e,t){return n=>e(t,n)}function Lq(e,t){return()=>e(t)}function XA(e,t){return t(e),e}function kr(...e){return e}function e9e(e){e()}function Dq(e){return()=>e}function t9e(...e){return()=>{e.map(e9e)}}function jU(e){return e!==void 0}function zv(){}function qn(e,t){return e(Ef,t)}function rn(e,t){e(qA,t)}function UU(e){e(Fv)}function Us(e){return e(Qie)}function Et(e,t){return qn(e,Zie(t,qA))}function Vu(e,t){const n=e(Ef,r=>{n(),t(r)});return n}function Sn(){const e=[];return(t,n)=>{switch(t){case Fv:e.splice(0,e.length);return;case Ef:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case qA:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function tt(e){let t=e;const n=Sn();return(r,i)=>{switch(r){case Ef:i(t);break;case qA:t=i;break;case Qie:return t}return n(r,i)}}function n9e(e){let t,n;const r=()=>t&&t();return function(i,o){switch(i){case Ef:return o?n===o?void 0:(r(),n=o,t=qn(e,o),t):(r(),zv);case Fv:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function Ks(e){return XA(Sn(),t=>Et(e,t))}function Fo(e,t){return XA(tt(t),n=>Et(e,n))}function r9e(...e){return t=>e.reduceRight(ZGe,t)}function Oe(e,...t){const n=r9e(...t);return(r,i)=>{switch(r){case Ef:return qn(e,n(i));case Fv:UU(e);return}}}function eoe(e,t){return e===t}function Sr(e=eoe){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function Wt(e){return t=>n=>{e(n)&&t(n)}}function ut(e){return t=>Jie(t,e)}function _u(e){return t=>()=>t(e)}function Ql(e,t){return n=>r=>n(t=e(t,r))}function pv(e){return t=>n=>{e>0?e--:t(n)}}function Dd(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Nq(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function un(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const a=Math.pow(2,s);qn(o,c=>{const u=n;n=n|a,t[s]=c,u!==i&&n===i&&r&&(r(),r=null)})}),o=>s=>{const a=()=>o([s].concat(t));n===i?a():r=a}}function Bq(...e){return function(t,n){switch(t){case Ef:return t9e(...e.map(r=>qn(r,n)));case Fv:return;default:throw new Error(`unrecognized action ${t}`)}}}function Ht(e,t=eoe){return Oe(e,Sr(t))}function Ri(...e){const t=Sn(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const a=Math.pow(2,s);qn(o,c=>{n[s]=c,r=r|a,r===i&&rn(t,n)})}),function(o,s){switch(o){case Ef:return r===i&&s(n),qn(t,s);case Fv:return UU(t);default:throw new Error(`unrecognized action ${o}`)}}}function Wn(e,t=[],{singleton:n}={singleton:!0}){return{id:i9e(),constructor:e,dependencies:t,singleton:n}}const i9e=()=>Symbol();function o9e(e){const t=new Map,n=({id:r,constructor:i,dependencies:o,singleton:s})=>{if(s&&t.has(r))return t.get(r);const a=i(o.map(c=>n(c)));return s&&t.set(r,a),a};return n(e)}function s9e(e,t){const n={},r={};let i=0;const o=e.length;for(;i(S[w]=b=>{const x=y[t.methods[w]];rn(x,b)},S),{})}function f(y){return s.reduce((S,w)=>(S[w]=n9e(y[t.events[w]]),S),{})}return{Component:de.forwardRef((y,S)=>{const{children:w,...b}=y,[x]=de.useState(()=>XA(o9e(e),I=>c(I,b))),[E]=de.useState(Lq(f,x));return VS(()=>{for(const I of s)I in b&&qn(E[I],b[I]);return()=>{Object.values(E).map(UU)}},[b,E,x]),VS(()=>{c(x,b)}),de.useImperativeHandle(S,Dq(u(x))),de.createElement(a.Provider,{value:x},n?de.createElement(n,s9e([...r,...i,...s],b),w):w)}),usePublisher:y=>de.useCallback(Zie(rn,de.useContext(a)[y]),[y]),useEmitterValue:y=>{const w=de.useContext(a)[y],[b,x]=de.useState(Lq(Us,w));return VS(()=>qn(w,E=>{E!==b&&x(Dq(E))}),[w,b]),b},useEmitter:(y,S)=>{const b=de.useContext(a)[y];VS(()=>qn(b,S),[S,b])}}}const a9e=typeof document<"u"?de.useLayoutEffect:de.useEffect,l9e=a9e;var Qs=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Qs||{});const c9e={0:"debug",1:"log",2:"warn",3:"error"},u9e=()=>typeof globalThis>"u"?window:globalThis,Cf=Wn(()=>{const e=tt(3);return{log:tt((n,r,i=1)=>{var o;const s=(o=u9e().VIRTUOSO_LOG_LEVEL)!=null?o:Us(e);i>=s&&console[c9e[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function HU(e,t=!0){const n=de.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=de.useMemo(()=>new ResizeObserver(o=>{const s=o[0].target;s.offsetParent!==null&&e(s)}),[e]);r=o=>{o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function pm(e,t=!0){return HU(e,t).callbackRef}function d9e(e,t,n,r,i,o,s){const a=de.useCallback(c=>{const u=f9e(c.children,t,"offsetHeight",i);let f=c.parentElement;for(;!f.dataset.virtuosoScroller;)f=f.parentElement;const h=f.lastElementChild.dataset.viewportType==="window",p=s?s.scrollTop:h?window.pageYOffset||document.documentElement.scrollTop:f.scrollTop,g=s?s.scrollHeight:h?document.documentElement.scrollHeight:f.scrollHeight,v=s?s.offsetHeight:h?window.innerHeight:f.offsetHeight;r({scrollTop:Math.max(p,0),scrollHeight:g,viewportHeight:v}),o==null||o(h9e("row-gap",getComputedStyle(c).rowGap,i)),u!==null&&e(u)},[e,t,i,o,s,r]);return HU(a,n)}function f9e(e,t,n,r){const i=e.length;if(i===0)return null;const o=[];for(let s=0;s{const p=h.target,g=p===window||p===document,v=g?window.pageYOffset||document.documentElement.scrollTop:p.scrollTop,y=g?document.documentElement.scrollHeight:p.scrollHeight,S=g?window.innerHeight:p.offsetHeight,w=()=>{e({scrollTop:Math.max(v,0),scrollHeight:y,viewportHeight:S})};h.suppressFlushSync?w():tg.flushSync(w),s.current!==null&&(v===s.current||v<=0||v===y-S)&&(s.current=null,t(!0),a.current&&(clearTimeout(a.current),a.current=null))},[e,t]);de.useEffect(()=>{const h=i||o.current;return r(i||o.current),c({target:h,suppressFlushSync:!0}),h.addEventListener("scroll",c,{passive:!0}),()=>{r(null),h.removeEventListener("scroll",c)}},[o,c,n,r,i]);function u(h){const p=o.current;if(!p||"offsetHeight"in p&&p.offsetHeight===0)return;const g=h.behavior==="smooth";let v,y,S;p===window?(y=Math.max(uf(document.documentElement,"height"),document.documentElement.scrollHeight),v=window.innerHeight,S=document.documentElement.scrollTop):(y=p.scrollHeight,v=uf(p,"height"),S=p.scrollTop);const w=y-v;if(h.top=Math.ceil(Math.max(Math.min(w,h.top),0)),noe(v,y)||h.top===S){e({scrollTop:S,scrollHeight:y,viewportHeight:v}),g&&t(!0);return}g?(s.current=h.top,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{a.current=null,s.current=null,t(!0)},1e3)):s.current=null,p.scrollTo(h)}function f(h){o.current.scrollBy(h)}return{scrollerRef:o,scrollByCallback:f,scrollToCallback:u}}const Wo=Wn(()=>{const e=Sn(),t=Sn(),n=tt(0),r=Sn(),i=tt(0),o=Sn(),s=Sn(),a=tt(0),c=tt(0),u=tt(0),f=tt(0),h=Sn(),p=Sn(),g=tt(!1);return Et(Oe(e,ut(({scrollTop:v})=>v)),t),Et(Oe(e,ut(({scrollHeight:v})=>v)),s),Et(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:a,fixedHeaderHeight:c,fixedFooterHeight:u,footerHeight:f,scrollHeight:s,smoothScrollTargetReached:r,scrollTo:h,scrollBy:p,statefulScrollTop:i,deviation:n,scrollingInProgress:g}},[],{singleton:!0}),iw={lvl:0};function ioe(e,t,n,r=iw,i=iw){return{k:e,v:t,lvl:n,l:r,r:i}}function rr(e){return e===iw}function Pg(){return iw}function Z5(e,t){if(rr(e))return iw;const{k:n,l:r,r:i}=e;if(t===n){if(rr(r))return i;if(rr(i))return r;{const[o,s]=ooe(r);return $E(wi(e,{k:o,v:s,l:soe(r)}))}}else return tt&&(a=a.concat(e4(o,t,n))),r>=t&&r<=n&&a.push({k:r,v:i}),r<=n&&(a=a.concat(e4(s,t,n))),a}function bp(e){return rr(e)?[]:[...bp(e.l),{k:e.k,v:e.v},...bp(e.r)]}function ooe(e){return rr(e.r)?[e.k,e.v]:ooe(e.r)}function soe(e){return rr(e.r)?e.l:$E(wi(e,{r:soe(e.r)}))}function wi(e,t){return ioe(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function W$(e){return rr(e)||e.lvl>e.r.lvl}function $q(e){return t4(loe(e))}function $E(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(W$(t))return loe(wi(e,{lvl:r-1}));if(!rr(t)&&!rr(t.r))return wi(t.r,{l:wi(t,{r:t.r.l}),r:wi(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(W$(e))return t4(wi(e,{lvl:r-1}));if(!rr(n)&&!rr(n.l)){const i=n.l,o=W$(i)?n.lvl-1:n.lvl;return wi(i,{l:wi(e,{r:i.l,lvl:r-1}),r:t4(wi(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function YA(e,t,n){if(rr(e))return[];const r=Rl(e,t)[0];return p9e(e4(e,r,n))}function aoe(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const o=[];for(let s=1;s({index:t,value:n}))}function t4(e){const{r:t,lvl:n}=e;return!rr(t)&&!rr(t.r)&&t.lvl===n&&t.r.lvl===n?wi(t,{l:wi(e,{r:t.l}),lvl:n+1}):e}function loe(e){const{l:t}=e;return!rr(t)&&t.lvl===e.lvl?wi(t,{r:wi(e,{l:t.r})}):e}function mT(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),s=e[o],a=n(s,t);if(a===0)return o;if(a===-1){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function coe(e,t,n){return e[mT(e,t,n)]}function m9e(e,t,n,r){const i=mT(e,t,r),o=mT(e,n,r,i);return e.slice(i,o+1)}const WU=Wn(()=>({recalcInProgress:tt(!1)}),[],{singleton:!0});function g9e(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function Fq(e,t){let n=0,r=0;for(;n=f||i===p)&&(e=Z5(e,f)):(u=p!==i,c=!0),h>s&&s>=f&&p!==i&&(e=Fs(e,s+1,p));u&&(e=Fs(e,o,i))}return[e,n]}function y9e(){return{offsetTree:[],sizeTree:Pg(),groupOffsetTree:Pg(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function GU({index:e},t){return t===e?0:t0&&(t=Math.max(t,coe(e,r,GU).offset)),aoe(m9e(e,t,n,b9e),x9e)}function n4(e,t,n,r){let i=e,o=0,s=0,a=0,c=0;if(t!==0){c=mT(i,t-1,GU),a=i[c].offset;const f=Rl(n,t-1);o=f[0],s=f[1],i.length&&i[c].size===Rl(n,t)[1]&&(c-=1),i=i.slice(0,c+1)}else i=[];for(const{start:u,value:f}of YA(n,t,1/0)){const h=u-o,p=h*s+a+h*r;i.push({offset:p,size:f,index:u}),o=u,a=p,s=f}return{offsetTree:i,lastIndex:o,lastOffset:a,lastSize:s}}function _9e(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,Qs.DEBUG);const o=e.sizeTree;let s=o,a=0;if(n.length>0&&rr(o)&&t.length===2){const p=t[0].size,g=t[1].size;s=n.reduce((v,y)=>Fs(Fs(v,y,p),y+1,g),s)}else[s,a]=v9e(s,t);if(s===o)return e;const{offsetTree:c,lastIndex:u,lastSize:f,lastOffset:h}=n4(e.offsetTree,a,s,i);return{sizeTree:s,offsetTree:c,lastIndex:u,lastOffset:h,lastSize:f,groupOffsetTree:n.reduce((p,g)=>Fs(p,g,sw(g,c,i)),Pg()),groupIndices:n}}function sw(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:o}=coe(t,e,GU),s=e-i,a=o*s+(s-1)*n+r;return a>0?a+n:a}function S9e(e){return typeof e.groupIndex<"u"}function uoe(e,t,n){if(S9e(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=doe(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function doe(e,t){if(!KA(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function KA(e){return!rr(e.groupOffsetTree)}function E9e(e){return bp(e).map(({k:t,v:n},r,i)=>{const o=i[r+1],s=o?o.k-1:1/0;return{startIndex:t,endIndex:s,size:n}})}const C9e={offsetHeight:"height",offsetWidth:"width"},xc=Wn(([{log:e},{recalcInProgress:t}])=>{const n=Sn(),r=Sn(),i=Fo(r,0),o=Sn(),s=Sn(),a=tt(0),c=tt([]),u=tt(void 0),f=tt(void 0),h=tt((I,A)=>uf(I,C9e[A])),p=tt(void 0),g=tt(0),v=y9e(),y=Fo(Oe(n,un(c,e,g),Ql(_9e,v),Sr()),v),S=Fo(Oe(c,Sr(),Ql((I,A)=>({prev:I.current,current:A}),{prev:[],current:[]}),ut(({prev:I})=>I)),[]);Et(Oe(c,Wt(I=>I.length>0),un(y,g),ut(([I,A,k])=>{const O=I.reduce((D,N,H)=>Fs(D,N,sw(N,A.offsetTree,k)||H),Pg());return{...A,groupIndices:I,groupOffsetTree:O}})),y),Et(Oe(r,un(y),Wt(([I,{lastIndex:A}])=>I[{startIndex:I,endIndex:A,size:k}])),n),Et(u,f);const w=Fo(Oe(u,ut(I=>I===void 0)),!0);Et(Oe(f,Wt(I=>I!==void 0&&rr(Us(y).sizeTree)),ut(I=>[{startIndex:0,endIndex:0,size:I}])),n);const b=Ks(Oe(n,un(y),Ql(({sizes:I},[A,k])=>({changed:k!==I,sizes:k}),{changed:!1,sizes:v}),ut(I=>I.changed)));qn(Oe(a,Ql((I,A)=>({diff:I.prev-A,prev:A}),{diff:0,prev:0}),ut(I=>I.diff)),I=>{const{groupIndices:A}=Us(y);if(I>0)rn(t,!0),rn(o,I+Fq(I,A));else if(I<0){const k=Us(S);k.length>0&&(I-=Fq(-I,k)),rn(s,I)}}),qn(Oe(a,un(e)),([I,A])=>{I<0&&A("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:a},Qs.ERROR)});const x=Ks(o);Et(Oe(o,un(y),ut(([I,A])=>{const k=A.groupIndices.length>0,O=[],D=A.lastSize;if(k){const N=ow(A.sizeTree,0);let H=0,G=0;for(;H{let W=F.ranges;return F.prevSize!==0&&(W=[...F.ranges,{startIndex:F.prevIndex,endIndex:j+I-1,size:F.prevSize}]),{ranges:W,prevIndex:j+I,prevSize:V}},{ranges:O,prevIndex:I,prevSize:0}).ranges}return bp(A.sizeTree).reduce((N,{k:H,v:G})=>({ranges:[...N.ranges,{startIndex:N.prevIndex,endIndex:H+I-1,size:N.prevSize}],prevIndex:H+I,prevSize:G}),{ranges:[],prevIndex:0,prevSize:D}).ranges})),n);const E=Ks(Oe(s,un(y,g),ut(([I,{offsetTree:A},k])=>{const O=-I;return sw(O,A,k)})));return Et(Oe(s,un(y,g),ut(([I,A,k])=>{if(A.groupIndices.length>0){if(rr(A.sizeTree))return A;let D=Pg();const N=Us(S);let H=0,G=0,z=0;for(;H<-I;){z=N[G];const F=N[G+1]-z-1;G++,H+=F+1}if(D=bp(A.sizeTree).reduce((F,{k:j,v:V})=>Fs(F,Math.max(0,j+I),V),D),H!==-I){const F=ow(A.sizeTree,z);D=Fs(D,0,F);const j=Rl(A.sizeTree,-I+1)[1];D=Fs(D,1,j)}return{...A,sizeTree:D,...n4(A.offsetTree,0,D,k)}}else{const D=bp(A.sizeTree).reduce((N,{k:H,v:G})=>Fs(N,Math.max(0,H+I),G),Pg());return{...A,sizeTree:D,...n4(A.offsetTree,0,D,k)}}})),y),{data:p,totalCount:r,sizeRanges:n,groupIndices:c,defaultItemSize:f,fixedItemSize:u,unshiftWith:o,shiftWith:s,shiftWithOffset:E,beforeUnshiftWith:x,firstItemIndex:a,gap:g,sizes:y,listRefresh:b,statefulTotalCount:i,trackItemSizes:w,itemSize:h}},kr(Cf,WU),{singleton:!0}),T9e=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function foe(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!T9e)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const r_=Wn(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:o,scrollTo:s,smoothScrollTargetReached:a,headerHeight:c,footerHeight:u,fixedHeaderHeight:f,fixedFooterHeight:h},{log:p}])=>{const g=Sn(),v=tt(0);let y=null,S=null,w=null;function b(){y&&(y(),y=null),w&&(w(),w=null),S&&(clearTimeout(S),S=null),rn(i,!1)}return Et(Oe(g,un(e,o,t,v,c,u,p),un(r,f,h),ut(([[x,E,I,A,k,O,D,N],H,G,z])=>{const L=foe(x),{align:F,behavior:j,offset:V}=L,W=A-1,K=uoe(L,E,W);let X=sw(K,E.offsetTree,H)+O;F==="end"?(X+=G+Rl(E.sizeTree,K)[1]-I+z,K===W&&(X+=D)):F==="center"?X+=(G+Rl(E.sizeTree,K)[1]-I+z)/2:X-=k,V&&(X+=V);const Q=ie=>{b(),ie?(N("retrying to scroll to",{location:x},Qs.DEBUG),rn(g,x)):N("list did not change, scroll successful",{},Qs.DEBUG)};if(b(),j==="smooth"){let ie=!1;w=qn(n,ce=>{ie=ie||ce}),y=Vu(a,()=>{Q(ie)})}else y=Vu(Oe(n,k9e(150)),Q);return S=setTimeout(()=>{b()},1200),rn(i,!0),N("scrolling from index to",{index:K,top:X,behavior:j},Qs.DEBUG),{top:X,behavior:j}})),s),{scrollToIndex:g,topListHeight:v}},kr(xc,Wo,Cf),{singleton:!0});function k9e(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const aw="up",t1="down",A9e="none",I9e={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},R9e=0,i_=Wn(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:o}])=>{const s=tt(!1),a=tt(!0),c=Sn(),u=Sn(),f=tt(4),h=tt(R9e),p=Fo(Oe(Bq(Oe(Ht(t),pv(1),_u(!0)),Oe(Ht(t),pv(1),_u(!1),Nq(100))),Sr()),!1),g=Fo(Oe(Bq(Oe(o,_u(!0)),Oe(o,_u(!1),Nq(200))),Sr()),!1);Et(Oe(Ri(Ht(t),Ht(h)),ut(([b,x])=>b<=x),Sr()),a),Et(Oe(a,Dd(50)),u);const v=Ks(Oe(Ri(e,Ht(n),Ht(r),Ht(i),Ht(f)),Ql((b,[{scrollTop:x,scrollHeight:E},I,A,k,O])=>{const D=x+I-E>-O,N={viewportHeight:I,scrollTop:x,scrollHeight:E};if(D){let G,z;return x>b.state.scrollTop?(G="SCROLLED_DOWN",z=b.state.scrollTop-x):(G="SIZE_DECREASED",z=b.state.scrollTop-x||b.scrollTopDelta),{atBottom:!0,state:N,atBottomBecause:G,scrollTopDelta:z}}let H;return N.scrollHeight>b.state.scrollHeight?H="SIZE_INCREASED":Ib&&b.atBottom===x.atBottom))),y=Fo(Oe(e,Ql((b,{scrollTop:x,scrollHeight:E,viewportHeight:I})=>{if(noe(b.scrollHeight,E))return{scrollTop:x,scrollHeight:E,jump:0,changed:!1};{const A=E-(x+I)<1;return b.scrollTop!==x&&A?{scrollHeight:E,scrollTop:x,jump:b.scrollTop-x,changed:!0}:{scrollHeight:E,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),Wt(b=>b.changed),ut(b=>b.jump)),0);Et(Oe(v,ut(b=>b.atBottom)),s),Et(Oe(s,Dd(50)),c);const S=tt(t1);Et(Oe(e,ut(({scrollTop:b})=>b),Sr(),Ql((b,x)=>Us(g)?{direction:b.direction,prevScrollTop:x}:{direction:xb.direction)),S),Et(Oe(e,Dd(50),_u(A9e)),S);const w=tt(0);return Et(Oe(p,Wt(b=>!b),_u(0)),w),Et(Oe(t,Dd(100),un(p),Wt(([b,x])=>!!x),Ql(([b,x],[E])=>[x,E],[0,0]),ut(([b,x])=>x-b)),w),{isScrolling:p,isAtTop:a,isAtBottom:s,atBottomState:v,atTopStateChange:u,atBottomStateChange:c,scrollDirection:S,atBottomThreshold:f,atTopThreshold:h,scrollVelocity:w,lastJumpDueToItemResize:y}},kr(Wo)),Tf=Wn(([{log:e}])=>{const t=tt(!1),n=Ks(Oe(t,Wt(r=>r),Sr()));return qn(t,r=>{r&&Us(e)("props updated",{},Qs.DEBUG)}),{propsReady:t,didMount:n}},kr(Cf),{singleton:!0});function VU(e,t){e==0?t():requestAnimationFrame(()=>VU(e-1,t))}function qU(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const o_=Wn(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i},{didMount:o}])=>{const s=tt(!0),a=tt(0),c=tt(!1);return Et(Oe(o,un(a),Wt(([u,f])=>!!f),_u(!1)),s),qn(Oe(Ri(t,o),un(s,e,n,c),Wt(([[,u],f,{sizeTree:h},p,g])=>u&&(!rr(h)||jU(p))&&!f&&!g),un(a)),([,u])=>{rn(c,!0),VU(3,()=>{Vu(r,()=>rn(s,!0)),rn(i,u)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:a}},kr(xc,Wo,r_,Tf),{singleton:!0});function zq(e){return e?e==="smooth"?"smooth":"auto":!1}const P9e=(e,t)=>typeof e=="function"?zq(e(t)):t&&zq(e),O9e=Wn(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:o},{propsReady:s,didMount:a},{log:c},{scrollingInProgress:u}])=>{const f=tt(!1),h=Sn();let p=null;function g(y){rn(i,{index:"LAST",align:"end",behavior:y})}qn(Oe(Ri(Oe(Ht(e),pv(1)),a),un(Ht(f),n,o,u),ut(([[y,S],w,b,x,E])=>{let I=S&&x,A="auto";return I&&(A=P9e(w,b||E),I=I&&!!A),{totalCount:y,shouldFollow:I,followOutputBehavior:A}}),Wt(({shouldFollow:y})=>y)),({totalCount:y,followOutputBehavior:S})=>{p&&(p(),p=null),p=Vu(t,()=>{Us(c)("following output to ",{totalCount:y},Qs.DEBUG),g(S),p=null})});function v(y){const S=Vu(r,w=>{y&&!w.atBottom&&w.notAtBottomBecause==="SIZE_INCREASED"&&!p&&(Us(c)("scrolling to bottom due to increased size",{},Qs.DEBUG),g("auto"))});setTimeout(S,100)}return qn(Oe(Ri(Ht(f),e,s),Wt(([y,,S])=>y&&S),Ql(({value:y},[,S])=>({refreshed:y===S,value:S}),{refreshed:!1,value:0}),Wt(({refreshed:y})=>y),un(f,e)),([,y])=>{v(y!==!1)}),qn(h,()=>{v(Us(f)!==!1)}),qn(Ri(Ht(f),r),([y,S])=>{y&&!S.atBottom&&S.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&g("auto")}),{followOutput:f,autoscrollToBottom:h}},kr(xc,i_,r_,o_,Tf,Cf,Wo));function M9e(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const hoe=Wn(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const o=Sn(),s=Sn(),a=Ks(Oe(o,ut(M9e)));return Et(Oe(a,ut(c=>c.totalCount)),e),Et(Oe(a,ut(c=>c.groupIndices)),t),Et(Oe(Ri(r,n,i),Wt(([c,u])=>KA(u)),ut(([c,u,f])=>Rl(u.groupOffsetTree,Math.max(c-f,0),"v")[0]),Sr(),ut(c=>[c])),s),{groupCounts:o,topItemsIndexes:s}},kr(xc,Wo));function lw(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function poe(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const gT="top",vT="bottom",jq="none";function Uq(e,t,n){return typeof e=="number"?n===aw&&t===gT||n===t1&&t===vT?e:0:n===aw?t===gT?e.main:e.reverse:t===vT?e.main:e.reverse}function Hq(e,t){return typeof e=="number"?e:e[t]||0}const XU=Wn(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const o=Sn(),s=tt(0),a=tt(0),c=tt(0),u=Fo(Oe(Ri(Ht(e),Ht(t),Ht(r),Ht(o,lw),Ht(c),Ht(s),Ht(i),Ht(n),Ht(a)),ut(([f,h,p,[g,v],y,S,w,b,x])=>{const E=f-b,I=S+w,A=Math.max(p-E,0);let k=jq;const O=Hq(x,gT),D=Hq(x,vT);return g-=b,g+=p+w,v+=p+w,v-=b,g>f+I-O&&(k=aw),vf!=null),Sr(lw)),[0,0]);return{listBoundary:o,overscan:c,topListHeight:s,increaseViewportBy:a,visibleRange:u}},kr(Wo),{singleton:!0});function L9e(e,t,n){if(KA(t)){const r=doe(e,t);return[{index:Rl(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const G$={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function Wq(e,t,n){if(e.length===0)return[];if(!KA(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,o=[],s=YA(t.groupOffsetTree,r,i);let a,c=0;for(const u of e){(!a||a.end0){u=e[0].offset;const y=e[e.length-1];f=y.offset+y.size}const h=n-c,p=a+h*s+(h-1)*r,g=u,v=p-f;return{items:Wq(e,i,o),topItems:Wq(t,i,o),topListHeight:t.reduce((y,S)=>S.size+y,0),offsetTop:u,offsetBottom:v,top:g,bottom:f,totalCount:n,firstItemIndex:o}}function moe(e,t,n,r,i,o){let s=0;if(n.groupIndices.length>0)for(const f of n.groupIndices){if(f-s>=e)break;s++}const a=e+s,c=qU(t,a),u=Array.from({length:a}).map((f,h)=>({index:h+c,size:0,offset:0,data:o[h+c]}));return FE(u,[],a,i,n,r)}const mm=Wn(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},o,{visibleRange:s,listBoundary:a,topListHeight:c},{scrolledToInitialItem:u,initialTopMostItemIndex:f},{topListHeight:h},p,{didMount:g},{recalcInProgress:v}])=>{const y=tt([]),S=tt(0),w=Sn();Et(o.topItemsIndexes,y);const b=Fo(Oe(Ri(g,v,Ht(s,lw),Ht(t),Ht(e),Ht(f),u,Ht(y),Ht(r),Ht(i),n),Wt(([A,k,,O,,,,,,,D])=>{const N=D&&D.length!==O;return A&&!k&&!N}),ut(([,,[A,k],O,D,N,H,G,z,L,F])=>{const j=D,{sizeTree:V,offsetTree:W}=j,K=Us(S);if(O===0)return{...G$,totalCount:O};if(A===0&&k===0)return K===0?{...G$,totalCount:O}:moe(K,N,D,z,L,F||[]);if(rr(V))return K>0?null:FE(L9e(qU(N,O),j,F),[],O,L,j,z);const X=[];if(G.length>0){const se=G[0],J=G[G.length-1];let ae=0;for(const le of YA(V,se,J)){const he=le.value,pe=Math.max(le.start,se),ve=Math.min(le.end,J);for(let ye=pe;ye<=ve;ye++)X.push({index:ye,size:he,offset:ae,data:F&&F[ye]}),ae+=he}}if(!H)return FE([],X,O,L,j,z);const Q=G.length>0?G[G.length-1]+1:0,ie=w9e(W,A,k,Q);if(ie.length===0)return null;const ce=O-1,ue=XA([],se=>{for(const J of ie){const ae=J.value;let le=ae.offset,he=J.start;const pe=ae.size;if(ae.offset=k);ye++)se.push({index:ye,size:pe,offset:le,data:F&&F[ye]}),le+=pe+L}});return FE(ue,X,O,L,j,z)}),Wt(A=>A!==null),Sr()),G$);Et(Oe(n,Wt(jU),ut(A=>A==null?void 0:A.length)),t),Et(Oe(b,ut(A=>A.topListHeight)),h),Et(h,c),Et(Oe(b,ut(A=>[A.top,A.bottom])),a),Et(Oe(b,ut(A=>A.items)),w);const x=Ks(Oe(b,Wt(({items:A})=>A.length>0),un(t,n),Wt(([{items:A},k])=>A[A.length-1].originalIndex===k-1),ut(([,A,k])=>[A-1,k]),Sr(lw),ut(([A])=>A))),E=Ks(Oe(b,Dd(200),Wt(({items:A,topItems:k})=>A.length>0&&A[0].originalIndex===k.length),ut(({items:A})=>A[0].index),Sr())),I=Ks(Oe(b,Wt(({items:A})=>A.length>0),ut(({items:A})=>{let k=0,O=A.length-1;for(;A[k].type==="group"&&kk;)O--;return{startIndex:A[k].index,endIndex:A[O].index}}),Sr(poe)));return{listState:b,topItemsIndexes:y,endReached:x,startReached:E,rangeChanged:I,itemsRendered:w,initialItemCount:S,...p}},kr(xc,hoe,XU,o_,r_,i_,Tf,WU),{singleton:!0}),D9e=Wn(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:o,listState:s},{didMount:a}])=>(Et(Oe(a,un(o),Wt(([,c])=>c!==0),un(i,e,t,r,n),ut(([[,c],u,f,h,p,g=[]])=>moe(c,u,f,h,p,g))),s),{}),kr(xc,o_,mm,Tf),{singleton:!0}),goe=Wn(([{scrollVelocity:e}])=>{const t=tt(!1),n=Sn(),r=tt(!1);return Et(Oe(e,un(r,t,n),Wt(([i,o])=>!!o),ut(([i,o,s,a])=>{const{exit:c,enter:u}=o;if(s){if(c(i,a))return!1}else if(u(i,a))return!0;return s}),Sr()),t),qn(Oe(Ri(t,e,n),un(r)),([[i,o,s],a])=>i&&a&&a.change&&a.change(o,s)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},kr(i_),{singleton:!0}),N9e=Wn(([{topItemsIndexes:e}])=>{const t=tt(0);return Et(Oe(t,Wt(n=>n>0),ut(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},kr(mm)),voe=Wn(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const o=Sn(),s=Fo(Oe(Ri(e,r,t,n,i),ut(([a,c,u,f,h])=>a+c+u+f+h.offsetBottom+h.bottom)),0);return Et(Ht(s),o),{totalListHeight:s,totalListHeightChanged:o}},kr(Wo,mm),{singleton:!0});function yoe(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const B9e=yoe(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),$9e=Wn(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:o,scrollDirection:s,lastJumpDueToItemResize:a},{listState:c},{beforeUnshiftWith:u,shiftWithOffset:f,sizes:h,gap:p},{log:g},{recalcInProgress:v}])=>{const y=Ks(Oe(c,un(a),Ql(([,w,b,x],[{items:E,totalCount:I,bottom:A,offsetBottom:k},O])=>{const D=A+k;let N=0;return b===I&&w.length>0&&E.length>0&&(E[0].originalIndex===0&&w[0].originalIndex===0||(N=D-x,N!==0&&(N+=O))),[N,E,I,D]},[0,[],0,0]),Wt(([w])=>w!==0),un(t,s,r,o,g,v),Wt(([,w,b,x,,,E])=>!E&&!x&&w!==0&&b===aw),ut(([[w],,,,,b])=>(b("Upward scrolling compensation",{amount:w},Qs.DEBUG),w))));function S(w){w>0?(rn(e,{top:-w,behavior:"auto"}),rn(n,0)):(rn(n,0),rn(e,{top:-w,behavior:"auto"}))}return qn(Oe(y,un(n,i)),([w,b,x])=>{x&&B9e()?rn(n,b-w):S(-w)}),qn(Oe(Ri(Fo(i,!1),n,v),Wt(([w,b,x])=>!w&&!x&&b!==0),ut(([w,b])=>b),Dd(1)),S),Et(Oe(f,ut(w=>({top:-w}))),e),qn(Oe(u,un(h,p),ut(([w,{lastSize:b,groupIndices:x,sizeTree:E},I])=>{function A(k){return k*(b+I)}if(x.length===0)return A(w);{let k=0;const O=ow(E,0);let D=0,N=0;for(;Dw&&(k-=O,H=w-D+1),D+=H,k+=A(H),N++}return k}})),w=>{rn(n,w),requestAnimationFrame(()=>{rn(e,{top:w}),requestAnimationFrame(()=>{rn(n,0),rn(v,!1)})})}),{deviation:n}},kr(Wo,i_,mm,xc,Cf,WU)),F9e=Wn(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=tt(0);return qn(Oe(e,un(r),Wt(([,i])=>i!==0),ut(([,i])=>({top:i}))),i=>{Vu(Oe(n,pv(1),Wt(o=>o.items.length>1)),()=>{requestAnimationFrame(()=>{rn(t,i)})})}),{initialScrollTop:r}},kr(Tf,Wo,mm),{singleton:!0}),z9e=Wn(([{viewportHeight:e},{totalListHeight:t}])=>{const n=tt(!1),r=Fo(Oe(Ri(n,e,t),Wt(([i])=>i),ut(([,i,o])=>Math.max(0,i-o)),Dd(0),Sr()),0);return{alignToBottom:n,paddingTopAddition:r}},kr(Wo,voe),{singleton:!0}),YU=Wn(([{scrollTo:e,scrollContainerState:t}])=>{const n=Sn(),r=Sn(),i=Sn(),o=tt(!1),s=tt(void 0);return Et(Oe(Ri(n,r),ut(([{viewportHeight:a,scrollTop:c,scrollHeight:u},{offsetTop:f}])=>({scrollTop:Math.max(0,c-f),scrollHeight:u,viewportHeight:a}))),t),Et(Oe(e,un(r),ut(([a,{offsetTop:c}])=>({...a,top:a.top+c}))),i),{useWindowScroll:o,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},kr(Wo)),j9e=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:o,...s}})=>er?{...s,behavior:i,align:o??"end"}:null,U9e=Wn(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:o,fixedHeaderHeight:s,fixedFooterHeight:a,scrollingInProgress:c},{scrollToIndex:u}])=>{const f=Sn();return Et(Oe(f,un(e,i,t,o,s,a,r),un(n),ut(([[h,p,g,v,y,S,w,b],x])=>{const{done:E,behavior:I,align:A,calculateViewLocation:k=j9e,...O}=h,D=uoe(h,p,v-1),N=sw(D,p.offsetTree,x)+y+S,H=N+Rl(p.sizeTree,D)[1],G=b+S,z=b+g-w,L=k({itemTop:N,itemBottom:H,viewportTop:G,viewportBottom:z,locationParams:{behavior:I,align:A,...O}});return L?E&&Vu(Oe(c,Wt(F=>F===!1),pv(Us(c)?1:2)),E):E&&E(),L}),Wt(h=>h!==null)),u),{scrollIntoView:f}},kr(xc,Wo,r_,mm,Cf),{singleton:!0}),H9e=Wn(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:a}])=>{const c=Sn(),u=tt(void 0),f=tt(null),h=tt(null);return Et(s,f),Et(a,h),qn(Oe(c,un(e,n,o,f,h)),([p,g,v,y,S,w])=>{const b=E9e(g.sizeTree);y&&S!==null&&w!==null&&(v=S.scrollTop-w.offsetTop),p({ranges:b,scrollTop:v})}),Et(Oe(u,Wt(jU),ut(W9e)),r),Et(Oe(i,un(u),Wt(([,p])=>p!==void 0),Sr(),ut(([,p])=>p.ranges)),t),{getState:c,restoreStateFrom:u}},kr(xc,Wo,o_,Tf,YU));function W9e(e){return{offset:e.scrollTop,index:0,align:"start"}}const G9e=Wn(([e,t,n,r,i,o,s,a,c,u])=>({...e,...t,...n,...r,...i,...o,...s,...a,...c,...u}),kr(XU,D9e,Tf,goe,voe,F9e,z9e,YU,U9e,Cf)),V9e=Wn(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:o,data:s,firstItemIndex:a,groupIndices:c,statefulTotalCount:u,gap:f,sizes:h},{initialTopMostItemIndex:p,scrolledToInitialItem:g},v,y,S,{listState:w,topItemsIndexes:b,...x},{scrollToIndex:E},I,{topItemCount:A},{groupCounts:k},O])=>(Et(x.rangeChanged,O.scrollSeekRangeChanged),Et(Oe(O.windowViewportRect,ut(D=>D.visibleHeight)),v.viewportHeight),{totalCount:e,data:s,firstItemIndex:a,sizeRanges:t,initialTopMostItemIndex:p,scrolledToInitialItem:g,topItemsIndexes:b,topItemCount:A,groupCounts:k,fixedItemHeight:n,defaultItemHeight:r,gap:f,...S,statefulTotalCount:u,listState:w,scrollToIndex:E,trackItemSizes:i,itemSize:o,groupIndices:c,...x,...O,...v,sizes:h,...y}),kr(xc,o_,Wo,H9e,O9e,mm,r_,$9e,N9e,hoe,G9e)),V$="-webkit-sticky",Gq="sticky",boe=yoe(()=>{if(typeof document>"u")return Gq;const e=document.createElement("div");return e.style.position=V$,e.style.position===V$?V$:Gq});function xoe(e,t){const n=de.useRef(null),r=de.useCallback(a=>{if(a===null||!a.offsetParent)return;const c=a.getBoundingClientRect(),u=c.width;let f,h;if(t){const p=t.getBoundingClientRect(),g=c.top-p.top;f=p.height-Math.max(0,g),h=g+t.scrollTop}else f=window.innerHeight-Math.max(0,c.top),h=c.top+window.pageYOffset;n.current={offsetTop:h,visibleHeight:f,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:o}=HU(r),s=de.useCallback(()=>{r(o.current)},[r,o]);return de.useEffect(()=>{if(t){t.addEventListener("scroll",s);const a=new ResizeObserver(s);return a.observe(t),()=>{t.removeEventListener("scroll",s),a.unobserve(t)}}else return window.addEventListener("scroll",s),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s,t]),i}const woe=de.createContext(void 0),_oe=de.createContext(void 0);function Soe(e){return e}const q9e=Wn(()=>{const e=tt(c=>`Item ${c}`),t=tt(null),n=tt(c=>`Group ${c}`),r=tt({}),i=tt(Soe),o=tt("div"),s=tt(zv),a=(c,u=null)=>Fo(Oe(r,ut(f=>f[c]),Sr()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:s,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}),X9e=Wn(([e,t])=>({...e,...t}),kr(V9e,q9e)),Y9e=({height:e})=>de.createElement("div",{style:{height:e}}),K9e={position:boe(),zIndex:1,overflowAnchor:"none"},Q9e={overflowAnchor:"none"},Vq=de.memo(function({showTopList:t=!1}){const n=bn("listState"),r=_a("sizeRanges"),i=bn("useWindowScroll"),o=bn("customScrollParent"),s=_a("windowScrollContainerState"),a=_a("scrollContainerState"),c=o||i?s:a,u=bn("itemContent"),f=bn("context"),h=bn("groupContent"),p=bn("trackItemSizes"),g=bn("itemSize"),v=bn("log"),y=_a("gap"),{callbackRef:S}=d9e(r,g,p,t?zv:c,v,y,o),[w,b]=de.useState(0);KU("deviation",L=>{w!==L&&b(L)});const x=bn("EmptyPlaceholder"),E=bn("ScrollSeekPlaceholder")||Y9e,I=bn("ListComponent"),A=bn("ItemComponent"),k=bn("GroupComponent"),O=bn("computeItemKey"),D=bn("isSeeking"),N=bn("groupIndices").length>0,H=bn("paddingTopAddition"),G=bn("scrolledToInitialItem"),z=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop+H,paddingBottom:n.offsetBottom,marginTop:w,...G?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?de.createElement(x,Zo(x,f)):de.createElement(I,{...Zo(I,f),ref:S,style:z,"data-test-id":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(L=>{const F=L.originalIndex,j=O(F+n.firstItemIndex,L.data,f);return D?de.createElement(E,{...Zo(E,f),key:j,index:L.index,height:L.size,type:L.type||"item",...L.type==="group"?{}:{groupIndex:L.groupIndex}}):L.type==="group"?de.createElement(k,{...Zo(k,f),key:j,"data-index":F,"data-known-size":L.size,"data-item-index":L.index,style:K9e},h(L.index,f)):de.createElement(A,{...Zo(A,f),key:j,"data-index":F,"data-known-size":L.size,"data-item-index":L.index,"data-item-group-index":L.groupIndex,item:L.data,style:Q9e},N?u(L.index,L.groupIndex,L.data,f):u(L.index,L.data,f))}))}),J9e={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},QA={width:"100%",height:"100%",position:"absolute",top:0},Z9e={width:"100%",position:boe(),top:0,zIndex:1};function Zo(e,t){if(typeof e!="string")return{context:t}}const e7e=de.memo(function(){const t=bn("HeaderComponent"),n=_a("headerHeight"),r=bn("headerFooterTag"),i=pm(s=>n(uf(s,"height"))),o=bn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),t7e=de.memo(function(){const t=bn("FooterComponent"),n=_a("footerHeight"),r=bn("headerFooterTag"),i=pm(s=>n(uf(s,"height"))),o=bn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null});function Eoe({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...a}){const c=e("scrollContainerState"),u=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("scrollerRef"),p=n("context"),{scrollerRef:g,scrollByCallback:v,scrollToCallback:y}=roe(c,f,u,h);return t("scrollTo",y),t("scrollBy",v),de.createElement(u,{ref:g,style:{...J9e,...o},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...Zo(u,p)},s)})}function Coe({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...a}){const c=e("windowScrollContainerState"),u=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("totalListHeight"),p=n("deviation"),g=n("customScrollParent"),v=n("context"),{scrollerRef:y,scrollByCallback:S,scrollToCallback:w}=roe(c,f,u,zv,g);return l9e(()=>(y.current=g||window,()=>{y.current=null}),[y,g]),t("windowScrollTo",w),t("scrollBy",S),de.createElement(u,{style:{position:"relative",...o,...h!==0?{height:h+p}:{}},"data-virtuoso-scroller":!0,...a,...Zo(u,v)},s)})}const n7e=({children:e})=>{const t=de.useContext(woe),n=_a("viewportHeight"),r=_a("fixedItemHeight"),i=pm(Jie(n,o=>uf(o,"height")));return de.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),de.createElement("div",{style:QA,ref:i,"data-viewport-type":"element"},e)},r7e=({children:e})=>{const t=de.useContext(woe),n=_a("windowViewportRect"),r=_a("fixedItemHeight"),i=bn("customScrollParent"),o=xoe(n,i);return de.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),de.createElement("div",{ref:o,style:QA,"data-viewport-type":"window"},e)},i7e=({children:e})=>{const t=bn("TopItemListComponent"),n=bn("headerHeight"),r={...Z9e,marginTop:`${n}px`},i=bn("context");return de.createElement(t||"div",{style:r,context:i},e)},o7e=de.memo(function(t){const n=bn("useWindowScroll"),r=bn("topItemsIndexes").length>0,i=bn("customScrollParent"),o=i||n?l7e:a7e,s=i||n?r7e:n7e;return de.createElement(o,{...t},r&&de.createElement(i7e,null,de.createElement(Vq,{showTopList:!0})),de.createElement(s,null,de.createElement(e7e,null),de.createElement(Vq,null),de.createElement(t7e,null)))}),{Component:s7e,usePublisher:_a,useEmitterValue:bn,useEmitter:KU}=toe(X9e,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o7e),a7e=Eoe({usePublisher:_a,useEmitterValue:bn,useEmitter:KU}),l7e=Coe({usePublisher:_a,useEmitterValue:bn,useEmitter:KU}),c7e=s7e,qq={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},u7e={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:Xq,ceil:Yq,floor:yT,min:q$,max:n1}=Math;function d7e(e){return{...u7e,items:e}}function Kq(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const o=n===null?null:n[i+e];return{index:i+e,data:o}})}function f7e(e,t){return e&&e.column===t.column&&e.row===t.row}function qS(e,t){return e&&e.width===t.width&&e.height===t.height}const h7e=Wn(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:o,scrollTo:s,smoothScrollTargetReached:a,scrollContainerState:c,footerHeight:u,headerHeight:f},h,p,{propsReady:g,didMount:v},{windowViewportRect:y,useWindowScroll:S,customScrollParent:w,windowScrollContainerState:b,windowScrollTo:x},E])=>{const I=tt(0),A=tt(0),k=tt(qq),O=tt({height:0,width:0}),D=tt({height:0,width:0}),N=Sn(),H=Sn(),G=tt(0),z=tt(null),L=tt({row:0,column:0}),F=Sn(),j=Sn(),V=tt(!1),W=tt(0),K=tt(!0),X=tt(!1);qn(Oe(v,un(W),Wt(([J,ae])=>!!ae)),()=>{rn(K,!1),rn(A,0)}),qn(Oe(Ri(v,K,D,O,W,X),Wt(([J,ae,le,he,,pe])=>J&&!ae&&le.height!==0&&he.height!==0&&!pe)),([,,,,J])=>{rn(X,!0),VU(1,()=>{rn(N,J)}),Vu(Oe(r),()=>{rn(n,[0,0]),rn(K,!0)})}),Et(Oe(j,Wt(J=>J!=null&&J.scrollTop>0),_u(0)),A),qn(Oe(v,un(j),Wt(([,J])=>J!=null)),([,J])=>{J&&(rn(O,J.viewport),rn(D,J==null?void 0:J.item),rn(L,J.gap),J.scrollTop>0&&(rn(V,!0),Vu(Oe(r,pv(1)),ae=>{rn(V,!1)}),rn(s,{top:J.scrollTop})))}),Et(Oe(O,ut(({height:J})=>J)),i),Et(Oe(Ri(Ht(O,qS),Ht(D,qS),Ht(L,(J,ae)=>J&&J.column===ae.column&&J.row===ae.row),Ht(r)),ut(([J,ae,le,he])=>({viewport:J,item:ae,gap:le,scrollTop:he}))),F),Et(Oe(Ri(Ht(I),t,Ht(L,f7e),Ht(D,qS),Ht(O,qS),Ht(z),Ht(A),Ht(V),Ht(K),Ht(W)),Wt(([,,,,,,,J])=>!J),ut(([J,[ae,le],he,pe,ve,ye,xe,,me,be])=>{const{row:Ze,column:Xe}=he,{height:ct,width:Bt}=pe,{width:Pe}=ve;if(xe===0&&(J===0||Pe===0))return qq;if(Bt===0){const Pt=qU(be,J),dt=Pt===0?Math.max(xe-1,0):Pt;return d7e(Kq(Pt,dt,ye))}const ze=Toe(Pe,Bt,Xe);let st,gt;me?ae===0&&le===0&&xe>0?(st=0,gt=xe-1):(st=ze*yT((ae+Ze)/(ct+Ze)),gt=ze*Yq((le+Ze)/(ct+Ze))-1,gt=q$(J-1,n1(gt,ze-1)),st=q$(gt,n1(0,st))):(st=0,gt=-1);const vt=Kq(st,gt,ye),{top:_e,bottom:je}=Qq(ve,he,pe,vt),Ke=Yq(J/ze),Be=Ke*ct+(Ke-1)*Ze-je;return{items:vt,offsetTop:_e,offsetBottom:Be,top:_e,bottom:je,itemHeight:ct,itemWidth:Bt}})),k),Et(Oe(z,Wt(J=>J!==null),ut(J=>J.length)),I),Et(Oe(Ri(O,D,k,L),Wt(([J,ae,{items:le}])=>le.length>0&&ae.height!==0&&J.height!==0),ut(([J,ae,{items:le},he])=>{const{top:pe,bottom:ve}=Qq(J,he,ae,le);return[pe,ve]}),Sr(lw)),n);const Q=tt(!1);Et(Oe(r,un(Q),ut(([J,ae])=>ae||J!==0)),Q);const ie=Ks(Oe(Ht(k),Wt(({items:J})=>J.length>0),un(I,Q),Wt(([{items:J},ae,le])=>le&&J[J.length-1].index===ae-1),ut(([,J])=>J-1),Sr())),ce=Ks(Oe(Ht(k),Wt(({items:J})=>J.length>0&&J[0].index===0),_u(0),Sr())),ue=Ks(Oe(Ht(k),un(V),Wt(([{items:J},ae])=>J.length>0&&!ae),ut(([{items:J}])=>({startIndex:J[0].index,endIndex:J[J.length-1].index})),Sr(poe),Dd(0)));Et(ue,p.scrollSeekRangeChanged),Et(Oe(N,un(O,D,I,L),ut(([J,ae,le,he,pe])=>{const ve=foe(J),{align:ye,behavior:xe,offset:me}=ve;let be=ve.index;be==="LAST"&&(be=he-1),be=n1(0,be,q$(he-1,be));let Ze=r4(ae,pe,le,be);return ye==="end"?Ze=Xq(Ze-ae.height+le.height):ye==="center"&&(Ze=Xq(Ze-ae.height/2+le.height/2)),me&&(Ze+=me),{top:Ze,behavior:xe}})),s);const se=Fo(Oe(k,ut(J=>J.offsetBottom+J.bottom)),0);return Et(Oe(y,ut(J=>({width:J.visibleWidth,height:J.visibleHeight}))),O),{data:z,totalCount:I,viewportDimensions:O,itemDimensions:D,scrollTop:r,scrollHeight:H,overscan:e,scrollBy:o,scrollTo:s,scrollToIndex:N,smoothScrollTargetReached:a,windowViewportRect:y,windowScrollTo:x,useWindowScroll:S,customScrollParent:w,windowScrollContainerState:b,deviation:G,scrollContainerState:c,footerHeight:u,headerHeight:f,initialItemCount:A,gap:L,restoreStateFrom:j,...p,initialTopMostItemIndex:W,gridState:k,totalListHeight:se,...h,startReached:ce,endReached:ie,rangeChanged:ue,stateChanged:F,propsReady:g,stateRestoreInProgress:V,...E}},kr(XU,Wo,i_,goe,Tf,YU,Cf));function Qq(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const o=r4(e,t,n,r[0].index),s=r4(e,t,n,r[r.length-1].index)+i;return{top:o,bottom:s}}function r4(e,t,n,r){const i=Toe(e.width,n.width,t.column),o=yT(r/i),s=o*n.height+n1(0,o-1)*t.row;return s>0?s+t.row:s}function Toe(e,t,n){return n1(1,yT((e+n)/(yT(t)+n)))}const p7e=Wn(()=>{const e=tt(u=>`Item ${u}`),t=tt({}),n=tt(null),r=tt("virtuoso-grid-item"),i=tt("virtuoso-grid-list"),o=tt(Soe),s=tt("div"),a=tt(zv),c=(u,f=null)=>Fo(Oe(t,ut(h=>h[u]),Sr()),f);return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,headerFooterTag:s,scrollerRef:a,FooterComponent:c("Footer"),HeaderComponent:c("Header"),ListComponent:c("List","div"),ItemComponent:c("Item","div"),ScrollerComponent:c("Scroller","div"),ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),m7e=Wn(([e,t])=>({...e,...t}),kr(h7e,p7e)),g7e=de.memo(function(){const t=Lr("gridState"),n=Lr("listClassName"),r=Lr("itemClassName"),i=Lr("itemContent"),o=Lr("computeItemKey"),s=Lr("isSeeking"),a=Tl("scrollHeight"),c=Lr("ItemComponent"),u=Lr("ListComponent"),f=Lr("ScrollSeekPlaceholder"),h=Lr("context"),p=Tl("itemDimensions"),g=Tl("gap"),v=Lr("log"),y=Lr("stateRestoreInProgress"),S=pm(w=>{const b=w.parentElement.parentElement.scrollHeight;a(b);const x=w.firstChild;if(x){const{width:E,height:I}=x.getBoundingClientRect();p({width:E,height:I})}g({row:Jq("row-gap",getComputedStyle(w).rowGap,v),column:Jq("column-gap",getComputedStyle(w).columnGap,v)})});return y?null:de.createElement(u,{ref:S,className:n,...Zo(u,h),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-test-id":"virtuoso-item-list"},t.items.map(w=>{const b=o(w.index,w.data,h);return s?de.createElement(f,{key:b,...Zo(f,h),index:w.index,height:t.itemHeight,width:t.itemWidth}):de.createElement(c,{...Zo(c,h),className:r,"data-index":w.index,key:b},i(w.index,w.data,h))}))}),v7e=de.memo(function(){const t=Lr("HeaderComponent"),n=Tl("headerHeight"),r=Lr("headerFooterTag"),i=pm(s=>n(uf(s,"height"))),o=Lr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),y7e=de.memo(function(){const t=Lr("FooterComponent"),n=Tl("footerHeight"),r=Lr("headerFooterTag"),i=pm(s=>n(uf(s,"height"))),o=Lr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),b7e=({children:e})=>{const t=de.useContext(_oe),n=Tl("itemDimensions"),r=Tl("viewportDimensions"),i=pm(o=>{r(o.getBoundingClientRect())});return de.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),de.createElement("div",{style:QA,ref:i},e)},x7e=({children:e})=>{const t=de.useContext(_oe),n=Tl("windowViewportRect"),r=Tl("itemDimensions"),i=Lr("customScrollParent"),o=xoe(n,i);return de.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),de.createElement("div",{ref:o,style:QA},e)},w7e=de.memo(function({...t}){const n=Lr("useWindowScroll"),r=Lr("customScrollParent"),i=r||n?S7e:_7e,o=r||n?x7e:b7e;return de.createElement(i,{...t},de.createElement(o,null,de.createElement(v7e,null),de.createElement(g7e,null),de.createElement(y7e,null)))}),{Component:IVe,usePublisher:Tl,useEmitterValue:Lr,useEmitter:koe}=toe(m7e,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},w7e),_7e=Eoe({usePublisher:Tl,useEmitterValue:Lr,useEmitter:koe}),S7e=Coe({usePublisher:Tl,useEmitterValue:Lr,useEmitter:koe});function Jq(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Qs.WARN),t==="normal"?0:parseInt(t??"0",10)}const E7e=R.forwardRef(({style:e,children:t,...n},r)=>{const i=R.useRef(null),{palette:o,spacing:s}=Dn(),a=T1({".os-scrollbar":{visibility:"visible",opacity:1},".os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle":{"min-height":s(12)},"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${s(6)})`,marginTop:s(6)}}),[c]=AJ({options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{autoHide:"move",theme:o.mode==="dark"?"os-theme-light":"os-theme-dark"}}});R.useEffect(()=>{typeof r!="function"&&(r!=null&&r.current)&&(i!=null&&i.current)&&c({target:i.current,elements:{viewport:r.current}})},[c]);const u=R.useCallback(f=>{f&&r&&(typeof r=="function"?r(f):r.current=f)},[r]);return C.jsx("div",{ref:i,style:e,className:a,children:C.jsx("div",{ref:u,...n,children:t})})});function C7e({items:e=[],renderItem:t,listOptions:n,placeholder:r,...i}){return C.jsx(ht,{...i,children:C.jsx(c7e,{components:{Scroller:E7e},totalCount:e.length,itemContent:o=>t==null?void 0:t(e[o],o),...n})})}function T7e({event:e,hidden:t}){return C.jsxs(ZFe,{children:[te.startCase(`${(e==null?void 0:e.type)??"unsupported"} #${(e==null?void 0:e.id)??"-"}`)," ",t&&C.jsx(O1e,{sx:{opacity:.56,fontSize:12,ml:1,transform:"translateY(1.75px)"}})]})}function k7e({event:e,index:t,selected:n,...r}){const{spacing:i}=Dn();return C.jsx(vf,{title:C.jsx(ht,{p:1,children:C.jsx(Q3,{event:e,flexDirection:"column"})}),followCursor:!0,children:C.jsxs(t3,{selected:n,...r,sx:{borderLeft:`${i(.5)} solid ${B1(e==null?void 0:e.type)}`,...r.sx},children:[C.jsx(Wd,{children:C.jsx(jt,{variant:"body2",children:t})}),C.jsx(rc,{sx:{overflow:"hidden"},primary:C.jsx(T7e,{event:e,hidden:!1}),secondary:C.jsx(Q3,{event:te.pick(e,"f","g","pId")})})]})})}const A7e=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}}),I7e=e=>Number(e.replace(/px$/,""));function R7e(){const{spacing:e}=Dn(),{controls:t,onChange:n,state:r}=bf(),i=R.useRef(null),{key:o,setKey:s,layers:a,layer:c}=Vp(),{step:u,playing:f,pause:h,stepTo:p}=cU(o),g=R.useMemo(()=>{var v;if(c)return R.createElement(qw[((v=c==null?void 0:c.source)==null?void 0:v.type)??""].steps,{layer:c})},[c]);return R.useEffect(()=>{f||te.delay(()=>{var v,y;return(y=(v=i==null?void 0:i.current)==null?void 0:v.scrollToIndex)==null?void 0:y.call(v,{index:u,align:"start",behavior:"smooth",offset:-I7e(e(6+2))})},150)},[u,f,e]),C.jsxs(zn,{onChange:n,stack:r,children:[C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,alignItems:"center",children:g?f?C.jsx(pp,{icon:C.jsx(Sw,{}),label:C.jsxs(C.Fragment,{children:[C.jsx(jt,{children:"Running"}),C.jsx(Nz,{onClick:()=>h(),children:"Pause"})]})}):R.cloneElement(g,{children:v=>c?v.length?C.jsx(C7e,{sx:{width:"100%",height:"100%"},items:v,listOptions:{ref:i,defaultItemHeight:80,overscan:0},renderItem:(y,S)=>C.jsxs(ht,{sx:{height:e(S?10:16),pt:S?0:e(6)},children:[C.jsx(k7e,{event:y,index:S,selected:S===u,sx:{height:"100%"},onClick:()=>p(S)}),C.jsx(Ku,{variant:"inset"})]})}):C.jsx(pp,{icon:C.jsx(dE,{}),label:`${ga(c)} has no steps to display`}):C.jsx(pp,{icon:C.jsx(dE,{}),label:"Steps"})}):C.jsx(pp,{icon:C.jsx(dE,{}),label:"Steps"})})}),C.jsxs(zn.Options,{children:[C.jsx(Gs,{icon:C.jsx(Cw,{}),label:"Layer",value:o,items:te.map(a,v=>({id:v.key,name:ga(v)})),onChange:s,showArrow:!0}),A7e,C.jsx(zFe,{layer:c})]}),C.jsx(zn.Extras,{children:t})]})}const P7e=e=>e?48:36,O7e=8;function M7e({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Options",defaultChecked:o}){const s=rj(),a=te.max([te.findIndex(t,({value:c})=>!!(n!=null&&n[c])),0])??0;return C.jsx(rm,{variant:"popover",children:c=>C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:i,children:C.jsx("span",{children:e==null?void 0:e(Qk(c))})}),C.jsx(nm,{...$w(c),anchorOrigin:{horizontal:"center",vertical:-P7e(s)*a-O7e},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:u,label:f,disabled:h})=>C.jsxs(Ru,{disabled:h,onClick:()=>{r==null||r({...n,[u]:!((n==null?void 0:n[u])??o)})},children:[C.jsx(Wd,{children:C.jsx(Hge,{sx:{p:0},checked:!!((n==null?void 0:n[u])??o)})}),f]},u))})]})})}function L7e({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,defaultChecked:s}){var u;const a=te.filter(r,({id:f})=>!!((t==null?void 0:t[f])??s)),c=a.length?a.length===1?(u=te.head(a))==null?void 0:u.name:`${a.length} Selected`:e;return C.jsx(M7e,{defaultChecked:!0,placeholder:te.startCase(e),trigger:f=>C.jsx(nf,{...f,disabled:!(r!=null&&r.length),icon:i,showArrow:o,children:c}),items:te.map(r,({id:f,name:h,description:p,hidden:g})=>({value:f,label:C.jsxs(C.Fragment,{children:[C.jsx(jt,{children:h}),C.jsx(ai,{}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:p})]}),disabled:g})),value:t,onChange:n})}const Zq=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}});function D7e(){var p,g,v,y;const{controls:e,onChange:t,state:n}=bf(),[r]=vA(),[{layers:i}]=im(),[o,s]=R.useState({}),a=R.useMemo(()=>te.filter(i,S=>(o==null?void 0:o[S.key])??!0),[o,i]),[c,u]=R.useState(),f=R.useMemo(()=>te.head(r),[r]),h=n!=null&&n.renderer&&n.renderer!=="internal:auto"?n.renderer:(g=(p=f==null?void 0:f.renderer)==null?void 0:p.meta)==null?void 0:g.id;return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(En,{children:C.jsx(Zk,{children:S=>C.jsx(ht,{children:C.jsx(IBe,{...S,layers:a,renderer:h,rendererRef:u})})})})}),C.jsx(zn.Options,{children:C.jsxs(Up,{direction:"row",children:[C.jsx(Gs,{label:"Renderer",icon:C.jsx(w1e,{}),value:(n==null?void 0:n.renderer)??"internal:auto",onChange:S=>t==null?void 0:t({renderer:S}),items:[{id:"internal:auto",name:`Auto (${((y=(v=f==null?void 0:f.renderer)==null?void 0:v.meta)==null?void 0:y.name)??"None"})`},...te.map(r,({renderer:S})=>({id:S.meta.id,name:S.meta.name,description:S.meta.id}))],showArrow:!0}),Zq,C.jsx(L7e,{defaultChecked:!0,label:"Layers",icon:C.jsx(Cw,{}),value:o,onChange:s,items:te.map(i,S=>({id:S.key,name:ga(S)})),showArrow:!0}),Zq,C.jsx(nf,{disabled:!c,onClick:()=>{c==null||c.fitCamera()},icon:C.jsx(E1e,{}),children:"Fit"}),C.jsx(nf,{disabled:!c,onClick:()=>{c==null||c.initialCamera()},icon:C.jsx(A1e,{}),children:"1:1"})]})}),C.jsx(zn.Extras,{children:e})]})}const i4={viewport:{id:"viewport",name:"Viewport",icon:C.jsx(WQ,{}),content:D7e},tree:{id:"tree",name:"Tree",icon:C.jsx(FQ,{}),content:xBe},steps:{id:"steps",name:"Steps",icon:C.jsx(dE,{}),content:R7e},info:{id:"info",name:"Logs",icon:C.jsx(UQ,{}),content:ERe},layers:{id:"layers",name:"Layers",icon:C.jsx(Cw,{}),content:JFe},debug:{id:"debug",name:"Debugger",icon:C.jsx(S1e,{}),content:SRe},settings:{id:"settings",name:"Settings",icon:C.jsx(j1e,{}),content:QGe},about:{id:"about",name:"About",icon:C.jsx(M1e,{}),content:OSe}},[N7e,B7e]=mc({view:{type:"branch",key:qo(),orientation:"horizontal",children:[{size:75,type:"branch",key:qo(),orientation:"horizontal",children:[{type:"leaf",size:25,key:qo(),content:{type:"layers"}},{size:75,type:"branch",key:qo(),orientation:"vertical",children:[{type:"leaf",size:75,key:qo(),content:{type:"viewport"}},{type:"leaf",size:25,key:qo(),content:{type:"info"}}]}]},{size:25,type:"leaf",key:qo(),content:{type:"steps"}}]}});function $7e(){const[e]=Bee(),t=jJ(),n=te.values(e);return C.jsx(Dz,{sx:{...t,zIndex:r=>r.zIndex.tooltip+1},open:!!n.length,unmountOnExit:!0,mountOnEnter:!0,children:C.jsxs(Up,{alignItems:"center",spacing:4,children:[C.jsx(Sw,{}),n.map((r,i)=>C.jsx(jt,{variant:"body2",color:"textSecondary",children:r},i))]})})}function F7e(e){const t=BRe(),[{view:n},r]=N7e();return C.jsxs(C.Fragment,{children:[C.jsx(En,{...e,children:C.jsx($J,{root:n,onChange:i=>r(()=>({view:i})),renderLeaf:({content:i})=>{var o;return C.jsx(jp,{in:!0,children:C.jsx(ht,{sx:{width:"100%",height:"100%"},children:R.createElement((o=i4[(i==null?void 0:i.type)??""])==null?void 0:o.content)})})}})}),C.jsx(jp,{in:t,children:C.jsx(Mye,{variant:"indeterminate",sx:{position:"absolute",bottom:0,width:"100%",zIndex:1}})}),C.jsx($7e,{})]})}const z7e=e=>eF(e,"#ffffff")>eF(e,"#000000")?"#ffffff":"#000000";function j7e(e){R.useEffect(()=>{document.querySelector('meta[name="theme-color"]').setAttribute("content",e),document.title=g3,"electron"in window&&window.electron.invoke("title-bar","#00000000",z7e(e))},[e])}function U7e(e){return new Promise(t=>te.delay(t,e))}async function H7e(e,t=2500){const n=te.now();return{result:await Promise.any([e(),U7e(t)]),delta:te.now()-n}}function W7e(){const e=gc(),[{remote:t}]=Ju(),[,n]=nv(),r=om("connections");return R.useEffect(()=>{let i=!1,o=[];return r(async()=>{if(t!=null&&t.length){for(const{transport:s,url:a,disabled:c}of t){if(c!==!0){e(`Connecting to ${a}...`);const u=new(GGe(s))({url:a});await u.connect();const{result:f,delta:h}=await H7e(()=>u.call("about"));f?(e(`Connected to ${f.name}.`),o=[...o,{...f,url:a,ping:h,call:u.call.bind(u),disconnect:u.disconnect.bind(u)}]):await u.disconnect()}i||n(()=>o)}i||e(`Connected to ${o.length} of ${t.length} solvers.`)}}),()=>{i=!0,o.map(s=>s.disconnect())}},[t,n,e,r]),C.jsx(C.Fragment,{})}const G7e=e=>t=>({...t,source:e});function V7e(){const[e]=nv(),[,t]=$C(),n=om("features");return Tte(r=>n(async()=>{const i={algorithms:[],formats:te.keys(Kj).map(o=>({id:o,source:"internal"})),maps:[]};for(const{call:o,url:s}of e)for(const a of["algorithms","formats","maps"])i[a]=te.uniqBy([...i[a],...te.map(await o(`features/${a}`),G7e(s))],"id");r.aborted||t(()=>i)}),[e,t]),C.jsx(C.Fragment,{})}function q7e(){const[{layers:e},t]=im();return R.useMemo(()=>te.map(e,n=>{const r=wne(n).service;if(r)return R.createElement(r,{key:n.key,value:n,onChange:i=>t(({layers:o})=>({layers:te.map(o,s=>s.key===n.key?i(s):s)}))})}),[e,t])}function X7e(){const e=q7e();return C.jsx(C.Fragment,{children:e})}function Aoe({slices:e,children:t,services:n}){return C.jsx(C.Fragment,{children:te.reduce(te.map(e,r=>R.createElement(r)),(r,i)=>R.cloneElement(i,{},r),C.jsxs(C.Fragment,{children:[t,te.map(n,(r,i)=>R.createElement(r,{key:i}))]}))})}var Ioe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xt,function(){return function n(r,i,o){var s=window,a="application/octet-stream",c=o||a,u=r,f=!i&&!o&&u,h=document.createElement("a"),p=function(k){return String(k)},g=s.Blob||s.MozBlob||s.WebKitBlob||p,v=i||"download",y,S;if(g=g.call?g.bind(s):Blob,String(this)==="true"&&(u=[u,c],c=u[0],u=u[1]),f&&f.length<2048&&(v=f.split("/").pop().split("?")[0],h.href=f,h.href.indexOf(f)!==-1)){var w=new XMLHttpRequest;return w.open("GET",f,!0),w.responseType="blob",w.onload=function(k){n(k.target.response,v,a)},setTimeout(function(){w.send()},0),w}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))if(u.length>1024*1024*1.999&&g!==p)u=I(u),c=u.type||a;else return navigator.msSaveBlob?navigator.msSaveBlob(I(u),v):A(u);else if(/([\x80-\xff])/.test(u)){var b=0,x=new Uint8Array(u.length),E=x.length;for(b;b{const p=(0,n.randomBytes)(4).readUInt32BE(0);return u+p%(f-u+1)},i=u=>{let f;switch(u){case 1:f=Math.floor(r(1,9)).toString();break;case 2:f=Math.floor(r(10,90)).toString();break;case 3:f=Math.floor(r(100,900)).toString();break;case 4:f=Math.floor(r(1e3,9e3)).toString();break;case 5:f=Math.floor(r(1e4,9e4)).toString();break;case 6:f=Math.floor(r(1e5,9e5)).toString();break;default:f="";break}return f};function o(u,f){return u.replace(/@.+/,"").replace(/[&/\\#,+()$~%._@'":*?<>{}]/g,"")+i(f)}e.generateFromEmail=o;function s(u,f,h){const p=t.nouns[Math.floor(Math.random()*t.nouns.length)],g=t.adjectives[Math.floor(Math.random()*t.adjectives.length)];let v;return u?v=g+u+p+i(f):v=g+p+i(f),h?v.substring(0,h):v}e.generateUsername=s;function a(u){if(u.dictionaries){const f=u.dictionaries.length;let h="";for(let g=0;g{const i=await Ij({accept:Xq.map(o=>`.workspace.${o}`),strict:!0});if(i&&Xq.includes(z7e(i.name))){const o=await i.text(),s=zj.parse(o);s&&(t(()=>s.layers),r(()=>s.UIState))}},save:()=>{B7e(JSON.stringify({layers:e,UIState:n}),`${Soe.generateUsername("-")}.workspace.json`,"application/json")}}}const U7e=()=>{const{save:e,load:t}=j7e(),[n,r]=P.useState(!1);return P.useEffect(()=>{if("windowControlsOverlay"in navigator){const i=()=>{r(!!navigator.windowControlsOverlay.visible)};return navigator.windowControlsOverlay.addEventListener("geometrychange",i),i(),()=>navigator.windowControlsOverlay.removeEventListener("geometrychange",i)}},[r]),C.jsx(mt,{sx:{mt:-.5,minHeight:36,height:n?"env(titlebar-area-height, 50px)":0,width:"env(titlebar-area-width, 100%)",WebkitAppRegion:"drag",overflowX:"auto"},children:C.jsx(Aw,{x:!0,style:{height:"100%"},children:C.jsx(mt,{sx:{height:"100%"},children:C.jsxs(Gg,{direction:"row",spacing:1,sx:{height:"100%"},alignItems:"center",children:[C.jsx(mt,{sx:{p:1,height:"100%"},children:C.jsx("img",{src:DJ,style:{height:"100%"}})}),[{key:"workspace",items:[{name:"Load workspace",key:"workspace-load",action:t},{name:"Save workspace",key:"workspace-save",action:e}]},{key:"help",items:[{name:"Open repository in GitHub",key:"github",action:()=>open(ESe,"_blank")},{name:"Open changelog",key:"changelog",action:()=>open(`${CSe}/changelog-${_Se}.md`,"_blank")}]}].map(({key:i,items:o})=>C.jsx(em,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(Zp,{...$w(s),children:C.jsx(zk,{dense:!0,sx:{p:0},children:o.map(({name:a,key:c,action:u})=>C.jsx(Ru,{onClick:()=>{u==null||u(),s.close()},children:a},c))})}),C.jsx(nf,{...Kk(s),sx:{WebkitAppRegion:"no-drag",minWidth:"fit-content",p:.5,px:1},children:ie.startCase(i)})]})},i)),C.jsx(mt,{sx:{p:.75,height:"100%"},children:C.jsx(H7e,{})})]})})})})};function H7e(){const e=mc();return C.jsxs(Yu,{onClick:()=>e("Commands are not yet implemented."),sx:{WebkitAppRegion:"no-drag",fontSize:14,borderRadius:t=>t.shape.borderRadius,"&:hover":{bgcolor:"background.paper"},height:"100%",m:0,display:"flex",alignItems:"center",px:1,pr:2,gap:t=>t.spacing(1),color:"text.secondary",cursor:"text"},children:[C.jsx(M1e,{fontSize:"small",color:"disabled"})," ",C.jsx(Xt,{sx:{mt:0},children:"Commands"})]})}const W7e=[P7e,M7e,vWe,D7e];function G7e(){const t=Ln().palette.background.default;return A7e(t),C.jsxs(En,{vertical:!0,sx:{bgcolor:t,p:.5,color:"text.primary"},children:[C.jsx(U7e,{}),C.jsx(T7e,{flex:1})]})}function V7e(){const[{theme:e="light",accentColor:t="teal"}]=Zu(),n=P.useMemo(()=>bSe(e,t),[e,t]);return C.jsx(Zce,{theme:n,children:C.jsx(gwe,{children:C.jsx(woe,{services:W7e,children:C.jsx(G7e,{})})})})}var Eoe,Yq=xv;Eoe=Yq.createRoot,Yq.hydrateRoot;const q7e=Eoe(document.getElementById("root")),X7e=[gSe,IRe,RRe,YEe,PRe,S$e,mwe,C7e,wRe];q7e.render(C.jsx(Yge,{children:C.jsx(woe,{slices:X7e,children:C.jsx(V7e,{})})})); +Use Save As... to download, then click back to return to this page.`)&&(location.href=k),!0;var D=document.createElement("iframe");document.body.appendChild(D),!O&&/^data:/.test(k)&&(k="data:"+k.replace(/^data:([\w\/\-\+]+)/,a)),D.src=k,setTimeout(function(){document.body.removeChild(D)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(y,v);if(s.URL)A(s.URL.createObjectURL(y),!0);else{if(typeof y=="string"||y.constructor===p)try{return A("data:"+c+";base64,"+s.btoa(y))}catch{return A("data:"+c+","+encodeURIComponent(y))}S=new FileReader,S.onload=function(k){A(this.result)},S.readAsDataURL(y)}return!0}})})(Ioe);var Y7e=Ioe.exports;const K7e=ds(Y7e);var Roe={},Jp={},QU={};Object.defineProperty(QU,"__esModule",{value:!0});QU.default=["other","new","good","old","little","great","small","young","long","black","high","only","big","white","political","right","large","real","sure","different","important","public","possible","full","whole","certain","human","major","military","bad","social","dead","true","economic","open","early","free","national","strong","hard","special","clear","local","private","wrong","late","short","poor","recent","dark","fine","foreign","ready","red","cold","low","heavy","serious","single","personal","difficult","left","blue","federal","necessary","general","easy","likely","beautiful","happy","past","hot","close","common","afraid","simple","natural","main","various","available","nice","present","final","sorry","entire","current","similar","deep","huge","rich","nuclear","empty","strange","quiet","front","wide","modern","concerned","green","very","alone","particular","bright","supposed","basic","medical","aware","total","financial","legal","original","international","soft","alive","interested","tall","warm","popular","tiny","top","normal","powerful","silent","religious","impossible","quick","safe","thin","familiar","gray","fresh","physical","individual","willing","crazy","sick","angry","perfect","tired","wild","moral","brown","dangerous","famous","married","terrible","successful","fair","professional","official","obvious","glad","central","chief","effective","light","complete","interesting","thick","proper","involved","responsible","narrow","civil","industrial","dry","yellow","specific","sharp","sudden","direct","following","growing","significant","traditional","slow","previous","vast","surprised","busy","usual","clean","funny","regular","scientific","ordinary","ancient","senior","sweet","future","annual","secret","equal","independent","wonderful","tough","broad","additional","careful","domestic","brief","enormous","commercial","grand","average","sexual","nervous","pale","immediate","critical","proud","like","complex","separate","considerable","still","extra","expensive","guilty","active","mad","asleep","wooden","cool","presidential","apparent","weak","essential","living","pretty","cultural","useful","actual","unusual","daily","potential","wet","solid","lovely","comfortable","formal","outside","massive","sad","corporate","distant","loose","rare","stupid","visible","liberal","flat","pleased","pure","curious","practical","upper","technical","male","appropriate","fat","just","due","mere","handsome","mental","conservative","positive","leading","naked","false","drunk","dirty","friendly","constant","well","used","emotional","internal","odd","historical","female","ill","broken","capable","southern","pleasant","bare","minor","eager","lucky","urban","steady","fiscal","rough","primary","reasonable","typical","inner","favorite","attractive","slight","innocent","limited","straight","pink","excellent","double","dramatic","violent","honest","electric","fellow","substantial","opposite","awful","severe","joint","armed","hungry","remarkable","increased","gentle","illegal","middle","bitter","mass","permanent","increasing","damn","golden","correct","intense","round","northern","proposed","so-called","criminal","healthy","plain","vital","blind","native","intellectual","unknown","extreme","existing","raw","prime","brilliant","sensitive","extraordinary","sufficient","remaining","ultimate","unique","royal","initial","negative","fundamental","nearby","smart","strategic","educational","unlikely","smooth","modest","conventional","giant","scared","cheap","dear","delicate","anxious","valuable","standard","desperate","lonely","diplomatic","firm","wise","principal","congressional","occasional","ugly","vice","radical","faint","working","absolute","intelligent","racial","mutual","silly","fast","musical","tight","complicated","numerous","crucial","square","contemporary","bloody","western","endless","inevitable","environmental","constitutional","rapid","worried","lost","genuine","temporary","democratic","rural","regional","given","painful","literary","chemical","sophisticated","decent","academic","awake","conscious","revolutionary","surprising","elderly","agricultural","psychological","pregnant","live","adequate","superior","grateful","prominent","frightened","remote","overall","stiff","harsh","electronic","spiritual","okay","closed","excited","convinced","long-term","unexpected","dull","evident","civilian","mysterious","romantic","impressive","continuing","exciting","logical","peculiar","exact","widespread","foolish","extensive","evil","continued","confident","generous","legislative","stable","vulnerable","elegant","embarrassed","hostile","efficient","blond","dumb","advanced","defensive","outer","neat","estimated","wealthy","dying","loud","creative","acceptable","unhappy","sheer","competitive","concrete","reluctant","precious","tremendous","burning","precise","uncertain","holy","artificial","vague","ideal","universal","moderate","subtle","mild","peaceful","assistant","invisible","casual","crowded","crude","running","classic","controversial","ridiculous","frequent","grim","accurate","detailed","goddamn","fun","fierce","cruel","incredible","blank","dim","suitable","classical","elaborate","collective","eastern","legitimate","aggressive","rear","administrative","automatic","dependent","ashamed","distinct","fit","clever","brave","ethnic","maximum","relative","primitive","uncomfortable","profound","sacred","biological","identical","furious","loyal","rational","mechanical","mean","naval","noble","ambitious","purple","historic","dominant","suburban","developing","calm","frozen","subsequent","charming","damp","fixed","rigid","offensive","electrical","shy","continuous","urgent","weary","immense","splendid","downtown","uneasy","disappointed","helpless","voluntary","polite","junior","gross","striking","overwhelming","unconscious","steep","outstanding","tender","tragic","costly","miserable","near","useless","welcome","external","helpful","weekly","middle-aged","suspicious","old-fashioned","technological","damned","awkward","visual","organized","ideological","orange","horrible","strict","magnificent","deadly","dusty","mighty","puzzled","bold","global","passing","magic","fond","judicial","missing","definite","changing","rubber","theoretical","satisfied","promising","abstract","excessive","comparable","fatal","distinguished","inadequate","slender","artistic","known","sympathetic","favorable","cheerful","faithful","delighted","unnecessary","sole","cautious","productive","reliable","patient","sensible","desirable","depressed","atomic","able","instant","relevant","alien","spectacular","lesser","swift","comic","enthusiastic","marvelous","experimental","weird","retired","fascinating","content","medieval","inclined","bored","ruling","flying","consistent","organic","alleged","grave","smiling","realistic","amazing","exotic","symbolic","confused","underground","spare","philosophical","vigorous","troubled","shallow","amused","lively","genetic","impatient","brutal","solar","unfair","formidable","tense","unfortunate","minimum","sleeping","secondary","shiny","jealous","insane","gay","vivid","wounded","hurt","intimate","monthly","sour","socialist","worthy","preliminary","colonial","middle-class","alternative","influential","unpleasant","comprehensive","devoted","upset","secure","absurd","neutral","frightening","profitable","fragile","civilized","slim","partial","added","fearful","optimistic","isolated","eternal","vocal","beloved","alert","verbal","rising","skilled","antique","municipal","written","restless","outdoor","governmental","driving","sore","informal","loving","retail","hidden","determined","monetary","convenient","thoughtful","colored","progressive","bizarre","sweeping","fancy","expected","fantastic","editorial","intact","bottom","multiple","well-known","nasty","protective","acute","combined","related","fortunate","earnest","divine","passionate","icy","noisy","vicious","dreadful","apt","boring","unprecedented","decisive","sunny","marked","experienced","disturbing","satisfactory","sober","random","electoral","shocked","deliberate","coming","orderly","surrounding","unwilling","inherent","mixed","naive","dense","hopeless","aesthetic","supreme","encouraging","institutional","solemn","stubborn","required","relaxed","bald","frantic","exclusive","rotten","filthy","flexible","explicit","glorious","lean","ignorant","extended","embarrassing","architectural","mortal","corrupt","hopeful","regulatory","valid","characteristic","tribal","capitalist","diverse","functional","improved","ironic","graceful","unaware","respectable","eligible","lousy","established","postwar","objective","wary","elementary","moving","superb","cute","minimal","meaningful","notable","structural","developed","rolling","fashionable","persistent","distinctive","terrific","thorough","skeptical","secular","chronic","level","everyday","visiting","infinite","short-term","terrorist","youthful","unemployed","forced","liquid","explosive","rude","colorful","renewed","semantic","astonishing","passive","heroic","gleaming","indifferent","vertical","prior","anonymous","absent","customary","mobile","uniform","solitary","probable","amazed","petty","bleak","athletic","tentative","harmless","ample","right-wing","polished","obscure","sincere","dried","intensive","equivalent","convincing","idle","vacant","mature","amusing","competent","ominous","savage","motionless","tropical","blunt","drunken","delicious","lazy","ragged","longtime","nationwide","startling","civic","freezing","muscular","circular","imperial","irrelevant","countless","gloomy","startled","disastrous","skinny","hollow","upward","ethical","underlying","careless","wholesale","abandoned","unfamiliar","mandatory","imaginary","bewildered","annoyed","magnetic","dazzling","lengthy","stern","surgical","clinical","full-time","metropolitan","moist","unlike","doubtful","prosperous","keen","awesome","humble","interior","psychiatric","clumsy","outraged","theatrical","educated","gigantic","scattered","privileged","sleepy","battered","meaningless","predictable","gradual","miniature","radioactive","prospective","aging","destructive","authentic","portable","bearded","balanced","shining","spontaneous","bureaucratic","inferior","sturdy","cynical","exquisite","talented","immune","imaginative","ripe","shared","kind","parliamentary","glowing","frail","astonished","forward","inside","operational","faded","closing","pro","coastal","shrewd","preoccupied","celebrated","wicked","bourgeois","marginal","transparent","dynamic","psychic","plump","coarse","bleeding","striped","eventual","residential","hysterical","pathetic","planned","fake","imminent","sentimental","stunning","worldwide","militant","sizable","representative","incapable","provincial","poetic","injured","tactical","selfish","winning","foul","repeated","novel","dubious","part-time","abrupt","lone","overseas","grey","varied","cooperative","muddy","scheduled","legendary","arrogant","conspicuous","varying","devastating","vulgar","martial","amateur","mathematical","deaf","scarce","specialized","honorable","outrageous","confidential","fallen","goddamned","five-year","feminine","monstrous","brisk","systematic","exhausted","frank","lunar","daring","shadowy","respected","stark","accepted","successive","pending","prolonged","unseen","uniformed","wretched","sullen","arbitrary","drastic","crooked","resulting","intricate","unpredictable","printed","utter","satisfying","delightful","linguistic","shabby","statistical","accessible","prestigious","trivial","waiting","futile","prepared","aged","misleading","cognitive","shocking","childish","elected","magical","forthcoming","exceptional","gifted","stricken","fiery","cardboard","shaky","conflicting","commanding","starving","accustomed","rocky","long-range","floating","sinister","potent","phony","lasting","understandable","curved","barren","lethal","toxic","deserted","ambiguous","notorious","synthetic","worthwhile","imported","intent","reduced","painted","taut","sociological","questionable","crisp","pointed","harmful","horizontal","rival","somber","benign","prevailing","selected","organizational","excess","dedicated","veteran","implicit","prudent","plausible","confusing","smoking","large-scale","subdued","constructive","marital","scarlet","rugged","darkened","untouched","above","matching","covert","communal","sticky","affluent","energetic","stale","controlled","qualified","reminiscent","shut","blonde","handy","ritual","straightforward","terminal","dizzy","sane","twisted","occupied","finished","opposing","sly","depressing","irregular","marine","communist","obscene","wrinkled","unsuccessful","gracious","static","consecutive","reserve","exposed","scholarly","sleek","reckless","oral","comforting","pressing","swollen","viable","carved","obsessed","projected","hideous","unthinkable","mock","susceptible","respective","goddam","downward","memorable","worn","raised","glittering","beneficial","lingering","patriotic","stunned","hairy","worrying","lighted","sexy","abundant","tangled","perpetual","irresistible","terrified","compelling","unmistakable","feeble","uneven","trained","folded","relentless","killed","gorgeous","conservation","serene","eerie","premature","dismal","competing","risky","unacceptable","indirect","witty","muffled","feasible","interstate","heated","uncommon","accidental","queer","innovative","parallel","fried","unnatural","cracked","persuasive","integrated","ongoing","homosexual","sound","fertile","canned","preceding","worldly","onstage","declining","advisory","juvenile","slippery","numb","postal","olive","eccentric","lay","chilly","shrill","ceremonial","registered","boiling","contradictory","irresponsible","then","industrialized","obsolete","rusty","inflationary","split","discreet","intolerable","barefoot","territorial","outspoken","audible","adverse","associate","impending","decorative","luminous","two-year","expanding","unchanged","outstretched","momentary","good-looking","cunning","overnight","sprawling","unbelievable","bland","liable","terrifying","televised","appealing","breathless","alarming","supporting","greasy","affirmative","guiding","homeless","triumphant","rainy","stolen","empirical","timid","provocative","knowledgeable","pragmatic","touching","desired","amiable","attempted","humane","adjacent","superficial","greedy","assorted","elusive","ruthless","lush","soothing","imposing","preferred","lavish","pervasive","managing","sandy","inappropriate","desolate","nude","reassuring","shimmering","first-class","unfinished","insistent","comparative","conceivable","admirable","courageous","aristocratic","meager","subjective","vain","disgusted","dual","towering","responsive","ailing","compact","torn","sortal","entertaining","dreary","metallic","tedious","irrational","immoral","teen-age","interim","jagged","selective","volatile","cozy","unanimous","unlimited","hired","cosmic","indoor","retarded","gold","fabulous","dignified","long-distance","high-school","classified","luxurious","insufficient","pious","incomplete","oblivious","imperialist","stately","lifelong","subordinate","extravagant","intrinsic","unpopular","scant","surplus","radiant","ruined","grotesque","hazardous","disabled","intriguing","worthless","reported","hoarse","utmost","muted","bony","disgusting","monumental","pleasing","sterile","agreeable","three-year","tricky","lucrative","respectful","inexpensive","bulky","troublesome","affectionate","coherent","unreasonable","nineteenth-century","curly","indispensable","nursing","incompetent","governing","alternate","suspected","left-wing","refined","overt","chilling","virtual","devoid","perverse","enduring","outright","overhead","unnoticed","nonprofit","pointless","appalling","dental","chosen","enlightened","robust","commonplace","damaging","conscientious","eloquent","erratic","applied","merry","ardent","flowing","incoming","chaotic","noticeable","pitiful","locked","swelling","definitive","homemade","super","pronounced","kindly","prone","attentive","unstable","unrelated","charitable","armored","unclear","tangible","medium","winding","slick","credible","frustrating","shifting","spacious","day-to-day","surviving","expanded","arid","unwanted","unbearable","hesitant","recognizable","multinational","abdominal","murderous","glossy","mute","working-class","insignificant","ingenious","masculine","blessed","gaunt","miraculous","unconstitutional","parental","rigorous","bodily","impersonal","backward","computerized","four-year","unmarried","wry","resident","luxury","high-level","partisan","powerless","seasonal","self-conscious","triple","onetime","ecological","periodic","racist","exaggerated","facial","erotic","unreal","durable","manual","rounded","concentrated","literal","mystical","stimulating","staggering","tempting","last-minute","erect","feudal","head","emerging","hind","brooding","candid","paranoid","defective","linear","immortal","shattered","unsure","swinging","compatible","ghastly","investigative","rosy","convicted","sensational","committed","makeshift","tolerant","forceful","supernatural","joyous","limp","improper","hanging","sliding","renowned","tattered","nonexistent","supportive","frustrated","undercover","handicapped","apprehensive","plentiful","authoritative","sustained","disappointing","hereditary","photographic","impoverished","ornate","respiratory","substantive","acting","nutritional","unofficial","innumerable","prevalent","dire","menacing","outward","brittle","hasty","sparkling","sled","geographical","therapeutic","melancholy","adolescent","hearty","disturbed","sweaty","poisonous","paid","ineffective","humorous","burly","rebellious","reddish","stout","teenage","eminent","rhythmic","physiological","guaranteed","opaque","folding","fleeting","full-scale","low-income","infectious","stringent","stained","beige","stirring","soaring","glamorous","airborne","improbable","austere","anticipated","designated","oval","restrictive","yearly","precarious","relieved","said","feverish","occupational","holding","speculative","abnormal","challenging","healing","boyish","forbidding","divorced","famed","sluggish","struggling","united","undesirable","steaming","consulting","answering","recreational","accompanying","cramped","journalistic","neighboring","fictional","chopped","phenomenal","bankrupt","illicit","advancing","upcoming","racing","protected","padded","venerable","fuzzy","behavioral","roast","mocking","reactionary","inefficient","packed","sloppy","sparse","foster","revealing","reverse","gaping","blue-collar","thankful","down","unimportant","traveling","corresponding","maternal","autonomous","conceptual","smoky","baked","stuffed","murky","totalitarian","ghostly","seeming","flickering","sensual","clenched","offshore","stinging","oppressive","strained","messy","executive","evolutionary","theological","damaged","unrealistic","rectangular","off","mainstream","benevolent","thirsty","blinding","loaded","applicable","unused","crushed","tan","factual","involuntary","brand-new","akin","scary","modified","mindless","born","feminist","integral","uncanny","aloof","spreading","watery","playful","stocky","wasted","compulsory","indignant","pertinent","incredulous","simultaneous","turbulent","framed","aching","falling","cardiac","trim","silvery","accused","pastoral","barbed","adjoining","inspired","courteous","skillful","majestic","gilded","published","perennial","upright","seasoned","continual","papal","victorious","optical","ecstatic","agonizing","shameful","expressive","inconsistent","insulting","cloudy","defiant","restricted","approaching","aggregate","orthodox","unified","all-out","wooded","nationalist","favored","lofty","assured","smug","earthly","improving","instrumental","stray","clandestine","managerial","animated","intended","flawed","bent","clerical","outgoing","righteous","unspoken","poignant","faulty","defeated","authoritarian","treacherous","catastrophic","refreshing","unidentified","suicidal","sickly","disciplined","meticulous","preferable","trusted","hectic","husky","distraught","select","snowy","ferocious","crumpled","humiliating","divided","crippled","infamous","chic","broke","sovereign","continental","idealistic","first-rate","guarded","learned","nameless","runaway","metaphysical","senseless","boiled","needy","silver","recorded","polar","real-estate","stormy","incomprehensible","wiry","raging","composite","flamboyant","crimson","reproductive","intermediate","ubiquitous","repressive","hefty","listening","good-natured","parochial","stylish","high-tech","flaming","coronary","overweight","bathing","three-day","tidy","beleaguered","manifest","ludicrous","indigenous","adamant","placid","inept","exuberant","stony","salty","seductive","accomplished","impassive","grazing","congenial","misguided","wide-eyed","revised","bass","sonic","budgetary","halfway","ensuing","admiring","palpable","nightly","hooded","best-known","eighteenth-century","dissident","morbid","incumbent","demanding","inexperienced","hazy","revolving","rented","disadvantaged","innate","dietary","minute","cultivated","sealed","contemptuous","rhetorical","conciliatory","articulate","jobless","macho","forgotten","lifeless","proven","latent","secretive","perilous","token","graphic","alcoholic","overdue","permissible","shattering","preventive","illiterate","back","atmospheric","thermal","quaint","negotiated","preposterous","temporal","restrained","triangular","mayoral","spatial","heady","biblical","fitting","pessimistic","mammoth","allied","failed","intuitive","nagging","tidal","angular","speechless","finishing","protracted","watchful","businesslike","automated","versatile","booming","pouring","misty","deceptive","sunken","singular","suspended","unworthy","immigrant","expressionless","airy","mournful","neurotic","cubic","unauthorized","economical","fund-raising","captive","blatant","far-reaching","subversive","imperfect","jolly","inaccurate","resentful","strenuous","suffering","hardened","malicious","unjust","perceptive","newborn","promised","differing","virgin","alarmed","grassy","frivolous","apologetic","wasteful","endangered","unarmed","adept","unavoidable","approved","trembling","stuck","high-ranking","crushing","prescribed","dependable","fragrant","expansive","unfriendly","covered","bemused","digital","probing","sloping","man-made","festive","unilateral","unmarked","bipartisan","statewide","burgeoning","devout","sickening","mediocre","adventurous","elevated","suggestive","accountable","virtuous","lame","heavenly","bruised","unbroken","irritable","affected","inconceivable","sometime","vile","baggy","timely","glistening","imagined","unprepared","unresolved","windy","humanitarian","overriding","detached","annoying","narrative","interminable","appalled","penal","unsatisfactory","instinctive","variable","cumulative","obedient","deficient","colossal","unaffected","extinct","routine","microscopic","compassionate","nominal","forlorn","distorted","mistaken","enclosed","infected","fervent","analogous","frigid","instructive","appointed","one-way","gnarled","problematic","sardonic","two-hour","hypothetical","prompt","anguished","electromagnetic","sensuous","homely","beaten","malignant","rotting","concealed","peripheral","creaking","impeccable","khaki","grinning","irreversible","rampant","wondrous","inward","manufactured","grisly","cooked","discriminatory","cerebral","knowing","auxiliary","operative","losing","genial","phonetic","ecclesiastical","sarcastic","incorrect","ruddy","well-to-do","inexplicable","unreliable","developmental","woolen","agitated","lyrical","consequent","calculated","molecular","pompous","present-day","shaggy","even","inhuman","sublime","diagnostic","manly","raucous","balding","after","bilateral","mounted","blackened","assembled","separated","gaudy","evangelical","darling","juicy","impotent","receptive","irritating","pulmonary","dazed","cross-country","unavailable","parked","habitual","lexical","lowered","unwise","planetary","throbbing","enigmatic","superstitious","threatening","manned","childlike","sporting","right-hand","adult","reflective","white-haired","discernible","celestial","prodigious","translucent","equitable","epic","frayed","arduous","flimsy","penetrating","howling","disparate","alike","all-time","deformed","comical","inert","procedural","resistant","vibrant","geographic","wistful","specified","rightful","spirited","unborn","enjoyable","regal","cumbersome","burned","frenzied","gubernatorial","deteriorating","haunted","evasive","neglected","anthropological","inescapable","clear-cut","visionary","bloated","accumulated","agrarian","pained","dwindling","heightened","gray-haired","distressing","grinding","insecure","archaic","piercing","fluent","leisurely","giddy","slimy","oncoming","short-lived","spinal","wholesome","unanswered","illegitimate","staunch","two-day","rumpled","speedy","soaked","rocking","invaluable","gallant","tacit","finite","inviting","sporadic","powdered","cheery","volcanic","optional","mischievous","flowered","contagious","automotive","inflated","mythic","analytical","infrared","two-week","binding","ancestral","dissatisfied","upstate","veritable","unaccustomed","oily","monotonous","seated","feeding","fluorescent","undue","impassioned","picturesque","vocational","tranquil","tumultuous","rustic","patterned","two-story","pagan","flash","playing","exhilarating","maiden","three-dimensional","mythical","thriving","drab","black-and-white","honorary","dingy","founding","imperative","indistinguishable","lightweight","avid","dreamy","everlasting","obsessive","tional","homogeneous","inner-city","changed","tame","colorless","haggard","implacable","altered","unequal","focal","perceptual","literate","priceless","diminishing","harmonious","dark-haired","fatty","squat","undecided","banal","fruitful","pioneering","innocuous","cordial","rewarding","unsafe","maritime","overcrowded","timeless","fledgling","nostalgic","abreast","one-time","humid","astronomical","one-man","deepening","blazing","fleshy","dishonest","succeeding","qualitative","needless","rickety","joyful","stated","ambivalent","hybrid","six-month","limiting","workable","sleepless","unpaid","mundane","flashy","stagnant","bumper","recurring","sinful","immaculate","synonymous","measured","thrilling","long-standing","unruly","bewildering","unfit","edgy","numerical","sumptuous","fragmented","puffy","elastic","high-pitched","momentous","woven","unsteady","unnamed","cosmetic","snap","impenetrable","floral","waving","promotional","tenuous","lonesome","embroidered","strident","cherished","aghast","fundamentalist","white-collar","afloat","disruptive","law-enforcement","gathered","indefinite","intervening","publicized","geometric","disciplinary","descriptive","wavy","edible","disgruntled","obligatory","untrue","amber","snug","resolute","awed","simplistic","grandiose","crippling","high-speed","mounting","glaring","small-town","cavernous","hushed","wage-price","demographic","diseased","unpublished","causal","defenseless","sheltered","dormant","compulsive","loved","willful","truthful","punitive","disposable","ajar","drowsy","statutory","tanned","proprietary","informed","unheard","decision-making","transient","unlawful","dour","negligible","underwater","optimum","illusory","imaginable","borrowed","divergent","looking","exempt","contentious","forbidden","cowardly","masked","crazed","silken","parched","furry","wandering","insensitive","over-all","elated","waxed","veiled","envious","insidious","scrawny","unwarranted","lithe","abrasive","pretentious","far-off","murdered","deft","prickly","musty","shapeless","incongruous","gruesome","honored","perceived","grieving","unspecified","dizzying","privy","noteworthy","charred","median","fearless","twisting","unattractive","flawless","welcoming","flushed","hardy","glum","scenic","devious","recurrent","distasteful","jubilant","ballistic","hilarious","naughty","bustling","discarded","pristine","exemplary","fading","complacent","incessant","engaging","twentieth-century","protectionist","rudimentary","traumatic","steamy","emphatic","hard-line","teeming","generating","stuffy","connecting","stationary","genteel","populist","supple","hateful","retrospective","glazed","lawful","arched","tiresome","lucid","reserved","pivotal","grimy","surly","anti-Soviet","contrary","quarterly","old-time","residual","spiral","decaying","threatened","docile","appreciative","jovial","fascist","worrisome","red-haired","undisturbed","creamy","well-dressed","serial","existential","mountainous","pastel","self-sufficient","spoken","express","tasty","maroon","infrequent","deceased","full-fledged","transitional","leafy","gravitational","furtive","prophetic","nasal","unwelcome","troubling","immobile","merciful","uncontrollable","impartial","unfavorable","attendant","associated","high-rise","vascular","fateful","concerted","rash","stubby","paramount","impulsive","fraudulent","drooping","reciprocal","usable","fast-food","touchy","astute","oversized","mottled","slack","fruitless","unhealthy","decorated","shady","shaped","fanciful","quivering","charismatic","sordid","oppressed","inaccessible","fastidious","brazen","gloved","crumbling","underdeveloped","scarred","rambling","incipient","remedial","derelict","incompatible","fanatical","smoked","secondhand","hypnotic","failing","marching","flattened","paradoxical","unskilled","esthetic","tolerable","pungent","substitute","soggy","terse","tiring","fictitious","manageable","inventive","haughty","normative","premier","grudging","vested","exhausting","cross-legged","self-evident","away","horrified","prolific","incoherent","quantitative","full-length","year-round","unkind","provisional","exterior","brash","inconclusive","landed","breathtaking","acrid","noted","resultant","long-time","resounding","lovable","hypocritical","plush","foggy","acknowledged","idiotic","tracking","ceramic","taxable","enterprising","flashing","wee","barbaric","deafening","orbital","lurid","dated","hated","buoyant","mating","pictorial","overlapping","lax","archetypal","manic","limitless","puzzling","condescending","hapless","meek","faceless","uncommitted","horrid","greenish","unorthodox","unending","accelerated","day-care","undeniable","bushy","searing","fearsome","unharmed","divisive","overpowering","diving","telling","determining","uptight","cast","enlarged","ebullient","disagreeable","insatiable","grown-up","demented","puffing","inconvenient","uncontrolled","inland","repulsive","unintelligible","blue-eyed","pallid","nonviolent","dilapidated","unyielding","astounded","marvellous","low-cost","purposeful","courtly","predominant","conversational","erroneous","resourceful","converted","disconcerting","oblique","dreaded","indicative","silky","six-year","front-page","biting","flowering","sunlit","licensed","unspeakable","adrift","awash","identifiable","girlish","zealous","spooky","uncompromising","deserving","driven","certified","unlucky","temperate","budding","impractical","public-relations","inflexible","sensory","pornographic","outlandish","resonant","belligerent","wan","leftover","spotted","soybean","easygoing","vengeful","proportional","inaugural","dank","screaming","heterosexual","sliced","year-old","considerate","thunderous","distressed","warring","assertive","foreseeable","psychotic","intermittent","anti-Communist","generalized","unable","molten","excruciating","illustrious","voluminous","offending","trustworthy","grating","laughing","one-year","industrious","uninterrupted","dashing","speaking","metabolic","flattering","one-sided","ineffectual","primal","digestive","taped","floppy","jaunty","practiced","walled","hospitable","dutiful","melodramatic","intestinal","cluttered","conclusive","complementary","unprotected","buzzing","attributable","tasteless","forthright","wily","hourly","delayed","sweating","affable","studied","chubby","thyroid","chilled","conducive","childless","faltering","authorized","buried","land-based","observable","hurried","curving","dismayed","pernicious","upturned","believable","questioning","syndicated","pharmaceutical","high-risk","resigned","discrete","likable","imprisoned","cocky","outdated","autocratic","ablaze","askew","grammatical","wintry","incidental","matter-of-fact","disputed","exorbitant","low-level","sodden","skeletal","disproportionate","soiled","cellular","ephemeral","perfunctory","inconsequential","flourishing","intentional","two-way","elemental","whispered","four-day","stinking","informative","tenacious","outlying","virulent","horrendous","horrifying","burnt","longstanding","senile","unmoving","deprived","interpersonal","intimidating","posh","dainty","portly","nondescript","inquisitive","exiled","capricious","scandalous","severed","debilitating","widowed","horny","sallow","up-to-date","self-contained","carefree","boisterous","coordinated","anti-Semitic","superfluous","metric","expressed","enchanting","disorderly","paternal","wanton","frightful","free-lance","extremist","lined","scornful","inseparable","obese","ponderous","imperious","indistinct","adrenal","belated","rippling","valiant","livid","mystic","cracking","subterranean","invading","rusted","esoteric","red-faced","segregated","lanky","departmental","allergic","predatory","enforced","anti-inflation","implied","flagrant","best-selling","haphazard","trailing","seedy","real-life","unannounced","utilitarian","roving","despairing","immature","simulated","embattled","poisoned","patronizing","baffled","centralized","weathered","weeping","mutilated","painstaking","tax-exempt","socioeconomic","tearful","stringy","projecting","low-key","single-minded","shadowed","vehement","darn","fluffy","apocalyptic","completed","intelligible","furnished","elongated","worsening","eclectic","bacterial","earthy","sagging","wide-ranging","face-to-face","settled","dogmatic","anti","secluded","baffling","coy","pathological","echoing","bridal","autobiographical","instantaneous","ornamental","satirical","voluptuous","movable","kinetic","merciless","tireless","three-month","unconcerned","impromptu","turning","follow-up","retaliatory","arcane","waterproof","justifiable","glassy","unearthly","shuttered","inverted","bogus","petrified","simmering","guided","gritty","widening","generic","pretrial","returning","boundless","swirling","northeastern","swell","tive","minuscule","estranged","upbeat","explanatory","repetitive","repressed","vindictive","shrinking","canny","little-known","hydraulic","unrelenting","looming","supersonic","justified","lukewarm","unmoved","blurred","double-breasted","sanitary","unforgettable","diligent","unconventional","ashen","wordless","stainless","inlaid","irritated","spotless","pudgy","yellowish","lateral","adopted","lowly","obnoxious","utopian","called","unimaginable","hairless","foregoing","opulent","garish","nocturnal","rousing","unexplained","cosmopolitan","milky","medium-sized","all-night","bloodshot","rueful","hard-working","crafty","familial","iced","violet","arctic","ceaseless","exasperated","warped","aquatic","gruff","terrestrial","contrasting","egalitarian","needful","spent","untrained","escalating","liberated","long-haired","abortive","syntactic","consummate","lumpy","spoiled","ten-year-old","talkative","whimsical","weighty","audio","inflammatory","deplorable","spicy","corrugated","morose","sobering","southwestern","three-year-old","methodical","prehistoric","carpeted","smelly","processed","overheated","interstellar","agile","approximate","sadistic","living-room","irate","smashed","frontal","venereal","indiscriminate","suggested","cultured","creeping","recognized","toothless","handmade","mellow","fetal","disinterested","gratifying","trusting","small-scale","intravenous","crashing","exhaustive","afire","clammy","sleazy","florid","heartless","transcendent","restored","demonic","abusive","avowed","shrunken","objectionable","tailored","arms-control","listless","polluted","palatable","funded","elective","entrenched","classy","operatic","daunting","roaring","preferential","languid","three-hour","virile","inspiring","enhanced","scrupulous","bottomless","ginger","wispy","advantageous","rapt","umbilical","uphill","ordered","enraged","detrimental","curt","exalted","hard-pressed","intangible","fussy","forgiving","facile","populous","condemned","mashed","hard-boiled","introductory","rowdy","switching","perplexing","spilled","southeastern","undulating","fractured","inherited","inscrutable","measurable","stunted","hormonal","stylized","hierarchical","air-conditioned","aimless","subsidized","paying","symmetrical","nomadic","cloudless","reigning","thatched","perceptible","anesthetic","anti-American","miscellaneous","homesick","preparatory","seven-year","big-city","decadent","searching","all-important","inanimate","senatorial","diminutive","soft-spoken","contingent","dusky","smashing","precipitous","bulging","standardized","biographical","restive","indecent","upper-class","ecumenical","interchangeable","lumbering","fascinated","untidy","indulgent","leaden","wanted","endemic","doomed","wanting","receiving","engaged","unparalleled","abbreviated","malevolent","wishful","carnival","world-wide","protruding","resplendent","stranded","structured","biased","frosty","northwestern","viral","mindful","paved","indeterminate","painless","second-floor","geological","permissive","downhill","unsuspecting","expectant","fabled","jittery","windowless","evocative","unsolved","disoriented","monastic","soluble","misshapen","antiquated","repugnant","non-Communist","retiring","shaded","combative","high-powered","resilient","antagonistic","starched","vice-presidential","speckled","lopsided","bluish","late-night","prim","unrestrained","almighty","tyrannical","unkempt","menstrual","bleached","overgrown","idiosyncratic","shoddy","hallowed","trying","halting","princely","drugged","gratuitous","descending","fatherly","avant-garde","laborious","pinched","disguised","caustic","bespectacled","handwritten","goodly","itinerant","cryptic","undisclosed","affordable","outmoded","expedient","moody","tepid","firsthand","digging","elitist","observed","chartered","slain","five-day","unimpressed","tactful","idyllic","prostrate","ramshackle","expert","deferred","undistinguished","prized","transatlantic","crystalline","tacky","haunting","nutritious","bereft","turquoise","time-consuming","sanguine","culinary","fraught","precocious","assigned","scrambled","advisable","nationalistic","long-awaited","unwrapped","unchallenged","circumstantial","pleasurable","compressed","humanistic","unforeseen","diversified","frenetic","disapproving","proletarian","conspiratorial","featureless","going","commendable","no-nonsense","chipped","surreal","salient","pissed","insurmountable","backstage","contented","indebted","adoring","one-room","prewar","potted","accelerating","thorny","possessive","abiding","ever-increasing","bloodless","high-technology","counterproductive","attracting","entrepreneurial","cooling","unoccupied","craggy","leathery","degenerate","additive","weakened","quilted","untold","incandescent","intractable","middle-income","abject","self-made","gaseous","anal","displaced","unabashed","immutable","fluttering","ten-year","bearable","stamped","darkening","beefy","petite","charging","high-quality","left-hand","age-old","checkered","stupendous","priestly","loath","endearing","exacting","correctional","freak","sneaky","disgraceful","unholy","oriental","wayward","societal","hard-core","bilingual","flipping","staid","paramilitary","heartfelt","shapely","kosher","heedless","incurable","controlling","in-house","choral","manicured","cardinal","inconspicuous","steely","vanishing","misplaced","centre-fire","enchanted","unfounded","wrecked","womanly","delirious","deposed","panicky","differential","tawny","articulated","coded","wide-open","unregulated","lenient","feathered","simplified","beguiling","sectarian","producing","tiled","inorganic","frosted","lusty","scented","rotating","grievous","dissimilar","salaried","unequivocal","strangled","grubby","alluring","downcast","restraining","unjustified","contaminated","lacy","cinematic","second-class","splintered","adorable","derisive","state-owned","requisite","fleeing","uncomplicated","motherly","inter","high-heeled","climatic","republican","unqualified","leveraged","intercontinental","uncharacteristic","compositional","unwritten","patriarchal","brusque","unresponsive","replete","corrective","reflected","scraping","doctoral","premium","deductible","alternating","amorous","overjoyed","recalcitrant","presumptuous","vaulted","declared","inexorable","groggy","diminished","restful","retroactive","presumed","monolithic","curtained","tortured","ground","trendy","brassy","prosaic","inactive","chaste","bumpy","aggrieved","corny","centrist","trapped","noxious","jerky","concomitant","withholding","poorly","stolid","unguarded","methodological","primordial","retreating","telescopic","sidelong","off-duty","pleated","dissenting","agreed","double-action","optimal","plaintive","banned","kindred","quintessential","impervious","jumping","disenchanted","observant","congested","second-rate","reasoned","extrinsic","infantile","transitory","coveted","small-time","doctrinal","incomparable","jaded","special-interest","sociable","shameless","coloured","ascending","fraternal","queasy","wont","exhilarated","salted","disquieting","listed","unchanging","nine-year-old","unrestricted","uppermost","reputable","dummy","skimpy","crusty","corrosive","bubbling","decrepit","unsuitable","snarling","destitute","illuminating","systemic","material","unwashed","rushing","dialectical","jeweled","attached","liberating","judicious","errant","vanished","worn-out","erstwhile","uninformed","twelve-year-old","longterm","petulant","twin","self-righteous","afflicted","snappy","tantamount","sworn","unethical","drained","hydroelectric","perplexed","logistical","concentric","unifying","lunatic","invincible","diffident","inexhaustible","discouraging","dreamlike","artful","rolled","suppressed","secretarial","smoldering","redundant","forensic","million-dollar","self-styled","earned","weightless","signed","compensatory","glacial","unmanned","stalwart","funky","intensified","uninterested","submerged","urbane","glib","ascetic","contractual","warlike","high-priced","diagonal","cylindrical","gargantuan","illuminated","unconditional","hulking","supplementary","dictatorial","puny","sedate","moonlit","eight-year-old","gullible","counterfeit","alienated","spinning","analytic","nimble","adaptive","individualistic","numbered","blissful","insolent","supplemental","delectable","inordinate","unbalanced","tormented","unchecked","aspiring","punishing","self-serving","crossed","discretionary","box-office","snow-covered","improvised","squalid","orphaned","grizzled","unsmiling","disappearing","affiliated","readable","blocking","bullish","contending","burned-out","bloodied","subsidiary","complimentary","unclean","scanty","uprooted","farfetched","solicitous","regulated","threadbare","choppy","ever-present","negligent","nonstop","one-day","wild-eyed","infuriating","vivacious","abominable","wrought","inaudible","braided","transcendental","desultory","climactic","appellate","interlocking","submissive","unmatched","dapper","demeaning","adaptable","well-meaning","lustrous","tax-free","ungrateful","gentlemanly","missed","loathsome","incalculable","blistering","amenable","tremulous","massed","nonpartisan","unsettled","three-story","succulent","trite","masterful","reticent","unsettling","proverbial","strapping","spurious","invulnerable","paltry","embryonic","repeating","neural","sultry","metaphorical","foreign-policy","linked","pubic","beaming","ministerial","phantom","quizzical","hilly","cold-blooded","gregarious","three-piece","untroubled","bisexual","pensive","unpretentious","exploratory","unscathed","irrepressible","pelvic","newfound","starry","corned","overworked","illogical","unfaithful","interrelated","saintly","overcast","connected","ungainly","organizing","carnal","philosophic","nationalized","fickle","ultraviolet","crass","undeveloped","unprofitable","sheepish","archaeological","out-of-town","balmy","spongy","infallible","callous","scathing","rheumatic","audacious","participating","swarthy","hand-held","comatose","modernist","stellar","antinuclear","delinquent","time-honored","presiding","relaxing","high-pressure","impetuous","hypodermic","fringed","favourite","unscrupulous","inspirational","mystified","wobbly","intrepid","deferential","burdensome","stored","supervisory","seventeenth-century","six-day","interdependent","updated","all-powerful","unitary","stand-up","laconic","penniless","steadfast","dogged","scholastic","convertible","mingled","sorrowful","symptomatic","stylistic","well-intentioned","consuming","sketchy","weakening","generative","atrocious","first-quarter","irrevocable","charged","stoned","dividing","apathetic","debatable","uncomprehending","overhanging","galloping","kinky","uncritical","suave","undisputed","spiky","inarticulate","extracurricular","guttural","impressed","departing","yellowed","discontented","adroit","high-fiber","second-hand","blinking","formless","unsavory","new-found","withered","collected","menial","unobserved","flabby","afterward","vanquished","stained-glass","hour-long","bittersweet","invalid","incriminating","commensurate","all-American","assumed","tried","cursory","absorbing","clearing","confirmed","stressful","depleted","eight-year","participatory","stripped","concave","regrettable","fortified","effortless","regressive","irreverent","collegiate","defunct","grainy","inhospitable","gripping","grizzly","restoring","arterial","busted","indomitable","demure","rabid","headlong","blue-green","bound","breezy","materialistic","uneducated","scruffy","cohesive","full-blown","cranky","motivated","mauve","hardworking","melodic","genital","decorous","comely","rife","purported","hurtful","six-foot","macabre","odious","convulsive","well-trained","heterogeneous","curled","pearly","spindly","latter-day","innermost","clipped","checked","masterly","laughable","naturalistic","tinkling","impudent","fitful","illustrated","speeding","roasted","in-depth","helluva","vigilant","empty-handed","forged","wrought-iron","disgraced","agonized","infirm","preserving","tasteful","onerous","shredded","impregnable","slanted","tainted","opened","first-time","machine-gun","bottled","seismic","fetid","saturated","insubstantial","full-page","aromatic","stingy","promiscuous","unlit","regimental","spellbound","streamlined","bereaved","ruffled","creepy","treasured","ensconced","one-party","well-educated","pert","mercantile","all-purpose","voracious","tortuous","despised","unadorned","offhand","qualifying","manipulative","indelible","well-established","revolting","ethereal","roasting","prohibitive","domed","whipped","overstuffed","garrulous","skittish","revived","heartening","jumpy","grilled","melted","unfocused","spectral","unproductive","top-level","life-size","three-way","negotiable","disloyal","turn-of-the-century","four-hour","unopened","devilish","amorphous","antiseptic","sharpened","primeval","unrecognizable","ineligible","expendable","deathly","auspicious","insoluble","inimical","unquestioned","far-flung","medicinal","deep-seated","formative","iridescent","fragmentary","distinguishable","auburn","closed-circuit","emeritus","third-floor","hazel","tumbling","departed","obstinate","portentous","quixotic","scorched","adjustable","winged","intrusive","taxing","high-ceilinged","barbarous","decreasing","sleeveless","unattended","tight-lipped","concluding","unobtrusive","starved","quirky","big-time","sooty","copious","stalled","scriptural","unconvincing","earthen","throaty","august","extant","sexist","exultant","cancerous","psychedelic","yielding","matched","chunky","unfathomable","concise","admitting","knitted","projective","euphoric","garbled","divisional","despondent","recommended","passable","vegetarian","indefatigable","irreparable","feisty","untenable","contrite","angelic","reputed","untimely","dejected","appreciable","remembered","hellish","rear-view","open-air","ill-fated","nonpolitical","factional","separatist","contributing","post-war","uneventful","metaphoric","unsound","unwitting","venomous","harried","engraved","collapsing","reformist","thematic","inclusive","cheering","springy","obliging","contemplative","unbridled","state-run","reflex","allegorical","geopolitical","disembodied","issuing","bountiful","alright","overbearing","muddled","congenital","distinguishing","absorbed","tart","french","autumnal","verifiable","grueling","crackling","aft","punishable","freckled","indestructible","imprecise","hard-nosed","thoughtless","through","proficient","pent-up","never-ending","hunted","defensible","arresting","across-the-board","spotty","orchestral","undefined","stacked","implausible","antitank","unwary","inflamed","sacrificial","oil-producing","leaky","mint","chronological","conquering","jumbo","three-week","addictive","uninhibited","substandard","contracting","degenerative","triumphal","flowery","cardiovascular","shaken","undefeated","unassuming","luscious","unperturbed","gleeful","sentencing","brawny","perfumed","mild-mannered","healthful","left-handed","rancid","well-defined","unmanageable","drowning","clinging","anachronistic","revered","enriched","capitalistic","good-by","invigorating","practicing","unsold","long-legged","unruffled","aboriginal","inane","bedraggled","early-morning","run-down","straight-backed","reverent","acquired","bestselling","top-secret","woolly","foolhardy","sticking","blue-black","impassable","overcome","coiled","front-line","tinted","acquisitive","slatted","octagonal","receding","investing","doctrinaire","all-white","caring","prejudiced","slow-moving","circulating","science-fiction","shortsighted","disaffected","lawless","chastened","lewd","rubbery","foaming","unsympathetic","ladylike","betrayed","neurological","shouting","good-sized","electrostatic","untoward","flabbergasted","citywide","unanticipated","knotted","whitewashed","year-end","enticing","migratory","multicolored","hashish","ascorbic","topless","heathen","spherical","filmy","deviant","centennial","proportionate","instructional","contrived","savvy","over-the-counter","fast-moving","measuring","uptown","compliant","favourable","unforgivable","undamaged","psychoanalytic","gebling","bubbly","ready-made","caged","ostentatious","superhuman","busing","cream-colored","self-destructive","ostensible","cobbled","whirling","released","showy","baleful","red-hot","named","monogamous","fallow","disdainful","cyclical","long-running","pitiless","diffuse","omnipresent","mossy","cutting","astounding","lyric","dark-blue","unsophisticated","indigent","coincidental","imperceptible","veterinary","coercive","multilateral","ageless","law-abiding","functioning","beneficent","crawling","overturned","steamed","comprehensible","oil-rich","undetected","ribbed","nautical","textured","fast-growing","nauseous","vaunted","paralyzed","maimed","short-range","impure","unintended","practicable","intermediate-range","unfulfilled","behind-the-scenes","backhand","voluble","goofy","apolitical","contraceptive","waning","blasted","sundry","profane","binary","rock-and-roll","ruinous","open-ended","next-door","withering","conical","flustered","decided","able-bodied","round-trip","decreased","half-empty","sponsored","riotous","stereotyped","five-minute","irreplaceable","harrowing","uninteresting","salutary","frugal","disjointed","cupped","freshwater","shaven","ravenous","bulbous","stepped-up","swaying","two-room","valued","planted","bright-eyed","unreadable","trucking","infatuated","dysfunctional","pinkish","futuristic","airtight","unseemly","sizzling","mercurial","conic","unfettered","undisciplined","unrecognized","well-publicized","income-tax","self-appointed","ice-cold","biochemical","contemptible","barefooted","droll","mythological","tree-lined","rearing","luxuriant","heartbreaking","tufted","well-organized","selfless","world-class","unwieldy","contested","rasping","downright","ingratiating","self-proclaimed","parasitic","graying","reformed","cautionary","untested","beaded","maniacal","eucalyptus","pliable","air-conditioning","moot","traceable","anti-abortion","antisocial","reprehensible","self-imposed","yellowing","teasing","porous","ersatz","unwavering","untouchable","underprivileged","auditory","escaping","subservient","unspoiled","anterior","fatuous","lordly","infernal","bouncing","taboo","orthopedic","spiteful","surging","nuts","esteemed","outlawed","pushy","displeased","self-confident","attainable","bowed","cast-iron","despicable","unconvinced","famished","coed","bygone","nonaligned","sectional","typed","squeaky","disparaging","cut-rate","heart-shaped","offbeat","velvety","well-worn","upsetting","leery","long-lost","horse-drawn","puritanical","payable","fertilized","predicted","allowable","peaceable","soundless","marshy","discordant","intoxicating","concurrent","uncut","tantalizing","pedagogical","accursed","two-man","connective","hawkish","ripped","cleared","double-digit","unencumbered","yawning","manifold","stopped","untreated","subliminal","grayish","gory","upper-middle-class","avenging","self-fulfilling","equatorial","saucy","barred","arch","midwestern","blue-gray","tarnished","leafless","incisive","unearned","botanical","feline","extraneous","prep","intransigent","change-minimizing","insurgent","acrimonious","thermonuclear","blue-chip","crummy","acoustic","oversize","fated","galactic","cantankerous","ill-advised","detectable","lower-class","sacrosanct","palatial","conditional","insulated","step-by-step","nebulous","two-dimensional","well-heeled","bronchial","subatomic","semifinal","first-year","dark-eyed","tinny","attacking","indecisive","anatomical","brotherly","blooming","sinuous","meditative","socalled","rheumatoid","received","bleary","half-naked","leaded","woody","averse","shuddering","door-to-door","heretical","suspect","untapped","ravaged","decentralized","rutted","ineffable","intolerant","mechanized","fortuitous","equestrian","seven-year-old","darting","consoling","modern-day","ground-floor","emblematic","lurking","two-year-old","purplish","disorganized","vaudeville","circulatory","eight-hour","presentable","anarchic","unsatisfied","labored","maudlin","trampled","gibberish","unaccountable","sedentary","heavy-duty","thrilled","tutoring","self-centered","do-it-yourself","inquiring","uncaring","disillusioned","bloodstained","surface-to-air","consular","subconscious","four-year-old","collaborative","terraced","figurative","sinewy","horn-rimmed","impertinent","hit-and-run","standby","medium-size","peremptory","incremental","first-aid","dyed","centrifugal","omnipotent","lascivious","two-month","unionized","discredited","mass-produced","feathery","self-indulgent","liturgical","enviable","fifteen-year-old","buxom","abashed","urinary","newsworthy","flailing","beastly","undiscovered","strong-willed","prenatal","brownish","announced","flaky","washed","nightmarish","broad-shouldered","short-sleeved","two-bit","self-assured","whitish","suffocating","black-haired","full-size","self-help","created","uninhabited","smokeless","no-fault","unfashionable","mushy","forested","adhesive","creased","insufferable","down-to-earth","trifling","landless","disreputable","self-effacing","sporty","confined","adoptive","monogrammed","motley","duplicate","silver-haired","rejected","undifferentiated","blasphemous","institutionalized","blue-and-white","hip","winsome","button-down","discerning","abused","clean-cut","bracing","self-supporting","unsupported","premarital","flattered","studious","repetitious","marketable","anemic","meaty","airless","unhurried","galvanized","feal","peace-keeping","rapacious","bulletproof","well-placed","helmeted","packaged","court-ordered","aggravated","gastrointestinal","hand-to-hand","sixteen-year-old","fretful","fourth-quarter","conquered","satiric","nutty","befuddled","humorless","pitched","burnished","mirrored","fishy","fluted","conditioned","military-industrial","one-story","barbarian","branching","dynastic","unthinking","unconscionable","hunched","post-World","capital","putative","incendiary","shaving","topical","self-satisfied","farcical","narcissistic","kneeling","born-again","old-line","amateurish","ill-fitting","scaly","unpainted","eroding"];var JU={};Object.defineProperty(JU,"__esModule",{value:!0});JU.default=["man","world","hand","room","face","thing","place","door","woman","house","money","father","government","country","mother","water","state","family","voice","fact","moment","power","city","business","war","school","system","car","number","office","point","body","wife","air","mind","girl","home","company","table","group","boy","problem","bed","death","hair","child","sense","job","light","question","idea","law","word","party","food","floor","book","reason","story","son","heart","friend","interest","right","town","history","land","program","game","control","matter","policy","oil","window","nation","position","ground","blood","action","wall","street","husband","fire","mouth","arm","sound","service","chance","information","price","building","road","paper","court","attention","space","trouble","form","society","art","market","force","effect","nature","chair","period","order","television","president","tax","field","glass","thought","industry","process","phone","plan","center","truth","couple","decision","change","eye","campaign","issue","situation","effort","report","sun","experience","peace","letter","level","energy","role","development","result","evidence","meeting","smile","support","baby","team","show","community","brother","picture","kitchen","production","press","study","daughter","director","dinner","class","defense","piece","record","desk","stage","earth","movement","future","board","security","sea","horse","language","public","church","course","bill","river","coffee","wind","bank","corner","committee","pain","help","answer","subject","hospital","film","economy","trade","feeling","member","apartment","ship","silence","seat","gold","education","leader","pressure","doctor","shoulder","sight","scene","figure","crowd","fear","telephone","labor","success","population","style","station","value","sky","growth","foot","radio","sign","strength","capital","neck","college","budget","breath","choice","direction","guy","agreement","speech","skin","will","amount","plane","practice","marriage","audience","movie","gun","living","hall","concern","income","quality","dog","cause","hotel","race","difference","stone","box","army","trip","distance","attack","chairman","election","presence","computer","science","color","theory","spring","machine","purpose","organization","material","image","tree","surface","officer","administration","act","statement","battle","page","suit","lady","play","stock","list","freedom","bar","relationship","farm","authority","student","conference","ball","structure","nose","plant","career","wood","basis","deal","source","chest","message","stuff","middle","sister","drink","majority","sex","store","trial","character","boat","union","animal","ice","front","firm","heat","hope","rock","weight","disease","spirit","memory","king","response","manner","opinion","operation","increase","lawyer","expression","kid","bag","department","crime","train","executive","aid","dream","beginning","rain","prison","conversation","shirt","lunch","possibility","pleasure","management","danger","rule","throat","wine","behavior","return","hat","surprise","snow","property","flight","training","ability","project","camp","range","approach","agency","treatment","reality","village","bottle","attempt","crisis","drug","violence","inflation","enemy","responsibility","opposition","newspaper","victory","dress","condition","darkness","opportunity","account","degree","pocket","performance","manager","visit","threat","failure","brain","driver","charge","beer","coat","shot","metal","activity","influence","intelligence","bit","official","existence","example","truck","note","construction","shape","event","screen","faith","safety","path","culture","chief","relief","grass","contract","product","investment","weather","soul","murder","bedroom","magazine","model","cup","leg","traffic","writer","beauty","song","share","cancer","patient","credit","club","argument","speed","quarter","design","desire","vision","candidate","bottom","pattern","date","finger","teacher","tea","section","article","flesh","island","balance","spot","meaning","technology","crew","proposal","leadership","concept","object","impact","guard","analysis","birth","shop","knife","advantage","generation","appearance","variety","anger","religion","reaction","fight","star","exchange","agent","investigation","milk","judge","silver","region","steel","ear","sugar","strike","youth","hole","thinking","attitude","supply","start","jacket","jury","taste","secretary","mountain","confidence","master","artist","spokesman","demand","cigarette","track","captain","network","whole","university","conflict","noise","smoke","commission","mirror","accident","plastic","garden","debate","interview","command","tradition","protection","dust","watch","lead","solution","measure","motion","discussion","mission","opening","respect","extent","struggle","goal","tongue","moon","author","iron","breakfast","competition","cover","legislation","environment","sake","justice","fuel","hill","key","length","shock","band","version","contact","engine","settlement","mistake","restaurant","revolution","estate","camera","beach","post","pool","fashion","football","border","touch","laughter","title","background","principle","strategy","roof","forest","philosophy","entrance","pause","doubt","bird","tape","belief","card","ring","occasion","wheel","capacity","cat","collection","passage","writing","bridge","owner","novel","pride","damage","contrast","judgment","gift","division","professor","bathroom","plate","explanation","smell","district","park","wave","player","present","theater","atmosphere","emergency","leather","impression","painting","neighborhood","block","function","circle","sentence","priest","method","warning","editor","ceiling","target","tour","gate","site","baseball","airport","shadow","walk","approval","gesture","individual","difficulty","attorney","criticism","affair","request","doorway","reputation","minority","consumer","notion","general","convention","being","honor","partner","chain","commitment","weapon","joke","coal","meal","reading","detail","library","debt","other","mail","drive","fellow","profit","soldier","forehead","housing","excitement","soil","literature","pilot","dance","reform","volume","scale","imagination","challenge","desert","secret","poet","cabin","average","factor","corn","check","wonder","absence","search","wedding","yard","hero","address","confusion","fool","package","victim","fault","platform","democracy","regime","terror","nurse","stream","offer","medicine","flow","grain","row","county","self","glance","humor","promise","employment","advance","planet","recreation","trail","chicken","storm","creature","mass","stand","ass","gaze","poetry","coast","lake","council","breast","corridor","conclusion","talent","tension","reporter","cut","appeal","total","belt","jail","passion","mayor","claim","combination","highway","wire","rifle","cheek","frame","exercise","incident","testimony","ticket","coach","connection","expert","disaster","valley","minister","deck","territory","chin","universe","independence","counter","resistance","cell","governor","salt","elevator","loan","release","schedule","porch","sheet","cloth","personality","actor","bomb","temperature","bench","break","code","journey","childhood","emphasis","aspect","pot","branch","identity","guest","arrival","recognition","hearing","lap","diet","factory","horror","fence","survey","fate","habit","lobby","bone","routine","discovery","comment","burden","treaty","knee","route","cry","ocean","fund","map","signal","ride","bear","deficit","height","element","sword","birthday","standing","cream","panel","fighting","travel","grandfather","creation","appointment","chapter","funeral","phrase","shore","planning","couch","survival","engineer","wagon","suggestion","waste","guilt","chamber","commander","clock","establishment","flag","content","supper","consciousness","proof","pack","beard","portion","comfort","resolution","sunlight","substance","benefit","honey","protest","prayer","stick","description","device","cloud","display","uniform","gasoline","tail","satisfaction","blanket","mess","consumption","drop","invasion","theme","mystery","belly","association","prospect","port","pipe","reference","skill","rear","heaven","destruction","worker","concentration","file","flat","cab","consideration","uncle","customer","laugh","radiation","favor","studio","boss","transportation","wage","fortune","tent","poem","procedure","clerk","surgery","percentage","expense","cap","household","match","bunch","column","intention","cousin","involvement","host","definition","wheat","permission","can","warmth","draft","silk","aide","lip","conviction","rope","illness","instrument","gap","string","adult","sweat","lover","evil","faculty","enthusiasm","farmer","missile","grin","tank","expansion","emotion","waist","discipline","distinction","technique","profession","wisdom","square","laboratory","tie","review","stranger","communication","pile","arrangement","palm","ceremony","tower","sympathy","deputy","script","nomination","friendship","institution","pass","civilization","magic","client","standard","significance","sport","defeat","announcement","reduction","grandmother","bowl","closet","genius","league","citizen","delivery","button","necessity","reader","lesson","trust","green","experiment","escape","craft","pistol","limit","witness","error","assistant","grace","salary","alarm","fist","potential","withdrawal","phase","bell","perspective","rose","score","amendment","fever","tip","god","crop","vehicle","barn","symbol","tale","exception","shift","scheme","suicide","tendency","logic","license","pollution","trend","bath","focus","producer","distribution","cotton","alternative","vacation","muscle","cycle","steam","palace","harm","location","beef","shame","policeman","compromise","tube","participation","fat","item","curiosity","blade","membership","lord","departure","shade","acid","enterprise","jet","selection","jungle","bond","retirement","alliance","bow","railroad","soup","airline","divorce","sofa","gear","gentleman","robe","plot","speaker","examination","egg","handful","recovery","embassy","entry","bastard","improvement","grip","invitation","barrel","context","controversy","fiction","revenue","reply","garage","crash","collar","landscape","grief","pen","teaching","angle","trunk","acceptance","recession","abortion","explosion","application","counsel","dignity","paint","landing","mixture","triumph","stove","winner","summit","thumb","depth","feature","setting","payment","grave","notice","museum","cop","graduate","sidewalk","taxi","trick","lamp","photograph","index","tray","essence","empire","tragedy","alcohol","flower","phenomenon","contribution","shower","castle","cross","booth","lawn","intensity","abuse","determination","passenger","opera","publication","wrist","hint","learning","punishment","ad","skirt","servant","prisoner","physician","midst","purse","rank","neighbor","elbow","contempt","round","cave","coverage","weakness","panic","basketball","juice","shooting","exposure","brick","miracle","unity","accent","coalition","fur","envelope","horizon","glory","stress","delight","politician","conscience","despair","rail","virtue","parent","dispute","killing","corruption","pound","core","stake","proportion","assault","curtain","efficiency","infant","count","suspicion","complex","formation","lock","entertainment","conduct","wit","outcome","shuttle","companion","discrimination","aunt","anxiety","shelter","confrontation","tool","climate","peak","cage","darling","assumption","stability","well","flame","marketing","currency","electricity","text","regulation","comedy","automobile","scientist","cake","scandal","contest","glow","cigar","arrest","brush","boom","basement","document","assembly","output","hut","slave","marble","breathing","pitch","loyalty","affection","resignation","guide","frustration","bureau","adviser","fleet","sector","privacy","awareness","fantasy","speculation","queen","tide","brass","formula","curve","zone","skull","sin","cable","corporation","foundation","achievement","countryside","monster","killer","strain","mask","breeze","whiskey","gang","rhythm","interpretation","basket","extension","tissue","satellite","doctrine","motor","hunger","intervention","kiss","fee","portrait","drawer","analyst","economist","reflection","visitor","transit","reception","provision","slope","sheriff","tunnel","complaint","devil","liquor","throne","hook","temple","tribe","preparation","handle","shoe","origin","helicopter","ruling","injury","crack","flash","gown","jaw","hallway","consequence","depression","subway","leave","drawing","cabinet","initiative","embarrassment","holiday","wilderness","towel","purchase","indication","sink","morality","impulse","rent","enforcement","utility","detective","comparison","critic","dish","hack","photo","crown","operator","conspiracy","rhetoric","bull","inquiry","humanity","demonstration","grade","alley","male","plain","pillow","remark","beast","seed","observation","guerrilla","straw","occupation","champion","excuse","possession","kingdom","snake","nerve","roll","horn","objective","cargo","mate","offense","resort","sequence","apple","bullet","presidency","strip","stroke","pig","print","champagne","saddle","dialogue","suitcase","protein","cook","quantity","toilet","chill","ranch","squad","priority","concert","van","adventure","representative","custom","shell","pension","prince","wound","video","courtroom","suffering","clay","actress","pencil","assignment","shelf","primary","waiter","charm","wool","sweater","soap","psychology","widow","delay","obligation","therapy","sergeant","shortage","myth","collapse","delegation","wish","perception","receiver","sauce","painter","reach","dear","fabric","carrier","ladder","hatred","dancing","cottage","opponent","dealer","prosecution","whisper","spread","poll","beam","exhibition","sigh","fog","harbor","successor","relation","gallery","prize","fireplace","fighter","pit","representation","prosecutor","liberty","bargaining","ownership","root","tin","celebration","stretch","nightmare","transport","link","diplomat","flood","architect","peasant","female","lab","category","inside","tune","carpet","mercy","fraud","introduction","facility","net","temper","rug","conception","eating","legend","tourist","refusal","disappointment","sensation","innocence","transfer","powder","parade","pursuit","parlor","pine","orbit","promotion","senator","colony","cart","interior","productivity","trap","identification","ambition","hip","admiration","corpse","emperor","patch","realm","barrier","ambassador","carriage","residence","maid","gathering","switch","lieutenant","sorrow","contrary","legislature","cliff","lightning","ritual","mist","salad","separation","flour","continent","poison","elite","radar","assessment","outfit","ideology","pad","exile","praise","employee","succession","gain","illusion","option","gravity","journalist","businessman","constitution","singer","sentiment","scope","transition","warrior","cast","march","herd","intent","inspection","episode","uncertainty","spell","isolation","observer","glimpse","privilege","spy","toy","thread","margin","anniversary","irony","organ","lecture","misery","needle","revolver","composition","admission","odor","candy","bid","classroom","bride","vitamin","refrigerator","sandwich","subcommittee","rescue","lad","defendant","blast","angel","compartment","vegetable","minimum","violation","agony","edition","compensation","evolution","treasure","salesman","log","clinic","layer","pitcher","publisher","suite","estimate","airplane","tournament","trace","hammer","reward","broadcasting","running","raid","specialist","mortgage","oak","pole","rocket","aisle","brandy","bureaucracy","mustache","vessel","penalty","export","orange","ignorance","hostility","integration","motive","ban","consultant","timing","equivalent","patrol","liver","assassination","instruction","leaf","railway","freeze","mention","designer","daylight","velvet","amusement","bush","fly","cloak","copper","orchestra","mechanism","chocolate","instinct","circuit","feed","courtyard","mob","profile","bombing","retreat","favorite","revenge","infection","historian","theatre","consent","bucket","mill","insult","pregnancy","psychiatrist","employer","presentation","swing","removal","financing","destiny","label","finish","ghost","channel","equality","requirement","dock","statue","doll","fan","mistress","oven","rim","scent","restraint","frontier","twin","framework","surveillance","diamond","pie","lion","cord","posture","wallet","stool","rally","realization","banker","invention","province","colonel","ally","inspiration","encounter","makeup","certainty","venture","takeover","daddy","ratio","fatigue","verdict","pardon","caution","scream","sleeve","coin","album","acquisition","laundry","transformation","handkerchief","candle","terminal","elephant","madness","appetite","rod","manufacturer","voyage","locker","pulse","indictment","riot","giant","sample","heritage","instance","hay","cure","clan","navy","monopoly","photographer","cowboy","bishop","linen","sacrifice","mortality","dilemma","frequency","harmony","junk","component","bargain","dragon","ruler","replacement","maker","blessing","resentment","surge","costume","editorial","mansion","hood","cellar","bout","driveway","championship","ambulance","sickness","guitar","rejection","compound","launch","journal","sculpture","preference","balcony","lid","toast","chart","motel","agenda","sadness","dimension","verse","scholar","submarine","confession","carbon","thunder","canal","socialism","merchant","bolt","insight","tub","topic","wolf","ridge","shed","gambling","arrow","con","lodge","bicycle","complexity","liberation","disorder","urge","circulation","pickup","distress","spine","romance","anticipation","military","lamb","gloom","pond","republic","ballet","bankruptcy","appreciation","rebellion","custody","feast","fluid","expedition","altar","recipe","array","anguish","harvest","sack","fraction","loneliness","trailer","notebook","surgeon","slip","festival","inability","pan","clearing","making","revival","rack","flashlight","sociology","heir","segment","moonlight","reign","exploration","burst","pet","charity","bundle","assurance","murderer","thrust","conservation","confirmation","outrage","quest","grant","perfection","liquid","stance","jar","essay","addition","diplomacy","rat","outlook","capability","broadcast","cocktail","breeding","immigration","optimism","urgency","helmet","correspondent","breakdown","domain","dressing","dancer","pork","colleague","crystal","insistence","guarantee","lane","dependence","chapel","transmission","hunt","turkey","veto","canoe","interference","sailor","arena","refuge","attraction","thesis","waitress","trigger","founder","briefcase","scholarship","commissioner","stack","lift","greeting","mining","partnership","cane","devotion","thief","troop","menu","finance","coincidence","sleeping","picnic","lounge","dose","jeep","brand","reasoning","proposition","administrator","cylinder","execution","commodity","drum","bronze","staircase","pin","whistle","robbery","catch","thigh","descent","canyon","ballot","shotgun","curb","nod","continuity","shaft","guess","gossip","jurisdiction","revolt","worry","recording","repair","saw","suspect","dome","globe","runway","resident","cemetery","conversion","black","passport","cease-fire","imitation","salvation","cement","creek","nephew","buddy","lung","embrace","ink","simplicity","sunset","astonishment","butt","oath","typewriter","outline","tribute","deadline","hostage","underwear","revelation","reluctance","dread","nest","nut","disposal","disclosure","destination","terrain","procession","recommendation","recorder","potato","ramp","accounting","bat","precision","heap","justification","fork","idiot","biography","prey","ivory","rumor","toll","robot","mix","glare","seal","sweep","haven","bike","courtesy","interaction","secrecy","ham","superiority","synagogue","calendar","ledge","engagement","lace","timber","turmoil","tooth","perfume","magnitude","veteran","lemon","cutting","tomb","accord","ammunition","spear","hunter","acquaintance","grocery","coming","pump","reservation","slide","award","institute","fringe","freight","accuracy","spectrum","ski","diameter","battery","desperation","pounding","variation","ankle","pepper","encouragement","cathedral","expectation","calf","monkey","suburb","rabbit","objection","dismay","boot","pipeline","lust","firing","aggression","ghetto","armor","merger","sphere","texture","moisture","kidney","broker","auction","hose","patent","hesitation","mound","cruise","goat","declaration","regret","conductor","terrace","contention","crap","manuscript","incentive","buyer","gin","principal","steak","novelist","criminal","heel","intellectual","conservative","quarterback","collector","motorcycle","refugee","punch","cluster","clown","preacher","torture","headache","pact","lump","buying","flavor","toe","spectacle","apron","banner","convenience","import","attendant","kindness","verge","dairy","umbrella","dam","inventory","turning","homeland","remainder","gum","plight","container","diversity","drought","reporting","biology","chemistry","curse","scar","merit","spray","reactor","shield","clarity","bamboo","metaphor","vocabulary","runner","luxury","diagnosis","bunk","white","statute","knock","garment","breed","railing","zoo","rival","supermarket","streak","pavement","discomfort","congregation","twilight","bacon","slot","scarf","dime","charter","grammar","theft","sensitivity","mainland","classification","coffin","rider","competence","adoption","reserve","fascination","specialty","mike","temptation","yield","evaluation","passing","intimacy","translation","philosopher","cafe","sitting","superintendent","pill","housewife","signature","correspondence","siege","inn","leftist","injustice","assertion","restoration","registration","farmhouse","denial","endorsement","predecessor","final","demon","greed","transaction","repression","mattress","nobility","embargo","bosom","gym","tenure","addiction","apology","double","litter","nail","incidence","merchandise","volunteer","labour","basin","fiber","whip","payroll","microphone","cruelty","ax","supervisor","resource","maturity","resemblance","cult","stadium","limousine","welcome","knot","probability","menace","nominee","characteristic","stare","vodka","obsession","nursery","paragraph","discourse","candidacy","battlefield","saint","hierarchy","precedent","imperialism","pope","intake","burial","freshman","rebel","mandate","clause","tile","electorate","torch","adjustment","implication","farewell","curriculum","fountain","satin","subsidiary","humiliation","slaughter","discount","crest","princess","asset","greenhouse","reorganization","irritation","ending","messenger","jealousy","breakthrough","mineral","baggage","mouse","tiger","memorandum","kit","substitute","paradise","stride","deed","accumulation","pledge","hull","projection","apprehension","glue","excellence","composer","decay","ditch","slice","beating","syndrome","parole","pony","saying","vulnerability","rental","wax","renewal","disk","athlete","warehouse","organism","disagreement","suspension","documentary","soda","availability","dedication","delegate","reminder","domination","leap","span","obstacle","counselor","taxation","grandson","banana","rehabilitation","stamp","anchor","diary","tunic","boycott","meadow","backyard","dismissal","rating","disc","glove","pasture","catalogue","inspector","exploitation","missionary","density","sail","excess","chemical","disposition","headline","wartime","atom","bartender","blue","wash","shark","negotiation","monument","mom","faction","echo","tomato","scrap","expenditure","plague","fortress","web","briefing","luncheon","vanity","ribbon","nostalgia","drill","frown","dioxide","sovereignty","sweetheart","cot","tag","laser","purity","melody","sanctuary","citizenship","poster","pal","marketplace","girlfriend","programme","retaliation","researcher","allowance","bedside","yacht","scenario","concession","offering","instructor","motivation","litigation","tolerance","puzzle","compliance","duration","quarrel","aura","crusade","salute","intellect","debut","eternity","monastery","immunity","flock","choir","stern","medal","meter","auditorium","equity","fairy","windshield","mare","conquest","razor","push","kick","battalion","generosity","whale","den","mama","emptiness","hysteria","hillside","ideal","landlord","stem","drain","temperament","orientation","spoon","associate","ash","wig","elimination","bark","boost","activist","stature","liar","vein","tract","telegram","completion","pizza","urine","hollow","ordeal","admiral","psychologist","rehearsal","questioning","musician","installation","ministry","puppet","axe","nitrogen","contractor","poker","arch","tractor","reverse","relative","buffalo","deployment","outbreak","pier","veil","summary","courthouse","academy","confinement","catastrophe","technician","specimen","bachelor","lobster","tyranny","discharge","graduation","shout","monitor","traveler","dope","user","vegetation","deposit","investigator","attic","rabbi","reversal","knight","innovation","probe","altitude","legacy","raft","boyfriend","twist","plaza","paradox","witch","folly","physicist","prophet","threshold","plaster","dentist","telescope","vault","climax","parish","balloon","probation","prescription","liability","wheelchair","blackness","colour","booze","exhibit","vest","abundance","hatch","sketch","cartoon","horseback","investor","violin","hazard","trader","stall","healing","prejudice","scorn","rum","accomplishment","limb","produce","epidemic","tumor","camel","starvation","insect","tenderness","cockpit","maximum","patriotism","chauffeur","parliament","capsule","deficiency","massacre","dessert","bail","meditation","petition","hypothesis","ruin","voter","wait","saving","imprisonment","nationalism","lawsuit","surrender","celebrity","contradiction","disgrace","betrayal","slogan","thrill","enjoyment","narrative","canopy","might","vaccine","fort","stereo","hearth","relaxation","asshole","avenue","fright","drift","width","guardian","portfolio","longing","brutality","frenzy","chaplain","chop","tactic","viewpoint","chip","banquet","closing","re-election","impeachment","wardrobe","cradle","facade","finding","tangle","adaptation","hamburger","analogy","fancy","counterpart","dissent","skepticism","gut","advocate","granite","equation","slump","vice-president","nap","foam","buildup","geography","scratch","major","preservation","folder","entity","defiance","nickel","monarchy","shack","teaspoon","chase","remedy","disappearance","foreman","seller","rag","youngster","allegiance","earthquake","columnist","goose","feather","bulb","imagery","bomber","overcoat","harassment","outsider","maze","reproduction","printing","reconciliation","kinship","grease","harp","parallel","stew","particle","accusation","criterion","garlic","boundary","scalp","recess","bearing","warrant","dictatorship","breach","bladder","elegance","fervor","disapproval","monk","tweed","loser","hen","shrug","junta","disguise","gulf","landmark","bourbon","reconstruction","decency","register","feat","hostess","workshop","accommodation","wreck","referendum","viewer","niece","flank","autopsy","boarding","grove","decoration","stain","cape","prophecy","bubble","asylum","commentary","grandeur","subsidy","seizure","badge","limitation","armchair","pro","spark","blaze","centre","split","peril","fusion","goodbye","ringing","solitude","handwriting","crossing","onion","rubber","forefinger","bait","solidarity","measurement","multitude","dump","novelty","truce","perimeter","alien","decree","opposite","constituency","maneuver","ransom","supplier","performer","murmur","coordination","hobby","dough","lantern","cherry","fox","quota","deterioration","flaw","millionaire","raincoat","skeleton","bum","washing","plantation","spotlight","arsenal","villa","sermon","compliment","podium","collision","ratification","jam","loft","theology","escort","tyrant","ore","caste","brokerage","lighter","screw","inheritance","eagle","annoyance","napkin","rationale","flurry","mall","dresser","autobiography","slate","cheer","sulfur","assortment","memorial","electron","detachment","addict","shrine","mold","rookie","astronaut","diesel","neon","heroine","clash","recollection","sweetness","complexion","stewardess","adversary","trance","virgin","screening","classic","nuisance","uprising","shipment","mug","stairway","supporter","famine","stench","click","stupidity","bug","throw","lumber","current","mentality","regiment","galaxy","patron","tap","mischief","contingent","gospel","racket","liaison","honeymoon","foliage","leak","doom","irrigation","mechanic","chef","viewing","swamp","void","mule","lottery","pastor","steward","ranking","survivor","tuition","medication","misunderstanding","prediction","forum","oppression","ale","expanse","consultation","pawn","attachment","franchise","intercom","chunk","mat","pioneer","prairie","familiarity","undergraduate","tenant","chimney","cereal","thirst","pub","packet","aftermath","outburst","habitat","federation","deduction","pageant","circumstance","discontent","microscope","sausage","coma","want","intersection","detention","shrimp","deception","illustration","manipulation","ecstasy","dash","eyebrow","ray","persuasion","builder","injunction","foe","inclination","precinct","slab","anthropologist","amnesty","loaf","radical","intrusion","dwelling","calculation","paperback","usage","paste","ashtray","shovel","capture","ferry","preoccupation","joint","filing","spit","womb","puff","quilt","squadron","playwright","rotation","lease","brilliance","burn","cough","spouse","assassin","flu","cabbage","reliance","console","carpenter","dependency","advertisement","lipstick","mahogany","disadvantage","holder","furnace","certificate","alienation","collaboration","extinction","austerity","pupil","tenor","foyer","bluff","whisky","similarity","pouch","chant","nun","hike","babe","com","input","pianist","treason","brake","shake","dividend","repetition","fisherman","pinch","persecution","brightness","disdain","sunrise","gleam","premise","shawl","kettle","forecast","recipient","strap","outlet","chalk","plywood","nickname","fulfillment","doorbell","keyboard","peanut","knob","compass","interval","intuition","clearance","format","shuffling","dent","ambush","chatter","lettuce","harness","hiring","ache","continuation","fit","friction","pretense","velocity","tavern","abdomen","scout","splendor","barber","flap","plateau","hedge","raising","visa","dictator","housekeeper","cafeteria","enrollment","sailing","ingenuity","limp","bard","consistency","ordinance","bathrobe","gauge","strand","taxpayer","spider","coward","reservoir","brigade","self-interest","crackdown","crib","hum","roommate","traitor","blend","kitten","setup","dagger","sophistication","clout","goddess","disability","touchdown","fertilizer","punk","agitation","seminar","hitter","crust","comprehension","nightgown","gamble","freak","stump","microwave","lever","libel","playground","exhaust","abstraction","picket","diversion","advancement","bourgeoisie","coordinator","myriad","dial","diagram","sensibility","donor","endurance","prominence","playgroup","transmitter","revision","consolation","storyteller","jewel","mourning","burglary","competitor","narrator","verb","butterfly","rationality","ant","mister","satire","placement","reunion","plunge","comb","commuter","carving","hormone","creator","swim","clip","necklace","frost","fix","allocation","thickness","happening","disruption","caravan","rodeo","axis","submission","insanity","protocol","caller","porcelain","aristocracy","interrogation","boyhood","muzzle","delicacy","teenager","undertaking","textile","tailor","defence","comeback","zero","wizard","cupboard","cynicism","behaviour","holster","bulletin","broom","receptionist","listener","exemption","flicker","exam","treasury","hug","interruption","no","drugstore","roast","trifle","jerk","exclusion","inmate","contra","permit","gene","melancholy","alcoholic","trainer","perspiration","instability","doorman","deterrent","occurrence","hem","pricing","wear","hog","cushion","commune","courtship","paradigm","down","participant","triangle","apprentice","prevention","forearm","symptom","flush","newcomer","announcer","gorge","frog","platoon","hawk","rivalry","trench","geometry","clubhouse","feller","hymn","dictionary","showing","homicide","crow","pneumonia","gourmet","flannel","congress","dislike","illumination","jockey","superpower","papa","absorption","fragment","catalog","genre","hypocrisy","duel","cone","organizer","fraternity","cubicle","hardship","restriction","gasp","authorization","partition","barrage","groan","waterfront","aerial","cinema","proximity","mockery","compulsion","slum","default","evacuation","fugitive","carton","chariot","masterpiece","nylon","dialect","tee","bathtub","congressman","vapor","disturbance","mailbox","take","groin","moss","shepherd","formulation","foreigner","solo","elder","textbook","predicament","trait","reef","intruder","captivity","commotion","farce","royalty","exasperation","developer","expulsion","plaid","believer","migration","gal","fitness","idealism","galley","offensive","hometown","sophomore","clump","launching","mast","slowdown","generator","make-up","mount","worm","chuckle","prototype","catcher","crotch","interpreter","graveyard","mane","premium","cuisine","jeopardy","reassurance","vantage","condemnation","vase","blackout","token","abandonment","maple","magician","bust","syrup","cassette","pick","madman","cleaner","throng","hanging","riding","villain","squeeze","wallpaper","lime","blur","modification","clatter","anonymity","lineup","polish","accountant","setback","neutrality","modernization","borrowing","kill","dwarf","amateur","expectancy","donkey","fella","contamination","ballroom","kidnapping","popcorn","entourage","crook","ambiguity","coral","roadside","fragrance","slack","spectator","stimulation","groom","rattle","synthesis","tan","skipper","distrust","siren","spin","revulsion","signing","booster","savage","glamour","flute","civilian","flask","tug","misfortune","therapist","plug","standpoint","weed","ecology","footing","patio","decor","malpractice","residue","passageway","chopper","batch","acceleration","depot","quarry","hound","pilgrimage","deference","splash","heartbeat","rap","wedge","indicator","pretext","make","saloon","clientele","poisoning","hemisphere","grotto","ignition","cover-up","ape","transcript","blizzard","crab","ration","puck","propriety","hunch","madam","imbalance","jug","manual","raise","silhouette","sponsor","bore","volcano","crate","humility","devaluation","rocker","rainbow","chap","informant","freezer","limestone","guise","valve","appraisal","handicap","correction","bra","sinking","turnout","manure","pail","cardinal","grape","bee","rumble","miner","dissatisfaction","pamphlet","plaque","chat","injection","pulpit","platter","symphony","molecule","rib","pyramid","shudder","dissolution","vinegar","calling","acreage","chick","cuff","scrub","orphan","porter","saucer","antenna","trophy","rig","convent","good-bye","troupe","ploy","niche","veal","semester","contender","grenade","hilt","spiral","stink","marathon","boulder","treasurer","cookie","peninsula","freeway","rainfall","showdown","parody","telling","statesman","decrease","symbolism","pillar","tremor","penetration","carcass","breadth","psyche","hiss","suppression","pottery","dormitory","scare","overtime","bean","schoolteacher","timetable","buzzer","mesh","jack","marshal","windfall","lance","uterus","inconvenience","chrome","brute","gardener","whim","pearl","fold","trim","ravine","critique","adultery","stretcher","trolley","elevation","worthy","vibration","bracelet","plank","jelly","foil","wrestling","colon","layout","quotation","sting","son-in-law","jargon","likeness","knack","defect","sedan","tilt","chore","moratorium","convoy","piety","acknowledgment","formality","thud","blockade","chord","hush","takeoff","lining","marsh","manifestation","humidity","ingredient","crater","liking","pigeon","abolition","granddaughter","vintage","flourish","playoff","prostitute","prick","oblivion","sociologist","helping","locomotive","contraction","bookstore","surrogate","hippie","sherry","scotch","packing","wink","spasm","conglomerate","ensemble","dugout","insider","sect","inclusion","feedback","trumpet","massage","constituent","brotherhood","directory","newsletter","comrade","grid","turtle","restructuring","reel","spur","comet","dummy","combustion","moustache","oversight","motto","mantle","handshake","mouthful","monologue","buffet","miss","crunch","waking","gray","exaggeration","gait","clutch","courier","hangar","dive","curator","ridicule","diaphragm","tow","projector","eclipse","parcel","lure","transplant","township","squash","commentator","mentor","gutter","stint","treat","germ","infinity","impasse","burglar","proprietor","tariff","dispatch","torment","dove","superstition","going","tempo","warden","sponge","rooster","barge","gorilla","draw","wharf","stallion","countenance","orchard","navigation","tar","biographer","wheelbarrow","imposition","hurricane","stronghold","distortion","starter","rash","feud","parting","interviewer","wrongdoing","lavender","low","leash","envoy","stairwell","backup","doorstep","negotiator","heading","excursion","sewer","endeavor","backbone","rite","vine","gypsy","directive","defender","scoring","esteem","torrent","gland","consortium","nightclub","swell","employe","obscenity","cavity","pulp","lifestyle","butler","peach","tack","fossil","glitter","liner","destroyer","flyer","individuality","roller","outcry","felony","artery","cruiser","bedding","dude","bounty","blindness","bodyguard","corral","coroner","spice","martini","contingency","gag","serving","wail","wrench","sock","safe","spite","broth","trustee","moth","vice","gender","cartel","casting","puppy","prohibition","ox","sculptor","treachery","stir","printer","audit","brim","handbag","lobbyist","jolt","comedian","distraction","challenger","telegraph","homage","evasion","detector","filling","overhead","cartridge","walnut","sonar","puddle","quake","flooding","crescent","thrift","following","tanker","stoop","clergyman","opener","latitude","anatomy","convertible","arbitration","leukemia","absurdity","stab","biologist","baseman","fuse","specialization","carnival","scarcity","gangster","stalemate","trickle","mallet","working","receipt","charcoal","mortar","drainage","mother-in-law","regularity","emigration","plasma","condominium","muck","workplace","roster","stroll","softness","serpent","owl","infield","sill","swallow","backdrop","fidelity","historiography","thicket","baking","omen","yell","functioning","bribe","dynasty","trough","pudding","alcove","ancestor","ripple","flint","bracket","cube","pasta","proxy","groove","commercial","holocaust","countess","scroll","bang","planting","premiere","norm","bloom","gunman","vow","arithmetic","accelerator","postcard","relish","semblance","whine","inventor","sarcasm","designation","pat","symmetry","quiet","chisel","experimentation","cutter","differentiation","stud","apathy","relay","seminary","escalation","life-style","coil","mythology","futility","intimidation","childbirth","flare","glint","rue","mural","whiff","deposition","vogue","animation","migrant","caretaker","dot","mediator","lookout","captive","blackboard","pocketbook","recourse","negation","plaintiff","shriek","obstruction","latch","manor","casualty","grunt","gambler","erection","nationality","epic","starch","delusion","linkage","provocation","avalanche","offender","melodrama","contentment","appropriation","tonic","salon","accompaniment","paranoia","grimace","communion","cancellation","pendulum","shoreline","hail","refinery","subtlety","videotape","commando","repertoire","refinement","dryer","rust","lapse","haircut","errand","ailment","reanimation","ther","tab","prom","contemplation","bin","gilt","bunker","protector","sage","hilltop","hue","blueprint","correlation","brochure","roadway","arson","remnant","breaking","bouquet","exertion","garrison","beneficiary","colt","turbulence","refuse","bravery","indulgence","assimilation","coastline","livelihood","swarm","configuration","lecturer","paw","upheaval","switchboard","sub","claw","downfall","dye","immigrant","specter","deprivation","shrink","marker","sampling","fellowship","beak","pantry","mouthpiece","gratification","qualification","finality","debacle","extortion","chieftain","speaking","totalitarianism","mole","incumbent","jumper","crush","stubble","terrorist","comic","farmland","contributor","gravy","blossom","keeper","craftsman","pavilion","obscurity","loading","affiliation","vacancy","proclamation","gaiety","yarn","enclosure","clamor","sucker","recruitment","subversion","boiler","emblem","spade","stocking","staple","vocation","sling","maniac","musket","primitive","periphery","idol","snack","antique","redemption","listing","airliner","bandage","bulge","glimmer","priesthood","diner","astronomer","ovation","kindergarten","module","lifting","radiator","booklet","resurrection","precaution","affinity","thinker","quote","turbine","tally","vise","landslide","bakery","portal","majesty","abyss","admirer","turnaround","airfield","wastebasket","lapel","pennant","complication","slick","initiation","rustle","hearse","schooner","carrot","inscription","wench","embryo","vet","poise","disintegration","procurement","speck","kite","vent","plow","homosexual","membrane","waterfall","teevee","matron","utterance","buffer","memoir","cork","recital","loathing","cameraman","throttle","insecurity","trooper","hinge","hoard","umpire","slug","mountainside","affliction","pastime","felt","sentry","denomination","mushroom","linebacker","parachute","teller","fender","trademark","specification","harem","plum","metabolism","certification","neutron","organisation","heresy","relocation","payoff","lizard","termination","dropout","torpedo","stepmother","helm","resonance","heed","progression","braid","cardboard","walkout","shiver","gust","foreground","replica","repertory","sparkle","seam","bump","substitution","rapport","casket","dew","squirrel","palate","hitch","rebirth","reverie","boon","pirate","foresight","vinyl","delta","moat","presumption","tablespoon","aroma","digging","heartland","healer","malaise","creed","archway","exterior","screenplay","examiner","parity","copyright","strawberry","outpost","bookcase","cashmere","bikini","sheaf","pastry","respite","divinity","impossibility","legislator","saga","thump","inauguration","seaman","degradation","strategist","emerald","anthem","affront","burner","entrepreneur","thorn","marvel","stair","cavern","swivel","outlaw","underside","cleanup","fin","catalyst","forage","tapestry","dosage","covering","proletariat","turnover","notch","misconduct","onslaught","upbringing","coyote","bumper","champ","creep","boxer","mileage","vigil","fodder","occupant","dashboard","rarity","centerpiece","consul","ascent","paddle","martyr","doctorate","runoff","grudge","tattoo","robber","carbine","holding","oratory","distributor","heavyweight","footnote","terminology","infrastructure","drummer","chili","tableau","dung","magnet","deceit","caricature","itch","refund","cripple","rectangle","mortal","ancestry","inequality","generalization","furor","relativity","jukebox","dune","endowment","pathology","calibre","subpoena","attrition","hump","congestion","reflex","hoax","honour","herb","mantel","articulation","washer","judgement","brace","printout","helper","wording","crisp","shortstop","boulevard","characterization","cashier","matrix","documentation","deadlock","oyster","chasm","outing","expiration","heater","nutrient","beacon","bile","grievance","janitor","skyline","patrolman","juncture","antagonism","rump","hardwood","solace","warhead","assent","litany","enactment","chimpanzee","rye","feeding","suede","coke","inference","ivy","mosquito","eruption","symposium","variable","cooler","filter","storeroom","mailing","chancellor","beggar","antiquity","inertia","motif","absentee","float","blush","embankment","riverbank","demeanor","vampire","disciple","inadequacy","reinforcement","pedestrian","persona","berserker","tumult","incline","beaver","grill","morgue","denim","wreath","grouping","relic","syndicate","rancher","idiom","hegemony","seating","affirmation","physiology","repose","blight","jest","turret","slit","goalie","clarification","avoidance","volley","redhead","inefficiency","folklore","embodiment","afterthought","steer","cyanide","digestion","continuum","mania","giggle","buggy","willow","pantomime","fireman","growl","devastation","navel","halo","yearning","laborer","alligator","prelude","verification","brown","bead","midget","sleeper","riddle","portrayal","counterattack","lectern","tutor","chestnut","remembrance","aversion","taking","billing","regimen","translator","headmaster","duke","ace","snort","fanfare","imprint","calamity","exposition","cedar","intrigue","transistor","bowel","boardwalk","tramp","ornament","sticker","processor","voltage","sovereign","whistling","orgasm","caliber","exuberance","snout","enclave","kilt","bombardment","corporal","overhaul","syllable","curfew","layman","consolidation","insignia","mediocrity","coherence","hospitalization","flick","pew","coloring","sanction","baritone","radicalism","savagery","pallet","stead","cadet","shutdown","supplement","unicorn","stepfather","excise","spelling","rebound","puzzlement","tenement","souvenir","veneer","safari","quartet","whirlwind","hamlet","practitioner","parasite","installment","emission","kissing","chronology","mosque","chairmanship","blonde","steamer","caption","shave","standstill","maiden","polling","condor","twinge","campfire","drinker","exhilaration","seafood","gala","crane","hickory","cathode","graph","orgy","deliberation","planner","marrow","bud","mediation","cutoff","tit","tic","parchment","noun","culprit","lair","showcase","hangover","chemist","aggregate","thriller","smack","efficacy","smear","heiress","crank","fig","finale","pea","staging","die","rebuke","curry","scum","potency","acclaim","collateral","schoolboy","canteen","radius","deportation","grate","madame","mop","pronunciation","sheen","respiration","breakup","professional","omission","gunshot","ugliness","fanatic","barbecue","dorm","trot","flattery","stereotype","hatchet","capitalist","purge","brew","totality","fern","enzyme","plumber","subscription","cholera","bruise","forge","nipple","commencement","superstar","ether","gem","sash","extraction","spaceship","golfer","realist","encampment","necktie","repayment","skillet","darky","disparity","bedspread","haul","questionnaire","promoter","wand","windowsill","victor","rector","enamel","hoop","coronation","patriot","chandelier","watchdog","glade","renovation","goblet","zipper","communique","crevice","motorcade","sequel","scourge","serum","single","icebox","junction","cache","berth","streetcar","syringe","antithesis","bureaucrat","blacksmith","oval","bun","loot","fiasco","tomahawk","ulcer","pinball","jersey","asthma","brook","pedestal","feeder","soot","inevitability","alteration","carrying","showroom","gimmick","lunatic","gall","fir","borough","hash","woe","controller","sponsorship","applicant","twig","screaming","librarian","intermission","sister-in-law","bushel","inflammation","pomp","vial","extravagance","pate","prostate","dolphin","tuxedo","mathematician","guinea","veranda","aperture","disillusionment","gavel","dating","knocking","oasis","nebula","woodland","yellow","ambivalence","hardness","oxide","socket","wasteland","leopard","blazer","follower","asking","urn","weaving","swimmer","closure","dart","loudspeaker","bazaar","bog","transfusion","reproach","sham","parka","affiliate","scowl","primate","attacker","rink","funnel","spate","elaboration","legality","tablet","heyday","tripod","bully","sharpness","demolition","flip","dandy","appliance","slant","sentimentality","knoll","gloss","defection","explorer","ram","stupor","clone","baton","cohesion","bearer","penance","bandit","aberration","gallop","swirl","coconut","spree","pedal","detergent","canon","teen","brood","phonograph","tabletop","enlargement","sniper","cohort","fable","rising","spill","affidavit","imperative","snapshot","apparition","stunt","wristwatch","chute","teammate","carelessness","over","stripe","postponement","rapture","savior","pacifist","admonition","pear","junkie","surcharge","wavelength","horseman","hag","confessional","comptroller","orthodoxy","financier","snarl","cliche","refreshment","incest","adolescent","teapot","seaweed","drilling","roadblock","antibody","sheath","pallor","constable","misuse","arcade","lee","keep","anarchist","watering","rhyme","exclamation","backseat","great-grandfather","han","pod","daughter-in-law","mailman","alphabet","sloop","reckoning","grower","simulation","homer","birthplace","ence","actuality","depletion","novice","diffusion","concealment","cadre","pathway","fungus","ouster","loner","autograph","descendant","aspiration","better","sick","variant","fragmentation","pesticide","frigate","bestseller","propensity","foul","senate","trouser","airstrip","insurrection","chronicle","coating","stigma","toothbrush","pumpkin","apprenticeship","widower","paycheck","query","teen-ager","shifting","informer","doorknob","ardor","pebble","finesse","scrapbook","fiddle","dowager","sod","wrap","turtleneck","clipboard","rogue","mutiny","suitor","bulkhead","babble","fad","billboard","beverage","hairline","grille","exporter","pathologist","mesa","goblin","scapegoat","crucifix","backpack","observance","forgery","dungeon","methodology","gauze","bonanza","inkling","beret","shouting","ex-wife","wickedness","toil","preview","porridge","cornerstone","scanner","smoker","rebate","mite","brawl","axle","easel","allegation","grab","parrot","antidote","drawl","hijacker","telltale","venom","el","baron","intermediary","seduction","birch","contour","redistribution","cam","protagonist","enmity","hulk","stockbroker","decorator","cookbook","protege","mage","cricket","smock","apex","cortex","modem","shareholder","lament","determinism","rift","tablecloth","trajectory","preface","sneer","gamma","rendition","insemination","aristocrat","hare","labyrinth","thaw","invalid","staffer","alpha","fingernail","medic","crutch","entertainer","jade","eminence","discrepancy","yawn","flea","ledger","orphanage","getaway","manifesto","hijacking","incarnation","elm","adobe","spruce","gist","grit","boar","oracle","mobilization","cantor","crypt","cutback","musical","fallacy","corduroy","fray","racetrack","buckle","foreboding","pest","clap","ber","notation","peek","sow","ballad","brat","constellation","lard","industrialist","hunk","assailant","splinter","bridegroom","dip","fixture","cadence","watchman","windmill","prerogative","drawback","bungalow","heaving","nationalization","mating","writ","rationalization","milking","modernism","landlady","calculator","animosity","workout","skirmish","glycogen","discord","portico","vestibule","renegade","overdose","iceberg","lineage","mosaic","liturgy","watershed","playing","lobe","dowel","ranger","dossier","anvil","co-operation","satchel","fa","corollary","bridle","gateway","brothel","monotony","vendor","mysticism","saucepan","accomplice","hernia","guild","pup","hoof","sparrow","dreamer","craving","outpouring","blink","overlap","duct","brownstone","maneuvering","stagger","foothold","craze","monsoon","induction","handgun","scan","constraint","citadel","rigidity","anecdote","halter","occupancy","rightist","convict","tribunal","stalk","waterway","debtor","yoke","audition","inconsistency","peg","sliver","midwife","premonition","ruby","conduit","excavation","fart","condenser","hop","poodle","upsurge","attainment","stitch","crimson","anomaly","backlog","yeast","chimp","awning","gig","parable","drumming","tiptoe","prow","bypass","crease","reformer","intestine","counterpoint","enormity","anthology","rudder","shroud","magistrate","twitch","commonwealth","circumference","stuffing","sweating","scattering","lender","dripping","legion","refrain","mummy","covenant","morbidity","prop","initial","alignment","licence","infusion","unification","rebuttal","adjective","humour","larceny","mistrust","horde","assemblage","delinquency","testament","convert","patrician","dissension","cider","infidelity","bonnet","displacement","crackle","edifice","conciliation","bondage","schizophrenia","embroidery","standoff","monotone","oddity","mobile","tornado","semicircle","panorama","ex","ping","yogurt","screech","underdog","quay","tai-pan","extract","podesta","ticking","shrubbery","backside","communicator","sorcerer","interlude","dominion","battleground","taboo","blunder","conjecture","drone","cove","maverick","secondary","companionway","rook","gauntlet","ordering","violinist","rooftop","slash","thermometer","vomit","anteroom","deity","nave","acquittal","talker","reed","concussion","malfunction","tundra","cub","anemia","constructivist","cocoon","divide","keeping","percussion","freighter","noose","narcotic","expediency","grandchild","gully","innkeeper","pigment","bloodstream","quiver","alderman","halftime","stable","fission","aggressor","denunciation","abduction","expressway","uniformity","faucet","buff","broiler","allusion","jock","spike","herald","polyester","genocide","fer","parapet","classmate","tinge","sandstone","lurch","skunk","huddle","mum","tranquilizer","pharmacy","susceptibility","penicillin","lark","hoe","lily","hanger","headset","john","appointee","advisor","twine","slumber","magnetism","schoolgirl","smash","screwdriver","newsman","sleet","cleavage","lacquer","milestone","commandant","crick","splitting","rosary","edict","hurdle","fixation","appendix","lock-mechanism","eyelid","swath","fingerprint","carbohydrate","tick","magnate","heck","sailboat","donation","malady","polishing","clipping","collective","sensuality","loom","swagger","facet","variance","mean","walkway","aptitude","prodigy","solemnity","understatement","ebb","scoop","wrapper","narration","icon","prerequisite","planter","gash","interplay","evangelist","drip","vulgarity","subdivision","backwater","euphemism","lotion","corpus","broadcaster","toothpaste","curmudgeon","fo","thong","thatch","baptism","peacock","workman","downturn","scoundrel","machete","creak","five-year-old","dissertation","dishwasher","pimp","electrician","tycoon","otter","shove","snail","rendering","nobleman","booking","pronghorn","deadpan","shutter","escalator","girdle","fling","hire","alibi","flop","stampede","prognosis","itinerary","cologne","spoonful","detour","violet","watcher","falsehood","hype","locale","estimation","propeller","squaw","pickle","lass","pun","racist","scratching","rout","downpour","casing","complacency","camper","equator","reticence","learner","outcast","brunette","improvisation","stag","maxim","loophole","livery","blasphemy","shoot","solvent","misdemeanor","buyout","tiller","jetliner","checkbook","awakening","sideboard","romanticism","squire","newsstand","nuance","consulate","excrement","reprisal","bastion","beginner","obituary","softball","conjunction","scripture","phalanx","vindication","grub","swig","inaction","redwood","scabbard","bonfire","casserole","ovulation","unreality","totem","palette","choreographer","peasantry","skyscraper","penitentiary","outfield","melon","bounce","yolk","diver","archbishop","plurality","amber","recurrence","adulation","piston","insurgency","stoan","coop","tart","eyeball","toss","giveaway","cross-examination","dissident","hermit","ruse","ture","pore","leaving","dowry","gunner","epitome","snowstorm","summation","switchblade","crock","ity","frock","luster","piazza","rotor","impropriety","pivot","blender","immediacy","borrower","slaying","feminist","preserve","bidder","depiction","parasol","clover","intern","asteroid","stub","barricade","medley","multiplier","smirk","knapsack","hank","cognac","headway","treatise","homestead","troublemaker","giraffe","mover","allotment","drowning","naturalist","orderly","attribute","scalpel","shipyard","estrogen","educator","enrichment","grandstand","sire","perversion","sideline","landowner","confidant","gel","deviation","clemency","liberal","bigotry","filly","six-year-old","lifeguard","shred","adversity","shelling","pineapple","referee","knockout","jigsaw","retailer","extremity","outgrowth","amplifier","sinner","campground","teasing","steamboat","turban","mutton","cobra","contraption","chopping","schoolhouse","varnish","pane","observatory","ballerina","czar","immensity","lethargy","reimbursement","undershirt","concierge","fracture","variability","accordion","slime","meanness","gelding","practicality","advertiser","graft","gull","stockholder","pilgrim","hooker","puritan","benediction","barbershop","stanza","hallmark","mishap","harpy","silage","enchantment","whirlpool","conditioner","gadget","divestiture","lathe","incarceration","amalgam","antibiotic","annexation","martyrdom","pyre","shank","alert","shale","artifact","interchange","mystic","meet","grinding","triple","boutique","antagonist","fermentation","twinkle","sweetie","shin","creditor","amulet","pall","posse","homeowner","skier","vastness","smith","allegory","oxidation","cracker","levy","ark","sporophyte","enthusiast","snob","spinster","searchlight","waistband","lorry","repeat","reprieve","slalom","respirator","visor","reviewer","putt","miscalculation","shortfall","concourse","dialectic","native","hairdresser","normality","immorality","sprinkling","allure","lick","drudgery","habitation","gondola","vista","ice-cream","cheerleader","predator","countdown","juxtaposition","stumbling","muffler","derby","timer","salvage","boast","cabbie","clam","windbreaker","retardation","antelope","shampoo","raccoon","bible","glider","momma","valise","coffeepot","emissary","compression","grail","guideline","lavatory","glaze","outpatient","thunderstorm","foray","co-op","valet","baker","sycamore","thumbnail","nozzle","timidity","orator","liquidation","spokeswoman","militant","jig","naivete","motorist","dumping","armpit","margarine","exultation","headboard","plume","amplitude","flutter","pronouncement","finery","trepidation","airing","coupon","knuckle","gametophyte","deathbed","extermination","alleyway","hybrid","gambit","nova","binge","original","froth","lighthouse","coolant","continuance","collaborator","fuselage","profanity","whirl","saber","filmmaker","checkup","shaman","rancor","retort","earring","sieve","post-mortem","implantation","conceit","simplification","vat","proficiency","deluge","kiosk","outlay","tantrum","flooring","veterinarian","fireball","carousel","bandanna","glacier","censure","citation","oar","fridge","metamorphosis","superior","approximation","girth","tirade","grocer","holdup","forward","snobbery","cleansing","replay","recitation","facsimile","patter","jubilation","snare","frailty","rampage","pick-up","overture","tumble","residency","prevalence","repository","reentry","battleship","mutation","hammock","importation","thug","semiconductor","ballast","spurt","extreme","artichoke","convergence","circular","rigor","realignment","physique","handbook","bugle","precipice","sauna","whorehouse","skater","furcot","volatility","valuation","barbarian","peddler","layoff","overall","deliverance","chromosome","innuendo","lexicon","empress","polarization","dictum","fitting","impediment","piracy","crocodile","cucumber","keel","sitcom","hypocrite","roaring","encroachment","steamship","resin","fairway","eyewitness","broadside","washroom","sighting","mantra","swan","supposition","governess","upswing","rep","solicitude","rustling","invocation","heather","rectory","orchid","brocade","raiser","invective","fragility","acronym","ostrich","col","absolutism","vicar","psychotherapy","navigator","cartoonist","doe","landfill","invader","werowance","ble","flatness","locality","druid","visitation","headlight","rapist","benefactor","colonization","excerpt","nick","kangaroo","pink","buy","cascade","campsite","slander","headdress","topcoat","causality","karma","trestle","atheist","checkpoint","renunciation","eater","payload","pointer","theologian","beet","undertaker","lineman","hart","gourd","doubling","shuffle","cabaret","periscope","bodice","shootout","grandma","wildcat","proton","dioxin","sorcery","torchlight","stopover","executioner","collage","mesquite","reincarnation","kidnaping","programmer","disloyalty","muslin","throb","mint","aquarium","tel","eccentricity","purification","kerchief","warranty","rigging","breeder","nite","conservatory","fastball","magnification","spa","favour","regeneration","incision","saxophone","detriment","scam","android","coloration","bunny","restitution","rake","serf","despotism","pollen","sidewinder","upstart","revisionist","birthright","multiple","lifeline","queue","follow-up","swipe","boardinghouse","armament","travesty","stirrup","caper","chloride","crepe","primer","clich","inflection","skid","repudiation","serve","spire","peep","inducement","clothesline","fabrication","morsel","spleen","coon","bustle","crossword","back-up","assessor","biopsy","sidecar","hassle","shingle","tint","fixing","collarbone","taint","pusher","gestation","mantelpiece","vaulting","ra","peat","indignity","adequacy","genus","scrape","scaffolding","serial","neurologist","duffel","cipher","rote","horseshoe","bulldog","electrode","joker","juror","fibre","misconception","rut","connoisseur","flowering","op","flirtation","highlander","wisp","sounding","bugger","pharmacist","doughnut","toaster","pinnacle","slob","promenade","amphitheater","singsong","beau","whimper","importer","locket","watermelon","marking","beta","co-author","crossbow","atrocity","desktop","inhibition","draught","rowboat","volleyball","snowfall","extravaganza","teddy","miscarriage","storefront","toxicity","abode","hearty","handyman","centurion","phrasing","anachronism","newspaperman","annex","walker","till","volition","tributary","close-up","nook","cleric","ferment","proverb","inlet","heretic","waistcoat","duet","sniff","crewman","campaigner","wearing","grizzly","p","optimist","placard","overflow","pedigree","clang","brig","cinder","bunting","wag","dishonor","denominator","gong","siding","trilogy","deli","fluoride","questioner","squat","competency","partisan","putter","entree","cynic","tombstone","scoreboard","biscuit","souffle","homecoming","overseer","hideout","brewery","emancipation","interface","premier","auditor","troll","conscription","stout","trucker","beetle","dealing","bookkeeper","build-up","yardstick","da","polity","wick","wrinkle","private","outflow","borderline","outfielder","visage","leper","chiffon","arbor","weave","barnyard","checklist","granny","insensitivity","ex-husband","barometer","rupture","infirmary","desertion","wonderment","encyclopedia","slaughterhouse","nostril","ineptitude","implant","infatuation","laundromat","warship","rub","benchmark","polygraph","dinghy","behind","tween","filibuster","wearer","crayon","sensor","hustler","sinew","progeny","dig","pediatrician","foursome","buckskin","cornfield","safeguard","divergence","ting","coupling","dislocation","the","immersion","purchaser","cleft","overhang","booty","scuffle","rattlesnake","teacup","retinue","hallucination","potion","yeshiva","tapping","rip","multiplication","canister","gallantry","morn","thermostat","grind","aviator","ecosystem","pariah","recruit","vestige","ro","phosphate","abomination","laurel","sweatshirt","vaccination","psychoanalyst","blind","psychosis","sidekick","shopkeeper","theorist","delicatessen","sheepskin","billionaire","receptacle","salami","paddock","glen","beech","leer","mime","ty","perfectionist","seedling","wil","bind","intolerance","dint","plural","rouge","skylight","mammy","drab","microcosm","sole","organist","court-martial","matinee","bulwark","must","expatriate","stethoscope","daydream","backer","godfather","breech","artifice","auxiliary","adventurer","atrium","counterman","idiocy","grotesque","dishonesty","runaway","digit","baseline","reflector","preamble","sellout","falcon","scribe","retainer","louse","grapevine","sojourn","lash","marquee","schoolmaster","squeak","squeal","shooter","townhouse","nationalist","billiard","backfield","auctioneer","aria","avant-garde","hostler","smattering","giving","coaster","arraignment","duo","malignancy","throwback","doc","turnabout","seeker","deletion","vernacular","bulldozer","tedium","hustle","raspberry","estrangement","mutilation","styling","incinerator","wrong","shortcut","mastectomy","infringement","bonding","timbre","cameo","workroom","grassland","spraying","cooperative","tarpaulin","determinant","thyme","innocent","clique","racer","leakage","conflagration","jingle","duplicity","diaper","conqueror","committeeman","robin","reprimand","marina","cross-section","flagship","denouement","recluse","homemaker","moron","rind","gent","magnificence","dispatcher","detonation","harbour","toddler","rotunda","sedition","fell","dolly","laureate","woodsman","syndication","clot","guitarist","blemish","password","overview","eggplant","incantation","drapery","incapacity","florist","hive","civility","mod","screenwriter","intoxication","barman","ern","furrow","cant","clapboard","tumbler","walkie-talkie","pajama","vortex","defenseman","hostel","subjugation","interception","armory","fanaticism","sibling","inhalation","undercurrent","husk","mead","maw","padlock","abnormality","penguin","undersecretary","damnation","independent","airlift","peel","schoolroom","rascal","fingertip","cartilage","dichotomy","blank","lingo","clasp","racquet","acknowledgement","rebuff","bier","aerosol","taping","checkout","arse","thoroughfare","pelt","copse","keg","fissure","tern","mirage","blockbuster","balm","arbiter","shutout","schism","fluff","circumcision","insertion","pseudonym","heathen","eulogy","snowball","penthouse","kinsman","gebling","regulator","proponent","yearbook","barbarism","mutt","reopening","paunch","governorship","differential","airship","subscriber","alloy","adjunct","impairment","incongruity","pheasant","grownup","predicate","loo","sleigh","seer","flitter","sunburn","plebiscite","stockade","pout","sledge","stipulation","lordship","bayonet","wretch","vulture","postman","breaker","newsroom","consort","grinder","ballpoint","tequila","unpleasantness","wrapping","squall","adage","monograph","privation","streetlight","hilarity","sacrament","diminution","mannequin","duplication","banishment","rasp","biochemist","goatee","cranberry","sultan","blip","disservice","idealist","middleman","shaping","apocalypse","strut","oligarchy","moor","zombie","certitude","javelin","azure","turnpike","forger","commode","bleach","sideshow","banister","closeup","dysentery","steeple","offence","commandment","furlough","best-seller","filament","mountaintop","censor","snowmobile","kaleidoscope","elf","imp","slipper","lunacy","telecast","nanny","kernel","eventuality","subordination","sonnet","nitrate","foal","prank","expropriation","fedora","zigzag","resale","namesake","highlight","supplication","concurrence","medallion","jailer","loin","tread","quill","cardigan","prune","slur","surtax","internist","strait","smuggler","panacea","turd","wanderer","crude","darlin","epitaph","docking","seashore","cheeseburger","netting","provider","dispenser","intonation","marching","caress","hootch","morass","chum","sanctum","headband","powerhouse","axiom","terrier","springboard","tot","latrine","toad","clink","herbicide","figger","hick","manger","poppy","chaise","archetype","undoing","beehive","illustrator","withholding","sterility","paddy","coven","custodian","half-life","embezzlement","armoire","kickoff","possessor","rectum","sit","daisy","housecoat","pollster","policewoman","ointment","expressionist","stockpile","bombshell","impresario","co-pilot","chessboard","dazzle","scepter","archdiocese","linguist","odyssey","capitol","accession","lute","liter","multimillionaire","decoy","warp","conveyor","grandpa","ance","mumble","betterment","bullfighter","chador","ampule","indiscretion","shake-up","clarinet","catapult","normalcy","shanty","dinosaur","epithet","tang","scaffold","immunization","repairman","suntan","mu","environmentalist","nightcap","tempest","artisan","orbiter","spiel","needlepoint","geologist","humanist","stutter","perplexity","roundup","concoction","treadmill","cacophony","antipathy","blackberry","bloodbath","brassiere","allergy","hitchhiker","grunting","choke","sitter","elixir","ba","repatriation","whack","decanter","crusader","burlap","incursion","lyric","compilation","seaport","coachman","philanthropy","secretion","collie","inquest","taper","moral","quartermaster","jeweler","salutation","confluence","gullet","tram","hideaway","by-product","drybone","copulation","divorcee","mausoleum","peeling","annuity","set-up","skiff","neurosis","windpipe","buoy","glide","archaeologist","pendant","junkyard","bullhorn","porthole","quandary","irrationality","acidity","pragmatist","derivation","stylist","duplicate","panther","brigadier","introspection","depravity","keynote","vexation","psi","weighing","deserter","speculator","teak","armful","remission","precursor","sorghum","harmonica","olive","gangway","contraband","defector","purgatory","genie","expedient","crowbar","desecration","bathhouse","enhancement","tenet","seasoning","wrangling","downhill","venue","tracery","dictation","bailout","undertone","pecker","prep","forerunner","bandstand","letdown","luminosity","tonnage","catwalk","brunch","sapphire","ballplayer","wineglass","readout","genealogy","horsepower","messiah","blackjack","hemorrhage","damask","registry","gunwale","jerkin","humorist","bowler","tingle","engraving","chauvinist","spirituality","eyepiece","twang","constancy","blot","blob","chard","highschool","sportswriter","tiara","domino","contestant","migraine","newscast","mainstay","hammering","tracker","wager","offshoot","buster","informality","python","felon","imperfection","slag","convulsion","sedative","cellblock","punt","headwaiter","outhouse","monstrosity","nonwhite","override","raisin","inversion","pancake","flavour","cataract","reclamation","churchyard","pidgin","suction","chanting","aggravation","dynamo","pee","fistful","hogan","byproduct","brooch","lullaby","workday","slop","silencer","dealership","earner","anchorman","pittance","crumb","custard","rainstorm","tote","mulch","mason","earl","barroom","levee","discouragement","falsity","compressor","lodging","gynecologist","divination","calico","bibliography","cyclone","senor","gatehouse","lagoon","squirt","artwork","songwriter","derivative","supernova","divan","photon","surety","cobbler","fatality","gout","eleven-year-old","ent","cropping","mainspring","prism","confederation","weaver","neighbour","yuppie","muffin","juniper","ovum","lesbian","pi","shimmer","fax","increment","co-ordination","splashing","thanksgiving","exaltation","confiscation","fairy-tale","fudge","brief","priestess","re-creation","hydrocarbon","ford","usurper","maelstrom","spaceport","swordsman","vegetarian","newness","grad","potter","manservant","fullback","fiend","giver","subculture","debutante","striving","scorer","catechism","charger","armada","blond","paign","handball","wince","appetizer","guidebook","jog","millet","hoot","inferno","pardner","mash","mousse","mammography","launcher","battering","predilection","portent","beep","exhortation","notification","warm-up","diatribe","panda","menstruation","telex","revitalization","workingman","cordon","charmer","fumble","hamper","moralist","settler","chowder","ley","mannerism","drunkard","posting","turquoise","elasticity","abbot","bookie","tusk","paragon","precondition","rollback","lunge","conundrum","eviction","sealer","cellist","cosmology","turntable","outside","fortification","nightstand","spook","shoemaker","sac","sulfate","isle","antigen","steed","bacterium","utopia","stunner","hillock","clove","irritant","tat","memento","rung","gaffe","portraiture","solicitor","rodent","barter","intensification","gallbladder","condom","antiquarian","peck","cheering","meteor","inflow","stenographer","blinking","icing","jackass","dweller","fiesta","irrelevance","harpoon","appendage","stipend","mommy","cassock","microfilm","dead-end","vermouth","scarecrow","fielder","referral","mart","burger","ticker","hindrance","coverlet","speedboat","wafer","sluice","bellboy","hangout","figurehead","midterm","petticoat","matador","skein","beholder","flier","waiver","flotilla","smudge","inequity","mixer","sulfide","banality","roach","billy","tailgate","gaggle","softening","loincloth","gore","bib","chrissake","changer","muse","longitude","tourney","mil","aorta","poop","regression","soviet","placing","winch","apostle","constant","squabble","blimp","abdication","porpoise","puncture","workbench","parameter","conventionalist","flagpole","unfairness","reptile","typist","bookshop","hesitancy","strongman","headland","sprint","manhole","blowing","archipelago","ideologue","slouch","poke","gush","stratum","mulatto","echelon","postmaster","sheik","emigre","alto","affectation","rad","climber","deerskin","bower","idolatry","reciprocity","sweet","wasp","dissection","baby-sitter","purple","toothpick","lyre","archer","sprawl","councilor","contrivance","flake","kynd","suffocation","damp","ware","travail","candelabra","wrestler","patina","moaning","paisley","recruiter","moderator","respondent","marmalade","bellow","harpsichord","atrophy","ejector","jetty","stripper","monorail","dramatist","hysterectomy","riverbed","revaluation","stoppage","conspirator","fetish","sunflower","cognition","scrim","rec","retriever","aphrodisiac","redneck","palsy","pullover","flywheel","roundness","peculiarity","ernment","nectar","ruck","swimsuit","curd","underclass","polka","conservationist","mire","drumbeat","cinch","cordiality","deacon","speechwriter","purr","gelatin","muddle","booby","solid","cloakroom","stopwatch","sportsman","burlesque","overload","mademoiselle","divider","bailiff","handout","ordination","stiff","languor","paperweight","opiate","snap","causation","mower","perversity","snatch","touchstone","self-indulgence","shrub","interceptor","mammoth","proceeding","cheekbone","spoke","repellent","cardiologist","reminiscence","sprinter","evocation","postscript","enlistment","blotter","troika","dacha","cabdriver","fund-raiser","switching","para","tendon","fireside","effigy","leech","veneration","reek","schoolyard","pellet","shellac","weasel","jab","carcinogen","restroom","cauliflower","levity","caftan","topside","fruitcake","bickering","drawing-room","dovetail","culvert","chateau","bugging","tinker","hobo","corset","automaker","actualization","oration","handhold","nutmeg","tentacle","quicksand","handler","panoply","bowhead","testimonial","mammal","bellhop","devotee","technicality","trainee","mongrel","newscaster","aggregation","footpath","fawn","accreditation","heave","jib","rationalist","vendetta","midpoint","buckboard","screwball","hatchway","disinfectant","cramp","causeway","tease","corkscrew","sledgehammer","sloth","materialist","mogul","stopper","bevel","carbonate","berry","snore","throwaway","agribusiness","rerun","guillotine","nip","computation","keyhole","storybook","watercolor","cer","porcupine","urging","cockroach","esse","headman","settee","usher","short","obstetrician","faggot","ballpark","palisade","whimsy","co-owner","spout","nub","pectin","dun","cypress","trombone","scat","lite","dame","quip","invisibility","baboon","sneeze","swish","originator","biennial","newsreel","chameleon","dressmaker","storehouse","trapping","statistician","bloke","helmsman","ewe","drape","trump","great-grandmother","cloister","caterer","grounding","hotbed","life-span","urinal","funk","bedchamber","boudoir","theoretician","oddball","nameplate","raven","ditty","canary","anticommunist","reconsideration","playboy","skate","transparency","uplift","six-pack","rambling","commendation","wimp","pestilence","sufferer","kelp","counterforce","self-doubt","deformity","croak","marine","marksman","directorate","reversion","stimulant","dence","beloved","eraser","slurry","tracing","bigot","compendium","entitlement","monolith","misrepresentation","darkroom","nutshell","torque","concubine","peephole","lesion","bogey","spindle","birdie","nugget","tenon","supercomputer","weakling","provenance","vowel","empiricist","filet","co-founder","prelate","onlooker","tricycle","sax","catheter","accessory","fresco","prod","oscillator","self-image","refraction","excretion","prance","insurer","cask","impersonation","rangeland","toothache","magnum","accuser","rubbing","carver","carnation","masquerade","pervert","trapdoor","shaker","mittee","tux","poignancy","payday","captor","couplet","mutant","jogger","raider","dilution","sickle","prowl","blister","reassessment","infirmity","matchmaker","workload","restaurateur","tuning","wiretap","perpetrator","davenport","lamppost","inductivist","affect","sterilization","booming","rucksack","repurchase","starship","bystander","taker","spaniel","teletype","cuckoo","sneaker","aspen","soundtrack","sacrilege","surname","succor","co-chairman","anticlimax","hopper","jumpsuit","rinse","rummy","cigaret","washcloth","butchery","almond","cooker","implement","effluent","cheat","threshing","silicone","draining","vector","shopper","dandelion","pecking","brazier","cobblestone","slugger","sacrificer","airlock","lunchroom","zebra","ejection","cutthroat","wizardry","crony","kennel","internship","cohabitation","omelet","wheelhouse","redundancy","schema","psychopath","buttock","grasshopper","playmate","lamentation","socialite","cornucopia","lichen","coterie","warlord","discomfiture","frieze","montage","traveller","curvature","condensation","vineyard","scraper","generality","archive","half-sister","gangplank","intimation","doublet","pleading","tome","quadrangle","connotation","lifeboat","blueberry","coinage","prospector","bash","disciplinarian","dualism","bookshelf","adjutant","clod","apportionment","footbridge","tourniquet","spore","slicker","jetport","magenta","schizophrenic","oilman","harbinger","trespass","merry-go-round","sabra","old-timer","vigilante","melanoma","torpor","gliding","refutation","dab","jurist","plumage","kitty","cauldron","abbey","jasmine","lefty","cabal","detonator","retiree","abatement","clamp","roost","councilman","halfback","centimeter","shirttail","whispering","stratagem","exponent","cheesecake","truism","jaunt","node","ironclad","undertow","self-portrait","urchin","idealization","splendour","antechamber","living-room","sampler","friar","irregularity","lateness","playback","binder","washbasin","tummy","capitulation","felicity","canter","birthrate","earthenware","kitchenette","foundry","ladle","babushka","chlorophyll","adjournment","villager","recrimination","hotshot","blaster","pruning","soloist","hummingbird","recuperation","bequest","hemlock","cottonwood","drawbridge","alternation","malt","interconnection","mugger","tuft","keystone","riverboat","thrall","ayatollah","highland","mistrial","bunkhouse","anesthesiologist","dredging","anode","salsa","prizefighter","neckline","chile","foreclosure","cola","digression","scythe","lout","chamberlain","minefield","sabbatical","appraiser","isotope","demarcation","garnet","buzzard","repulsion","lowland","snifter","bending","weekly","dispensation","botanist","sari","stabbing","ovary","skullcap","journeyman","thievery","look-alike","parson","heartbreak","distillate","neophyte","blower","storekeeper","firmament","taxicab","corona","fusillade","publicist","resume","breather","casement","smokestack","interrogator","outcropping","mecca","dilettante","shoestring","belch","behemoth","negligee","heath","smut","negative","fistfight","regent","incumbency","curragh","toga","ministration","turnip","beamer","stepladder","loon","businesswoman","jumbo","whining","spoor","posturing","parlour","concertina","alkali","rampart","chime","warmup","taffeta","hyena","firehouse","sweetener","guessing","pronoun","madhouse","lioness","breadwinner","diocese","escarpment","mimic","retina","larder","gnat","hothouse","ponytail","markup","bevy","revocation","depressive","garner","redefinition","lifter","stateroom","nutritionist","isolationist","surveyor","polemic","ornamentation","gouge","counterweight","thrower","illegality","joining","lumberyard","wholesaler","obeisance","stagecoach","substage","lockup","nudge","rejoinder","compost","carburetor","peacemaker","prologue","swinger","right-of-way","precipitate","sprinkler","crone","valentine","vassal","tabloid","minstrel","nursemaid","attribution","courtier","docket","spool","convocation","serviceman","letterhead","zealot","negro","cackle","masthead","dispersion","underwriting","armload","noodle","squawk","periodical","reformation","boa","starlet","about-face","ejaculation","encore","harangue","woodpile","earlobe","reaffirmation","handlebar","compunction","contemporary","midriff","nimbus","householder","postgraduate","quirk","innovator","sneak","straitjacket","pussycat","belle","kidnapper","spacing","laying","standout","estuary","duster","jackpot","motorboat","welterweight","kicker","expectant","revue","senior","epistemology","yeoman","firearm","granddaddy","projectile","stammer","crossfire","toxin","hookup","phantom","transgression","flagstone","acuity","twick","acolyte","directorship","corpsman","worktable","mammogram","wart","liqueur","unbutton","receivership","duchess","delinquent","picker","earphone","blare","promontory","formalism","infamy","operative","hock","crusher","megaphone","retrenchment","chaser","dementia","wane","triviality","quadrant","curate","pairing","forging","dermatologist","mango","bon","moccasin","hayloft","marionette","seedship","ooze","interloper","twill","solicitation","trowel","professorship","scrimmage","scrawl","blockage","parkway","motorman","snapper","transcription","vasectomy","binary","flagon","choirboy","butte","throbbing","bound","thunderbolt","dike","cowbell","elect","prodding","lynching","rant","drifter","snot","preservative","brogue","tary","tortoise","lattice","strudel","composite","churn","median","neurosurgeon","mariner","kiln","boarder","ama","petal","friendly","clearinghouse","swastika","filler","enquiry","dispensary","chump","archeologist","rescuer","dy","draftsman","snicker","shakedown","romp","construct","conclave","winery","polarity","breakin","wailing","gurgle","bedroll","commissar","albatross","shading","peal","taverna","chicanery","has-been","waistline","oaf","satirist","faint","myosin","dimple","landfall","fornication","smithy","tough","gunboat","busboy","cassava","poplar","discontinuity","obelisk","blubber","demonstrator","meltdown","abolitionist","thorax","holler","pimple","sending","druggist","indirection","leotard","ken","showman","despot","ombudsman","lyricist","dearie","lumberjack","gaff","pagan","cremation","infarction","sturgeon","publican","bottleneck","chambermaid","pectoral","purser","godsend","whisk","canard","concentrate","copter","shipwreck","laundering","clipper","notepad","jackal","indentation","basilica","adhesive","mermaid","knighthood","personage","omelette","whoosh","embellishment","misgiving","tracer","brawling","crucifixion","steal","transference","sleight","threesome","windowpane","bereavement","viceroy","betrothal","refresher","seagull","jay","needler","discoverer","goiter","caterpillar","impostor","diminutive","cation","playpen","amputation","confidante","dockside","inquisition","chronicler","seamstress","lath","absolutist","cadaver","perusal","subterfuge","self-satisfaction","sawmill","agitator","shortcoming","breakwater","microcomputer","lima","greatcoat","mahout","prima","undress","superstructure","stopgap","moo","bio","fret","pomposity","bough","autocracy","anchorage","samovar","gen","burrow","rosebud","segregationist","mortise","hydrant","postmortem","oversimplification","entryway","paintbrush","rea","balustrade","chuck","trumpeter","ferret","opportunist","pinnace","salamander","transom","mace","individualist","synthesizer","thoroughbred","cupola","tomboy","ensign","bottling","whir","poultice","entranceway","saver","gurdwara","renegotiation","tossing","ruffle","footprint","skeptic","birthmark","tailspin","kickback","chalice","plagiarism","passer","inhumanity","ceremonial","sapling","babysitter","creeper","galleon","bellman","holly","hacienda","cur","transplantation","scab","ballgame","demotion","flimsy","hovel","lug","layup","firefighter","gravestone","nymph","cajole","tickle","boxcar","secession","refractor","somersault","personification","treacle","tutorial","voucher","thimble","stickler","front-runner","paroxysm","exorcism","psalm","infestation","scrubbing","castor","peppermint","orchestration","extremist","oppressor","lode","prompting","watchword","swindle","statehouse","floater","nightdress","bloak","elegy","woodshed","trembling","banning","adornment","redoubt","lightweight","postulate","anti-Semite","tasting","viewscreen","sentinel","nation-state","heft","nurture","villainy","manhunt","invoice","sprig","self-denial","selector","piglet","commemoration","crucible","piper","curtsy","lackey","breastplate","gadfly","octave","epilogue","self-examination","thyroid","apologist","chemise","super","figment","waif","essayist","brewer","miniature","sediment","cannibal","tulip","caramel","caseload","synonym","analogue","ver","shirtwaist","cornerback","insecticide","debauchery","lien","strangulation","intricacy","guesthouse","crumbling","glassware","cachet","thumping","damper","colonist","frolic","ogre","heist","sorting","pawl","muttering","refill","cowl","imbecile","painkiller","garter","creole","overpass","simile","potpourri","piling","predisposition","corsage","mobster","sandal","aphorism","vice-chairman","heartache","converter","pecan","ecologist","substrate","quagmire","trenchcoat","voyce","overstatement","soapbox","rediscovery","effusion","agronomist","firecracker","haunt","murmuring","henhouse","fluctuation","signora","mulberry","hoist","bullfight","discotheque","finder","tureen","hairstyle","dignitary","consummation","spar","pogrom","beeper","read","outboard","sho","skit","impurity","sadist","parafoil","bouncer","spender","locust","boardroom","burnout","inoculation","surfeit","welder","propagandist","mortuary","pessimist","equivalence","juke","spatter","incubator","reproof","gulch","notary","speedometer","lodger","mitt","southpaw","footman","amity","bloodline","cleaver","coffeehouse","confederate","assist","ation","lecher","abrasion","daybed","knit","laddie","forfeit","kebele","filigree","frisbee","cantina","oscillation","countryman","juggler","scion","acrobat","hourglass","realtor","onyx","pettiness","chancellery","footfall","slippage","mandarin","eral","lob","impertinence","providence","dom","idyll","democrat","deferral","sorority","slamming","badger","mutter","ling","strobe","explosive","municipality","crossover","bedstead","spatula","tug-of-war","goon","pauper","lation","sacking","alder","nightstick","salve","infraction","prowler","falsification","pant","drunk","rumbling","ce","minuet","plaything","yelling","kiddie","duction","buttress","carapace","sobbing","insufficiency","prig","bidet","bloodhound","madwoman","buffoon","vignette","doorjamb","caprice","gable","converse","cad","creche","mullah","spectre","spotter","ingenue","chalet","automatic","stash","truckload","tailback","static","productivist","dissipation","haunch","nag","awl","self-delusion","rattler","blacklist","beagle","trapeze","obstinacy","fiddler","theorem","rearrangement","changeover","reassignment","courtesan","fillet","nay","cutout","luncheonette","purveyor","incitement","remarriage","amelioration","executor","buttonhole","duality","churchman","sickroom","farmstead","jester","perfidy","cuticle","weal","snub","pretension","roadbed","furnishing","quickie","workweek","conveyance","pseudopatient","turbocharger","fleece","abbreviation","spigot","leaflet","great-aunt","ninny","beaker","experimenter","validation","inhabitant","grading","cantaloupe","potentiality","flue","commoner","playroom","readjustment","boathouse","vivacity","brakeman","petitioner","singularity","gage","delineation","fester","paratrooper","font","pitchfork","signifier","crossbar","playhouse","tripe","stylus","pacemaker","clustering","hone","runt","emporium","ragtag","aneurysm","trapper","pulley","thrashing","candlestick","checkerboard","swoop","surcoat","dystrophy","bristle","beck","toolbox","hunchback","subcompact","doze","seaway","disclaimer","arbitrator","miller","crackpot","loafer","instigation","sen","bale","skim","skip","dollop","tender","oeuvre","goner","sor","tort","cropland","profundity","caf","zoom","gabardine","quack","cataclysm","condolence","foxhole","circlet","brave","misfit","bivouac","artificiality","dachshund","puke","bagel","sortie","nomad","opal","ethnicity","firebox","ratchet","cud","worsted","squabbling","cheque","jean","avatar","dirge","footstool","velour","barrister","pression","microchip","coda","reappraisal","cess","hangman","centenary","plough","broomstick","headstone","tormentor","sore","rathorn","voyeur","world-view","co-star","warren","fail","deflation","noble","fleck","saleswoman","hap","machinist","waffle","tom","ell","prefab","suckling","guardhouse","sabre","entanglement","integrator","quarterly","paraffin","heifer","frivolity","good","bougainvillea","excommunication","distillation","cyclist","meteorologist","rubric","cul-de-sac","misnomer","phobia","demagogue","bloodletting","raconteur","ger","astrologer","zygote","counterrevolution","reinstatement","anchovy","getup","tryout","scullery","turnstile","cyst","mustang","gaslight","self-deception","emanation","grown-up","escapade","versity","fishery","paprika","grailstone","gurney","fount","holdout","licensee","jackknife","asterisk","still","fundamentalist","humbug","repast","christening","butternut","miniskirt","fortune-teller","spillway","ference","salver","payout","nodule","high","tugboat","gizzard","sympathizer","fibrillation","incompatibility","dodge","trove","mercenary","pigtail","matchbook","masterwork","barb","endeavour","confection","ephor","yarmulke","char","mimeograph","holdover","subtitle","saddlebag","metronome","tine","testicle","caveat","etching","auntie","guarantor","ringer","airman","boatman","carnivore","armband","polder","tryst","lem","sitting-room","barrow","reappearance","pastiche","bankroll","stroller","saxophonist","blanc","redesign","plotting","gruel","juicer","slat","scooter","socialist","gradient","ember","scorecard","remembering","bo","forecaster","flirt","backache","parakeet","pixie","guffaw","anesthetist","logjam","pursuer","physiologist","follicle","coverall","patsy","bunt","lubricant","jawbone","numeral","mourner","rune","bettor","solder","nitrite","rime","pinstripe","pistachio","monocle","equivocation","crystallization","twit","two-year-old","toupee","eyelash","recognizance","cy","sophistry","seesaw","loony","do-gooder","dusting","commonality","yearling","disbarment","self-congratulation","tsar","vagabond","rhinestone","viper","planetoid","crochet","laird","flatland","prompt","catamaran","wigwam","mainframe","shivering","stringer","vane","iniquity","hoodlum","tableware","smelter","overlay","umber","placenta","yew","right-hander","laggard","cornice","philanthropist","scouring","dissenter","mainsail","showplace","conch","sentimentalist","protectorate","sanitarium","truancy","angler","showpiece","carotene","pollutant","diabetic","hairbrush","videodisc","intellectualist","pothole","setter","tense","grader","kneecap","birdbath","dell","typhoid","tuba","torturer","commie","houseboat","revelry","medalist","hinterland","jowl","splotch","sable","mouf","ripoff","coolie","streetlamp","damn","sharecropper","oral","schoolmate","commander-in-chief","capitalization","flex","shtetl","chenille","pullback","pharaoh","claret","fulfilment","glower","remuneration","internationalist","pap","pediment","sonata","toke","co-director","dollhouse","salesgirl","greenback","analog","ofa","freelancer","hairpin","aphasia","kicking","bummer","lawmaker","thickening","juggernaut","comma","sander","claimant","triad","rhizome","prolongation","placer","transvestite","faceplate","shortening","coffle","surfer","greengrocer","roughage","nudist","dumbbell","coiffure","pinky","ex-President","start-up","bobby","sidearm","paean","raiment","conceptualization","surmise","agnostic","cranny","tassel","infarct","pitchman","minor","stationmaster","sublet","puter","dramatization","mounting","washstand","counsellor","penknife","curtailment","remake","millimeter","sextant","vocalist","blowup","walleye","pickax","fanny","ascendant","brushing","highball","bandleader","winning","godmother","horoscope","disequilibrium","run-up","grazer","sandbar","motorbike","hassock","piggy","teat","reprise","wheeling","psychotherapist","calabash","cob","relativist","packer","slayer","digger","banshee","autocrat","knave","muskrat","extinguisher","foreleg","sobriquet","hospice","accretion","mastermind","figurine","newsmagazine","epidemiologist","pic","minaret","dereliction","city-state","jawline","escapist","legation","weatherman","sinker","cabby","guardrail","objector","timepiece","cistern","werewolf","decadent","harlot","epiphany","bricklayer","doorkeeper","obsidian","bedpost","constriction","refectory","blackbird","enforcer","riposte","schmuck","squab","pop-up","handrail","sandbag","superman","underbelly","alarmist","sesame","paratroop","droplet","proclivity","theorizing","quark","tactician","sundae","poolhall","behaviorist","dipper","postmark","co-conspirator","carload","electrocution","mould","goodnight","appendectomy","statuette","coefficient","cornet","scolding","prude","platitude","carport","lilac","geisha","foist","mitigation","percussionist","lechery","wyrm","charlatan","tussle","slough","jamb","twister","lakeshore","scavenger","pinkie","changeling","pinhead","muster","exploring","fief","critter","haystack","skimmer","geyser","stumble","update","tabernacle","gargoyle","projectionist","requisite","suffix","ramrod","betrayer","perience","tance","fluting","flare-up","fatherland","guardianship","douche","good-night","trawler","headsman","stoplight","operetta","spend","hater","teakettle","geneticist","particular","wardroom","slider","deuce","gingham","telethon","acclamation","centrifuge","workstation","pretender","prong","lampshade","ureter","hiccup","acetate","molding","wallop","vagrant","three-star","carafe","blowout","equinox","rave","junior","spoof","confessor","troubleshooter","braggart","judgeship","rapier","landmass","stoic","cuckold","inheritor","forester","jangle","gymnast","wingman","stein","gnome","drumstick","whatnot","yachtsman","realty","glob","by-election","academic","deflection","knocker","wondering","mugging","petit","frosting","pillowcase","panelling","grendel","tribune","tabulation","simulator","whaler","stork","gill","cavalcade","workhorse","locksmith","preppie","henchman","countertop","groundcar","puree","wellspring","debasement","prankster","tration","insert","put-down","typer","chartreuse","crematorium","headpiece","noncom","wipe","drove","sportscaster","impersonator","shrew","twitching","loader","magnolia","dropping","functionary","dissonance","cudgel","forfeiture","glutton","reject","doubleheader","tarp","suburbanite","afghan","chaperone","bas-relief","oscilloscope","imposter","newel","trusteeship","shocker","cannonball","half-breed","woodpecker","tumbleweed","snip","consignment","left-hander","spoil","also-ran","exhalation","signification","tester","ashram","gardenia","deductible","frontline","subtraction","bowstring","upland","bearskin","gramophone","mock-up","serenade","mix-up","extrapolation","tidbit","semaphore","banging","dogwood","carol","mapping","exchanger","ignominy","retraction","videocassette","precept","sirloin","mortification","pagoda","belfry","cubbyhole","mindstone","greyhound","clank","snowbank","instep","sanatorium","savanna","longshoreman","copier","nightshirt","boatyard","brigand","usurpation","understudy","interrelationship","undercarriage","sulphate","quasar","marshmallow","thrush","sweeper","alleviation","feint","chimera","infidel","modifier","perennial","simpleton","gridiron","overlord","airway","binding","abstention","algorithm","amalgamation","ascension","herdsman","lollipop","pastel","laminate","tendril","synopsis","drawstring","intermarriage","restorer","swoon","firefight","civilisation","self-criticism","hanky","ventricle","jot","interferon","circel","avenger","stepson","amethyst","beachhead","loggia","sizzle","burp","watchtower","endearment","dryad","prefect","tong","croissant","blocker","brioche","thistle","sunburst","savor","dumpling","checker","soliloquy","marketer","wheeze","molar","oboe","inbound","masochist","superficiality","tabby","outcrop","deputation","bassist","particularity","strop","thang","doggy","zation","ghoul","domestic","frostbite","relapse","floorboard","clicking","paraphrase","sinkhole","pushcart","overdraft","spinnaker","sourdough","sweatshop","meteorite","lander","caboose","junket","planer","iguana","brouhaha","reaper","sharpshooter","eggshell","self-sacrifice","minnow","skyrocket","connexion","effrontery","oblong","biker","flinch","cog","bullock","retrial","underwriter","gentlewoman","noggin","sissy","collect","dogmatism","sweatsuit","biplane","polariser","server","hiker","electrolyte","thunderclap","bronc","snooze","mascot","sherbet","carillon","decal","womanizer","underground","tailcoat","worshipper","automaton","proscription","sleuth","honeybee","abutment","foller","palladium","partake","jailing","counterfeit","pompadour","moneymaker","acacia","monthly","geographer","doghouse","bludgeon","fitter","conservator","indecency","atoll","fife","acquit","barracuda","mortician","striker","plait","untruth","hoarding","eighteen-wheeler","shakeup","grounder","abuser","hamstring","parishioner","cherub","cubist","antler","kisser","shunt","cravat","admixture","whinny","scorpion","amenity","matchup","spacer","settling","insinuation","possum","tenancy","girder","adapter","mousetrap","cubble","steppe","hypochondriac","covey","whipping","taunt","pocketful","pug","panhandle","conga","citron","foul-up","plaint","nouveau","oilskin","meridian","lifer","bolster","wren","gripe","mountaineer","transceiver","treetop","hex","harrow","tampering","photocopy","redskin","cesspool","barrette","cleanser","missive","breakfront","mini","ridgeline","semi","pasha","byword","phoneme","seducer","miser","cookstove","limerick","cummerbund","labourer","ascot","wraith","tarantula","toffee","pituitary","liana","cleat","line-up","helix","highboy","bicep","partment","coed","expletive","dumpster","deferment","progenitor","sandbox","mignon","typhoon","sublimation","backdoor","alchemist","pacifier","insomniac","hairpiece","lintel","indemnity","blurb","republican","electrocardiogram","futurist","recliner","mote","sketchbook","fulcrum","gratuity","aqueduct","adherent","masque","sundial","template","handmaiden","hedgehog","coding","corsair","solstice","orifice","sonobuoy","prizewinner","spinner","townsman","rosette","mind-set","unkindness","pushover","bility","infielder","hutch","erasure","parallelism","avowal","fastness","broadcloth","hellhole","grandparent","toehold","ident","sleepwalker","watching","aerie","database","mismatch","hombre","scrambler","spoiler","putdown","rookery","spinoff","ringleader","duchy","sealskin","transformer","doggie","bedsheet","cowhide","ceramic","prostration","cheroot","houseboy","giantess","tomcat","speedster","basalt","minicomputer","rapacity","spaceman","in-law","equerry","humpback","academician","harvester","fairground","ream","carat","entreaty","groundswell","obfuscation","provocateur","fugue","denigration","rifleman","manipulator","panting","synod","glitch","nightie","goaltender","kingpin","comforter","anesthetic","klaxon","hijack","orb","hostelry","gladiator","misadventure","bombard","fixity","tanner","stringency","wonderland","x-ray","plainclothesman","roadhouse","travelogue","gasket","nibble","hacking","nude","tincture","receptor","fink","schoolmarm","washtub","homesteader","hacker","portiere","hatbox","tamer","howitzer","grouper","frontage","amoeba","clime","flashback","teamster","accolade","polluter","officeholder","inpatient","altercation","reverberation","coproduction","phosphor","substation","bandana","sapper","preserver","pigeonhole","prefecture","milkman","avocation","argyle","amphetamine","linker","leviathan","hamster","bondsman","comer","bumpkin","sheikh","beefsteak","tyke","discoloration","kingmaker","quotient","excision","whitey","asymmetry","trill","discourtesy","bleat","hatching","crier","creel","seabed","witticism","riser","lurcher","moviemaker","pantsuit","linchpin","deformation","deodorant","soybean","washboard","egotist","underpass","dysfunction","tingling","barstool","paramour","udder","microbe","radiologist","qualm","welt","salesperson","signpost","sepulcher","lumpectomy","slaver","shopgirl","peregrine","siesta","reiteration","profligacy","iodide","iconoclast","rollcall","fillip","oratorio","splat","incoherence","accompanist","motorcar","nunnery","busybody","carryall","nettle","jaguar","pretence","odometer","potentate","mussel","prophetess","monetarist","proach","typescript","hacksaw","broadsword","miter","fatty","terrarium","archangel","powerboat","stooge","cannery","pylon","pulsation","misstep","yucca","hearthstone","rumour","lockout","toboggan","trampoline","concatenation","debility","acorn","forklift","psion","dragonet","ligament","folio","tie-up","picking","swatch","arrowhead","martinet","fisher","quintet","ellipse","sumbitch","legitimation","nightwatch","hardback","schemer","conversationalist","collectivist","reallocation","diorama","cutaway","point-of-view","cattleman","abscess","talc","incubus","dribble","sis","rhododendron","rolling","spiderweb","nonsmoker","crissake","refusenik","save","obstructionist","suture","parenthesis","reefer","great-grandson","steelworker","bumblebee","bullfrog","festivity","embolism","defeatist","tankard","ferryman","garret","co-worker","consonant","copywriter","bookseller","compress","dogfight","embezzler","quiche","liege","dissector","taskmaster","prosthesis","emulsion","spitball","modulation","squint","retelling","baiting","whirr","air-conditioner","individuation","geezer","aspirant","pensioner","re-enactment","flapper","looker","marshland","sexton","adverb","coenzyme","misapprehension","inaccuracy","barmaid","beautician","daredevil","racehorse","oxford","spume","busload","tradesman","manicure","propellant","apothecary","ruffian","titillation","instigator","siting","ringmaster","enumeration","twirl","bookmaker","technocrat","mouth-harp","quaver","icehouse","ventilator","roadster","subpena","carter","comedienne","savannah","milkmaid","pumper","signer","deadbeat","cofounder","bootlegger","tribesman","wildfire","shard","hailstorm","struction","routing","dolmen","idiosyncrasy","poniard","honky-tonk","spendthrift","draftee","hermaphrodite","pinafore","roundabout","frill","redeployment","ophthalmologist","caldron","reinvestment","troubadour","fjord","leave-taking","elongation","clinch","trinket","suasion","neutralist","finalist","whiplash","ventriloquist","violator","monarchist","spanking","grindstone","initiator","standard-bearer","sender","atelier","distemper","ingot","frontiersman","altarpiece","endgame","homily","synapse","pillbox","ochre","scimitar","jubilee","presentiment","tation","aggrandizement","truncheon","damsel","fallibility","papaya","piggyback","puppeteer","workhouse","nightingale","entomologist","wicket","debriefing","logician","moorland","minimalist","matte","skirmishing","tonality","maidservant","yam","gatekeeper","whammy","drudge","angora","garland","manoeuvre","moviegoer","slingshot","titan","re-evaluation","ironwork","ambassadorship","lanch","pollination","riage","vocalization","brawler","shaving","particulate","inhaler","impoundment","surfboard","waterman","almanac","pepperoni","kook","colonnade","infantryman","scruple","functionalist","wisecrack","conscript","boor","bannister","pretzel","analgesic","firebrand","microprocessor","frame-up","guardsman","teetotaler","broad","pallbearer","airframe","wrangle","backboard","knockdown","reparation","poorhouse","milkshake","battlement","dragonfly","paymaster","snuffler","crudeness","nerd","blockhouse","donut","backhoe","principality","dimmer","wounding","collier","beater","footlocker","barkeep","absurdist","brickwork","great-uncle","rumination","appellation","joiner","hydrolysis","interlocutor","raindrop","hardtop","groping","cymbal","miscellany","pomegranate","hearer","abortionist","corncob","shoal","dunce","bellowing","bridgehead","mangrove","blotch","boxwood","briar","which","trickster","epileptic","dependent","encumbrance","claque","pickpocket","half-truth","bilge","overrun","caveman","posterior","derriere","sty","maggot","vibrator","imbecility","hang-up","syllogism","blindfold","sunbeam","chrysanthemum","amour","ne'er-do-well","odour","flowerpot","satrap","reconnoiter","tonsillectomy","clampdown","coliseum","menage","warbler","hubcap","crudity","baseboard","lithograph","homeroom","stanchion","amphitheatre","disquisition","commonplace","feedlot","reprint","shire","kraken","careerist","goatskin","worldview","waddle","washout","doormat","diadem","sniffer","spat","superhighway","snooper","libation","zoologist","subtext","bailiwick","exterminator","popsicle","actuary","cabinetmaker","swami","contraceptive","softener","margarita","hatter","tention","earpiece","dormer","timberland","katun","crooner","one-liner","adjudication","snitch","referent","subset","disavowal","starburst","merchantman","dalliance","polymer","hypnotist","monogram","peerage","claymore","satyr","twerp","matchstick","rubber-stamp","clapper","exhibitionist","warhorse","eatery","seashell","radish","router","dinette","trombonist","rivet","requiem","breakaway","hard-liner","locator","shindig","corrective","truffle","whelp","expediter","savant","mitten","canton","wobble","misinterpretation","fense","headwrap","conciliator","chine","topping","assemblyman","divine","scuffling","boomlet","dervish","yellow-green","stockyard","hummock","trimming","royalist","calumny","vandal","prickle","strikeout","apologia","afterburner","hunker","flippancy","fop","embrasure","hornet","tithe","oilfield","lawman","turnkey","fledgling","coauthor","blowpipe","subjectivist","backstop","fishbowl","bedpan","sedge","protrusion","crybaby","freedman","seminarian","spacesuit","tautology","footstep","fiveyear","stoneware","mance","generalist","quitter","domicile","requisition","seance","cabana","wastrel","underling","looter","glassful","wallow","boater","disharmony","shiksa","herringbone","flyleaf","eyesore","lawnmower","walk-up","hemline","wiggle","posing","whirring","cropper","reappointment","psychodrama","shaver","orthodontist","granary","extrovert","calfskin","thinning","foghorn","trainload","carbide","metier","harpist","minim","ballcarrier","rayon","bursting","flipper","fastening","mullet","exploit","squatter","nullity","commodore","newlywed","eavesdropper","chiropractor","miler","arsonist","wrecker","transmutation","incompetency","subcontractor","tress","meatball","bobcat","distributorship","camcorder","pasty","glimmering","groaning","classicist","stakeout","supplicant","repeater","crackling","cryptographer","croupier","honeycomb","insincerity","inhibitor","mystification","greaser","barker","anthill","barbarity","strangle","myrtle","segmentation","marlin","capon","toenail","flip-flop","auger","blasphemer","dipping","pawnshop","penumbra","mohole","bauble","rube","flophouse","triplicate","sardine","master-mason","fang","brainstorm","derangement","hanker","molestation","smokescreen","cavalryman","edging","layover","signalman","clavicle","crewcut","tricolor","cochairman","liberationist","foreskin","bleacher","semi-circle","quince","flatcar","abattoir","farmboy","tibia","thrum","conformist","southerner","docudrama","whorl","break-up","conglomeration","exhibitor","bramble","cutie","woodchuck","compatriot","stole","tuner","housemother","dharma","femme","teahouse","banquette","bottomland","arranger","philistine","vacillation","chiton","retch","caddie","reissue","teaser","swampland","deejay","libertarian","pegboard","greenhorn","dork","cellmate","jobber","wishbone","millstone","haunting","blow-up","snorkel","snowplow","trespasser","punter","snowflake","snowdrift","gunnysack","surround","evergreen","clog","radioisotope","cougar","pundit","wattle","subgroup","oviduct","mixup","misstatement","sulfite","pansy","splint","counterproposal","pulsar","remove","landau","four-year-old","rebbe","disconnection","neomort","exegesis","meteoroid","meringue","sheepherder","radioman","strumpet","opment","millionth","speakeasy","conformation","cultivator","goof","annual","gazelle","demitasse","fishhook","preferment","homebody","skewer","chancre","sorbet","hologram","rivulet","oldster","prisoner-of-war","tulle","riff","restatement","debit","emplacement","repre","invariance","half-circle","objectivist","passer-by","scarlet","flail","impala","persimmon","purist","gation","burgher","snowman","starling","barony","annulment","lifespan","herder","embolden","swathe","ex-convict","trouper","half-wit","fuchsia","grange","ricochet","stinker","opacity","colander","absorber","armadillo","pleasantry","noncommunist","taxiway","overtone","debater","taillight","advisement","birdcage","baroness","aureole","breakout","colouring","astrophysicist","flatboat","stilt","eyeshade","barbell","deliverer","fishnet","prise","jackrabbit","manifold","chattel","jimmy","workshirt","thornbush","chatty","frisson","recount","patentee","oceanographer","forepaw","murderess","whalebone","frontrunner","cerebrum","jector","militiaman","lobsterman","earthling","clean","swindler","scree","begat","doorsill","housedress","strangler","shantytown","roughhouse","scenarist","foothill","contaminant","hamadryad","phony","fairyland","seascape","treble","prodigality","hobble","gantry","backroom","enticement","sawhorse","interviewee","cliffside","dustpan","scrubber","imbroglio","acquaintanceship","woodworker","aesthete","octogenarian","mauling","archivist","pungency","interweaving","jabber","bassinet","doubler","torte","linkup","outdoorsman","fixer","caddy","fumbling","defile","meristem","microbiologist","urologist","stovepipe","tambourine","constructionist","egomaniac","adjuster","liniment","impiety","timeline","cowgirl","sinecure","chillun","foreword","frat","retary","bagpipe","coif","visualization","colleen","shirtmaker","flounce","adder","riffle","underboss","reinterpretation","bender","seeding","fiver","sicken","decoder","holothete","figuring","stave","earplug","acrylic","epigraph","fairytale","flasher","sally","inkwell","nitwit","hussy","constrictor","stabilizer","stickup","seaplane","shimmy","dredge","updraft","speciality","insulator","frond","storyboard","shill","rafter","blowgun","dukedom","favourite","populist","striper","blowtorch","mallard","licking","poetess","tetracycline","ad-lib","toxicologist","fencer","gnawing","eration","photocell","golem","heirloom","penitence","gence","latecomer","broil","outdistance","howler","canine","replenishment","traditionalist","emcee","eyeglass","billow","eyelet","khaki","assignation","tepee","buccaneer","bellyache","parkland","musicologist","phaeton","spirochete","lanyard","mischance","tobacconist","blusher","castaway","meson","bouillabaisse","scrivener","stinger","life-cycle","harridan","motivator","mooring","crimp","inlay","purveyance","vertical","jackhammer","strongbox","dishpan","cobweb","couturier","chalkboard","basilisk","duckling","penitent","footrest","tangent","facing","peroration","floodlight","nouvelle","truss","sprite","drier","esplanade","banding","insulter","dialog","pincer","battlefront","missal","hayseed","parvenu","baronet","shipwright","whisker","no-hitter","double-dealing","moire","conjurer","rickshaw","crevasse","switchback","nicety","provincialism","novella","liberator","biggie","tune-up","ferryboat","remover","twosome","loveseat","tektite","sharpener","cartwheel","diva","flirting","disproportion","tortilla","rover","whodunit","birder","parley","birdsong","fiefdom","augury","harrier","tamale","judging","snakebite","diagnostician","tannin","qualifier","cheetah","distillery","protester","stockroom","factotum","newswoman","cosmopolitan","iridescence","aeroplane","toddy","co-defendant","parry","duocorn","boasting","elector","clarinetist","undergarment","psych","supergiant","armature","environ","collectivity","keepsake","gunfighter","wingspan","perforation","worshiper","groupie","cityscape","worrier","shipload","scallop","hatchery","portraitist","screamer","blaspheme","pacer","presenter","malcontent","seine","equivalency","scriptwriter","lieve","discard","bantam","centaur","typology","loiter","nigguh","drubbing","airfoil","curio","grandmaster","finisher","luminary","alliteration","phantasy","blooper","fasting","samba","gearbox","islet","apricot","smidgen","inset","firestorm","madcap","seedbed","gunsight","forelock","disjunction","writhing","huckleberry","abstract","squirm","ironist","monosaccharide","pushbutton","terracotta","artiste","showgirl","cornea","temptress","popularization","free-fall","scribbling","conviviality","flange","thwack","droop","rower","sweatband","gopher","mandolin","slobber","stricture","calyx","dietician","rehash","padre","ancient","dotage","jacaranda","pensione","contravention","undulation","ironworker","currant","hankie","face-lift","anthropoid","depressant","war-horse","tithing","greeter","matchbox","woodcutter","magpie","wayfarer","handcuff","lawgiver","traverse","minion","cavalier","sonarman","defoliant","scamp","snowshoe","polyp","gainer","honkie","bottler","halloo","amputee","ontology","bromide","brisket","goodie","tavern-keeper","choker","preaching","molester","tonsure","recapitulation","aviary","stevedore","raffle","bootstrap","angiogram","plantain","tipper","hooting","seismometer","persecutor","lobotomy","pigsty","virologist","gamete","presbytery","stepping-stone","dressing-room","cyclamate","chipmunk","platelet","flogging","tuber","reservist","blinker","demographer","turncoat","demesne","fancier","ideologist","self-justification","bucketful","m'lord","rapping","bestiality","irrelevancy","oiler","mackinaw","flutist","trafficker","categorization","pram","world-system","cathouse","deceiver","idjit","double-take","reformulation","brushfire","separator","neigh","whimpering","crisscross","regurgitation","auteur","backwash","refiner","broadsheet","hedonist","recitative","nonentity","codger","tinting","policymaker","tutu","boondoggle","entrant","wok","small","boatload","searcher","taMing","sycophant","substructure","megalomaniac","rusher","saleslady","registrar","blackguard","neckerchief","oldie","clinician","flushing","pinwheel","dition","charioteer","beastie","stridency","verity","eyedropper","canvass","desperado","teardrop","farmyard","mannerist","macaw","valedictorian","whopper","pertinence","assay","puncher","manse","anatomist","dishtowel","nuke","egalitarian","tribulation","cinematographer","sailer","icicle","legume","spiritualist","nativist","these","progressive","blastocyst","harpooner","pedant","instrumentality","connector","masseur","vertebra","moonshiner","bowsprit","grabber","stele","clanking","renter","antihero","bankbook","jailbird","handicraft","fighter-bomber","streamer","retardant","wallflower","flamethrower","agate","cairn","bantamweight","agglomeration","roustabout","linden","roughneck","formance","moray","cession","rashness","capstone","derailment","declivity","snowfield","talon","haymaker","abductor","diffuser","geosector","camisole"];Object.defineProperty(Jp,"__esModule",{value:!0});Jp.nouns=Jp.adjectives=void 0;const Q7e=QU;Jp.adjectives=Q7e.default;const J7e=JU;Jp.nouns=J7e.default;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nouns=e.adjectives=e.uniqueUsernameGenerator=e.generateUsername=e.generateFromEmail=void 0;const t=Jp,n=One,r=(u,f)=>{const p=(0,n.randomBytes)(4).readUInt32BE(0);return u+p%(f-u+1)},i=u=>{let f;switch(u){case 1:f=Math.floor(r(1,9)).toString();break;case 2:f=Math.floor(r(10,90)).toString();break;case 3:f=Math.floor(r(100,900)).toString();break;case 4:f=Math.floor(r(1e3,9e3)).toString();break;case 5:f=Math.floor(r(1e4,9e4)).toString();break;case 6:f=Math.floor(r(1e5,9e5)).toString();break;default:f="";break}return f};function o(u,f){return u.replace(/@.+/,"").replace(/[&/\\#,+()$~%._@'":*?<>{}]/g,"")+i(f)}e.generateFromEmail=o;function s(u,f,h){const p=t.nouns[Math.floor(Math.random()*t.nouns.length)],g=t.adjectives[Math.floor(Math.random()*t.adjectives.length)];let v;return u?v=g+u+p+i(f):v=g+p+i(f),h?v.substring(0,h):v}e.generateUsername=s;function a(u){if(u.dictionaries){const f=u.dictionaries.length;let h="";for(let g=0;g{const o=await Rj({accept:eX.map(s=>`.workspace.${s}`),strict:!0});o&&eX.includes(Z7e(o.name))&&await i(async()=>{const s=await o.text(),a=await Lee(s);a&&(t(()=>a.layers),r(()=>a.UIState))},`Opening workspace (${Dj(o.size)})`)},save:()=>{K7e(JSON.stringify({layers:e,UIState:n}),`${Roe.generateUsername("-")}.workspace.json`,"application/json")}}}const tVe=()=>{const{save:e,load:t}=eVe(),[n,r]=R.useState(!1);return R.useEffect(()=>{if("windowControlsOverlay"in navigator){const i=()=>{r(!!navigator.windowControlsOverlay.visible)};return navigator.windowControlsOverlay.addEventListener("geometrychange",i),i(),()=>navigator.windowControlsOverlay.removeEventListener("geometrychange",i)}},[r]),C.jsx(ht,{sx:{mt:-.5,minHeight:36,height:n?"env(titlebar-area-height, 50px)":0,width:"env(titlebar-area-width, 100%)",WebkitAppRegion:"drag",overflowX:"auto"},children:C.jsx(Aw,{x:!0,style:{height:"100%"},children:C.jsx(ht,{sx:{height:"100%"},children:C.jsxs(Up,{direction:"row",spacing:1,sx:{height:"100%"},alignItems:"center",children:[C.jsx(ht,{sx:{p:1,height:"100%"},children:C.jsx("img",{src:UJ,style:{height:"100%"}})}),[{key:"workspace",items:[{name:"Open workspace",key:"workspace-load",action:t},{name:"Save workspace",key:"workspace-save",action:e}]},{key:"help",items:[{name:"Open repository in GitHub",key:"github",action:()=>open(ISe,"_blank")},{name:"Open changelog",key:"changelog",action:()=>open(`${RSe}/changelog-${kSe}.md`,"_blank")}]}].map(({key:i,items:o})=>C.jsx(rm,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(nm,{...$w(s),children:C.jsx(zk,{dense:!0,sx:{p:0},children:o.map(({name:a,key:c,action:u})=>C.jsx(Ru,{onClick:()=>{u==null||u(),s.close()},children:a},c))})}),C.jsx(nf,{...Qk(s),sx:{WebkitAppRegion:"no-drag",minWidth:"fit-content",p:.5,px:1},children:te.startCase(i)})]})},i)),C.jsx(ht,{sx:{p:.75,height:"100%"},children:C.jsx(nVe,{})})]})})})})};function nVe(){const e=gc();return C.jsxs(Yu,{onClick:()=>e("Commands are not yet implemented."),sx:{WebkitAppRegion:"no-drag",fontSize:14,borderRadius:t=>t.shape.borderRadius,"&:hover":{bgcolor:"background.paper"},height:"100%",m:0,display:"flex",alignItems:"center",px:1,pr:2,gap:t=>t.spacing(1),color:"text.secondary",cursor:"text"},children:[C.jsx(z1e,{fontSize:"small",color:"disabled"})," ",C.jsx(jt,{sx:{mt:0},children:"Commands"})]})}const rVe=[W7e,V7e,LWe,X7e];function iVe(){const t=Dn().palette.background.default;return j7e(t),C.jsxs(En,{vertical:!0,sx:{bgcolor:t,p:.5,color:"text.primary"},children:[C.jsx(tVe,{}),C.jsx(F7e,{flex:1})]})}function oVe(){const[{theme:e="light",accentColor:t="teal"}]=Ju(),n=R.useMemo(()=>CSe(e,t),[e,t]);return C.jsx(sue,{theme:n,children:C.jsx(_we,{children:C.jsx(Aoe,{services:rVe,children:C.jsx(iVe,{})})})})}var Poe,tX=_v;Poe=tX.createRoot,tX.hydrateRoot;const sVe=Poe(document.getElementById("root")),aVe=[iOe,_Se,LRe,DRe,eCe,NRe,EBe,wwe,B7e,TRe];sVe.render(C.jsx(nve,{children:C.jsx(Aoe,{slices:aVe,children:C.jsx(oVe,{})})})); diff --git a/assets/index-9682cb45.css b/assets/index-d1d7658f.css similarity index 95% rename from assets/index-9682cb45.css rename to assets/index-d1d7658f.css index 381e1562..254195e3 100644 --- a/assets/index-9682cb45.css +++ b/assets/index-d1d7658f.css @@ -1,4 +1,4 @@ -@import"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto+Mono:wght@400;500;600;700&display=swap";html,body,#root{background-color:#1c2128;width:100%;height:100%;-webkit-user-select:none;user-select:none;overflow:hidden}body{overflow:hidden;margin:0;font-family:Inter,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{-webkit-tap-highlight-color:rgba(0,0,0,0)}code{font-family:Roboto Mono,Consolas,Courier New,Courier,monospace;transform:translateY(-10px)}@media (pointer: fine){*{scrollbar-color:#888888 #f0f0f0;scrollbar-width:14px}*::-webkit-scrollbar{width:14px;height:14px;background-color:#f0f0f0}*::-webkit-scrollbar-track{background:#f0f0f0}*::-webkit-scrollbar-thumb{background:#888888;height:14px;min-height:64px;min-width:64px}}#pathfinder{position:"fixed";top:100vh}/*! +@import"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto+Mono:wght@400;500;600;700&display=swap";html,body,#root{background-color:#1c2128;width:100%;height:100%;-webkit-user-select:none;user-select:none;overflow:hidden;font-family:Inter,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Arial,sans-serif!important}body{overflow:hidden;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{-webkit-tap-highlight-color:rgba(0,0,0,0)}code{font-family:Roboto Mono,Consolas,Courier New,Courier,monospace;transform:translateY(-.75px);display:block}@media (pointer: fine){*{scrollbar-color:#888888 #f0f0f0;scrollbar-width:14px}*::-webkit-scrollbar{width:14px;height:14px;background-color:#f0f0f0}*::-webkit-scrollbar-track{background:#f0f0f0}*::-webkit-scrollbar-thumb{background:#888888;height:14px;min-height:64px;min-width:64px}}#pathfinder{position:"fixed";top:100vh}/*! * OverlayScrollbars * Version: 2.3.2 * diff --git a/assets/parseTrace.worker-aa84109d.js b/assets/parseTrace.worker-aa84109d.js deleted file mode 100644 index 0e2e8f97..00000000 --- a/assets/parseTrace.worker-aa84109d.js +++ /dev/null @@ -1,27 +0,0 @@ -(function(){"use strict";var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Se={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Se.exports,function(I,K){(function(){var o,T="4.17.21",G=200,D="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",P="Expected a function",gn="Invalid `variable` option passed into `_.template`",j="__lodash_hash_undefined__",Xn=500,U="__lodash_placeholder__",Y=1,on=2,L=4,H=1,sn=2,z=1,Un=2,Ct=4,vn=8,yn=16,Ln=32,vt=64,Fn=128,Pt=256,qt=512,Ir=30,ye="...",Sr=800,Le=16,ue=1,Er=2,yr=3,On=1/0,ln=9007199254740991,bt=17976931348623157e292,it=0/0,Cn=4294967295,Lr=Cn-1,Oe=Cn>>>1,Ce=[["ary",Fn],["bind",z],["bindKey",Un],["curry",vn],["curryRight",yn],["flip",qt],["partial",Ln],["partialRight",vt],["rearg",Pt]],ut="[object Arguments]",dt="[object Array]",fe="[object AsyncFunction]",ft="[object Boolean]",wt="[object Date]",$="[object DOMException]",nt="[object Error]",an="[object Function]",xt="[object GeneratorFunction]",en="[object Map]",mn="[object Number]",At="[object Null]",Nn="[object Object]",oe="[object Promise]",Pe="[object Proxy]",X="[object RegExp]",rn="[object Set]",Qn="[object String]",be="[object Symbol]",Fo="[object Undefined]",se="[object WeakMap]",No="[object WeakSet]",le="[object ArrayBuffer]",Kt="[object DataView]",Or="[object Float32Array]",Cr="[object Float64Array]",Pr="[object Int8Array]",br="[object Int16Array]",Wr="[object Int32Array]",Br="[object Uint8Array]",Dr="[object Uint8ClampedArray]",Mr="[object Uint16Array]",Ur="[object Uint32Array]",Go=/\b__p \+= '';/g,Ho=/\b(__p \+=) '' \+/g,$o=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eu=/&(?:amp|lt|gt|quot|#39);/g,ru=/[&<>"']/g,qo=RegExp(eu.source),Ko=RegExp(ru.source),zo=/<%-([\s\S]+?)%>/g,Zo=/<%([\s\S]+?)%>/g,iu=/<%=([\s\S]+?)%>/g,Yo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xo=/^\w*$/,Qo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/[\\^$.*+?()[\]{}|]/g,Jo=RegExp(Fr.source),Nr=/^\s+/,Vo=/\s/,ko=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jo=/\{\n\/\* \[wrapped with (.+)\] \*/,ns=/,? & /,ts=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,es=/[()=,{}\[\]\/\s]/,rs=/\\(\\)?/g,is=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uu=/\w*$/,us=/^[-+]0x[0-9a-f]+$/i,fs=/^0b[01]+$/i,os=/^\[object .+?Constructor\]$/,ss=/^0o[0-7]+$/i,ls=/^(?:0|[1-9]\d*)$/,as=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,We=/($^)/,cs=/['\n\r\u2028\u2029\\]/g,Be="\\ud800-\\udfff",hs="\\u0300-\\u036f",gs="\\ufe20-\\ufe2f",ps="\\u20d0-\\u20ff",fu=hs+gs+ps,ou="\\u2700-\\u27bf",su="a-z\\xdf-\\xf6\\xf8-\\xff",_s="\\xac\\xb1\\xd7\\xf7",vs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ds="\\u2000-\\u206f",ws=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lu="A-Z\\xc0-\\xd6\\xd8-\\xde",au="\\ufe0e\\ufe0f",cu=_s+vs+ds+ws,Gr="['’]",xs="["+Be+"]",hu="["+cu+"]",De="["+fu+"]",gu="\\d+",As="["+ou+"]",pu="["+su+"]",_u="[^"+Be+cu+gu+ou+su+lu+"]",Hr="\\ud83c[\\udffb-\\udfff]",Ts="(?:"+De+"|"+Hr+")",vu="[^"+Be+"]",$r="(?:\\ud83c[\\udde6-\\uddff]){2}",qr="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+lu+"]",du="\\u200d",wu="(?:"+pu+"|"+_u+")",ms="(?:"+zt+"|"+_u+")",xu="(?:"+Gr+"(?:d|ll|m|re|s|t|ve))?",Au="(?:"+Gr+"(?:D|LL|M|RE|S|T|VE))?",Tu=Ts+"?",mu="["+au+"]?",Rs="(?:"+du+"(?:"+[vu,$r,qr].join("|")+")"+mu+Tu+")*",Is="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ss="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ru=mu+Tu+Rs,Es="(?:"+[As,$r,qr].join("|")+")"+Ru,ys="(?:"+[vu+De+"?",De,$r,qr,xs].join("|")+")",Ls=RegExp(Gr,"g"),Os=RegExp(De,"g"),Kr=RegExp(Hr+"(?="+Hr+")|"+ys+Ru,"g"),Cs=RegExp([zt+"?"+pu+"+"+xu+"(?="+[hu,zt,"$"].join("|")+")",ms+"+"+Au+"(?="+[hu,zt+wu,"$"].join("|")+")",zt+"?"+wu+"+"+xu,zt+"+"+Au,Ss,Is,gu,Es].join("|"),"g"),Ps=RegExp("["+du+Be+fu+au+"]"),bs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ws=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bs=-1,Q={};Q[Or]=Q[Cr]=Q[Pr]=Q[br]=Q[Wr]=Q[Br]=Q[Dr]=Q[Mr]=Q[Ur]=!0,Q[ut]=Q[dt]=Q[le]=Q[ft]=Q[Kt]=Q[wt]=Q[nt]=Q[an]=Q[en]=Q[mn]=Q[Nn]=Q[X]=Q[rn]=Q[Qn]=Q[se]=!1;var Z={};Z[ut]=Z[dt]=Z[le]=Z[Kt]=Z[ft]=Z[wt]=Z[Or]=Z[Cr]=Z[Pr]=Z[br]=Z[Wr]=Z[en]=Z[mn]=Z[Nn]=Z[X]=Z[rn]=Z[Qn]=Z[be]=Z[Br]=Z[Dr]=Z[Mr]=Z[Ur]=!0,Z[nt]=Z[an]=Z[se]=!1;var Ds={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ms={"&":"&","<":"<",">":">",'"':""","'":"'"},Us={"&":"&","<":"<",">":">",""":'"',"'":"'"},Fs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ns=parseFloat,Gs=parseInt,Iu=typeof $t=="object"&&$t&&$t.Object===Object&&$t,Hs=typeof self=="object"&&self&&self.Object===Object&&self,pn=Iu||Hs||Function("return this")(),zr=K&&!K.nodeType&&K,Wt=zr&&!0&&I&&!I.nodeType&&I,Su=Wt&&Wt.exports===zr,Zr=Su&&Iu.process,Gn=function(){try{var a=Wt&&Wt.require&&Wt.require("util").types;return a||Zr&&Zr.binding&&Zr.binding("util")}catch{}}(),Eu=Gn&&Gn.isArrayBuffer,yu=Gn&&Gn.isDate,Lu=Gn&&Gn.isMap,Ou=Gn&&Gn.isRegExp,Cu=Gn&&Gn.isSet,Pu=Gn&&Gn.isTypedArray;function Pn(a,g,h){switch(h.length){case 0:return a.call(g);case 1:return a.call(g,h[0]);case 2:return a.call(g,h[0],h[1]);case 3:return a.call(g,h[0],h[1],h[2])}return a.apply(g,h)}function $s(a,g,h,w){for(var S=-1,M=a==null?0:a.length;++S-1}function Yr(a,g,h){for(var w=-1,S=a==null?0:a.length;++w-1;);return h}function Nu(a,g){for(var h=a.length;h--&&Zt(g,a[h],0)>-1;);return h}function Vs(a,g){for(var h=a.length,w=0;h--;)a[h]===g&&++w;return w}var ks=Vr(Ds),js=Vr(Ms);function nl(a){return"\\"+Fs[a]}function tl(a,g){return a==null?o:a[g]}function Yt(a){return Ps.test(a)}function el(a){return bs.test(a)}function rl(a){for(var g,h=[];!(g=a.next()).done;)h.push(g.value);return h}function ti(a){var g=-1,h=Array(a.size);return a.forEach(function(w,S){h[++g]=[S,w]}),h}function Gu(a,g){return function(h){return a(g(h))}}function Rt(a,g){for(var h=-1,w=a.length,S=0,M=[];++h-1}function Kl(n,t){var e=this.__data__,r=je(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this}ot.prototype.clear=Gl,ot.prototype.delete=Hl,ot.prototype.get=$l,ot.prototype.has=ql,ot.prototype.set=Kl;function st(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t=t?n:t)),n}function Kn(n,t,e,r,i,f){var s,l=t&Y,c=t&on,p=t&L;if(e&&(s=i?e(n,r,i,f):e(n)),s!==o)return s;if(!V(n))return n;var _=E(n);if(_){if(s=Xa(n),!l)return Rn(n,s)}else{var v=wn(n),d=v==an||v==xt;if(Ot(n))return Rf(n,l);if(v==Nn||v==ut||d&&!i){if(s=c||d?{}:$f(n),!l)return c?Ua(n,fa(s,n)):Ma(n,ku(s,n))}else{if(!Z[v])return i?n:{};s=Qa(n,v,l)}}f||(f=new Vn);var x=f.get(n);if(x)return x;f.set(n,s),wo(n)?n.forEach(function(R){s.add(Kn(R,t,e,R,n,f))}):_o(n)&&n.forEach(function(R,b){s.set(b,Kn(R,t,e,b,n,f))});var m=p?c?yi:Ei:c?Sn:cn,O=_?o:m(n);return Hn(O||n,function(R,b){O&&(b=R,R=n[b]),ve(s,b,Kn(R,t,e,b,n,f))}),s}function oa(n){var t=cn(n);return function(e){return ju(e,n,t)}}function ju(n,t,e){var r=e.length;if(n==null)return!r;for(n=q(n);r--;){var i=e[r],f=t[i],s=n[i];if(s===o&&!(i in n)||!f(s))return!1}return!0}function nf(n,t,e){if(typeof n!="function")throw new $n(P);return Re(function(){n.apply(o,e)},t)}function de(n,t,e,r){var i=-1,f=Me,s=!0,l=n.length,c=[],p=t.length;if(!l)return c;e&&(t=J(t,bn(e))),r?(f=Yr,s=!1):t.length>=G&&(f=ae,s=!1,t=new Mt(t));n:for(;++ii?0:i+e),r=r===o||r>i?i:y(r),r<0&&(r+=i),r=e>r?0:Ao(r);e0&&e(l)?t>1?_n(l,t-1,e,r,i):mt(i,l):r||(i[i.length]=l)}return i}var si=Of(),rf=Of(!0);function tt(n,t){return n&&si(n,t,cn)}function li(n,t){return n&&rf(n,t,cn)}function tr(n,t){return Tt(t,function(e){return gt(n[e])})}function Ft(n,t){t=yt(t,n);for(var e=0,r=t.length;n!=null&&et}function aa(n,t){return n!=null&&N.call(n,t)}function ca(n,t){return n!=null&&t in q(n)}function ha(n,t,e){return n>=dn(t,e)&&n=120&&_.length>=120)?new Mt(s&&_):o}_=n[0];var v=-1,d=l[0];n:for(;++v-1;)l!==n&&Ze.call(l,c,1),Ze.call(n,c,1);return n}function _f(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==f){var f=i;ht(i)?Ze.call(n,i,1):xi(n,i)}}return n}function vi(n,t){return n+Qe(Xu()*(t-n+1))}function Sa(n,t,e,r){for(var i=-1,f=fn(Xe((t-n)/(e||1)),0),s=h(f);f--;)s[r?f:++i]=n,n+=e;return s}function di(n,t){var e="";if(!n||t<1||t>ln)return e;do t%2&&(e+=n),t=Qe(t/2),t&&(n+=n);while(t);return e}function C(n,t){return Bi(zf(n,t,En),n+"")}function Ea(n){return Vu(ie(n))}function ya(n,t){var e=ie(n);return hr(e,Ut(t,0,e.length))}function Ae(n,t,e,r){if(!V(n))return n;t=yt(t,n);for(var i=-1,f=t.length,s=f-1,l=n;l!=null&&++ii?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var f=h(i);++r>>1,s=n[f];s!==null&&!Bn(s)&&(e?s<=t:s=G){var p=t?null:Ha(n);if(p)return Fe(p);s=!1,i=ae,c=new Mt}else c=t?[]:l;n:for(;++r=r?n:zn(n,t,e)}var mf=wl||function(n){return pn.clearTimeout(n)};function Rf(n,t){if(t)return n.slice();var e=n.length,r=qu?qu(e):new n.constructor(e);return n.copy(r),r}function Ri(n){var t=new n.constructor(n.byteLength);return new Ke(t).set(new Ke(n)),t}function ba(n,t){var e=t?Ri(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}function Wa(n){var t=new n.constructor(n.source,uu.exec(n));return t.lastIndex=n.lastIndex,t}function Ba(n){return _e?q(_e.call(n)):{}}function If(n,t){var e=t?Ri(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function Sf(n,t){if(n!==t){var e=n!==o,r=n===null,i=n===n,f=Bn(n),s=t!==o,l=t===null,c=t===t,p=Bn(t);if(!l&&!p&&!f&&n>t||f&&s&&c&&!l&&!p||r&&s&&c||!e&&c||!i)return 1;if(!r&&!f&&!p&&n=l)return c;var p=e[r];return c*(p=="desc"?-1:1)}}return n.index-t.index}function Ef(n,t,e,r){for(var i=-1,f=n.length,s=e.length,l=-1,c=t.length,p=fn(f-s,0),_=h(c+p),v=!r;++l1?e[i-1]:o,s=i>2?e[2]:o;for(f=n.length>3&&typeof f=="function"?(i--,f):o,s&&An(e[0],e[1],s)&&(f=i<3?o:f,i=1),t=q(t);++r-1?i[f?t[s]:s]:o}}function bf(n){return ct(function(t){var e=t.length,r=e,i=qn.prototype.thru;for(n&&t.reverse();r--;){var f=t[r];if(typeof f!="function")throw new $n(P);if(i&&!s&&ar(f)=="wrapper")var s=new qn([],!0)}for(r=s?r:e;++r1&&B.reverse(),_&&cl))return!1;var p=f.get(n),_=f.get(t);if(p&&_)return p==t&&_==n;var v=-1,d=!0,x=e&sn?new Mt:o;for(f.set(n,t),f.set(t,n);++v1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(ko,`{ -/* [wrapped with `+t+`] */ -`)}function Va(n){return E(n)||Ht(n)||!!(Zu&&n&&n[Zu])}function ht(n,t){var e=typeof n;return t=t??ln,!!t&&(e=="number"||e!="symbol"&&ls.test(n))&&n>-1&&n%1==0&&n0){if(++t>=Sr)return arguments[0]}else t=0;return n.apply(o,arguments)}}function hr(n,t){var e=-1,r=n.length,i=r-1;for(t=t===o?r:t;++e1?n[t-1]:o;return e=typeof e=="function"?(n.pop(),e):o,ro(n,e)});function io(n){var t=u(n);return t.__chain__=!0,t}function sh(n,t){return t(n),n}function gr(n,t){return t(n)}var lh=ct(function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,i=function(f){return oi(f,n)};return t>1||this.__actions__.length||!(r instanceof W)||!ht(e)?this.thru(i):(r=r.slice(e,+e+(t?1:0)),r.__actions__.push({func:gr,args:[i],thisArg:o}),new qn(r,this.__chain__).thru(function(f){return t&&!f.length&&f.push(o),f}))});function ah(){return io(this)}function ch(){return new qn(this.value(),this.__chain__)}function hh(){this.__values__===o&&(this.__values__=xo(this.value()));var n=this.__index__>=this.__values__.length,t=n?o:this.__values__[this.__index__++];return{done:n,value:t}}function gh(){return this}function ph(n){for(var t,e=this;e instanceof ke;){var r=Vf(e);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;e=e.__wrapped__}return i.__wrapped__=n,t}function _h(){var n=this.__wrapped__;if(n instanceof W){var t=n;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:gr,args:[Di],thisArg:o}),new qn(t,this.__chain__)}return this.thru(Di)}function vh(){return Af(this.__wrapped__,this.__actions__)}var dh=ur(function(n,t,e){N.call(n,e)?++n[e]:lt(n,e,1)});function wh(n,t,e){var r=E(n)?bu:sa;return e&&An(n,t,e)&&(t=o),r(n,A(t,3))}function xh(n,t){var e=E(n)?Tt:ef;return e(n,A(t,3))}var Ah=Pf(kf),Th=Pf(jf);function mh(n,t){return _n(pr(n,t),1)}function Rh(n,t){return _n(pr(n,t),On)}function Ih(n,t,e){return e=e===o?1:y(e),_n(pr(n,t),e)}function uo(n,t){var e=E(n)?Hn:St;return e(n,A(t,3))}function fo(n,t){var e=E(n)?qs:tf;return e(n,A(t,3))}var Sh=ur(function(n,t,e){N.call(n,e)?n[e].push(t):lt(n,e,[t])});function Eh(n,t,e,r){n=In(n)?n:ie(n),e=e&&!r?y(e):0;var i=n.length;return e<0&&(e=fn(i+e,0)),xr(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&Zt(n,t,e)>-1}var yh=C(function(n,t,e){var r=-1,i=typeof t=="function",f=In(n)?h(n.length):[];return St(n,function(s){f[++r]=i?Pn(t,s,e):we(s,t,e)}),f}),Lh=ur(function(n,t,e){lt(n,e,t)});function pr(n,t){var e=E(n)?J:lf;return e(n,A(t,3))}function Oh(n,t,e,r){return n==null?[]:(E(t)||(t=t==null?[]:[t]),e=r?o:e,E(e)||(e=e==null?[]:[e]),gf(n,t,e))}var Ch=ur(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});function Ph(n,t,e){var r=E(n)?Xr:Mu,i=arguments.length<3;return r(n,A(t,4),e,i,St)}function bh(n,t,e){var r=E(n)?Ks:Mu,i=arguments.length<3;return r(n,A(t,4),e,i,tf)}function Wh(n,t){var e=E(n)?Tt:ef;return e(n,dr(A(t,3)))}function Bh(n){var t=E(n)?Vu:Ea;return t(n)}function Dh(n,t,e){(e?An(n,t,e):t===o)?t=1:t=y(t);var r=E(n)?ra:ya;return r(n,t)}function Mh(n){var t=E(n)?ia:Oa;return t(n)}function Uh(n){if(n==null)return 0;if(In(n))return xr(n)?Xt(n):n.length;var t=wn(n);return t==en||t==rn?n.size:gi(n).length}function Fh(n,t,e){var r=E(n)?Qr:Ca;return e&&An(n,t,e)&&(t=o),r(n,A(t,3))}var Nh=C(function(n,t){if(n==null)return[];var e=t.length;return e>1&&An(n,t[0],t[1])?t=[]:e>2&&An(t[0],t[1],t[2])&&(t=[t[0]]),gf(n,_n(t,1),[])}),_r=xl||function(){return pn.Date.now()};function Gh(n,t){if(typeof t!="function")throw new $n(P);return n=y(n),function(){if(--n<1)return t.apply(this,arguments)}}function oo(n,t,e){return t=e?o:t,t=n&&t==null?n.length:t,at(n,Fn,o,o,o,o,t)}function so(n,t){var e;if(typeof t!="function")throw new $n(P);return n=y(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=o),e}}var Ui=C(function(n,t,e){var r=z;if(e.length){var i=Rt(e,ee(Ui));r|=Ln}return at(n,r,t,e,i)}),lo=C(function(n,t,e){var r=z|Un;if(e.length){var i=Rt(e,ee(lo));r|=Ln}return at(t,r,n,e,i)});function ao(n,t,e){t=e?o:t;var r=at(n,vn,o,o,o,o,o,t);return r.placeholder=ao.placeholder,r}function co(n,t,e){t=e?o:t;var r=at(n,yn,o,o,o,o,o,t);return r.placeholder=co.placeholder,r}function ho(n,t,e){var r,i,f,s,l,c,p=0,_=!1,v=!1,d=!0;if(typeof n!="function")throw new $n(P);t=Yn(t)||0,V(e)&&(_=!!e.leading,v="maxWait"in e,f=v?fn(Yn(e.maxWait)||0,t):f,d="trailing"in e?!!e.trailing:d);function x(tn){var jn=r,_t=i;return r=i=o,p=tn,s=n.apply(_t,jn),s}function m(tn){return p=tn,l=Re(b,t),_?x(tn):s}function O(tn){var jn=tn-c,_t=tn-p,bo=t-jn;return v?dn(bo,f-_t):bo}function R(tn){var jn=tn-c,_t=tn-p;return c===o||jn>=t||jn<0||v&&_t>=f}function b(){var tn=_r();if(R(tn))return B(tn);l=Re(b,O(tn))}function B(tn){return l=o,d&&r?x(tn):(r=i=o,s)}function Dn(){l!==o&&mf(l),p=0,r=c=i=l=o}function Tn(){return l===o?s:B(_r())}function Mn(){var tn=_r(),jn=R(tn);if(r=arguments,i=this,c=tn,jn){if(l===o)return m(c);if(v)return mf(l),l=Re(b,t),x(c)}return l===o&&(l=Re(b,t)),s}return Mn.cancel=Dn,Mn.flush=Tn,Mn}var Hh=C(function(n,t){return nf(n,1,t)}),$h=C(function(n,t,e){return nf(n,Yn(t)||0,e)});function qh(n){return at(n,qt)}function vr(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new $n(P);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],f=e.cache;if(f.has(i))return f.get(i);var s=n.apply(this,r);return e.cache=f.set(i,s)||f,s};return e.cache=new(vr.Cache||st),e}vr.Cache=st;function dr(n){if(typeof n!="function")throw new $n(P);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function Kh(n){return so(2,n)}var zh=Pa(function(n,t){t=t.length==1&&E(t[0])?J(t[0],bn(A())):J(_n(t,1),bn(A()));var e=t.length;return C(function(r){for(var i=-1,f=dn(r.length,e);++i=t}),Ht=ff(function(){return arguments}())?ff:function(n){return k(n)&&N.call(n,"callee")&&!zu.call(n,"callee")},E=h.isArray,fg=Eu?bn(Eu):pa;function In(n){return n!=null&&wr(n.length)&&!gt(n)}function nn(n){return k(n)&&In(n)}function og(n){return n===!0||n===!1||k(n)&&xn(n)==ft}var Ot=Tl||Qi,sg=yu?bn(yu):_a;function lg(n){return k(n)&&n.nodeType===1&&!Ie(n)}function ag(n){if(n==null)return!0;if(In(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||Ot(n)||re(n)||Ht(n)))return!n.length;var t=wn(n);if(t==en||t==rn)return!n.size;if(me(n))return!gi(n).length;for(var e in n)if(N.call(n,e))return!1;return!0}function cg(n,t){return xe(n,t)}function hg(n,t,e){e=typeof e=="function"?e:o;var r=e?e(n,t):o;return r===o?xe(n,t,o,e):!!r}function Ni(n){if(!k(n))return!1;var t=xn(n);return t==nt||t==$||typeof n.message=="string"&&typeof n.name=="string"&&!Ie(n)}function gg(n){return typeof n=="number"&&Yu(n)}function gt(n){if(!V(n))return!1;var t=xn(n);return t==an||t==xt||t==fe||t==Pe}function po(n){return typeof n=="number"&&n==y(n)}function wr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ln}function V(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function k(n){return n!=null&&typeof n=="object"}var _o=Lu?bn(Lu):da;function pg(n,t){return n===t||hi(n,t,Oi(t))}function _g(n,t,e){return e=typeof e=="function"?e:o,hi(n,t,Oi(t),e)}function vg(n){return vo(n)&&n!=+n}function dg(n){if(nc(n))throw new S(D);return of(n)}function wg(n){return n===null}function xg(n){return n==null}function vo(n){return typeof n=="number"||k(n)&&xn(n)==mn}function Ie(n){if(!k(n)||xn(n)!=Nn)return!1;var t=ze(n);if(t===null)return!0;var e=N.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&He.call(e)==_l}var Gi=Ou?bn(Ou):wa;function Ag(n){return po(n)&&n>=-ln&&n<=ln}var wo=Cu?bn(Cu):xa;function xr(n){return typeof n=="string"||!E(n)&&k(n)&&xn(n)==Qn}function Bn(n){return typeof n=="symbol"||k(n)&&xn(n)==be}var re=Pu?bn(Pu):Aa;function Tg(n){return n===o}function mg(n){return k(n)&&wn(n)==se}function Rg(n){return k(n)&&xn(n)==No}var Ig=lr(pi),Sg=lr(function(n,t){return n<=t});function xo(n){if(!n)return[];if(In(n))return xr(n)?Jn(n):Rn(n);if(ce&&n[ce])return rl(n[ce]());var t=wn(n),e=t==en?ti:t==rn?Fe:ie;return e(n)}function pt(n){if(!n)return n===0?n:0;if(n=Yn(n),n===On||n===-On){var t=n<0?-1:1;return t*bt}return n===n?n:0}function y(n){var t=pt(n),e=t%1;return t===t?e?t-e:t:0}function Ao(n){return n?Ut(y(n),0,Cn):0}function Yn(n){if(typeof n=="number")return n;if(Bn(n))return it;if(V(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=V(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=Uu(n);var e=fs.test(n);return e||ss.test(n)?Gs(n.slice(2),e?2:8):us.test(n)?it:+n}function To(n){return et(n,Sn(n))}function Eg(n){return n?Ut(y(n),-ln,ln):n===0?n:0}function F(n){return n==null?"":Wn(n)}var yg=ne(function(n,t){if(me(t)||In(t)){et(t,cn(t),n);return}for(var e in t)N.call(t,e)&&ve(n,e,t[e])}),mo=ne(function(n,t){et(t,Sn(t),n)}),Ar=ne(function(n,t,e,r){et(t,Sn(t),n,r)}),Lg=ne(function(n,t,e,r){et(t,cn(t),n,r)}),Og=ct(oi);function Cg(n,t){var e=jt(n);return t==null?e:ku(e,t)}var Pg=C(function(n,t){n=q(n);var e=-1,r=t.length,i=r>2?t[2]:o;for(i&&An(t[0],t[1],i)&&(r=1);++e1),f}),et(n,yi(n),e),r&&(e=Kn(e,Y|on|L,$a));for(var i=t.length;i--;)xi(e,t[i]);return e});function Qg(n,t){return Io(n,dr(A(t)))}var Jg=ct(function(n,t){return n==null?{}:Ra(n,t)});function Io(n,t){if(n==null)return{};var e=J(yi(n),function(r){return[r]});return t=A(t),pf(n,e,function(r,i){return t(r,i[0])})}function Vg(n,t,e){t=yt(t,n);var r=-1,i=t.length;for(i||(i=1,n=o);++rt){var r=n;n=t,t=r}if(e||n%1||t%1){var i=Xu();return dn(n+i*(t-n+Ns("1e-"+((i+"").length-1))),t)}return vi(n,t)}var sp=te(function(n,t,e){return t=t.toLowerCase(),n+(e?yo(t):t)});function yo(n){return qi(F(n).toLowerCase())}function Lo(n){return n=F(n),n&&n.replace(as,ks).replace(Os,"")}function lp(n,t,e){n=F(n),t=Wn(t);var r=n.length;e=e===o?r:Ut(y(e),0,r);var i=e;return e-=t.length,e>=0&&n.slice(e,i)==t}function ap(n){return n=F(n),n&&Ko.test(n)?n.replace(ru,js):n}function cp(n){return n=F(n),n&&Jo.test(n)?n.replace(Fr,"\\$&"):n}var hp=te(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),gp=te(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),pp=Cf("toLowerCase");function _p(n,t,e){n=F(n),t=y(t);var r=t?Xt(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return sr(Qe(i),e)+n+sr(Xe(i),e)}function vp(n,t,e){n=F(n),t=y(t);var r=t?Xt(n):0;return t&&r>>0,e?(n=F(n),n&&(typeof t=="string"||t!=null&&!Gi(t))&&(t=Wn(t),!t&&Yt(n))?Lt(Jn(n),0,e):n.split(t,e)):[]}var Rp=te(function(n,t,e){return n+(e?" ":"")+qi(t)});function Ip(n,t,e){return n=F(n),e=e==null?0:Ut(y(e),0,n.length),t=Wn(t),n.slice(e,e+t.length)==t}function Sp(n,t,e){var r=u.templateSettings;e&&An(n,t,e)&&(t=o),n=F(n),t=Ar({},t,r,Uf);var i=Ar({},t.imports,r.imports,Uf),f=cn(i),s=ni(i,f),l,c,p=0,_=t.interpolate||We,v="__p += '",d=ei((t.escape||We).source+"|"+_.source+"|"+(_===iu?is:We).source+"|"+(t.evaluate||We).source+"|$","g"),x="//# sourceURL="+(N.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bs+"]")+` -`;n.replace(d,function(R,b,B,Dn,Tn,Mn){return B||(B=Dn),v+=n.slice(p,Mn).replace(cs,nl),b&&(l=!0,v+=`' + -__e(`+b+`) + -'`),Tn&&(c=!0,v+=`'; -`+Tn+`; -__p += '`),B&&(v+=`' + -((__t = (`+B+`)) == null ? '' : __t) + -'`),p=Mn+R.length,R}),v+=`'; -`;var m=N.call(t,"variable")&&t.variable;if(!m)v=`with (obj) { -`+v+` -} -`;else if(es.test(m))throw new S(gn);v=(c?v.replace(Go,""):v).replace(Ho,"$1").replace($o,"$1;"),v="function("+(m||"obj")+`) { -`+(m?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+v+`return __p -}`;var O=Co(function(){return M(f,x+"return "+v).apply(o,s)});if(O.source=v,Ni(O))throw O;return O}function Ep(n){return F(n).toLowerCase()}function yp(n){return F(n).toUpperCase()}function Lp(n,t,e){if(n=F(n),n&&(e||t===o))return Uu(n);if(!n||!(t=Wn(t)))return n;var r=Jn(n),i=Jn(t),f=Fu(r,i),s=Nu(r,i)+1;return Lt(r,f,s).join("")}function Op(n,t,e){if(n=F(n),n&&(e||t===o))return n.slice(0,Hu(n)+1);if(!n||!(t=Wn(t)))return n;var r=Jn(n),i=Nu(r,Jn(t))+1;return Lt(r,0,i).join("")}function Cp(n,t,e){if(n=F(n),n&&(e||t===o))return n.replace(Nr,"");if(!n||!(t=Wn(t)))return n;var r=Jn(n),i=Fu(r,Jn(t));return Lt(r,i).join("")}function Pp(n,t){var e=Ir,r=ye;if(V(t)){var i="separator"in t?t.separator:i;e="length"in t?y(t.length):e,r="omission"in t?Wn(t.omission):r}n=F(n);var f=n.length;if(Yt(n)){var s=Jn(n);f=s.length}if(e>=f)return n;var l=e-Xt(r);if(l<1)return r;var c=s?Lt(s,0,l).join(""):n.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),Gi(i)){if(n.slice(l).search(i)){var p,_=c;for(i.global||(i=ei(i.source,F(uu.exec(i))+"g")),i.lastIndex=0;p=i.exec(_);)var v=p.index;c=c.slice(0,v===o?l:v)}}else if(n.indexOf(Wn(i),l)!=l){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r}function bp(n){return n=F(n),n&&qo.test(n)?n.replace(eu,ol):n}var Wp=te(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),qi=Cf("toUpperCase");function Oo(n,t,e){return n=F(n),t=e?o:t,t===o?el(n)?al(n):Ys(n):n.match(t)||[]}var Co=C(function(n,t){try{return Pn(n,o,t)}catch(e){return Ni(e)?e:new S(e)}}),Bp=ct(function(n,t){return Hn(t,function(e){e=rt(e),lt(n,e,Ui(n[e],n))}),n});function Dp(n){var t=n==null?0:n.length,e=A();return n=t?J(n,function(r){if(typeof r[1]!="function")throw new $n(P);return[e(r[0]),r[1]]}):[],C(function(r){for(var i=-1;++iln)return[];var e=Cn,r=dn(n,Cn);t=A(t),n-=Cn;for(var i=jr(r,t);++e0||t<0)?new W(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==o&&(t=y(t),e=t<0?e.dropRight(-t):e.take(t-n)),e)},W.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},W.prototype.toArray=function(){return this.take(Cn)},tt(W.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=u[r?"take"+(t=="last"?"Right":""):t],f=r||/^find/.test(t);i&&(u.prototype[t]=function(){var s=this.__wrapped__,l=r?[1]:arguments,c=s instanceof W,p=l[0],_=c||E(s),v=function(b){var B=i.apply(u,mt([b],l));return r&&d?B[0]:B};_&&e&&typeof p=="function"&&p.length!=1&&(c=_=!1);var d=this.__chain__,x=!!this.__actions__.length,m=f&&!d,O=c&&!x;if(!f&&_){s=O?s:new W(this);var R=n.apply(s,l);return R.__actions__.push({func:gr,args:[v],thisArg:o}),new qn(R,d)}return m&&O?n.apply(this,l):(R=this.thru(v),m?r?R.value()[0]:R.value():R)})}),Hn(["pop","push","shift","sort","splice","unshift"],function(n){var t=Ne[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var f=this.value();return t.apply(E(f)?f:[],i)}return this[e](function(s){return t.apply(E(s)?s:[],i)})}}),tt(W.prototype,function(n,t){var e=u[t];if(e){var r=e.name+"";N.call(kt,r)||(kt[r]=[]),kt[r].push({name:t,func:e})}}),kt[fr(o,Un).name]=[{name:"wrapper",func:o}],W.prototype.clone=bl,W.prototype.reverse=Wl,W.prototype.value=Bl,u.prototype.at=lh,u.prototype.chain=ah,u.prototype.commit=ch,u.prototype.next=hh,u.prototype.plant=ph,u.prototype.reverse=_h,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=vh,u.prototype.first=u.prototype.head,ce&&(u.prototype[ce]=gh),u},Qt=cl();Wt?((Wt.exports=Qt)._=Qt,zr._=Qt):pn._=Qt}).call($t)}(Se,Se.exports);var hn=Se.exports;function Tr(I={},K){const{$:o,...T}=I;return{...hn.mapValues(T,K),$:o}}var Ji={exports:{}};(function(I,K){(function(o,T){I.exports=T()})($t,function(){return function(o){function T(D){if(G[D])return G[D].exports;var P=G[D]={i:D,l:!1,exports:{}};return o[D].call(P.exports,P,P.exports,T),P.l=!0,P.exports}var G={};return T.m=o,T.c=G,T.d=function(D,P,gn){T.o(D,P)||Object.defineProperty(D,P,{configurable:!1,enumerable:!0,get:gn})},T.n=function(D){var P=D&&D.__esModule?function(){return D.default}:function(){return D};return T.d(P,"a",P),P},T.o=function(D,P){return Object.prototype.hasOwnProperty.call(D,P)},T.p="",T(T.s=1)}([function(o,T,G){function D(gn){var j=gn===void 0?{}:gn,Xn=j.ESCAPE,U=Xn===void 0?/^\\/:Xn,Y=j.VARIABLE_START,on=Y===void 0?/^\${\s*/:Y,L=j.VARIABLE_END,H=L===void 0?/^\s*}/:L,sn=j.PIPE_START,z=sn===void 0?/^\s*\|\s*/:sn,Un=j.PIPE_PARAMETER_START,Ct=Un===void 0?/^\s*:\s*/:Un,vn=j.QUOTED_STRING,yn=vn===void 0?T.DEFAULT_QUOTED_STRING_REGEX:vn,Ln=j.QUOTED_STRING_TEST,vt=Ln===void 0?null:Ln,Fn=j.QUOTED_STRING_GET_AND_ADVANCE,Pt=Fn===void 0?null:Fn,qt=j.QUOTED_STRING_IN_PARAMETER_TEST,Ir=qt===void 0?null:qt,ye=j.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,Sr=ye===void 0?null:ye,Le=vt||function(On){return yn.test(On)},ue=Pt||P(yn),Er=Ir||function(On){return yn.test(On)},yr=Sr||P(yn);return function(On){function ln(X){X===void 0&&(X=1),$=$.substr(X)}function bt(X){X===void 0&&(X=/^/),ln($.match(X)[0].length)}function it(){var X;return bt(U),X=$.length>0?$[0]:"",ln(),X}function Cn(X){var rn=(X===void 0?{}:X).isNull,Qn=rn!==void 0&&rn;en={name:"",pipes:[]},Nn=!Qn}function Lr(){nt.variables.push(en),Cn({isNull:!0})}function Oe(X){var rn=(X===void 0?{}:X).isNull,Qn=rn!==void 0&&rn;mn={name:"",parameters:[]},oe=!Qn}function Ce(){en.pipes.push(mn),Oe({isNull:!0})}function ut(X){var rn=(X===void 0?{}:X).isNull,Qn=rn!==void 0&&rn;At="",Pe=!Qn}function dt(){mn.parameters.push(At),ut({isNull:!0})}function fe(){return!!H.test($)&&(bt(H),an>=3&&dt(),an>=2&&Ce(),an>=1&&Lr(),an=0,!0)}function ft(){return!!z.test($)&&(bt(z),an>=3&&dt(),an>=2&&Ce(),an>=1&&Oe(),an=2,!0)}function wt(){return!!Ct.test($)&&(bt(Ct),an>=3&&dt(),an>=2&&ut(),an=3,!0)}for(var $=On,nt={literals:[],variables:[]},an=0,xt="",en={name:"",pipes:[]},mn={name:"",parameters:[]},At="",Nn=!1,oe=!1,Pe=!1;$&&$.length>0;)switch(an){case 0:if(U.test($)){xt+=it();continue}if(on.test($)){an=1,Cn(),nt.literals.push(xt),xt="",bt(on);continue}xt+=$[0],ln();break;case 1:if(U.test($)){en.name+=it();continue}if(fe()||ft())continue;if(Le($)){en.name+=ue($,ln);continue}en.name+=$[0],ln();break;case 2:if(U.test($)){mn.name+=it();continue}if(fe()||wt()||ft())continue;if(Le($)){mn.name+=ue($,ln);continue}mn.name+=$[0],ln();break;case 3:if(U.test($)){At+=it();continue}if(fe()||wt()||ft())continue;if(Er($)){At+=yr($,ln);continue}At+=$[0],ln()}return Pe&&mn.parameters.push(At),oe&&en.pipes.push(mn),Nn&&nt.variables.push(en),nt.literals.push(xt),nt}}function P(gn){return function(j,Xn){var U=j.match(gn);return Xn(U[0].length),U.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(T,"__esModule",{value:!0}),T.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,T.parseStringTemplateGenerator=D,T.parseStringTemplate=D(),T.getQuotedStringAndAdvanceForRegex=P},function(o,T,G){o.exports=G(2)},function(o,T,G){function D(P){for(var gn in P)T.hasOwnProperty(gn)||(T[gn]=P[gn])}Object.defineProperty(T,"__esModule",{value:!0}),D(G(0)),D(G(3))},function(o,T,G){function D(U){return function(Y){return U.hasOwnProperty(Y)?U[Y]:Y.split(".").reduce(function(on,L){return on.hasOwnProperty(L)?on[L]:""},U)}}function P(U,Y,on,L){L===void 0&&(L=D(Y));var H=L(U.name);return U.pipes.reduce(function(sn,z){return on.hasOwnProperty(z.name)?on[z.name](sn,z.parameters):sn},H??"")}function gn(U,Y,on,L){return L===void 0&&(L=D(Y)),U.literals.length===0?"":U.literals.slice(1).reduce(function(H,sn,z){return""+H+P(U.variables[z],Y,on,L)+sn},U.literals[0])}function j(U,Y,on){return gn(Xn.parseStringTemplate(U),Y,on)}Object.defineProperty(T,"__esModule",{value:!0});var Xn=G(0);T.evaluateParsedString=gn,T.evaluateStringTemplate=j}])})})(Ji);var Vi=Ji.exports;function ki(I){const K=Function("ctx",`return ${I};`);return o=>K(new Proxy(Ee(o),{get(T,G){var D;return(D=T[G])==null?void 0:D.call(T,{})}}))}const Wo=/^\{\{\s*/,Bo=/^\s*\}\}/,mr=/\b\B/;function Do(I){const o=Vi.parseStringTemplateGenerator({VARIABLE_START:Wo,VARIABLE_END:Bo,PIPE_START:mr,PIPE_PARAMETER_START:mr,QUOTED_STRING:mr})(I);return hn.join(o.literals,"")?T=>Vi.evaluateParsedString(o,{},{},G=>ki(G)(T)):ki(o.variables[0].name)}function Rr(I){switch(I==null?void 0:I.constructor){case Array:{const K=hn.map(I,Rr);return o=>hn.map(K,T=>T(o))}case Object:{const K=hn.mapValues(I,Rr);return o=>hn.mapValues(K,T=>T(o))}case String:return Do(I);default:return hn.constant(I)}}function Ee(I={}){return Tr(I,K=>hn.isFunction(K)?K:Rr(K))}function ji(I,K){const o=Tr(K,T=>G=>T(ji(Ee(G),I)));return{...I,...o}}function nu(I,K,o={}){return I.flatMap(T=>{const{$:G}=T,D=ji(Ee(o),Ee(T));return G in K?nu(K[G],K,D):[D]})}const Mo=I=>I==null,tu=I=>I.display!=="transient";function Uo({trace:I,context:K,view:o="main"}){var Xn,U,Y,on;const T=nu(((Y=(U=(Xn=I==null?void 0:I.render)==null?void 0:Xn.views)==null?void 0:U[o])==null?void 0:Y.components)??[],((on=I==null?void 0:I.render)==null?void 0:on.components)??{}),G=(L,H)=>hn.map(T,sn=>Tr(sn,z=>z({alpha:1,...K,...H,...L}))),D=L=>L&&Object.hasOwn(L,"alpha")?L.alpha>0:!0,P=L=>H=>({component:H,meta:{source:"trace",step:L}}),gn=hn.chain(I==null?void 0:I.events).map((L,H)=>({step:H,id:L.id,data:L,pId:L.pId})).groupBy("id").value(),j=hn.chain(I==null?void 0:I.events).map((L,H,sn)=>{var vn;const z=G(L,{...K,step:H,parent:Mo(L.pId)?void 0:sn[((vn=hn.findLast(gn[L.pId],yn=>yn.step<=H))==null?void 0:vn.step)??0]}),Un=z.filter(tu),Ct=z.filter(hn.negate(tu));return{persistent:Un,transient:Ct}}).map(L=>hn.mapValues(L,H=>H.filter(D))).map((L,H)=>hn.mapValues(L,sn=>sn.map(P(H)))).value();return{stepsPersistent:hn.map(j,"persistent"),stepsTransient:hn.map(j,"transient")}}onmessage=({data:I})=>{postMessage(Uo(I))}})(); diff --git a/assets/parseTrace.worker-c4cde251.js b/assets/parseTrace.worker-c4cde251.js new file mode 100644 index 00000000..1a4f108a --- /dev/null +++ b/assets/parseTrace.worker-c4cde251.js @@ -0,0 +1,28 @@ +(function(){"use strict";var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Ft={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Ft.exports,function(f,l){(function(){var i,p="4.17.21",m=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",y="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",_=500,b="__lodash_placeholder__",q=1,F=2,I=4,M=1,$=2,C=1,P=2,L=4,A=8,E=16,W=32,U=64,J=128,rn=256,Pn=512,pt=30,zt="...",Wi=800,Ht=16,gt=1,Bi=2,Ui=3,Nn=1/0,yn=9007199254740991,De=17976931348623157e292,ae=0/0,$n=4294967295,Gi=$n-1,Kt=$n>>>1,Zt=[["ary",J],["bind",C],["bindKey",P],["curry",A],["curryRight",E],["flip",Pn],["partial",W],["partialRight",U],["rearg",rn]],le="[object Arguments]",xe="[object Array]",vt="[object AsyncFunction]",se="[object Boolean]",be="[object Date]",un="[object DOMException]",ie="[object Error]",wn="[object Function]",Se="[object GeneratorFunction]",vn="[object Map]",Cn="[object Number]",Ae="[object Null]",Hn="[object Object]",dt="[object Promise]",Vt="[object Proxy]",an="[object RegExp]",dn="[object Set]",kn="[object String]",Yt="[object Symbol]",Ph="[object Undefined]",_t="[object WeakMap]",Ch="[object WeakSet]",mt="[object ArrayBuffer]",Xe="[object DataView]",zi="[object Float32Array]",Hi="[object Float64Array]",Ki="[object Int8Array]",Zi="[object Int16Array]",Vi="[object Int32Array]",Yi="[object Uint8Array]",Qi="[object Uint8ClampedArray]",Xi="[object Uint16Array]",Ji="[object Uint32Array]",Lh=/\b__p \+= '';/g,qh=/\b(__p \+=) '' \+/g,Fh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vo=/&(?:amp|lt|gt|quot|#39);/g,Yo=/[&<>"']/g,Mh=RegExp(Vo.source),Nh=RegExp(Yo.source),$h=/<%-([\s\S]+?)%>/g,Dh=/<%([\s\S]+?)%>/g,Qo=/<%=([\s\S]+?)%>/g,Wh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bh=/^\w*$/,Uh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ji=/[\\^$.*+?()[\]{}|]/g,Gh=RegExp(ji.source),ki=/^\s+/,zh=/\s/,Hh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kh=/\{\n\/\* \[wrapped with (.+)\] \*/,Zh=/,? & /,Vh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yh=/[()=,{}\[\]\/\s]/,Qh=/\\(\\)?/g,Xh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xo=/\w*$/,Jh=/^[-+]0x[0-9a-f]+$/i,jh=/^0b[01]+$/i,kh=/^\[object .+?Constructor\]$/,np=/^0o[0-7]+$/i,ep=/^(?:0|[1-9]\d*)$/,tp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qt=/($^)/,rp=/['\n\r\u2028\u2029\\]/g,Xt="\\ud800-\\udfff",ip="\\u0300-\\u036f",up="\\ufe20-\\ufe2f",fp="\\u20d0-\\u20ff",Jo=ip+up+fp,jo="\\u2700-\\u27bf",ko="a-z\\xdf-\\xf6\\xf8-\\xff",op="\\xac\\xb1\\xd7\\xf7",ap="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lp="\\u2000-\\u206f",sp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",na="A-Z\\xc0-\\xd6\\xd8-\\xde",ea="\\ufe0e\\ufe0f",ta=op+ap+lp+sp,nu="['’]",cp="["+Xt+"]",ra="["+ta+"]",Jt="["+Jo+"]",ia="\\d+",hp="["+jo+"]",ua="["+ko+"]",fa="[^"+Xt+ta+ia+jo+ko+na+"]",eu="\\ud83c[\\udffb-\\udfff]",pp="(?:"+Jt+"|"+eu+")",oa="[^"+Xt+"]",tu="(?:\\ud83c[\\udde6-\\uddff]){2}",ru="[\\ud800-\\udbff][\\udc00-\\udfff]",Je="["+na+"]",aa="\\u200d",la="(?:"+ua+"|"+fa+")",gp="(?:"+Je+"|"+fa+")",sa="(?:"+nu+"(?:d|ll|m|re|s|t|ve))?",ca="(?:"+nu+"(?:D|LL|M|RE|S|T|VE))?",ha=pp+"?",pa="["+ea+"]?",vp="(?:"+aa+"(?:"+[oa,tu,ru].join("|")+")"+pa+ha+")*",dp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_p="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ga=pa+ha+vp,mp="(?:"+[hp,tu,ru].join("|")+")"+ga,yp="(?:"+[oa+Jt+"?",Jt,tu,ru,cp].join("|")+")",wp=RegExp(nu,"g"),xp=RegExp(Jt,"g"),iu=RegExp(eu+"(?="+eu+")|"+yp+ga,"g"),bp=RegExp([Je+"?"+ua+"+"+sa+"(?="+[ra,Je,"$"].join("|")+")",gp+"+"+ca+"(?="+[ra,Je+la,"$"].join("|")+")",Je+"?"+la+"+"+sa,Je+"+"+ca,_p,dp,ia,mp].join("|"),"g"),Sp=RegExp("["+aa+Xt+Jo+ea+"]"),Ap=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Op=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tp=-1,ln={};ln[zi]=ln[Hi]=ln[Ki]=ln[Zi]=ln[Vi]=ln[Yi]=ln[Qi]=ln[Xi]=ln[Ji]=!0,ln[le]=ln[xe]=ln[mt]=ln[se]=ln[Xe]=ln[be]=ln[ie]=ln[wn]=ln[vn]=ln[Cn]=ln[Hn]=ln[an]=ln[dn]=ln[kn]=ln[_t]=!1;var on={};on[le]=on[xe]=on[mt]=on[Xe]=on[se]=on[be]=on[zi]=on[Hi]=on[Ki]=on[Zi]=on[Vi]=on[vn]=on[Cn]=on[Hn]=on[an]=on[dn]=on[kn]=on[Yt]=on[Yi]=on[Qi]=on[Xi]=on[Ji]=!0,on[ie]=on[wn]=on[_t]=!1;var Ip={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Rp={"&":"&","<":"<",">":">",'"':""","'":"'"},Ep={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cp=parseFloat,Lp=parseInt,va=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,qp=typeof self=="object"&&self&&self.Object===Object&&self,Sn=va||qp||Function("return this")(),uu=l&&!l.nodeType&&l,We=uu&&!0&&f&&!f.nodeType&&f,da=We&&We.exports===uu,fu=da&&va.process,Kn=function(){try{var h=We&&We.require&&We.require("util").types;return h||fu&&fu.binding&&fu.binding("util")}catch{}}(),_a=Kn&&Kn.isArrayBuffer,ma=Kn&&Kn.isDate,ya=Kn&&Kn.isMap,wa=Kn&&Kn.isRegExp,xa=Kn&&Kn.isSet,ba=Kn&&Kn.isTypedArray;function Dn(h,S,x){switch(x.length){case 0:return h.call(S);case 1:return h.call(S,x[0]);case 2:return h.call(S,x[0],x[1]);case 3:return h.call(S,x[0],x[1],x[2])}return h.apply(S,x)}function Fp(h,S,x,D){for(var K=-1,nn=h==null?0:h.length;++K-1}function ou(h,S,x){for(var D=-1,K=h==null?0:h.length;++D-1;);return x}function Pa(h,S){for(var x=h.length;x--&&je(S,h[x],0)>-1;);return x}function zp(h,S){for(var x=h.length,D=0;x--;)h[x]===S&&++D;return D}var Hp=cu(Ip),Kp=cu(Rp);function Zp(h){return"\\"+Pp[h]}function Vp(h,S){return h==null?i:h[S]}function ke(h){return Sp.test(h)}function Yp(h){return Ap.test(h)}function Qp(h){for(var S,x=[];!(S=h.next()).done;)x.push(S.value);return x}function vu(h){var S=-1,x=Array(h.size);return h.forEach(function(D,K){x[++S]=[K,D]}),x}function Ca(h,S){return function(x){return h(S(x))}}function Ie(h,S){for(var x=-1,D=h.length,K=0,nn=[];++x-1}function Ng(n,e){var t=this.__data__,r=vr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ce.prototype.clear=Lg,ce.prototype.delete=qg,ce.prototype.get=Fg,ce.prototype.has=Mg,ce.prototype.set=Ng;function he(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,u,a){var s,c=e&q,g=e&F,O=e&I;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!cn(n))return n;var T=Z(n);if(T){if(s=Bv(n),!c)return Ln(n,s)}else{var R=Tn(n),N=R==wn||R==Se;if(qe(n))return pl(n,c);if(R==Hn||R==le||N&&!u){if(s=g||N?{}:Ll(n),!c)return g?Ev(n,jg(s,n)):Rv(n,za(s,n))}else{if(!on[R])return u?n:{};s=Uv(n,R,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),os(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):us(n)&&n.forEach(function(H,X){s.set(X,Qn(H,e,t,X,n,a))});var z=O?g?Uu:Bu:g?Fn:xn,Y=T?i:z(n);return Zn(Y||n,function(H,X){Y&&(X=H,H=n[X]),Ot(s,X,Qn(H,e,t,X,n,a))}),s}function kg(n){var e=xn(n);return function(t){return Ha(t,n,e)}}function Ha(n,e,t){var r=t.length;if(n==null)return!r;for(n=fn(n);r--;){var u=t[r],a=e[u],s=n[u];if(s===i&&!(u in n)||!a(s))return!1}return!0}function Ka(n,e,t){if(typeof n!="function")throw new Vn(v);return Lt(function(){n.apply(i,t)},e)}function Tt(n,e,t,r){var u=-1,a=jt,s=!0,c=n.length,g=[],O=e.length;if(!c)return g;t&&(e=sn(e,Wn(t))),r?(a=ou,s=!1):e.length>=m&&(a=yt,s=!1,e=new Ge(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:V(r),r<0&&(r+=u),r=t>r?0:ls(r);t0&&t(c)?e>1?An(c,e-1,t,r,u):Te(u,c):r||(u[u.length]=c)}return u}var bu=yl(),Ya=yl(!0);function ue(n,e){return n&&bu(n,e,xn)}function Su(n,e){return n&&Ya(n,e,xn)}function _r(n,e){return Oe(e,function(t){return _e(n[t])})}function He(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function tv(n,e){return n!=null&&tn.call(n,e)}function rv(n,e){return n!=null&&e in fn(n)}function iv(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new Ge(s&&T):i}T=n[0];var R=-1,N=c[0];n:for(;++R-1;)c!==n&&ar.call(c,g,1),ar.call(n,g,1);return n}function ul(n,e){for(var t=n?e.length:0,r=t-1;t--;){var u=e[t];if(t==r||u!==a){var a=u;de(u)?ar.call(n,u,1):qu(n,u)}}return n}function Pu(n,e){return n+cr(Wa()*(e-n+1))}function _v(n,e,t,r){for(var u=-1,a=mn(sr((e-n)/(t||1)),0),s=x(a);a--;)s[r?a:++u]=n,n+=t;return s}function Cu(n,e){var t="";if(!n||e<1||e>yn)return t;do e%2&&(t+=n),e=cr(e/2),e&&(n+=n);while(e);return t}function Q(n,e){return Yu(Ml(n,e,Mn),n+"")}function mv(n){return Ga(st(n))}function yv(n,e){var t=st(n);return Rr(t,ze(e,0,t.length))}function Et(n,e,t,r){if(!cn(n))return n;e=Ce(e,n);for(var u=-1,a=e.length,s=a-1,c=n;c!=null&&++uu?0:u+e),t=t>u?u:t,t<0&&(t+=u),u=e>t?0:t-e>>>0,e>>>=0;for(var a=x(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:qv(n);if(O)return nr(O);s=!1,u=yt,g=new Ge}else g=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var hl=sg||function(n){return Sn.clearTimeout(n)};function pl(n,e){if(e)return n.slice();var t=n.length,r=Fa?Fa(t):new n.constructor(t);return n.copy(r),r}function $u(n){var e=new n.constructor(n.byteLength);return new fr(e).set(new fr(n)),e}function Av(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Ov(n){var e=new n.constructor(n.source,Xo.exec(n));return e.lastIndex=n.lastIndex,e}function Tv(n){return At?fn(At.call(n)):{}}function gl(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function vl(n,e){if(n!==e){var t=n!==i,r=n===null,u=n===n,a=Un(n),s=e!==i,c=e===null,g=e===e,O=Un(e);if(!c&&!O&&!a&&n>e||a&&s&&g&&!c&&!O||r&&s&&g||!t&&g||!u)return 1;if(!r&&!a&&!O&&n=c)return g;var O=t[r];return g*(O=="desc"?-1:1)}}return n.index-e.index}function dl(n,e,t,r){for(var u=-1,a=n.length,s=t.length,c=-1,g=e.length,O=mn(a-s,0),T=x(g+O),R=!r;++c1?t[u-1]:i,s=u>2?t[2]:i;for(a=n.length>3&&typeof a=="function"?(u--,a):i,s&&Rn(t[0],t[1],s)&&(a=u<3?i:a,u=1),e=fn(e);++r-1?u[a?e[s]:s]:i}}function bl(n){return ve(function(e){var t=e.length,r=t,u=Yn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Vn(v);if(u&&!s&&Tr(a)=="wrapper")var s=new Yn([],!0)}for(r=s?r:t;++r1&&k.reverse(),T&&gc))return!1;var O=a.get(n),T=a.get(e);if(O&&T)return O==e&&T==n;var R=-1,N=!0,B=t&$?new Ge:i;for(a.set(n,e),a.set(e,n);++R1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Hh,`{ +/* [wrapped with `+e+`] */ +`)}function zv(n){return Z(n)||Ve(n)||!!($a&&n&&n[$a])}function de(n,e){var t=typeof n;return e=e??yn,!!e&&(t=="number"||t!="symbol"&&ep.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Wi)return arguments[0]}else e=0;return n.apply(i,arguments)}}function Rr(n,e){var t=-1,r=n.length,u=r-1;for(e=e===i?r:e;++t1?n[e-1]:i;return t=typeof t=="function"?(n.pop(),t):i,Vl(n,t)});function Yl(n){var e=o(n);return e.__chain__=!0,e}function n_(n,e){return e(n),n}function Er(n,e){return e(n)}var e_=ve(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,u=function(a){return xu(a,n)};return e>1||this.__actions__.length||!(r instanceof j)||!de(t)?this.thru(u):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Er,args:[u],thisArg:i}),new Yn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function t_(){return Yl(this)}function r_(){return new Yn(this.value(),this.__chain__)}function i_(){this.__values__===i&&(this.__values__=as(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function u_(){return this}function f_(n){for(var e,t=this;t instanceof gr;){var r=Ul(t);r.__index__=0,r.__values__=i,e?u.__wrapped__=r:e=r;var u=r;t=t.__wrapped__}return u.__wrapped__=n,e}function o_(){var n=this.__wrapped__;if(n instanceof j){var e=n;return this.__actions__.length&&(e=new j(this)),e=e.reverse(),e.__actions__.push({func:Er,args:[Qu],thisArg:i}),new Yn(e,this.__chain__)}return this.thru(Qu)}function a_(){return sl(this.__wrapped__,this.__actions__)}var l_=xr(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function s_(n,e,t){var r=Z(n)?Sa:nv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function c_(n,e){var t=Z(n)?Oe:Va;return t(n,G(e,3))}var h_=xl(Gl),p_=xl(zl);function g_(n,e){return An(Pr(n,e),1)}function v_(n,e){return An(Pr(n,e),Nn)}function d_(n,e,t){return t=t===i?1:V(t),An(Pr(n,e),t)}function Ql(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Xl(n,e){var t=Z(n)?Mp:Za;return t(n,G(e,3))}var __=xr(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function m_(n,e,t,r){n=qn(n)?n:st(n),t=t&&!r?V(t):0;var u=n.length;return t<0&&(t=mn(u+t,0)),Mr(n)?t<=u&&n.indexOf(e,t)>-1:!!u&&je(n,e,t)>-1}var y_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=qn(n)?x(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):It(s,e,t)}),a}),w_=xr(function(n,e,t){pe(n,t,e)});function Pr(n,e){var t=Z(n)?sn:ka;return t(n,G(e,3))}function x_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),rl(n,e,t))}var b_=xr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function S_(n,e,t){var r=Z(n)?au:Ia,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function A_(n,e,t){var r=Z(n)?Np:Ia,u=arguments.length<3;return r(n,G(e,4),t,u,Za)}function O_(n,e){var t=Z(n)?Oe:Va;return t(n,qr(G(e,3)))}function T_(n){var e=Z(n)?Ga:mv;return e(n)}function I_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=V(e);var r=Z(n)?Qg:yv;return r(n,e)}function R_(n){var e=Z(n)?Xg:xv;return e(n)}function E_(n){if(n==null)return 0;if(qn(n))return Mr(n)?nt(n):n.length;var e=Tn(n);return e==vn||e==dn?n.size:Iu(n).length}function P_(n,e,t){var r=Z(n)?lu:bv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var C_=Q(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Rn(n,e[0],e[1])?e=[]:t>2&&Rn(e[0],e[1],e[2])&&(e=[e[0]]),rl(n,An(e,1),[])}),Cr=cg||function(){return Sn.Date.now()};function L_(n,e){if(typeof e!="function")throw new Vn(v);return n=V(n),function(){if(--n<1)return e.apply(this,arguments)}}function Jl(n,e,t){return e=t?i:e,e=n&&e==null?n.length:e,ge(n,J,i,i,i,i,e)}function jl(n,e){var t;if(typeof e!="function")throw new Vn(v);return n=V(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var Ju=Q(function(n,e,t){var r=C;if(t.length){var u=Ie(t,at(Ju));r|=W}return ge(n,r,e,t,u)}),kl=Q(function(n,e,t){var r=C|P;if(t.length){var u=Ie(t,at(kl));r|=W}return ge(e,r,n,t,u)});function ns(n,e,t){e=t?i:e;var r=ge(n,A,i,i,i,i,i,e);return r.placeholder=ns.placeholder,r}function es(n,e,t){e=t?i:e;var r=ge(n,E,i,i,i,i,i,e);return r.placeholder=es.placeholder,r}function ts(n,e,t){var r,u,a,s,c,g,O=0,T=!1,R=!1,N=!0;if(typeof n!="function")throw new Vn(v);e=jn(e)||0,cn(t)&&(T=!!t.leading,R="maxWait"in t,a=R?mn(jn(t.maxWait)||0,e):a,N="trailing"in t?!!t.trailing:N);function B(gn){var re=r,ye=u;return r=u=i,O=gn,s=n.apply(ye,re),s}function z(gn){return O=gn,c=Lt(X,e),T?B(gn):s}function Y(gn){var re=gn-g,ye=gn-O,xs=e-re;return R?On(xs,a-ye):xs}function H(gn){var re=gn-g,ye=gn-O;return g===i||re>=e||re<0||R&&ye>=a}function X(){var gn=Cr();if(H(gn))return k(gn);c=Lt(X,Y(gn))}function k(gn){return c=i,N&&r?B(gn):(r=u=i,s)}function Gn(){c!==i&&hl(c),O=0,r=g=u=c=i}function En(){return c===i?s:k(Cr())}function zn(){var gn=Cr(),re=H(gn);if(r=arguments,u=this,g=gn,re){if(c===i)return z(g);if(R)return hl(c),c=Lt(X,e),B(g)}return c===i&&(c=Lt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var q_=Q(function(n,e){return Ka(n,1,e)}),F_=Q(function(n,e,t){return Ka(n,jn(e)||0,t)});function M_(n){return ge(n,Pn)}function Lr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Vn(v);var t=function(){var r=arguments,u=e?e.apply(this,r):r[0],a=t.cache;if(a.has(u))return a.get(u);var s=n.apply(this,r);return t.cache=a.set(u,s)||a,s};return t.cache=new(Lr.Cache||he),t}Lr.Cache=he;function qr(n){if(typeof n!="function")throw new Vn(v);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function N_(n){return jl(2,n)}var $_=Sv(function(n,e){e=e.length==1&&Z(e[0])?sn(e[0],Wn(G())):sn(An(e,1),Wn(G()));var t=e.length;return Q(function(r){for(var u=-1,a=On(r.length,t);++u=e}),Ve=Xa(function(){return arguments}())?Xa:function(n){return hn(n)&&tn.call(n,"callee")&&!Na.call(n,"callee")},Z=x.isArray,j_=_a?Wn(_a):fv;function qn(n){return n!=null&&Fr(n.length)&&!_e(n)}function pn(n){return hn(n)&&qn(n)}function k_(n){return n===!0||n===!1||hn(n)&&In(n)==se}var qe=pg||sf,n0=ma?Wn(ma):ov;function e0(n){return hn(n)&&n.nodeType===1&&!qt(n)}function t0(n){if(n==null)return!0;if(qn(n)&&(Z(n)||typeof n=="string"||typeof n.splice=="function"||qe(n)||lt(n)||Ve(n)))return!n.length;var e=Tn(n);if(e==vn||e==dn)return!n.size;if(Ct(n))return!Iu(n).length;for(var t in n)if(tn.call(n,t))return!1;return!0}function r0(n,e){return Rt(n,e)}function i0(n,e,t){t=typeof t=="function"?t:i;var r=t?t(n,e):i;return r===i?Rt(n,e,i,t):!!r}function ku(n){if(!hn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!qt(n)}function u0(n){return typeof n=="number"&&Da(n)}function _e(n){if(!cn(n))return!1;var e=In(n);return e==wn||e==Se||e==vt||e==Vt}function is(n){return typeof n=="number"&&n==V(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=yn}function cn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function hn(n){return n!=null&&typeof n=="object"}var us=ya?Wn(ya):lv;function f0(n,e){return n===e||Tu(n,e,zu(e))}function o0(n,e,t){return t=typeof t=="function"?t:i,Tu(n,e,zu(e),t)}function a0(n){return fs(n)&&n!=+n}function l0(n){if(Zv(n))throw new K(d);return Ja(n)}function s0(n){return n===null}function c0(n){return n==null}function fs(n){return typeof n=="number"||hn(n)&&In(n)==Cn}function qt(n){if(!hn(n)||In(n)!=Hn)return!1;var e=or(n);if(e===null)return!0;var t=tn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&rr.call(t)==og}var nf=wa?Wn(wa):sv;function h0(n){return is(n)&&n>=-yn&&n<=yn}var os=xa?Wn(xa):cv;function Mr(n){return typeof n=="string"||!Z(n)&&hn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||hn(n)&&In(n)==Yt}var lt=ba?Wn(ba):hv;function p0(n){return n===i}function g0(n){return hn(n)&&Tn(n)==_t}function v0(n){return hn(n)&&In(n)==Ch}var d0=Or(Ru),_0=Or(function(n,e){return n<=e});function as(n){if(!n)return[];if(qn(n))return Mr(n)?ne(n):Ln(n);if(wt&&n[wt])return Qp(n[wt]());var e=Tn(n),t=e==vn?vu:e==dn?nr:st;return t(n)}function me(n){if(!n)return n===0?n:0;if(n=jn(n),n===Nn||n===-Nn){var e=n<0?-1:1;return e*De}return n===n?n:0}function V(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function ls(n){return n?ze(V(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(cn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=cn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Ra(n);var t=jh.test(n);return t||np.test(n)?Lp(n.slice(2),t?2:8):Jh.test(n)?ae:+n}function ss(n){return fe(n,Fn(n))}function m0(n){return n?ze(V(n),-yn,yn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var y0=ft(function(n,e){if(Ct(e)||qn(e)){fe(e,xn(e),n);return}for(var t in e)tn.call(e,t)&&Ot(n,t,e[t])}),cs=ft(function(n,e){fe(e,Fn(e),n)}),Nr=ft(function(n,e,t,r){fe(e,Fn(e),n,r)}),w0=ft(function(n,e,t,r){fe(e,xn(e),n,r)}),x0=ve(xu);function b0(n,e){var t=ut(n);return e==null?t:za(t,e)}var S0=Q(function(n,e){n=fn(n);var t=-1,r=e.length,u=r>2?e[2]:i;for(u&&Rn(e[0],e[1],u)&&(r=1);++t1),a}),fe(n,Uu(n),t),r&&(t=Qn(t,q|F|I,Fv));for(var u=e.length;u--;)qu(t,e[u]);return t});function U0(n,e){return ps(n,qr(G(e)))}var G0=ve(function(n,e){return n==null?{}:vv(n,e)});function ps(n,e){if(n==null)return{};var t=sn(Uu(n),function(r){return[r]});return e=G(e),il(n,t,function(r,u){return e(r,u[0])})}function z0(n,e,t){e=Ce(e,n);var r=-1,u=e.length;for(u||(u=1,n=i);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var u=Wa();return On(n+u*(e-n+Cp("1e-"+((u+"").length-1))),e)}return Pu(n,e)}var n1=ot(function(n,e,t){return e=e.toLowerCase(),n+(t?ds(e):e)});function ds(n){return rf(en(n).toLowerCase())}function _s(n){return n=en(n),n&&n.replace(tp,Hp).replace(xp,"")}function e1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:ze(V(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function t1(n){return n=en(n),n&&Nh.test(n)?n.replace(Yo,Kp):n}function r1(n){return n=en(n),n&&Gh.test(n)?n.replace(ji,"\\$&"):n}var i1=ot(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),u1=ot(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),f1=wl("toLowerCase");function o1(n,e,t){n=en(n),e=V(e);var r=e?nt(n):0;if(!e||r>=e)return n;var u=(e-r)/2;return Ar(cr(u),t)+n+Ar(sr(u),t)}function a1(n,e,t){n=en(n),e=V(e);var r=e?nt(n):0;return e&&r>>0,t?(n=en(n),n&&(typeof e=="string"||e!=null&&!nf(e))&&(e=Bn(e),!e&&ke(n))?Le(ne(n),0,t):n.split(e,t)):[]}var v1=ot(function(n,e,t){return n+(t?" ":"")+rf(e)});function d1(n,e,t){return n=en(n),t=t==null?0:ze(V(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function _1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=Nr({},e,r,Il);var u=Nr({},e.imports,r.imports,Il),a=xn(u),s=gu(u,a),c,g,O=0,T=e.interpolate||Qt,R="__p += '",N=du((e.escape||Qt).source+"|"+T.source+"|"+(T===Qo?Xh:Qt).source+"|"+(e.evaluate||Qt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tp+"]")+` +`;n.replace(N,function(H,X,k,Gn,En,zn){return k||(k=Gn),R+=n.slice(O,zn).replace(rp,Zp),X&&(c=!0,R+=`' + +__e(`+X+`) + +'`),En&&(g=!0,R+=`'; +`+En+`; +__p += '`),k&&(R+=`' + +((__t = (`+k+`)) == null ? '' : __t) + +'`),O=zn+H.length,H}),R+=`'; +`;var z=tn.call(e,"variable")&&e.variable;if(!z)R=`with (obj) { +`+R+` +} +`;else if(Yh.test(z))throw new K(y);R=(g?R.replace(Lh,""):R).replace(qh,"$1").replace(Fh,"$1;"),R="function("+(z||"obj")+`) { +`+(z?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(g?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+R+`return __p +}`;var Y=ys(function(){return nn(a,B+"return "+R).apply(i,s)});if(Y.source=R,ku(Y))throw Y;return Y}function m1(n){return en(n).toLowerCase()}function y1(n){return en(n).toUpperCase()}function w1(n,e,t){if(n=en(n),n&&(t||e===i))return Ra(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Ea(r,u),s=Pa(r,u)+1;return Le(r,a,s).join("")}function x1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,La(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Pa(r,ne(e))+1;return Le(r,0,u).join("")}function b1(n,e,t){if(n=en(n),n&&(t||e===i))return n.replace(ki,"");if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ea(r,ne(e));return Le(r,u).join("")}function S1(n,e){var t=pt,r=zt;if(cn(e)){var u="separator"in e?e.separator:u;t="length"in e?V(e.length):t,r="omission"in e?Bn(e.omission):r}n=en(n);var a=n.length;if(ke(n)){var s=ne(n);a=s.length}if(t>=a)return n;var c=t-nt(r);if(c<1)return r;var g=s?Le(s,0,c).join(""):n.slice(0,c);if(u===i)return g+r;if(s&&(c+=g.length-c),nf(u)){if(n.slice(c).search(u)){var O,T=g;for(u.global||(u=du(u.source,en(Xo.exec(u))+"g")),u.lastIndex=0;O=u.exec(T);)var R=O.index;g=g.slice(0,R===i?c:R)}}else if(n.indexOf(Bn(u),c)!=c){var N=g.lastIndexOf(u);N>-1&&(g=g.slice(0,N))}return g+r}function A1(n){return n=en(n),n&&Mh.test(n)?n.replace(Vo,kp):n}var O1=ot(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),rf=wl("toUpperCase");function ms(n,e,t){return n=en(n),e=t?i:e,e===i?Yp(n)?tg(n):Wp(n):n.match(e)||[]}var ys=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return ku(t)?t:new K(t)}}),T1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,Ju(n[t],n))}),n});function I1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Vn(v);return[t(r[0]),r[1]]}):[],Q(function(r){for(var u=-1;++uyn)return[];var t=$n,r=On(n,$n);e=G(e),n-=$n;for(var u=pu(r,e);++t0||e<0)?new j(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==i&&(e=V(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},j.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},j.prototype.toArray=function(){return this.take($n)},ue(j.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),u=o[r?"take"+(e=="last"?"Right":""):e],a=r||/^find/.test(e);u&&(o.prototype[e]=function(){var s=this.__wrapped__,c=r?[1]:arguments,g=s instanceof j,O=c[0],T=g||Z(s),R=function(X){var k=u.apply(o,Te([X],c));return r&&N?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(g=T=!1);var N=this.__chain__,B=!!this.__actions__.length,z=a&&!N,Y=g&&!B;if(!a&&T){s=Y?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Er,args:[R],thisArg:i}),new Yn(H,N)}return z&&Y?n.apply(this,c):(H=this.thru(R),z?r?H.value()[0]:H.value():H)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(n){var e=er[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return e.apply(Z(a)?a:[],u)}return this[t](function(s){return e.apply(Z(s)?s:[],u)})}}),ue(j.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";tn.call(it,r)||(it[r]=[]),it[r].push({name:e,func:t})}}),it[br(i,P).name]=[{name:"wrapper",func:i}],j.prototype.clone=Ag,j.prototype.reverse=Og,j.prototype.value=Tg,o.prototype.at=e_,o.prototype.chain=t_,o.prototype.commit=r_,o.prototype.next=i_,o.prototype.plant=f_,o.prototype.reverse=o_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=a_,o.prototype.first=o.prototype.head,wt&&(o.prototype[wt]=u_),o},et=rg();We?((We.exports=et)._=et,uu._=et):Sn._=et}).call(Ye)}(Ft,Ft.exports);var bn=Ft.exports;function $r(f={},l){const{$:i,...p}=f;return{...bn.mapValues(p,l),$:i}}var cf={exports:{}};(function(f,l){(function(i,p){f.exports=p()})(Ye,function(){return function(i){function p(d){if(m[d])return m[d].exports;var v=m[d]={i:d,l:!1,exports:{}};return i[d].call(v.exports,v,v.exports,p),v.l=!0,v.exports}var m={};return p.m=i,p.c=m,p.d=function(d,v,y){p.o(d,v)||Object.defineProperty(d,v,{configurable:!1,enumerable:!0,get:y})},p.n=function(d){var v=d&&d.__esModule?function(){return d.default}:function(){return d};return p.d(v,"a",v),v},p.o=function(d,v){return Object.prototype.hasOwnProperty.call(d,v)},p.p="",p(p.s=1)}([function(i,p,m){function d(y){var w=y===void 0?{}:y,_=w.ESCAPE,b=_===void 0?/^\\/:_,q=w.VARIABLE_START,F=q===void 0?/^\${\s*/:q,I=w.VARIABLE_END,M=I===void 0?/^\s*}/:I,$=w.PIPE_START,C=$===void 0?/^\s*\|\s*/:$,P=w.PIPE_PARAMETER_START,L=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,E=A===void 0?p.DEFAULT_QUOTED_STRING_REGEX:A,W=w.QUOTED_STRING_TEST,U=W===void 0?null:W,J=w.QUOTED_STRING_GET_AND_ADVANCE,rn=J===void 0?null:J,Pn=w.QUOTED_STRING_IN_PARAMETER_TEST,pt=Pn===void 0?null:Pn,zt=w.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,Wi=zt===void 0?null:zt,Ht=U||function(Nn){return E.test(Nn)},gt=rn||v(E),Bi=pt||function(Nn){return E.test(Nn)},Ui=Wi||v(E);return function(Nn){function yn(an){an===void 0&&(an=1),un=un.substr(an)}function De(an){an===void 0&&(an=/^/),yn(un.match(an)[0].length)}function ae(){var an;return De(b),an=un.length>0?un[0]:"",yn(),an}function $n(an){var dn=(an===void 0?{}:an).isNull,kn=dn!==void 0&&dn;vn={name:"",pipes:[]},Hn=!kn}function Gi(){ie.variables.push(vn),$n({isNull:!0})}function Kt(an){var dn=(an===void 0?{}:an).isNull,kn=dn!==void 0&&dn;Cn={name:"",parameters:[]},dt=!kn}function Zt(){vn.pipes.push(Cn),Kt({isNull:!0})}function le(an){var dn=(an===void 0?{}:an).isNull,kn=dn!==void 0&&dn;Ae="",Vt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function vt(){return!!M.test(un)&&(De(M),wn>=3&&xe(),wn>=2&&Zt(),wn>=1&&Gi(),wn=0,!0)}function se(){return!!C.test(un)&&(De(C),wn>=3&&xe(),wn>=2&&Zt(),wn>=1&&Kt(),wn=2,!0)}function be(){return!!L.test(un)&&(De(L),wn>=3&&xe(),wn>=2&&le(),wn=3,!0)}for(var un=Nn,ie={literals:[],variables:[]},wn=0,Se="",vn={name:"",pipes:[]},Cn={name:"",parameters:[]},Ae="",Hn=!1,dt=!1,Vt=!1;un&&un.length>0;)switch(wn){case 0:if(b.test(un)){Se+=ae();continue}if(F.test(un)){wn=1,$n(),ie.literals.push(Se),Se="",De(F);continue}Se+=un[0],yn();break;case 1:if(b.test(un)){vn.name+=ae();continue}if(vt()||se())continue;if(Ht(un)){vn.name+=gt(un,yn);continue}vn.name+=un[0],yn();break;case 2:if(b.test(un)){Cn.name+=ae();continue}if(vt()||be()||se())continue;if(Ht(un)){Cn.name+=gt(un,yn);continue}Cn.name+=un[0],yn();break;case 3:if(b.test(un)){Ae+=ae();continue}if(vt()||be()||se())continue;if(Bi(un)){Ae+=Ui(un,yn);continue}Ae+=un[0],yn()}return Vt&&Cn.parameters.push(Ae),dt&&vn.pipes.push(Cn),Hn&&ie.variables.push(vn),ie.literals.push(Se),ie}}function v(y){return function(w,_){var b=w.match(y);return _(b[0].length),b.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(p,"__esModule",{value:!0}),p.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,p.parseStringTemplateGenerator=d,p.parseStringTemplate=d(),p.getQuotedStringAndAdvanceForRegex=v},function(i,p,m){i.exports=m(2)},function(i,p,m){function d(v){for(var y in v)p.hasOwnProperty(y)||(p[y]=v[y])}Object.defineProperty(p,"__esModule",{value:!0}),d(m(0)),d(m(3))},function(i,p,m){function d(b){return function(q){return b.hasOwnProperty(q)?b[q]:q.split(".").reduce(function(F,I){return F.hasOwnProperty(I)?F[I]:""},b)}}function v(b,q,F,I){I===void 0&&(I=d(q));var M=I(b.name);return b.pipes.reduce(function($,C){return F.hasOwnProperty(C.name)?F[C.name]($,C.parameters):$},M??"")}function y(b,q,F,I){return I===void 0&&(I=d(q)),b.literals.length===0?"":b.literals.slice(1).reduce(function(M,$,C){return""+M+v(b.variables[C],q,F,I)+$},b.literals[0])}function w(b,q,F){return y(_.parseStringTemplate(b),q,F)}Object.defineProperty(p,"__esModule",{value:!0});var _=m(0);p.evaluateParsedString=y,p.evaluateStringTemplate=w}])})})(cf);var hf=cf.exports,Ss=function(){},As=Ss(),Fe=function(f){return f!==As&&f!==null},Os=Fe,Ts=Array.prototype.forEach,Is=Object.create,Rs=function(f,l){var i;for(i in f)l[i]=f[i]},pf=function(f){var l=Is(null);return Ts.call(arguments,function(i){Os(i)&&Rs(Object(i),l)}),l},Es=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Dr,gf;function Ps(){return gf||(gf=1,Dr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Dr}var Cs=Es()?Math.sign:Ps(),Ls=Cs,qs=Math.abs,Fs=Math.floor,Ms=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Ls(f)*Fs(qs(f)))},Ns=Ms,$s=Math.max,Me=function(f){return $s(0,Ns(f))},Ds=Me,vf=function(f,l,i){var p;return isNaN(f)?(p=l,p>=0?i&&p?p-1:p:1):f===!1?!1:Ds(f)},we=function(f){if(typeof f!="function")throw new TypeError(f+" is not a function");return f},Ws=Fe,Qe=function(f){if(!Ws(f))throw new TypeError("Cannot use null or undefined");return f},Bs=we,Us=Qe,Gs=Function.prototype.bind,df=Function.prototype.call,zs=Object.keys,Hs=Object.prototype.propertyIsEnumerable,Ks=function(f,l){return function(i,p){var m,d=arguments[2],v=arguments[3];return i=Object(Us(i)),Bs(p),m=zs(i),v&&m.sort(typeof v=="function"?Gs.call(v,i):void 0),typeof f!="function"&&(f=m[f]),df.call(f,m,function(y,w){return Hs.call(i,y)?df.call(p,d,i[y],y,i,w):l})}},Mt=Ks("forEach"),Ne={},_f={exports:{}},Zs=function(){var f=Object.assign,l;return typeof f!="function"?!1:(l={foo:"raz"},f(l,{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")},Wr,mf;function Vs(){return mf||(mf=1,Wr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Wr}var Br,yf;function Ys(){if(yf)return Br;yf=1;var f=Fe,l=Object.keys;return Br=function(i){return l(f(i)?Object(i):i)},Br}var Ur,wf;function Qs(){return wf||(wf=1,Ur=Vs()()?Object.keys:Ys()),Ur}var Gr,xf;function Xs(){if(xf)return Gr;xf=1;var f=Qs(),l=Qe,i=Math.max;return Gr=function(p,m){var d,v,y=i(arguments.length,2),w;for(p=Object(l(p)),w=function(_){try{p[_]=m[_]}catch(b){d||(d=b)}},v=1;v-1},Vr}var vc=pc()?String.prototype.contains:gc(),Nt=Lf,Ff=hc,Mf=bf,Nf=pf,ct=vc,dc=Cf.exports=function(f,l){var i,p,m,d,v;return arguments.length<2||typeof f!="string"?(d=l,l=f,f=null):d=arguments[2],Nt(f)?(i=ct.call(f,"c"),p=ct.call(f,"e"),m=ct.call(f,"w")):(i=m=!0,p=!1),v={value:l,configurable:i,enumerable:p,writable:m},d?Mf(Nf(d),v):v};dc.gs=function(f,l,i){var p,m,d,v;return typeof f!="string"?(d=i,i=l,l=f,f=null):d=arguments[3],Nt(l)?Ff(l)?Nt(i)?Ff(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,Nt(f)?(p=ct.call(f,"c"),m=ct.call(f,"e")):(p=!0,m=!1),v={get:l,set:i,configurable:p,enumerable:m},d?Mf(Nf(d),v):v};var $e=Cf.exports,Yr={exports:{}};(function(f,l){var i=$e,p=we,m=Function.prototype.apply,d=Function.prototype.call,v=Object.create,y=Object.defineProperty,w=Object.defineProperties,_=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0},q,F,I,M,$,C,P;q=function(L,A){var E;return p(A),_.call(this,"__ee__")?E=this.__ee__:(E=b.value=v(null),y(this,"__ee__",b),b.value=null),E[L]?typeof E[L]=="object"?E[L].push(A):E[L]=[E[L],A]:E[L]=A,this},F=function(L,A){var E,W;return p(A),W=this,q.call(this,L,E=function(){I.call(W,L,E),m.call(A,this,arguments)}),E.__eeOnceListener__=A,this},I=function(L,A){var E,W,U,J;if(p(A),!_.call(this,"__ee__"))return this;if(E=this.__ee__,!E[L])return this;if(W=E[L],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?E[L]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete E[L];return this},M=function(L){var A,E,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[L],!!U))if(typeof U=="object"){for(E=arguments.length,J=new Array(E-1),A=1;A=55296&&E<=56319&&(rn+=F[++C])),rn=I?_.call(I,M,rn,P):rn,$?(b.value=rn,q(L,P,b)):L[P]=rn,++P;A=P}}if(A===void 0)for(A=p(F.length),$&&(L=new $(A)),C=0;C=0?b=v(b):b=l(this.length)-v(d(b)),w=b;w<_;++w)if(m.call(this,w)&&(q=this[w],f(q)))return w;return-1},wi}var bi,co;function rh(){if(co)return bi;co=1;var f=xi(),l=Object.create;return bi=function(){var i=0,p=[],m=l(null);return{get:function(d){var v=0,y=p,w,_=d.length;if(_===0)return y[_]||null;if(y=y[_]){for(;v<_-1;){if(w=f.call(y[0],d[v]),w===-1)return null;y=y[1][w],++v}return w=f.call(y[0],d[v]),w===-1?null:y[1][w]||null}return null},set:function(d){var v=0,y=p,w,_=d.length;if(_===0)y[_]=++i;else{for(y[_]||(y[_]=[[],[]]),y=y[_];v<_-1;)w=f.call(y[0],d[v]),w===-1&&(w=y[0].push(d[v])-1,y[1].push([[],[]])),y=y[1][w],++v;w=f.call(y[0],d[v]),w===-1&&(w=y[0].push(d[v])-1),y[1][w]=++i}return m[i]=d,i},delete:function(d){var v=0,y=p,w,_=m[d],b=_.length,q=[];if(b===0)delete y[b];else if(y=y[b]){for(;v"}},Li}var qi,Io;function ch(){if(Io)return qi;Io=1;var f=sh(),l=/[\n\r\u2028\u2029]/g;return qi=function(i){var p=f(i);return p.length>100&&(p=p.slice(0,99)+"…"),p=p.replace(l,function(m){return JSON.stringify(m).slice(1,-1)}),p},qi}var Ut={exports:{}},Ro;function Eo(){if(Ro)return Ut.exports;Ro=1,Ut.exports=f,Ut.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Ut.exports}var Po;function hh(){if(Po)return wo;Po=1;var f=_o(),l=oh(),i=lh(),p=ch(),m=Eo(),d=Ii(),v=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var b=v(null),q=v(null),F=v(null);if(w===!0)w=null;else if(w=i(w),!y[w])throw new TypeError("'"+p(w)+"' is not valid promise mode");_.on("set",function(I,M,$){var C=!1;if(!m($)){q[I]=$,_.emit("setasync",I,1);return}b[I]=1,F[I]=$;var P=function(W){var U=b[I];if(C)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) +Consider to rely on 'then' or 'done' mode instead.`);U&&(delete b[I],q[I]=W,_.emit("setasync",I,U))},L=function(){C=!0,b[I]&&(delete b[I],delete F[I],_.delete(I))},A=w;if(A||(A="then"),A==="then"){var E=function(){d(L)};$=$.then(function(W){d(P.bind(this,W))},E),typeof $.finally=="function"&&$.finally(E)}else if(A==="done"){if(typeof $.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");$.done(P,L)}else if(A==="done:finally"){if(typeof $.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof $.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");$.done(P),$.finally(L)}}),_.on("get",function(I,M,$){var C;if(b[I]){++b[I];return}C=F[I];var P=function(){_.emit("getasync",I,M,$)};m(C)?typeof C.done=="function"?C.done(P):C.then(function(){d(P)}):P()}),_.on("delete",function(I){if(delete F[I],b[I]){delete b[I];return}if(hasOwnProperty.call(q,I)){var M=q[I];delete q[I],_.emit("deleteasync",I,[M])}}),_.on("clear",function(){var I=q;q=v(null),b=v(null),F=v(null),_.emit("clearasync",f(I,function(M){return[M]}))})},wo}var Co={},Lo;function ph(){if(Lo)return Co;Lo=1;var f=we,l=Mt,i=Ne,p=Function.prototype.apply;return i.dispose=function(m,d,v){var y;if(f(m),v.async&&i.async||v.promise&&i.promise){d.on("deleteasync",y=function(w,_){p.call(m,null,_)}),d.on("clearasync",function(w){l(w,function(_,b){y(b,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,b){y(b,_)})})},Co}var qo={},Fi,Fo;function gh(){return Fo||(Fo=1,Fi=2147483647),Fi}var Mi,Mo;function vh(){if(Mo)return Mi;Mo=1;var f=Me,l=gh();return Mi=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},Mi}var No;function dh(){if(No)return qo;No=1;var f=hi(),l=Mt,i=Ii(),p=Eo(),m=vh(),d=Ne,v=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(b,q,F){var I,M,$,C;b=m(b),b&&(I=_(null),M=F.async&&d.async||F.promise&&d.promise?"async":"",q.on("set"+M,function(P){I[P]=setTimeout(function(){q.delete(P)},b),typeof I[P].unref=="function"&&I[P].unref(),C&&(C[P]&&C[P]!=="nextTick"&&clearTimeout(C[P]),C[P]=setTimeout(function(){delete C[P]},$),typeof C[P].unref=="function"&&C[P].unref())}),q.on("delete"+M,function(P){clearTimeout(I[P]),delete I[P],C&&(C[P]!=="nextTick"&&clearTimeout(C[P]),delete C[P])}),F.preFetch&&(F.preFetch===!0||isNaN(F.preFetch)?$=.333:$=y(w(Number(F.preFetch),1),0),$&&(C={},$=(1-$)*b,q.on("get"+M,function(P,L,A){C[P]||(C[P]="nextTick",i(function(){var E;C[P]==="nextTick"&&(delete C[P],q.delete(P),F.async&&(L=f(L),L.push(v)),E=q.memoized.apply(A,L),F.promise&&p(E)&&(typeof E.done=="function"?E.done(v,v):E.then(v,v)))}))}))),q.on("clear"+M,function(){l(I,function(P){clearTimeout(P)}),I={},C&&(l(C,function(P){P!=="nextTick"&&clearTimeout(P)}),C={})}))},qo}var $o={},Ni,Do;function _h(){if(Do)return Ni;Do=1;var f=Me,l=Object.create,i=Object.prototype.hasOwnProperty;return Ni=function(p){var m=0,d=1,v=l(null),y=l(null),w=0,_;return p=f(p),{hit:function(b){var q=y[b],F=++w;if(v[F]=b,y[b]=F,!q)return++m,m<=p?void 0:(b=v[d],_(b),b);if(delete v[q],d===q)for(;!i.call(v,++d););},delete:_=function(b){var q=y[b];if(q&&(delete v[q],delete y[b],--m,d===q)){if(!m){w=0,d=1;return}for(;!i.call(v,++d););}},clear:function(){m=0,d=1,v=l(null),y=l(null),w=0}}},Ni}var Wo;function mh(){if(Wo)return $o;Wo=1;var f=Me,l=_h(),i=Ne;return i.max=function(p,m,d){var v,y,w;p=f(p),p&&(y=l(p),v=d.async&&i.async||d.promise&&i.promise?"async":"",m.on("set"+v,w=function(_){_=y.hit(_),_!==void 0&&m.delete(_)}),m.on("get"+v,w),m.on("delete"+v,y.delete),m.on("clear"+v,y.clear))},$o}var Bo={},Uo;function yh(){if(Uo)return Bo;Uo=1;var f=$e,l=Ne,i=Object.create,p=Object.defineProperties;return l.refCounter=function(m,d,v){var y,w;y=i(null),w=v.async&&l.async||v.promise&&l.promise?"async":"",d.on("set"+w,function(_,b){y[_]=b||1}),d.on("get"+w,function(_){++y[_]}),d.on("delete"+w,function(_){delete y[_]}),d.on("clear"+w,function(){y={}}),p(d.memoized,{deleteRef:f(function(){var _=d.get(arguments);return _===null||!y[_]?null:--y[_]?!1:(d.delete(_),!0)}),getRefCount:f(function(){var _=d.get(arguments);return _===null||!y[_]?0:y[_]})})},Bo}var wh=pf,xh=vf,bh=Jc,Sh=function(f){var l=wh(arguments[1]),i;return l.normalizer||(i=l.length=xh(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=jc():i>1&&(l.normalizer=kc()(i)):i===!1?l.normalizer=rh()():i===1?l.normalizer=ih()():l.normalizer=uh()(i))),l.async&&fh(),l.promise&&hh(),l.dispose&&ph(),l.maxAge&&dh(),l.max&&mh(),l.refCounter&&yh(),bh(f,l)},Go=bs(Sh);const zo=Go(f=>{const l=Function("$",`return ${f};`);return i=>l(new Proxy(Gt(i),{get(p,m){var d;return(d=p[m])==null?void 0:d.call(p,{})}}))},{primitive:!0}),Ah=/^\{\{\s*/,Oh=/^\s*\}\}/,$i=/\b\B/,Th=Go(f=>{const i=hf.parseStringTemplateGenerator({VARIABLE_START:Ah,VARIABLE_END:Oh,PIPE_START:$i,PIPE_PARAMETER_START:$i,QUOTED_STRING:$i})(f);return bn.join(i.literals,"")?p=>hf.evaluateParsedString(i,{},{},m=>zo(m)(p)):zo(i.variables[0].name)},{primitive:!0});function Di(f){switch(f==null?void 0:f.constructor){case Array:{const l=bn.map(f,Di);return i=>bn.map(l,p=>p(i))}case Object:{const l=bn.mapValues(f,Di);return i=>bn.mapValues(l,p=>p(i))}case String:return Th(f);default:return bn.constant(f)}}function Gt(f={}){return $r(f,l=>bn.isFunction(l)?l:Di(l))}function Ih(f={}){return new Proxy(f,{get:(l,i)=>()=>l[i]})}function Ho(f,l){const i=$r(l,p=>m=>p(Ho(Gt(m),f)));return{...f,...i}}function Ko(f,l,i={}){return f.flatMap(p=>{const{$:m}=p,d=Ho(Gt(i),Gt(p));return m in l?Ko(l[m],l,d):[d]})}const Rh=f=>f==null,Zo=f=>f.display!=="transient";function Eh({trace:f,context:l,view:i="main"}){var _,b,q,F;const p=Ko(((q=(b=(_=f==null?void 0:f.render)==null?void 0:_.views)==null?void 0:b[i])==null?void 0:q.components)??[],((F=f==null?void 0:f.render)==null?void 0:F.components)??{}),m=(I,M)=>bn.map(p,$=>$r($,C=>C(Ih({alpha:1,...l,...M,event:I})))),d=I=>I&&Object.hasOwn(I,"alpha")?I.alpha>0:!0,v=I=>M=>({component:M,meta:{source:"trace",step:I}}),y=bn.chain(f==null?void 0:f.events).map((I,M)=>({step:M,id:I.id,data:I,pId:I.pId})).groupBy("id").value(),w=bn.chain(f==null?void 0:f.events).map((I,M,$)=>{var A;const C=m(I,{step:M,parent:Rh(I.pId)?void 0:$[((A=bn.findLast(y[I.pId],E=>E.step<=M))==null?void 0:A.step)??0]}),P=C.filter(Zo),L=C.filter(bn.negate(Zo));return{persistent:P,transient:L}}).map(I=>bn.mapValues(I,M=>M.filter(d))).map((I,M)=>bn.mapValues(I,$=>$.map(v(M)))).value();return{stepsPersistent:bn.map(w,"persistent"),stepsTransient:bn.map(w,"transient")}}onmessage=({data:f})=>{postMessage(Eh(f))}})(); diff --git a/assets/parseYaml.worker-25aef2ce.js b/assets/parseYaml.worker-25aef2ce.js new file mode 100644 index 00000000..ef341c99 --- /dev/null +++ b/assets/parseYaml.worker-25aef2ce.js @@ -0,0 +1,149 @@ +(function(){"use strict";function un(i){if(i.__esModule)return i;var n=i.default;if(typeof n=="function"){var e=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(i).forEach(function(a){var t=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(e,a,t.get?t:{enumerable:!0,get:function(){return i[a]}})}),e}function J(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?J=function(n){return typeof n}:J=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},J(i)}function N(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function ot(i,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ae(i,n,e){return ut()?Ae=Reflect.construct:Ae=function(t,r,s){var o=[null];o.push.apply(o,r);var u=Function.bind.apply(t,o),f=new u;return s&&pe(f,s.prototype),f},Ae.apply(null,arguments)}function fn(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function Je(i){var n=typeof Map=="function"?new Map:void 0;return Je=function(a){if(a===null||!fn(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(a))return n.get(a);n.set(a,t)}function t(){return Ae(a,arguments,F(this).constructor)}return t.prototype=Object.create(a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),pe(t,a)},Je(i)}function q(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ft(i,n){return n&&(typeof n=="object"||typeof n=="function")?n:q(i)}function I(i){var n=ut();return function(){var a=F(i),t;if(n){var r=F(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return ft(this,t)}}function ln(i,n){for(;!Object.prototype.hasOwnProperty.call(i,n)&&(i=F(i),i!==null););return i}function Q(i,n,e){return typeof Reflect<"u"&&Reflect.get?Q=Reflect.get:Q=function(t,r,s){var o=ln(t,r);if(o){var u=Object.getOwnPropertyDescriptor(o,r);return u.get?u.get.call(s):u.value}},Q(i,n,e||i)}function ge(i,n){return lt(i)||vn(i,n)||Ve(i,n)||vt()}function de(i){return lt(i)||cn(i)||Ve(i)||vt()}function lt(i){if(Array.isArray(i))return i}function cn(i){if(typeof Symbol<"u"&&Symbol.iterator in Object(i))return Array.from(i)}function vn(i,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(i)))){var e=[],a=!0,t=!1,r=void 0;try{for(var s=i[Symbol.iterator](),o;!(a=(o=s.next()).done)&&(e.push(o.value),!(n&&e.length===n));a=!0);}catch(u){t=!0,r=u}finally{try{!a&&s.return!=null&&s.return()}finally{if(t)throw r}}return e}}function Ve(i,n){if(i){if(typeof i=="string")return ct(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ct(i,n)}}function ct(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,a=new Array(n);e"u"||i[Symbol.iterator]==null){if(Array.isArray(i)||(e=Ve(i))||n&&i&&typeof i.length=="number"){e&&(i=e);var a=0,t=function(){};return{s:t,n:function(){return a>=i.length?{done:!0}:{done:!1,value:i[a++]}},e:function(u){throw u},f:t}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r=!0,s=!1,o;return{s:function(){e=i[Symbol.iterator]()},n:function(){var u=e.next();return r=u.done,u},e:function(u){s=!0,o=u},f:function(){try{!r&&e.return!=null&&e.return()}finally{if(s)throw o}}}}var R={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},p={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},Me="tag:yaml.org,2002:",re={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function ht(i){for(var n=[0],e=i.indexOf(` +`);e!==-1;)e+=1,n.push(e),e=i.indexOf(` +`,e);return n}function pt(i){var n,e;return typeof i=="string"?(n=ht(i),e=i):(Array.isArray(i)&&(i=i[0]),i&&i.context&&(i.lineStarts||(i.lineStarts=ht(i.context.src)),n=i.lineStarts,e=i.context.src)),{lineStarts:n,src:e}}function qe(i,n){if(typeof i!="number"||i<0)return null;var e=pt(n),a=e.lineStarts,t=e.src;if(!a||!t||i>t.length)return null;for(var r=0;r=1)||i>a.length)return null;for(var r=a[i-1],s=a[i];s&&s>r&&t[s-1]===` +`;)--s;return t.slice(r,s)}function pn(i,n){var e=i.start,a=i.end,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,r=hn(e.line,n);if(!r)return null;var s=e.col;if(r.length>t)if(s<=t-10)r=r.substr(0,t-1)+"…";else{var o=Math.round(t/2);r.length>s+o&&(r=r.substr(0,s+o-1)+"…"),s-=r.length-t,r="…"+r.substr(1-t)}var u=1,f="";a&&(a.line===e.line&&s+(a.col-e.col)<=t+1?u=a.col-e.col:(u=Math.min(r.length+1,t)-s,f="…"));var l=s>1?" ".repeat(s-1):"",c="^".repeat(u);return"".concat(r,` +`).concat(l).concat(c).concat(f)}var C=function(){function i(n,e){N(this,i),this.start=n,this.end=e||n}return A(i,[{key:"isEmpty",value:function(){return typeof this.start!="number"||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,a){var t=this.start,r=this.end;if(e.length===0||r<=e[0])return this.origStart=t,this.origEnd=r,a;for(var s=a;st);)++s;this.origStart=t+s;for(var o=s;s=r);)++s;return this.origEnd=r+s,o}}],[{key:"copy",value:function(e){return new i(e.start,e.end)}}]),i}(),y=function(){function i(n,e,a){N(this,i),Object.defineProperty(this,"context",{value:a||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=e||[],this.type=n,this.value=null}return A(i,[{key:"getPropValue",value:function(e,a,t){if(!this.context)return null;var r=this.context.src,s=this.props[e];return s&&r[s.start]===a?r.slice(s.start+(t?1:0),s.end):null}},{key:"anchor",get:function(){for(var e=0;e0?e.join(` +`):null}},{key:"commentHasRequiredWhitespace",value:function(e){var a=this.context.src;if(this.header&&e===this.header.end||!this.valueRange)return!1;var t=this.valueRange.end;return e!==t||i.atBlank(a,t-1)}},{key:"hasComment",get:function(){if(this.context){for(var e=this.context.src,a=0;a=e.length||e[r]===` +`?t+` +`:t}},{key:"atDocumentBoundary",value:function(e,a,t){var r=e[a];if(!r)return!0;var s=e[a-1];if(s&&s!==` +`)return!1;if(t){if(r!==t)return!1}else if(r!==R.DIRECTIVES_END&&r!==R.DOCUMENT_END)return!1;var o=e[a+1],u=e[a+2];if(o!==r||u!==r)return!1;var f=e[a+3];return!f||f===` +`||f===" "||f===" "}},{key:"endOfIdentifier",value:function(e,a){for(var t=e[a],r=t==="<",s=r?[` +`," "," ",">"]:[` +`," "," ","[","]","{","}",","];t&&s.indexOf(t)===-1;)t=e[a+=1];return r&&t===">"&&(a+=1),a}},{key:"endOfIndent",value:function(e,a){for(var t=e[a];t===" ";)t=e[a+=1];return a}},{key:"endOfLine",value:function(e,a){for(var t=e[a];t&&t!==` +`;)t=e[a+=1];return a}},{key:"endOfWhiteSpace",value:function(e,a){for(var t=e[a];t===" "||t===" ";)t=e[a+=1];return a}},{key:"startOfLine",value:function(e,a){var t=e[a-1];if(t===` +`)return a;for(;t&&t!==` +`;)t=e[a-=1];return a+1}},{key:"endOfBlockIndent",value:function(e,a,t){var r=i.endOfIndent(e,t);if(r>t+a)return r;var s=i.endOfWhiteSpace(e,r),o=e[s];return!o||o===` +`?s:null}},{key:"atBlank",value:function(e,a,t){var r=e[a];return r===` +`||r===" "||r===" "||t&&!r}},{key:"nextNodeIsIndented",value:function(e,a,t){return!e||a<0?!1:a>0?!0:t&&e==="-"}},{key:"normalizeOffset",value:function(e,a){var t=e[a];return t?t!==` +`&&e[a-1]===` +`?a-1:i.endOfWhiteSpace(e,a):a}},{key:"foldNewline",value:function(e,a,t){for(var r=0,s=!1,o="",u=e[a+1];u===" "||u===" "||u===` +`;){switch(u){case` +`:r=0,a+=1,o+=` +`;break;case" ":r<=t&&(s=!0),a=i.endOfWhiteSpace(e,a+2)-1;break;case" ":r+=1,a+=1;break}u=e[a+1]}return o||(o=" "),u&&r<=t&&(s=!0),{fold:o,offset:a,error:s}}}]),i}(),fe=function(i){M(e,i);var n=I(e);function e(a,t,r){var s;if(N(this,e),!r||!(t instanceof y))throw new Error("Invalid arguments for new ".concat(a));return s=n.call(this),s.name=a,s.message=r,s.source=t,s}return A(e,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var t=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new C(this.offset,this.offset+1);var r=t&&qe(this.offset,t);if(r){var s={line:r.line,col:r.col+1};this.linePos={start:r,end:s}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var o=this.linePos.start,u=o.line,f=o.col;this.message+=" at line ".concat(u,", column ").concat(f);var l=t&&pn(this.linePos,t);l&&(this.message+=`: + +`.concat(l,` +`))}delete this.source}}}]),e}(Je(Error)),ye=function(i){M(e,i);var n=I(e);function e(a,t){return N(this,e),n.call(this,"YAMLReferenceError",a,t)}return e}(fe),k=function(i){M(e,i);var n=I(e);function e(a,t){return N(this,e),n.call(this,"YAMLSemanticError",a,t)}return e}(fe),x=function(i){M(e,i);var n=I(e);function e(a,t){return N(this,e),n.call(this,"YAMLSyntaxError",a,t)}return e}(fe),le=function(i){M(e,i);var n=I(e);function e(a,t){return N(this,e),n.call(this,"YAMLWarning",a,t)}return e}(fe),gt=function(i){M(e,i);var n=I(e);function e(){return N(this,e),n.apply(this,arguments)}return A(e,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var t=this.valueRange,r=t.start,s=t.end,o=this.context.src,u=o[s-1];rd?o.slice(d,l+1):c)}else f+=c}var m=o[r];switch(m){case" ":{var O="Plain value cannot start with a tab character",b=[new k(this,O)];return{errors:b,str:f}}case"@":case"`":{var _="Plain value cannot start with reserved character ".concat(m),P=[new k(this,_)];return{errors:P,str:f}}default:return f}}},{key:"parseBlockValue",value:function(t){for(var r=this.context,s=r.indent,o=r.inFlow,u=r.src,f=t,l=t,c=u[f];c===` +`&&!y.atDocumentBoundary(u,f+1);c=u[f]){var v=y.endOfBlockIndent(u,s,f+1);if(v===null||u[v]==="#")break;u[v]===` +`?f=v:(l=e.endOfLine(u,v,o),f=l)}return this.valueRange.isEmpty()&&(this.valueRange.start=t),this.valueRange.end=l,l}},{key:"parse",value:function(t,r){this.context=t;var s=t.inFlow,o=t.src,u=r,f=o[u];return f&&f!=="#"&&f!==` +`&&(u=e.endOfLine(o,r,s)),this.valueRange=new C(r,u),u=y.endOfWhiteSpace(o,u),u=this.parseComment(u),(!this.hasComment||this.valueRange.isEmpty())&&(u=this.parseBlockValue(u)),u}}],[{key:"endOfLine",value:function(t,r,s){for(var o=t[r],u=r;o&&o!==` +`&&!(s&&(o==="["||o==="]"||o==="{"||o==="}"||o===","));){var f=t[u+1];if(o===":"&&(!f||f===` +`||f===" "||f===" "||s&&f===",")||(o===" "||o===" ")&&f==="#")break;u+=1,o=f}return u}}]),e}(y),me=function(i){M(e,i);var n=I(e);function e(){return N(this,e),n.call(this,p.BLANK_LINE)}return A(e,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(t,r){return this.context=t,this.range=new C(r,r+1),r+1}}]),e}(y),Ge=function(i){M(e,i);var n=I(e);function e(a,t){var r;return N(this,e),r=n.call(this,a,t),r.node=null,r}return A(e,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(t,r){this.context=t;var s=t.parseNode,o=t.src,u=t.atLineStart,f=t.lineStart;!u&&this.type===p.SEQ_ITEM&&(this.error=new k(this,"Sequence items must not have preceding content on the same line"));for(var l=u?r-f:t.indent,c=y.endOfWhiteSpace(o,r+1),v=o[c],h=v==="#",g=[],d=null;v===` +`||v==="#";){if(v==="#"){var w=y.endOfLine(o,c+1);g.push(new C(c,w)),c=w}else{u=!0,f=c+1;var m=y.endOfWhiteSpace(o,f);o[m]===` +`&&g.length===0&&(d=new me,f=d.parse({src:o},f)),c=y.endOfIndent(o,f)}v=o[c]}if(y.nextNodeIsIndented(v,c-(f+l),this.type!==p.SEQ_ITEM)?this.node=s({atLineStart:u,inCollection:!1,indent:l,lineStart:f,parent:this},c):v&&f>r+1&&(c=f-1),this.node){if(d){var O=t.parent.items||t.parent.contents;O&&O.push(d)}g.length&&Array.prototype.push.apply(this.props,g),c=this.node.range.end}else if(h){var b=g[0];this.props.push(b),c=b.end}else c=y.endOfLine(o,r+1);var _=this.node?this.node.valueRange.end:c;return this.valueRange=new C(r,_),c}},{key:"setOrigRanges",value:function(t,r){return r=Q(F(e.prototype),"setOrigRanges",this).call(this,t,r),this.node?this.node.setOrigRanges(t,r):r}},{key:"toString",value:function(){var t=this.context.src,r=this.node,s=this.range,o=this.value;if(o!=null)return o;var u=r?t.slice(s.start,r.range.start)+String(r):t.slice(s.start,s.end);return y.addStringTerminator(t,s.end,u)}}]),e}(y),we=function(i){M(e,i);var n=I(e);function e(){return N(this,e),n.call(this,p.COMMENT)}return A(e,[{key:"parse",value:function(t,r){this.context=t;var s=this.parseComment(r);return this.range=new C(r,s),s}}]),e}(y);function He(i){for(var n=i;n instanceof Ge;)n=n.node;if(!(n instanceof dt))return null;for(var e=n.items.length,a=-1,t=e-1;t>=0;--t){var r=n.items[t];if(r.type===p.COMMENT){var s=r.context,o=s.indent,u=s.lineStart;if(o>0&&r.range.start>=u+o)break;a=t}else if(r.type===p.BLANK_LINE)a=t;else break}if(a===-1)return null;for(var f=n.items.splice(a,e-a),l=f[0].range.start;n.range.end=l,n.valueRange&&n.valueRange.end>l&&(n.valueRange.end=l),n!==i;)n=n.context.parent;return f}var dt=function(i){M(e,i);var n=I(e);function e(a){var t;N(this,e),t=n.call(this,a.type===p.SEQ_ITEM?p.SEQ:p.MAP);for(var r=a.props.length-1;r>=0;--r)if(a.props[r].start0}},{key:"parse",value:function(t,r){this.context=t;var s=t.parseNode,o=t.src,u=y.startOfLine(o,r),f=this.items[0];f.context.parent=this,this.valueRange=C.copy(f.valueRange);var l=f.range.start-f.context.lineStart,c=r;c=y.normalizeOffset(o,c);for(var v=o[c],h=y.endOfWhiteSpace(o,u)===c,g=!1;v;){for(;v===` +`||v==="#";){if(h&&v===` +`&&!g){var d=new me;if(c=d.parse({src:o},c),this.valueRange.end=c,c>=o.length){v=null;break}this.items.push(d),c-=1}else if(v==="#"){if(c=o.length){v=null;break}}if(u=c+1,c=y.endOfIndent(o,u),y.atBlank(o,c)){var m=y.endOfWhiteSpace(o,c),O=o[m];(!O||O===` +`||O==="#")&&(c=m)}v=o[c],h=!0}if(!v)break;if(c!==u+l&&(h||v!==":")){if(cr&&(c=u);break}else if(!this.error){var b="All collection items must start at the same column";this.error=new x(this,b)}}if(f.type===p.SEQ_ITEM){if(v!=="-"){u>r&&(c=u);break}}else if(v==="-"&&!this.error){var _=o[c+1];if(!_||_===` +`||_===" "||_===" "){var P="A collection cannot be both a mapping and a sequence";this.error=new x(this,P)}}var S=s({atLineStart:h,inCollection:!0,indent:l,lineStart:u,parent:this},c);if(!S)return c;if(this.items.push(S),this.valueRange.end=S.valueRange.end,c=y.normalizeOffset(o,S.range.end),v=o[c],h=!1,g=S.includesTrailingLines,v){for(var B=c-1,W=o[B];W===" "||W===" ";)W=o[--B];W===` +`&&(u=B+1,h=!0)}var V=He(S);V&&Array.prototype.push.apply(this.items,V)}return c}},{key:"setOrigRanges",value:function(t,r){return r=Q(F(e.prototype),"setOrigRanges",this).call(this,t,r),this.items.forEach(function(s){r=s.setOrigRanges(t,r)}),r}},{key:"toString",value:function(){var t=this.context.src,r=this.items,s=this.range,o=this.value;if(o!=null)return o;for(var u=t.slice(s.start,r[0].range.start)+String(r[0]),f=1;f=o+s?!0:u!=="#"&&u!==` +`?!1:e.nextContentHasIndent(t,r,s):!1}}]),e}(y),gn=function(i){M(e,i);var n=I(e);function e(){var a;return N(this,e),a=n.call(this,p.DIRECTIVE),a.name=null,a}return A(e,[{key:"parameters",get:function(){var t=this.rawValue;return t?t.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(t){for(var r=this.context.src,s=t,o=r[s];o&&o!==` +`&&o!==" "&&o!==" ";)o=r[s+=1];return this.name=r.slice(t,s),s}},{key:"parseParameters",value:function(t){for(var r=this.context.src,s=t,o=r[s];o&&o!==` +`&&o!=="#";)o=r[s+=1];return this.valueRange=new C(t,s),s}},{key:"parse",value:function(t,r){this.context=t;var s=this.parseName(r+1);return s=this.parseParameters(s),s=this.parseComment(s),this.range=new C(r,s),s}}]),e}(y),dn=function(i){M(e,i);var n=I(e);function e(){var a;return N(this,e),a=n.call(this,p.DOCUMENT),a.directives=null,a.contents=null,a.directivesEndMarker=null,a.documentEndMarker=null,a}return A(e,[{key:"parseDirectives",value:function(t){var r=this.context.src;this.directives=[];for(var s=!0,o=!1,u=t;!y.atDocumentBoundary(r,u,R.DIRECTIVES_END);)switch(u=e.startCommentOrEndBlankLine(r,u),r[u]){case` +`:if(s){var f=new me;u=f.parse({src:r},u),u0&&(this.contents=this.directives,this.directives=[]),u}return r[u]?(this.directivesEndMarker=new C(u,u+3),u+3):(o?this.error=new k(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u)}},{key:"parseContents",value:function(t){var r=this.context,s=r.parseNode,o=r.src;this.contents||(this.contents=[]);for(var u=t;o[u-1]==="-";)u-=1;var f=y.endOfWhiteSpace(o,t),l=u===t;for(this.valueRange=new C(f);!y.atDocumentBoundary(o,f,R.DOCUMENT_END);){switch(o[f]){case` +`:if(l){var c=new me;f=c.parse({src:o},f),f0&&((r.length>0||t[0].type===p.COMMENT)&&(o+=`--- +`),o+=t.join("")),o[o.length-1]!==` +`&&(o+=` +`),o}}],[{key:"startCommentOrEndBlankLine",value:function(t,r){var s=y.endOfWhiteSpace(t,r),o=t[s];return o==="#"||o===` +`?s:r}}]),e}(y),yn=function(i){M(e,i);var n=I(e);function e(){return N(this,e),n.apply(this,arguments)}return A(e,[{key:"parse",value:function(t,r){this.context=t;var s=t.src,o=y.endOfIdentifier(s,r+1);return this.valueRange=new C(r+1,o),o=y.endOfWhiteSpace(s,o),o=this.parseComment(o),o}}]),e}(y),ae={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},mn=function(i){M(e,i);var n=I(e);function e(a,t){var r;return N(this,e),r=n.call(this,a,t),r.blockIndent=null,r.chomping=ae.CLIP,r.header=null,r}return A(e,[{key:"includesTrailingLines",get:function(){return this.chomping===ae.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var t=this.valueRange,r=t.start,s=t.end,o=this.context,u=o.indent,f=o.src;if(this.valueRange.isEmpty())return"";for(var l=null,c=f[s-1];c===` +`||c===" "||c===" ";){if(s-=1,s<=r){if(this.chomping===ae.KEEP)break;return""}c===` +`&&(l=s),c=f[s-1]}var v=s+1;l&&(this.chomping===ae.KEEP?(v=l,s=this.valueRange.end):s=l);for(var h=u+this.blockIndent,g=this.type===p.BLOCK_FOLDED,d=!0,w="",m="",O=!1,b=r;bc&&(c=d);o[h]===` +`?f=h:f=l=y.endOfLine(o,h)}return this.chomping!==ae.KEEP&&(f=o[l]?l+1:l),this.valueRange=new C(t+1,f),f}},{key:"parse",value:function(t,r){this.context=t;var s=t.src,o=this.parseBlockHeader(r);return o=y.endOfWhiteSpace(s,o),o=this.parseComment(o),o=this.parseBlockValue(o),o}},{key:"setOrigRanges",value:function(t,r){return r=Q(F(e.prototype),"setOrigRanges",this).call(this,t,r),this.header?this.header.setOrigRange(t,r):r}}]),e}(y),wn=function(i){M(e,i);var n=I(e);function e(a,t){var r;return N(this,e),r=n.call(this,a,t),r.items=null,r}return A(e,[{key:"prevNodeIsJsonLike",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,r=this.items[t-1];return!!r&&(r.jsonLike||r.type===p.COMMENT&&this.prevNodeIsJsonLike(t-1))}},{key:"parse",value:function(t,r){this.context=t;var s=t.parseNode,o=t.src,u=t.indent,f=t.lineStart,l=o[r];this.items=[{char:l,offset:r}];var c=y.endOfWhiteSpace(o,r+1);for(l=o[c];l&&l!=="]"&&l!=="}";){switch(l){case` +`:{f=c+1;var v=y.endOfWhiteSpace(o,f);if(o[v]===` +`){var h=new me;f=h.parse({src:o},f),this.items.push(h)}if(c=y.endOfIndent(o,f),c<=f+u&&(l=o[c],cs.offset);)++o;s.origOffset=s.offset+o,r=o}}),r}},{key:"toString",value:function(){var t=this.context.src,r=this.items,s=this.range,o=this.value;if(o!=null)return o;var u=r.filter(function(c){return c instanceof y}),f="",l=s.start;return u.forEach(function(c){var v=t.slice(l,c.range.start);l=c.range.end,f+=v+String(c),f[f.length-1]===` +`&&t[l-1]!==` +`&&t[l]===` +`&&(l+=1)}),f+=t.slice(l,s.end),y.addStringTerminator(t,s.end,f)}}]),e}(y),On=function(i){M(e,i);var n=I(e);function e(){return N(this,e),n.apply(this,arguments)}return A(e,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var t=[],r=this.valueRange,s=r.start,o=r.end,u=this.context,f=u.indent,l=u.src;l[o-1]!=='"'&&t.push(new x(this,'Missing closing "quote'));for(var c="",v=s+1;vO?l.slice(O,v+1):h)}else c+=h}return t.length>0?{errors:t,str:c}:c}},{key:"parseCharCode",value:function(t,r,s){var o=this.context.src,u=o.substr(t,r),f=u.length===r&&/^[0-9a-fA-F]+$/.test(u),l=f?parseInt(u,16):NaN;return isNaN(l)?(s.push(new x(this,"Invalid escape sequence ".concat(o.substr(t-2,r+2)))),o.substr(t-2,r+2)):String.fromCodePoint(l)}},{key:"parse",value:function(t,r){this.context=t;var s=t.src,o=e.endOfQuote(s,r+1);return this.valueRange=new C(r,o),o=y.endOfWhiteSpace(s,o),o=this.parseComment(o),o}}],[{key:"endOfQuote",value:function(t,r){for(var s=t[r];s&&s!=='"';)r+=s==="\\"?2:1,s=t[r];return r+1}}]),e}(y),bn=function(i){M(e,i);var n=I(e);function e(){return N(this,e),n.apply(this,arguments)}return A(e,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var t=[],r=this.valueRange,s=r.start,o=r.end,u=this.context,f=u.indent,l=u.src;l[o-1]!=="'"&&t.push(new x(this,"Missing closing 'quote"));for(var c="",v=s+1;vO?l.slice(O,v+1):h)}else c+=h}return t.length>0?{errors:t,str:c}:c}},{key:"parse",value:function(t,r){this.context=t;var s=t.src,o=e.endOfQuote(s,r+1);return this.valueRange=new C(r,o),o=y.endOfWhiteSpace(s,o),o=this.parseComment(o),o}}],[{key:"endOfQuote",value:function(t,r){for(var s=t[r];s;)if(s==="'"){if(t[r+1]!=="'")break;s=t[r+=2]}else s=t[r+=1];return r+1}}]),e}(y);function Sn(i,n){switch(i){case p.ALIAS:return new yn(i,n);case p.BLOCK_FOLDED:case p.BLOCK_LITERAL:return new mn(i,n);case p.FLOW_MAP:case p.FLOW_SEQ:return new wn(i,n);case p.MAP_KEY:case p.MAP_VALUE:case p.SEQ_ITEM:return new Ge(i,n);case p.COMMENT:case p.PLAIN:return new gt(i,n);case p.QUOTE_DOUBLE:return new On(i,n);case p.QUOTE_SINGLE:return new bn(i,n);default:return null}}var kn=function(){function i(){var n=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.atLineStart,r=a.inCollection,s=a.inFlow,o=a.indent,u=a.lineStart,f=a.parent;N(this,i),$(this,"parseNode",function(l,c){if(y.atDocumentBoundary(n.src,c))return null;var v=new i(n,l),h=v.parseProps(c),g=h.props,d=h.type,w=h.valueStart,m=Sn(d,g),O=m.parse(v,w);if(m.range=new C(c,O),O<=c&&(m.error=new Error("Node#parse consumed no characters"),m.error.parseEnd=O,m.error.source=m,m.range.end=c+1),v.nodeStartsCollection(m)){!m.error&&!v.atLineStart&&v.parent.type===p.DOCUMENT&&(m.error=new x(m,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var b=new dt(m);return O=b.parse(new i(v),O),b.range=new C(c,O),b}return m}),this.atLineStart=t??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=o??e.indent,this.lineStart=u??e.lineStart,this.parent=f??(e.parent||{}),this.root=e.root,this.src=e.src}return A(i,[{key:"nodeStartsCollection",value:function(e){var a=this.inCollection,t=this.inFlow,r=this.src;if(a||t)return!1;if(e instanceof Ge)return!0;var s=e.range.end;return r[s]===` +`||r[s-1]===` +`?!1:(s=y.endOfWhiteSpace(r,s),r[s]===":")}},{key:"parseProps",value:function(e){var a=this.inFlow,t=this.parent,r=this.src,s=[],o=!1;e=this.atLineStart?y.endOfIndent(r,e):y.endOfWhiteSpace(r,e);for(var u=r[e];u===R.ANCHOR||u===R.COMMENT||u===R.TAG||u===` +`;){if(u===` +`){var f=e,l=void 0;do l=f+1,f=y.endOfIndent(r,l);while(r[f]===` +`);var c=f-(l+this.indent),v=t.type===p.SEQ_ITEM&&t.context.atLineStart;if(r[f]!=="#"&&!y.nextNodeIsIndented(r[f],c,!v))break;this.atLineStart=!0,this.lineStart=l,o=!1,e=f}else if(u===R.COMMENT){var h=y.endOfLine(r,e+1);s.push(new C(e,h)),e=h}else{var g=y.endOfIdentifier(r,e+1);u===R.TAG&&r[g]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,g+13))&&(g=y.endOfIdentifier(r,g+5)),s.push(new C(e,g)),o=!0,e=y.endOfWhiteSpace(r,g)}u=r[e]}o&&u===":"&&y.atBlank(r,e+1,!0)&&(e-=1);var d=i.parseType(r,e,a);return{props:s,type:d,valueStart:e}}}],[{key:"parseType",value:function(e,a,t){switch(e[a]){case"*":return p.ALIAS;case">":return p.BLOCK_FOLDED;case"|":return p.BLOCK_LITERAL;case"{":return p.FLOW_MAP;case"[":return p.FLOW_SEQ;case"?":return!t&&y.atBlank(e,a+1,!0)?p.MAP_KEY:p.PLAIN;case":":return!t&&y.atBlank(e,a+1,!0)?p.MAP_VALUE:p.PLAIN;case"-":return!t&&y.atBlank(e,a+1,!0)?p.SEQ_ITEM:p.PLAIN;case'"':return p.QUOTE_DOUBLE;case"'":return p.QUOTE_SINGLE;default:return p.PLAIN}}}]),i}();function ze(i){var n=[];i.indexOf("\r")!==-1&&(i=i.replace(/\r\n?/g,function(s,o){return s.length>1&&n.push(o),` +`}));var e=[],a=0;do{var t=new dn,r=new kn({src:i});a=t.parse(r,a),e.push(t)}while(a=0;--t){var r=n[t];if(Number.isInteger(r)&&r>=0){var s=[];s[r]=a,a=s}else{var o={};Object.defineProperty(o,r,{value:a,writable:!0,enumerable:!0,configurable:!0}),a=o}}return i.createNode(a,!1)}var Oe=function(n){return n==null||J(n)==="object"&&n[Symbol.iterator]().next().done},j=function(i){M(e,i);var n=I(e);function e(a){var t;return N(this,e),t=n.call(this),$(q(t),"items",[]),t.schema=a,t}return A(e,[{key:"addIn",value:function(t,r){if(Oe(t))this.add(r);else{var s=de(t),o=s[0],u=s.slice(1),f=this.get(o,!0);if(f instanceof e)f.addIn(u,r);else if(f===void 0&&this.schema)this.set(o,yt(this.schema,u,r));else throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(u))}}},{key:"deleteIn",value:function(t){var r=de(t),s=r[0],o=r.slice(1);if(o.length===0)return this.delete(s);var u=this.get(s,!0);if(u instanceof e)return u.deleteIn(o);throw new Error("Expected YAML collection at ".concat(s,". Remaining path: ").concat(o))}},{key:"getIn",value:function(t,r){var s=de(t),o=s[0],u=s.slice(1),f=this.get(o,!0);return u.length===0?!r&&f instanceof L?f.value:f:f instanceof e?f.getIn(u,r):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(t){if(!t||t.type!=="PAIR")return!1;var r=t.value;return r==null||r instanceof L&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}},{key:"hasIn",value:function(t){var r=de(t),s=r[0],o=r.slice(1);if(o.length===0)return this.has(s);var u=this.get(s,!0);return u instanceof e?u.hasIn(o):!1}},{key:"setIn",value:function(t,r){var s=de(t),o=s[0],u=s.slice(1);if(u.length===0)this.set(o,r);else{var f=this.get(o,!0);if(f instanceof e)f.setIn(u,r);else if(f===void 0&&this.schema)this.set(o,yt(this.schema,u,r));else throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(u))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(t,r,s,o){var u=this,f=r.blockItem,l=r.flowChars,c=r.isMap,v=r.itemIndent,h=t,g=h.indent,d=h.indentStep,w=h.stringify,m=this.type===p.FLOW_MAP||this.type===p.FLOW_SEQ||t.inFlow;m&&(v+=d);var O=c&&this.hasAllNullValues();t=Object.assign({},t,{allNullValues:O,indent:v,inFlow:m,type:null});var b=!1,_=!1,P=this.items.reduce(function(G,D,Sr){var Ke;D&&(!b&&D.spaceBefore&&G.push({type:"comment",str:""}),D.commentBefore&&D.commentBefore.match(/^.*$/gm).forEach(function(kr){G.push({type:"comment",str:"#".concat(kr)})}),D.comment&&(Ke=D.comment),m&&(!b&&D.spaceBefore||D.commentBefore||D.comment||D.key&&(D.key.commentBefore||D.key.comment)||D.value&&(D.value.commentBefore||D.value.comment))&&(_=!0)),b=!1;var Le=w(D,t,function(){return Ke=null},function(){return b=!0});return m&&!_&&Le.includes(` +`)&&(_=!0),m&&Sre.maxFlowStringSingleLineLength){S=B;var Y=T(V),Z;try{for(Y.s();!(Z=Y.n()).done;){var Qe=Z.value;S+=Qe?` +`.concat(d).concat(g).concat(Qe):` +`}}catch(G){Y.e(G)}finally{Y.f()}S+=` +`.concat(g).concat(W)}else S="".concat(B," ").concat(V.join(" ")," ").concat(W)}else{var an=P.map(f);S=an.shift();var Ue=T(an),sn;try{for(Ue.s();!(sn=Ue.n()).done;){var on=sn.value;S+=on?` +`.concat(g).concat(on):` +`}}catch(G){Ue.e(G)}finally{Ue.f()}}return this.comment?(S+=` +`+this.comment.replace(/^/gm,"".concat(g,"#")),s&&s()):b&&o&&o(),S}}]),e}(U);$(j,"maxFlowStringSingleLineLength",60);function Ie(i){var n=i instanceof L?i.value:i;return n&&typeof n=="string"&&(n=Number(n)),Number.isInteger(n)&&n>=0?n:null}var z=function(i){M(e,i);var n=I(e);function e(){return N(this,e),n.apply(this,arguments)}return A(e,[{key:"add",value:function(t){this.items.push(t)}},{key:"delete",value:function(t){var r=Ie(t);if(typeof r!="number")return!1;var s=this.items.splice(r,1);return s.length>0}},{key:"get",value:function(t,r){var s=Ie(t);if(typeof s=="number"){var o=this.items[s];return!r&&o instanceof L?o.value:o}}},{key:"has",value:function(t){var r=Ie(t);return typeof r=="number"&&r1&&arguments[1]!==void 0?arguments[1]:null;return N(this,e),t=n.call(this),t.key=a,t.value=r,t.type=e.Type.PAIR,t}return A(e,[{key:"commentBefore",get:function(){return this.key instanceof U?this.key.commentBefore:void 0},set:function(t){if(this.key==null&&(this.key=new L(null)),this.key instanceof U)this.key.commentBefore=t;else{var r="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(r)}}},{key:"addToJSMap",value:function(t,r){var s=H(this.key,"",t);if(r instanceof Map){var o=H(this.value,s,t);r.set(s,o)}else if(r instanceof Set)r.add(s);else{var u=Nn(this.key,s,t),f=H(this.value,u,t);u in r?Object.defineProperty(r,u,{value:f,writable:!0,enumerable:!0,configurable:!0}):r[u]=f}return r}},{key:"toJSON",value:function(t,r){var s=r&&r.mapAsMap?new Map:{};return this.addToJSMap(r,s)}},{key:"toString",value:function(t,r,s){if(!t||!t.doc)return JSON.stringify(this);var o=t.doc.options,u=o.indent,f=o.indentSeq,l=o.simpleKeys,c=this.key,v=this.value,h=c instanceof U&&c.comment;if(l){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(c instanceof j){var g="With simple keys, collection cannot be used as a key value";throw new Error(g)}}var d=!l&&(!c||h||(c instanceof U?c instanceof j||c.type===p.BLOCK_FOLDED||c.type===p.BLOCK_LITERAL:J(c)==="object")),w=t,m=w.doc,O=w.indent,b=w.indentStep,_=w.stringify;t=Object.assign({},t,{implicitKey:!d,indent:O+b});var P=!1,S=_(c,t,function(){return h=null},function(){return P=!0});if(S=ce(S,t.indent,h),!d&&S.length>1024){if(l)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(t.allNullValues&&!l)return this.comment?(S=ce(S,t.indent,this.comment),r&&r()):P&&!h&&s&&s(),t.inFlow&&!d?S:"? ".concat(S);S=d?"? ".concat(S,` +`).concat(O,":"):"".concat(S,":"),this.comment&&(S=ce(S,t.indent,this.comment),r&&r());var B="",W=null;if(v instanceof U){if(v.spaceBefore&&(B=` +`),v.commentBefore){var V=v.commentBefore.replace(/^/gm,"".concat(t.indent,"#"));B+=` +`.concat(V)}W=v.comment}else v&&J(v)==="object"&&(v=m.schema.createNode(v,!0));t.implicitKey=!1,!d&&!this.comment&&v instanceof L&&(t.indentAtStart=S.length+1),P=!1,!f&&u>=2&&!t.inFlow&&!d&&v instanceof z&&v.type!==p.FLOW_SEQ&&!v.tag&&!m.anchors.getName(v)&&(t.indent=t.indent.substr(2));var Y=_(v,t,function(){return W=null},function(){return P=!0}),Z=" ";if(B||this.comment)Z="".concat(B,` +`).concat(t.indent);else if(!d&&v instanceof j){var Qe=Y[0]==="["||Y[0]==="{";(!Qe||Y.includes(` +`))&&(Z=` +`.concat(t.indent))}else Y[0]===` +`&&(Z="");return P&&!W&&s&&s(),ce(S+Z+Y,t.indent,W)}}]),e}(U);$(E,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Ln=function i(n,e){if(n instanceof X){var a=e.get(n.source);return a.count*a.aliasCount}else if(n instanceof j){var t=0,r=T(n.items),s;try{for(r.s();!(s=r.n()).done;){var o=s.value,u=i(o,e);u>t&&(t=u)}}catch(c){r.e(c)}finally{r.f()}return t}else if(n instanceof E){var f=i(n.key,e),l=i(n.value,e);return Math.max(f,l)}return 1},X=function(i){M(e,i);var n=I(e);function e(a){var t;return N(this,e),t=n.call(this),t.source=a,t.type=p.ALIAS,t}return A(e,[{key:"tag",set:function(t){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(t,r){if(!r)return H(this.source,t,r);var s=r.anchors,o=r.maxAliasCount,u=s.get(this.source);if(!u||u.res===void 0){var f="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new ye(this.cstNode,f):new ReferenceError(f)}if(o>=0&&(u.count+=1,u.aliasCount===0&&(u.aliasCount=Ln(this.source,s)),u.count*u.aliasCount>o)){var l="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new ye(this.cstNode,l):new ReferenceError(l)}return u.res}},{key:"toString",value:function(t){return e.stringify(this,t)}}],[{key:"stringify",value:function(t,r){var s=t.range,o=t.source,u=r.anchors,f=r.doc,l=r.implicitKey,c=r.inStringifyKey,v=Object.keys(u).find(function(g){return u[g]===o});if(!v&&c&&(v=f.anchors.getName(o)||f.anchors.newName()),v)return"*".concat(v).concat(l?" ":"");var h=f.anchors.getName(o)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(h," [").concat(s,"]"))}}]),e}(U);$(X,"default",!0);function oe(i,n){var e=n instanceof L?n.value:n,a=T(i),t;try{for(a.s();!(t=a.n()).done;){var r=t.value;if(r instanceof E&&(r.key===n||r.key===e||r.key&&r.key.value===e))return r}}catch(s){a.e(s)}finally{a.f()}}var K=function(i){M(e,i);var n=I(e);function e(){return N(this,e),n.apply(this,arguments)}return A(e,[{key:"add",value:function(t,r){t?t instanceof E||(t=new E(t.key||t,t.value)):t=new E(t);var s=oe(this.items,t.key),o=this.schema&&this.schema.sortMapEntries;if(s)if(r)s.value=t.value;else throw new Error("Key ".concat(t.key," already set"));else if(o){var u=this.items.findIndex(function(f){return o(t,f)<0});u===-1?this.items.push(t):this.items.splice(u,0,t)}else this.items.push(t)}},{key:"delete",value:function(t){var r=oe(this.items,t);if(!r)return!1;var s=this.items.splice(this.items.indexOf(r),1);return s.length>0}},{key:"get",value:function(t,r){var s=oe(this.items,t),o=s&&s.value;return!r&&o instanceof L?o.value:o}},{key:"has",value:function(t){return!!oe(this.items,t)}},{key:"set",value:function(t,r){this.add(new E(t,r),!0)}},{key:"toJSON",value:function(t,r,s){var o=s?new s:r&&r.mapAsMap?new Map:{};r&&r.onCreate&&r.onCreate(o);var u=T(this.items),f;try{for(u.s();!(f=u.n()).done;){var l=f.value;l.addToJSMap(r,o)}}catch(c){u.e(c)}finally{u.f()}return o}},{key:"toString",value:function(t,r,s){if(!t)return JSON.stringify(this);var o=T(this.items),u;try{for(o.s();!(u=o.n()).done;){var f=u.value;if(!(f instanceof E))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(f)," instead"))}}catch(l){o.e(l)}finally{o.f()}return Q(F(e.prototype),"toString",this).call(this,t,{blockItem:function(c){return c.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:t.indent||""},r,s)}}]),e}(j),mt="<<",wt=function(i){M(e,i);var n=I(e);function e(a){var t;if(N(this,e),a instanceof E){var r=a.value;r instanceof z||(r=new z,r.items.push(a.value),r.range=a.value.range),t=n.call(this,a.key,r),t.range=a.range}else t=n.call(this,new L(mt),new z);return t.type=E.Type.MERGE_PAIR,ft(t)}return A(e,[{key:"addToJSMap",value:function(t,r){var s=T(this.value.items),o;try{for(s.s();!(o=s.n()).done;){var u=o.value.source;if(!(u instanceof K))throw new Error("Merge sources must be maps");var f=u.toJSON(null,t,Map),l=T(f),c;try{for(l.s();!(c=l.n()).done;){var v=ge(c.value,2),h=v[0],g=v[1];r instanceof Map?r.has(h)||r.set(h,g):r instanceof Set?r.add(h):Object.prototype.hasOwnProperty.call(r,h)||Object.defineProperty(r,h,{value:g,writable:!0,enumerable:!0,configurable:!0})}}catch(d){l.e(d)}finally{l.f()}}}catch(d){s.e(d)}finally{s.f()}return r}},{key:"toString",value:function(t,r){var s=this.value;if(s.items.length>1)return Q(F(e.prototype),"toString",this).call(this,t,r);this.value=s.items[0];var o=Q(F(e.prototype),"toString",this).call(this,t,r);return this.value=s,o}}]),e}(E),be={defaultType:p.BLOCK_LITERAL,lineWidth:76},ee={trueStr:"true",falseStr:"false"},ie={asBigInt:!1},ve={nullStr:"null"},te={defaultType:p.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Ze(i,n,e){var a=T(n),t;try{for(a.s();!(t=a.n()).done;){var r=t.value,s=r.format,o=r.test,u=r.resolve;if(o){var f=i.match(o);if(f){var l=u.apply(null,f);return l instanceof L||(l=new L(l)),s&&(l.format=s),l}}}}catch(c){a.e(c)}finally{a.f()}return e&&(i=e(i)),new L(i)}var Ot="flow",Xe="block",Te="quoted",bt=function(n,e){for(var a=n[e+1];a===" "||a===" ";){do a=n[e+=1];while(a&&a!==` +`);a=n[e+1]}return e};function Pe(i,n,e,a){var t=a.indentAtStart,r=a.lineWidth,s=r===void 0?80:r,o=a.minContentWidth,u=o===void 0?20:o,f=a.onFold,l=a.onOverflow;if(!s||s<0)return i;var c=Math.max(1+u,1+s-n.length);if(i.length<=c)return i;var v=[],h={},g=s-n.length;typeof t=="number"&&(t>s-Math.max(2,u)?v.push(0):g=s-t);var d=void 0,w=void 0,m=!1,O=-1,b=-1,_=-1;e===Xe&&(O=bt(i,O),O!==-1&&(g=O+c));for(var P;P=i[O+=1];){if(e===Te&&P==="\\"){switch(b=O,i[O+1]){case"x":O+=3;break;case"u":O+=5;break;case"U":O+=9;break;default:O+=1}_=O}if(P===` +`)e===Xe&&(O=bt(i,O)),g=O+c,d=void 0;else{if(P===" "&&w&&w!==" "&&w!==` +`&&w!==" "){var S=i[O+1];S&&S!==" "&&S!==` +`&&S!==" "&&(d=O)}if(O>=g)if(d)v.push(d),g=d+c,d=void 0;else if(e===Te){for(;w===" "||w===" ";)w=P,P=i[O+=1],m=!0;var B=O>_+1?O-2:b-1;if(h[B])return i;v.push(B),h[B]=!0,g=B+c,d=void 0}else m=!0}w=P}if(m&&l&&l(),v.length===0)return i;f&&f();for(var W=i.slice(0,v[0]),V=0;Va)return!0;if(s=r+1,t-s<=a)return!1}return!0}function ue(i,n){var e=n.implicitKey,a=te.doubleQuoted,t=a.jsonEncoding,r=a.minMultiLineLength,s=JSON.stringify(i);if(t)return s;for(var o=n.indent||(_e(i)?" ":""),u="",f=0,l=0,c=s[l];c;c=s[++l])if(c===" "&&s[l+1]==="\\"&&s[l+2]==="n"&&(u+=s.slice(f,l)+"\\ ",l+=1,f=l,c="\\"),c==="\\")switch(s[l+1]){case"u":{u+=s.slice(f,l);var v=s.substr(l+2,4);switch(v){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:v.substr(0,2)==="00"?u+="\\x"+v.substr(2):u+=s.substr(l,6)}l+=5,f=l+1}break;case"n":if(e||s[l+2]==='"'||s.length";if(!s)return l+` +`;var c="",v="";if(s=s.replace(/[\n\t ]*$/,function(g){var d=g.indexOf(` +`);return d===-1?l+="-":(s===g||d!==g.length-1)&&(l+="+",a&&a()),v=g.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(g){g.indexOf(" ")!==-1&&(l+=u);var d=g.match(/ +$/);return d?(c=g.slice(0,-d[0].length),d[0]):(c=g,"")}),v&&(v=v.replace(/\n+(?!\n|$)/g,"$&".concat(o))),c&&(c=c.replace(/\n+/g,"$&".concat(o))),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),e&&e()),!s)return"".concat(l).concat(u,` +`).concat(o).concat(v);if(f)return s=s.replace(/\n+/g,"$&".concat(o)),"".concat(l,` +`).concat(o).concat(c).concat(s).concat(v);s=s.replace(/\n+/g,` +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(o));var h=Pe("".concat(c).concat(s).concat(v),o,Xe,te.fold);return"".concat(l,` +`).concat(o).concat(h)}function Mn(i,n,e,a){var t=i.comment,r=i.type,s=i.value,o=n.actualString,u=n.implicitKey,f=n.indent,l=n.inFlow;if(u&&/[\n[\]{},]/.test(s)||l&&/[[\]{},]/.test(s))return ue(s,n);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return u||l||s.indexOf(` +`)===-1?s.indexOf('"')!==-1&&s.indexOf("'")===-1?St(s,n):ue(s,n):Ce(i,n,e,a);if(!u&&!l&&r!==p.PLAIN&&s.indexOf(` +`)!==-1)return Ce(i,n,e,a);if(f===""&&_e(s))return n.forceBlockIndent=!0,Ce(i,n,e,a);var c=s.replace(/\n+/g,`$& +`.concat(f));if(o){var v=n.doc.schema.tags,h=Ze(c,v,v.scalarFallback).value;if(typeof h!="string")return ue(s,n)}var g=u?c:Pe(c,f,Ot,et(n));return t&&!l&&(g.indexOf(` +`)!==-1||t.indexOf(` +`)!==-1)?(e&&e(),En(g,f,t)):g}function tt(i,n,e,a){var t=te.defaultType,r=n.implicitKey,s=n.inFlow,o=i,u=o.type,f=o.value;typeof f!="string"&&(f=String(f),i=Object.assign({},i,{value:f}));var l=function(h){switch(h){case p.BLOCK_FOLDED:case p.BLOCK_LITERAL:return Ce(i,n,e,a);case p.QUOTE_DOUBLE:return ue(f,n);case p.QUOTE_SINGLE:return St(f,n);case p.PLAIN:return Mn(i,n,e,a);default:return null}};(u!==p.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(f)||(r||s)&&(u===p.BLOCK_FOLDED||u===p.BLOCK_LITERAL))&&(u=p.QUOTE_DOUBLE);var c=l(u);if(c===null&&(c=l(t),c===null))throw new Error("Unsupported default string type ".concat(t));return c}function ne(i){var n=i.format,e=i.minFractionDigits,a=i.tag,t=i.value;if(typeof t=="bigint")return String(t);if(!isFinite(t))return isNaN(t)?".nan":t<0?"-.inf":".inf";var r=JSON.stringify(t);if(!n&&e&&(!a||a==="tag:yaml.org,2002:float")&&/^\d/.test(r)){var s=r.indexOf(".");s<0&&(s=r.length,r+=".");for(var o=e-(r.length-s-1);o-- >0;)r+="0"}return r}function kt(i,n){var e,a;switch(n.type){case p.FLOW_MAP:e="}",a="flow map";break;case p.FLOW_SEQ:e="]",a="flow sequence";break;default:i.push(new k(n,"Not a flow collection!?"));return}for(var t,r=n.items.length-1;r>=0;--r){var s=n.items[r];if(!s||s.type!==p.COMMENT){t=s;break}}if(t&&t.char!==e){var o="Expected ".concat(a," to end with ").concat(e),u;typeof t.offset=="number"?(u=new k(n,o),u.offset=t.offset+1):(u=new k(t,o),t.range&&t.range.end&&(u.offset=t.range.end-t.range.start)),i.push(u)}}function Et(i,n){var e=n.context.src[n.range.start-1];if(e!==` +`&&e!==" "&&e!==" "){var a="Comments must be separated from other tokens by white space characters";i.push(new k(n,a))}}function Nt(i,n){var e=String(n),a=e.substr(0,8)+"..."+e.substr(-8);return new k(i,'The "'.concat(a,'" key is too long'))}function Lt(i,n){var e=T(n),a;try{for(e.s();!(a=e.n()).done;){var t=a.value,r=t.afterKey,s=t.before,o=t.comment,u=i.items[s];u?(r&&u.value&&(u=u.value),o===void 0?(r||!u.commentBefore)&&(u.spaceBefore=!0):u.commentBefore?u.commentBefore+=` +`+o:u.commentBefore=o):o!==void 0&&(i.comment?i.comment+=` +`+o:i.comment=o)}}catch(f){e.e(f)}finally{e.f()}}function Se(i,n){var e=n.strValue;return e?typeof e=="string"?e:(e.errors.forEach(function(a){a.source||(a.source=n),i.errors.push(a)}),e.str):""}function In(i,n){var e=n.tag,a=e.handle,t=e.suffix,r=i.tagPrefixes.find(function(u){return u.handle===a});if(!r){var s=i.getDefaults().tagPrefixes;if(s&&(r=s.find(function(u){return u.handle===a})),!r)throw new k(n,"The ".concat(a," tag handle is non-default and was not declared."))}if(!t)throw new k(n,"The ".concat(a," tag has no suffix."));if(a==="!"&&(i.version||i.options.version)==="1.0"){if(t[0]==="^")return i.warnings.push(new le(n,"YAML 1.0 ^ tag expansion is not supported")),t;if(/[:/]/.test(t)){var o=t.match(/^([a-z0-9-]+)\/(.*)/i);return o?"tag:".concat(o[1],".yaml.org,2002:").concat(o[2]):"tag:".concat(t)}}return r.prefix+decodeURIComponent(t)}function Tn(i,n){var e=n.tag,a=n.type,t=!1;if(e){var r=e.handle,s=e.suffix,o=e.verbatim;if(o){if(o!=="!"&&o!=="!!")return o;var u="Verbatim tags aren't resolved, so ".concat(o," is invalid.");i.errors.push(new k(n,u))}else if(r==="!"&&!s)t=!0;else try{return In(i,n)}catch(f){i.errors.push(f)}}switch(a){case p.BLOCK_FOLDED:case p.BLOCK_LITERAL:case p.QUOTE_DOUBLE:case p.QUOTE_SINGLE:return re.STR;case p.FLOW_MAP:case p.MAP:return re.MAP;case p.FLOW_SEQ:case p.SEQ:return re.SEQ;case p.PLAIN:return t?re.STR:null;default:return null}}function At(i,n,e){var a=i.schema.tags,t=[],r=T(a),s;try{for(r.s();!(s=r.n()).done;){var o=s.value;if(o.tag===e)if(o.test)t.push(o);else{var u=o.resolve(i,n);return u instanceof j?u:new L(u)}}}catch(l){r.e(l)}finally{r.f()}var f=Se(i,n);return typeof f=="string"&&t.length>0?Ze(f,t,a.scalarFallback):null}function Pn(i){var n=i.type;switch(n){case p.FLOW_MAP:case p.MAP:return re.MAP;case p.FLOW_SEQ:case p.SEQ:return re.SEQ;default:return re.STR}}function _n(i,n,e){try{var a=At(i,n,e);if(a)return e&&n.tag&&(a.tag=e),a}catch(u){return u.source||(u.source=n),i.errors.push(u),null}try{var t=Pn(n);if(!t)throw new Error("The tag ".concat(e," is unavailable"));var r="The tag ".concat(e," is unavailable, falling back to ").concat(t);i.warnings.push(new le(n,r));var s=At(i,n,t);return s.tag=e,s}catch(u){var o=new ye(n,u.message);return o.stack=u.stack,i.errors.push(o),null}}var Cn=function(n){if(!n)return!1;var e=n.type;return e===p.MAP_KEY||e===p.MAP_VALUE||e===p.SEQ_ITEM};function Rn(i,n){var e={before:[],after:[]},a=!1,t=!1,r=Cn(n.context.parent)?n.context.parent.props.concat(n.props):n.props,s=T(r),o;try{for(s.s();!(o=s.n()).done;){var u=o.value,f=u.start,l=u.end;switch(n.context.src[f]){case R.COMMENT:{if(!n.commentHasRequiredWhitespace(f)){var c="Comments must be separated from other tokens by white space characters";i.push(new k(n,c))}var v=n.header,h=n.valueRange,g=h&&(f>h.start||v&&f>v.start)?e.after:e.before;g.push(n.context.src.slice(f+1,l));break}case R.ANCHOR:if(a){var d="A node can have at most one anchor";i.push(new k(n,d))}a=!0;break;case R.TAG:if(t){var w="A node can have at most one tag";i.push(new k(n,w))}t=!0;break}}}catch(m){s.e(m)}finally{s.f()}return{comments:e,hasAnchor:a,hasTag:t}}function Bn(i,n){var e=i.anchors,a=i.errors,t=i.schema;if(n.type===p.ALIAS){var r=n.rawValue,s=e.getNode(r);if(!s){var o="Aliased anchor not found: ".concat(r);return a.push(new ye(n,o)),null}var u=new X(s);return e._cstAliases.push(u),u}var f=Tn(i,n);if(f)return _n(i,n,f);if(n.type!==p.PLAIN){var l="Failed to resolve ".concat(n.type," node here");return a.push(new x(n,l)),null}try{var c=Se(i,n);return Ze(c,t.tags,t.tags.scalarFallback)}catch(v){return v.source||(v.source=n),a.push(v),null}}function se(i,n){if(!n)return null;n.error&&i.errors.push(n.error);var e=Rn(i.errors,n),a=e.comments,t=e.hasAnchor,r=e.hasTag;if(t){var s=i.anchors,o=n.anchor,u=s.getNode(o);u&&(s.map[s.newName(o)]=u),s.map[o]=n}if(n.type===p.ALIAS&&(t||r)){var f="An alias node must not specify any properties";i.errors.push(new k(n,f))}var l=Bn(i,n);if(l){l.range=[n.range.start,n.range.end],i.options.keepCstNodes&&(l.cstNode=n),i.options.keepNodeTypes&&(l.type=n.type);var c=a.before.join(` +`);c&&(l.commentBefore=l.commentBefore?"".concat(l.commentBefore,` +`).concat(c):c);var v=a.after.join(` +`);v&&(l.comment=l.comment?"".concat(l.comment,` +`).concat(v):v)}return n.resolved=l}function Mt(i,n){if(n.type!==p.MAP&&n.type!==p.FLOW_MAP){var e="A ".concat(n.type," node cannot be resolved as a mapping");return i.errors.push(new x(n,e)),null}var a=n.type===p.FLOW_MAP?Wn(i,n):jn(i,n),t=a.comments,r=a.items,s=new K;s.items=r,Lt(s,t);for(var o=!1,u=0;ut.valueRange.start||r[o]!==R.COMMENT)return!1;for(var u=a;u0){f=new gt(p.PLAIN,[]),f.context={parent:o,src:o.context.src};var l=o.range.start+1;if(f.range={start:l,end:l},f.valueRange={start:l,end:l},typeof o.range.origStart=="number"){var c=o.range.origStart+1;f.range.origStart=f.range.origEnd=c,f.valueRange.origStart=f.valueRange.origEnd=c}}var v=new E(t,se(i,f));Fn(o,v),a.push(v),t&&typeof r=="number"&&o.range.start>r+1024&&i.errors.push(Nt(n,t)),t=void 0,r=null}break;default:t!==void 0&&a.push(new E(t)),t=se(i,o),r=o.range.start,o.error&&i.errors.push(o.error);e:for(var h=s+1;;++h){var g=n.items[h];switch(g&&g.type){case p.BLANK_LINE:case p.COMMENT:continue e;case p.MAP_VALUE:break e;default:{var d="Implicit map keys need to be followed by map values";i.errors.push(new k(o,d));break e}}}if(o.valueRangeContainsNewline){var w="Implicit map keys need to be on a single line";i.errors.push(new k(o,w))}}}return t!==void 0&&a.push(new E(t)),{comments:e,items:a}}function Wn(i,n){for(var e=[],a=[],t=void 0,r=!1,s="{",o=0;os+1024&&i.errors.push(Nt(n,r));for(var w=u.context.src,m=s;m1){var r="Each pair must have its own sequence indicator";throw new k(n,r)}var s=t.items[0]||new E;t.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(t.commentBefore,` +`).concat(s.commentBefore):t.commentBefore),t.comment&&(s.comment=s.comment?"".concat(t.comment,` +`).concat(s.comment):t.comment),t=s}e.items[a]=t instanceof E?t:new E(t)}}return e}function _t(i,n,e){var a=new z(i);a.tag="tag:yaml.org,2002:pairs";var t=T(n),r;try{for(t.s();!(r=t.n()).done;){var s=r.value,o=void 0,u=void 0;if(Array.isArray(s))if(s.length===2)o=s[0],u=s[1];else throw new TypeError("Expected [key, value] tuple: ".concat(s));else if(s&&s instanceof Object){var f=Object.keys(s);if(f.length===1)o=f[0],u=s[o];else throw new TypeError("Expected { key: value } tuple: ".concat(s))}else o=s;var l=i.createPair(o,u,e);a.items.push(l)}}catch(c){t.e(c)}finally{t.f()}return a}var Ct={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pt,createNode:_t},Re=function(i){M(e,i);var n=I(e);function e(){var a;return N(this,e),a=n.call(this),$(q(a),"add",K.prototype.add.bind(q(a))),$(q(a),"delete",K.prototype.delete.bind(q(a))),$(q(a),"get",K.prototype.get.bind(q(a))),$(q(a),"has",K.prototype.has.bind(q(a))),$(q(a),"set",K.prototype.set.bind(q(a))),a.tag=e.tag,a}return A(e,[{key:"toJSON",value:function(t,r){var s=new Map;r&&r.onCreate&&r.onCreate(s);var o=T(this.items),u;try{for(o.s();!(u=o.n()).done;){var f=u.value,l=void 0,c=void 0;if(f instanceof E?(l=H(f.key,"",r),c=H(f.value,l,r)):l=H(f,"",r),s.has(l))throw new Error("Ordered maps must not include duplicate keys");s.set(l,c)}}catch(v){o.e(v)}finally{o.f()}return s}}]),e}(z);$(Re,"tag","tag:yaml.org,2002:omap");function Yn(i,n){var e=Pt(i,n),a=[],t=T(e.items),r;try{for(t.s();!(r=t.n()).done;){var s=r.value.key;if(s instanceof L)if(a.includes(s.value)){var o="Ordered maps must not include duplicate keys";throw new k(n,o)}else a.push(s.value)}}catch(u){t.e(u)}finally{t.f()}return Object.assign(new Re,e)}function Qn(i,n,e){var a=_t(i,n,e),t=new Re;return t.items=a.items,t}var Rt={identify:function(n){return n instanceof Map},nodeClass:Re,default:!1,tag:"tag:yaml.org,2002:omap",resolve:Yn,createNode:Qn},Be=function(i){M(e,i);var n=I(e);function e(){var a;return N(this,e),a=n.call(this),a.tag=e.tag,a}return A(e,[{key:"add",value:function(t){var r=t instanceof E?t:new E(t),s=oe(this.items,r.key);s||this.items.push(r)}},{key:"get",value:function(t,r){var s=oe(this.items,t);return!r&&s instanceof E?s.key instanceof L?s.key.value:s.key:s}},{key:"set",value:function(t,r){if(typeof r!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(J(r)));var s=oe(this.items,t);s&&!r?this.items.splice(this.items.indexOf(s),1):!s&&r&&this.items.push(new E(t))}},{key:"toJSON",value:function(t,r){return Q(F(e.prototype),"toJSON",this).call(this,t,r,Set)}},{key:"toString",value:function(t,r,s){if(!t)return JSON.stringify(this);if(this.hasAllNullValues())return Q(F(e.prototype),"toString",this).call(this,t,r,s);throw new Error("Set items must all have null values")}}]),e}(K);$(Be,"tag","tag:yaml.org,2002:set");function Un(i,n){var e=Mt(i,n);if(!e.hasAllNullValues())throw new k(n,"Set items must all have null values");return Object.assign(new Be,e)}function Kn(i,n,e){var a=new Be,t=T(n),r;try{for(t.s();!(r=t.n()).done;){var s=r.value;a.items.push(i.createPair(s,null,e))}}catch(o){t.e(o)}finally{t.f()}return a}var Bt={identify:function(n){return n instanceof Set},nodeClass:Be,default:!1,tag:"tag:yaml.org,2002:set",resolve:Un,createNode:Kn},nt=function(n,e){var a=e.split(":").reduce(function(t,r){return t*60+Number(r)},0);return n==="-"?-a:a},Dt=function(n){var e=n.value;if(isNaN(e)||!isFinite(e))return ne(e);var a="";e<0&&(a="-",e=Math.abs(e));var t=[e%60];return e<60?t.unshift(0):(e=Math.round((e-t[0])/60),t.unshift(e%60),e>=60&&(e=Math.round((e-t[0])/60),t.unshift(e))),a+t.map(function(r){return r<10?"0"+String(r):String(r)}).join(":").replace(/000000\d*$/,"")},Ft={identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(n,e,a){return nt(e,a.replace(/_/g,""))},stringify:Dt},jt={identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(n,e,a){return nt(e,a.replace(/_/g,""))},stringify:Dt},Wt={identify:function(n){return n instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(n,e,a,t,r,s,o,u,f){u&&(u=(u+"00").substr(1,3));var l=Date.UTC(e,a-1,t,r||0,s||0,o||0,u||0);if(f&&f!=="Z"){var c=nt(f[0],f.slice(1));Math.abs(c)<30&&(c*=60),l-=6e4*c}return new Date(l)},stringify:function(n){var e=n.value;return e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function $t(i){var n=typeof process<"u"&&process.env||{};return i?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!n.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!n.YAML_SILENCE_WARNINGS}function xt(i,n){if($t(!1)){var e=typeof process<"u"&&process.emitWarning;e?e(i,n):console.warn(n?"".concat(n,": ").concat(i):i)}}var Yt={};function Jn(i,n){if(!Yt[i]&&$t(!0)){Yt[i]=!0;var e="The option '".concat(i,"' will be removed in a future release");e+=n?", use '".concat(n,"' instead."):".",xt(e,"DeprecationWarning")}}function Vn(i,n,e){var a=new K(i);if(n instanceof Map){var t=T(n),r;try{for(t.s();!(r=t.n()).done;){var s=ge(r.value,2),o=s[0],u=s[1];a.items.push(i.createPair(o,u,e))}}catch(v){t.e(v)}finally{t.f()}}else if(n&&J(n)==="object")for(var f=0,l=Object.keys(n);f=0?e+a.toString(n):ne(i)}var Ut={identify:function(n){return n==null},createNode:function(n,e,a){return a.wrapScalars?new L(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:ve,stringify:function(){return ve.nullStr}},Kt={identify:function(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(n){return n[0]==="t"||n[0]==="T"},options:ee,stringify:function(n){var e=n.value;return e?ee.trueStr:ee.falseStr}},Jt={identify:function(n){return Fe(n)&&n>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(n,e){return at(n,e,8)},options:ie,stringify:function(n){return Qt(n,8,"0o")}},Vt={identify:Fe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(n){return at(n,n,10)},options:ie,stringify:ne},qt={identify:function(n){return Fe(n)&&n>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(n,e){return at(n,e,16)},options:ie,stringify:function(n){return Qt(n,16,"0x")}},Gt={identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(n,e){return e?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:ne},Ht={identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(n){return parseFloat(n)},stringify:function(n){var e=n.value;return Number(e).toExponential()}},zt={identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(n,e,a){var t=e||a,r=new L(parseFloat(n));return t&&t[t.length-1]==="0"&&(r.minFractionDigits=t.length),r},stringify:ne},Hn=rt.concat([Ut,Kt,Jt,Vt,qt,Gt,Ht,zt]),Zt=function(n){return typeof n=="bigint"||Number.isInteger(n)},je=function(n){var e=n.value;return JSON.stringify(e)},Xt=[ke,De,{identify:function(n){return typeof n=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:Se,stringify:je},{identify:function(n){return n==null},createNode:function(n,e,a){return a.wrapScalars?new L(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:je},{identify:function(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(n){return n==="true"},stringify:je},{identify:Zt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(n){return ie.asBigInt?BigInt(n):parseInt(n,10)},stringify:function(n){var e=n.value;return Zt(e)?e.toString():JSON.stringify(e)}},{identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(n){return parseFloat(n)},stringify:je}];Xt.scalarFallback=function(i){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(i)))};var en=function(n){var e=n.value;return e?ee.trueStr:ee.falseStr},Ee=function(n){return typeof n=="bigint"||Number.isInteger(n)};function We(i,n,e){var a=n.replace(/_/g,"");if(ie.asBigInt){switch(e){case 2:a="0b".concat(a);break;case 8:a="0o".concat(a);break;case 16:a="0x".concat(a);break}var t=BigInt(a);return i==="-"?BigInt(-1)*t:t}var r=parseInt(a,e);return i==="-"?-1*r:r}function it(i,n,e){var a=i.value;if(Ee(a)){var t=a.toString(n);return a<0?"-"+e+t.substr(1):e+t}return ne(i)}var zn=rt.concat([{identify:function(n){return n==null},createNode:function(n,e,a){return a.wrapScalars?new L(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:ve,stringify:function(){return ve.nullStr}},{identify:function(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:ee,stringify:en},{identify:function(n){return typeof n=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:ee,stringify:en},{identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(n,e,a){return We(e,a,2)},stringify:function(n){return it(n,2,"0b")}},{identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(n,e,a){return We(e,a,8)},stringify:function(n){return it(n,8,"0")}},{identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(n,e,a){return We(e,a,10)},stringify:ne},{identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(n,e,a){return We(e,a,16)},stringify:function(n){return it(n,16,"0x")}},{identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(n,e){return e?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:ne},{identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(n){return parseFloat(n.replace(/_/g,""))},stringify:function(n){var e=n.value;return Number(e).toExponential()}},{identify:function(n){return typeof n=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(n,e){var a=new L(parseFloat(n.replace(/_/g,"")));if(e){var t=e.replace(/_/g,"");t[t.length-1]==="0"&&(a.minFractionDigits=t.length)}return a},stringify:ne}],Tt,Rt,Ct,Bt,Ft,jt,Wt),Zn={core:Hn,failsafe:rt,json:Xt,yaml11:zn},Xn={binary:Tt,bool:Kt,float:zt,floatExp:Ht,floatNaN:Gt,floatTime:jt,int:Vt,intHex:qt,intOct:Jt,intTime:Ft,map:ke,null:Ut,omap:Rt,pairs:Ct,seq:De,set:Bt,timestamp:Wt};function er(i,n,e){if(n){var a=e.filter(function(r){return r.tag===n}),t=a.find(function(r){return!r.format})||a[0];if(!t)throw new Error("Tag ".concat(n," not found"));return t}return e.find(function(r){return(r.identify&&r.identify(i)||r.class&&i instanceof r.class)&&!r.format})}function tr(i,n,e){if(i instanceof U)return i;var a=e.defaultPrefix,t=e.onTagObj,r=e.prevObjects,s=e.schema,o=e.wrapScalars;n&&n.startsWith("!!")&&(n=a+n.slice(2));var u=er(i,n,s.tags);if(!u){if(typeof i.toJSON=="function"&&(i=i.toJSON()),!i||J(i)!=="object")return o?new L(i):i;u=i instanceof Map?ke:i[Symbol.iterator]?De:ke}t&&(t(u),delete e.onTagObj);var f={value:void 0,node:void 0};if(i&&J(i)==="object"&&r){var l=r.get(i);if(l){var c=new X(l);return e.aliasNodes.push(c),c}f.value=i,r.set(i,f)}return f.node=u.createNode?u.createNode(e.schema,i,e):o?new L(i):i,n&&f.node instanceof U&&(f.node.tag=n),f.node}function nr(i,n,e,a){var t=i[a.replace(/\W/g,"")];if(!t){var r=Object.keys(i).map(function(h){return JSON.stringify(h)}).join(", ");throw new Error('Unknown schema "'.concat(a,'"; use one of ').concat(r))}if(Array.isArray(e)){var s=T(e),o;try{for(s.s();!(o=s.n()).done;){var u=o.value;t=t.concat(u)}}catch(h){s.e(h)}finally{s.f()}}else typeof e=="function"&&(t=e(t.slice()));for(var f=0;fe.key?1:0},Ne=function(){function i(n){var e=n.customTags,a=n.merge,t=n.schema,r=n.sortMapEntries,s=n.tags;N(this,i),this.merge=!!a,this.name=t,this.sortMapEntries=r===!0?rr:r||null,!e&&s&&Jn("tags","customTags"),this.tags=nr(Zn,Xn,e||s,t)}return A(i,[{key:"createNode",value:function(e,a,t,r){var s={defaultPrefix:i.defaultPrefix,schema:this,wrapScalars:a},o=r?Object.assign(r,s):s;return tr(e,t,o)}},{key:"createPair",value:function(e,a,t){t||(t={wrapScalars:!0});var r=this.createNode(e,t.wrapScalars,null,t),s=this.createNode(a,t.wrapScalars,null,t);return new E(r,s)}}]),i}();$(Ne,"defaultPrefix",Me),$(Ne,"defaultTags",re);var $e={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},ar={get binary(){return be},set binary(i){Object.assign(be,i)},get bool(){return ee},set bool(i){Object.assign(ee,i)},get int(){return ie},set int(i){Object.assign(ie,i)},get null(){return ve},set null(i){Object.assign(ve,i)},get str(){return te},set str(i){Object.assign(te,i)}},tn={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Me},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Me}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Me}]}};function nn(i,n){if((i.version||i.options.version)==="1.0"){var e=n.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];var a=n.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return a?"!".concat(a[1],"/").concat(a[2]):"!".concat(n.replace(/^tag:/,""))}var t=i.tagPrefixes.find(function(o){return n.indexOf(o.prefix)===0});if(!t){var r=i.getDefaults().tagPrefixes;t=r&&r.find(function(o){return n.indexOf(o.prefix)===0})}if(!t)return n[0]==="!"?n:"!<".concat(n,">");var s=n.substr(t.prefix.length).replace(/[!,[\]{}]/g,function(o){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[o]});return t.handle+s}function ir(i,n){if(n instanceof X)return X;if(n.tag){var e=i.filter(function(o){return o.tag===n.tag});if(e.length>0)return e.find(function(o){return o.format===n.format})||e[0]}var a,t;if(n instanceof L){t=n.value;var r=i.filter(function(o){return o.identify&&o.identify(t)||o.class&&t instanceof o.class});a=r.find(function(o){return o.format===n.format})||r.find(function(o){return!o.format})}else t=n,a=i.find(function(o){return o.nodeClass&&t instanceof o.nodeClass});if(!a){var s=t&&t.constructor?t.constructor.name:J(t);throw new Error("Tag not resolved for ".concat(s," value"))}return a}function sr(i,n,e){var a=e.anchors,t=e.doc,r=[],s=t.anchors.getName(i);return s&&(a[s]=i,r.push("&".concat(s))),i.tag?r.push(nn(t,i.tag)):n.default||r.push(nn(t,n.tag)),r.join(" ")}function xe(i,n,e,a){var t=n.doc,r=t.anchors,s=t.schema,o;if(!(i instanceof U)){var u={aliasNodes:[],onTagObj:function(w){return o=w},prevObjects:new Map};i=s.createNode(i,!0,null,u);var f=T(u.aliasNodes),l;try{for(f.s();!(l=f.n()).done;){var c=l.value;c.source=c.source.node;var v=r.getName(c.source);v||(v=r.newName(),r.map[v]=c.source)}}catch(d){f.e(d)}finally{f.f()}}if(i instanceof E)return i.toString(n,e,a);o||(o=ir(s.tags,i));var h=sr(i,o,n);h.length>0&&(n.indentAtStart=(n.indentAtStart||0)+h.length+1);var g=typeof o.stringify=="function"?o.stringify(i,n,e,a):i instanceof L?tt(i,n,e,a):i.toString(n,e,a);return h?i instanceof L||g[0]==="{"||g[0]==="["?"".concat(h," ").concat(g):"".concat(h,` +`).concat(n.indent).concat(g):g}var or=function(){function i(n){N(this,i),$(this,"map",Object.create(null)),this.prefix=n}return A(i,[{key:"createAlias",value:function(e,a){return this.setAnchor(e,a),new X(e)}},{key:"createMergePair",value:function(){for(var e=this,a=new wt,t=arguments.length,r=new Array(t),s=0;s0&&!i.commentBefore&&(i.commentBefore=e.before.join(` +`),e.before=[]))}}catch(h){r.e(h)}finally{r.f()}if(i.contents=a||null,!a)i.comment=e.before.concat(e.after).join(` +`)||null;else{var c=e.before.join(` +`);if(c){var v=a instanceof j&&a.items[0]?a.items[0]:a;v.commentBefore=v.commentBefore?"".concat(c,` +`).concat(v.commentBefore):c}i.comment=e.after.join(` +`)||null}}function cr(i,n){var e=i.tagPrefixes,a=ge(n.parameters,2),t=a[0],r=a[1];if(!t||!r){var s="Insufficient parameters given for %TAG directive";throw new k(n,s)}if(e.some(function(u){return u.handle===t})){var o="The %TAG directive must only be given at most once per handle in the same document.";throw new k(n,o)}return{handle:t,prefix:r}}function vr(i,n){var e=ge(n.parameters,1),a=e[0];if(n.name==="YAML:1.0"&&(a="1.0"),!a){var t="Insufficient parameters given for %YAML directive";throw new k(n,t)}if(!tn[a]){var r=i.version||i.options.version,s="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(a);i.warnings.push(new le(n,s))}return a}function hr(i,n,e){var a=[],t=!1,r=T(n),s;try{for(r.s();!(s=r.n()).done;){var o=s.value,u=o.comment,f=o.name;switch(f){case"TAG":try{i.tagPrefixes.push(cr(i,o))}catch(h){i.errors.push(h)}t=!0;break;case"YAML":case"YAML:1.0":if(i.version){var l="The %YAML directive must only be given at most once per document.";i.errors.push(new k(o,l))}try{i.version=vr(i,o)}catch(h){i.errors.push(h)}t=!0;break;default:if(f){var c="YAML only supports %TAG and %YAML directives, and not %".concat(f);i.warnings.push(new le(o,c))}}u&&a.push(u)}}catch(h){r.e(h)}finally{r.f()}if(e&&!t&&(i.version||e.version||i.options.version)==="1.1"){var v=function(g){var d=g.handle,w=g.prefix;return{handle:d,prefix:w}};i.tagPrefixes=e.tagPrefixes.map(v),i.version=e.version}i.commentBefore=a.join(` +`)||null}function he(i){if(i instanceof j)return!0;throw new Error("Expected a YAML collection as document contents")}var st=function(){function i(n){N(this,i),this.anchors=new or(n.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=n,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return A(i,[{key:"add",value:function(e){return he(this.contents),this.contents.add(e)}},{key:"addIn",value:function(e,a){he(this.contents),this.contents.addIn(e,a)}},{key:"delete",value:function(e){return he(this.contents),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return Oe(e)?this.contents==null?!1:(this.contents=null,!0):(he(this.contents),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return i.defaults[this.version]||i.defaults[this.options.version]||{}}},{key:"get",value:function(e,a){return this.contents instanceof j?this.contents.get(e,a):void 0}},{key:"getIn",value:function(e,a){return Oe(e)?!a&&this.contents instanceof L?this.contents.value:this.contents:this.contents instanceof j?this.contents.getIn(e,a):void 0}},{key:"has",value:function(e){return this.contents instanceof j?this.contents.has(e):!1}},{key:"hasIn",value:function(e){return Oe(e)?this.contents!==void 0:this.contents instanceof j?this.contents.hasIn(e):!1}},{key:"set",value:function(e,a){he(this.contents),this.contents.set(e,a)}},{key:"setIn",value:function(e,a){Oe(e)?this.contents=a:(he(this.contents),this.contents.setIn(e,a))}},{key:"setSchema",value:function(e,a){if(!(!e&&!a&&this.schema)){typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(a)&&(this.options.customTags=a);var t=Object.assign({},this.getDefaults(),this.options);this.schema=new Ne(t)}}},{key:"parse",value:function(e,a){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var t=e.directives,r=t===void 0?[]:t,s=e.contents,o=s===void 0?[]:s,u=e.directivesEndMarker,f=e.error,l=e.valueRange;if(f&&(f.source||(f.source=this),this.errors.push(f)),hr(this,r,a),u&&(this.directivesEndMarker=!0),this.range=l?[l.start,l.end]:null,this.setSchema(),this.anchors._cstAliases=[],lr(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){var c=T(this.errors),v;try{for(c.s();!(v=c.n()).done;){var h=v.value;h instanceof fe&&h.makePretty()}}catch(m){c.e(m)}finally{c.f()}var g=T(this.warnings),d;try{for(g.s();!(d=g.n()).done;){var w=d.value;w instanceof fe&&w.makePretty()}}catch(m){g.e(m)}finally{g.f()}}return this}},{key:"listNonDefaultTags",value:function(){return fr(this.contents).filter(function(e){return e.indexOf(Ne.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(e,a){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(a){var t=this.tagPrefixes.find(function(r){return r.handle===e});t?t.prefix=a:this.tagPrefixes.push({handle:e,prefix:a})}else this.tagPrefixes=this.tagPrefixes.filter(function(r){return r.handle!==e})}},{key:"toJSON",value:function(e,a){var t=this,r=this.options,s=r.keepBlobsInJSON,o=r.mapAsMap,u=r.maxAliasCount,f=s&&(typeof e!="string"||!(this.contents instanceof L)),l={doc:this,indentStep:" ",keep:f,mapAsMap:f&&!!o,maxAliasCount:u,stringify:xe},c=Object.keys(this.anchors.map);c.length>0&&(l.anchors=new Map(c.map(function(O){return[t.anchors.map[O],{alias:[],aliasCount:0,count:1}]})));var v=H(this.contents,e,l);if(typeof a=="function"&&l.anchors){var h=T(l.anchors.values()),g;try{for(h.s();!(g=h.n()).done;){var d=g.value,w=d.count,m=d.res;a(m,w)}}catch(O){h.e(O)}finally{h.f()}}return v}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var e=this.options.indent;if(!Number.isInteger(e)||e<=0){var a=JSON.stringify(e);throw new Error('"indent" option must be a positive integer, not '.concat(a))}this.setSchema();var t=[],r=!1;if(this.version){var s="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?s="%YAML:1.0":this.version==="1.1"&&(s="%YAML 1.1")),t.push(s),r=!0}var o=this.listNonDefaultTags();this.tagPrefixes.forEach(function(h){var g=h.handle,d=h.prefix;o.some(function(w){return w.indexOf(d)===0})&&(t.push("%TAG ".concat(g," ").concat(d)),r=!0)}),(r||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));var u={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:xe},f=!1,l=null;if(this.contents){this.contents instanceof U&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),u.forceBlockIndent=!!this.comment,l=this.contents.comment);var c=l?null:function(){return f=!0},v=xe(this.contents,u,function(){return l=null},c);t.push(ce(v,"",l))}else this.contents!==void 0&&t.push(xe(this.contents,u));return this.comment&&((!f||l)&&t[t.length-1]!==""&&t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join(` +`)+` +`}}]),i}();$(st,"defaults",tn);function pr(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,e=arguments.length>2?arguments[2]:void 0;e===void 0&&typeof n=="string"&&(e=n,n=!0);var a=Object.assign({},st.defaults[$e.version],$e),t=new Ne(a);return t.createNode(i,n,e)}var Ye=function(i){M(e,i);var n=I(e);function e(a){return N(this,e),n.call(this,Object.assign({},$e,a))}return e}(st);function gr(i,n){var e=[],a,t=T(ze(i)),r;try{for(t.s();!(r=t.n()).done;){var s=r.value,o=new Ye(n);o.parse(s,a),e.push(o),a=o}}catch(u){t.e(u)}finally{t.f()}return e}function rn(i,n){var e=ze(i),a=new Ye(n).parse(e[0]);if(e.length>1){var t="Source contains multiple documents; please use YAML.parseAllDocuments()";a.errors.unshift(new k(e[1],t))}return a}function dr(i,n){var e=rn(i,n);if(e.warnings.forEach(function(a){return xt(a)}),e.errors.length>0)throw e.errors[0];return e.toJSON()}function yr(i,n){var e=new Ye(n);return e.contents=i,String(e)}var mr={createNode:pr,defaultOptions:$e,Document:Ye,parse:dr,parseAllDocuments:gr,parseCST:ze,parseDocument:rn,scalarOptions:ar,stringify:yr},wr=Object.freeze({__proto__:null,YAML:mr}),Or=un(wr),br=Or.YAML;onmessage=i=>postMessage(br.parse(i.data))})(); diff --git a/index.html b/index.html index ca6eaa36..d98f1c74 100644 --- a/index.html +++ b/index.html @@ -10,8 +10,8 @@ - - + + diff --git a/previews/snip_grid_astar.png b/previews/snip_grid_astar.png deleted file mode 100644 index b6885cfe..00000000 Binary files a/previews/snip_grid_astar.png and /dev/null differ diff --git a/previews/snip_tile_tree.png b/previews/snip_tile_tree.png deleted file mode 100644 index ad53ebf4..00000000 Binary files a/previews/snip_tile_tree.png and /dev/null differ