@kangtae49/just-layout 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -5
- package/dist/index.es.js +8418 -14872
- package/dist/index.umd.js +26 -102
- package/package.json +7 -6
package/dist/index.umd.js
CHANGED
|
@@ -1,102 +1,26 @@
|
|
|
1
|
-
(function(Fe,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],R):(Fe=typeof globalThis<"u"?globalThis:Fe||self,R(Fe.JustLayout={},Fe.React,Fe.jsxRuntime,Fe.ReactDOM))})(this,(function(Fe,R,Q,ho){"use strict";var dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var id={};var od;function n_(){if(od)return id;od=1;var n;return(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof dn=="object"?dn:typeof self=="object"?self:typeof this=="object"?this:d(),o=s(e);typeof r.Reflect<"u"&&(o=s(r.Reflect,o)),t(o,r),typeof r.Reflect>"u"&&(r.Reflect=e);function s(p,v){return function(b,w){Object.defineProperty(p,b,{configurable:!0,writable:!0,value:w}),v&&v(b,w)}}function c(){try{return Function("return this;")()}catch{}}function f(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return c()||f()}})(function(t,r){var o=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",c=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",f=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",p={__proto__:[]}instanceof Array,v=!d&&!p,b={create:d?function(){return it(Object.create(null))}:p?function(){return it({__proto__:null})}:function(){return it({})},has:v?function(I,N){return o.call(I,N)}:function(I,N){return N in I},get:v?function(I,N){return o.call(I,N)?I[N]:void 0}:function(I,N){return I[N]}},w=Object.getPrototypeOf(Function),y=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Be(),O=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:nt(),S=typeof WeakMap=="function"?WeakMap:Nt(),A=s?Symbol.for("@reflect-metadata:registry"):void 0,x=W(),k=U(x);function G(I,N,C,j){if(pe(C)){if(!In(I))throw new TypeError;if(!Ke(N))throw new TypeError;return he(I,N)}else{if(!In(I))throw new TypeError;if(!Ce(N))throw new TypeError;if(!Ce(j)&&!pe(j)&&!Lt(j))throw new TypeError;return Lt(j)&&(j=void 0),C=pt(C),ct(I,N,C,j)}}t("decorate",G);function oe(I,N){function C(j,Z){if(!Ce(j))throw new TypeError;if(!pe(Z)&&!on(Z))throw new TypeError;nn(I,N,j,Z)}return C}t("metadata",oe);function q(I,N,C,j){if(!Ce(C))throw new TypeError;return pe(j)||(j=pt(j)),nn(I,N,C,j)}t("defineMetadata",q);function ye(I,N,C){if(!Ce(N))throw new TypeError;return pe(C)||(C=pt(C)),ht(I,N,C)}t("hasMetadata",ye);function L(I,N,C){if(!Ce(N))throw new TypeError;return pe(C)||(C=pt(C)),ft(I,N,C)}t("hasOwnMetadata",L);function F(I,N,C){if(!Ce(N))throw new TypeError;return pe(C)||(C=pt(C)),xt(I,N,C)}t("getMetadata",F);function ae(I,N,C){if(!Ce(N))throw new TypeError;return pe(C)||(C=pt(C)),ue(I,N,C)}t("getOwnMetadata",ae);function we(I,N){if(!Ce(I))throw new TypeError;return pe(N)||(N=pt(N)),Pt(I,N)}t("getMetadataKeys",we);function ce(I,N){if(!Ce(I))throw new TypeError;return pe(N)||(N=pt(N)),Le(I,N)}t("getOwnMetadataKeys",ce);function Se(I,N,C){if(!Ce(N))throw new TypeError;if(pe(C)||(C=pt(C)),!Ce(N))throw new TypeError;pe(C)||(C=pt(C));var j=le(N,C,!1);return pe(j)?!1:j.OrdinaryDeleteMetadata(I,N,C)}t("deleteMetadata",Se);function he(I,N){for(var C=I.length-1;C>=0;--C){var j=I[C],Z=j(N);if(!pe(Z)&&!Lt(Z)){if(!Ke(Z))throw new TypeError;N=Z}}return N}function ct(I,N,C,j){for(var Z=I.length-1;Z>=0;--Z){var _e=I[Z],Me=_e(N,C,j);if(!pe(Me)&&!Lt(Me)){if(!Ce(Me))throw new TypeError;j=Me}}return j}function ht(I,N,C){var j=ft(I,N,C);if(j)return!0;var Z=St(N);return Lt(Z)?!1:ht(I,Z,C)}function ft(I,N,C){var j=le(N,C,!1);return pe(j)?!1:Vt(j.OrdinaryHasOwnMetadata(I,N,C))}function xt(I,N,C){var j=ft(I,N,C);if(j)return ue(I,N,C);var Z=St(N);if(!Lt(Z))return xt(I,Z,C)}function ue(I,N,C){var j=le(N,C,!1);if(!pe(j))return j.OrdinaryGetOwnMetadata(I,N,C)}function nn(I,N,C,j){var Z=le(C,j,!0);Z.OrdinaryDefineOwnMetadata(I,N,C,j)}function Pt(I,N){var C=Le(I,N),j=St(I);if(j===null)return C;var Z=Pt(j,N);if(Z.length<=0)return C;if(C.length<=0)return Z;for(var _e=new O,Me=[],ne=0,Y=C;ne<Y.length;ne++){var K=Y[ne],te=_e.has(K);te||(_e.add(K),Me.push(K))}for(var X=0,Ee=Z;X<Ee.length;X++){var K=Ee[X],te=_e.has(K);te||(_e.add(K),Me.push(K))}return Me}function Le(I,N){var C=le(I,N,!1);return C?C.OrdinaryOwnMetadataKeys(I,N):[]}function wr(I){if(I===null)return 1;switch(typeof I){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return I===null?1:6;default:return 6}}function pe(I){return I===void 0}function Lt(I){return I===null}function rn(I){return typeof I=="symbol"}function Ce(I){return typeof I=="object"?I!==null:typeof I=="function"}function ir(I,N){switch(wr(I)){case 0:return I;case 1:return I;case 2:return I;case 3:return I;case 4:return I;case 5:return I}var C="string",j=at(I,c);if(j!==void 0){var Z=j.call(I,C);if(Ce(Z))throw new TypeError;return Z}return $t(I)}function $t(I,N){var C,j,Z;{var _e=I.toString;if(An(_e)){var j=_e.call(I);if(!Ce(j))return j}var C=I.valueOf;if(An(C)){var j=C.call(I);if(!Ce(j))return j}}throw new TypeError}function Vt(I){return!!I}function Sr(I){return""+I}function pt(I){var N=ir(I);return rn(N)?N:Sr(N)}function In(I){return Array.isArray?Array.isArray(I):I instanceof Object?I instanceof Array:Object.prototype.toString.call(I)==="[object Array]"}function An(I){return typeof I=="function"}function Ke(I){return typeof I=="function"}function on(I){switch(wr(I)){case 3:return!0;case 4:return!0;default:return!1}}function Tn(I,N){return I===N||I!==I&&N!==N}function at(I,N){var C=I[N];if(C!=null){if(!An(C))throw new TypeError;return C}}function vt(I){var N=at(I,f);if(!An(N))throw new TypeError;var C=N.call(I);if(!Ce(C))throw new TypeError;return C}function Gn(I){return I.value}function Qe(I){var N=I.next();return N.done?!1:N}function bt(I){var N=I.return;N&&N.call(I)}function St(I){var N=Object.getPrototypeOf(I);if(typeof I!="function"||I===w||N!==w)return N;var C=I.prototype,j=C&&Object.getPrototypeOf(C);if(j==null||j===Object.prototype)return N;var Z=j.constructor;return typeof Z!="function"||Z===I?N:Z}function P(){var I;!pe(A)&&typeof r.Reflect<"u"&&!(A in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(I=ee(r.Reflect));var N,C,j,Z=new S,_e={registerProvider:Me,getProvider:Y,setProvider:te};return _e;function Me(X){if(!Object.isExtensible(_e))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case I===X:break;case pe(N):N=X;break;case N===X:break;case pe(C):C=X;break;case C===X:break;default:j===void 0&&(j=new O),j.add(X);break}}function ne(X,Ee){if(!pe(N)){if(N.isProviderFor(X,Ee))return N;if(!pe(C)){if(C.isProviderFor(X,Ee))return N;if(!pe(j))for(var He=vt(j);;){var et=Qe(He);if(!et)return;var yt=Gn(et);if(yt.isProviderFor(X,Ee))return bt(He),yt}}}if(!pe(I)&&I.isProviderFor(X,Ee))return I}function Y(X,Ee){var He=Z.get(X),et;return pe(He)||(et=He.get(Ee)),pe(et)&&(et=ne(X,Ee),pe(et)||(pe(He)&&(He=new y,Z.set(X,He)),He.set(Ee,et))),et}function K(X){if(pe(X))throw new TypeError;return N===X||C===X||!pe(j)&&j.has(X)}function te(X,Ee,He){if(!K(He))throw new Error("Metadata provider not registered.");var et=Y(X,Ee);if(et!==He){if(!pe(et))return!1;var yt=Z.get(X);pe(yt)&&(yt=new y,Z.set(X,yt)),yt.set(Ee,He)}return!0}}function W(){var I;return!pe(A)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&(I=r.Reflect[A]),pe(I)&&(I=P()),!pe(A)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,A,{enumerable:!1,configurable:!1,writable:!1,value:I}),I}function U(I){var N=new S,C={isProviderFor:function(K,te){var X=N.get(K);return pe(X)?!1:X.has(te)},OrdinaryDefineOwnMetadata:Me,OrdinaryHasOwnMetadata:Z,OrdinaryGetOwnMetadata:_e,OrdinaryOwnMetadataKeys:ne,OrdinaryDeleteMetadata:Y};return x.registerProvider(C),C;function j(K,te,X){var Ee=N.get(K),He=!1;if(pe(Ee)){if(!X)return;Ee=new y,N.set(K,Ee),He=!0}var et=Ee.get(te);if(pe(et)){if(!X)return;if(et=new y,Ee.set(te,et),!I.setProvider(K,te,C))throw Ee.delete(te),He&&N.delete(K),new Error("Wrong provider for target.")}return et}function Z(K,te,X){var Ee=j(te,X,!1);return pe(Ee)?!1:Vt(Ee.has(K))}function _e(K,te,X){var Ee=j(te,X,!1);if(!pe(Ee))return Ee.get(K)}function Me(K,te,X,Ee){var He=j(X,Ee,!0);He.set(K,te)}function ne(K,te){var X=[],Ee=j(K,te,!1);if(pe(Ee))return X;for(var He=Ee.keys(),et=vt(He),yt=0;;){var Ji=Qe(et);if(!Ji)return X.length=yt,X;var Xo=Gn(Ji);try{X[yt]=Xo}catch(Ki){try{bt(et)}finally{throw Ki}}yt++}}function Y(K,te,X){var Ee=j(te,X,!1);if(pe(Ee)||!Ee.delete(K))return!1;if(Ee.size===0){var He=N.get(te);pe(He)||(He.delete(X),He.size===0&&N.delete(He))}return!0}}function ee(I){var N=I.defineMetadata,C=I.hasOwnMetadata,j=I.getOwnMetadata,Z=I.getOwnMetadataKeys,_e=I.deleteMetadata,Me=new S,ne={isProviderFor:function(Y,K){var te=Me.get(Y);return!pe(te)&&te.has(K)?!0:Z(Y,K).length?(pe(te)&&(te=new O,Me.set(Y,te)),te.add(K),!0):!1},OrdinaryDefineOwnMetadata:N,OrdinaryHasOwnMetadata:C,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:Z,OrdinaryDeleteMetadata:_e};return ne}function le(I,N,C){var j=x.getProvider(I,N);if(!pe(j))return j;if(C){if(x.setProvider(I,N,k))return k;throw new Error("Illegal state.")}}function Be(){var I={},N=[],C=(function(){function ne(Y,K,te){this._index=0,this._keys=Y,this._values=K,this._selector=te}return ne.prototype["@@iterator"]=function(){return this},ne.prototype[f]=function(){return this},ne.prototype.next=function(){var Y=this._index;if(Y>=0&&Y<this._keys.length){var K=this._selector(this._keys[Y],this._values[Y]);return Y+1>=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:K,done:!1}}return{value:void 0,done:!0}},ne.prototype.throw=function(Y){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),Y},ne.prototype.return=function(Y){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:Y,done:!0}},ne})(),j=(function(){function ne(){this._keys=[],this._values=[],this._cacheKey=I,this._cacheIndex=-2}return Object.defineProperty(ne.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ne.prototype.has=function(Y){return this._find(Y,!1)>=0},ne.prototype.get=function(Y){var K=this._find(Y,!1);return K>=0?this._values[K]:void 0},ne.prototype.set=function(Y,K){var te=this._find(Y,!0);return this._values[te]=K,this},ne.prototype.delete=function(Y){var K=this._find(Y,!1);if(K>=0){for(var te=this._keys.length,X=K+1;X<te;X++)this._keys[X-1]=this._keys[X],this._values[X-1]=this._values[X];return this._keys.length--,this._values.length--,Tn(Y,this._cacheKey)&&(this._cacheKey=I,this._cacheIndex=-2),!0}return!1},ne.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=I,this._cacheIndex=-2},ne.prototype.keys=function(){return new C(this._keys,this._values,Z)},ne.prototype.values=function(){return new C(this._keys,this._values,_e)},ne.prototype.entries=function(){return new C(this._keys,this._values,Me)},ne.prototype["@@iterator"]=function(){return this.entries()},ne.prototype[f]=function(){return this.entries()},ne.prototype._find=function(Y,K){if(!Tn(this._cacheKey,Y)){this._cacheIndex=-1;for(var te=0;te<this._keys.length;te++)if(Tn(this._keys[te],Y)){this._cacheIndex=te;break}}return this._cacheIndex<0&&K&&(this._cacheIndex=this._keys.length,this._keys.push(Y),this._values.push(void 0)),this._cacheIndex},ne})();return j;function Z(ne,Y){return ne}function _e(ne,Y){return Y}function Me(ne,Y){return[ne,Y]}}function nt(){var I=(function(){function N(){this._map=new y}return Object.defineProperty(N.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),N.prototype.has=function(C){return this._map.has(C)},N.prototype.add=function(C){return this._map.set(C,C),this},N.prototype.delete=function(C){return this._map.delete(C)},N.prototype.clear=function(){this._map.clear()},N.prototype.keys=function(){return this._map.keys()},N.prototype.values=function(){return this._map.keys()},N.prototype.entries=function(){return this._map.entries()},N.prototype["@@iterator"]=function(){return this.keys()},N.prototype[f]=function(){return this.keys()},N})();return I}function Nt(){var I=16,N=b.create(),C=j();return(function(){function Y(){this._key=j()}return Y.prototype.has=function(K){var te=Z(K,!1);return te!==void 0?b.has(te,this._key):!1},Y.prototype.get=function(K){var te=Z(K,!1);return te!==void 0?b.get(te,this._key):void 0},Y.prototype.set=function(K,te){var X=Z(K,!0);return X[this._key]=te,this},Y.prototype.delete=function(K){var te=Z(K,!1);return te!==void 0?delete te[this._key]:!1},Y.prototype.clear=function(){this._key=j()},Y})();function j(){var Y;do Y="@@WeakMap@@"+ne();while(b.has(N,Y));return N[Y]=!0,Y}function Z(Y,K){if(!o.call(Y,C)){if(!K)return;Object.defineProperty(Y,C,{value:b.create()})}return Y[C]}function _e(Y,K){for(var te=0;te<K;++te)Y[te]=Math.random()*255|0;return Y}function Me(Y){if(typeof Uint8Array=="function"){var K=new Uint8Array(Y);return typeof crypto<"u"?crypto.getRandomValues(K):typeof msCrypto<"u"?msCrypto.getRandomValues(K):_e(K,Y),K}return _e(new Array(Y),Y)}function ne(){var Y=Me(I);Y[6]=Y[6]&79|64,Y[8]=Y[8]&191|128;for(var K="",te=0;te<I;++te){var X=Y[te];(te===4||te===6||te===8)&&(K+="-"),X<16&&(K+="0"),K+=X.toString(16).toLowerCase()}return K}}function it(I){return I.__=void 0,delete I.__,I}})})(n||(n={})),id}n_();function ut(n){return(typeof n=="object"&&n!==null||typeof n=="function")&&typeof n.then=="function"}function Et(n){switch(typeof n){case"string":case"symbol":return n.toString();case"function":return n.name;default:throw new Error(`Unexpected ${typeof n} service id type`)}}const vu=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");let ga=class{[vu];#e;constructor(e){this.#e=e,this[vu]=!0}static is(e){return typeof e=="object"&&e!==null&&e[vu]===!0}unwrap(){return this.#e()}};var ad={};var sd;function r_(){if(sd)return ad;sd=1;var n;return(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof dn=="object"?dn:typeof self=="object"?self:typeof this=="object"?this:c(),o=s(e);typeof r.Reflect<"u"&&(o=s(r.Reflect,o)),t(o,r),typeof r.Reflect>"u"&&(r.Reflect=e);function s(f,d){return function(p,v){Object.defineProperty(f,p,{configurable:!0,writable:!0,value:v}),d&&d(p,v)}}function c(){throw new ReferenceError("globalThis could not be found. Please polyfill globalThis before loading this module.")}})(function(t,r){var o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:at("Symbol.toPrimitive not found."),c=o&&typeof Symbol.iterator<"u"?Symbol.iterator:at("Symbol.iterator not found."),f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:at("A valid Map constructor could not be found."),p=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:at("A valid Set constructor could not be found."),v=typeof WeakMap=="function"?WeakMap:at("A valid WeakMap constructor could not be found."),b=o?Symbol.for("@reflect-metadata:registry"):void 0,w=Gn(),y=Qe(w);function O(P,W,U,ee){if(ue(U)){if(!ir(P))throw new TypeError;if(!Vt(W))throw new TypeError;return F(P,W)}else{if(!ir(P))throw new TypeError;if(!Le(W))throw new TypeError;if(!Le(ee)&&!ue(ee)&&!nn(ee))throw new TypeError;return nn(ee)&&(ee=void 0),U=Ce(U),ae(P,W,U,ee)}}t("decorate",O);function S(P,W){function U(ee,le){if(!Le(ee))throw new TypeError;if(!ue(le)&&!Sr(le))throw new TypeError;ct(P,W,ee,le)}return U}t("metadata",S);function A(P,W,U,ee){if(!Le(U))throw new TypeError;return ue(ee)||(ee=Ce(ee)),ct(P,W,U,ee)}t("defineMetadata",A);function x(P,W,U){if(!Le(W))throw new TypeError;return ue(U)||(U=Ce(U)),we(P,W,U)}t("hasMetadata",x);function k(P,W,U){if(!Le(W))throw new TypeError;return ue(U)||(U=Ce(U)),ce(P,W,U)}t("hasOwnMetadata",k);function G(P,W,U){if(!Le(W))throw new TypeError;return ue(U)||(U=Ce(U)),Se(P,W,U)}t("getMetadata",G);function oe(P,W,U){if(!Le(W))throw new TypeError;return ue(U)||(U=Ce(U)),he(P,W,U)}t("getOwnMetadata",oe);function q(P,W){if(!Le(P))throw new TypeError;return ue(W)||(W=Ce(W)),ht(P,W)}t("getMetadataKeys",q);function ye(P,W){if(!Le(P))throw new TypeError;return ue(W)||(W=Ce(W)),ft(P,W)}t("getOwnMetadataKeys",ye);function L(P,W,U){if(!Le(W))throw new TypeError;ue(U)||(U=Ce(U));var ee=St(W,U,!1);return ue(ee)?!1:ee.OrdinaryDeleteMetadata(P,W,U)}t("deleteMetadata",L);function F(P,W){for(var U=P.length-1;U>=0;--U){var ee=P[U],le=ee(W);if(!ue(le)&&!nn(le)){if(!Vt(le))throw new TypeError;W=le}}return W}function ae(P,W,U,ee){for(var le=P.length-1;le>=0;--le){var Be=P[le],nt=Be(W,U,ee);if(!ue(nt)&&!nn(nt)){if(!Le(nt))throw new TypeError;ee=nt}}return ee}function we(P,W,U){var ee=ce(P,W,U);if(ee)return!0;var le=Tn(W);return nn(le)?!1:we(P,le,U)}function ce(P,W,U){var ee=St(W,U,!1);return ue(ee)?!1:Lt(ee.OrdinaryHasOwnMetadata(P,W,U))}function Se(P,W,U){var ee=ce(P,W,U);if(ee)return he(P,W,U);var le=Tn(W);if(!nn(le))return Se(P,le,U)}function he(P,W,U){var ee=St(W,U,!1);if(!ue(ee))return ee.OrdinaryGetOwnMetadata(P,W,U)}function ct(P,W,U,ee){var le=St(U,ee,!0);le.OrdinaryDefineOwnMetadata(P,W,U,ee)}function ht(P,W){var U=ft(P,W),ee=Tn(P);if(ee===null)return U;var le=ht(ee,W);if(le.length<=0)return U;if(U.length<=0)return le;for(var Be=new p,nt=[],Nt=0,it=U;Nt<it.length;Nt++){var I=it[Nt],N=Be.has(I);N||(Be.add(I),nt.push(I))}for(var C=0,j=le;C<j.length;C++){var I=j[C],N=Be.has(I);N||(Be.add(I),nt.push(I))}return nt}function ft(P,W){var U=St(P,W,!1);return U?U.OrdinaryOwnMetadataKeys(P,W):[]}function xt(P){if(P===null)return 1;switch(typeof P){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return P===null?1:6;default:return 6}}function ue(P){return P===void 0}function nn(P){return P===null}function Pt(P){return typeof P=="symbol"}function Le(P){return typeof P=="object"?P!==null:typeof P=="function"}function wr(P,W){switch(xt(P)){case 0:return P;case 1:return P;case 2:return P;case 3:return P;case 4:return P;case 5:return P}var U="string",ee=pt(P,s);if(ee!==void 0){var le=ee.call(P,U);if(Le(le))throw new TypeError;return le}return pe(P)}function pe(P,W){var U,ee,le;{var Be=P.toString;if($t(Be)){var ee=Be.call(P);if(!Le(ee))return ee}var U=P.valueOf;if($t(U)){var ee=U.call(P);if(!Le(ee))return ee}}throw new TypeError}function Lt(P){return!!P}function rn(P){return""+P}function Ce(P){var W=wr(P);return Pt(W)?W:rn(W)}function ir(P){return Array.isArray?Array.isArray(P):P instanceof Object?P instanceof Array:Object.prototype.toString.call(P)==="[object Array]"}function $t(P){return typeof P=="function"}function Vt(P){return typeof P=="function"}function Sr(P){switch(xt(P)){case 3:return!0;case 4:return!0;default:return!1}}function pt(P,W){var U=P[W];if(U!=null){if(!$t(U))throw new TypeError;return U}}function In(P){var W=pt(P,c);if(!$t(W))throw new TypeError;var U=W.call(P);if(!Le(U))throw new TypeError;return U}function An(P){return P.value}function Ke(P){var W=P.next();return W.done?!1:W}function on(P){var W=P.return;W&&W.call(P)}function Tn(P){var W=Object.getPrototypeOf(P);if(typeof P!="function"||P===f||W!==f)return W;var U=P.prototype,ee=U&&Object.getPrototypeOf(U);if(ee==null||ee===Object.prototype)return W;var le=ee.constructor;return typeof le!="function"||le===P?W:le}function at(P){throw P}function vt(){var P;!ue(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(P=bt(r.Reflect));var W,U,ee,le=new v,Be={registerProvider:nt,getProvider:it,setProvider:N};return Be;function nt(C){if(!Object.isExtensible(Be))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case P===C:break;case ue(W):W=C;break;case W===C:break;case ue(U):U=C;break;case U===C:break;default:ee===void 0&&(ee=new p),ee.add(C);break}}function Nt(C,j){if(!ue(W)){if(W.isProviderFor(C,j))return W;if(!ue(U)){if(U.isProviderFor(C,j))return W;if(!ue(ee))for(var Z=In(ee);;){var _e=Ke(Z);if(!_e)return;var Me=An(_e);if(Me.isProviderFor(C,j))return on(Z),Me}}}if(!ue(P)&&P.isProviderFor(C,j))return P}function it(C,j){var Z=le.get(C),_e;return ue(Z)||(_e=Z.get(j)),ue(_e)&&(_e=Nt(C,j),ue(_e)||(ue(Z)&&(Z=new d,le.set(C,Z)),Z.set(j,_e))),_e}function I(C){if(ue(C))throw new TypeError;return W===C||U===C||!ue(ee)&&ee.has(C)}function N(C,j,Z){if(!I(Z))throw new Error("Metadata provider not registered.");var _e=it(C,j);if(_e!==Z){if(!ue(_e))return!1;var Me=le.get(C);ue(Me)&&(Me=new d,le.set(C,Me)),Me.set(j,Z)}return!0}}function Gn(){var P;return!ue(b)&&Le(r.Reflect)&&Object.isExtensible(r.Reflect)&&(P=r.Reflect[b]),ue(P)&&(P=vt()),!ue(b)&&Le(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:P}),P}function Qe(P){var W=new v,U={isProviderFor:function(I,N){var C=W.get(I);return ue(C)?!1:C.has(N)},OrdinaryDefineOwnMetadata:nt,OrdinaryHasOwnMetadata:le,OrdinaryGetOwnMetadata:Be,OrdinaryOwnMetadataKeys:Nt,OrdinaryDeleteMetadata:it};return w.registerProvider(U),U;function ee(I,N,C){var j=W.get(I),Z=!1;if(ue(j)){if(!C)return;j=new d,W.set(I,j),Z=!0}var _e=j.get(N);if(ue(_e)){if(!C)return;if(_e=new d,j.set(N,_e),!P.setProvider(I,N,U))throw j.delete(N),Z&&W.delete(I),new Error("Wrong provider for target.")}return _e}function le(I,N,C){var j=ee(N,C,!1);return ue(j)?!1:Lt(j.has(I))}function Be(I,N,C){var j=ee(N,C,!1);if(!ue(j))return j.get(I)}function nt(I,N,C,j){var Z=ee(C,j,!0);Z.set(I,N)}function Nt(I,N){var C=[],j=ee(I,N,!1);if(ue(j))return C;for(var Z=j.keys(),_e=In(Z),Me=0;;){var ne=Ke(_e);if(!ne)return C.length=Me,C;var Y=An(ne);try{C[Me]=Y}catch(K){try{on(_e)}finally{throw K}}Me++}}function it(I,N,C){var j=ee(N,C,!1);if(ue(j)||!j.delete(I))return!1;if(j.size===0){var Z=W.get(N);ue(Z)||(Z.delete(C),Z.size===0&&W.delete(Z))}return!0}}function bt(P){var W=P.defineMetadata,U=P.hasOwnMetadata,ee=P.getOwnMetadata,le=P.getOwnMetadataKeys,Be=P.deleteMetadata,nt=new v,Nt={isProviderFor:function(it,I){var N=nt.get(it);return!ue(N)&&N.has(I)?!0:le(it,I).length?(ue(N)&&(N=new p,nt.set(it,N)),N.add(I),!0):!1},OrdinaryDefineOwnMetadata:W,OrdinaryHasOwnMetadata:U,OrdinaryGetOwnMetadata:ee,OrdinaryOwnMetadataKeys:le,OrdinaryDeleteMetadata:Be};return Nt}function St(P,W,U){var ee=w.getProvider(P,W);if(!ue(ee))return ee;if(U){if(w.setProvider(P,W,y))return y;throw new Error("Illegal state.")}}})})(n||(n={})),ad}r_();function Qr(n,e,t){return Reflect.getOwnMetadata(e,n,t)}function gu(n,e,t,r){Reflect.defineMetadata(e,t,n,r)}function ei(n,e,t,r,o){const s=r(Qr(n,e,o)??t());Reflect.defineMetadata(e,s,n,o)}const mu="@inversifyjs/container/bindingId";function Mr(){const n=Qr(Object,mu)??0;return n===Number.MAX_SAFE_INTEGER?gu(Object,mu,Number.MIN_SAFE_INTEGER):ei(Object,mu,()=>n,e=>e+1),n}const hn={Request:"Request",Singleton:"Singleton",Transient:"Transient"},je={ConstantValue:"ConstantValue",DynamicValue:"DynamicValue",Factory:"Factory",Instance:"Instance",Provider:"Provider",ResolvedValue:"ResolvedValue",ServiceRedirection:"ServiceRedirection"};function*ud(...n){for(const e of n)yield*e}let bu=class Qy{#e;#t;#r;constructor(e){this.#e=new Map,this.#t={};for(const t of Reflect.ownKeys(e))this.#t[t]=new Map;this.#r=e}add(e,t){this.#o(e).push(t);for(const r of Reflect.ownKeys(t))this.#a(r,t[r]).push(e)}clone(){const e=this.#n(),t=this.#i(),r=Reflect.ownKeys(this.#r),o=this._buildNewInstance(this.#r);this.#h(this.#e,o.#e,e,t);for(const s of r)this.#s(this.#t[s],o.#t[s],e);return o}get(e,t){return this.#t[e].get(t)}getAllKeys(e){return this.#t[e].keys()}removeByRelation(e,t){const r=this.get(e,t);if(r===void 0)return;const o=new Set(r);for(const s of o){const c=this.#e.get(s);if(c===void 0)throw new Error("Expecting model relation, none found");for(const f of c)f[e]===t&&this.#f(s,f);this.#e.delete(s)}}_buildNewInstance(e){return new Qy(e)}_cloneModel(e){return e}_cloneRelation(e){return e}#n(){const e=new Map;for(const t of this.#e.keys()){const r=this._cloneModel(t);e.set(t,r)}return e}#i(){const e=new Map;for(const t of this.#e.values())for(const r of t){const o=this._cloneRelation(r);e.set(r,o)}return e}#o(e){let t=this.#e.get(e);return t===void 0&&(t=[],this.#e.set(e,t)),t}#a(e,t){let r=this.#t[e].get(t);return r===void 0&&(r=[],this.#t[e].set(t,r)),r}#c(e,t){const r=t.get(e);if(r===void 0)throw new Error("Expecting model to be cloned, none found");return r}#u(e,t){const r=t.get(e);if(r===void 0)throw new Error("Expecting relation to be cloned, none found");return r}#s(e,t,r){for(const[o,s]of e){const c=new Array;for(const f of s)c.push(this.#c(f,r));t.set(o,c)}}#h(e,t,r,o){for(const[s,c]of e){const f=new Array;for(const d of c)f.push(this.#u(d,o));t.set(this.#c(s,r),f)}}#f(e,t){for(const r of Reflect.ownKeys(t))this.#l(e,r,t[r])}#l(e,t,r){const o=this.#t[t].get(r);if(o!==void 0){const s=o.indexOf(e);s!==-1&&o.splice(s,1),o.length===0&&this.#t[t].delete(r)}}};var vo;(function(n){n.moduleId="moduleId",n.serviceId="serviceId"})(vo||(vo={}));let cd=class td{#e;#t;constructor(e,t){this.#e=t??new bu({moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#t=e}static build(e){return new td(e)}add(e,t){this.#e.add(e,t)}clone(){return new td(this.#t,this.#e.clone())}get(e){const t=[],r=this.#e.get(vo.serviceId,e);r!==void 0&&t.push(r);const o=this.#t()?.get(e);if(o!==void 0&&t.push(o),t.length!==0)return ud(...t)}removeAllByModuleId(e){this.#e.removeByRelation(vo.moduleId,e)}removeAllByServiceId(e){this.#e.removeByRelation(vo.serviceId,e)}};const go="@inversifyjs/core/classMetadataReflectKey";function mo(){return{constructorArguments:[],lifecycle:{postConstructMethodNames:new Set,preDestroyMethodNames:new Set},properties:new Map,scope:void 0}}const fd="@inversifyjs/core/pendingClassMetadataCountReflectKey",yu=Symbol.for("@inversifyjs/core/InversifyCoreError");class qe extends Error{[yu];kind;constructor(e,t,r){super(t,r),this[yu]=!0,this.kind=e}static is(e){return typeof e=="object"&&e!==null&&e[yu]===!0}static isErrorOfKind(e,t){return qe.is(e)&&e.kind===t}}var Ge,Ti,qt,bo,Gt;function ma(n){const e=Qr(n,go)??mo();if(!(function(t){const r=Qr(t,fd);return r!==void 0&&r!==0})(n))return(function(t,r){const o=[];if(r.length<t.length)throw new qe(Ge.missingInjectionDecorator,`Found unexpected missing metadata on type "${t.name}". "${t.name}" constructor requires at least ${t.length.toString()} arguments, found ${r.length.toString()} instead.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`)}`)})(n,e)}function ld(n,e){const t=ma(e).scope??n.scope;return{cache:{isRight:!1,value:void 0},id:Mr(),implementationType:e,isSatisfiedBy:()=>!0,moduleId:void 0,onActivation:void 0,onDeactivation:void 0,scope:t,serviceIdentifier:e,type:je.Instance}}function yo(n){return n.isRight?{isRight:!0,value:n.value}:n}function i_(n){switch(n.type){case je.ConstantValue:case je.DynamicValue:return(function(e){return{cache:yo(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type,value:e.value}})(n);case je.Factory:return(function(e){return{cache:yo(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}})(n);case je.Instance:return(function(e){return{cache:yo(e.cache),id:e.id,implementationType:e.implementationType,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}})(n);case je.Provider:return(function(e){return{cache:yo(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,provider:e.provider,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}})(n);case je.ResolvedValue:return(function(e){return{cache:yo(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,metadata:e.metadata,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}})(n);case je.ServiceRedirection:return(function(e){return{id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,serviceIdentifier:e.serviceIdentifier,targetServiceIdentifier:e.targetServiceIdentifier,type:e.type}})(n)}}(function(n){n[n.injectionDecoratorConflict=0]="injectionDecoratorConflict",n[n.missingInjectionDecorator=1]="missingInjectionDecorator",n[n.planning=2]="planning",n[n.resolution=3]="resolution",n[n.unknown=4]="unknown"})(Ge||(Ge={})),(function(n){n[n.unknown=32]="unknown"})(Ti||(Ti={})),(function(n){n.id="id",n.moduleId="moduleId",n.serviceId="serviceId"})(qt||(qt={}));let o_=class e_ extends bu{_buildNewInstance(e){return new e_(e)}_cloneModel(e){return i_(e)}},dd=class nd{#e;#t;#r;constructor(e,t,r){this.#t=r??new o_({id:{isOptional:!1},moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#r=e,this.#e=t}static build(e,t){return new nd(e,t)}clone(){return new nd(this.#r,this.#e,this.#t.clone())}get(e){const t=this.getNonParentBindings(e)??this.#r()?.get(e);if(t!==void 0)return t;const r=this.#n(e);return r===void 0?r:[r]}*getChained(e){const t=this.getNonParentBindings(e);t!==void 0&&(yield*t);const r=this.#r();if(r===void 0){if(t===void 0){const o=this.#n(e);o!==void 0&&(yield o)}}else yield*r.getChained(e)}getBoundServices(){const e=new Set(this.#t.getAllKeys(qt.serviceId)),t=this.#r();if(t!==void 0)for(const r of t.getBoundServices())e.add(r);return e}getById(e){return this.#t.get(qt.id,e)??this.#r()?.getById(e)}getByModuleId(e){return this.#t.get(qt.moduleId,e)??this.#r()?.getByModuleId(e)}getNonParentBindings(e){return this.#t.get(qt.serviceId,e)}getNonParentBoundServices(){return this.#t.getAllKeys(qt.serviceId)}removeById(e){this.#t.removeByRelation(qt.id,e)}removeAllByModuleId(e){this.#t.removeByRelation(qt.moduleId,e)}removeAllByServiceId(e){this.#t.removeByRelation(qt.serviceId,e)}set(e){const t={[qt.id]:e.id,[qt.serviceId]:e.serviceIdentifier};e.moduleId!==void 0&&(t[qt.moduleId]=e.moduleId),this.#t.add(e,t)}#n(e){if(this.#e===void 0||typeof e!="function")return;const t=ld(this.#e,e);return this.set(t),t}};(function(n){n.moduleId="moduleId",n.serviceId="serviceId"})(bo||(bo={}));let hd=class rd{#e;#t;constructor(e,t){this.#e=t??new bu({moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#t=e}static build(e){return new rd(e)}add(e,t){this.#e.add(e,t)}clone(){return new rd(this.#t,this.#e.clone())}get(e){const t=[],r=this.#e.get(bo.serviceId,e);r!==void 0&&t.push(r);const o=this.#t()?.get(e);if(o!==void 0&&t.push(o),t.length!==0)return ud(...t)}removeAllByModuleId(e){this.#e.removeByRelation(bo.moduleId,e)}removeAllByServiceId(e){this.#e.removeByRelation(bo.serviceId,e)}};function a_(){return 0}function s_(n){return e=>{e!==void 0&&e.kind===Ti.unknown&&ei(n,fd,a_,t=>t-1)}}function u_(n,e){return(...t)=>r=>{if(r===void 0)return n(...t);if(r.kind===Gt.unmanaged)throw new qe(Ge.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");return e(r,...t)}}function c_(n){if(n.kind!==Ti.unknown&&n.isFromTypescriptParamType!==!0)throw new qe(Ge.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}(function(n){n[n.multipleInjection=0]="multipleInjection",n[n.singleInjection=1]="singleInjection",n[n.unmanaged=2]="unmanaged"})(Gt||(Gt={}));const f_=u_(function(n,e,t){return n===Gt.multipleInjection?{chained:t?.chained??!1,kind:n,name:void 0,optional:!1,tags:new Map,value:e}:{kind:n,name:void 0,optional:!1,tags:new Map,value:e}},function(n,e,t,r){return c_(n),e===Gt.multipleInjection?{...n,chained:r?.chained??!1,kind:e,value:t}:{...n,kind:e,value:t}});function pd(n,e){return t=>{const r=t.properties.get(e);return t.properties.set(e,n(r)),t}}var Rr;function l_(n,e,t,r){if(qe.isErrorOfKind(r,Ge.injectionDecoratorConflict)){const o=(function(s,c,f){if(f===void 0){if(c===void 0)throw new qe(Ge.unknown,"Unexpected undefined property and index values");return{kind:Rr.property,property:c,targetClass:s.constructor}}return typeof f=="number"?{index:f,kind:Rr.parameter,targetClass:s}:{kind:Rr.method,method:c,targetClass:s}})(n,e,t);throw new qe(Ge.injectionDecoratorConflict,`Unexpected injection error.
|
|
19
|
-
|
|
20
|
-
Cause:
|
|
21
|
-
|
|
22
|
-
${r.message}
|
|
23
|
-
|
|
24
|
-
Details
|
|
25
|
-
|
|
26
|
-
${(function(s){switch(s.kind){case Rr.method:return`[class: "${s.targetClass.name}", method: "${s.method.toString()}"]`;case Rr.parameter:return`[class: "${s.targetClass.name}", index: "${s.index.toString()}"]`;case Rr.property:return`[class: "${s.targetClass.name}", property: "${s.property.toString()}"]`}})(o)}`,{cause:r})}throw r}function d_(n,e){return(t,r,o)=>{try{o===void 0?(function(s,c){const f=_u(s,c);return(d,p)=>{ei(d.constructor,go,mo,pd(f(d),p))}})(n,e)(t,r):typeof o=="number"?(function(s,c){const f=_u(s,c);return(d,p,v)=>{if(!(function(b,w){return typeof b=="function"&&w===void 0})(d,p))throw new qe(Ge.injectionDecoratorConflict,`Found an @inject decorator in a non constructor parameter.
|
|
27
|
-
Found @inject decorator at method "${p?.toString()??""}" at class "${d.constructor.name}"`);ei(d,go,mo,(function(b,w){return y=>{const O=y.constructorArguments[w];return y.constructorArguments[w]=b(O),y}})(f(d),v))}})(n,e)(t,r,o):(function(s,c){const f=_u(s,c);return(d,p,v)=>{if(!(function(b){return b.set!==void 0})(v))throw new qe(Ge.injectionDecoratorConflict,`Found an @inject decorator in a non setter property method.
|
|
28
|
-
Found @inject decorator at method "${p.toString()}" at class "${d.constructor.name}"`);ei(d.constructor,go,mo,pd(f(d),p))}})(n,e)(t,r,o)}catch(s){l_(t,r,o,s)}}}function _u(n,e){return t=>{const r=e(t);return o=>(r(o),n(o))}}function h_(n){return d_(f_(Gt.singleInjection,n),s_)}(function(n){n[n.method=0]="method",n[n.parameter=1]="parameter",n[n.property=2]="property"})(Rr||(Rr={}));const vd="@inversifyjs/core/classIsInjectableFlagReflectKey",p_=[Array,BigInt,Boolean,Function,Number,Object,String];function v_(n){const e=Qr(n,"design:paramtypes");e!==void 0&&ei(n,go,mo,(function(t){return r=>(t.forEach((o,s)=>{var c;r.constructorArguments[s]!==void 0||(c=o,p_.includes(c))||(r.constructorArguments[s]=(function(f){return{isFromTypescriptParamType:!0,kind:Gt.singleInjection,name:void 0,optional:!1,tags:new Map,value:f}})(o))}),r)})(e))}function gd(n){return e=>{(function(t){if(Qr(t,vd)!==void 0)throw new qe(Ge.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${t.name}"`);gu(t,vd,!0)})(e),v_(e)}}var ur;(function(n){n[n.multipleInjection=0]="multipleInjection",n[n.singleInjection=1]="singleInjection"})(ur||(ur={}));const g_=/stack space|call stack|too much recursion/i,m_=/too much recursion/;function wu(n){try{return n instanceof Error&&(n instanceof RangeError&&g_.test(n.message)||n.name==="InternalError"&&m_.test(n.message))}catch(e){return e instanceof SyntaxError&&e.message.includes("Stack overflow")}}function b_(n,e){if(wu(e)){const t=(function(r){const o=[...r];return o.length===0?"(No dependency trace)":o.map(Et).join(" -> ")})((function(r){const o=new Set;for(const s of r.servicesBranch){if(o.has(s))return[...o,s];o.add(s)}return[...o]})(n));throw new qe(Ge.planning,`Circular dependency found: ${t}`,{cause:e})}throw e}const Su=Symbol.for("@inversifyjs/core/LazyPlanServiceNode");class Yt{[Su];_serviceIdentifier;_serviceNode;constructor(e,t){this[Su]=!0,this._serviceNode=e,this._serviceIdentifier=t}get bindings(){return this._getNode().bindings}get isContextFree(){return this._getNode().isContextFree}get serviceIdentifier(){return this._serviceIdentifier}set bindings(e){this._getNode().bindings=e}set isContextFree(e){this._getNode().isContextFree=e}static is(e){return typeof e=="object"&&e!==null&&e[Su]===!0}invalidate(){this._serviceNode=void 0}isExpanded(){return this._serviceNode!==void 0}_getNode(){return this._serviceNode===void 0&&(this._serviceNode=this._buildPlanServiceNode()),this._serviceNode}}class Lr{#e;constructor(e){this.#e=e}get name(){return this.#e.elem.name}get serviceIdentifier(){return this.#e.elem.serviceIdentifier}get tags(){return this.#e.elem.tags}getAncestor(){if(this.#e.elem.getAncestorsCalled=!0,this.#e.previous!==void 0)return new Lr(this.#e.previous)}}function ba(n,e,t){const r=t?.customServiceIdentifier??e.serviceIdentifier,o=(t?.chained===!0?[...n.operations.getBindingsChained(r)]:[...n.operations.getBindings(r)??[]]).filter(s=>s.isSatisfiedBy(e));if(o.length===0&&n.autobindOptions!==void 0&&typeof r=="function"){const s=ld(n.autobindOptions,r);n.operations.setBinding(s),s.isSatisfiedBy(e)&&o.push(s)}return o}class Ou{last;constructor(e){this.last=e}concat(e){return new Ou({elem:e,previous:this.last})}[Symbol.iterator](){let e=this.last;return{next:()=>{if(e===void 0)return{done:!0,value:void 0};const t=e.elem;return e=e.previous,{done:!1,value:t}}}}}function Eu(n){const e=new Map;return n.rootConstraints.tag!==void 0&&e.set(n.rootConstraints.tag.key,n.rootConstraints.tag.value),new Ou({elem:{getAncestorsCalled:!1,name:n.rootConstraints.name,serviceIdentifier:n.rootConstraints.serviceIdentifier,tags:e},previous:void 0})}function ti(n){return n.redirections!==void 0}function md(n,e,t,r){const o=t.elem.serviceIdentifier,s=t.previous?.elem.serviceIdentifier;Array.isArray(n)?(function(c,f,d,p,v,b){if(c.length!==0){const w=b[b.length-1]??d,y=`Ambiguous bindings found for service: "${Et(w)}".${wd(b)}
|
|
29
|
-
|
|
30
|
-
Registered bindings:
|
|
31
|
-
|
|
32
|
-
${c.map(O=>(function(S){switch(S.type){case je.Instance:return`[ type: "${S.type}", serviceIdentifier: "${Et(S.serviceIdentifier)}", scope: "${S.scope}", implementationType: "${S.implementationType.name}" ]`;case je.ServiceRedirection:return`[ type: "${S.type}", serviceIdentifier: "${Et(S.serviceIdentifier)}", redirection: "${Et(S.targetServiceIdentifier)}" ]`;default:return`[ type: "${S.type}", serviceIdentifier: "${Et(S.serviceIdentifier)}", scope: "${S.scope}" ]`}})(O.binding)).join(`
|
|
33
|
-
`)}
|
|
34
|
-
|
|
35
|
-
Trying to resolve bindings for "${yd(d,p)}".${_d(v)}`;throw new qe(Ge.planning,y)}f||bd(d,p,v,b)})(n,e,o,s,t.elem,r):(function(c,f,d,p,v,b){c!==void 0||f||bd(d,p,v,b)})(n,e,o,s,t.elem,r)}function bd(n,e,t,r){const o=r[r.length-1]??n,s=`No bindings found for service: "${Et(o)}".
|
|
36
|
-
|
|
37
|
-
Trying to resolve bindings for "${yd(n,e)}".${wd(r)}${_d(t)}`;throw new qe(Ge.planning,s)}function yd(n,e){return e===void 0?`${Et(n)} (Root service)`:Et(e)}function _d(n){const e=n.tags.size===0?"":`
|
|
38
|
-
- tags:
|
|
39
|
-
- ${[...n.tags.keys()].map(t=>t.toString()).join(`
|
|
40
|
-
- `)}`;return`
|
|
41
|
-
|
|
42
|
-
Binding constraints:
|
|
43
|
-
- service identifier: ${Et(n.serviceIdentifier)}
|
|
44
|
-
- name: ${n.name?.toString()??"-"}${e}`}function wd(n){return n.length===0?"":`
|
|
45
|
-
|
|
46
|
-
- service redirections:
|
|
47
|
-
- ${n.map(e=>Et(e)).join(`
|
|
48
|
-
- `)}`}function Sd(n,e,t,r){if(n.redirections.length===1){const[o]=n.redirections;return void(ti(o)&&Sd(o,e,t,[...r,o.binding.targetServiceIdentifier]))}md(n.redirections,e,t,r)}function Iu(n,e,t){if(Array.isArray(n.bindings)&&n.bindings.length===1){const[r]=n.bindings;return void(ti(r)&&Sd(r,e,t,[r.binding.targetServiceIdentifier]))}md(n.bindings,e,t,[])}function ya(n){return ga.is(n)?n.unwrap():n}function Od(n){return(e,t,r)=>{const o=ya(r.value),s=t.concat({getAncestorsCalled:!1,name:r.name,serviceIdentifier:o,tags:r.tags}),c=new Lr(s.last),f=r.kind===Gt.multipleInjection&&r.chained,d=ba(e,c,{chained:f}),p=[],v={bindings:p,isContextFree:!0,serviceIdentifier:o};if(p.push(...n(e,s,d,v,f)),v.isContextFree=!s.last.elem.getAncestorsCalled,r.kind===Gt.singleInjection){Iu(v,r.optional,s.last);const[b]=p;v.bindings=b}return v}}function Ed(n){return(e,t,r)=>{const o=ya(r.value),s=t.concat({getAncestorsCalled:!1,name:r.name,serviceIdentifier:o,tags:r.tags}),c=new Lr(s.last),f=r.kind===ur.multipleInjection&&r.chained,d=ba(e,c,{chained:f}),p=[],v={bindings:p,isContextFree:!0,serviceIdentifier:o};if(p.push(...n(e,s,d,v,f)),v.isContextFree=!s.last.elem.getAncestorsCalled,r.kind===ur.singleInjection){Iu(v,r.optional,s.last);const[b]=p;v.bindings=b}return v}}function Id(n){const e=(function(s){return(c,f,d)=>{const p={binding:f,classMetadata:c.operations.getClassMetadata(f.implementationType),constructorParams:[],propertyParams:new Map},v={autobindOptions:c.autobindOptions,node:p,operations:c.operations,servicesBranch:c.servicesBranch};return s(v,d)}})(n),t=(function(s){return(c,f,d)=>{const p={binding:f,params:[]},v={autobindOptions:c.autobindOptions,node:p,operations:c.operations,servicesBranch:c.servicesBranch};return s(v,d)}})(n),r=(s,c,f,d,p)=>{const v=ti(d)?d.binding.targetServiceIdentifier:d.serviceIdentifier;s.servicesBranch.push(v);const b=[];for(const w of f)switch(w.type){case je.Instance:b.push(e(s,w,c));break;case je.ResolvedValue:b.push(t(s,w,c));break;case je.ServiceRedirection:{const y=o(s,c,w,p);b.push(y);break}default:b.push({binding:w})}return s.servicesBranch.pop(),b},o=(function(s){return(c,f,d,p)=>{const v={binding:d,redirections:[]},b=ba(c,new Lr(f.last),{chained:p,customServiceIdentifier:d.targetServiceIdentifier});return v.redirections.push(...s(c,f,b,v,p)),v}})(r);return r}function Ad(n,e,t,r){if(n!==void 0&&(Yt.is(t)&&!t.isExpanded()||t.isContextFree)){const o={tree:{root:t}};e.setPlan(n,o)}else e.setNonCachedServiceNode(t,r)}class y_ extends Yt{#e;#t;#r;#n;constructor(e,t,r,o,s){super(s,ya(o.value)),this.#t=t,this.#e=e,this.#r=r,this.#n=o}_buildPlanServiceNode(){return this.#t(this.#e,this.#r,this.#n)}}class __ extends Yt{#e;#t;#r;#n;constructor(e,t,r,o,s){super(s,ya(o.value)),this.#e=e,this.#t=t,this.#r=r,this.#n=o}_buildPlanServiceNode(){return this.#t(this.#e,this.#r,this.#n)}}function Td(n,e,t,r){const o=(function(c,f){const d=(function(p,v){return(b,w,y)=>{if(y.kind===Gt.unmanaged)return;const O=(function(x){let k;if(x.tags.size===0)k=void 0;else{if(x.tags.size!==1)return;{const[oe,q]=x.tags.entries().next().value;k={key:oe,value:q}}}const G=ga.is(x.value)?x.value.unwrap():x.value;return x.kind===Gt.multipleInjection?{chained:x.chained,isMultiple:!0,name:x.name,optional:x.optional,serviceIdentifier:G,tag:k}:{isMultiple:!1,name:x.name,optional:x.optional,serviceIdentifier:G,tag:k}})(y);if(O!==void 0){const x=b.operations.getPlan(O);if(x!==void 0&&x.tree.root.isContextFree)return x.tree.root}const S=v(b,w,y),A=new y_(b,p,w,y,S);return Ad(O,b.operations,A,{bindingConstraintsList:w,chainedBindings:y.kind===Gt.multipleInjection&&y.chained,optionalBindings:y.optional}),A}})(c,f);return(p,v,b)=>{const w=v.classMetadata;for(const[y,O]of w.constructorArguments.entries())v.constructorParams[y]=d(p,b,O);for(const[y,O]of w.properties){const S=d(p,b,O);S!==void 0&&v.propertyParams.set(y,S)}return p.node}})(n,t),s=(function(c,f){const d=(function(p,v){return(b,w,y)=>{const O=(function(x){let k;if(x.tags.size===0)k=void 0;else{if(x.tags.size!==1)return;{const[oe,q]=x.tags.entries().next().value;k={key:oe,value:q}}}const G=ga.is(x.value)?x.value.unwrap():x.value;return x.kind===ur.multipleInjection?{chained:x.chained,isMultiple:!0,name:x.name,optional:x.optional,serviceIdentifier:G,tag:k}:{isMultiple:!1,name:x.name,optional:x.optional,serviceIdentifier:G,tag:k}})(y);if(O!==void 0){const x=b.operations.getPlan(O);if(x!==void 0&&x.tree.root.isContextFree)return x.tree.root}const S=v(b,w,y),A=new __(b,p,w,y,S);return Ad(O,b.operations,A,{bindingConstraintsList:w,chainedBindings:y.kind===ur.multipleInjection&&y.chained,optionalBindings:y.optional}),A}})(c,f);return(p,v,b)=>{const w=v.binding.metadata;for(const[y,O]of w.arguments.entries())v.params[y]=d(p,b,O);return p.node}})(e,r);return(c,f)=>c.node.binding.type===je.Instance?o(c,c.node,f):s(c,c.node,f)}class w_ extends Yt{#e;constructor(e,t){super(t,t.serviceIdentifier),this.#e=e}_buildPlanServiceNode(){return Dd(this.#e)}}const Au=Od(Nd),Tu=Ed(Nd),xd=Id(Td(Au,Tu,Au,Tu));function Nd(n,e,t,r,o){return xd(n,e,t,r,o)}const Dd=(function(n){return e=>{const t=Eu(e),r=new Lr(t.last),o=e.rootConstraints.isMultiple&&e.rootConstraints.chained,s=ba(e,r,{chained:o}),c=[],f={bindings:c,isContextFree:!0,serviceIdentifier:e.rootConstraints.serviceIdentifier};if(c.push(...n(e,t,s,f,o)),f.isContextFree=!t.last.elem.getAncestorsCalled,!e.rootConstraints.isMultiple){Iu(f,e.rootConstraints.isOptional??!1,t.last);const[d]=c;f.bindings=d}return f}})(xd);function S_(n){try{const e=(function(s){return s.rootConstraints.isMultiple?{chained:s.rootConstraints.chained,isMultiple:!0,name:s.rootConstraints.name,optional:s.rootConstraints.isOptional??!1,serviceIdentifier:s.rootConstraints.serviceIdentifier,tag:s.rootConstraints.tag}:{isMultiple:!1,name:s.rootConstraints.name,optional:s.rootConstraints.isOptional??!1,serviceIdentifier:s.rootConstraints.serviceIdentifier,tag:s.rootConstraints.tag}})(n),t=n.operations.getPlan(e);if(t!==void 0)return t;const r=Dd(n),o={tree:{root:new w_(n,r)}};return n.operations.setPlan(e,o),o}catch(e){b_(n,e)}}var kn;(function(n){n.bindingAdded="bindingAdded",n.bindingRemoved="bindingRemoved"})(kn||(kn={}));class O_{#e;#t;#r;constructor(){this.#e=[],this.#t=8,this.#r=1024}*[Symbol.iterator](){let e=0;for(const t of this.#e){const r=t.deref();r===void 0?++e:yield r}this.#e.length>=this.#t&&this.#i(e)&&this.#n(e)}push(e){const t=new WeakRef(e);if(this.#e.push(t),this.#e.length>=this.#t&&this.#e.length%this.#r===0){let r=0;for(const o of this.#e)o.deref()===void 0&&++r;this.#i(r)&&this.#n(r)}}#n(e){const t=new Array(this.#e.length-e);let r=0;for(const o of this.#e)o.deref()&&(t[r++]=o);this.#e=t}#i(e){return e>=.5*this.#e.length}}const xu=Id(Td(Au,Tu,function(n,e,t){return E_(n,e,t)},function(n,e,t){return I_(n,e,t)})),E_=(function(n){const e=Od(n);return(t,r,o)=>{try{return e(t,r,o)}catch(s){if(qe.isErrorOfKind(s,Ge.planning))return;throw s}}})(xu),I_=(function(n){const e=Ed(n);return(t,r,o)=>{try{return e(t,r,o)}catch(s){if(qe.isErrorOfKind(s,Ge.planning))return;throw s}}})(xu);function Cd(n,e,t,r,o){if(Yt.is(e)&&!e.isExpanded())return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1};const s=new Lr(r.last);return!t.isSatisfiedBy(s)||r.last.elem.getAncestorsCalled?{isContextFreeBinding:!r.last.elem.getAncestorsCalled,shouldInvalidateServiceNode:!1}:(function(c,f,d,p,v){let b;try{[b]=xu(c,p,[d],f,v)}catch(w){if(wu(w))return{isContextFreeBinding:!1,shouldInvalidateServiceNode:!0};throw w}return(function(w,y){if(Array.isArray(w.bindings))w.bindings.push(y);else{if(w.bindings!==void 0){if(!Yt.is(w))throw new qe(Ge.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!0}}w.bindings=y}return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}})(f,b)})(n,e,t,r,o)}function Pd(n,e,t,r){if(Yt.is(n)&&!n.isExpanded())return{bindingNodeRemoved:void 0,isContextFreeBinding:!0};const o=new Lr(t.last);if(!e.isSatisfiedBy(o)||t.last.elem.getAncestorsCalled)return{bindingNodeRemoved:void 0,isContextFreeBinding:!t.last.elem.getAncestorsCalled};let s;if(Array.isArray(n.bindings))n.bindings=n.bindings.filter(c=>c.binding!==e||(s=c,!1));else if(n.bindings?.binding===e)if(s=n.bindings,r)n.bindings=void 0;else{if(!Yt.is(n))throw new qe(Ge.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");n.invalidate()}return{bindingNodeRemoved:s,isContextFreeBinding:!0}}class Md{#e;#t;#r;#n;#i;#o;constructor(){this.#e=new Map,this.#t=this.#a(),this.#r=this.#a(),this.#n=this.#a(),this.#i=this.#a(),this.#o=new O_}clearCache(){for(const e of this.#h())e.clear();for(const e of this.#o)e.clearCache()}get(e){return e.name===void 0?e.tag===void 0?this.#s(this.#t,e).get(e.serviceIdentifier):this.#s(this.#i,e).get(e.serviceIdentifier)?.get(e.tag.key)?.get(e.tag.value):e.tag===void 0?this.#s(this.#r,e).get(e.serviceIdentifier)?.get(e.name):this.#s(this.#n,e).get(e.serviceIdentifier)?.get(e.name)?.get(e.tag.key)?.get(e.tag.value)}invalidateServiceBinding(e){this.#y(e),this.#l(e),this.#d(e),this.#_(e),this.#b(e);for(const t of this.#o)t.invalidateServiceBinding(e)}set(e,t){e.name===void 0?e.tag===void 0?this.#s(this.#t,e).set(e.serviceIdentifier,t):this.#u(this.#u(this.#s(this.#i,e),e.serviceIdentifier),e.tag.key).set(e.tag.value,t):e.tag===void 0?this.#u(this.#s(this.#r,e),e.serviceIdentifier).set(e.name,t):this.#u(this.#u(this.#u(this.#s(this.#n,e),e.serviceIdentifier),e.name),e.tag.key).set(e.tag.value,t)}setNonCachedServiceNode(e,t){let r=this.#e.get(e.serviceIdentifier);r===void 0&&(r=new Map,this.#e.set(e.serviceIdentifier,r)),r.set(e,t)}subscribe(e){this.#o.push(e)}#a(){const e=new Array(8);for(let t=0;t<e.length;++t)e[t]=new Map;return e}#c(e,t,r,o){const s=!!(2&t);let c;return s?c={chained:!!(0&t),isMultiple:s,serviceIdentifier:e.binding.serviceIdentifier}:c={isMultiple:s,serviceIdentifier:e.binding.serviceIdentifier},1&t&&(c.isOptional=!0),r!==void 0&&(c.name=r),o!==void 0&&(c.tag=o),{autobindOptions:void 0,operations:e.operations,rootConstraints:c,servicesBranch:[]}}#u(e,t){let r=e.get(t);return r===void 0&&(r=new Map,e.set(t,r)),r}#s(e,t){return e[this.#f(t)]}#h(){return[this.#e,...this.#t,...this.#r,...this.#n,...this.#i]}#f(e){return e.isMultiple?(e.chained?4:0)|(e.optional?1:0)|2:e.optional?1:0}#l(e){for(const[t,r]of this.#r.entries()){const o=r.get(e.binding.serviceIdentifier);if(o!==void 0)for(const[s,c]of o.entries())this.#v(e,c,t,s,void 0)}}#d(e){for(const[t,r]of this.#n.entries()){const o=r.get(e.binding.serviceIdentifier);if(o!==void 0)for(const[s,c]of o.entries())for(const[f,d]of c.entries())for(const[p,v]of d.entries())this.#v(e,v,t,s,{key:f,value:p})}}#p(e){switch(e.binding.type){case je.ServiceRedirection:for(const t of e.redirections)this.#p(t);break;case je.Instance:for(const t of e.constructorParams)t!==void 0&&this.#g(t);for(const t of e.propertyParams.values())this.#g(t);break;case je.ResolvedValue:for(const t of e.params)this.#g(t)}}#g(e){const t=this.#e.get(e.serviceIdentifier);t!==void 0&&t.has(e)&&(t.delete(e),this.#m(e))}#m(e){if((!Yt.is(e)||e.isExpanded())&&e.bindings!==void 0)if(Array.isArray(e.bindings))for(const t of e.bindings)this.#p(t);else this.#p(e.bindings)}#b(e){const t=this.#e.get(e.binding.serviceIdentifier);if(t!==void 0)switch(e.kind){case kn.bindingAdded:for(const[r,o]of t){const s=Cd({autobindOptions:void 0,operations:e.operations,servicesBranch:[]},r,e.binding,o.bindingConstraintsList,o.chainedBindings);s.isContextFreeBinding?s.shouldInvalidateServiceNode&&Yt.is(r)&&(this.#m(r),r.invalidate()):this.clearCache()}break;case kn.bindingRemoved:for(const[r,o]of t){const s=Pd(r,e.binding,o.bindingConstraintsList,o.optionalBindings);s.isContextFreeBinding?s.bindingNodeRemoved!==void 0&&this.#p(s.bindingNodeRemoved):this.clearCache()}}}#y(e){for(const[t,r]of this.#t.entries()){const o=r.get(e.binding.serviceIdentifier);this.#v(e,o,t,void 0,void 0)}}#_(e){for(const[t,r]of this.#i.entries()){const o=r.get(e.binding.serviceIdentifier);if(o!==void 0)for(const[s,c]of o.entries())for(const[f,d]of c.entries())this.#v(e,d,t,void 0,{key:s,value:f})}}#v(e,t,r,o,s){if(t!==void 0&&Yt.is(t.tree.root)){const p=this.#c(e,r,o,s);switch(e.kind){case kn.bindingAdded:{const v=(c=p,f=t.tree.root,d=e.binding,Yt.is(f)&&!f.isExpanded()?{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}:Cd(c,f,d,Eu(c),c.rootConstraints.isMultiple&&c.rootConstraints.chained));v.isContextFreeBinding?v.shouldInvalidateServiceNode&&(this.#m(t.tree.root),t.tree.root.invalidate()):this.clearCache()}break;case kn.bindingRemoved:{const v=(function(b,w,y){return Yt.is(w)&&!w.isExpanded()?{bindingNodeRemoved:void 0,isContextFreeBinding:!0}:Pd(w,y,Eu(b),b.rootConstraints.isOptional??!1)})(p,t.tree.root,e.binding);v.isContextFreeBinding?v.bindingNodeRemoved!==void 0&&this.#p(v.bindingNodeRemoved):this.clearCache()}}}var c,f,d}}function A_(n,e){if(wu(e)){const t=(function(r){const o=[...r];return o.length===0?"(No dependency trace)":o.map(Et).join(" -> ")})((function(r){const o=r.planResult.tree.root,s=[];function c(f){const d=s.indexOf(f);if(d!==-1)return[...s.slice(d),f].map(p=>p.serviceIdentifier);s.push(f);try{for(const p of(function(v){const b=[],w=v.bindings;if(w===void 0)return b;const y=O=>{if(ti(O))for(const S of O.redirections)y(S);else switch(O.binding.type){case je.Instance:{const S=O;for(const A of S.constructorParams)A!==void 0&&b.push(A);for(const A of S.propertyParams.values())b.push(A);break}case je.ResolvedValue:{const S=O;for(const A of S.params)b.push(A);break}}};if(Array.isArray(w))for(const O of w)y(O);else y(w);return b})(f)){const v=c(p);if(v!==void 0)return v}}finally{s.pop()}}return c(o)??[]})(n));throw new qe(Ge.planning,`Circular dependency found: ${t}`,{cause:e})}throw e}function Rd(n,e){return ut(e)?(n.cache={isRight:!0,value:e},e.then(t=>Ld(n,t))):Ld(n,e)}function Ld(n,e){return n.cache={isRight:!0,value:e},e}function T_(n,e,t){const r=n.getActivations(e);return r===void 0?t:ut(t)?kd(n,t,r[Symbol.iterator]()):(function(o,s,c){let f=s,d=c.next();for(;d.done!==!0;){const p=d.value(o.context,f);if(ut(p))return kd(o,p,c);f=p,d=c.next()}return f})(n,t,r[Symbol.iterator]())}async function kd(n,e,t){let r=await e,o=t.next();for(;o.done!==!0;)r=await o.value(n.context,r),o=t.next();return r}function _a(n,e,t){let r=t;if(e.onActivation!==void 0){const o=e.onActivation;r=ut(r)?r.then(s=>o(n.context,s)):o(n.context,r)}return T_(n,e.serviceIdentifier,r)}function Nu(n){return(e,t)=>t.cache.isRight?t.cache.value:Rd(t,_a(e,t,n(e,t)))}const x_=Nu(function(n,e){return e.value});function N_(n){return n}function Du(n,e){return(t,r)=>{const o=n(r);switch(o.scope){case hn.Singleton:return o.cache.isRight?o.cache.value:Rd(o,_a(t,o,e(t,r)));case hn.Request:{if(t.requestScopeCache.has(o.id))return t.requestScopeCache.get(o.id);const s=_a(t,o,e(t,r));return t.requestScopeCache.set(o.id,s),s}case hn.Transient:return _a(t,o,e(t,r))}}}const D_=(n=>Du(N_,n))(function(n,e){return e.value(n.context)}),C_=Nu(function(n,e){return e.factory(n.context)});function Bd(n,e,t){const r=(function(o,s,c){if(!(c in o))throw new qe(Ge.resolution,`Expecting a "${c.toString()}" property when resolving "${s.implementationType.name}" class @postConstruct decorated method, none found.`);if(typeof o[c]!="function")throw new qe(Ge.resolution,`Expecting a "${c.toString()}" method when resolving "${s.implementationType.name}" class @postConstruct decorated method, a non function property was found instead.`);{let f;try{f=o[c]()}catch(d){throw new qe(Ge.resolution,`Unexpected error found when calling "${c.toString()}" @postConstruct decorated method on class "${s.implementationType.name}"`,{cause:d})}if(ut(f))return(async function(d,p,v){try{await v}catch(b){throw new qe(Ge.resolution,`Unexpected error found when calling "${p.toString()}" @postConstruct decorated method on class "${d.implementationType.name}"`,{cause:b})}})(s,c,f)}})(n,e,t);return ut(r)?r.then(()=>n):n}function jd(n,e,t){if(t.size===0)return n;let r=n;for(const o of t)r=ut(r)?r.then(s=>Bd(s,e,o)):Bd(r,e,o);return r}function Fd(n){return(e,t,r)=>{const o=new r.binding.implementationType(...e),s=n(t,o,r);return ut(s)?s.then(()=>jd(o,r.binding,r.classMetadata.lifecycle.postConstructMethodNames)):jd(o,r.binding,r.classMetadata.lifecycle.postConstructMethodNames)}}const P_=Nu(function(n,e){return e.provider(n.context)});function M_(n){return n.binding}function R_(n){return n.binding}const $d=(function(n){return(e,t,r)=>{const o=[];for(const[s,c]of r.propertyParams){const f=r.classMetadata.properties.get(s);if(f===void 0)throw new qe(Ge.resolution,`Expecting metadata at property "${s.toString()}", none found`);f.kind!==Gt.unmanaged&&c.bindings!==void 0&&(t[s]=n(e,c),ut(t[s])&&o.push((async()=>{t[s]=await t[s]})()))}if(o.length>0)return Promise.all(o).then(()=>{})}})(wa),Vd=(function(n){return function e(t,r){const o=[];for(const s of r.redirections)ti(s)?o.push(...e(t,s)):o.push(n(t,s));return o}})(Cu),L_=(function(n,e,t){return(r,o)=>{const s=n(r,o);return ut(s)?e(s,r,o):t(s,r,o)}})((function(n){return(e,t)=>{const r=[];for(const o of t.constructorParams)o===void 0?r.push(void 0):r.push(n(e,o));return r.some(ut)?Promise.all(r):r}})(wa),(function(n){return async(e,t,r)=>{const o=await e;return n(o,t,r)}})(Fd($d)),Fd($d)),k_=(function(n){return(e,t)=>{const r=n(e,t);return ut(r)?r.then(o=>t.binding.factory(...o)):t.binding.factory(...r)}})((function(n){return(e,t)=>{const r=[];for(const o of t.params)r.push(n(e,o));return r.some(ut)?Promise.all(r):r}})(wa)),B_=(n=>Du(M_,n))(L_),j_=(n=>Du(R_,n))(k_);function F_(n){try{return wa(n,n.planResult.tree.root)}catch(e){A_(n,e)}}function Cu(n,e){switch(e.binding.type){case je.ConstantValue:return x_(n,e.binding);case je.DynamicValue:return D_(n,e.binding);case je.Factory:return C_(n,e.binding);case je.Instance:return B_(n,e);case je.Provider:return P_(n,e.binding);case je.ResolvedValue:return j_(n,e)}}function wa(n,e){if(e.bindings!==void 0)return Array.isArray(e.bindings)?(function(t,r){const o=[];for(const s of r)ti(s)?o.push(...Vd(t,s)):o.push(Cu(t,s));return o.some(ut)?Promise.all(o):o})(n,e.bindings):(function(t,r){if(ti(r)){const o=Vd(t,r);if(o.length===1)return o[0];throw new qe(Ge.resolution,"Unexpected multiple resolved values on single injection")}return Cu(t,r)})(n,e.bindings)}function $_(n){return n.scope!==void 0}function Wd(n,e){if(typeof n[e]=="function")return n[e]()}function Ud(n,e){const t=n.lifecycle.preDestroyMethodNames;if(t.size===0)return;let r;for(const o of t)r=r===void 0?Wd(e,o):r.then(()=>Wd(e,o));return r}function zd(n,e,t){const r=n.getDeactivations(e);if(r!==void 0)return ut(t)?Hd(t,r[Symbol.iterator]()):(function(o,s){let c=s.next();for(;c.done!==!0;){const f=c.value(o);if(ut(f))return Hd(o,s);c=s.next()}})(t,r[Symbol.iterator]())}async function Hd(n,e){const t=await n;let r=e.next();for(;r.done!==!0;)await r.value(t),r=e.next()}function V_(n,e){const t=(function(r,o){if(o.type===je.Instance){const s=r.getClassMetadata(o.implementationType),c=o.cache.value;return ut(c)?c.then(f=>Ud(s,f)):Ud(s,c)}})(n,e);return t===void 0?qd(n,e):t.then(()=>qd(n,e))}function qd(n,e){const t=e.cache;return ut(t.value)?t.value.then(r=>Gd(n,e,r)):Gd(n,e,t.value)}function Gd(n,e,t){let r;return e.onDeactivation!==void 0&&(r=(0,e.onDeactivation)(t)),r===void 0?zd(n,e.serviceIdentifier,t):r.then(()=>zd(n,e.serviceIdentifier,t))}function Sa(n,e){if(e===void 0)return;const t=(function(o){const s=[];for(const c of o)$_(c)&&c.scope===hn.Singleton&&c.cache.isRight&&s.push(c);return s})(e),r=[];for(const o of t){const s=V_(n,o);s!==void 0&&r.push(s)}return r.length>0?Promise.all(r).then(()=>{}):void 0}function W_(n,e){const t=n.getBindingsFromModule(e);return Sa(n,t)}function U_(n,e){const t=n.getBindings(e);return Sa(n,t)}const z_=Symbol.for("@inversifyjs/plugin/isPlugin"),Pu="@inversifyjs/container/bindingId";let H_=class{#e;#t;constructor(e){this.#e=(function(){const t=Qr(Object,Pu)??0;return t===Number.MAX_SAFE_INTEGER?gu(Object,Pu,Number.MIN_SAFE_INTEGER):ei(Object,Pu,()=>t,r=>r+1),t})(),this.#t=e}get id(){return this.#e}load(e){return this.#t(e)}};const Yd=Symbol.for("@inversifyjs/container/bindingIdentifier");function Jd(n){return typeof n=="object"&&n!==null&&n[Yd]===!0}let ni=class{static always=e=>!0};const Mu=Symbol.for("@inversifyjs/container/InversifyContainerError");let Zn=class t_ extends Error{[Mu];kind;constructor(e,t,r){super(t,r),this[Mu]=!0,this.kind=e}static is(e){return typeof e=="object"&&e!==null&&e[Mu]===!0}static isErrorOfKind(e,t){return t_.is(e)&&e.kind===t}};var pn;function Ru(n){return{[Yd]:!0,id:n.id}}function _o(n){return e=>{for(let t=e.getAncestor();t!==void 0;t=t.getAncestor())if(n(t))return!0;return!1}}function wo(n){return e=>e.name===n}function Oa(n){return e=>e.serviceIdentifier===n}function So(n,e){return t=>t.tags.has(n)&&t.tags.get(n)===e}function q_(n){return n.name===void 0&&n.tags.size===0}function Ea(n){const e=_o(n);return t=>!e(t)}function Ia(n){return e=>{const t=e.getAncestor();return t===void 0||!n(t)}}function Aa(n){return e=>{const t=e.getAncestor();return t!==void 0&&n(t)}}(function(n){n[n.invalidOperation=0]="invalidOperation"})(pn||(pn={}));let G_=class{#e;constructor(e){this.#e=e}getIdentifier(){return Ru(this.#e)}inRequestScope(){return this.#e.scope=hn.Request,new ri(this.#e)}inSingletonScope(){return this.#e.scope=hn.Singleton,new ri(this.#e)}inTransientScope(){return this.#e.scope=hn.Transient,new ri(this.#e)}},Kd=class{#e;#t;#r;#n;constructor(e,t,r,o){this.#e=e,this.#t=t,this.#r=r,this.#n=o}to(e){const t=ma(e),r={cache:{isRight:!1,value:void 0},id:Mr(),implementationType:e,isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:t.scope??this.#r,serviceIdentifier:this.#n,type:je.Instance};return this.#e(r),new ku(r)}toSelf(){if(typeof this.#n!="function")throw new Error('"toSelf" function can only be applied when a newable function is used as service identifier');return this.to(this.#n)}toConstantValue(e){const t={cache:{isRight:!1,value:void 0},id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:hn.Singleton,serviceIdentifier:this.#n,type:je.ConstantValue,value:e};return this.#e(t),new ri(t)}toDynamicValue(e){const t={cache:{isRight:!1,value:void 0},id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:this.#r,serviceIdentifier:this.#n,type:je.DynamicValue,value:e};return this.#e(t),new ku(t)}toResolvedValue(e,t){const r={cache:{isRight:!1,value:void 0},factory:e,id:Mr(),isSatisfiedBy:ni.always,metadata:this.#i(t),moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:this.#r,serviceIdentifier:this.#n,type:je.ResolvedValue};return this.#e(r),new ku(r)}toFactory(e){const t={cache:{isRight:!1,value:void 0},factory:e,id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:hn.Singleton,serviceIdentifier:this.#n,type:je.Factory};return this.#e(t),new ri(t)}toProvider(e){const t={cache:{isRight:!1,value:void 0},id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,provider:e,scope:hn.Singleton,serviceIdentifier:this.#n,type:je.Provider};return this.#e(t),new ri(t)}toService(e){const t={id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,serviceIdentifier:this.#n,targetServiceIdentifier:e,type:je.ServiceRedirection};this.#e(t)}#i(e){return{arguments:(e??[]).map(t=>(function(r){return typeof r=="object"&&!ga.is(r)})(t)?(function(r){return r.isMultiple===!0})(t)?{chained:t.chained??!1,kind:ur.multipleInjection,name:t.name,optional:t.optional??!1,tags:new Map((t.tags??[]).map(r=>[r.key,r.value])),value:t.serviceIdentifier}:{kind:ur.singleInjection,name:t.name,optional:t.optional??!1,tags:new Map((t.tags??[]).map(r=>[r.key,r.value])),value:t.serviceIdentifier}:{kind:ur.singleInjection,name:void 0,optional:!1,tags:new Map,value:t})}}};class Xd{#e;constructor(e){this.#e=e}getIdentifier(){return Ru(this.#e)}onActivation(e){return this.#e.onActivation=e,new Lu(this.#e)}onDeactivation(e){if(this.#e.onDeactivation=e,this.#e.scope!==hn.Singleton)throw new Zn(pn.invalidOperation,`Binding for service "${Et(this.#e.serviceIdentifier)}" has a deactivation function, but its scope is not singleton. Deactivation functions can only be used with singleton bindings.`);return new Lu(this.#e)}}let Lu=class{#e;constructor(e){this.#e=e}getIdentifier(){return Ru(this.#e)}when(e){return this.#e.isSatisfiedBy=e,new Xd(this.#e)}whenAnyAncestor(e){return this.when(_o(e))}whenAnyAncestorIs(e){return this.when(_o(Oa(e)))}whenAnyAncestorNamed(e){return this.when((function(t){return _o(wo(t))})(e))}whenAnyAncestorTagged(e,t){return this.when((function(r,o){return _o(So(r,o))})(e,t))}whenDefault(){return this.when(q_)}whenNamed(e){return this.when(wo(e))}whenNoParent(e){return this.when(Ia(e))}whenNoParentIs(e){return this.when(Ia(Oa(e)))}whenNoParentNamed(e){return this.when((function(t){return Ia(wo(t))})(e))}whenNoParentTagged(e,t){return this.when((function(r,o){return Ia(So(r,o))})(e,t))}whenParent(e){return this.when(Aa(e))}whenParentIs(e){return this.when(Aa(Oa(e)))}whenParentNamed(e){return this.when((function(t){return Aa(wo(t))})(e))}whenParentTagged(e,t){return this.when((function(r,o){return Aa(So(r,o))})(e,t))}whenTagged(e,t){return this.when(So(e,t))}whenNoAncestor(e){return this.when(Ea(e))}whenNoAncestorIs(e){return this.when(Ea(Oa(e)))}whenNoAncestorNamed(e){return this.when((function(t){return Ea(wo(t))})(e))}whenNoAncestorTagged(e,t){return this.when((function(r,o){return Ea(So(r,o))})(e,t))}};class ri extends Lu{#e;constructor(e){super(e),this.#e=new Xd(e)}onActivation(e){return this.#e.onActivation(e)}onDeactivation(e){return this.#e.onDeactivation(e)}}let ku=class extends ri{#e;constructor(e){super(e),this.#e=new G_(e)}inRequestScope(){return this.#e.inRequestScope()}inSingletonScope(){return this.#e.inSingletonScope()}inTransientScope(){return this.#e.inTransientScope()}},Y_=class{#e;#t;#r;#n;constructor(e,t,r,o){this.#e=e,this.#t=t,this.#r=r,this.#n=o}bind(e){return new Kd(t=>{this.#i(t)},void 0,this.#t,e)}isBound(e,t){const r=this.#n.bindingService.get(e);return this.#d(e,r,t)}isCurrentBound(e,t){const r=this.#n.bindingService.getNonParentBindings(e);return this.#d(e,r,t)}async rebind(e){return await this.unbind(e),this.bind(e)}rebindSync(e){return this.unbindSync(e),this.bind(e)}async unbind(e){await this.#a(e)}async unbindAll(){await this.#s()}unbindAllSync(){if(this.#s()!==void 0)throw new Zn(pn.invalidOperation,"Unexpected asynchronous deactivation when unbinding all services. Consider using Container.unbindAll() instead.")}unbindSync(e){this.#a(e)!==void 0&&this.#o(e)}#i(e){this.#n.bindingService.set(e),this.#r.invalidateService({binding:e,kind:kn.bindingAdded})}#o(e){let t;if(Jd(e)){const o=this.#n.bindingService.getById(e.id),s=(r=o,(function(c){if(c===void 0)return;const f=c.next();return f.done!==!0?f.value:void 0})(r?.[Symbol.iterator]()))?.serviceIdentifier;t=s===void 0?"Unexpected asynchronous deactivation when unbinding binding identifier. Consider using Container.unbind() instead.":`Unexpected asynchronous deactivation when unbinding "${Et(s)}" binding. Consider using Container.unbind() instead.`}else t=`Unexpected asynchronous deactivation when unbinding "${Et(e)}" service. Consider using Container.unbind() instead.`;var r;throw new Zn(pn.invalidOperation,t)}#a(e){return Jd(e)?this.#c(e):this.#f(e)}#c(e){const t=this.#n.bindingService.getById(e.id),r=t===void 0?void 0:[...t],o=Sa(this.#e,t);if(o!==void 0)return o.then(()=>{this.#u(r,e)});this.#u(r,e)}#u(e,t){if(this.#n.bindingService.removeById(t.id),e!==void 0)for(const r of e)this.#r.invalidateService({binding:r,kind:kn.bindingRemoved})}#s(){const e=[...this.#n.bindingService.getNonParentBoundServices()],t=e.map(r=>U_(this.#e,r));if(t.some(r=>ut(r)))return Promise.all(t).then(()=>{this.#h(e)});this.#h(e)}#h(e){for(const t of e)this.#n.activationService.removeAllByServiceId(t),this.#n.bindingService.removeAllByServiceId(t),this.#n.deactivationService.removeAllByServiceId(t);this.#n.planResultCacheService.clearCache()}#f(e){const t=this.#n.bindingService.get(e),r=t===void 0?void 0:[...t],o=Sa(this.#e,t);if(o!==void 0)return o.then(()=>{this.#l(e,r)});this.#l(e,r)}#l(e,t){if(this.#n.activationService.removeAllByServiceId(e),this.#n.bindingService.removeAllByServiceId(e),this.#n.deactivationService.removeAllByServiceId(e),t!==void 0)for(const r of t)this.#r.invalidateService({binding:r,kind:kn.bindingRemoved})}#d(e,t,r){if(t===void 0)return!1;const o={getAncestor:()=>{},name:r?.name,serviceIdentifier:e,tags:new Map};r?.tag!==void 0&&o.tags.set(r.tag.key,r.tag.value);for(const s of t)if(s.isSatisfiedBy(o))return!0;return!1}},J_=class{#e;#t;#r;#n;#i;constructor(e,t,r,o,s){this.#e=e,this.#t=t,this.#r=r,this.#n=o,this.#i=s}async load(...e){await Promise.all(this.#c(...e))}loadSync(...e){const t=this.#c(...e);for(const r of t)if(r!==void 0)throw new Zn(pn.invalidOperation,"Unexpected asynchronous module load. Consider using Container.load() instead.")}async unload(...e){await Promise.all(this.#s(...e)),this.#a(e)}unloadSync(...e){const t=this.#s(...e);for(const r of t)if(r!==void 0)throw new Zn(pn.invalidOperation,"Unexpected asynchronous module unload. Consider using Container.unload() instead.");this.#a(e)}#o(e){return{bind:t=>new Kd(r=>{this.#u(r)},e,this.#r,t),isBound:this.#e.isBound.bind(this.#e),onActivation:(t,r)=>{this.#i.activationService.add(r,{moduleId:e,serviceId:t})},onDeactivation:(t,r)=>{this.#i.deactivationService.add(r,{moduleId:e,serviceId:t})},rebind:this.#e.rebind.bind(this.#e),rebindSync:this.#e.rebindSync.bind(this.#e),unbind:this.#e.unbind.bind(this.#e),unbindSync:this.#e.unbindSync.bind(this.#e)}}#a(e){for(const t of e)this.#i.activationService.removeAllByModuleId(t.id),this.#i.bindingService.removeAllByModuleId(t.id),this.#i.deactivationService.removeAllByModuleId(t.id);this.#i.planResultCacheService.clearCache()}#c(...e){return e.map(t=>t.load(this.#o(t.id)))}#u(e){this.#i.bindingService.set(e),this.#n.invalidateService({binding:e,kind:kn.bindingAdded})}#s(...e){return e.map(t=>W_(this.#t,t.id))}},K_=class{deactivationParams;constructor(e){this.deactivationParams=(function(t){return{getBindings:t.bindingService.get.bind(t.bindingService),getBindingsFromModule:t.bindingService.getByModuleId.bind(t.bindingService),getClassMetadata:ma,getDeactivations:t.deactivationService.get.bind(t.deactivationService)}})(e),e.onReset(()=>{(function(t,r){r.getBindings=t.bindingService.get.bind(t.bindingService),r.getBindingsFromModule=t.bindingService.getByModuleId.bind(t.bindingService),r.getDeactivations=t.deactivationService.get.bind(t.deactivationService)})(e,this.deactivationParams)})}};class X_{planParamsOperations;#e;constructor(e){this.#e=e,this.planParamsOperations={getBindings:this.#e.bindingService.get.bind(this.#e.bindingService),getBindingsChained:this.#e.bindingService.getChained.bind(this.#e.bindingService),getClassMetadata:ma,getPlan:this.#e.planResultCacheService.get.bind(this.#e.planResultCacheService),setBinding:this.#r.bind(this),setNonCachedServiceNode:this.#e.planResultCacheService.setNonCachedServiceNode.bind(this.#e.planResultCacheService),setPlan:this.#e.planResultCacheService.set.bind(this.#e.planResultCacheService)},this.#e.onReset(()=>{this.#t()})}#t(){this.planParamsOperations.getBindings=this.#e.bindingService.get.bind(this.#e.bindingService),this.planParamsOperations.getBindingsChained=this.#e.bindingService.getChained.bind(this.#e.bindingService),this.planParamsOperations.setBinding=this.#r.bind(this)}#r(e){this.#e.bindingService.set(e),this.#e.planResultCacheService.invalidateServiceBinding({binding:e,kind:kn.bindingAdded,operations:this.planParamsOperations})}}let Z_=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}invalidateService(e){this.#t.planResultCacheService.invalidateServiceBinding({...e,operations:this.#e.planParamsOperations})}},Q_=class{#e;#t;#r;#n;constructor(e,t,r){this.#n=t,this.#r=r,this.#e=this.#i(e),this.#t=this.#o()}register(e,t){const r=new t(e,this.#t);if(r[z_]!==!0)throw new Zn(pn.invalidOperation,"Invalid plugin. The plugin must extend the Plugin class");r.load(this.#e)}#i(e){return{define:(t,r)=>{if(Object.prototype.hasOwnProperty.call(e,t))throw new Zn(pn.invalidOperation,`Container already has a method named "${String(t)}"`);e[t]=r},onPlan:this.#r.onPlan.bind(this.#r)}}#o(){const e=this.#n;return{get activationService(){return e.activationService},get bindingService(){return e.bindingService},get deactivationService(){return e.deactivationService},get planResultCacheService(){return e.planResultCacheService}}}},Zd=class{activationService;bindingService;deactivationService;planResultCacheService;#e;constructor(e,t,r,o){this.activationService=e,this.bindingService=t,this.deactivationService=r,this.planResultCacheService=o,this.#e=[]}reset(e,t,r){this.activationService=e,this.bindingService=t,this.deactivationService=r,this.planResultCacheService.clearCache();for(const o of this.#e)o()}onReset(e){this.#e.push(e)}};class e0{#e;#t;#r;#n;#i;#o;#a;constructor(e,t,r,o){this.#o=e,this.#a=t,this.#n=this.#l(),this.#e=r,this.#t=o,this.#r=s=>this.#a.activationService.get(s),this.#i=[],this.#a.onReset(()=>{this.#c()})}get(e,t){const r=this.#f(!1,e,t),o=this.#d(r);if(ut(o))throw new Zn(pn.invalidOperation,`Unexpected asynchronous service when resolving service "${Et(e)}"`);return o}getAll(e,t){const r=this.#f(!0,e,t),o=this.#d(r);if(ut(o))throw new Zn(pn.invalidOperation,`Unexpected asynchronous service when resolving service "${Et(e)}"`);return o}async getAllAsync(e,t){const r=this.#f(!0,e,t);return this.#d(r)}async getAsync(e,t){const r=this.#f(!1,e,t);return this.#d(r)}onPlan(e){this.#i.push(e)}#c(){this.#n=this.#l()}#u(e,t,r){const o=r?.name,s=r?.optional??!1,c=r?.tag;return e?{chained:r?.chained??!1,isMultiple:e,name:o,optional:s,serviceIdentifier:t,tag:c}:{isMultiple:e,name:o,optional:s,serviceIdentifier:t,tag:c}}#s(e,t,r){const o={autobindOptions:r?.autobind??this.#e?{scope:this.#t}:void 0,operations:this.#o.planParamsOperations,rootConstraints:this.#h(e,t,r),servicesBranch:[]};return this.#p(o,r),o}#h(e,t,r){return t?{chained:r?.chained??!1,isMultiple:t,serviceIdentifier:e}:{isMultiple:t,serviceIdentifier:e}}#f(e,t,r){const o=this.#u(e,t,r),s=this.#a.planResultCacheService.get(o);if(s!==void 0)return s;const c=S_(this.#s(t,e,r));for(const f of this.#i)f(o,c);return c}#l(){return{get:this.get.bind(this),getAll:this.getAll.bind(this),getAllAsync:this.getAllAsync.bind(this),getAsync:this.getAsync.bind(this)}}#d(e){return F_({context:this.#n,getActivations:this.#r,planResult:e,requestScopeCache:new Map})}#p(e,t){t!==void 0&&(t.name!==void 0&&(e.rootConstraints.name=t.name),t.optional===!0&&(e.rootConstraints.isOptional=!0),t.tag!==void 0&&(e.rootConstraints.tag={key:t.tag.key,value:t.tag.value}),e.rootConstraints.isMultiple&&(e.rootConstraints.chained=t?.chained??!1))}}class t0{#e;#t;constructor(e){this.#e=e,this.#t=[]}restore(){const e=this.#t.pop();if(e===void 0)throw new Zn(pn.invalidOperation,"No snapshot available to restore");this.#e.reset(e.activationService,e.bindingService,e.deactivationService)}snapshot(){this.#t.push({activationService:this.#e.activationService.clone(),bindingService:this.#e.bindingService.clone(),deactivationService:this.#e.deactivationService.clone()})}}const n0=hn.Transient;class r0{#e;#t;#r;#n;#i;#o;constructor(e){const t=e?.autobind??!1,r=e?.defaultScope??n0;this.#n=this.#c(e,t,r);const o=new X_(this.#n),s=new Z_(o,this.#n),c=new K_(this.#n);this.#e=new Y_(c.deactivationParams,r,s,this.#n),this.#t=new J_(this.#e,c.deactivationParams,r,s,this.#n),this.#i=new e0(o,this.#n,t,r),this.#r=new Q_(this,this.#n,this.#i),this.#o=new t0(this.#n)}bind(e){return this.#e.bind(e)}get(e,t){return this.#i.get(e,t)}getAll(e,t){return this.#i.getAll(e,t)}async getAllAsync(e,t){return this.#i.getAllAsync(e,t)}async getAsync(e,t){return this.#i.getAsync(e,t)}isBound(e,t){return this.#e.isBound(e,t)}isCurrentBound(e,t){return this.#e.isCurrentBound(e,t)}async load(...e){return this.#t.load(...e)}loadSync(...e){this.#t.loadSync(...e)}onActivation(e,t){this.#n.activationService.add(t,{serviceId:e})}onDeactivation(e,t){this.#n.deactivationService.add(t,{serviceId:e})}register(e){this.#r.register(this,e)}restore(){this.#o.restore()}async rebind(e){return this.#e.rebind(e)}rebindSync(e){return this.#e.rebindSync(e)}snapshot(){this.#o.snapshot()}async unbind(e){await this.#e.unbind(e)}async unbindAll(){await this.#e.unbindAll()}unbindAllSync(){this.#e.unbindAllSync()}unbindSync(e){this.#e.unbindSync(e)}async unload(...e){return this.#t.unload(...e)}unloadSync(...e){this.#t.unloadSync(...e)}#a(e,t){if(e)return{scope:t}}#c(e,t,r){const o=this.#a(t,r);if(e?.parent===void 0)return new Zd(cd.build(()=>{}),dd.build(()=>{},o),hd.build(()=>{}),new Md);const s=new Md,c=e.parent;return c.#n.planResultCacheService.subscribe(s),new Zd(cd.build(()=>c.#n.activationService),dd.build(()=>c.#n.bindingService,o),hd.build(()=>c.#n.deactivationService),s)}}const ii={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var Oo={exports:{}};var i0=Oo.exports,Qd;function o0(){return Qd||(Qd=1,(function(n,e){(function(){var t,r="4.17.23",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,v="__lodash_placeholder__",b=1,w=2,y=4,O=1,S=2,A=1,x=2,k=4,G=8,oe=16,q=32,ye=64,L=128,F=256,ae=512,we=30,ce="...",Se=800,he=16,ct=1,ht=2,ft=3,xt=1/0,ue=9007199254740991,nn=17976931348623157e292,Pt=NaN,Le=4294967295,wr=Le-1,pe=Le>>>1,Lt=[["ary",L],["bind",A],["bindKey",x],["curry",G],["curryRight",oe],["flip",ae],["partial",q],["partialRight",ye],["rearg",F]],rn="[object Arguments]",Ce="[object Array]",ir="[object AsyncFunction]",$t="[object Boolean]",Vt="[object Date]",Sr="[object DOMException]",pt="[object Error]",In="[object Function]",An="[object GeneratorFunction]",Ke="[object Map]",on="[object Number]",Tn="[object Null]",at="[object Object]",vt="[object Promise]",Gn="[object Proxy]",Qe="[object RegExp]",bt="[object Set]",St="[object String]",P="[object Symbol]",W="[object Undefined]",U="[object WeakMap]",ee="[object WeakSet]",le="[object ArrayBuffer]",Be="[object DataView]",nt="[object Float32Array]",Nt="[object Float64Array]",it="[object Int8Array]",I="[object Int16Array]",N="[object Int32Array]",C="[object Uint8Array]",j="[object Uint8ClampedArray]",Z="[object Uint16Array]",_e="[object Uint32Array]",Me=/\b__p \+= '';/g,ne=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,te=/[&<>"']/g,X=RegExp(K.source),Ee=RegExp(te.source),He=/<%-([\s\S]+?)%>/g,et=/<%([\s\S]+?)%>/g,yt=/<%=([\s\S]+?)%>/g,Ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xo=/^\w*$/,Ki=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zo=/[\\^$.*+?()[\]{}|]/g,zf=RegExp(Zo.source),Or=/^\s+/,Qo=/\s/,ea=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xi=/\{\n\/\* \[wrapped with (.+)\] \*/,Lx=/,? & /,kx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bx=/[()=,{}\[\]\/\s]/,jx=/\\(\\)?/g,Fx=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tm=/\w*$/,$x=/^[-+]0x[0-9a-f]+$/i,Vx=/^0b[01]+$/i,Wx=/^\[object .+?Constructor\]$/,Ux=/^0o[0-7]+$/i,zx=/^(?:0|[1-9]\d*)$/,Hx=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ts=/($^)/,qx=/['\n\r\u2028\u2029\\]/g,xs="\\ud800-\\udfff",Gx="\\u0300-\\u036f",Yx="\\ufe20-\\ufe2f",Jx="\\u20d0-\\u20ff",xm=Gx+Yx+Jx,Nm="\\u2700-\\u27bf",Dm="a-z\\xdf-\\xf6\\xf8-\\xff",Kx="\\xac\\xb1\\xd7\\xf7",Xx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zx="\\u2000-\\u206f",Qx=" \\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",Cm="A-Z\\xc0-\\xd6\\xd8-\\xde",Pm="\\ufe0e\\ufe0f",Mm=Kx+Xx+Zx+Qx,Hf="['’]",eN="["+xs+"]",Rm="["+Mm+"]",Ns="["+xm+"]",Lm="\\d+",tN="["+Nm+"]",km="["+Dm+"]",Bm="[^"+xs+Mm+Lm+Nm+Dm+Cm+"]",qf="\\ud83c[\\udffb-\\udfff]",nN="(?:"+Ns+"|"+qf+")",jm="[^"+xs+"]",Gf="(?:\\ud83c[\\udde6-\\uddff]){2}",Yf="[\\ud800-\\udbff][\\udc00-\\udfff]",Zi="["+Cm+"]",Fm="\\u200d",$m="(?:"+km+"|"+Bm+")",rN="(?:"+Zi+"|"+Bm+")",Vm="(?:"+Hf+"(?:d|ll|m|re|s|t|ve))?",Wm="(?:"+Hf+"(?:D|LL|M|RE|S|T|VE))?",Um=nN+"?",zm="["+Pm+"]?",iN="(?:"+Fm+"(?:"+[jm,Gf,Yf].join("|")+")"+zm+Um+")*",oN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",aN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hm=zm+Um+iN,sN="(?:"+[tN,Gf,Yf].join("|")+")"+Hm,uN="(?:"+[jm+Ns+"?",Ns,Gf,Yf,eN].join("|")+")",cN=RegExp(Hf,"g"),fN=RegExp(Ns,"g"),Jf=RegExp(qf+"(?="+qf+")|"+uN+Hm,"g"),lN=RegExp([Zi+"?"+km+"+"+Vm+"(?="+[Rm,Zi,"$"].join("|")+")",rN+"+"+Wm+"(?="+[Rm,Zi+$m,"$"].join("|")+")",Zi+"?"+$m+"+"+Vm,Zi+"+"+Wm,aN,oN,Lm,sN].join("|"),"g"),dN=RegExp("["+Fm+xs+xm+Pm+"]"),hN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pN=["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"],vN=-1,tt={};tt[nt]=tt[Nt]=tt[it]=tt[I]=tt[N]=tt[C]=tt[j]=tt[Z]=tt[_e]=!0,tt[rn]=tt[Ce]=tt[le]=tt[$t]=tt[Be]=tt[Vt]=tt[pt]=tt[In]=tt[Ke]=tt[on]=tt[at]=tt[Qe]=tt[bt]=tt[St]=tt[U]=!1;var Xe={};Xe[rn]=Xe[Ce]=Xe[le]=Xe[Be]=Xe[$t]=Xe[Vt]=Xe[nt]=Xe[Nt]=Xe[it]=Xe[I]=Xe[N]=Xe[Ke]=Xe[on]=Xe[at]=Xe[Qe]=Xe[bt]=Xe[St]=Xe[P]=Xe[C]=Xe[j]=Xe[Z]=Xe[_e]=!0,Xe[pt]=Xe[In]=Xe[U]=!1;var gN={À:"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"},mN={"&":"&","<":"<",">":">",'"':""","'":"'"},bN={"&":"&","<":"<",">":">",""":'"',"'":"'"},yN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_N=parseFloat,wN=parseInt,qm=typeof dn=="object"&&dn&&dn.Object===Object&&dn,SN=typeof self=="object"&&self&&self.Object===Object&&self,Dt=qm||SN||Function("return this")(),Kf=e&&!e.nodeType&&e,bi=Kf&&!0&&n&&!n.nodeType&&n,Gm=bi&&bi.exports===Kf,Xf=Gm&&qm.process,xn=(function(){try{var T=bi&&bi.require&&bi.require("util").types;return T||Xf&&Xf.binding&&Xf.binding("util")}catch{}})(),Ym=xn&&xn.isArrayBuffer,Jm=xn&&xn.isDate,Km=xn&&xn.isMap,Xm=xn&&xn.isRegExp,Zm=xn&&xn.isSet,Qm=xn&&xn.isTypedArray;function an(T,B,M){switch(M.length){case 0:return T.call(B);case 1:return T.call(B,M[0]);case 2:return T.call(B,M[0],M[1]);case 3:return T.call(B,M[0],M[1],M[2])}return T.apply(B,M)}function ON(T,B,M,se){for(var Oe=-1,We=T==null?0:T.length;++Oe<We;){var _t=T[Oe];B(se,_t,M(_t),T)}return se}function Nn(T,B){for(var M=-1,se=T==null?0:T.length;++M<se&&B(T[M],M,T)!==!1;);return T}function EN(T,B){for(var M=T==null?0:T.length;M--&&B(T[M],M,T)!==!1;);return T}function eb(T,B){for(var M=-1,se=T==null?0:T.length;++M<se;)if(!B(T[M],M,T))return!1;return!0}function zr(T,B){for(var M=-1,se=T==null?0:T.length,Oe=0,We=[];++M<se;){var _t=T[M];B(_t,M,T)&&(We[Oe++]=_t)}return We}function Ds(T,B){var M=T==null?0:T.length;return!!M&&Qi(T,B,0)>-1}function Zf(T,B,M){for(var se=-1,Oe=T==null?0:T.length;++se<Oe;)if(M(B,T[se]))return!0;return!1}function rt(T,B){for(var M=-1,se=T==null?0:T.length,Oe=Array(se);++M<se;)Oe[M]=B(T[M],M,T);return Oe}function Hr(T,B){for(var M=-1,se=B.length,Oe=T.length;++M<se;)T[Oe+M]=B[M];return T}function Qf(T,B,M,se){var Oe=-1,We=T==null?0:T.length;for(se&&We&&(M=T[++Oe]);++Oe<We;)M=B(M,T[Oe],Oe,T);return M}function IN(T,B,M,se){var Oe=T==null?0:T.length;for(se&&Oe&&(M=T[--Oe]);Oe--;)M=B(M,T[Oe],Oe,T);return M}function el(T,B){for(var M=-1,se=T==null?0:T.length;++M<se;)if(B(T[M],M,T))return!0;return!1}var AN=tl("length");function TN(T){return T.split("")}function xN(T){return T.match(kx)||[]}function tb(T,B,M){var se;return M(T,function(Oe,We,_t){if(B(Oe,We,_t))return se=We,!1}),se}function Cs(T,B,M,se){for(var Oe=T.length,We=M+(se?1:-1);se?We--:++We<Oe;)if(B(T[We],We,T))return We;return-1}function Qi(T,B,M){return B===B?$N(T,B,M):Cs(T,nb,M)}function NN(T,B,M,se){for(var Oe=M-1,We=T.length;++Oe<We;)if(se(T[Oe],B))return Oe;return-1}function nb(T){return T!==T}function rb(T,B){var M=T==null?0:T.length;return M?rl(T,B)/M:Pt}function tl(T){return function(B){return B==null?t:B[T]}}function nl(T){return function(B){return T==null?t:T[B]}}function ib(T,B,M,se,Oe){return Oe(T,function(We,_t,Ye){M=se?(se=!1,We):B(M,We,_t,Ye)}),M}function DN(T,B){var M=T.length;for(T.sort(B);M--;)T[M]=T[M].value;return T}function rl(T,B){for(var M,se=-1,Oe=T.length;++se<Oe;){var We=B(T[se]);We!==t&&(M=M===t?We:M+We)}return M}function il(T,B){for(var M=-1,se=Array(T);++M<T;)se[M]=B(M);return se}function CN(T,B){return rt(B,function(M){return[M,T[M]]})}function ob(T){return T&&T.slice(0,cb(T)+1).replace(Or,"")}function sn(T){return function(B){return T(B)}}function ol(T,B){return rt(B,function(M){return T[M]})}function ta(T,B){return T.has(B)}function ab(T,B){for(var M=-1,se=T.length;++M<se&&Qi(B,T[M],0)>-1;);return M}function sb(T,B){for(var M=T.length;M--&&Qi(B,T[M],0)>-1;);return M}function PN(T,B){for(var M=T.length,se=0;M--;)T[M]===B&&++se;return se}var MN=nl(gN),RN=nl(mN);function LN(T){return"\\"+yN[T]}function kN(T,B){return T==null?t:T[B]}function eo(T){return dN.test(T)}function BN(T){return hN.test(T)}function jN(T){for(var B,M=[];!(B=T.next()).done;)M.push(B.value);return M}function al(T){var B=-1,M=Array(T.size);return T.forEach(function(se,Oe){M[++B]=[Oe,se]}),M}function ub(T,B){return function(M){return T(B(M))}}function qr(T,B){for(var M=-1,se=T.length,Oe=0,We=[];++M<se;){var _t=T[M];(_t===B||_t===v)&&(T[M]=v,We[Oe++]=M)}return We}function Ps(T){var B=-1,M=Array(T.size);return T.forEach(function(se){M[++B]=se}),M}function FN(T){var B=-1,M=Array(T.size);return T.forEach(function(se){M[++B]=[se,se]}),M}function $N(T,B,M){for(var se=M-1,Oe=T.length;++se<Oe;)if(T[se]===B)return se;return-1}function VN(T,B,M){for(var se=M+1;se--;)if(T[se]===B)return se;return se}function to(T){return eo(T)?UN(T):AN(T)}function Yn(T){return eo(T)?zN(T):TN(T)}function cb(T){for(var B=T.length;B--&&Qo.test(T.charAt(B)););return B}var WN=nl(bN);function UN(T){for(var B=Jf.lastIndex=0;Jf.test(T);)++B;return B}function zN(T){return T.match(Jf)||[]}function HN(T){return T.match(lN)||[]}var qN=(function T(B){B=B==null?Dt:no.defaults(Dt.Object(),B,no.pick(Dt,pN));var M=B.Array,se=B.Date,Oe=B.Error,We=B.Function,_t=B.Math,Ye=B.Object,sl=B.RegExp,GN=B.String,Dn=B.TypeError,Ms=M.prototype,YN=We.prototype,ro=Ye.prototype,Rs=B["__core-js_shared__"],Ls=YN.toString,Ue=ro.hasOwnProperty,JN=0,fb=(function(){var i=/[^.]+$/.exec(Rs&&Rs.keys&&Rs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),ks=ro.toString,KN=Ls.call(Ye),XN=Dt._,ZN=sl("^"+Ls.call(Ue).replace(Zo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bs=Gm?B.Buffer:t,Gr=B.Symbol,js=B.Uint8Array,lb=Bs?Bs.allocUnsafe:t,Fs=ub(Ye.getPrototypeOf,Ye),db=Ye.create,hb=ro.propertyIsEnumerable,$s=Ms.splice,pb=Gr?Gr.isConcatSpreadable:t,na=Gr?Gr.iterator:t,yi=Gr?Gr.toStringTag:t,Vs=(function(){try{var i=Ei(Ye,"defineProperty");return i({},"",{}),i}catch{}})(),QN=B.clearTimeout!==Dt.clearTimeout&&B.clearTimeout,eD=se&&se.now!==Dt.Date.now&&se.now,tD=B.setTimeout!==Dt.setTimeout&&B.setTimeout,Ws=_t.ceil,Us=_t.floor,ul=Ye.getOwnPropertySymbols,nD=Bs?Bs.isBuffer:t,vb=B.isFinite,rD=Ms.join,iD=ub(Ye.keys,Ye),wt=_t.max,Mt=_t.min,oD=se.now,aD=B.parseInt,gb=_t.random,sD=Ms.reverse,cl=Ei(B,"DataView"),ra=Ei(B,"Map"),fl=Ei(B,"Promise"),io=Ei(B,"Set"),ia=Ei(B,"WeakMap"),oa=Ei(Ye,"create"),zs=ia&&new ia,oo={},uD=Ii(cl),cD=Ii(ra),fD=Ii(fl),lD=Ii(io),dD=Ii(ia),Hs=Gr?Gr.prototype:t,aa=Hs?Hs.valueOf:t,mb=Hs?Hs.toString:t;function g(i){if(st(i)&&!Ie(i)&&!(i instanceof Re)){if(i instanceof Cn)return i;if(Ue.call(i,"__wrapped__"))return by(i)}return new Cn(i)}var ao=(function(){function i(){}return function(a){if(!ot(a))return{};if(db)return db(a);i.prototype=a;var u=new i;return i.prototype=t,u}})();function qs(){}function Cn(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}g.templateSettings={escape:He,evaluate:et,interpolate:yt,variable:"",imports:{_:g}},g.prototype=qs.prototype,g.prototype.constructor=g,Cn.prototype=ao(qs.prototype),Cn.prototype.constructor=Cn;function Re(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Le,this.__views__=[]}function hD(){var i=new Re(this.__wrapped__);return i.__actions__=Wt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Wt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Wt(this.__views__),i}function pD(){if(this.__filtered__){var i=new Re(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function vD(){var i=this.__wrapped__.value(),a=this.__dir__,u=Ie(i),l=a<0,h=u?i.length:0,m=TC(0,h,this.__views__),_=m.start,E=m.end,D=E-_,$=l?E:_-1,V=this.__iteratees__,z=V.length,re=0,fe=Mt(D,this.__takeCount__);if(!u||!l&&h==D&&fe==D)return Vb(i,this.__actions__);var ge=[];e:for(;D--&&re<fe;){$+=a;for(var Ne=-1,me=i[$];++Ne<z;){var Pe=V[Ne],ke=Pe.iteratee,fn=Pe.type,jt=ke(me);if(fn==ht)me=jt;else if(!jt){if(fn==ct)continue e;break e}}ge[re++]=me}return ge}Re.prototype=ao(qs.prototype),Re.prototype.constructor=Re;function _i(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a<u;){var l=i[a];this.set(l[0],l[1])}}function gD(){this.__data__=oa?oa(null):{},this.size=0}function mD(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function bD(i){var a=this.__data__;if(oa){var u=a[i];return u===d?t:u}return Ue.call(a,i)?a[i]:t}function yD(i){var a=this.__data__;return oa?a[i]!==t:Ue.call(a,i)}function _D(i,a){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=oa&&a===t?d:a,this}_i.prototype.clear=gD,_i.prototype.delete=mD,_i.prototype.get=bD,_i.prototype.has=yD,_i.prototype.set=_D;function Er(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a<u;){var l=i[a];this.set(l[0],l[1])}}function wD(){this.__data__=[],this.size=0}function SD(i){var a=this.__data__,u=Gs(a,i);if(u<0)return!1;var l=a.length-1;return u==l?a.pop():$s.call(a,u,1),--this.size,!0}function OD(i){var a=this.__data__,u=Gs(a,i);return u<0?t:a[u][1]}function ED(i){return Gs(this.__data__,i)>-1}function ID(i,a){var u=this.__data__,l=Gs(u,i);return l<0?(++this.size,u.push([i,a])):u[l][1]=a,this}Er.prototype.clear=wD,Er.prototype.delete=SD,Er.prototype.get=OD,Er.prototype.has=ED,Er.prototype.set=ID;function Ir(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a<u;){var l=i[a];this.set(l[0],l[1])}}function AD(){this.size=0,this.__data__={hash:new _i,map:new(ra||Er),string:new _i}}function TD(i){var a=ou(this,i).delete(i);return this.size-=a?1:0,a}function xD(i){return ou(this,i).get(i)}function ND(i){return ou(this,i).has(i)}function DD(i,a){var u=ou(this,i),l=u.size;return u.set(i,a),this.size+=u.size==l?0:1,this}Ir.prototype.clear=AD,Ir.prototype.delete=TD,Ir.prototype.get=xD,Ir.prototype.has=ND,Ir.prototype.set=DD;function wi(i){var a=-1,u=i==null?0:i.length;for(this.__data__=new Ir;++a<u;)this.add(i[a])}function CD(i){return this.__data__.set(i,d),this}function PD(i){return this.__data__.has(i)}wi.prototype.add=wi.prototype.push=CD,wi.prototype.has=PD;function Jn(i){var a=this.__data__=new Er(i);this.size=a.size}function MD(){this.__data__=new Er,this.size=0}function RD(i){var a=this.__data__,u=a.delete(i);return this.size=a.size,u}function LD(i){return this.__data__.get(i)}function kD(i){return this.__data__.has(i)}function BD(i,a){var u=this.__data__;if(u instanceof Er){var l=u.__data__;if(!ra||l.length<o-1)return l.push([i,a]),this.size=++u.size,this;u=this.__data__=new Ir(l)}return u.set(i,a),this.size=u.size,this}Jn.prototype.clear=MD,Jn.prototype.delete=RD,Jn.prototype.get=LD,Jn.prototype.has=kD,Jn.prototype.set=BD;function bb(i,a){var u=Ie(i),l=!u&&Ai(i),h=!u&&!l&&Zr(i),m=!u&&!l&&!h&&fo(i),_=u||l||h||m,E=_?il(i.length,GN):[],D=E.length;for(var $ in i)(a||Ue.call(i,$))&&!(_&&($=="length"||h&&($=="offset"||$=="parent")||m&&($=="buffer"||$=="byteLength"||$=="byteOffset")||Nr($,D)))&&E.push($);return E}function yb(i){var a=i.length;return a?i[wl(0,a-1)]:t}function jD(i,a){return au(Wt(i),Si(a,0,i.length))}function FD(i){return au(Wt(i))}function ll(i,a,u){(u!==t&&!Kn(i[a],u)||u===t&&!(a in i))&&Ar(i,a,u)}function sa(i,a,u){var l=i[a];(!(Ue.call(i,a)&&Kn(l,u))||u===t&&!(a in i))&&Ar(i,a,u)}function Gs(i,a){for(var u=i.length;u--;)if(Kn(i[u][0],a))return u;return-1}function $D(i,a,u,l){return Yr(i,function(h,m,_){a(l,h,u(h),_)}),l}function _b(i,a){return i&&ar(a,Ot(a),i)}function VD(i,a){return i&&ar(a,zt(a),i)}function Ar(i,a,u){a=="__proto__"&&Vs?Vs(i,a,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[a]=u}function dl(i,a){for(var u=-1,l=a.length,h=M(l),m=i==null;++u<l;)h[u]=m?t:ql(i,a[u]);return h}function Si(i,a,u){return i===i&&(u!==t&&(i=i<=u?i:u),a!==t&&(i=i>=a?i:a)),i}function Pn(i,a,u,l,h,m){var _,E=a&b,D=a&w,$=a&y;if(u&&(_=h?u(i,l,h,m):u(i)),_!==t)return _;if(!ot(i))return i;var V=Ie(i);if(V){if(_=NC(i),!E)return Wt(i,_)}else{var z=Rt(i),re=z==In||z==An;if(Zr(i))return zb(i,E);if(z==at||z==rn||re&&!h){if(_=D||re?{}:cy(i),!E)return D?bC(i,VD(_,i)):mC(i,_b(_,i))}else{if(!Xe[z])return h?i:{};_=DC(i,z,E)}}m||(m=new Jn);var fe=m.get(i);if(fe)return fe;m.set(i,_),jy(i)?i.forEach(function(me){_.add(Pn(me,a,u,me,i,m))}):ky(i)&&i.forEach(function(me,Pe){_.set(Pe,Pn(me,a,u,Pe,i,m))});var ge=$?D?Pl:Cl:D?zt:Ot,Ne=V?t:ge(i);return Nn(Ne||i,function(me,Pe){Ne&&(Pe=me,me=i[Pe]),sa(_,Pe,Pn(me,a,u,Pe,i,m))}),_}function WD(i){var a=Ot(i);return function(u){return wb(u,i,a)}}function wb(i,a,u){var l=u.length;if(i==null)return!l;for(i=Ye(i);l--;){var h=u[l],m=a[h],_=i[h];if(_===t&&!(h in i)||!m(_))return!1}return!0}function Sb(i,a,u){if(typeof i!="function")throw new Dn(c);return pa(function(){i.apply(t,u)},a)}function ua(i,a,u,l){var h=-1,m=Ds,_=!0,E=i.length,D=[],$=a.length;if(!E)return D;u&&(a=rt(a,sn(u))),l?(m=Zf,_=!1):a.length>=o&&(m=ta,_=!1,a=new wi(a));e:for(;++h<E;){var V=i[h],z=u==null?V:u(V);if(V=l||V!==0?V:0,_&&z===z){for(var re=$;re--;)if(a[re]===z)continue e;D.push(V)}else m(a,z,l)||D.push(V)}return D}var Yr=Jb(or),Ob=Jb(pl,!0);function UD(i,a){var u=!0;return Yr(i,function(l,h,m){return u=!!a(l,h,m),u}),u}function Ys(i,a,u){for(var l=-1,h=i.length;++l<h;){var m=i[l],_=a(m);if(_!=null&&(E===t?_===_&&!cn(_):u(_,E)))var E=_,D=m}return D}function zD(i,a,u,l){var h=i.length;for(u=xe(u),u<0&&(u=-u>h?0:h+u),l=l===t||l>h?h:xe(l),l<0&&(l+=h),l=u>l?0:$y(l);u<l;)i[u++]=a;return i}function Eb(i,a){var u=[];return Yr(i,function(l,h,m){a(l,h,m)&&u.push(l)}),u}function Ct(i,a,u,l,h){var m=-1,_=i.length;for(u||(u=PC),h||(h=[]);++m<_;){var E=i[m];a>0&&u(E)?a>1?Ct(E,a-1,u,l,h):Hr(h,E):l||(h[h.length]=E)}return h}var hl=Kb(),Ib=Kb(!0);function or(i,a){return i&&hl(i,a,Ot)}function pl(i,a){return i&&Ib(i,a,Ot)}function Js(i,a){return zr(a,function(u){return Dr(i[u])})}function Oi(i,a){a=Kr(a,i);for(var u=0,l=a.length;i!=null&&u<l;)i=i[sr(a[u++])];return u&&u==l?i:t}function Ab(i,a,u){var l=a(i);return Ie(i)?l:Hr(l,u(i))}function kt(i){return i==null?i===t?W:Tn:yi&&yi in Ye(i)?AC(i):FC(i)}function vl(i,a){return i>a}function HD(i,a){return i!=null&&Ue.call(i,a)}function qD(i,a){return i!=null&&a in Ye(i)}function GD(i,a,u){return i>=Mt(a,u)&&i<wt(a,u)}function gl(i,a,u){for(var l=u?Zf:Ds,h=i[0].length,m=i.length,_=m,E=M(m),D=1/0,$=[];_--;){var V=i[_];_&&a&&(V=rt(V,sn(a))),D=Mt(V.length,D),E[_]=!u&&(a||h>=120&&V.length>=120)?new wi(_&&V):t}V=i[0];var z=-1,re=E[0];e:for(;++z<h&&$.length<D;){var fe=V[z],ge=a?a(fe):fe;if(fe=u||fe!==0?fe:0,!(re?ta(re,ge):l($,ge,u))){for(_=m;--_;){var Ne=E[_];if(!(Ne?ta(Ne,ge):l(i[_],ge,u)))continue e}re&&re.push(ge),$.push(fe)}}return $}function YD(i,a,u,l){return or(i,function(h,m,_){a(l,u(h),m,_)}),l}function ca(i,a,u){a=Kr(a,i),i=hy(i,a);var l=i==null?i:i[sr(Rn(a))];return l==null?t:an(l,i,u)}function Tb(i){return st(i)&&kt(i)==rn}function JD(i){return st(i)&&kt(i)==le}function KD(i){return st(i)&&kt(i)==Vt}function fa(i,a,u,l,h){return i===a?!0:i==null||a==null||!st(i)&&!st(a)?i!==i&&a!==a:XD(i,a,u,l,fa,h)}function XD(i,a,u,l,h,m){var _=Ie(i),E=Ie(a),D=_?Ce:Rt(i),$=E?Ce:Rt(a);D=D==rn?at:D,$=$==rn?at:$;var V=D==at,z=$==at,re=D==$;if(re&&Zr(i)){if(!Zr(a))return!1;_=!0,V=!1}if(re&&!V)return m||(m=new Jn),_||fo(i)?ay(i,a,u,l,h,m):EC(i,a,D,u,l,h,m);if(!(u&O)){var fe=V&&Ue.call(i,"__wrapped__"),ge=z&&Ue.call(a,"__wrapped__");if(fe||ge){var Ne=fe?i.value():i,me=ge?a.value():a;return m||(m=new Jn),h(Ne,me,u,l,m)}}return re?(m||(m=new Jn),IC(i,a,u,l,h,m)):!1}function ZD(i){return st(i)&&Rt(i)==Ke}function ml(i,a,u,l){var h=u.length,m=h,_=!l;if(i==null)return!m;for(i=Ye(i);h--;){var E=u[h];if(_&&E[2]?E[1]!==i[E[0]]:!(E[0]in i))return!1}for(;++h<m;){E=u[h];var D=E[0],$=i[D],V=E[1];if(_&&E[2]){if($===t&&!(D in i))return!1}else{var z=new Jn;if(l)var re=l($,V,D,i,a,z);if(!(re===t?fa(V,$,O|S,l,z):re))return!1}}return!0}function xb(i){if(!ot(i)||RC(i))return!1;var a=Dr(i)?ZN:Wx;return a.test(Ii(i))}function QD(i){return st(i)&&kt(i)==Qe}function eC(i){return st(i)&&Rt(i)==bt}function tC(i){return st(i)&&du(i.length)&&!!tt[kt(i)]}function Nb(i){return typeof i=="function"?i:i==null?Ht:typeof i=="object"?Ie(i)?Pb(i[0],i[1]):Cb(i):Xy(i)}function bl(i){if(!ha(i))return iD(i);var a=[];for(var u in Ye(i))Ue.call(i,u)&&u!="constructor"&&a.push(u);return a}function nC(i){if(!ot(i))return jC(i);var a=ha(i),u=[];for(var l in i)l=="constructor"&&(a||!Ue.call(i,l))||u.push(l);return u}function yl(i,a){return i<a}function Db(i,a){var u=-1,l=Ut(i)?M(i.length):[];return Yr(i,function(h,m,_){l[++u]=a(h,m,_)}),l}function Cb(i){var a=Rl(i);return a.length==1&&a[0][2]?ly(a[0][0],a[0][1]):function(u){return u===i||ml(u,i,a)}}function Pb(i,a){return kl(i)&&fy(a)?ly(sr(i),a):function(u){var l=ql(u,i);return l===t&&l===a?Gl(u,i):fa(a,l,O|S)}}function Ks(i,a,u,l,h){i!==a&&hl(a,function(m,_){if(h||(h=new Jn),ot(m))rC(i,a,_,u,Ks,l,h);else{var E=l?l(jl(i,_),m,_+"",i,a,h):t;E===t&&(E=m),ll(i,_,E)}},zt)}function rC(i,a,u,l,h,m,_){var E=jl(i,u),D=jl(a,u),$=_.get(D);if($){ll(i,u,$);return}var V=m?m(E,D,u+"",i,a,_):t,z=V===t;if(z){var re=Ie(D),fe=!re&&Zr(D),ge=!re&&!fe&&fo(D);V=D,re||fe||ge?Ie(E)?V=E:lt(E)?V=Wt(E):fe?(z=!1,V=zb(D,!0)):ge?(z=!1,V=Hb(D,!0)):V=[]:va(D)||Ai(D)?(V=E,Ai(E)?V=Vy(E):(!ot(E)||Dr(E))&&(V=cy(D))):z=!1}z&&(_.set(D,V),h(V,D,l,m,_),_.delete(D)),ll(i,u,V)}function Mb(i,a){var u=i.length;if(u)return a+=a<0?u:0,Nr(a,u)?i[a]:t}function Rb(i,a,u){a.length?a=rt(a,function(m){return Ie(m)?function(_){return Oi(_,m.length===1?m[0]:m)}:m}):a=[Ht];var l=-1;a=rt(a,sn(ve()));var h=Db(i,function(m,_,E){var D=rt(a,function($){return $(m)});return{criteria:D,index:++l,value:m}});return DN(h,function(m,_){return gC(m,_,u)})}function iC(i,a){return Lb(i,a,function(u,l){return Gl(i,l)})}function Lb(i,a,u){for(var l=-1,h=a.length,m={};++l<h;){var _=a[l],E=Oi(i,_);u(E,_)&&la(m,Kr(_,i),E)}return m}function oC(i){return function(a){return Oi(a,i)}}function _l(i,a,u,l){var h=l?NN:Qi,m=-1,_=a.length,E=i;for(i===a&&(a=Wt(a)),u&&(E=rt(i,sn(u)));++m<_;)for(var D=0,$=a[m],V=u?u($):$;(D=h(E,V,D,l))>-1;)E!==i&&$s.call(E,D,1),$s.call(i,D,1);return i}function kb(i,a){for(var u=i?a.length:0,l=u-1;u--;){var h=a[u];if(u==l||h!==m){var m=h;Nr(h)?$s.call(i,h,1):El(i,h)}}return i}function wl(i,a){return i+Us(gb()*(a-i+1))}function aC(i,a,u,l){for(var h=-1,m=wt(Ws((a-i)/(u||1)),0),_=M(m);m--;)_[l?m:++h]=i,i+=u;return _}function Sl(i,a){var u="";if(!i||a<1||a>ue)return u;do a%2&&(u+=i),a=Us(a/2),a&&(i+=i);while(a);return u}function De(i,a){return Fl(dy(i,a,Ht),i+"")}function sC(i){return yb(lo(i))}function uC(i,a){var u=lo(i);return au(u,Si(a,0,u.length))}function la(i,a,u,l){if(!ot(i))return i;a=Kr(a,i);for(var h=-1,m=a.length,_=m-1,E=i;E!=null&&++h<m;){var D=sr(a[h]),$=u;if(D==="__proto__"||D==="constructor"||D==="prototype")return i;if(h!=_){var V=E[D];$=l?l(V,D,E):t,$===t&&($=ot(V)?V:Nr(a[h+1])?[]:{})}sa(E,D,$),E=E[D]}return i}var Bb=zs?function(i,a){return zs.set(i,a),i}:Ht,cC=Vs?function(i,a){return Vs(i,"toString",{configurable:!0,enumerable:!1,value:Jl(a),writable:!0})}:Ht;function fC(i){return au(lo(i))}function Mn(i,a,u){var l=-1,h=i.length;a<0&&(a=-a>h?0:h+a),u=u>h?h:u,u<0&&(u+=h),h=a>u?0:u-a>>>0,a>>>=0;for(var m=M(h);++l<h;)m[l]=i[l+a];return m}function lC(i,a){var u;return Yr(i,function(l,h,m){return u=a(l,h,m),!u}),!!u}function Xs(i,a,u){var l=0,h=i==null?l:i.length;if(typeof a=="number"&&a===a&&h<=pe){for(;l<h;){var m=l+h>>>1,_=i[m];_!==null&&!cn(_)&&(u?_<=a:_<a)?l=m+1:h=m}return h}return Ol(i,a,Ht,u)}function Ol(i,a,u,l){var h=0,m=i==null?0:i.length;if(m===0)return 0;a=u(a);for(var _=a!==a,E=a===null,D=cn(a),$=a===t;h<m;){var V=Us((h+m)/2),z=u(i[V]),re=z!==t,fe=z===null,ge=z===z,Ne=cn(z);if(_)var me=l||ge;else $?me=ge&&(l||re):E?me=ge&&re&&(l||!fe):D?me=ge&&re&&!fe&&(l||!Ne):fe||Ne?me=!1:me=l?z<=a:z<a;me?h=V+1:m=V}return Mt(m,wr)}function jb(i,a){for(var u=-1,l=i.length,h=0,m=[];++u<l;){var _=i[u],E=a?a(_):_;if(!u||!Kn(E,D)){var D=E;m[h++]=_===0?0:_}}return m}function Fb(i){return typeof i=="number"?i:cn(i)?Pt:+i}function un(i){if(typeof i=="string")return i;if(Ie(i))return rt(i,un)+"";if(cn(i))return mb?mb.call(i):"";var a=i+"";return a=="0"&&1/i==-xt?"-0":a}function Jr(i,a,u){var l=-1,h=Ds,m=i.length,_=!0,E=[],D=E;if(u)_=!1,h=Zf;else if(m>=o){var $=a?null:SC(i);if($)return Ps($);_=!1,h=ta,D=new wi}else D=a?[]:E;e:for(;++l<m;){var V=i[l],z=a?a(V):V;if(V=u||V!==0?V:0,_&&z===z){for(var re=D.length;re--;)if(D[re]===z)continue e;a&&D.push(z),E.push(V)}else h(D,z,u)||(D!==E&&D.push(z),E.push(V))}return E}function El(i,a){a=Kr(a,i);var u=-1,l=a.length;if(!l)return!0;for(var h=i==null||typeof i!="object"&&typeof i!="function";++u<l;){var m=a[u];if(typeof m=="string"){if(m==="__proto__"&&!Ue.call(i,"__proto__"))return!1;if(m==="constructor"&&u+1<l&&typeof a[u+1]=="string"&&a[u+1]==="prototype"){if(h&&u===0)continue;return!1}}}var _=hy(i,a);return _==null||delete _[sr(Rn(a))]}function $b(i,a,u,l){return la(i,a,u(Oi(i,a)),l)}function Zs(i,a,u,l){for(var h=i.length,m=l?h:-1;(l?m--:++m<h)&&a(i[m],m,i););return u?Mn(i,l?0:m,l?m+1:h):Mn(i,l?m+1:0,l?h:m)}function Vb(i,a){var u=i;return u instanceof Re&&(u=u.value()),Qf(a,function(l,h){return h.func.apply(h.thisArg,Hr([l],h.args))},u)}function Il(i,a,u){var l=i.length;if(l<2)return l?Jr(i[0]):[];for(var h=-1,m=M(l);++h<l;)for(var _=i[h],E=-1;++E<l;)E!=h&&(m[h]=ua(m[h]||_,i[E],a,u));return Jr(Ct(m,1),a,u)}function Wb(i,a,u){for(var l=-1,h=i.length,m=a.length,_={};++l<h;){var E=l<m?a[l]:t;u(_,i[l],E)}return _}function Al(i){return lt(i)?i:[]}function Tl(i){return typeof i=="function"?i:Ht}function Kr(i,a){return Ie(i)?i:kl(i,a)?[i]:my(ze(i))}var dC=De;function Xr(i,a,u){var l=i.length;return u=u===t?l:u,!a&&u>=l?i:Mn(i,a,u)}var Ub=QN||function(i){return Dt.clearTimeout(i)};function zb(i,a){if(a)return i.slice();var u=i.length,l=lb?lb(u):new i.constructor(u);return i.copy(l),l}function xl(i){var a=new i.constructor(i.byteLength);return new js(a).set(new js(i)),a}function hC(i,a){var u=a?xl(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function pC(i){var a=new i.constructor(i.source,Tm.exec(i));return a.lastIndex=i.lastIndex,a}function vC(i){return aa?Ye(aa.call(i)):{}}function Hb(i,a){var u=a?xl(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function qb(i,a){if(i!==a){var u=i!==t,l=i===null,h=i===i,m=cn(i),_=a!==t,E=a===null,D=a===a,$=cn(a);if(!E&&!$&&!m&&i>a||m&&_&&D&&!E&&!$||l&&_&&D||!u&&D||!h)return 1;if(!l&&!m&&!$&&i<a||$&&u&&h&&!l&&!m||E&&u&&h||!_&&h||!D)return-1}return 0}function gC(i,a,u){for(var l=-1,h=i.criteria,m=a.criteria,_=h.length,E=u.length;++l<_;){var D=qb(h[l],m[l]);if(D){if(l>=E)return D;var $=u[l];return D*($=="desc"?-1:1)}}return i.index-a.index}function Gb(i,a,u,l){for(var h=-1,m=i.length,_=u.length,E=-1,D=a.length,$=wt(m-_,0),V=M(D+$),z=!l;++E<D;)V[E]=a[E];for(;++h<_;)(z||h<m)&&(V[u[h]]=i[h]);for(;$--;)V[E++]=i[h++];return V}function Yb(i,a,u,l){for(var h=-1,m=i.length,_=-1,E=u.length,D=-1,$=a.length,V=wt(m-E,0),z=M(V+$),re=!l;++h<V;)z[h]=i[h];for(var fe=h;++D<$;)z[fe+D]=a[D];for(;++_<E;)(re||h<m)&&(z[fe+u[_]]=i[h++]);return z}function Wt(i,a){var u=-1,l=i.length;for(a||(a=M(l));++u<l;)a[u]=i[u];return a}function ar(i,a,u,l){var h=!u;u||(u={});for(var m=-1,_=a.length;++m<_;){var E=a[m],D=l?l(u[E],i[E],E,u,i):t;D===t&&(D=i[E]),h?Ar(u,E,D):sa(u,E,D)}return u}function mC(i,a){return ar(i,Ll(i),a)}function bC(i,a){return ar(i,sy(i),a)}function Qs(i,a){return function(u,l){var h=Ie(u)?ON:$D,m=a?a():{};return h(u,i,ve(l,2),m)}}function so(i){return De(function(a,u){var l=-1,h=u.length,m=h>1?u[h-1]:t,_=h>2?u[2]:t;for(m=i.length>3&&typeof m=="function"?(h--,m):t,_&&Bt(u[0],u[1],_)&&(m=h<3?t:m,h=1),a=Ye(a);++l<h;){var E=u[l];E&&i(a,E,l,m)}return a})}function Jb(i,a){return function(u,l){if(u==null)return u;if(!Ut(u))return i(u,l);for(var h=u.length,m=a?h:-1,_=Ye(u);(a?m--:++m<h)&&l(_[m],m,_)!==!1;);return u}}function Kb(i){return function(a,u,l){for(var h=-1,m=Ye(a),_=l(a),E=_.length;E--;){var D=_[i?E:++h];if(u(m[D],D,m)===!1)break}return a}}function yC(i,a,u){var l=a&A,h=da(i);function m(){var _=this&&this!==Dt&&this instanceof m?h:i;return _.apply(l?u:this,arguments)}return m}function Xb(i){return function(a){a=ze(a);var u=eo(a)?Yn(a):t,l=u?u[0]:a.charAt(0),h=u?Xr(u,1).join(""):a.slice(1);return l[i]()+h}}function uo(i){return function(a){return Qf(Jy(Yy(a).replace(cN,"")),i,"")}}function da(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var u=ao(i.prototype),l=i.apply(u,a);return ot(l)?l:u}}function _C(i,a,u){var l=da(i);function h(){for(var m=arguments.length,_=M(m),E=m,D=co(h);E--;)_[E]=arguments[E];var $=m<3&&_[0]!==D&&_[m-1]!==D?[]:qr(_,D);if(m-=$.length,m<u)return ny(i,a,eu,h.placeholder,t,_,$,t,t,u-m);var V=this&&this!==Dt&&this instanceof h?l:i;return an(V,this,_)}return h}function Zb(i){return function(a,u,l){var h=Ye(a);if(!Ut(a)){var m=ve(u,3);a=Ot(a),u=function(E){return m(h[E],E,h)}}var _=i(a,u,l);return _>-1?h[m?a[_]:_]:t}}function Qb(i){return xr(function(a){var u=a.length,l=u,h=Cn.prototype.thru;for(i&&a.reverse();l--;){var m=a[l];if(typeof m!="function")throw new Dn(c);if(h&&!_&&iu(m)=="wrapper")var _=new Cn([],!0)}for(l=_?l:u;++l<u;){m=a[l];var E=iu(m),D=E=="wrapper"?Ml(m):t;D&&Bl(D[0])&&D[1]==(L|G|q|F)&&!D[4].length&&D[9]==1?_=_[iu(D[0])].apply(_,D[3]):_=m.length==1&&Bl(m)?_[E]():_.thru(m)}return function(){var $=arguments,V=$[0];if(_&&$.length==1&&Ie(V))return _.plant(V).value();for(var z=0,re=u?a[z].apply(this,$):V;++z<u;)re=a[z].call(this,re);return re}})}function eu(i,a,u,l,h,m,_,E,D,$){var V=a&L,z=a&A,re=a&x,fe=a&(G|oe),ge=a&ae,Ne=re?t:da(i);function me(){for(var Pe=arguments.length,ke=M(Pe),fn=Pe;fn--;)ke[fn]=arguments[fn];if(fe)var jt=co(me),ln=PN(ke,jt);if(l&&(ke=Gb(ke,l,h,fe)),m&&(ke=Yb(ke,m,_,fe)),Pe-=ln,fe&&Pe<$){var dt=qr(ke,jt);return ny(i,a,eu,me.placeholder,u,ke,dt,E,D,$-Pe)}var Xn=z?u:this,Pr=re?Xn[i]:i;return Pe=ke.length,E?ke=$C(ke,E):ge&&Pe>1&&ke.reverse(),V&&D<Pe&&(ke.length=D),this&&this!==Dt&&this instanceof me&&(Pr=Ne||da(Pr)),Pr.apply(Xn,ke)}return me}function ey(i,a){return function(u,l){return YD(u,i,a(l),{})}}function tu(i,a){return function(u,l){var h;if(u===t&&l===t)return a;if(u!==t&&(h=u),l!==t){if(h===t)return l;typeof u=="string"||typeof l=="string"?(u=un(u),l=un(l)):(u=Fb(u),l=Fb(l)),h=i(u,l)}return h}}function Nl(i){return xr(function(a){return a=rt(a,sn(ve())),De(function(u){var l=this;return i(a,function(h){return an(h,l,u)})})})}function nu(i,a){a=a===t?" ":un(a);var u=a.length;if(u<2)return u?Sl(a,i):a;var l=Sl(a,Ws(i/to(a)));return eo(a)?Xr(Yn(l),0,i).join(""):l.slice(0,i)}function wC(i,a,u,l){var h=a&A,m=da(i);function _(){for(var E=-1,D=arguments.length,$=-1,V=l.length,z=M(V+D),re=this&&this!==Dt&&this instanceof _?m:i;++$<V;)z[$]=l[$];for(;D--;)z[$++]=arguments[++E];return an(re,h?u:this,z)}return _}function ty(i){return function(a,u,l){return l&&typeof l!="number"&&Bt(a,u,l)&&(u=l=t),a=Cr(a),u===t?(u=a,a=0):u=Cr(u),l=l===t?a<u?1:-1:Cr(l),aC(a,u,l,i)}}function ru(i){return function(a,u){return typeof a=="string"&&typeof u=="string"||(a=Ln(a),u=Ln(u)),i(a,u)}}function ny(i,a,u,l,h,m,_,E,D,$){var V=a&G,z=V?_:t,re=V?t:_,fe=V?m:t,ge=V?t:m;a|=V?q:ye,a&=~(V?ye:q),a&k||(a&=-4);var Ne=[i,a,h,fe,z,ge,re,E,D,$],me=u.apply(t,Ne);return Bl(i)&&py(me,Ne),me.placeholder=l,vy(me,i,a)}function Dl(i){var a=_t[i];return function(u,l){if(u=Ln(u),l=l==null?0:Mt(xe(l),292),l&&vb(u)){var h=(ze(u)+"e").split("e"),m=a(h[0]+"e"+(+h[1]+l));return h=(ze(m)+"e").split("e"),+(h[0]+"e"+(+h[1]-l))}return a(u)}}var SC=io&&1/Ps(new io([,-0]))[1]==xt?function(i){return new io(i)}:Zl;function ry(i){return function(a){var u=Rt(a);return u==Ke?al(a):u==bt?FN(a):CN(a,i(a))}}function Tr(i,a,u,l,h,m,_,E){var D=a&x;if(!D&&typeof i!="function")throw new Dn(c);var $=l?l.length:0;if($||(a&=-97,l=h=t),_=_===t?_:wt(xe(_),0),E=E===t?E:xe(E),$-=h?h.length:0,a&ye){var V=l,z=h;l=h=t}var re=D?t:Ml(i),fe=[i,a,u,l,h,V,z,m,_,E];if(re&&BC(fe,re),i=fe[0],a=fe[1],u=fe[2],l=fe[3],h=fe[4],E=fe[9]=fe[9]===t?D?0:i.length:wt(fe[9]-$,0),!E&&a&(G|oe)&&(a&=-25),!a||a==A)var ge=yC(i,a,u);else a==G||a==oe?ge=_C(i,a,E):(a==q||a==(A|q))&&!h.length?ge=wC(i,a,u,l):ge=eu.apply(t,fe);var Ne=re?Bb:py;return vy(Ne(ge,fe),i,a)}function iy(i,a,u,l){return i===t||Kn(i,ro[u])&&!Ue.call(l,u)?a:i}function oy(i,a,u,l,h,m){return ot(i)&&ot(a)&&(m.set(a,i),Ks(i,a,t,oy,m),m.delete(a)),i}function OC(i){return va(i)?t:i}function ay(i,a,u,l,h,m){var _=u&O,E=i.length,D=a.length;if(E!=D&&!(_&&D>E))return!1;var $=m.get(i),V=m.get(a);if($&&V)return $==a&&V==i;var z=-1,re=!0,fe=u&S?new wi:t;for(m.set(i,a),m.set(a,i);++z<E;){var ge=i[z],Ne=a[z];if(l)var me=_?l(Ne,ge,z,a,i,m):l(ge,Ne,z,i,a,m);if(me!==t){if(me)continue;re=!1;break}if(fe){if(!el(a,function(Pe,ke){if(!ta(fe,ke)&&(ge===Pe||h(ge,Pe,u,l,m)))return fe.push(ke)})){re=!1;break}}else if(!(ge===Ne||h(ge,Ne,u,l,m))){re=!1;break}}return m.delete(i),m.delete(a),re}function EC(i,a,u,l,h,m,_){switch(u){case Be:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case le:return!(i.byteLength!=a.byteLength||!m(new js(i),new js(a)));case $t:case Vt:case on:return Kn(+i,+a);case pt:return i.name==a.name&&i.message==a.message;case Qe:case St:return i==a+"";case Ke:var E=al;case bt:var D=l&O;if(E||(E=Ps),i.size!=a.size&&!D)return!1;var $=_.get(i);if($)return $==a;l|=S,_.set(i,a);var V=ay(E(i),E(a),l,h,m,_);return _.delete(i),V;case P:if(aa)return aa.call(i)==aa.call(a)}return!1}function IC(i,a,u,l,h,m){var _=u&O,E=Cl(i),D=E.length,$=Cl(a),V=$.length;if(D!=V&&!_)return!1;for(var z=D;z--;){var re=E[z];if(!(_?re in a:Ue.call(a,re)))return!1}var fe=m.get(i),ge=m.get(a);if(fe&&ge)return fe==a&&ge==i;var Ne=!0;m.set(i,a),m.set(a,i);for(var me=_;++z<D;){re=E[z];var Pe=i[re],ke=a[re];if(l)var fn=_?l(ke,Pe,re,a,i,m):l(Pe,ke,re,i,a,m);if(!(fn===t?Pe===ke||h(Pe,ke,u,l,m):fn)){Ne=!1;break}me||(me=re=="constructor")}if(Ne&&!me){var jt=i.constructor,ln=a.constructor;jt!=ln&&"constructor"in i&&"constructor"in a&&!(typeof jt=="function"&&jt instanceof jt&&typeof ln=="function"&&ln instanceof ln)&&(Ne=!1)}return m.delete(i),m.delete(a),Ne}function xr(i){return Fl(dy(i,t,wy),i+"")}function Cl(i){return Ab(i,Ot,Ll)}function Pl(i){return Ab(i,zt,sy)}var Ml=zs?function(i){return zs.get(i)}:Zl;function iu(i){for(var a=i.name+"",u=oo[a],l=Ue.call(oo,a)?u.length:0;l--;){var h=u[l],m=h.func;if(m==null||m==i)return h.name}return a}function co(i){var a=Ue.call(g,"placeholder")?g:i;return a.placeholder}function ve(){var i=g.iteratee||Kl;return i=i===Kl?Nb:i,arguments.length?i(arguments[0],arguments[1]):i}function ou(i,a){var u=i.__data__;return MC(a)?u[typeof a=="string"?"string":"hash"]:u.map}function Rl(i){for(var a=Ot(i),u=a.length;u--;){var l=a[u],h=i[l];a[u]=[l,h,fy(h)]}return a}function Ei(i,a){var u=kN(i,a);return xb(u)?u:t}function AC(i){var a=Ue.call(i,yi),u=i[yi];try{i[yi]=t;var l=!0}catch{}var h=ks.call(i);return l&&(a?i[yi]=u:delete i[yi]),h}var Ll=ul?function(i){return i==null?[]:(i=Ye(i),zr(ul(i),function(a){return hb.call(i,a)}))}:Ql,sy=ul?function(i){for(var a=[];i;)Hr(a,Ll(i)),i=Fs(i);return a}:Ql,Rt=kt;(cl&&Rt(new cl(new ArrayBuffer(1)))!=Be||ra&&Rt(new ra)!=Ke||fl&&Rt(fl.resolve())!=vt||io&&Rt(new io)!=bt||ia&&Rt(new ia)!=U)&&(Rt=function(i){var a=kt(i),u=a==at?i.constructor:t,l=u?Ii(u):"";if(l)switch(l){case uD:return Be;case cD:return Ke;case fD:return vt;case lD:return bt;case dD:return U}return a});function TC(i,a,u){for(var l=-1,h=u.length;++l<h;){var m=u[l],_=m.size;switch(m.type){case"drop":i+=_;break;case"dropRight":a-=_;break;case"take":a=Mt(a,i+_);break;case"takeRight":i=wt(i,a-_);break}}return{start:i,end:a}}function xC(i){var a=i.match(Xi);return a?a[1].split(Lx):[]}function uy(i,a,u){a=Kr(a,i);for(var l=-1,h=a.length,m=!1;++l<h;){var _=sr(a[l]);if(!(m=i!=null&&u(i,_)))break;i=i[_]}return m||++l!=h?m:(h=i==null?0:i.length,!!h&&du(h)&&Nr(_,h)&&(Ie(i)||Ai(i)))}function NC(i){var a=i.length,u=new i.constructor(a);return a&&typeof i[0]=="string"&&Ue.call(i,"index")&&(u.index=i.index,u.input=i.input),u}function cy(i){return typeof i.constructor=="function"&&!ha(i)?ao(Fs(i)):{}}function DC(i,a,u){var l=i.constructor;switch(a){case le:return xl(i);case $t:case Vt:return new l(+i);case Be:return hC(i,u);case nt:case Nt:case it:case I:case N:case C:case j:case Z:case _e:return Hb(i,u);case Ke:return new l;case on:case St:return new l(i);case Qe:return pC(i);case bt:return new l;case P:return vC(i)}}function CC(i,a){var u=a.length;if(!u)return i;var l=u-1;return a[l]=(u>1?"& ":"")+a[l],a=a.join(u>2?", ":" "),i.replace(ea,`{
|
|
49
|
-
/* [wrapped with `+a+`] */
|
|
50
|
-
`)}function PC(i){return Ie(i)||Ai(i)||!!(pb&&i&&i[pb])}function Nr(i,a){var u=typeof i;return a=a??ue,!!a&&(u=="number"||u!="symbol"&&zx.test(i))&&i>-1&&i%1==0&&i<a}function Bt(i,a,u){if(!ot(u))return!1;var l=typeof a;return(l=="number"?Ut(u)&&Nr(a,u.length):l=="string"&&a in u)?Kn(u[a],i):!1}function kl(i,a){if(Ie(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||cn(i)?!0:Xo.test(i)||!Ji.test(i)||a!=null&&i in Ye(a)}function MC(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function Bl(i){var a=iu(i),u=g[a];if(typeof u!="function"||!(a in Re.prototype))return!1;if(i===u)return!0;var l=Ml(u);return!!l&&i===l[0]}function RC(i){return!!fb&&fb in i}var LC=Rs?Dr:ed;function ha(i){var a=i&&i.constructor,u=typeof a=="function"&&a.prototype||ro;return i===u}function fy(i){return i===i&&!ot(i)}function ly(i,a){return function(u){return u==null?!1:u[i]===a&&(a!==t||i in Ye(u))}}function kC(i){var a=fu(i,function(l){return u.size===p&&u.clear(),l}),u=a.cache;return a}function BC(i,a){var u=i[1],l=a[1],h=u|l,m=h<(A|x|L),_=l==L&&u==G||l==L&&u==F&&i[7].length<=a[8]||l==(L|F)&&a[7].length<=a[8]&&u==G;if(!(m||_))return i;l&A&&(i[2]=a[2],h|=u&A?0:k);var E=a[3];if(E){var D=i[3];i[3]=D?Gb(D,E,a[4]):E,i[4]=D?qr(i[3],v):a[4]}return E=a[5],E&&(D=i[5],i[5]=D?Yb(D,E,a[6]):E,i[6]=D?qr(i[5],v):a[6]),E=a[7],E&&(i[7]=E),l&L&&(i[8]=i[8]==null?a[8]:Mt(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=h,i}function jC(i){var a=[];if(i!=null)for(var u in Ye(i))a.push(u);return a}function FC(i){return ks.call(i)}function dy(i,a,u){return a=wt(a===t?i.length-1:a,0),function(){for(var l=arguments,h=-1,m=wt(l.length-a,0),_=M(m);++h<m;)_[h]=l[a+h];h=-1;for(var E=M(a+1);++h<a;)E[h]=l[h];return E[a]=u(_),an(i,this,E)}}function hy(i,a){return a.length<2?i:Oi(i,Mn(a,0,-1))}function $C(i,a){for(var u=i.length,l=Mt(a.length,u),h=Wt(i);l--;){var m=a[l];i[l]=Nr(m,u)?h[m]:t}return i}function jl(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var py=gy(Bb),pa=tD||function(i,a){return Dt.setTimeout(i,a)},Fl=gy(cC);function vy(i,a,u){var l=a+"";return Fl(i,CC(l,VC(xC(l),u)))}function gy(i){var a=0,u=0;return function(){var l=oD(),h=he-(l-u);if(u=l,h>0){if(++a>=Se)return arguments[0]}else a=0;return i.apply(t,arguments)}}function au(i,a){var u=-1,l=i.length,h=l-1;for(a=a===t?l:a;++u<a;){var m=wl(u,h),_=i[m];i[m]=i[u],i[u]=_}return i.length=a,i}var my=kC(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(Ki,function(u,l,h,m){a.push(h?m.replace(jx,"$1"):l||u)}),a});function sr(i){if(typeof i=="string"||cn(i))return i;var a=i+"";return a=="0"&&1/i==-xt?"-0":a}function Ii(i){if(i!=null){try{return Ls.call(i)}catch{}try{return i+""}catch{}}return""}function VC(i,a){return Nn(Lt,function(u){var l="_."+u[0];a&u[1]&&!Ds(i,l)&&i.push(l)}),i.sort()}function by(i){if(i instanceof Re)return i.clone();var a=new Cn(i.__wrapped__,i.__chain__);return a.__actions__=Wt(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function WC(i,a,u){(u?Bt(i,a,u):a===t)?a=1:a=wt(xe(a),0);var l=i==null?0:i.length;if(!l||a<1)return[];for(var h=0,m=0,_=M(Ws(l/a));h<l;)_[m++]=Mn(i,h,h+=a);return _}function UC(i){for(var a=-1,u=i==null?0:i.length,l=0,h=[];++a<u;){var m=i[a];m&&(h[l++]=m)}return h}function zC(){var i=arguments.length;if(!i)return[];for(var a=M(i-1),u=arguments[0],l=i;l--;)a[l-1]=arguments[l];return Hr(Ie(u)?Wt(u):[u],Ct(a,1))}var HC=De(function(i,a){return lt(i)?ua(i,Ct(a,1,lt,!0)):[]}),qC=De(function(i,a){var u=Rn(a);return lt(u)&&(u=t),lt(i)?ua(i,Ct(a,1,lt,!0),ve(u,2)):[]}),GC=De(function(i,a){var u=Rn(a);return lt(u)&&(u=t),lt(i)?ua(i,Ct(a,1,lt,!0),t,u):[]});function YC(i,a,u){var l=i==null?0:i.length;return l?(a=u||a===t?1:xe(a),Mn(i,a<0?0:a,l)):[]}function JC(i,a,u){var l=i==null?0:i.length;return l?(a=u||a===t?1:xe(a),a=l-a,Mn(i,0,a<0?0:a)):[]}function KC(i,a){return i&&i.length?Zs(i,ve(a,3),!0,!0):[]}function XC(i,a){return i&&i.length?Zs(i,ve(a,3),!0):[]}function ZC(i,a,u,l){var h=i==null?0:i.length;return h?(u&&typeof u!="number"&&Bt(i,a,u)&&(u=0,l=h),zD(i,a,u,l)):[]}function yy(i,a,u){var l=i==null?0:i.length;if(!l)return-1;var h=u==null?0:xe(u);return h<0&&(h=wt(l+h,0)),Cs(i,ve(a,3),h)}function _y(i,a,u){var l=i==null?0:i.length;if(!l)return-1;var h=l-1;return u!==t&&(h=xe(u),h=u<0?wt(l+h,0):Mt(h,l-1)),Cs(i,ve(a,3),h,!0)}function wy(i){var a=i==null?0:i.length;return a?Ct(i,1):[]}function QC(i){var a=i==null?0:i.length;return a?Ct(i,xt):[]}function eP(i,a){var u=i==null?0:i.length;return u?(a=a===t?1:xe(a),Ct(i,a)):[]}function tP(i){for(var a=-1,u=i==null?0:i.length,l={};++a<u;){var h=i[a];l[h[0]]=h[1]}return l}function Sy(i){return i&&i.length?i[0]:t}function nP(i,a,u){var l=i==null?0:i.length;if(!l)return-1;var h=u==null?0:xe(u);return h<0&&(h=wt(l+h,0)),Qi(i,a,h)}function rP(i){var a=i==null?0:i.length;return a?Mn(i,0,-1):[]}var iP=De(function(i){var a=rt(i,Al);return a.length&&a[0]===i[0]?gl(a):[]}),oP=De(function(i){var a=Rn(i),u=rt(i,Al);return a===Rn(u)?a=t:u.pop(),u.length&&u[0]===i[0]?gl(u,ve(a,2)):[]}),aP=De(function(i){var a=Rn(i),u=rt(i,Al);return a=typeof a=="function"?a:t,a&&u.pop(),u.length&&u[0]===i[0]?gl(u,t,a):[]});function sP(i,a){return i==null?"":rD.call(i,a)}function Rn(i){var a=i==null?0:i.length;return a?i[a-1]:t}function uP(i,a,u){var l=i==null?0:i.length;if(!l)return-1;var h=l;return u!==t&&(h=xe(u),h=h<0?wt(l+h,0):Mt(h,l-1)),a===a?VN(i,a,h):Cs(i,nb,h,!0)}function cP(i,a){return i&&i.length?Mb(i,xe(a)):t}var fP=De(Oy);function Oy(i,a){return i&&i.length&&a&&a.length?_l(i,a):i}function lP(i,a,u){return i&&i.length&&a&&a.length?_l(i,a,ve(u,2)):i}function dP(i,a,u){return i&&i.length&&a&&a.length?_l(i,a,t,u):i}var hP=xr(function(i,a){var u=i==null?0:i.length,l=dl(i,a);return kb(i,rt(a,function(h){return Nr(h,u)?+h:h}).sort(qb)),l});function pP(i,a){var u=[];if(!(i&&i.length))return u;var l=-1,h=[],m=i.length;for(a=ve(a,3);++l<m;){var _=i[l];a(_,l,i)&&(u.push(_),h.push(l))}return kb(i,h),u}function $l(i){return i==null?i:sD.call(i)}function vP(i,a,u){var l=i==null?0:i.length;return l?(u&&typeof u!="number"&&Bt(i,a,u)?(a=0,u=l):(a=a==null?0:xe(a),u=u===t?l:xe(u)),Mn(i,a,u)):[]}function gP(i,a){return Xs(i,a)}function mP(i,a,u){return Ol(i,a,ve(u,2))}function bP(i,a){var u=i==null?0:i.length;if(u){var l=Xs(i,a);if(l<u&&Kn(i[l],a))return l}return-1}function yP(i,a){return Xs(i,a,!0)}function _P(i,a,u){return Ol(i,a,ve(u,2),!0)}function wP(i,a){var u=i==null?0:i.length;if(u){var l=Xs(i,a,!0)-1;if(Kn(i[l],a))return l}return-1}function SP(i){return i&&i.length?jb(i):[]}function OP(i,a){return i&&i.length?jb(i,ve(a,2)):[]}function EP(i){var a=i==null?0:i.length;return a?Mn(i,1,a):[]}function IP(i,a,u){return i&&i.length?(a=u||a===t?1:xe(a),Mn(i,0,a<0?0:a)):[]}function AP(i,a,u){var l=i==null?0:i.length;return l?(a=u||a===t?1:xe(a),a=l-a,Mn(i,a<0?0:a,l)):[]}function TP(i,a){return i&&i.length?Zs(i,ve(a,3),!1,!0):[]}function xP(i,a){return i&&i.length?Zs(i,ve(a,3)):[]}var NP=De(function(i){return Jr(Ct(i,1,lt,!0))}),DP=De(function(i){var a=Rn(i);return lt(a)&&(a=t),Jr(Ct(i,1,lt,!0),ve(a,2))}),CP=De(function(i){var a=Rn(i);return a=typeof a=="function"?a:t,Jr(Ct(i,1,lt,!0),t,a)});function PP(i){return i&&i.length?Jr(i):[]}function MP(i,a){return i&&i.length?Jr(i,ve(a,2)):[]}function RP(i,a){return a=typeof a=="function"?a:t,i&&i.length?Jr(i,t,a):[]}function Vl(i){if(!(i&&i.length))return[];var a=0;return i=zr(i,function(u){if(lt(u))return a=wt(u.length,a),!0}),il(a,function(u){return rt(i,tl(u))})}function Ey(i,a){if(!(i&&i.length))return[];var u=Vl(i);return a==null?u:rt(u,function(l){return an(a,t,l)})}var LP=De(function(i,a){return lt(i)?ua(i,a):[]}),kP=De(function(i){return Il(zr(i,lt))}),BP=De(function(i){var a=Rn(i);return lt(a)&&(a=t),Il(zr(i,lt),ve(a,2))}),jP=De(function(i){var a=Rn(i);return a=typeof a=="function"?a:t,Il(zr(i,lt),t,a)}),FP=De(Vl);function $P(i,a){return Wb(i||[],a||[],sa)}function VP(i,a){return Wb(i||[],a||[],la)}var WP=De(function(i){var a=i.length,u=a>1?i[a-1]:t;return u=typeof u=="function"?(i.pop(),u):t,Ey(i,u)});function Iy(i){var a=g(i);return a.__chain__=!0,a}function UP(i,a){return a(i),i}function su(i,a){return a(i)}var zP=xr(function(i){var a=i.length,u=a?i[0]:0,l=this.__wrapped__,h=function(m){return dl(m,i)};return a>1||this.__actions__.length||!(l instanceof Re)||!Nr(u)?this.thru(h):(l=l.slice(u,+u+(a?1:0)),l.__actions__.push({func:su,args:[h],thisArg:t}),new Cn(l,this.__chain__).thru(function(m){return a&&!m.length&&m.push(t),m}))});function HP(){return Iy(this)}function qP(){return new Cn(this.value(),this.__chain__)}function GP(){this.__values__===t&&(this.__values__=Fy(this.value()));var i=this.__index__>=this.__values__.length,a=i?t:this.__values__[this.__index__++];return{done:i,value:a}}function YP(){return this}function JP(i){for(var a,u=this;u instanceof qs;){var l=by(u);l.__index__=0,l.__values__=t,a?h.__wrapped__=l:a=l;var h=l;u=u.__wrapped__}return h.__wrapped__=i,a}function KP(){var i=this.__wrapped__;if(i instanceof Re){var a=i;return this.__actions__.length&&(a=new Re(this)),a=a.reverse(),a.__actions__.push({func:su,args:[$l],thisArg:t}),new Cn(a,this.__chain__)}return this.thru($l)}function XP(){return Vb(this.__wrapped__,this.__actions__)}var ZP=Qs(function(i,a,u){Ue.call(i,u)?++i[u]:Ar(i,u,1)});function QP(i,a,u){var l=Ie(i)?eb:UD;return u&&Bt(i,a,u)&&(a=t),l(i,ve(a,3))}function eM(i,a){var u=Ie(i)?zr:Eb;return u(i,ve(a,3))}var tM=Zb(yy),nM=Zb(_y);function rM(i,a){return Ct(uu(i,a),1)}function iM(i,a){return Ct(uu(i,a),xt)}function oM(i,a,u){return u=u===t?1:xe(u),Ct(uu(i,a),u)}function Ay(i,a){var u=Ie(i)?Nn:Yr;return u(i,ve(a,3))}function Ty(i,a){var u=Ie(i)?EN:Ob;return u(i,ve(a,3))}var aM=Qs(function(i,a,u){Ue.call(i,u)?i[u].push(a):Ar(i,u,[a])});function sM(i,a,u,l){i=Ut(i)?i:lo(i),u=u&&!l?xe(u):0;var h=i.length;return u<0&&(u=wt(h+u,0)),hu(i)?u<=h&&i.indexOf(a,u)>-1:!!h&&Qi(i,a,u)>-1}var uM=De(function(i,a,u){var l=-1,h=typeof a=="function",m=Ut(i)?M(i.length):[];return Yr(i,function(_){m[++l]=h?an(a,_,u):ca(_,a,u)}),m}),cM=Qs(function(i,a,u){Ar(i,u,a)});function uu(i,a){var u=Ie(i)?rt:Db;return u(i,ve(a,3))}function fM(i,a,u,l){return i==null?[]:(Ie(a)||(a=a==null?[]:[a]),u=l?t:u,Ie(u)||(u=u==null?[]:[u]),Rb(i,a,u))}var lM=Qs(function(i,a,u){i[u?0:1].push(a)},function(){return[[],[]]});function dM(i,a,u){var l=Ie(i)?Qf:ib,h=arguments.length<3;return l(i,ve(a,4),u,h,Yr)}function hM(i,a,u){var l=Ie(i)?IN:ib,h=arguments.length<3;return l(i,ve(a,4),u,h,Ob)}function pM(i,a){var u=Ie(i)?zr:Eb;return u(i,lu(ve(a,3)))}function vM(i){var a=Ie(i)?yb:sC;return a(i)}function gM(i,a,u){(u?Bt(i,a,u):a===t)?a=1:a=xe(a);var l=Ie(i)?jD:uC;return l(i,a)}function mM(i){var a=Ie(i)?FD:fC;return a(i)}function bM(i){if(i==null)return 0;if(Ut(i))return hu(i)?to(i):i.length;var a=Rt(i);return a==Ke||a==bt?i.size:bl(i).length}function yM(i,a,u){var l=Ie(i)?el:lC;return u&&Bt(i,a,u)&&(a=t),l(i,ve(a,3))}var _M=De(function(i,a){if(i==null)return[];var u=a.length;return u>1&&Bt(i,a[0],a[1])?a=[]:u>2&&Bt(a[0],a[1],a[2])&&(a=[a[0]]),Rb(i,Ct(a,1),[])}),cu=eD||function(){return Dt.Date.now()};function wM(i,a){if(typeof a!="function")throw new Dn(c);return i=xe(i),function(){if(--i<1)return a.apply(this,arguments)}}function xy(i,a,u){return a=u?t:a,a=i&&a==null?i.length:a,Tr(i,L,t,t,t,t,a)}function Ny(i,a){var u;if(typeof a!="function")throw new Dn(c);return i=xe(i),function(){return--i>0&&(u=a.apply(this,arguments)),i<=1&&(a=t),u}}var Wl=De(function(i,a,u){var l=A;if(u.length){var h=qr(u,co(Wl));l|=q}return Tr(i,l,a,u,h)}),Dy=De(function(i,a,u){var l=A|x;if(u.length){var h=qr(u,co(Dy));l|=q}return Tr(a,l,i,u,h)});function Cy(i,a,u){a=u?t:a;var l=Tr(i,G,t,t,t,t,t,a);return l.placeholder=Cy.placeholder,l}function Py(i,a,u){a=u?t:a;var l=Tr(i,oe,t,t,t,t,t,a);return l.placeholder=Py.placeholder,l}function My(i,a,u){var l,h,m,_,E,D,$=0,V=!1,z=!1,re=!0;if(typeof i!="function")throw new Dn(c);a=Ln(a)||0,ot(u)&&(V=!!u.leading,z="maxWait"in u,m=z?wt(Ln(u.maxWait)||0,a):m,re="trailing"in u?!!u.trailing:re);function fe(dt){var Xn=l,Pr=h;return l=h=t,$=dt,_=i.apply(Pr,Xn),_}function ge(dt){return $=dt,E=pa(Pe,a),V?fe(dt):_}function Ne(dt){var Xn=dt-D,Pr=dt-$,Zy=a-Xn;return z?Mt(Zy,m-Pr):Zy}function me(dt){var Xn=dt-D,Pr=dt-$;return D===t||Xn>=a||Xn<0||z&&Pr>=m}function Pe(){var dt=cu();if(me(dt))return ke(dt);E=pa(Pe,Ne(dt))}function ke(dt){return E=t,re&&l?fe(dt):(l=h=t,_)}function fn(){E!==t&&Ub(E),$=0,l=D=h=E=t}function jt(){return E===t?_:ke(cu())}function ln(){var dt=cu(),Xn=me(dt);if(l=arguments,h=this,D=dt,Xn){if(E===t)return ge(D);if(z)return Ub(E),E=pa(Pe,a),fe(D)}return E===t&&(E=pa(Pe,a)),_}return ln.cancel=fn,ln.flush=jt,ln}var SM=De(function(i,a){return Sb(i,1,a)}),OM=De(function(i,a,u){return Sb(i,Ln(a)||0,u)});function EM(i){return Tr(i,ae)}function fu(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Dn(c);var u=function(){var l=arguments,h=a?a.apply(this,l):l[0],m=u.cache;if(m.has(h))return m.get(h);var _=i.apply(this,l);return u.cache=m.set(h,_)||m,_};return u.cache=new(fu.Cache||Ir),u}fu.Cache=Ir;function lu(i){if(typeof i!="function")throw new Dn(c);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function IM(i){return Ny(2,i)}var AM=dC(function(i,a){a=a.length==1&&Ie(a[0])?rt(a[0],sn(ve())):rt(Ct(a,1),sn(ve()));var u=a.length;return De(function(l){for(var h=-1,m=Mt(l.length,u);++h<m;)l[h]=a[h].call(this,l[h]);return an(i,this,l)})}),Ul=De(function(i,a){var u=qr(a,co(Ul));return Tr(i,q,t,a,u)}),Ry=De(function(i,a){var u=qr(a,co(Ry));return Tr(i,ye,t,a,u)}),TM=xr(function(i,a){return Tr(i,F,t,t,t,a)});function xM(i,a){if(typeof i!="function")throw new Dn(c);return a=a===t?a:xe(a),De(i,a)}function NM(i,a){if(typeof i!="function")throw new Dn(c);return a=a==null?0:wt(xe(a),0),De(function(u){var l=u[a],h=Xr(u,0,a);return l&&Hr(h,l),an(i,this,h)})}function DM(i,a,u){var l=!0,h=!0;if(typeof i!="function")throw new Dn(c);return ot(u)&&(l="leading"in u?!!u.leading:l,h="trailing"in u?!!u.trailing:h),My(i,a,{leading:l,maxWait:a,trailing:h})}function CM(i){return xy(i,1)}function PM(i,a){return Ul(Tl(a),i)}function MM(){if(!arguments.length)return[];var i=arguments[0];return Ie(i)?i:[i]}function RM(i){return Pn(i,y)}function LM(i,a){return a=typeof a=="function"?a:t,Pn(i,y,a)}function kM(i){return Pn(i,b|y)}function BM(i,a){return a=typeof a=="function"?a:t,Pn(i,b|y,a)}function jM(i,a){return a==null||wb(i,a,Ot(a))}function Kn(i,a){return i===a||i!==i&&a!==a}var FM=ru(vl),$M=ru(function(i,a){return i>=a}),Ai=Tb((function(){return arguments})())?Tb:function(i){return st(i)&&Ue.call(i,"callee")&&!hb.call(i,"callee")},Ie=M.isArray,VM=Ym?sn(Ym):JD;function Ut(i){return i!=null&&du(i.length)&&!Dr(i)}function lt(i){return st(i)&&Ut(i)}function WM(i){return i===!0||i===!1||st(i)&&kt(i)==$t}var Zr=nD||ed,UM=Jm?sn(Jm):KD;function zM(i){return st(i)&&i.nodeType===1&&!va(i)}function HM(i){if(i==null)return!0;if(Ut(i)&&(Ie(i)||typeof i=="string"||typeof i.splice=="function"||Zr(i)||fo(i)||Ai(i)))return!i.length;var a=Rt(i);if(a==Ke||a==bt)return!i.size;if(ha(i))return!bl(i).length;for(var u in i)if(Ue.call(i,u))return!1;return!0}function qM(i,a){return fa(i,a)}function GM(i,a,u){u=typeof u=="function"?u:t;var l=u?u(i,a):t;return l===t?fa(i,a,t,u):!!l}function zl(i){if(!st(i))return!1;var a=kt(i);return a==pt||a==Sr||typeof i.message=="string"&&typeof i.name=="string"&&!va(i)}function YM(i){return typeof i=="number"&&vb(i)}function Dr(i){if(!ot(i))return!1;var a=kt(i);return a==In||a==An||a==ir||a==Gn}function Ly(i){return typeof i=="number"&&i==xe(i)}function du(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ue}function ot(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function st(i){return i!=null&&typeof i=="object"}var ky=Km?sn(Km):ZD;function JM(i,a){return i===a||ml(i,a,Rl(a))}function KM(i,a,u){return u=typeof u=="function"?u:t,ml(i,a,Rl(a),u)}function XM(i){return By(i)&&i!=+i}function ZM(i){if(LC(i))throw new Oe(s);return xb(i)}function QM(i){return i===null}function e2(i){return i==null}function By(i){return typeof i=="number"||st(i)&&kt(i)==on}function va(i){if(!st(i)||kt(i)!=at)return!1;var a=Fs(i);if(a===null)return!0;var u=Ue.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&Ls.call(u)==KN}var Hl=Xm?sn(Xm):QD;function t2(i){return Ly(i)&&i>=-ue&&i<=ue}var jy=Zm?sn(Zm):eC;function hu(i){return typeof i=="string"||!Ie(i)&&st(i)&&kt(i)==St}function cn(i){return typeof i=="symbol"||st(i)&&kt(i)==P}var fo=Qm?sn(Qm):tC;function n2(i){return i===t}function r2(i){return st(i)&&Rt(i)==U}function i2(i){return st(i)&&kt(i)==ee}var o2=ru(yl),a2=ru(function(i,a){return i<=a});function Fy(i){if(!i)return[];if(Ut(i))return hu(i)?Yn(i):Wt(i);if(na&&i[na])return jN(i[na]());var a=Rt(i),u=a==Ke?al:a==bt?Ps:lo;return u(i)}function Cr(i){if(!i)return i===0?i:0;if(i=Ln(i),i===xt||i===-xt){var a=i<0?-1:1;return a*nn}return i===i?i:0}function xe(i){var a=Cr(i),u=a%1;return a===a?u?a-u:a:0}function $y(i){return i?Si(xe(i),0,Le):0}function Ln(i){if(typeof i=="number")return i;if(cn(i))return Pt;if(ot(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=ot(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=ob(i);var u=Vx.test(i);return u||Ux.test(i)?wN(i.slice(2),u?2:8):$x.test(i)?Pt:+i}function Vy(i){return ar(i,zt(i))}function s2(i){return i?Si(xe(i),-ue,ue):i===0?i:0}function ze(i){return i==null?"":un(i)}var u2=so(function(i,a){if(ha(a)||Ut(a)){ar(a,Ot(a),i);return}for(var u in a)Ue.call(a,u)&&sa(i,u,a[u])}),Wy=so(function(i,a){ar(a,zt(a),i)}),pu=so(function(i,a,u,l){ar(a,zt(a),i,l)}),c2=so(function(i,a,u,l){ar(a,Ot(a),i,l)}),f2=xr(dl);function l2(i,a){var u=ao(i);return a==null?u:_b(u,a)}var d2=De(function(i,a){i=Ye(i);var u=-1,l=a.length,h=l>2?a[2]:t;for(h&&Bt(a[0],a[1],h)&&(l=1);++u<l;)for(var m=a[u],_=zt(m),E=-1,D=_.length;++E<D;){var $=_[E],V=i[$];(V===t||Kn(V,ro[$])&&!Ue.call(i,$))&&(i[$]=m[$])}return i}),h2=De(function(i){return i.push(t,oy),an(Uy,t,i)});function p2(i,a){return tb(i,ve(a,3),or)}function v2(i,a){return tb(i,ve(a,3),pl)}function g2(i,a){return i==null?i:hl(i,ve(a,3),zt)}function m2(i,a){return i==null?i:Ib(i,ve(a,3),zt)}function b2(i,a){return i&&or(i,ve(a,3))}function y2(i,a){return i&&pl(i,ve(a,3))}function _2(i){return i==null?[]:Js(i,Ot(i))}function w2(i){return i==null?[]:Js(i,zt(i))}function ql(i,a,u){var l=i==null?t:Oi(i,a);return l===t?u:l}function S2(i,a){return i!=null&&uy(i,a,HD)}function Gl(i,a){return i!=null&&uy(i,a,qD)}var O2=ey(function(i,a,u){a!=null&&typeof a.toString!="function"&&(a=ks.call(a)),i[a]=u},Jl(Ht)),E2=ey(function(i,a,u){a!=null&&typeof a.toString!="function"&&(a=ks.call(a)),Ue.call(i,a)?i[a].push(u):i[a]=[u]},ve),I2=De(ca);function Ot(i){return Ut(i)?bb(i):bl(i)}function zt(i){return Ut(i)?bb(i,!0):nC(i)}function A2(i,a){var u={};return a=ve(a,3),or(i,function(l,h,m){Ar(u,a(l,h,m),l)}),u}function T2(i,a){var u={};return a=ve(a,3),or(i,function(l,h,m){Ar(u,h,a(l,h,m))}),u}var x2=so(function(i,a,u){Ks(i,a,u)}),Uy=so(function(i,a,u,l){Ks(i,a,u,l)}),N2=xr(function(i,a){var u={};if(i==null)return u;var l=!1;a=rt(a,function(m){return m=Kr(m,i),l||(l=m.length>1),m}),ar(i,Pl(i),u),l&&(u=Pn(u,b|w|y,OC));for(var h=a.length;h--;)El(u,a[h]);return u});function D2(i,a){return zy(i,lu(ve(a)))}var C2=xr(function(i,a){return i==null?{}:iC(i,a)});function zy(i,a){if(i==null)return{};var u=rt(Pl(i),function(l){return[l]});return a=ve(a),Lb(i,u,function(l,h){return a(l,h[0])})}function P2(i,a,u){a=Kr(a,i);var l=-1,h=a.length;for(h||(h=1,i=t);++l<h;){var m=i==null?t:i[sr(a[l])];m===t&&(l=h,m=u),i=Dr(m)?m.call(i):m}return i}function M2(i,a,u){return i==null?i:la(i,a,u)}function R2(i,a,u,l){return l=typeof l=="function"?l:t,i==null?i:la(i,a,u,l)}var Hy=ry(Ot),qy=ry(zt);function L2(i,a,u){var l=Ie(i),h=l||Zr(i)||fo(i);if(a=ve(a,4),u==null){var m=i&&i.constructor;h?u=l?new m:[]:ot(i)?u=Dr(m)?ao(Fs(i)):{}:u={}}return(h?Nn:or)(i,function(_,E,D){return a(u,_,E,D)}),u}function k2(i,a){return i==null?!0:El(i,a)}function B2(i,a,u){return i==null?i:$b(i,a,Tl(u))}function j2(i,a,u,l){return l=typeof l=="function"?l:t,i==null?i:$b(i,a,Tl(u),l)}function lo(i){return i==null?[]:ol(i,Ot(i))}function F2(i){return i==null?[]:ol(i,zt(i))}function $2(i,a,u){return u===t&&(u=a,a=t),u!==t&&(u=Ln(u),u=u===u?u:0),a!==t&&(a=Ln(a),a=a===a?a:0),Si(Ln(i),a,u)}function V2(i,a,u){return a=Cr(a),u===t?(u=a,a=0):u=Cr(u),i=Ln(i),GD(i,a,u)}function W2(i,a,u){if(u&&typeof u!="boolean"&&Bt(i,a,u)&&(a=u=t),u===t&&(typeof a=="boolean"?(u=a,a=t):typeof i=="boolean"&&(u=i,i=t)),i===t&&a===t?(i=0,a=1):(i=Cr(i),a===t?(a=i,i=0):a=Cr(a)),i>a){var l=i;i=a,a=l}if(u||i%1||a%1){var h=gb();return Mt(i+h*(a-i+_N("1e-"+((h+"").length-1))),a)}return wl(i,a)}var U2=uo(function(i,a,u){return a=a.toLowerCase(),i+(u?Gy(a):a)});function Gy(i){return Yl(ze(i).toLowerCase())}function Yy(i){return i=ze(i),i&&i.replace(Hx,MN).replace(fN,"")}function z2(i,a,u){i=ze(i),a=un(a);var l=i.length;u=u===t?l:Si(xe(u),0,l);var h=u;return u-=a.length,u>=0&&i.slice(u,h)==a}function H2(i){return i=ze(i),i&&Ee.test(i)?i.replace(te,RN):i}function q2(i){return i=ze(i),i&&zf.test(i)?i.replace(Zo,"\\$&"):i}var G2=uo(function(i,a,u){return i+(u?"-":"")+a.toLowerCase()}),Y2=uo(function(i,a,u){return i+(u?" ":"")+a.toLowerCase()}),J2=Xb("toLowerCase");function K2(i,a,u){i=ze(i),a=xe(a);var l=a?to(i):0;if(!a||l>=a)return i;var h=(a-l)/2;return nu(Us(h),u)+i+nu(Ws(h),u)}function X2(i,a,u){i=ze(i),a=xe(a);var l=a?to(i):0;return a&&l<a?i+nu(a-l,u):i}function Z2(i,a,u){i=ze(i),a=xe(a);var l=a?to(i):0;return a&&l<a?nu(a-l,u)+i:i}function Q2(i,a,u){return u||a==null?a=0:a&&(a=+a),aD(ze(i).replace(Or,""),a||0)}function eR(i,a,u){return(u?Bt(i,a,u):a===t)?a=1:a=xe(a),Sl(ze(i),a)}function tR(){var i=arguments,a=ze(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var nR=uo(function(i,a,u){return i+(u?"_":"")+a.toLowerCase()});function rR(i,a,u){return u&&typeof u!="number"&&Bt(i,a,u)&&(a=u=t),u=u===t?Le:u>>>0,u?(i=ze(i),i&&(typeof a=="string"||a!=null&&!Hl(a))&&(a=un(a),!a&&eo(i))?Xr(Yn(i),0,u):i.split(a,u)):[]}var iR=uo(function(i,a,u){return i+(u?" ":"")+Yl(a)});function oR(i,a,u){return i=ze(i),u=u==null?0:Si(xe(u),0,i.length),a=un(a),i.slice(u,u+a.length)==a}function aR(i,a,u){var l=g.templateSettings;u&&Bt(i,a,u)&&(a=t),i=ze(i),a=pu({},a,l,iy);var h=pu({},a.imports,l.imports,iy),m=Ot(h),_=ol(h,m),E,D,$=0,V=a.interpolate||Ts,z="__p += '",re=sl((a.escape||Ts).source+"|"+V.source+"|"+(V===yt?Fx:Ts).source+"|"+(a.evaluate||Ts).source+"|$","g"),fe="//# sourceURL="+(Ue.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vN+"]")+`
|
|
51
|
-
`;i.replace(re,function(me,Pe,ke,fn,jt,ln){return ke||(ke=fn),z+=i.slice($,ln).replace(qx,LN),Pe&&(E=!0,z+=`' +
|
|
52
|
-
__e(`+Pe+`) +
|
|
53
|
-
'`),jt&&(D=!0,z+=`';
|
|
54
|
-
`+jt+`;
|
|
55
|
-
__p += '`),ke&&(z+=`' +
|
|
56
|
-
((__t = (`+ke+`)) == null ? '' : __t) +
|
|
57
|
-
'`),$=ln+me.length,me}),z+=`';
|
|
58
|
-
`;var ge=Ue.call(a,"variable")&&a.variable;if(!ge)z=`with (obj) {
|
|
59
|
-
`+z+`
|
|
60
|
-
}
|
|
61
|
-
`;else if(Bx.test(ge))throw new Oe(f);z=(D?z.replace(Me,""):z).replace(ne,"$1").replace(Y,"$1;"),z="function("+(ge||"obj")+`) {
|
|
62
|
-
`+(ge?"":`obj || (obj = {});
|
|
63
|
-
`)+"var __t, __p = ''"+(E?", __e = _.escape":"")+(D?`, __j = Array.prototype.join;
|
|
1
|
+
(function(he,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("inversify"),require("mobx"),require("inversify-react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","inversify","mobx","inversify-react","react/jsx-runtime","react-dom"],A):(he=typeof globalThis<"u"?globalThis:he||self,A(he.JustLayout={},he.React,he.inversify,he.mobx,he.inversifyReact,he.jsxRuntime,he.ReactDOM))})(this,(function(he,A,oi,mr,Tg,$,yr){"use strict";function Pu(i){return JSON.stringify(Na(i))}function Na(i){return Array.isArray(i)?i.map(Na):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).sort((n,r)=>n[0].localeCompare(r[0])).map(([n,r])=>[n,Na(r)])):i}const Wt={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutStoreCacheMap:Symbol.for("JustLayoutStoreCacheMap"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function br(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Sr={exports:{}};var xg=Sr.exports,Lu;function Ig(){return Lu||(Lu=1,(function(i,n){(function(){var r,o="4.17.23",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",d="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,S="__lodash_placeholder__",w=1,O=2,y=4,E=1,_=2,I=1,C=2,F=4,U=8,V=16,B=32,ue=64,N=128,L=256,j=512,ee=30,Y="...",ae=800,X=16,We=1,Je=2,Ve=3,Ot=1/0,He=9007199254740991,gs=17976931348623157e292,Dt=NaN,rt=4294967295,Ri=rt-1,Wi=rt>>>1,Mr=[["ary",N],["bind",I],["bindKey",C],["curry",U],["curryRight",V],["flip",j],["partial",B],["partialRight",ue],["rearg",L]],qt="[object Arguments]",En="[object Array]",kr="[object AsyncFunction]",Tn="[object Boolean]",sn="[object Date]",Fr="[object DOMException]",Xn="[object Error]",Kn="[object Function]",Bi="[object GeneratorFunction]",De="[object Map]",un="[object Number]",$i="[object Null]",it="[object Object]",ze="[object Promise]",Zn="[object Proxy]",Ae="[object RegExp]",Xe="[object Set]",ln="[object String]",Be="[object Symbol]",ps="[object Undefined]",xn="[object WeakMap]",vs="[object WeakSet]",In="[object ArrayBuffer]",je="[object DataView]",Qn="[object Float32Array]",Rr="[object Float64Array]",On="[object Int8Array]",Dn="[object Int16Array]",Wr="[object Int32Array]",Br="[object Uint8Array]",er="[object Uint8ClampedArray]",$r="[object Uint16Array]",Ur="[object Uint32Array]",Ui=/\b__p \+= '';/g,ce=/\b(__p \+=) '' \+/g,Le=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ke=/&(?:amp|lt|gt|quot|#39);/g,at=/[&<>"']/g,xe=RegExp(Ke.source),tr=RegExp(at.source),ms=/<%-([\s\S]+?)%>/g,ys=/<%([\s\S]+?)%>/g,An=/<%=([\s\S]+?)%>/g,bs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ss=/^\w*$/,Hi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hr=/[\\^$.*+?()[\]{}|]/g,ws=RegExp(Hr.source),Gt=/^\s+/,zr=/\s/,jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nr=/\{\n\/\* \[wrapped with (.+)\] \*/,Q1=/,? & /,eS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tS=/[()=,{}\[\]\/\s]/,nS=/\\(\\)?/g,rS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zc=/\w*$/,iS=/^[-+]0x[0-9a-f]+$/i,aS=/^0b[01]+$/i,oS=/^\[object .+?Constructor\]$/,sS=/^0o[0-7]+$/i,uS=/^(?:0|[1-9]\d*)$/,lS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zi=/($^)/,fS=/['\n\r\u2028\u2029\\]/g,ji="\\ud800-\\udfff",cS="\\u0300-\\u036f",dS="\\ufe20-\\ufe2f",hS="\\u20d0-\\u20ff",Qc=cS+dS+hS,ed="\\u2700-\\u27bf",td="a-z\\xdf-\\xf6\\xf8-\\xff",gS="\\xac\\xb1\\xd7\\xf7",pS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vS="\\u2000-\\u206f",mS=" \\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",nd="A-Z\\xc0-\\xd6\\xd8-\\xde",rd="\\ufe0e\\ufe0f",id=gS+pS+vS+mS,_s="['’]",yS="["+ji+"]",ad="["+id+"]",qi="["+Qc+"]",od="\\d+",bS="["+ed+"]",sd="["+td+"]",ud="[^"+ji+id+od+ed+td+nd+"]",Es="\\ud83c[\\udffb-\\udfff]",SS="(?:"+qi+"|"+Es+")",ld="[^"+ji+"]",Ts="(?:\\ud83c[\\udde6-\\uddff]){2}",xs="[\\ud800-\\udbff][\\udc00-\\udfff]",rr="["+nd+"]",fd="\\u200d",cd="(?:"+sd+"|"+ud+")",wS="(?:"+rr+"|"+ud+")",dd="(?:"+_s+"(?:d|ll|m|re|s|t|ve))?",hd="(?:"+_s+"(?:D|LL|M|RE|S|T|VE))?",gd=SS+"?",pd="["+rd+"]?",_S="(?:"+fd+"(?:"+[ld,Ts,xs].join("|")+")"+pd+gd+")*",ES="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vd=pd+gd+_S,xS="(?:"+[bS,Ts,xs].join("|")+")"+vd,IS="(?:"+[ld+qi+"?",qi,Ts,xs,yS].join("|")+")",OS=RegExp(_s,"g"),DS=RegExp(qi,"g"),Is=RegExp(Es+"(?="+Es+")|"+IS+vd,"g"),AS=RegExp([rr+"?"+sd+"+"+dd+"(?="+[ad,rr,"$"].join("|")+")",wS+"+"+hd+"(?="+[ad,rr+cd,"$"].join("|")+")",rr+"?"+cd+"+"+dd,rr+"+"+hd,TS,ES,od,xS].join("|"),"g"),CS=RegExp("["+fd+ji+Qc+rd+"]"),NS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,PS=["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"],LS=-1,we={};we[Qn]=we[Rr]=we[On]=we[Dn]=we[Wr]=we[Br]=we[er]=we[$r]=we[Ur]=!0,we[qt]=we[En]=we[In]=we[Tn]=we[je]=we[sn]=we[Xn]=we[Kn]=we[De]=we[un]=we[it]=we[Ae]=we[Xe]=we[ln]=we[xn]=!1;var be={};be[qt]=be[En]=be[In]=be[je]=be[Tn]=be[sn]=be[Qn]=be[Rr]=be[On]=be[Dn]=be[Wr]=be[De]=be[un]=be[it]=be[Ae]=be[Xe]=be[ln]=be[Be]=be[Br]=be[er]=be[$r]=be[Ur]=!0,be[Xn]=be[Kn]=be[xn]=!1;var MS={À:"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"},kS={"&":"&","<":"<",">":">",'"':""","'":"'"},FS={"&":"&","<":"<",">":">",""":'"',"'":"'"},RS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},WS=parseFloat,BS=parseInt,md=typeof nn=="object"&&nn&&nn.Object===Object&&nn,$S=typeof self=="object"&&self&&self.Object===Object&&self,Fe=md||$S||Function("return this")(),Os=n&&!n.nodeType&&n,Cn=Os&&!0&&i&&!i.nodeType&&i,yd=Cn&&Cn.exports===Os,Ds=yd&&md.process,pt=(function(){try{var T=Cn&&Cn.require&&Cn.require("util").types;return T||Ds&&Ds.binding&&Ds.binding("util")}catch{}})(),bd=pt&&pt.isArrayBuffer,Sd=pt&&pt.isDate,wd=pt&&pt.isMap,_d=pt&&pt.isRegExp,Ed=pt&&pt.isSet,Td=pt&&pt.isTypedArray;function ot(T,P,D){switch(D.length){case 0:return T.call(P);case 1:return T.call(P,D[0]);case 2:return T.call(P,D[0],D[1]);case 3:return T.call(P,D[0],D[1],D[2])}return T.apply(P,D)}function US(T,P,D,z){for(var Q=-1,pe=T==null?0:T.length;++Q<pe;){var Ne=T[Q];P(z,Ne,D(Ne),T)}return z}function vt(T,P){for(var D=-1,z=T==null?0:T.length;++D<z&&P(T[D],D,T)!==!1;);return T}function HS(T,P){for(var D=T==null?0:T.length;D--&&P(T[D],D,T)!==!1;);return T}function xd(T,P){for(var D=-1,z=T==null?0:T.length;++D<z;)if(!P(T[D],D,T))return!1;return!0}function fn(T,P){for(var D=-1,z=T==null?0:T.length,Q=0,pe=[];++D<z;){var Ne=T[D];P(Ne,D,T)&&(pe[Q++]=Ne)}return pe}function Gi(T,P){var D=T==null?0:T.length;return!!D&&ir(T,P,0)>-1}function As(T,P,D){for(var z=-1,Q=T==null?0:T.length;++z<Q;)if(D(P,T[z]))return!0;return!1}function _e(T,P){for(var D=-1,z=T==null?0:T.length,Q=Array(z);++D<z;)Q[D]=P(T[D],D,T);return Q}function cn(T,P){for(var D=-1,z=P.length,Q=T.length;++D<z;)T[Q+D]=P[D];return T}function Cs(T,P,D,z){var Q=-1,pe=T==null?0:T.length;for(z&&pe&&(D=T[++Q]);++Q<pe;)D=P(D,T[Q],Q,T);return D}function zS(T,P,D,z){var Q=T==null?0:T.length;for(z&&Q&&(D=T[--Q]);Q--;)D=P(D,T[Q],Q,T);return D}function Ns(T,P){for(var D=-1,z=T==null?0:T.length;++D<z;)if(P(T[D],D,T))return!0;return!1}var jS=Ps("length");function qS(T){return T.split("")}function GS(T){return T.match(eS)||[]}function Id(T,P,D){var z;return D(T,function(Q,pe,Ne){if(P(Q,pe,Ne))return z=pe,!1}),z}function Yi(T,P,D,z){for(var Q=T.length,pe=D+(z?1:-1);z?pe--:++pe<Q;)if(P(T[pe],pe,T))return pe;return-1}function ir(T,P,D){return P===P?iw(T,P,D):Yi(T,Od,D)}function YS(T,P,D,z){for(var Q=D-1,pe=T.length;++Q<pe;)if(z(T[Q],P))return Q;return-1}function Od(T){return T!==T}function Dd(T,P){var D=T==null?0:T.length;return D?Ms(T,P)/D:Dt}function Ps(T){return function(P){return P==null?r:P[T]}}function Ls(T){return function(P){return T==null?r:T[P]}}function Ad(T,P,D,z,Q){return Q(T,function(pe,Ne,ye){D=z?(z=!1,pe):P(D,pe,Ne,ye)}),D}function JS(T,P){var D=T.length;for(T.sort(P);D--;)T[D]=T[D].value;return T}function Ms(T,P){for(var D,z=-1,Q=T.length;++z<Q;){var pe=P(T[z]);pe!==r&&(D=D===r?pe:D+pe)}return D}function ks(T,P){for(var D=-1,z=Array(T);++D<T;)z[D]=P(D);return z}function VS(T,P){return _e(P,function(D){return[D,T[D]]})}function Cd(T){return T&&T.slice(0,Md(T)+1).replace(Gt,"")}function st(T){return function(P){return T(P)}}function Fs(T,P){return _e(P,function(D){return T[D]})}function qr(T,P){return T.has(P)}function Nd(T,P){for(var D=-1,z=T.length;++D<z&&ir(P,T[D],0)>-1;);return D}function Pd(T,P){for(var D=T.length;D--&&ir(P,T[D],0)>-1;);return D}function XS(T,P){for(var D=T.length,z=0;D--;)T[D]===P&&++z;return z}var KS=Ls(MS),ZS=Ls(kS);function QS(T){return"\\"+RS[T]}function ew(T,P){return T==null?r:T[P]}function ar(T){return CS.test(T)}function tw(T){return NS.test(T)}function nw(T){for(var P,D=[];!(P=T.next()).done;)D.push(P.value);return D}function Rs(T){var P=-1,D=Array(T.size);return T.forEach(function(z,Q){D[++P]=[Q,z]}),D}function Ld(T,P){return function(D){return T(P(D))}}function dn(T,P){for(var D=-1,z=T.length,Q=0,pe=[];++D<z;){var Ne=T[D];(Ne===P||Ne===S)&&(T[D]=S,pe[Q++]=D)}return pe}function Ji(T){var P=-1,D=Array(T.size);return T.forEach(function(z){D[++P]=z}),D}function rw(T){var P=-1,D=Array(T.size);return T.forEach(function(z){D[++P]=[z,z]}),D}function iw(T,P,D){for(var z=D-1,Q=T.length;++z<Q;)if(T[z]===P)return z;return-1}function aw(T,P,D){for(var z=D+1;z--;)if(T[z]===P)return z;return z}function or(T){return ar(T)?sw(T):jS(T)}function At(T){return ar(T)?uw(T):qS(T)}function Md(T){for(var P=T.length;P--&&zr.test(T.charAt(P)););return P}var ow=Ls(FS);function sw(T){for(var P=Is.lastIndex=0;Is.test(T);)++P;return P}function uw(T){return T.match(Is)||[]}function lw(T){return T.match(AS)||[]}var fw=(function T(P){P=P==null?Fe:sr.defaults(Fe.Object(),P,sr.pick(Fe,PS));var D=P.Array,z=P.Date,Q=P.Error,pe=P.Function,Ne=P.Math,ye=P.Object,Ws=P.RegExp,cw=P.String,mt=P.TypeError,Vi=D.prototype,dw=pe.prototype,ur=ye.prototype,Xi=P["__core-js_shared__"],Ki=dw.toString,ve=ur.hasOwnProperty,hw=0,kd=(function(){var e=/[^.]+$/.exec(Xi&&Xi.keys&&Xi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Zi=ur.toString,gw=Ki.call(ye),pw=Fe._,vw=Ws("^"+Ki.call(ve).replace(Hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qi=yd?P.Buffer:r,hn=P.Symbol,ea=P.Uint8Array,Fd=Qi?Qi.allocUnsafe:r,ta=Ld(ye.getPrototypeOf,ye),Rd=ye.create,Wd=ur.propertyIsEnumerable,na=Vi.splice,Bd=hn?hn.isConcatSpreadable:r,Gr=hn?hn.iterator:r,Nn=hn?hn.toStringTag:r,ra=(function(){try{var e=Fn(ye,"defineProperty");return e({},"",{}),e}catch{}})(),mw=P.clearTimeout!==Fe.clearTimeout&&P.clearTimeout,yw=z&&z.now!==Fe.Date.now&&z.now,bw=P.setTimeout!==Fe.setTimeout&&P.setTimeout,ia=Ne.ceil,aa=Ne.floor,Bs=ye.getOwnPropertySymbols,Sw=Qi?Qi.isBuffer:r,$d=P.isFinite,ww=Vi.join,_w=Ld(ye.keys,ye),Pe=Ne.max,$e=Ne.min,Ew=z.now,Tw=P.parseInt,Ud=Ne.random,xw=Vi.reverse,$s=Fn(P,"DataView"),Yr=Fn(P,"Map"),Us=Fn(P,"Promise"),lr=Fn(P,"Set"),Jr=Fn(P,"WeakMap"),Vr=Fn(ye,"create"),oa=Jr&&new Jr,fr={},Iw=Rn($s),Ow=Rn(Yr),Dw=Rn(Us),Aw=Rn(lr),Cw=Rn(Jr),sa=hn?hn.prototype:r,Xr=sa?sa.valueOf:r,Hd=sa?sa.toString:r;function h(e){if(Te(e)&&!te(e)&&!(e instanceof fe)){if(e instanceof yt)return e;if(ve.call(e,"__wrapped__"))return zh(e)}return new yt(e)}var cr=(function(){function e(){}return function(t){if(!Ee(t))return{};if(Rd)return Rd(t);e.prototype=t;var a=new e;return e.prototype=r,a}})();function ua(){}function yt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}h.templateSettings={escape:ms,evaluate:ys,interpolate:An,variable:"",imports:{_:h}},h.prototype=ua.prototype,h.prototype.constructor=h,yt.prototype=cr(ua.prototype),yt.prototype.constructor=yt;function fe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rt,this.__views__=[]}function Nw(){var e=new fe(this.__wrapped__);return e.__actions__=Ze(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ze(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ze(this.__views__),e}function Pw(){if(this.__filtered__){var e=new fe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Lw(){var e=this.__wrapped__.value(),t=this.__dir__,a=te(e),u=t<0,c=a?e.length:0,g=q_(0,c,this.__views__),v=g.start,b=g.end,x=b-v,M=u?b:v-1,k=this.__iteratees__,R=k.length,H=0,q=$e(x,this.__takeCount__);if(!a||!u&&c==x&&q==x)return dh(e,this.__actions__);var K=[];e:for(;x--&&H<q;){M+=t;for(var oe=-1,Z=e[M];++oe<R;){var le=k[oe],de=le.iteratee,ft=le.type,Ye=de(Z);if(ft==Je)Z=Ye;else if(!Ye){if(ft==We)continue e;break e}}K[H++]=Z}return K}fe.prototype=cr(ua.prototype),fe.prototype.constructor=fe;function Pn(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function Mw(){this.__data__=Vr?Vr(null):{},this.size=0}function kw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Fw(e){var t=this.__data__;if(Vr){var a=t[e];return a===p?r:a}return ve.call(t,e)?t[e]:r}function Rw(e){var t=this.__data__;return Vr?t[e]!==r:ve.call(t,e)}function Ww(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Vr&&t===r?p:t,this}Pn.prototype.clear=Mw,Pn.prototype.delete=kw,Pn.prototype.get=Fw,Pn.prototype.has=Rw,Pn.prototype.set=Ww;function Yt(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function Bw(){this.__data__=[],this.size=0}function $w(e){var t=this.__data__,a=la(t,e);if(a<0)return!1;var u=t.length-1;return a==u?t.pop():na.call(t,a,1),--this.size,!0}function Uw(e){var t=this.__data__,a=la(t,e);return a<0?r:t[a][1]}function Hw(e){return la(this.__data__,e)>-1}function zw(e,t){var a=this.__data__,u=la(a,e);return u<0?(++this.size,a.push([e,t])):a[u][1]=t,this}Yt.prototype.clear=Bw,Yt.prototype.delete=$w,Yt.prototype.get=Uw,Yt.prototype.has=Hw,Yt.prototype.set=zw;function Jt(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var u=e[t];this.set(u[0],u[1])}}function jw(){this.size=0,this.__data__={hash:new Pn,map:new(Yr||Yt),string:new Pn}}function qw(e){var t=wa(this,e).delete(e);return this.size-=t?1:0,t}function Gw(e){return wa(this,e).get(e)}function Yw(e){return wa(this,e).has(e)}function Jw(e,t){var a=wa(this,e),u=a.size;return a.set(e,t),this.size+=a.size==u?0:1,this}Jt.prototype.clear=jw,Jt.prototype.delete=qw,Jt.prototype.get=Gw,Jt.prototype.has=Yw,Jt.prototype.set=Jw;function Ln(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new Jt;++t<a;)this.add(e[t])}function Vw(e){return this.__data__.set(e,p),this}function Xw(e){return this.__data__.has(e)}Ln.prototype.add=Ln.prototype.push=Vw,Ln.prototype.has=Xw;function Ct(e){var t=this.__data__=new Yt(e);this.size=t.size}function Kw(){this.__data__=new Yt,this.size=0}function Zw(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function Qw(e){return this.__data__.get(e)}function e_(e){return this.__data__.has(e)}function t_(e,t){var a=this.__data__;if(a instanceof Yt){var u=a.__data__;if(!Yr||u.length<s-1)return u.push([e,t]),this.size=++a.size,this;a=this.__data__=new Jt(u)}return a.set(e,t),this.size=a.size,this}Ct.prototype.clear=Kw,Ct.prototype.delete=Zw,Ct.prototype.get=Qw,Ct.prototype.has=e_,Ct.prototype.set=t_;function zd(e,t){var a=te(e),u=!a&&Wn(e),c=!a&&!u&&yn(e),g=!a&&!u&&!c&&pr(e),v=a||u||c||g,b=v?ks(e.length,cw):[],x=b.length;for(var M in e)(t||ve.call(e,M))&&!(v&&(M=="length"||c&&(M=="offset"||M=="parent")||g&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||Zt(M,x)))&&b.push(M);return b}function jd(e){var t=e.length;return t?e[Zs(0,t-1)]:r}function n_(e,t){return _a(Ze(e),Mn(t,0,e.length))}function r_(e){return _a(Ze(e))}function Hs(e,t,a){(a!==r&&!Nt(e[t],a)||a===r&&!(t in e))&&Vt(e,t,a)}function Kr(e,t,a){var u=e[t];(!(ve.call(e,t)&&Nt(u,a))||a===r&&!(t in e))&&Vt(e,t,a)}function la(e,t){for(var a=e.length;a--;)if(Nt(e[a][0],t))return a;return-1}function i_(e,t,a,u){return gn(e,function(c,g,v){t(u,c,a(c),v)}),u}function qd(e,t){return e&&Ft(t,Me(t),e)}function a_(e,t){return e&&Ft(t,et(t),e)}function Vt(e,t,a){t=="__proto__"&&ra?ra(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function zs(e,t){for(var a=-1,u=t.length,c=D(u),g=e==null;++a<u;)c[a]=g?r:Eu(e,t[a]);return c}function Mn(e,t,a){return e===e&&(a!==r&&(e=e<=a?e:a),t!==r&&(e=e>=t?e:t)),e}function bt(e,t,a,u,c,g){var v,b=t&w,x=t&O,M=t&y;if(a&&(v=c?a(e,u,c,g):a(e)),v!==r)return v;if(!Ee(e))return e;var k=te(e);if(k){if(v=Y_(e),!b)return Ze(e,v)}else{var R=Ue(e),H=R==Kn||R==Bi;if(yn(e))return ph(e,b);if(R==it||R==qt||H&&!c){if(v=x||H?{}:Mh(e),!b)return x?F_(e,a_(v,e)):k_(e,qd(v,e))}else{if(!be[R])return c?e:{};v=J_(e,R,b)}}g||(g=new Ct);var q=g.get(e);if(q)return q;g.set(e,v),lg(e)?e.forEach(function(Z){v.add(bt(Z,t,a,Z,e,g))}):sg(e)&&e.forEach(function(Z,le){v.set(le,bt(Z,t,a,le,e,g))});var K=M?x?lu:uu:x?et:Me,oe=k?r:K(e);return vt(oe||e,function(Z,le){oe&&(le=Z,Z=e[le]),Kr(v,le,bt(Z,t,a,le,e,g))}),v}function o_(e){var t=Me(e);return function(a){return Gd(a,e,t)}}function Gd(e,t,a){var u=a.length;if(e==null)return!u;for(e=ye(e);u--;){var c=a[u],g=t[c],v=e[c];if(v===r&&!(c in e)||!g(v))return!1}return!0}function Yd(e,t,a){if(typeof e!="function")throw new mt(f);return ii(function(){e.apply(r,a)},t)}function Zr(e,t,a,u){var c=-1,g=Gi,v=!0,b=e.length,x=[],M=t.length;if(!b)return x;a&&(t=_e(t,st(a))),u?(g=As,v=!1):t.length>=s&&(g=qr,v=!1,t=new Ln(t));e:for(;++c<b;){var k=e[c],R=a==null?k:a(k);if(k=u||k!==0?k:0,v&&R===R){for(var H=M;H--;)if(t[H]===R)continue e;x.push(k)}else g(t,R,u)||x.push(k)}return x}var gn=Sh(kt),Jd=Sh(qs,!0);function s_(e,t){var a=!0;return gn(e,function(u,c,g){return a=!!t(u,c,g),a}),a}function fa(e,t,a){for(var u=-1,c=e.length;++u<c;){var g=e[u],v=t(g);if(v!=null&&(b===r?v===v&&!lt(v):a(v,b)))var b=v,x=g}return x}function u_(e,t,a,u){var c=e.length;for(a=ie(a),a<0&&(a=-a>c?0:c+a),u=u===r||u>c?c:ie(u),u<0&&(u+=c),u=a>u?0:cg(u);a<u;)e[a++]=t;return e}function Vd(e,t){var a=[];return gn(e,function(u,c,g){t(u,c,g)&&a.push(u)}),a}function Re(e,t,a,u,c){var g=-1,v=e.length;for(a||(a=X_),c||(c=[]);++g<v;){var b=e[g];t>0&&a(b)?t>1?Re(b,t-1,a,u,c):cn(c,b):u||(c[c.length]=b)}return c}var js=wh(),Xd=wh(!0);function kt(e,t){return e&&js(e,t,Me)}function qs(e,t){return e&&Xd(e,t,Me)}function ca(e,t){return fn(t,function(a){return Qt(e[a])})}function kn(e,t){t=vn(t,e);for(var a=0,u=t.length;e!=null&&a<u;)e=e[Rt(t[a++])];return a&&a==u?e:r}function Kd(e,t,a){var u=t(e);return te(e)?u:cn(u,a(e))}function qe(e){return e==null?e===r?ps:$i:Nn&&Nn in ye(e)?j_(e):rE(e)}function Gs(e,t){return e>t}function l_(e,t){return e!=null&&ve.call(e,t)}function f_(e,t){return e!=null&&t in ye(e)}function c_(e,t,a){return e>=$e(t,a)&&e<Pe(t,a)}function Ys(e,t,a){for(var u=a?As:Gi,c=e[0].length,g=e.length,v=g,b=D(g),x=1/0,M=[];v--;){var k=e[v];v&&t&&(k=_e(k,st(t))),x=$e(k.length,x),b[v]=!a&&(t||c>=120&&k.length>=120)?new Ln(v&&k):r}k=e[0];var R=-1,H=b[0];e:for(;++R<c&&M.length<x;){var q=k[R],K=t?t(q):q;if(q=a||q!==0?q:0,!(H?qr(H,K):u(M,K,a))){for(v=g;--v;){var oe=b[v];if(!(oe?qr(oe,K):u(e[v],K,a)))continue e}H&&H.push(K),M.push(q)}}return M}function d_(e,t,a,u){return kt(e,function(c,g,v){t(u,a(c),g,v)}),u}function Qr(e,t,a){t=vn(t,e),e=Wh(e,t);var u=e==null?e:e[Rt(wt(t))];return u==null?r:ot(u,e,a)}function Zd(e){return Te(e)&&qe(e)==qt}function h_(e){return Te(e)&&qe(e)==In}function g_(e){return Te(e)&&qe(e)==sn}function ei(e,t,a,u,c){return e===t?!0:e==null||t==null||!Te(e)&&!Te(t)?e!==e&&t!==t:p_(e,t,a,u,ei,c)}function p_(e,t,a,u,c,g){var v=te(e),b=te(t),x=v?En:Ue(e),M=b?En:Ue(t);x=x==qt?it:x,M=M==qt?it:M;var k=x==it,R=M==it,H=x==M;if(H&&yn(e)){if(!yn(t))return!1;v=!0,k=!1}if(H&&!k)return g||(g=new Ct),v||pr(e)?Nh(e,t,a,u,c,g):H_(e,t,x,a,u,c,g);if(!(a&E)){var q=k&&ve.call(e,"__wrapped__"),K=R&&ve.call(t,"__wrapped__");if(q||K){var oe=q?e.value():e,Z=K?t.value():t;return g||(g=new Ct),c(oe,Z,a,u,g)}}return H?(g||(g=new Ct),z_(e,t,a,u,c,g)):!1}function v_(e){return Te(e)&&Ue(e)==De}function Js(e,t,a,u){var c=a.length,g=c,v=!u;if(e==null)return!g;for(e=ye(e);c--;){var b=a[c];if(v&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++c<g;){b=a[c];var x=b[0],M=e[x],k=b[1];if(v&&b[2]){if(M===r&&!(x in e))return!1}else{var R=new Ct;if(u)var H=u(M,k,x,e,t,R);if(!(H===r?ei(k,M,E|_,u,R):H))return!1}}return!0}function Qd(e){if(!Ee(e)||Z_(e))return!1;var t=Qt(e)?vw:oS;return t.test(Rn(e))}function m_(e){return Te(e)&&qe(e)==Ae}function y_(e){return Te(e)&&Ue(e)==Xe}function b_(e){return Te(e)&&Da(e.length)&&!!we[qe(e)]}function eh(e){return typeof e=="function"?e:e==null?tt:typeof e=="object"?te(e)?rh(e[0],e[1]):nh(e):_g(e)}function Vs(e){if(!ri(e))return _w(e);var t=[];for(var a in ye(e))ve.call(e,a)&&a!="constructor"&&t.push(a);return t}function S_(e){if(!Ee(e))return nE(e);var t=ri(e),a=[];for(var u in e)u=="constructor"&&(t||!ve.call(e,u))||a.push(u);return a}function Xs(e,t){return e<t}function th(e,t){var a=-1,u=Qe(e)?D(e.length):[];return gn(e,function(c,g,v){u[++a]=t(c,g,v)}),u}function nh(e){var t=cu(e);return t.length==1&&t[0][2]?Fh(t[0][0],t[0][1]):function(a){return a===e||Js(a,e,t)}}function rh(e,t){return hu(e)&&kh(t)?Fh(Rt(e),t):function(a){var u=Eu(a,e);return u===r&&u===t?Tu(a,e):ei(t,u,E|_)}}function da(e,t,a,u,c){e!==t&&js(t,function(g,v){if(c||(c=new Ct),Ee(g))w_(e,t,v,a,da,u,c);else{var b=u?u(pu(e,v),g,v+"",e,t,c):r;b===r&&(b=g),Hs(e,v,b)}},et)}function w_(e,t,a,u,c,g,v){var b=pu(e,a),x=pu(t,a),M=v.get(x);if(M){Hs(e,a,M);return}var k=g?g(b,x,a+"",e,t,v):r,R=k===r;if(R){var H=te(x),q=!H&&yn(x),K=!H&&!q&&pr(x);k=x,H||q||K?te(b)?k=b:Ie(b)?k=Ze(b):q?(R=!1,k=ph(x,!0)):K?(R=!1,k=vh(x,!0)):k=[]:ai(x)||Wn(x)?(k=b,Wn(b)?k=dg(b):(!Ee(b)||Qt(b))&&(k=Mh(x))):R=!1}R&&(v.set(x,k),c(k,x,u,g,v),v.delete(x)),Hs(e,a,k)}function ih(e,t){var a=e.length;if(a)return t+=t<0?a:0,Zt(t,a)?e[t]:r}function ah(e,t,a){t.length?t=_e(t,function(g){return te(g)?function(v){return kn(v,g.length===1?g[0]:g)}:g}):t=[tt];var u=-1;t=_e(t,st(J()));var c=th(e,function(g,v,b){var x=_e(t,function(M){return M(g)});return{criteria:x,index:++u,value:g}});return JS(c,function(g,v){return M_(g,v,a)})}function __(e,t){return oh(e,t,function(a,u){return Tu(e,u)})}function oh(e,t,a){for(var u=-1,c=t.length,g={};++u<c;){var v=t[u],b=kn(e,v);a(b,v)&&ti(g,vn(v,e),b)}return g}function E_(e){return function(t){return kn(t,e)}}function Ks(e,t,a,u){var c=u?YS:ir,g=-1,v=t.length,b=e;for(e===t&&(t=Ze(t)),a&&(b=_e(e,st(a)));++g<v;)for(var x=0,M=t[g],k=a?a(M):M;(x=c(b,k,x,u))>-1;)b!==e&&na.call(b,x,1),na.call(e,x,1);return e}function sh(e,t){for(var a=e?t.length:0,u=a-1;a--;){var c=t[a];if(a==u||c!==g){var g=c;Zt(c)?na.call(e,c,1):tu(e,c)}}return e}function Zs(e,t){return e+aa(Ud()*(t-e+1))}function T_(e,t,a,u){for(var c=-1,g=Pe(ia((t-e)/(a||1)),0),v=D(g);g--;)v[u?g:++c]=e,e+=a;return v}function Qs(e,t){var a="";if(!e||t<1||t>He)return a;do t%2&&(a+=e),t=aa(t/2),t&&(e+=e);while(t);return a}function se(e,t){return vu(Rh(e,t,tt),e+"")}function x_(e){return jd(vr(e))}function I_(e,t){var a=vr(e);return _a(a,Mn(t,0,a.length))}function ti(e,t,a,u){if(!Ee(e))return e;t=vn(t,e);for(var c=-1,g=t.length,v=g-1,b=e;b!=null&&++c<g;){var x=Rt(t[c]),M=a;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=v){var k=b[x];M=u?u(k,x,b):r,M===r&&(M=Ee(k)?k:Zt(t[c+1])?[]:{})}Kr(b,x,M),b=b[x]}return e}var uh=oa?function(e,t){return oa.set(e,t),e}:tt,O_=ra?function(e,t){return ra(e,"toString",{configurable:!0,enumerable:!1,value:Iu(t),writable:!0})}:tt;function D_(e){return _a(vr(e))}function St(e,t,a){var u=-1,c=e.length;t<0&&(t=-t>c?0:c+t),a=a>c?c:a,a<0&&(a+=c),c=t>a?0:a-t>>>0,t>>>=0;for(var g=D(c);++u<c;)g[u]=e[u+t];return g}function A_(e,t){var a;return gn(e,function(u,c,g){return a=t(u,c,g),!a}),!!a}function ha(e,t,a){var u=0,c=e==null?u:e.length;if(typeof t=="number"&&t===t&&c<=Wi){for(;u<c;){var g=u+c>>>1,v=e[g];v!==null&&!lt(v)&&(a?v<=t:v<t)?u=g+1:c=g}return c}return eu(e,t,tt,a)}function eu(e,t,a,u){var c=0,g=e==null?0:e.length;if(g===0)return 0;t=a(t);for(var v=t!==t,b=t===null,x=lt(t),M=t===r;c<g;){var k=aa((c+g)/2),R=a(e[k]),H=R!==r,q=R===null,K=R===R,oe=lt(R);if(v)var Z=u||K;else M?Z=K&&(u||H):b?Z=K&&H&&(u||!q):x?Z=K&&H&&!q&&(u||!oe):q||oe?Z=!1:Z=u?R<=t:R<t;Z?c=k+1:g=k}return $e(g,Ri)}function lh(e,t){for(var a=-1,u=e.length,c=0,g=[];++a<u;){var v=e[a],b=t?t(v):v;if(!a||!Nt(b,x)){var x=b;g[c++]=v===0?0:v}}return g}function fh(e){return typeof e=="number"?e:lt(e)?Dt:+e}function ut(e){if(typeof e=="string")return e;if(te(e))return _e(e,ut)+"";if(lt(e))return Hd?Hd.call(e):"";var t=e+"";return t=="0"&&1/e==-Ot?"-0":t}function pn(e,t,a){var u=-1,c=Gi,g=e.length,v=!0,b=[],x=b;if(a)v=!1,c=As;else if(g>=s){var M=t?null:$_(e);if(M)return Ji(M);v=!1,c=qr,x=new Ln}else x=t?[]:b;e:for(;++u<g;){var k=e[u],R=t?t(k):k;if(k=a||k!==0?k:0,v&&R===R){for(var H=x.length;H--;)if(x[H]===R)continue e;t&&x.push(R),b.push(k)}else c(x,R,a)||(x!==b&&x.push(R),b.push(k))}return b}function tu(e,t){t=vn(t,e);var a=-1,u=t.length;if(!u)return!0;for(var c=e==null||typeof e!="object"&&typeof e!="function";++a<u;){var g=t[a];if(typeof g=="string"){if(g==="__proto__"&&!ve.call(e,"__proto__"))return!1;if(g==="constructor"&&a+1<u&&typeof t[a+1]=="string"&&t[a+1]==="prototype"){if(c&&a===0)continue;return!1}}}var v=Wh(e,t);return v==null||delete v[Rt(wt(t))]}function ch(e,t,a,u){return ti(e,t,a(kn(e,t)),u)}function ga(e,t,a,u){for(var c=e.length,g=u?c:-1;(u?g--:++g<c)&&t(e[g],g,e););return a?St(e,u?0:g,u?g+1:c):St(e,u?g+1:0,u?c:g)}function dh(e,t){var a=e;return a instanceof fe&&(a=a.value()),Cs(t,function(u,c){return c.func.apply(c.thisArg,cn([u],c.args))},a)}function nu(e,t,a){var u=e.length;if(u<2)return u?pn(e[0]):[];for(var c=-1,g=D(u);++c<u;)for(var v=e[c],b=-1;++b<u;)b!=c&&(g[c]=Zr(g[c]||v,e[b],t,a));return pn(Re(g,1),t,a)}function hh(e,t,a){for(var u=-1,c=e.length,g=t.length,v={};++u<c;){var b=u<g?t[u]:r;a(v,e[u],b)}return v}function ru(e){return Ie(e)?e:[]}function iu(e){return typeof e=="function"?e:tt}function vn(e,t){return te(e)?e:hu(e,t)?[e]:Hh(me(e))}var C_=se;function mn(e,t,a){var u=e.length;return a=a===r?u:a,!t&&a>=u?e:St(e,t,a)}var gh=mw||function(e){return Fe.clearTimeout(e)};function ph(e,t){if(t)return e.slice();var a=e.length,u=Fd?Fd(a):new e.constructor(a);return e.copy(u),u}function au(e){var t=new e.constructor(e.byteLength);return new ea(t).set(new ea(e)),t}function N_(e,t){var a=t?au(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}function P_(e){var t=new e.constructor(e.source,Zc.exec(e));return t.lastIndex=e.lastIndex,t}function L_(e){return Xr?ye(Xr.call(e)):{}}function vh(e,t){var a=t?au(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function mh(e,t){if(e!==t){var a=e!==r,u=e===null,c=e===e,g=lt(e),v=t!==r,b=t===null,x=t===t,M=lt(t);if(!b&&!M&&!g&&e>t||g&&v&&x&&!b&&!M||u&&v&&x||!a&&x||!c)return 1;if(!u&&!g&&!M&&e<t||M&&a&&c&&!u&&!g||b&&a&&c||!v&&c||!x)return-1}return 0}function M_(e,t,a){for(var u=-1,c=e.criteria,g=t.criteria,v=c.length,b=a.length;++u<v;){var x=mh(c[u],g[u]);if(x){if(u>=b)return x;var M=a[u];return x*(M=="desc"?-1:1)}}return e.index-t.index}function yh(e,t,a,u){for(var c=-1,g=e.length,v=a.length,b=-1,x=t.length,M=Pe(g-v,0),k=D(x+M),R=!u;++b<x;)k[b]=t[b];for(;++c<v;)(R||c<g)&&(k[a[c]]=e[c]);for(;M--;)k[b++]=e[c++];return k}function bh(e,t,a,u){for(var c=-1,g=e.length,v=-1,b=a.length,x=-1,M=t.length,k=Pe(g-b,0),R=D(k+M),H=!u;++c<k;)R[c]=e[c];for(var q=c;++x<M;)R[q+x]=t[x];for(;++v<b;)(H||c<g)&&(R[q+a[v]]=e[c++]);return R}function Ze(e,t){var a=-1,u=e.length;for(t||(t=D(u));++a<u;)t[a]=e[a];return t}function Ft(e,t,a,u){var c=!a;a||(a={});for(var g=-1,v=t.length;++g<v;){var b=t[g],x=u?u(a[b],e[b],b,a,e):r;x===r&&(x=e[b]),c?Vt(a,b,x):Kr(a,b,x)}return a}function k_(e,t){return Ft(e,du(e),t)}function F_(e,t){return Ft(e,Ph(e),t)}function pa(e,t){return function(a,u){var c=te(a)?US:i_,g=t?t():{};return c(a,e,J(u,2),g)}}function dr(e){return se(function(t,a){var u=-1,c=a.length,g=c>1?a[c-1]:r,v=c>2?a[2]:r;for(g=e.length>3&&typeof g=="function"?(c--,g):r,v&&Ge(a[0],a[1],v)&&(g=c<3?r:g,c=1),t=ye(t);++u<c;){var b=a[u];b&&e(t,b,u,g)}return t})}function Sh(e,t){return function(a,u){if(a==null)return a;if(!Qe(a))return e(a,u);for(var c=a.length,g=t?c:-1,v=ye(a);(t?g--:++g<c)&&u(v[g],g,v)!==!1;);return a}}function wh(e){return function(t,a,u){for(var c=-1,g=ye(t),v=u(t),b=v.length;b--;){var x=v[e?b:++c];if(a(g[x],x,g)===!1)break}return t}}function R_(e,t,a){var u=t&I,c=ni(e);function g(){var v=this&&this!==Fe&&this instanceof g?c:e;return v.apply(u?a:this,arguments)}return g}function _h(e){return function(t){t=me(t);var a=ar(t)?At(t):r,u=a?a[0]:t.charAt(0),c=a?mn(a,1).join(""):t.slice(1);return u[e]()+c}}function hr(e){return function(t){return Cs(Sg(bg(t).replace(OS,"")),e,"")}}function ni(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a=cr(e.prototype),u=e.apply(a,t);return Ee(u)?u:a}}function W_(e,t,a){var u=ni(e);function c(){for(var g=arguments.length,v=D(g),b=g,x=gr(c);b--;)v[b]=arguments[b];var M=g<3&&v[0]!==x&&v[g-1]!==x?[]:dn(v,x);if(g-=M.length,g<a)return Oh(e,t,va,c.placeholder,r,v,M,r,r,a-g);var k=this&&this!==Fe&&this instanceof c?u:e;return ot(k,this,v)}return c}function Eh(e){return function(t,a,u){var c=ye(t);if(!Qe(t)){var g=J(a,3);t=Me(t),a=function(b){return g(c[b],b,c)}}var v=e(t,a,u);return v>-1?c[g?t[v]:v]:r}}function Th(e){return Kt(function(t){var a=t.length,u=a,c=yt.prototype.thru;for(e&&t.reverse();u--;){var g=t[u];if(typeof g!="function")throw new mt(f);if(c&&!v&&Sa(g)=="wrapper")var v=new yt([],!0)}for(u=v?u:a;++u<a;){g=t[u];var b=Sa(g),x=b=="wrapper"?fu(g):r;x&&gu(x[0])&&x[1]==(N|U|B|L)&&!x[4].length&&x[9]==1?v=v[Sa(x[0])].apply(v,x[3]):v=g.length==1&&gu(g)?v[b]():v.thru(g)}return function(){var M=arguments,k=M[0];if(v&&M.length==1&&te(k))return v.plant(k).value();for(var R=0,H=a?t[R].apply(this,M):k;++R<a;)H=t[R].call(this,H);return H}})}function va(e,t,a,u,c,g,v,b,x,M){var k=t&N,R=t&I,H=t&C,q=t&(U|V),K=t&j,oe=H?r:ni(e);function Z(){for(var le=arguments.length,de=D(le),ft=le;ft--;)de[ft]=arguments[ft];if(q)var Ye=gr(Z),ct=XS(de,Ye);if(u&&(de=yh(de,u,c,q)),g&&(de=bh(de,g,v,q)),le-=ct,q&&le<M){var Oe=dn(de,Ye);return Oh(e,t,va,Z.placeholder,a,de,Oe,b,x,M-le)}var Pt=R?a:this,tn=H?Pt[e]:e;return le=de.length,b?de=iE(de,b):K&&le>1&&de.reverse(),k&&x<le&&(de.length=x),this&&this!==Fe&&this instanceof Z&&(tn=oe||ni(tn)),tn.apply(Pt,de)}return Z}function xh(e,t){return function(a,u){return d_(a,e,t(u),{})}}function ma(e,t){return function(a,u){var c;if(a===r&&u===r)return t;if(a!==r&&(c=a),u!==r){if(c===r)return u;typeof a=="string"||typeof u=="string"?(a=ut(a),u=ut(u)):(a=fh(a),u=fh(u)),c=e(a,u)}return c}}function ou(e){return Kt(function(t){return t=_e(t,st(J())),se(function(a){var u=this;return e(t,function(c){return ot(c,u,a)})})})}function ya(e,t){t=t===r?" ":ut(t);var a=t.length;if(a<2)return a?Qs(t,e):t;var u=Qs(t,ia(e/or(t)));return ar(t)?mn(At(u),0,e).join(""):u.slice(0,e)}function B_(e,t,a,u){var c=t&I,g=ni(e);function v(){for(var b=-1,x=arguments.length,M=-1,k=u.length,R=D(k+x),H=this&&this!==Fe&&this instanceof v?g:e;++M<k;)R[M]=u[M];for(;x--;)R[M++]=arguments[++b];return ot(H,c?a:this,R)}return v}function Ih(e){return function(t,a,u){return u&&typeof u!="number"&&Ge(t,a,u)&&(a=u=r),t=en(t),a===r?(a=t,t=0):a=en(a),u=u===r?t<a?1:-1:en(u),T_(t,a,u,e)}}function ba(e){return function(t,a){return typeof t=="string"&&typeof a=="string"||(t=_t(t),a=_t(a)),e(t,a)}}function Oh(e,t,a,u,c,g,v,b,x,M){var k=t&U,R=k?v:r,H=k?r:v,q=k?g:r,K=k?r:g;t|=k?B:ue,t&=~(k?ue:B),t&F||(t&=-4);var oe=[e,t,c,q,R,K,H,b,x,M],Z=a.apply(r,oe);return gu(e)&&Bh(Z,oe),Z.placeholder=u,$h(Z,e,t)}function su(e){var t=Ne[e];return function(a,u){if(a=_t(a),u=u==null?0:$e(ie(u),292),u&&$d(a)){var c=(me(a)+"e").split("e"),g=t(c[0]+"e"+(+c[1]+u));return c=(me(g)+"e").split("e"),+(c[0]+"e"+(+c[1]-u))}return t(a)}}var $_=lr&&1/Ji(new lr([,-0]))[1]==Ot?function(e){return new lr(e)}:Au;function Dh(e){return function(t){var a=Ue(t);return a==De?Rs(t):a==Xe?rw(t):VS(t,e(t))}}function Xt(e,t,a,u,c,g,v,b){var x=t&C;if(!x&&typeof e!="function")throw new mt(f);var M=u?u.length:0;if(M||(t&=-97,u=c=r),v=v===r?v:Pe(ie(v),0),b=b===r?b:ie(b),M-=c?c.length:0,t&ue){var k=u,R=c;u=c=r}var H=x?r:fu(e),q=[e,t,a,u,c,k,R,g,v,b];if(H&&tE(q,H),e=q[0],t=q[1],a=q[2],u=q[3],c=q[4],b=q[9]=q[9]===r?x?0:e.length:Pe(q[9]-M,0),!b&&t&(U|V)&&(t&=-25),!t||t==I)var K=R_(e,t,a);else t==U||t==V?K=W_(e,t,b):(t==B||t==(I|B))&&!c.length?K=B_(e,t,a,u):K=va.apply(r,q);var oe=H?uh:Bh;return $h(oe(K,q),e,t)}function Ah(e,t,a,u){return e===r||Nt(e,ur[a])&&!ve.call(u,a)?t:e}function Ch(e,t,a,u,c,g){return Ee(e)&&Ee(t)&&(g.set(t,e),da(e,t,r,Ch,g),g.delete(t)),e}function U_(e){return ai(e)?r:e}function Nh(e,t,a,u,c,g){var v=a&E,b=e.length,x=t.length;if(b!=x&&!(v&&x>b))return!1;var M=g.get(e),k=g.get(t);if(M&&k)return M==t&&k==e;var R=-1,H=!0,q=a&_?new Ln:r;for(g.set(e,t),g.set(t,e);++R<b;){var K=e[R],oe=t[R];if(u)var Z=v?u(oe,K,R,t,e,g):u(K,oe,R,e,t,g);if(Z!==r){if(Z)continue;H=!1;break}if(q){if(!Ns(t,function(le,de){if(!qr(q,de)&&(K===le||c(K,le,a,u,g)))return q.push(de)})){H=!1;break}}else if(!(K===oe||c(K,oe,a,u,g))){H=!1;break}}return g.delete(e),g.delete(t),H}function H_(e,t,a,u,c,g,v){switch(a){case je:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case In:return!(e.byteLength!=t.byteLength||!g(new ea(e),new ea(t)));case Tn:case sn:case un:return Nt(+e,+t);case Xn:return e.name==t.name&&e.message==t.message;case Ae:case ln:return e==t+"";case De:var b=Rs;case Xe:var x=u&E;if(b||(b=Ji),e.size!=t.size&&!x)return!1;var M=v.get(e);if(M)return M==t;u|=_,v.set(e,t);var k=Nh(b(e),b(t),u,c,g,v);return v.delete(e),k;case Be:if(Xr)return Xr.call(e)==Xr.call(t)}return!1}function z_(e,t,a,u,c,g){var v=a&E,b=uu(e),x=b.length,M=uu(t),k=M.length;if(x!=k&&!v)return!1;for(var R=x;R--;){var H=b[R];if(!(v?H in t:ve.call(t,H)))return!1}var q=g.get(e),K=g.get(t);if(q&&K)return q==t&&K==e;var oe=!0;g.set(e,t),g.set(t,e);for(var Z=v;++R<x;){H=b[R];var le=e[H],de=t[H];if(u)var ft=v?u(de,le,H,t,e,g):u(le,de,H,e,t,g);if(!(ft===r?le===de||c(le,de,a,u,g):ft)){oe=!1;break}Z||(Z=H=="constructor")}if(oe&&!Z){var Ye=e.constructor,ct=t.constructor;Ye!=ct&&"constructor"in e&&"constructor"in t&&!(typeof Ye=="function"&&Ye instanceof Ye&&typeof ct=="function"&&ct instanceof ct)&&(oe=!1)}return g.delete(e),g.delete(t),oe}function Kt(e){return vu(Rh(e,r,Gh),e+"")}function uu(e){return Kd(e,Me,du)}function lu(e){return Kd(e,et,Ph)}var fu=oa?function(e){return oa.get(e)}:Au;function Sa(e){for(var t=e.name+"",a=fr[t],u=ve.call(fr,t)?a.length:0;u--;){var c=a[u],g=c.func;if(g==null||g==e)return c.name}return t}function gr(e){var t=ve.call(h,"placeholder")?h:e;return t.placeholder}function J(){var e=h.iteratee||Ou;return e=e===Ou?eh:e,arguments.length?e(arguments[0],arguments[1]):e}function wa(e,t){var a=e.__data__;return K_(t)?a[typeof t=="string"?"string":"hash"]:a.map}function cu(e){for(var t=Me(e),a=t.length;a--;){var u=t[a],c=e[u];t[a]=[u,c,kh(c)]}return t}function Fn(e,t){var a=ew(e,t);return Qd(a)?a:r}function j_(e){var t=ve.call(e,Nn),a=e[Nn];try{e[Nn]=r;var u=!0}catch{}var c=Zi.call(e);return u&&(t?e[Nn]=a:delete e[Nn]),c}var du=Bs?function(e){return e==null?[]:(e=ye(e),fn(Bs(e),function(t){return Wd.call(e,t)}))}:Cu,Ph=Bs?function(e){for(var t=[];e;)cn(t,du(e)),e=ta(e);return t}:Cu,Ue=qe;($s&&Ue(new $s(new ArrayBuffer(1)))!=je||Yr&&Ue(new Yr)!=De||Us&&Ue(Us.resolve())!=ze||lr&&Ue(new lr)!=Xe||Jr&&Ue(new Jr)!=xn)&&(Ue=function(e){var t=qe(e),a=t==it?e.constructor:r,u=a?Rn(a):"";if(u)switch(u){case Iw:return je;case Ow:return De;case Dw:return ze;case Aw:return Xe;case Cw:return xn}return t});function q_(e,t,a){for(var u=-1,c=a.length;++u<c;){var g=a[u],v=g.size;switch(g.type){case"drop":e+=v;break;case"dropRight":t-=v;break;case"take":t=$e(t,e+v);break;case"takeRight":e=Pe(e,t-v);break}}return{start:e,end:t}}function G_(e){var t=e.match(nr);return t?t[1].split(Q1):[]}function Lh(e,t,a){t=vn(t,e);for(var u=-1,c=t.length,g=!1;++u<c;){var v=Rt(t[u]);if(!(g=e!=null&&a(e,v)))break;e=e[v]}return g||++u!=c?g:(c=e==null?0:e.length,!!c&&Da(c)&&Zt(v,c)&&(te(e)||Wn(e)))}function Y_(e){var t=e.length,a=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(a.index=e.index,a.input=e.input),a}function Mh(e){return typeof e.constructor=="function"&&!ri(e)?cr(ta(e)):{}}function J_(e,t,a){var u=e.constructor;switch(t){case In:return au(e);case Tn:case sn:return new u(+e);case je:return N_(e,a);case Qn:case Rr:case On:case Dn:case Wr:case Br:case er:case $r:case Ur:return vh(e,a);case De:return new u;case un:case ln:return new u(e);case Ae:return P_(e);case Xe:return new u;case Be:return L_(e)}}function V_(e,t){var a=t.length;if(!a)return e;var u=a-1;return t[u]=(a>1?"& ":"")+t[u],t=t.join(a>2?", ":" "),e.replace(jr,`{
|
|
2
|
+
/* [wrapped with `+t+`] */
|
|
3
|
+
`)}function X_(e){return te(e)||Wn(e)||!!(Bd&&e&&e[Bd])}function Zt(e,t){var a=typeof e;return t=t??He,!!t&&(a=="number"||a!="symbol"&&uS.test(e))&&e>-1&&e%1==0&&e<t}function Ge(e,t,a){if(!Ee(a))return!1;var u=typeof t;return(u=="number"?Qe(a)&&Zt(t,a.length):u=="string"&&t in a)?Nt(a[t],e):!1}function hu(e,t){if(te(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||lt(e)?!0:Ss.test(e)||!bs.test(e)||t!=null&&e in ye(t)}function K_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gu(e){var t=Sa(e),a=h[t];if(typeof a!="function"||!(t in fe.prototype))return!1;if(e===a)return!0;var u=fu(a);return!!u&&e===u[0]}function Z_(e){return!!kd&&kd in e}var Q_=Xi?Qt:Nu;function ri(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||ur;return e===a}function kh(e){return e===e&&!Ee(e)}function Fh(e,t){return function(a){return a==null?!1:a[e]===t&&(t!==r||e in ye(a))}}function eE(e){var t=Ia(e,function(u){return a.size===m&&a.clear(),u}),a=t.cache;return t}function tE(e,t){var a=e[1],u=t[1],c=a|u,g=c<(I|C|N),v=u==N&&a==U||u==N&&a==L&&e[7].length<=t[8]||u==(N|L)&&t[7].length<=t[8]&&a==U;if(!(g||v))return e;u&I&&(e[2]=t[2],c|=a&I?0:F);var b=t[3];if(b){var x=e[3];e[3]=x?yh(x,b,t[4]):b,e[4]=x?dn(e[3],S):t[4]}return b=t[5],b&&(x=e[5],e[5]=x?bh(x,b,t[6]):b,e[6]=x?dn(e[5],S):t[6]),b=t[7],b&&(e[7]=b),u&N&&(e[8]=e[8]==null?t[8]:$e(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function nE(e){var t=[];if(e!=null)for(var a in ye(e))t.push(a);return t}function rE(e){return Zi.call(e)}function Rh(e,t,a){return t=Pe(t===r?e.length-1:t,0),function(){for(var u=arguments,c=-1,g=Pe(u.length-t,0),v=D(g);++c<g;)v[c]=u[t+c];c=-1;for(var b=D(t+1);++c<t;)b[c]=u[c];return b[t]=a(v),ot(e,this,b)}}function Wh(e,t){return t.length<2?e:kn(e,St(t,0,-1))}function iE(e,t){for(var a=e.length,u=$e(t.length,a),c=Ze(e);u--;){var g=t[u];e[u]=Zt(g,a)?c[g]:r}return e}function pu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Bh=Uh(uh),ii=bw||function(e,t){return Fe.setTimeout(e,t)},vu=Uh(O_);function $h(e,t,a){var u=t+"";return vu(e,V_(u,aE(G_(u),a)))}function Uh(e){var t=0,a=0;return function(){var u=Ew(),c=X-(u-a);if(a=u,c>0){if(++t>=ae)return arguments[0]}else t=0;return e.apply(r,arguments)}}function _a(e,t){var a=-1,u=e.length,c=u-1;for(t=t===r?u:t;++a<t;){var g=Zs(a,c),v=e[g];e[g]=e[a],e[a]=v}return e.length=t,e}var Hh=eE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Hi,function(a,u,c,g){t.push(c?g.replace(nS,"$1"):u||a)}),t});function Rt(e){if(typeof e=="string"||lt(e))return e;var t=e+"";return t=="0"&&1/e==-Ot?"-0":t}function Rn(e){if(e!=null){try{return Ki.call(e)}catch{}try{return e+""}catch{}}return""}function aE(e,t){return vt(Mr,function(a){var u="_."+a[0];t&a[1]&&!Gi(e,u)&&e.push(u)}),e.sort()}function zh(e){if(e instanceof fe)return e.clone();var t=new yt(e.__wrapped__,e.__chain__);return t.__actions__=Ze(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function oE(e,t,a){(a?Ge(e,t,a):t===r)?t=1:t=Pe(ie(t),0);var u=e==null?0:e.length;if(!u||t<1)return[];for(var c=0,g=0,v=D(ia(u/t));c<u;)v[g++]=St(e,c,c+=t);return v}function sE(e){for(var t=-1,a=e==null?0:e.length,u=0,c=[];++t<a;){var g=e[t];g&&(c[u++]=g)}return c}function uE(){var e=arguments.length;if(!e)return[];for(var t=D(e-1),a=arguments[0],u=e;u--;)t[u-1]=arguments[u];return cn(te(a)?Ze(a):[a],Re(t,1))}var lE=se(function(e,t){return Ie(e)?Zr(e,Re(t,1,Ie,!0)):[]}),fE=se(function(e,t){var a=wt(t);return Ie(a)&&(a=r),Ie(e)?Zr(e,Re(t,1,Ie,!0),J(a,2)):[]}),cE=se(function(e,t){var a=wt(t);return Ie(a)&&(a=r),Ie(e)?Zr(e,Re(t,1,Ie,!0),r,a):[]});function dE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),St(e,t<0?0:t,u)):[]}function hE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),t=u-t,St(e,0,t<0?0:t)):[]}function gE(e,t){return e&&e.length?ga(e,J(t,3),!0,!0):[]}function pE(e,t){return e&&e.length?ga(e,J(t,3),!0):[]}function vE(e,t,a,u){var c=e==null?0:e.length;return c?(a&&typeof a!="number"&&Ge(e,t,a)&&(a=0,u=c),u_(e,t,a,u)):[]}function jh(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=a==null?0:ie(a);return c<0&&(c=Pe(u+c,0)),Yi(e,J(t,3),c)}function qh(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=u-1;return a!==r&&(c=ie(a),c=a<0?Pe(u+c,0):$e(c,u-1)),Yi(e,J(t,3),c,!0)}function Gh(e){var t=e==null?0:e.length;return t?Re(e,1):[]}function mE(e){var t=e==null?0:e.length;return t?Re(e,Ot):[]}function yE(e,t){var a=e==null?0:e.length;return a?(t=t===r?1:ie(t),Re(e,t)):[]}function bE(e){for(var t=-1,a=e==null?0:e.length,u={};++t<a;){var c=e[t];u[c[0]]=c[1]}return u}function Yh(e){return e&&e.length?e[0]:r}function SE(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=a==null?0:ie(a);return c<0&&(c=Pe(u+c,0)),ir(e,t,c)}function wE(e){var t=e==null?0:e.length;return t?St(e,0,-1):[]}var _E=se(function(e){var t=_e(e,ru);return t.length&&t[0]===e[0]?Ys(t):[]}),EE=se(function(e){var t=wt(e),a=_e(e,ru);return t===wt(a)?t=r:a.pop(),a.length&&a[0]===e[0]?Ys(a,J(t,2)):[]}),TE=se(function(e){var t=wt(e),a=_e(e,ru);return t=typeof t=="function"?t:r,t&&a.pop(),a.length&&a[0]===e[0]?Ys(a,r,t):[]});function xE(e,t){return e==null?"":ww.call(e,t)}function wt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function IE(e,t,a){var u=e==null?0:e.length;if(!u)return-1;var c=u;return a!==r&&(c=ie(a),c=c<0?Pe(u+c,0):$e(c,u-1)),t===t?aw(e,t,c):Yi(e,Od,c,!0)}function OE(e,t){return e&&e.length?ih(e,ie(t)):r}var DE=se(Jh);function Jh(e,t){return e&&e.length&&t&&t.length?Ks(e,t):e}function AE(e,t,a){return e&&e.length&&t&&t.length?Ks(e,t,J(a,2)):e}function CE(e,t,a){return e&&e.length&&t&&t.length?Ks(e,t,r,a):e}var NE=Kt(function(e,t){var a=e==null?0:e.length,u=zs(e,t);return sh(e,_e(t,function(c){return Zt(c,a)?+c:c}).sort(mh)),u});function PE(e,t){var a=[];if(!(e&&e.length))return a;var u=-1,c=[],g=e.length;for(t=J(t,3);++u<g;){var v=e[u];t(v,u,e)&&(a.push(v),c.push(u))}return sh(e,c),a}function mu(e){return e==null?e:xw.call(e)}function LE(e,t,a){var u=e==null?0:e.length;return u?(a&&typeof a!="number"&&Ge(e,t,a)?(t=0,a=u):(t=t==null?0:ie(t),a=a===r?u:ie(a)),St(e,t,a)):[]}function ME(e,t){return ha(e,t)}function kE(e,t,a){return eu(e,t,J(a,2))}function FE(e,t){var a=e==null?0:e.length;if(a){var u=ha(e,t);if(u<a&&Nt(e[u],t))return u}return-1}function RE(e,t){return ha(e,t,!0)}function WE(e,t,a){return eu(e,t,J(a,2),!0)}function BE(e,t){var a=e==null?0:e.length;if(a){var u=ha(e,t,!0)-1;if(Nt(e[u],t))return u}return-1}function $E(e){return e&&e.length?lh(e):[]}function UE(e,t){return e&&e.length?lh(e,J(t,2)):[]}function HE(e){var t=e==null?0:e.length;return t?St(e,1,t):[]}function zE(e,t,a){return e&&e.length?(t=a||t===r?1:ie(t),St(e,0,t<0?0:t)):[]}function jE(e,t,a){var u=e==null?0:e.length;return u?(t=a||t===r?1:ie(t),t=u-t,St(e,t<0?0:t,u)):[]}function qE(e,t){return e&&e.length?ga(e,J(t,3),!1,!0):[]}function GE(e,t){return e&&e.length?ga(e,J(t,3)):[]}var YE=se(function(e){return pn(Re(e,1,Ie,!0))}),JE=se(function(e){var t=wt(e);return Ie(t)&&(t=r),pn(Re(e,1,Ie,!0),J(t,2))}),VE=se(function(e){var t=wt(e);return t=typeof t=="function"?t:r,pn(Re(e,1,Ie,!0),r,t)});function XE(e){return e&&e.length?pn(e):[]}function KE(e,t){return e&&e.length?pn(e,J(t,2)):[]}function ZE(e,t){return t=typeof t=="function"?t:r,e&&e.length?pn(e,r,t):[]}function yu(e){if(!(e&&e.length))return[];var t=0;return e=fn(e,function(a){if(Ie(a))return t=Pe(a.length,t),!0}),ks(t,function(a){return _e(e,Ps(a))})}function Vh(e,t){if(!(e&&e.length))return[];var a=yu(e);return t==null?a:_e(a,function(u){return ot(t,r,u)})}var QE=se(function(e,t){return Ie(e)?Zr(e,t):[]}),eT=se(function(e){return nu(fn(e,Ie))}),tT=se(function(e){var t=wt(e);return Ie(t)&&(t=r),nu(fn(e,Ie),J(t,2))}),nT=se(function(e){var t=wt(e);return t=typeof t=="function"?t:r,nu(fn(e,Ie),r,t)}),rT=se(yu);function iT(e,t){return hh(e||[],t||[],Kr)}function aT(e,t){return hh(e||[],t||[],ti)}var oT=se(function(e){var t=e.length,a=t>1?e[t-1]:r;return a=typeof a=="function"?(e.pop(),a):r,Vh(e,a)});function Xh(e){var t=h(e);return t.__chain__=!0,t}function sT(e,t){return t(e),e}function Ea(e,t){return t(e)}var uT=Kt(function(e){var t=e.length,a=t?e[0]:0,u=this.__wrapped__,c=function(g){return zs(g,e)};return t>1||this.__actions__.length||!(u instanceof fe)||!Zt(a)?this.thru(c):(u=u.slice(a,+a+(t?1:0)),u.__actions__.push({func:Ea,args:[c],thisArg:r}),new yt(u,this.__chain__).thru(function(g){return t&&!g.length&&g.push(r),g}))});function lT(){return Xh(this)}function fT(){return new yt(this.value(),this.__chain__)}function cT(){this.__values__===r&&(this.__values__=fg(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function dT(){return this}function hT(e){for(var t,a=this;a instanceof ua;){var u=zh(a);u.__index__=0,u.__values__=r,t?c.__wrapped__=u:t=u;var c=u;a=a.__wrapped__}return c.__wrapped__=e,t}function gT(){var e=this.__wrapped__;if(e instanceof fe){var t=e;return this.__actions__.length&&(t=new fe(this)),t=t.reverse(),t.__actions__.push({func:Ea,args:[mu],thisArg:r}),new yt(t,this.__chain__)}return this.thru(mu)}function pT(){return dh(this.__wrapped__,this.__actions__)}var vT=pa(function(e,t,a){ve.call(e,a)?++e[a]:Vt(e,a,1)});function mT(e,t,a){var u=te(e)?xd:s_;return a&&Ge(e,t,a)&&(t=r),u(e,J(t,3))}function yT(e,t){var a=te(e)?fn:Vd;return a(e,J(t,3))}var bT=Eh(jh),ST=Eh(qh);function wT(e,t){return Re(Ta(e,t),1)}function _T(e,t){return Re(Ta(e,t),Ot)}function ET(e,t,a){return a=a===r?1:ie(a),Re(Ta(e,t),a)}function Kh(e,t){var a=te(e)?vt:gn;return a(e,J(t,3))}function Zh(e,t){var a=te(e)?HS:Jd;return a(e,J(t,3))}var TT=pa(function(e,t,a){ve.call(e,a)?e[a].push(t):Vt(e,a,[t])});function xT(e,t,a,u){e=Qe(e)?e:vr(e),a=a&&!u?ie(a):0;var c=e.length;return a<0&&(a=Pe(c+a,0)),Aa(e)?a<=c&&e.indexOf(t,a)>-1:!!c&&ir(e,t,a)>-1}var IT=se(function(e,t,a){var u=-1,c=typeof t=="function",g=Qe(e)?D(e.length):[];return gn(e,function(v){g[++u]=c?ot(t,v,a):Qr(v,t,a)}),g}),OT=pa(function(e,t,a){Vt(e,a,t)});function Ta(e,t){var a=te(e)?_e:th;return a(e,J(t,3))}function DT(e,t,a,u){return e==null?[]:(te(t)||(t=t==null?[]:[t]),a=u?r:a,te(a)||(a=a==null?[]:[a]),ah(e,t,a))}var AT=pa(function(e,t,a){e[a?0:1].push(t)},function(){return[[],[]]});function CT(e,t,a){var u=te(e)?Cs:Ad,c=arguments.length<3;return u(e,J(t,4),a,c,gn)}function NT(e,t,a){var u=te(e)?zS:Ad,c=arguments.length<3;return u(e,J(t,4),a,c,Jd)}function PT(e,t){var a=te(e)?fn:Vd;return a(e,Oa(J(t,3)))}function LT(e){var t=te(e)?jd:x_;return t(e)}function MT(e,t,a){(a?Ge(e,t,a):t===r)?t=1:t=ie(t);var u=te(e)?n_:I_;return u(e,t)}function kT(e){var t=te(e)?r_:D_;return t(e)}function FT(e){if(e==null)return 0;if(Qe(e))return Aa(e)?or(e):e.length;var t=Ue(e);return t==De||t==Xe?e.size:Vs(e).length}function RT(e,t,a){var u=te(e)?Ns:A_;return a&&Ge(e,t,a)&&(t=r),u(e,J(t,3))}var WT=se(function(e,t){if(e==null)return[];var a=t.length;return a>1&&Ge(e,t[0],t[1])?t=[]:a>2&&Ge(t[0],t[1],t[2])&&(t=[t[0]]),ah(e,Re(t,1),[])}),xa=yw||function(){return Fe.Date.now()};function BT(e,t){if(typeof t!="function")throw new mt(f);return e=ie(e),function(){if(--e<1)return t.apply(this,arguments)}}function Qh(e,t,a){return t=a?r:t,t=e&&t==null?e.length:t,Xt(e,N,r,r,r,r,t)}function eg(e,t){var a;if(typeof t!="function")throw new mt(f);return e=ie(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=r),a}}var bu=se(function(e,t,a){var u=I;if(a.length){var c=dn(a,gr(bu));u|=B}return Xt(e,u,t,a,c)}),tg=se(function(e,t,a){var u=I|C;if(a.length){var c=dn(a,gr(tg));u|=B}return Xt(t,u,e,a,c)});function ng(e,t,a){t=a?r:t;var u=Xt(e,U,r,r,r,r,r,t);return u.placeholder=ng.placeholder,u}function rg(e,t,a){t=a?r:t;var u=Xt(e,V,r,r,r,r,r,t);return u.placeholder=rg.placeholder,u}function ig(e,t,a){var u,c,g,v,b,x,M=0,k=!1,R=!1,H=!0;if(typeof e!="function")throw new mt(f);t=_t(t)||0,Ee(a)&&(k=!!a.leading,R="maxWait"in a,g=R?Pe(_t(a.maxWait)||0,t):g,H="trailing"in a?!!a.trailing:H);function q(Oe){var Pt=u,tn=c;return u=c=r,M=Oe,v=e.apply(tn,Pt),v}function K(Oe){return M=Oe,b=ii(le,t),k?q(Oe):v}function oe(Oe){var Pt=Oe-x,tn=Oe-M,Eg=t-Pt;return R?$e(Eg,g-tn):Eg}function Z(Oe){var Pt=Oe-x,tn=Oe-M;return x===r||Pt>=t||Pt<0||R&&tn>=g}function le(){var Oe=xa();if(Z(Oe))return de(Oe);b=ii(le,oe(Oe))}function de(Oe){return b=r,H&&u?q(Oe):(u=c=r,v)}function ft(){b!==r&&gh(b),M=0,u=x=c=b=r}function Ye(){return b===r?v:de(xa())}function ct(){var Oe=xa(),Pt=Z(Oe);if(u=arguments,c=this,x=Oe,Pt){if(b===r)return K(x);if(R)return gh(b),b=ii(le,t),q(x)}return b===r&&(b=ii(le,t)),v}return ct.cancel=ft,ct.flush=Ye,ct}var $T=se(function(e,t){return Yd(e,1,t)}),UT=se(function(e,t,a){return Yd(e,_t(t)||0,a)});function HT(e){return Xt(e,j)}function Ia(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new mt(f);var a=function(){var u=arguments,c=t?t.apply(this,u):u[0],g=a.cache;if(g.has(c))return g.get(c);var v=e.apply(this,u);return a.cache=g.set(c,v)||g,v};return a.cache=new(Ia.Cache||Jt),a}Ia.Cache=Jt;function Oa(e){if(typeof e!="function")throw new mt(f);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function zT(e){return eg(2,e)}var jT=C_(function(e,t){t=t.length==1&&te(t[0])?_e(t[0],st(J())):_e(Re(t,1),st(J()));var a=t.length;return se(function(u){for(var c=-1,g=$e(u.length,a);++c<g;)u[c]=t[c].call(this,u[c]);return ot(e,this,u)})}),Su=se(function(e,t){var a=dn(t,gr(Su));return Xt(e,B,r,t,a)}),ag=se(function(e,t){var a=dn(t,gr(ag));return Xt(e,ue,r,t,a)}),qT=Kt(function(e,t){return Xt(e,L,r,r,r,t)});function GT(e,t){if(typeof e!="function")throw new mt(f);return t=t===r?t:ie(t),se(e,t)}function YT(e,t){if(typeof e!="function")throw new mt(f);return t=t==null?0:Pe(ie(t),0),se(function(a){var u=a[t],c=mn(a,0,t);return u&&cn(c,u),ot(e,this,c)})}function JT(e,t,a){var u=!0,c=!0;if(typeof e!="function")throw new mt(f);return Ee(a)&&(u="leading"in a?!!a.leading:u,c="trailing"in a?!!a.trailing:c),ig(e,t,{leading:u,maxWait:t,trailing:c})}function VT(e){return Qh(e,1)}function XT(e,t){return Su(iu(t),e)}function KT(){if(!arguments.length)return[];var e=arguments[0];return te(e)?e:[e]}function ZT(e){return bt(e,y)}function QT(e,t){return t=typeof t=="function"?t:r,bt(e,y,t)}function ex(e){return bt(e,w|y)}function tx(e,t){return t=typeof t=="function"?t:r,bt(e,w|y,t)}function nx(e,t){return t==null||Gd(e,t,Me(t))}function Nt(e,t){return e===t||e!==e&&t!==t}var rx=ba(Gs),ix=ba(function(e,t){return e>=t}),Wn=Zd((function(){return arguments})())?Zd:function(e){return Te(e)&&ve.call(e,"callee")&&!Wd.call(e,"callee")},te=D.isArray,ax=bd?st(bd):h_;function Qe(e){return e!=null&&Da(e.length)&&!Qt(e)}function Ie(e){return Te(e)&&Qe(e)}function ox(e){return e===!0||e===!1||Te(e)&&qe(e)==Tn}var yn=Sw||Nu,sx=Sd?st(Sd):g_;function ux(e){return Te(e)&&e.nodeType===1&&!ai(e)}function lx(e){if(e==null)return!0;if(Qe(e)&&(te(e)||typeof e=="string"||typeof e.splice=="function"||yn(e)||pr(e)||Wn(e)))return!e.length;var t=Ue(e);if(t==De||t==Xe)return!e.size;if(ri(e))return!Vs(e).length;for(var a in e)if(ve.call(e,a))return!1;return!0}function fx(e,t){return ei(e,t)}function cx(e,t,a){a=typeof a=="function"?a:r;var u=a?a(e,t):r;return u===r?ei(e,t,r,a):!!u}function wu(e){if(!Te(e))return!1;var t=qe(e);return t==Xn||t==Fr||typeof e.message=="string"&&typeof e.name=="string"&&!ai(e)}function dx(e){return typeof e=="number"&&$d(e)}function Qt(e){if(!Ee(e))return!1;var t=qe(e);return t==Kn||t==Bi||t==kr||t==Zn}function og(e){return typeof e=="number"&&e==ie(e)}function Da(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=He}function Ee(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Te(e){return e!=null&&typeof e=="object"}var sg=wd?st(wd):v_;function hx(e,t){return e===t||Js(e,t,cu(t))}function gx(e,t,a){return a=typeof a=="function"?a:r,Js(e,t,cu(t),a)}function px(e){return ug(e)&&e!=+e}function vx(e){if(Q_(e))throw new Q(l);return Qd(e)}function mx(e){return e===null}function yx(e){return e==null}function ug(e){return typeof e=="number"||Te(e)&&qe(e)==un}function ai(e){if(!Te(e)||qe(e)!=it)return!1;var t=ta(e);if(t===null)return!0;var a=ve.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&Ki.call(a)==gw}var _u=_d?st(_d):m_;function bx(e){return og(e)&&e>=-He&&e<=He}var lg=Ed?st(Ed):y_;function Aa(e){return typeof e=="string"||!te(e)&&Te(e)&&qe(e)==ln}function lt(e){return typeof e=="symbol"||Te(e)&&qe(e)==Be}var pr=Td?st(Td):b_;function Sx(e){return e===r}function wx(e){return Te(e)&&Ue(e)==xn}function _x(e){return Te(e)&&qe(e)==vs}var Ex=ba(Xs),Tx=ba(function(e,t){return e<=t});function fg(e){if(!e)return[];if(Qe(e))return Aa(e)?At(e):Ze(e);if(Gr&&e[Gr])return nw(e[Gr]());var t=Ue(e),a=t==De?Rs:t==Xe?Ji:vr;return a(e)}function en(e){if(!e)return e===0?e:0;if(e=_t(e),e===Ot||e===-Ot){var t=e<0?-1:1;return t*gs}return e===e?e:0}function ie(e){var t=en(e),a=t%1;return t===t?a?t-a:t:0}function cg(e){return e?Mn(ie(e),0,rt):0}function _t(e){if(typeof e=="number")return e;if(lt(e))return Dt;if(Ee(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ee(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Cd(e);var a=aS.test(e);return a||sS.test(e)?BS(e.slice(2),a?2:8):iS.test(e)?Dt:+e}function dg(e){return Ft(e,et(e))}function xx(e){return e?Mn(ie(e),-He,He):e===0?e:0}function me(e){return e==null?"":ut(e)}var Ix=dr(function(e,t){if(ri(t)||Qe(t)){Ft(t,Me(t),e);return}for(var a in t)ve.call(t,a)&&Kr(e,a,t[a])}),hg=dr(function(e,t){Ft(t,et(t),e)}),Ca=dr(function(e,t,a,u){Ft(t,et(t),e,u)}),Ox=dr(function(e,t,a,u){Ft(t,Me(t),e,u)}),Dx=Kt(zs);function Ax(e,t){var a=cr(e);return t==null?a:qd(a,t)}var Cx=se(function(e,t){e=ye(e);var a=-1,u=t.length,c=u>2?t[2]:r;for(c&&Ge(t[0],t[1],c)&&(u=1);++a<u;)for(var g=t[a],v=et(g),b=-1,x=v.length;++b<x;){var M=v[b],k=e[M];(k===r||Nt(k,ur[M])&&!ve.call(e,M))&&(e[M]=g[M])}return e}),Nx=se(function(e){return e.push(r,Ch),ot(gg,r,e)});function Px(e,t){return Id(e,J(t,3),kt)}function Lx(e,t){return Id(e,J(t,3),qs)}function Mx(e,t){return e==null?e:js(e,J(t,3),et)}function kx(e,t){return e==null?e:Xd(e,J(t,3),et)}function Fx(e,t){return e&&kt(e,J(t,3))}function Rx(e,t){return e&&qs(e,J(t,3))}function Wx(e){return e==null?[]:ca(e,Me(e))}function Bx(e){return e==null?[]:ca(e,et(e))}function Eu(e,t,a){var u=e==null?r:kn(e,t);return u===r?a:u}function $x(e,t){return e!=null&&Lh(e,t,l_)}function Tu(e,t){return e!=null&&Lh(e,t,f_)}var Ux=xh(function(e,t,a){t!=null&&typeof t.toString!="function"&&(t=Zi.call(t)),e[t]=a},Iu(tt)),Hx=xh(function(e,t,a){t!=null&&typeof t.toString!="function"&&(t=Zi.call(t)),ve.call(e,t)?e[t].push(a):e[t]=[a]},J),zx=se(Qr);function Me(e){return Qe(e)?zd(e):Vs(e)}function et(e){return Qe(e)?zd(e,!0):S_(e)}function jx(e,t){var a={};return t=J(t,3),kt(e,function(u,c,g){Vt(a,t(u,c,g),u)}),a}function qx(e,t){var a={};return t=J(t,3),kt(e,function(u,c,g){Vt(a,c,t(u,c,g))}),a}var Gx=dr(function(e,t,a){da(e,t,a)}),gg=dr(function(e,t,a,u){da(e,t,a,u)}),Yx=Kt(function(e,t){var a={};if(e==null)return a;var u=!1;t=_e(t,function(g){return g=vn(g,e),u||(u=g.length>1),g}),Ft(e,lu(e),a),u&&(a=bt(a,w|O|y,U_));for(var c=t.length;c--;)tu(a,t[c]);return a});function Jx(e,t){return pg(e,Oa(J(t)))}var Vx=Kt(function(e,t){return e==null?{}:__(e,t)});function pg(e,t){if(e==null)return{};var a=_e(lu(e),function(u){return[u]});return t=J(t),oh(e,a,function(u,c){return t(u,c[0])})}function Xx(e,t,a){t=vn(t,e);var u=-1,c=t.length;for(c||(c=1,e=r);++u<c;){var g=e==null?r:e[Rt(t[u])];g===r&&(u=c,g=a),e=Qt(g)?g.call(e):g}return e}function Kx(e,t,a){return e==null?e:ti(e,t,a)}function Zx(e,t,a,u){return u=typeof u=="function"?u:r,e==null?e:ti(e,t,a,u)}var vg=Dh(Me),mg=Dh(et);function Qx(e,t,a){var u=te(e),c=u||yn(e)||pr(e);if(t=J(t,4),a==null){var g=e&&e.constructor;c?a=u?new g:[]:Ee(e)?a=Qt(g)?cr(ta(e)):{}:a={}}return(c?vt:kt)(e,function(v,b,x){return t(a,v,b,x)}),a}function eI(e,t){return e==null?!0:tu(e,t)}function tI(e,t,a){return e==null?e:ch(e,t,iu(a))}function nI(e,t,a,u){return u=typeof u=="function"?u:r,e==null?e:ch(e,t,iu(a),u)}function vr(e){return e==null?[]:Fs(e,Me(e))}function rI(e){return e==null?[]:Fs(e,et(e))}function iI(e,t,a){return a===r&&(a=t,t=r),a!==r&&(a=_t(a),a=a===a?a:0),t!==r&&(t=_t(t),t=t===t?t:0),Mn(_t(e),t,a)}function aI(e,t,a){return t=en(t),a===r?(a=t,t=0):a=en(a),e=_t(e),c_(e,t,a)}function oI(e,t,a){if(a&&typeof a!="boolean"&&Ge(e,t,a)&&(t=a=r),a===r&&(typeof t=="boolean"?(a=t,t=r):typeof e=="boolean"&&(a=e,e=r)),e===r&&t===r?(e=0,t=1):(e=en(e),t===r?(t=e,e=0):t=en(t)),e>t){var u=e;e=t,t=u}if(a||e%1||t%1){var c=Ud();return $e(e+c*(t-e+WS("1e-"+((c+"").length-1))),t)}return Zs(e,t)}var sI=hr(function(e,t,a){return t=t.toLowerCase(),e+(a?yg(t):t)});function yg(e){return xu(me(e).toLowerCase())}function bg(e){return e=me(e),e&&e.replace(lS,KS).replace(DS,"")}function uI(e,t,a){e=me(e),t=ut(t);var u=e.length;a=a===r?u:Mn(ie(a),0,u);var c=a;return a-=t.length,a>=0&&e.slice(a,c)==t}function lI(e){return e=me(e),e&&tr.test(e)?e.replace(at,ZS):e}function fI(e){return e=me(e),e&&ws.test(e)?e.replace(Hr,"\\$&"):e}var cI=hr(function(e,t,a){return e+(a?"-":"")+t.toLowerCase()}),dI=hr(function(e,t,a){return e+(a?" ":"")+t.toLowerCase()}),hI=_h("toLowerCase");function gI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;if(!t||u>=t)return e;var c=(t-u)/2;return ya(aa(c),a)+e+ya(ia(c),a)}function pI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;return t&&u<t?e+ya(t-u,a):e}function vI(e,t,a){e=me(e),t=ie(t);var u=t?or(e):0;return t&&u<t?ya(t-u,a)+e:e}function mI(e,t,a){return a||t==null?t=0:t&&(t=+t),Tw(me(e).replace(Gt,""),t||0)}function yI(e,t,a){return(a?Ge(e,t,a):t===r)?t=1:t=ie(t),Qs(me(e),t)}function bI(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var SI=hr(function(e,t,a){return e+(a?"_":"")+t.toLowerCase()});function wI(e,t,a){return a&&typeof a!="number"&&Ge(e,t,a)&&(t=a=r),a=a===r?rt:a>>>0,a?(e=me(e),e&&(typeof t=="string"||t!=null&&!_u(t))&&(t=ut(t),!t&&ar(e))?mn(At(e),0,a):e.split(t,a)):[]}var _I=hr(function(e,t,a){return e+(a?" ":"")+xu(t)});function EI(e,t,a){return e=me(e),a=a==null?0:Mn(ie(a),0,e.length),t=ut(t),e.slice(a,a+t.length)==t}function TI(e,t,a){var u=h.templateSettings;a&&Ge(e,t,a)&&(t=r),e=me(e),t=Ca({},t,u,Ah);var c=Ca({},t.imports,u.imports,Ah),g=Me(c),v=Fs(c,g),b,x,M=0,k=t.interpolate||zi,R="__p += '",H=Ws((t.escape||zi).source+"|"+k.source+"|"+(k===An?rS:zi).source+"|"+(t.evaluate||zi).source+"|$","g"),q="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++LS+"]")+`
|
|
4
|
+
`;e.replace(H,function(Z,le,de,ft,Ye,ct){return de||(de=ft),R+=e.slice(M,ct).replace(fS,QS),le&&(b=!0,R+=`' +
|
|
5
|
+
__e(`+le+`) +
|
|
6
|
+
'`),Ye&&(x=!0,R+=`';
|
|
7
|
+
`+Ye+`;
|
|
8
|
+
__p += '`),de&&(R+=`' +
|
|
9
|
+
((__t = (`+de+`)) == null ? '' : __t) +
|
|
10
|
+
'`),M=ct+Z.length,Z}),R+=`';
|
|
11
|
+
`;var K=ve.call(t,"variable")&&t.variable;if(!K)R=`with (obj) {
|
|
12
|
+
`+R+`
|
|
13
|
+
}
|
|
14
|
+
`;else if(tS.test(K))throw new Q(d);R=(x?R.replace(Ui,""):R).replace(ce,"$1").replace(Le,"$1;"),R="function("+(K||"obj")+`) {
|
|
15
|
+
`+(K?"":`obj || (obj = {});
|
|
16
|
+
`)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(x?`, __j = Array.prototype.join;
|
|
64
17
|
function print() { __p += __j.call(arguments, '') }
|
|
65
18
|
`:`;
|
|
66
|
-
`)+
|
|
67
|
-
}`;var Ne=Ky(function(){return We(m,fe+"return "+z).apply(t,_)});if(Ne.source=z,zl(Ne))throw Ne;return Ne}function sR(i){return ze(i).toLowerCase()}function uR(i){return ze(i).toUpperCase()}function cR(i,a,u){if(i=ze(i),i&&(u||a===t))return ob(i);if(!i||!(a=un(a)))return i;var l=Yn(i),h=Yn(a),m=ab(l,h),_=sb(l,h)+1;return Xr(l,m,_).join("")}function fR(i,a,u){if(i=ze(i),i&&(u||a===t))return i.slice(0,cb(i)+1);if(!i||!(a=un(a)))return i;var l=Yn(i),h=sb(l,Yn(a))+1;return Xr(l,0,h).join("")}function lR(i,a,u){if(i=ze(i),i&&(u||a===t))return i.replace(Or,"");if(!i||!(a=un(a)))return i;var l=Yn(i),h=ab(l,Yn(a));return Xr(l,h).join("")}function dR(i,a){var u=we,l=ce;if(ot(a)){var h="separator"in a?a.separator:h;u="length"in a?xe(a.length):u,l="omission"in a?un(a.omission):l}i=ze(i);var m=i.length;if(eo(i)){var _=Yn(i);m=_.length}if(u>=m)return i;var E=u-to(l);if(E<1)return l;var D=_?Xr(_,0,E).join(""):i.slice(0,E);if(h===t)return D+l;if(_&&(E+=D.length-E),Hl(h)){if(i.slice(E).search(h)){var $,V=D;for(h.global||(h=sl(h.source,ze(Tm.exec(h))+"g")),h.lastIndex=0;$=h.exec(V);)var z=$.index;D=D.slice(0,z===t?E:z)}}else if(i.indexOf(un(h),E)!=E){var re=D.lastIndexOf(h);re>-1&&(D=D.slice(0,re))}return D+l}function hR(i){return i=ze(i),i&&X.test(i)?i.replace(K,WN):i}var pR=uo(function(i,a,u){return i+(u?" ":"")+a.toUpperCase()}),Yl=Xb("toUpperCase");function Jy(i,a,u){return i=ze(i),a=u?t:a,a===t?BN(i)?HN(i):xN(i):i.match(a)||[]}var Ky=De(function(i,a){try{return an(i,t,a)}catch(u){return zl(u)?u:new Oe(u)}}),vR=xr(function(i,a){return Nn(a,function(u){u=sr(u),Ar(i,u,Wl(i[u],i))}),i});function gR(i){var a=i==null?0:i.length,u=ve();return i=a?rt(i,function(l){if(typeof l[1]!="function")throw new Dn(c);return[u(l[0]),l[1]]}):[],De(function(l){for(var h=-1;++h<a;){var m=i[h];if(an(m[0],this,l))return an(m[1],this,l)}})}function mR(i){return WD(Pn(i,b))}function Jl(i){return function(){return i}}function bR(i,a){return i==null||i!==i?a:i}var yR=Qb(),_R=Qb(!0);function Ht(i){return i}function Kl(i){return Nb(typeof i=="function"?i:Pn(i,b))}function wR(i){return Cb(Pn(i,b))}function SR(i,a){return Pb(i,Pn(a,b))}var OR=De(function(i,a){return function(u){return ca(u,i,a)}}),ER=De(function(i,a){return function(u){return ca(i,u,a)}});function Xl(i,a,u){var l=Ot(a),h=Js(a,l);u==null&&!(ot(a)&&(h.length||!l.length))&&(u=a,a=i,i=this,h=Js(a,Ot(a)));var m=!(ot(u)&&"chain"in u)||!!u.chain,_=Dr(i);return Nn(h,function(E){var D=a[E];i[E]=D,_&&(i.prototype[E]=function(){var $=this.__chain__;if(m||$){var V=i(this.__wrapped__),z=V.__actions__=Wt(this.__actions__);return z.push({func:D,args:arguments,thisArg:i}),V.__chain__=$,V}return D.apply(i,Hr([this.value()],arguments))})}),i}function IR(){return Dt._===this&&(Dt._=XN),this}function Zl(){}function AR(i){return i=xe(i),De(function(a){return Mb(a,i)})}var TR=Nl(rt),xR=Nl(eb),NR=Nl(el);function Xy(i){return kl(i)?tl(sr(i)):oC(i)}function DR(i){return function(a){return i==null?t:Oi(i,a)}}var CR=ty(),PR=ty(!0);function Ql(){return[]}function ed(){return!1}function MR(){return{}}function RR(){return""}function LR(){return!0}function kR(i,a){if(i=xe(i),i<1||i>ue)return[];var u=Le,l=Mt(i,Le);a=ve(a),i-=Le;for(var h=il(l,a);++u<i;)a(u);return h}function BR(i){return Ie(i)?rt(i,sr):cn(i)?[i]:Wt(my(ze(i)))}function jR(i){var a=++JN;return ze(i)+a}var FR=tu(function(i,a){return i+a},0),$R=Dl("ceil"),VR=tu(function(i,a){return i/a},1),WR=Dl("floor");function UR(i){return i&&i.length?Ys(i,Ht,vl):t}function zR(i,a){return i&&i.length?Ys(i,ve(a,2),vl):t}function HR(i){return rb(i,Ht)}function qR(i,a){return rb(i,ve(a,2))}function GR(i){return i&&i.length?Ys(i,Ht,yl):t}function YR(i,a){return i&&i.length?Ys(i,ve(a,2),yl):t}var JR=tu(function(i,a){return i*a},1),KR=Dl("round"),XR=tu(function(i,a){return i-a},0);function ZR(i){return i&&i.length?rl(i,Ht):0}function QR(i,a){return i&&i.length?rl(i,ve(a,2)):0}return g.after=wM,g.ary=xy,g.assign=u2,g.assignIn=Wy,g.assignInWith=pu,g.assignWith=c2,g.at=f2,g.before=Ny,g.bind=Wl,g.bindAll=vR,g.bindKey=Dy,g.castArray=MM,g.chain=Iy,g.chunk=WC,g.compact=UC,g.concat=zC,g.cond=gR,g.conforms=mR,g.constant=Jl,g.countBy=ZP,g.create=l2,g.curry=Cy,g.curryRight=Py,g.debounce=My,g.defaults=d2,g.defaultsDeep=h2,g.defer=SM,g.delay=OM,g.difference=HC,g.differenceBy=qC,g.differenceWith=GC,g.drop=YC,g.dropRight=JC,g.dropRightWhile=KC,g.dropWhile=XC,g.fill=ZC,g.filter=eM,g.flatMap=rM,g.flatMapDeep=iM,g.flatMapDepth=oM,g.flatten=wy,g.flattenDeep=QC,g.flattenDepth=eP,g.flip=EM,g.flow=yR,g.flowRight=_R,g.fromPairs=tP,g.functions=_2,g.functionsIn=w2,g.groupBy=aM,g.initial=rP,g.intersection=iP,g.intersectionBy=oP,g.intersectionWith=aP,g.invert=O2,g.invertBy=E2,g.invokeMap=uM,g.iteratee=Kl,g.keyBy=cM,g.keys=Ot,g.keysIn=zt,g.map=uu,g.mapKeys=A2,g.mapValues=T2,g.matches=wR,g.matchesProperty=SR,g.memoize=fu,g.merge=x2,g.mergeWith=Uy,g.method=OR,g.methodOf=ER,g.mixin=Xl,g.negate=lu,g.nthArg=AR,g.omit=N2,g.omitBy=D2,g.once=IM,g.orderBy=fM,g.over=TR,g.overArgs=AM,g.overEvery=xR,g.overSome=NR,g.partial=Ul,g.partialRight=Ry,g.partition=lM,g.pick=C2,g.pickBy=zy,g.property=Xy,g.propertyOf=DR,g.pull=fP,g.pullAll=Oy,g.pullAllBy=lP,g.pullAllWith=dP,g.pullAt=hP,g.range=CR,g.rangeRight=PR,g.rearg=TM,g.reject=pM,g.remove=pP,g.rest=xM,g.reverse=$l,g.sampleSize=gM,g.set=M2,g.setWith=R2,g.shuffle=mM,g.slice=vP,g.sortBy=_M,g.sortedUniq=SP,g.sortedUniqBy=OP,g.split=rR,g.spread=NM,g.tail=EP,g.take=IP,g.takeRight=AP,g.takeRightWhile=TP,g.takeWhile=xP,g.tap=UP,g.throttle=DM,g.thru=su,g.toArray=Fy,g.toPairs=Hy,g.toPairsIn=qy,g.toPath=BR,g.toPlainObject=Vy,g.transform=L2,g.unary=CM,g.union=NP,g.unionBy=DP,g.unionWith=CP,g.uniq=PP,g.uniqBy=MP,g.uniqWith=RP,g.unset=k2,g.unzip=Vl,g.unzipWith=Ey,g.update=B2,g.updateWith=j2,g.values=lo,g.valuesIn=F2,g.without=LP,g.words=Jy,g.wrap=PM,g.xor=kP,g.xorBy=BP,g.xorWith=jP,g.zip=FP,g.zipObject=$P,g.zipObjectDeep=VP,g.zipWith=WP,g.entries=Hy,g.entriesIn=qy,g.extend=Wy,g.extendWith=pu,Xl(g,g),g.add=FR,g.attempt=Ky,g.camelCase=U2,g.capitalize=Gy,g.ceil=$R,g.clamp=$2,g.clone=RM,g.cloneDeep=kM,g.cloneDeepWith=BM,g.cloneWith=LM,g.conformsTo=jM,g.deburr=Yy,g.defaultTo=bR,g.divide=VR,g.endsWith=z2,g.eq=Kn,g.escape=H2,g.escapeRegExp=q2,g.every=QP,g.find=tM,g.findIndex=yy,g.findKey=p2,g.findLast=nM,g.findLastIndex=_y,g.findLastKey=v2,g.floor=WR,g.forEach=Ay,g.forEachRight=Ty,g.forIn=g2,g.forInRight=m2,g.forOwn=b2,g.forOwnRight=y2,g.get=ql,g.gt=FM,g.gte=$M,g.has=S2,g.hasIn=Gl,g.head=Sy,g.identity=Ht,g.includes=sM,g.indexOf=nP,g.inRange=V2,g.invoke=I2,g.isArguments=Ai,g.isArray=Ie,g.isArrayBuffer=VM,g.isArrayLike=Ut,g.isArrayLikeObject=lt,g.isBoolean=WM,g.isBuffer=Zr,g.isDate=UM,g.isElement=zM,g.isEmpty=HM,g.isEqual=qM,g.isEqualWith=GM,g.isError=zl,g.isFinite=YM,g.isFunction=Dr,g.isInteger=Ly,g.isLength=du,g.isMap=ky,g.isMatch=JM,g.isMatchWith=KM,g.isNaN=XM,g.isNative=ZM,g.isNil=e2,g.isNull=QM,g.isNumber=By,g.isObject=ot,g.isObjectLike=st,g.isPlainObject=va,g.isRegExp=Hl,g.isSafeInteger=t2,g.isSet=jy,g.isString=hu,g.isSymbol=cn,g.isTypedArray=fo,g.isUndefined=n2,g.isWeakMap=r2,g.isWeakSet=i2,g.join=sP,g.kebabCase=G2,g.last=Rn,g.lastIndexOf=uP,g.lowerCase=Y2,g.lowerFirst=J2,g.lt=o2,g.lte=a2,g.max=UR,g.maxBy=zR,g.mean=HR,g.meanBy=qR,g.min=GR,g.minBy=YR,g.stubArray=Ql,g.stubFalse=ed,g.stubObject=MR,g.stubString=RR,g.stubTrue=LR,g.multiply=JR,g.nth=cP,g.noConflict=IR,g.noop=Zl,g.now=cu,g.pad=K2,g.padEnd=X2,g.padStart=Z2,g.parseInt=Q2,g.random=W2,g.reduce=dM,g.reduceRight=hM,g.repeat=eR,g.replace=tR,g.result=P2,g.round=KR,g.runInContext=T,g.sample=vM,g.size=bM,g.snakeCase=nR,g.some=yM,g.sortedIndex=gP,g.sortedIndexBy=mP,g.sortedIndexOf=bP,g.sortedLastIndex=yP,g.sortedLastIndexBy=_P,g.sortedLastIndexOf=wP,g.startCase=iR,g.startsWith=oR,g.subtract=XR,g.sum=ZR,g.sumBy=QR,g.template=aR,g.times=kR,g.toFinite=Cr,g.toInteger=xe,g.toLength=$y,g.toLower=sR,g.toNumber=Ln,g.toSafeInteger=s2,g.toString=ze,g.toUpper=uR,g.trim=cR,g.trimEnd=fR,g.trimStart=lR,g.truncate=dR,g.unescape=hR,g.uniqueId=jR,g.upperCase=pR,g.upperFirst=Yl,g.each=Ay,g.eachRight=Ty,g.first=Sy,Xl(g,(function(){var i={};return or(g,function(a,u){Ue.call(g.prototype,u)||(i[u]=a)}),i})(),{chain:!1}),g.VERSION=r,Nn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){g[i].placeholder=g}),Nn(["drop","take"],function(i,a){Re.prototype[i]=function(u){u=u===t?1:wt(xe(u),0);var l=this.__filtered__&&!a?new Re(this):this.clone();return l.__filtered__?l.__takeCount__=Mt(u,l.__takeCount__):l.__views__.push({size:Mt(u,Le),type:i+(l.__dir__<0?"Right":"")}),l},Re.prototype[i+"Right"]=function(u){return this.reverse()[i](u).reverse()}}),Nn(["filter","map","takeWhile"],function(i,a){var u=a+1,l=u==ct||u==ft;Re.prototype[i]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:ve(h,3),type:u}),m.__filtered__=m.__filtered__||l,m}}),Nn(["head","last"],function(i,a){var u="take"+(a?"Right":"");Re.prototype[i]=function(){return this[u](1).value()[0]}}),Nn(["initial","tail"],function(i,a){var u="drop"+(a?"":"Right");Re.prototype[i]=function(){return this.__filtered__?new Re(this):this[u](1)}}),Re.prototype.compact=function(){return this.filter(Ht)},Re.prototype.find=function(i){return this.filter(i).head()},Re.prototype.findLast=function(i){return this.reverse().find(i)},Re.prototype.invokeMap=De(function(i,a){return typeof i=="function"?new Re(this):this.map(function(u){return ca(u,i,a)})}),Re.prototype.reject=function(i){return this.filter(lu(ve(i)))},Re.prototype.slice=function(i,a){i=xe(i);var u=this;return u.__filtered__&&(i>0||a<0)?new Re(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),a!==t&&(a=xe(a),u=a<0?u.dropRight(-a):u.take(a-i)),u)},Re.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Re.prototype.toArray=function(){return this.take(Le)},or(Re.prototype,function(i,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),l=/^(?:head|last)$/.test(a),h=g[l?"take"+(a=="last"?"Right":""):a],m=l||/^find/.test(a);h&&(g.prototype[a]=function(){var _=this.__wrapped__,E=l?[1]:arguments,D=_ instanceof Re,$=E[0],V=D||Ie(_),z=function(Pe){var ke=h.apply(g,Hr([Pe],E));return l&&re?ke[0]:ke};V&&u&&typeof $=="function"&&$.length!=1&&(D=V=!1);var re=this.__chain__,fe=!!this.__actions__.length,ge=m&&!re,Ne=D&&!fe;if(!m&&V){_=Ne?_:new Re(this);var me=i.apply(_,E);return me.__actions__.push({func:su,args:[z],thisArg:t}),new Cn(me,re)}return ge&&Ne?i.apply(this,E):(me=this.thru(z),ge?l?me.value()[0]:me.value():me)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(i){var a=Ms[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",l=/^(?:pop|shift)$/.test(i);g.prototype[i]=function(){var h=arguments;if(l&&!this.__chain__){var m=this.value();return a.apply(Ie(m)?m:[],h)}return this[u](function(_){return a.apply(Ie(_)?_:[],h)})}}),or(Re.prototype,function(i,a){var u=g[a];if(u){var l=u.name+"";Ue.call(oo,l)||(oo[l]=[]),oo[l].push({name:a,func:u})}}),oo[eu(t,x).name]=[{name:"wrapper",func:t}],Re.prototype.clone=hD,Re.prototype.reverse=pD,Re.prototype.value=vD,g.prototype.at=zP,g.prototype.chain=HP,g.prototype.commit=qP,g.prototype.next=GP,g.prototype.plant=JP,g.prototype.reverse=KP,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=XP,g.prototype.first=g.prototype.head,na&&(g.prototype[na]=YP),g}),no=qN();bi?((bi.exports=no)._=no,Kf._=no):Dt._=no}).call(i0)})(Oo,Oo.exports)),Oo.exports}var xi=o0();function eh(n){return JSON.stringify(Bu(n))}function Bu(n){return Array.isArray(n)?n.map(Bu):n&&typeof n=="object"?Object.fromEntries(Object.entries(n).sort((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>[e,Bu(t)])):n}class $e{static toString(e){const t=eh(e);if(t==null)throw new Error("buildWinId: stringify error");return t}static getParamString(e,t){return e.params?.[t]?.toString()}static getParam(e,t){return e.params?.[t]}static isEquals(e,t){return xi.isEqual(e,t)}static indexOf(e,t){return e.map($e.toString).indexOf($e.toString(t))}static includes(e,t){return e.map($e.toString).includes($e.toString(t))}static withoutDup(e){const{params:t,viewId:r,title:o}=e;return{params:t,viewId:r,title:o}}static replaceDup(e){const{params:t,viewId:r,title:o}=e;return{params:t,viewId:r,title:o,dupId:`${new Date().getTime()}`}}}var Ta={exports:{}},th;function a0(){return th||(th=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(L){return typeof L=="object"&&!("toString"in L)?Object.prototype.toString.call(L).slice(8,-1):L}var r=typeof process=="object"&&process.env.NODE_ENV==="production";function o(L,F){if(!L)throw r?new Error("Invariant failed"):new Error(F())}e.invariant=o;var s=Object.prototype.hasOwnProperty,c=Array.prototype.splice,f=Object.prototype.toString;function d(L){return f.call(L).slice(8,-1)}var p=Object.assign||(function(L,F){return v(F).forEach(function(ae){s.call(F,ae)&&(L[ae]=F[ae])}),L}),v=typeof Object.getOwnPropertySymbols=="function"?function(L){return Object.keys(L).concat(Object.getOwnPropertySymbols(L))}:function(L){return Object.keys(L)};function b(L){return Array.isArray(L)?p(L.constructor(L.length),L):d(L)==="Map"?new Map(L):d(L)==="Set"?new Set(L):L&&typeof L=="object"?p(Object.create(Object.getPrototypeOf(L)),L):L}var w=(function(){function L(){this.commands=p({},y),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(F,ae){return F===ae},this.update.newContext=function(){return new L().update}}return Object.defineProperty(L.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(F){this.update.isEquals=F},enumerable:!0,configurable:!0}),L.prototype.extend=function(F,ae){this.commands[F]=ae},L.prototype.update=function(F,ae){var we=this,ce=typeof ae=="function"?{$apply:ae}:ae;Array.isArray(F)&&Array.isArray(ce)||o(!Array.isArray(ce),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),o(typeof ce=="object"&&ce!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(we.commands).join(", ")+".")});var Se=F;return v(ce).forEach(function(he){if(s.call(we.commands,he)){var ct=F===Se;Se=we.commands[he](ce[he],Se,ce,F),ct&&we.isEquals(Se,F)&&(Se=F)}else{var ht=d(F)==="Map"?we.update(F.get(he),ce[he]):we.update(F[he],ce[he]),ft=d(Se)==="Map"?Se.get(he):Se[he];(!we.isEquals(ht,ft)||typeof ht>"u"&&!s.call(F,he))&&(Se===F&&(Se=b(F)),d(Se)==="Map"?Se.set(he,ht):Se[he]=ht)}}),Se},L})();e.Context=w;var y={$push:function(L,F,ae){return S(F,ae,"$push"),L.length?F.concat(L):F},$unshift:function(L,F,ae){return S(F,ae,"$unshift"),L.length?L.concat(F):F},$splice:function(L,F,ae,we){return x(F,ae),L.forEach(function(ce){k(ce),F===we&&ce.length&&(F=b(we)),c.apply(F,ce)}),F},$set:function(L,F,ae){return oe(ae),L},$toggle:function(L,F){A(L,"$toggle");var ae=L.length?b(F):F;return L.forEach(function(we){ae[we]=!F[we]}),ae},$unset:function(L,F,ae,we){return A(L,"$unset"),L.forEach(function(ce){Object.hasOwnProperty.call(F,ce)&&(F===we&&(F=b(we)),delete F[ce])}),F},$add:function(L,F,ae,we){return ye(F,"$add"),A(L,"$add"),d(F)==="Map"?L.forEach(function(ce){var Se=ce[0],he=ce[1];F===we&&F.get(Se)!==he&&(F=b(we)),F.set(Se,he)}):L.forEach(function(ce){F===we&&!F.has(ce)&&(F=b(we)),F.add(ce)}),F},$remove:function(L,F,ae,we){return ye(F,"$remove"),A(L,"$remove"),L.forEach(function(ce){F===we&&F.has(ce)&&(F=b(we)),F.delete(ce)}),F},$merge:function(L,F,ae,we){return q(F,L),v(L).forEach(function(ce){L[ce]!==F[ce]&&(F===we&&(F=b(we)),F[ce]=L[ce])}),F},$apply:function(L,F){return G(L),L(F)}},O=new w;e.isEquals=O.update.isEquals,e.extend=O.extend,e.default=O.update,e.default.default=n.exports=p(e.default,e);function S(L,F,ae){o(Array.isArray(L),function(){return"update(): expected target of "+t(ae)+" to be an array; got "+t(L)+"."}),A(F[ae],ae)}function A(L,F){o(Array.isArray(L),function(){return"update(): expected spec of "+t(F)+" to be an array; got "+t(L)+". Did you forget to wrap your parameter in an array?"})}function x(L,F){o(Array.isArray(L),function(){return"Expected $splice target to be an array; got "+t(L)}),k(F.$splice)}function k(L){o(Array.isArray(L),function(){return"update(): expected spec of $splice to be an array of arrays; got "+t(L)+". Did you forget to wrap your parameters in an array?"})}function G(L){o(typeof L=="function",function(){return"update(): expected spec of $apply to be a function; got "+t(L)+"."})}function oe(L){o(Object.keys(L).length===1,function(){return"Cannot have more than one key in an object with $set"})}function q(L,F){o(F&&typeof F=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+t(F)}),o(L&&typeof L=="object",function(){return"update(): $merge expects a target of type 'object'; got "+t(L)})}function ye(L,F){var ae=d(L);o(ae==="Map"||ae==="Set",function(){return"update(): "+t(F)+" expects a target of type Set or Map; got "+t(ae)})}})(Ta,Ta.exports)),Ta.exports}var s0=a0();const u0=po(s0);var c0=Object.getOwnPropertyDescriptor,f0=(n,e,t,r)=>{for(var o=r>1?void 0:r?c0(e,t):e,s=n.length-1,c;s>=0;s--)(c=n[s])&&(o=c(o)||o);return o};Fe.JustLayoutService=class{insertWinIdToStack=(e,t)=>{if(e==null)return e;const r=this.getNodeByBranch(e,t.branch);if(r.type!=="stack")return e;const s=r.tabs,c=t.index>=0?xi.clamp(t.index,0,s.length):s.length;return this.updateNodeOfBranch(e,t.branch,{$set:{...r,type:"stack",tabs:[...s.slice(0,c),t.justId,...s.slice(c)],active:t.justId}})};insertWinIdToSplit=(e,t)=>{if(e==null)return e;const r=this.getNodeByBranch(e,t.branch),o=t.pos==="first"?"second":"first";return this.updateNodeOfBranch(e,t.branch,{$set:{type:"split-percentage",direction:t.direction,[o]:{...r,name:void 0},[t.pos]:{type:"stack",tabs:[t.justId],active:t.justId,name:void 0},size:t.size??50,dndAccept:r.dndAccept,name:r.name,hideTitle:r.hideTitle}})};removeWinId=(e,t)=>{if(e==null)return null;const r=this.getNodeByWinId(e,t);if(r?.type!=="stack")return e;const o=r.active?$e.indexOf(r.tabs,r.active):0,s=r.tabs.filter(f=>!$e.isEquals(f,t));let c;return r.active!==null&&$e.includes(s,r.active)?c=r.active:c=s.length>0&&r.active!==null?s[xi.clamp(o-1,0,s.length-1)]:null,this.updateNodeOfWinId(e,t,{$set:{...r,tabs:s,active:c}})};removeAllTabs=(e,t)=>{if(e==null)return null;const r=this.getNodeByBranch(e,t);return r==null||r.type!=="stack"?e:this.updateNodeOfBranch(e,t,{$set:{...r,tabs:[],active:null}})};activeWinId=(e,t)=>{if(e==null)return null;const r=this.getNodeByWinId(e,t);return r==null?e:this.updateNodeOfWinId(e,t,{$set:{...r,active:t}})};getActiveWinIds=e=>{const t=(r,o)=>{if(r===null)return o;if(r.type==="stack")return r.active!==null?[...o,r.active]:o;{const s=t(r.first,o);return t(r.second,s)}};return t(e,[])};removeEmpty=e=>{if(e==null)return e;const t=this.findEmptyBranch(e,null,[]);if(t===null)return e;if(t.length===0)return null;const r=t[t.length-1],o=t.slice(0,-1),s=r==="first"?"second":"first",c=this.getNodeByBranch(e,o),f=this.getNodeByBranch(e,[...o,s]);return this.updateNodeOfBranch(e,o,{$set:{...f,dndAccept:c.dndAccept,name:c.name,hideTitle:c.hideTitle}})};findEmptyBranch=(e,t,r)=>{if(e===null)return null;if(e.type==="stack"){const o=t!=null&&t.type!="stack"&&(!!t.first.name||!!t.second.name);if(e.tabs.length===0&&!o)return r}else{const o=this.findEmptyBranch(e.first,e,[...r,"first"]);if(o!=null)return o;const s=this.findEmptyBranch(e.second,e,[...r,"second"]);if(s!=null)return s}return null};moveWinIdToStack=(e,t)=>{const r=this.removeWinId(e,t.justId);return this.insertWinIdToStack(r,t)};moveWinIdToSplit=(e,t)=>{const r=this.removeWinId(e,t.justId);return this.insertWinIdToSplit(r,t)};getBranch=(e,t,r)=>{if(e===null)return null;if(e.type==="stack")return $e.includes(e.tabs,t)?r:null;{const o=this.getBranch(e.first,t,[...r,"first"]);if(o!=null)return o;const s=this.getBranch(e.second,t,[...r,"second"]);return s??null}};getBranchByWinId=(e,t)=>this.getBranch(e,t,[]);getNodeInfoByNodeName=(e,t,r)=>{if(e===null)return null;if(e.name==t)return{node:e,branch:[...r]};if(e.type!="stack"){const o=this.getNodeInfoByNodeName(e.first,t,[...r,"first"]);if(o!=null)return o;const s=this.getNodeInfoByNodeName(e.second,t,[...r,"second"]);if(s!=null)return s}return null};getTabNodeInfoByNodeName=(e,t,r)=>{if(e===null)return null;const o=this.getNodeInfoByNodeName(e,t,r);if(o==null)return null;if(o.node.type==="stack")return o;{const s=this.getTabNodeInfo(o.node,[]);if(s!=null)return{node:s.node,branch:[...o.branch,...s.branch]}}return null};getNodeByWinId=(e,t)=>{if(e===null)return null;if(e.type==="stack")return $e.includes(e.tabs,t)?(console.log("includes ok:",e.tabs,t),e):(console.log("includes nok:",e.tabs,t),null);{const r=this.getNodeByWinId(e.first,t);if(r!=null)return r;const o=this.getNodeByWinId(e.second,t);return o??null}};getTabBranch=(e,t)=>{if(e===null)return null;if(e.type==="stack")return t;{let r;e.type==="split-pixels"?r=e.primary==="first"?"second":"first":r=e.direction==="row"?"second":"first";const o=this.getTabBranch(e[r],[...t,r]);if(o!=null)return o}return null};getTabNodeInfo=(e,t)=>{if(e===null)return null;if(e.type==="stack")return{node:e,branch:t};{let r;e.type==="split-pixels"?r=e.primary==="first"?"second":"first":r=e.direction==="row"?"second":"first";const o=this.getTabNodeInfo(e[r],[...t,r]);if(o!=null)return o}return null};addTabWin=(e,t,r,o)=>{if(e===null)return null;const s=this.getNodeByBranch(e,t);if(s.type!=="stack")return e;const c=o<0?s.tabs.length:xi.clamp(o,0,s.tabs.length);return this.updateNodeOfBranch(e,t,{$merge:{tabs:[...s.tabs.slice(0,c),r,...s.tabs.slice(c)],active:r}})};queryWinIdsByViewId=(e,t,r)=>{if(e===null)return r;if(e.type==="stack")return[...r,...e.tabs.filter(o=>o.viewId===t)];{const o=this.queryWinIdsByViewId(e.first,t,r);return this.queryWinIdsByViewId(e.second,t,[...r,...o])}};queryDupWinIdsByWinId=(e,t,r)=>{if(e===null)return r;if(e.type==="stack"){const o=$e.withoutDup(t),s=e.tabs.filter(c=>{const f=$e.withoutDup(c);return $e.isEquals(o,f)});return[...r,...s]}else{const o=this.queryDupWinIdsByWinId(e.first,t,r);return this.queryDupWinIdsByWinId(e.second,t,[...r,...o])}};queryWinIdsByStack=(e,t)=>{if(e===null)return[];const r=this.getNodeByBranch(e,t);return r.type!=="stack"?[]:r.tabs};getNodeByBranch=(e,t)=>t.reduce((r,o)=>r?.[o],e);updateNodeOfBranch=(e,t,r)=>{const o=this.buildSpecFromUpdateSpec(t,r);return this.updateNode(e,o)};updateNodeOfWinId=(e,t,r)=>{const o=this.getBranchByWinId(e,t);if(o==null)return e;const s=this.buildSpecFromUpdateSpec(o,r);return this.updateNode(e,s)};hasWinId=(e,t)=>this.getNodeByWinId(e,t)!=null;updateNode=(e,t)=>e==null?null:u0(e,t);buildSpecFromUpdateSpec=(e,t)=>e.length>0?xi.set({},e,t):t;getNodeAtBranch=(e,t)=>t.length>0?xi.get(e,t,null):e;getBranchRightTop=e=>{if(e==null)return[];let t=e;const r=[];for(;t.type!=="stack";)t.direction==="row"?(r.push("second"),t=t.second):t.direction==="column"&&(r.push("first"),t=t.first);return r};updateSplitSize=(e,t,r)=>{const o=this.buildSpecFromUpdateSpec(t,{$merge:{size:r}});return this.updateNode(e,o)}},Fe.JustLayoutService=f0([gd()],Fe.JustLayoutService);var l0={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},d0=process.env.NODE_ENV!=="production"?l0:{};function ie(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var o=typeof n=="string"?n:d0[n];throw typeof o=="function"&&(o=o.apply(null,t)),new Error("[MobX] "+o)}throw new Error(typeof n=="number"?"[MobX] minified error nr: "+n+(t.length?" "+t.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+n)}var h0={};function xa(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:h0}var nh=Object.assign,Na=Object.getOwnPropertyDescriptor,Qn=Object.defineProperty,Eo=Object.prototype,Da=[];Object.freeze(Da);var rh={};Object.freeze(rh);var p0=typeof Proxy<"u",v0=Object.toString();function ih(){p0||ie(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Io(n){process.env.NODE_ENV!=="production"&&H.verifyProxies&&ie("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+n)}function Bn(){return++H.mobxGuid}function ju(n){var e=!1;return function(){if(!e)return e=!0,n.apply(this,arguments)}}var Ni=function(){};function gt(n){return typeof n=="function"}function oi(n){var e=typeof n;switch(e){case"string":case"symbol":case"number":return!0}return!1}function Ca(n){return n!==null&&typeof n=="object"}function Jt(n){if(!Ca(n))return!1;var e=Object.getPrototypeOf(n);if(e==null)return!0;var t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t.toString()===v0}function oh(n){var e=n?.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function Ao(n,e,t){Qn(n,e,{enumerable:!1,writable:!0,configurable:!0,value:t})}function ah(n,e,t){Qn(n,e,{enumerable:!1,writable:!1,configurable:!0,value:t})}function kr(n,e){var t="isMobX"+n;return e.prototype[t]=!0,function(r){return Ca(r)&&r[t]===!0}}function Di(n){return n!=null&&Object.prototype.toString.call(n)==="[object Map]"}function g0(n){var e=Object.getPrototypeOf(n),t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t);return r===null}function cr(n){return n!=null&&Object.prototype.toString.call(n)==="[object Set]"}var sh=typeof Object.getOwnPropertySymbols<"u";function m0(n){var e=Object.keys(n);if(!sh)return e;var t=Object.getOwnPropertySymbols(n);return t.length?[].concat(e,t.filter(function(r){return Eo.propertyIsEnumerable.call(n,r)})):e}var Ci=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:sh?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames;function Fu(n){return typeof n=="string"?n:typeof n=="symbol"?n.toString():new String(n).toString()}function uh(n){return n===null?null:typeof n=="object"?""+n:n}function vn(n,e){return Eo.hasOwnProperty.call(n,e)}var b0=Object.getOwnPropertyDescriptors||function(e){var t={};return Ci(e).forEach(function(r){t[r]=Na(e,r)}),t};function Kt(n,e){return!!(n&e)}function Xt(n,e,t){return t?n|=e:n&=~e,n}function ch(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function y0(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,w0(r.key),r)}}function Pi(n,e,t){return e&&y0(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function Mi(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=S0(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
68
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
69
|
-
|
|
70
|
-
Re-decorating fields is not allowed.
|
|
71
|
-
Use '@override' decorator for methods overridden by subclass.`)}}function E0(n){return vn(n,Ft)||Ao(n,Ft,fr({},n[Ft])),n[Ft]}function xo(n){return typeof n=="object"&&typeof n.kind=="string"}function Pa(n,e){process.env.NODE_ENV!=="production"&&!e.includes(n.kind)&&ie("The decorator applied to '"+String(n.name)+"' cannot be used on a "+n.kind+" element")}var be=Symbol("mobx administration"),Br=(function(){function n(t){t===void 0&&(t=process.env.NODE_ENV!=="production"?"Atom@"+Bn():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Ve.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=t}var e=n.prototype;return e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},e.reportObserved=function(){return Nh(this)},e.reportChanged=function(){bn(),Dh(this),yn()},e.toString=function(){return this.name_},Pi(n,[{key:"isBeingObserved",get:function(){return Kt(this.flags_,n.isBeingObservedMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Kt(this.flags_,n.isPendingUnobservationMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Kt(this.flags_,n.diffValueMask_)?1:0},set:function(r){this.flags_=Xt(this.flags_,n.diffValueMask_,r===1)}}])})();Br.isBeingObservedMask_=1,Br.isPendingUnobservationMask_=2,Br.diffValueMask_=4;var Vu=kr("Atom",Br);function lh(n,e,t){e===void 0&&(e=Ni),t===void 0&&(t=Ni);var r=new Br(n);return e!==Ni&&Bw(r,e),t!==Ni&&Bh(r,t),r}function I0(n,e){return ap(n,e)}function A0(n,e){return Object.is?Object.is(n,e):n===e?n!==0||1/n===1/e:n!==n&&e!==e}var Ma={structural:I0,default:A0};function ai(n,e,t){return ki(n)?n:Array.isArray(n)?It.array(n,{name:t}):Jt(n)?It.object(n,void 0,{name:t}):Di(n)?It.map(n,{name:t}):cr(n)?It.set(n,{name:t}):typeof n=="function"&&!fi(n)&&!Mo(n)?oh(n)?Li(n):Po(t,n):n}function T0(n,e,t){if(n==null||hi(n)||ko(n)||pr(n)||Wn(n))return n;if(Array.isArray(n))return It.array(n,{name:t,deep:!1});if(Jt(n))return It.object(n,void 0,{name:t,deep:!1});if(Di(n))return It.map(n,{name:t,deep:!1});if(cr(n))return It.set(n,{name:t,deep:!1});process.env.NODE_ENV!=="production"&&ie("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function Ra(n){return n}function x0(n,e){return process.env.NODE_ENV!=="production"&&ki(n)&&ie("observable.struct should not be used with observable values"),ap(n,e)?e:n}var N0="override";function La(n){return n.annotationType_===N0}function No(n,e){return{annotationType_:n,options_:e,make_:D0,extend_:C0,decorate_20223_:P0}}function D0(n,e,t,r){var o;if((o=this.options_)!=null&&o.bound)return this.extend_(n,e,t,!1)===null?0:1;if(r===n.target_)return this.extend_(n,e,t,!1)===null?0:2;if(fi(t.value))return 1;var s=dh(n,this,e,t,!1);return Qn(r,e,s),2}function C0(n,e,t,r){var o=dh(n,this,e,t);return n.defineProperty_(e,o,r)}function P0(n,e){process.env.NODE_ENV!=="production"&&Pa(e,["method","field"]);var t=e.kind,r=e.name,o=e.addInitializer,s=this,c=function(p){var v,b,w,y;return si((v=(b=s.options_)==null?void 0:b.name)!=null?v:r.toString(),p,(w=(y=s.options_)==null?void 0:y.autoAction)!=null?w:!1)};if(t=="field")return function(d){var p,v=d;return fi(v)||(v=c(v)),(p=s.options_)!=null&&p.bound&&(v=v.bind(this),v.isMobxAction=!0),v};if(t=="method"){var f;return fi(n)||(n=c(n)),(f=this.options_)!=null&&f.bound&&o(function(){var d=this,p=d[r].bind(d);p.isMobxAction=!0,d[r]=p}),n}ie("Cannot apply '"+s.annotationType_+"' to '"+String(r)+"' (kind: "+t+"):"+(`
|
|
72
|
-
'`+s.annotationType_+"' can only be used on properties with a function value."))}function M0(n,e,t,r){var o=e.annotationType_,s=r.value;process.env.NODE_ENV!=="production"&&!gt(s)&&ie("Cannot apply '"+o+"' to '"+n.name_+"."+t.toString()+"':"+(`
|
|
73
|
-
'`+o+"' can only be used on properties with a function value."))}function dh(n,e,t,r,o){var s,c,f,d,p,v,b;o===void 0&&(o=H.safeDescriptors),M0(n,e,t,r);var w=r.value;if((s=e.options_)!=null&&s.bound){var y;w=w.bind((y=n.proxy_)!=null?y:n.target_)}return{value:si((c=(f=e.options_)==null?void 0:f.name)!=null?c:t.toString(),w,(d=(p=e.options_)==null?void 0:p.autoAction)!=null?d:!1,(v=e.options_)!=null&&v.bound?(b=n.proxy_)!=null?b:n.target_:void 0),configurable:o?n.isPlainObject_:!0,enumerable:!1,writable:!o}}function hh(n,e){return{annotationType_:n,options_:e,make_:R0,extend_:L0,decorate_20223_:k0}}function R0(n,e,t,r){var o;if(r===n.target_)return this.extend_(n,e,t,!1)===null?0:2;if((o=this.options_)!=null&&o.bound&&(!vn(n.target_,e)||!Mo(n.target_[e]))&&this.extend_(n,e,t,!1)===null)return 0;if(Mo(t.value))return 1;var s=ph(n,this,e,t,!1,!1);return Qn(r,e,s),2}function L0(n,e,t,r){var o,s=ph(n,this,e,t,(o=this.options_)==null?void 0:o.bound);return n.defineProperty_(e,s,r)}function k0(n,e){var t;process.env.NODE_ENV!=="production"&&Pa(e,["method"]);var r=e.name,o=e.addInitializer;return Mo(n)||(n=Li(n)),(t=this.options_)!=null&&t.bound&&o(function(){var s=this,c=s[r].bind(s);c.isMobXFlow=!0,s[r]=c}),n}function B0(n,e,t,r){var o=e.annotationType_,s=r.value;process.env.NODE_ENV!=="production"&&!gt(s)&&ie("Cannot apply '"+o+"' to '"+n.name_+"."+t.toString()+"':"+(`
|
|
74
|
-
'`+o+"' can only be used on properties with a generator function value."))}function ph(n,e,t,r,o,s){s===void 0&&(s=H.safeDescriptors),B0(n,e,t,r);var c=r.value;if(Mo(c)||(c=Li(c)),o){var f;c=c.bind((f=n.proxy_)!=null?f:n.target_),c.isMobXFlow=!0}return{value:c,configurable:s?n.isPlainObject_:!0,enumerable:!1,writable:!s}}function Wu(n,e){return{annotationType_:n,options_:e,make_:j0,extend_:F0,decorate_20223_:$0}}function j0(n,e,t){return this.extend_(n,e,t,!1)===null?0:1}function F0(n,e,t,r){return V0(n,this,e,t),n.defineComputedProperty_(e,fr({},this.options_,{get:t.get,set:t.set}),r)}function $0(n,e){process.env.NODE_ENV!=="production"&&Pa(e,["getter"]);var t=this,r=e.name,o=e.addInitializer;return o(function(){var s=di(this)[be],c=fr({},t.options_,{get:n,context:this});c.name||(c.name=process.env.NODE_ENV!=="production"?s.name_+"."+r.toString():"ObservableObject."+r.toString()),s.values_.set(r,new gn(c))}),function(){return this[be].getObservablePropValue_(r)}}function V0(n,e,t,r){var o=e.annotationType_,s=r.get;process.env.NODE_ENV!=="production"&&!s&&ie("Cannot apply '"+o+"' to '"+n.name_+"."+t.toString()+"':"+(`
|
|
75
|
-
'`+o+"' can only be used on getter(+setter) properties."))}function ka(n,e){return{annotationType_:n,options_:e,make_:W0,extend_:U0,decorate_20223_:z0}}function W0(n,e,t){return this.extend_(n,e,t,!1)===null?0:1}function U0(n,e,t,r){var o,s;return H0(n,this,e,t),n.defineObservableProperty_(e,t.value,(o=(s=this.options_)==null?void 0:s.enhancer)!=null?o:ai,r)}function z0(n,e){if(process.env.NODE_ENV!=="production"){if(e.kind==="field")throw ie("Please use `@observable accessor "+String(e.name)+"` instead of `@observable "+String(e.name)+"`");Pa(e,["accessor"])}var t=this,r=e.kind,o=e.name,s=new WeakSet;function c(f,d){var p,v,b=di(f)[be],w=new jr(d,(p=(v=t.options_)==null?void 0:v.enhancer)!=null?p:ai,process.env.NODE_ENV!=="production"?b.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);b.values_.set(o,w),s.add(f)}if(r=="accessor")return{get:function(){return s.has(this)||c(this,n.get.call(this)),this[be].getObservablePropValue_(o)},set:function(d){return s.has(this)||c(this,d),this[be].setObservablePropValue_(o,d)},init:function(d){return s.has(this)||c(this,d),d}}}function H0(n,e,t,r){var o=e.annotationType_;process.env.NODE_ENV!=="production"&&!("value"in r)&&ie("Cannot apply '"+o+"' to '"+n.name_+"."+t.toString()+"':"+(`
|
|
76
|
-
'`+o+"' cannot be used on getter/setter properties"))}var q0="true",G0=vh();function vh(n){return{annotationType_:q0,options_:n,make_:Y0,extend_:J0,decorate_20223_:K0}}function Y0(n,e,t,r){var o,s;if(t.get)return Fa.make_(n,e,t,r);if(t.set){var c=fi(t.set)?t.set:si(e.toString(),t.set);return r===n.target_?n.defineProperty_(e,{configurable:H.safeDescriptors?n.isPlainObject_:!0,set:c})===null?0:2:(Qn(r,e,{configurable:!0,set:c}),2)}if(r!==n.target_&&typeof t.value=="function"){var f;if(oh(t.value)){var d,p=(d=this.options_)!=null&&d.autoBind?Li.bound:Li;return p.make_(n,e,t,r)}var v=(f=this.options_)!=null&&f.autoBind?Po.bound:Po;return v.make_(n,e,t,r)}var b=((o=this.options_)==null?void 0:o.deep)===!1?It.ref:It;if(typeof t.value=="function"&&(s=this.options_)!=null&&s.autoBind){var w;t.value=t.value.bind((w=n.proxy_)!=null?w:n.target_)}return b.make_(n,e,t,r)}function J0(n,e,t,r){var o,s;if(t.get)return Fa.extend_(n,e,t,r);if(t.set)return n.defineProperty_(e,{configurable:H.safeDescriptors?n.isPlainObject_:!0,set:si(e.toString(),t.set)},r);if(typeof t.value=="function"&&(o=this.options_)!=null&&o.autoBind){var c;t.value=t.value.bind((c=n.proxy_)!=null?c:n.target_)}var f=((s=this.options_)==null?void 0:s.deep)===!1?It.ref:It;return f.extend_(n,e,t,r)}function K0(n,e){ie("'"+this.annotationType_+"' cannot be used as a decorator")}var X0="observable",Z0="observable.ref",Q0="observable.shallow",ew="observable.struct",gh={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(gh);function Ba(n){return n||gh}var Uu=ka(X0),tw=ka(Z0,{enhancer:Ra}),nw=ka(Q0,{enhancer:T0}),rw=ka(ew,{enhancer:x0}),mh=er(Uu);function ja(n){return n.deep===!0?ai:n.deep===!1?Ra:ow(n.defaultDecorator)}function iw(n){var e;return n?(e=n.defaultDecorator)!=null?e:vh(n):void 0}function ow(n){var e,t;return n&&(e=(t=n.options_)==null?void 0:t.enhancer)!=null?e:ai}function bh(n,e,t){if(xo(e))return Uu.decorate_20223_(n,e);if(oi(e)){To(n,e,Uu);return}return ki(n)?n:Jt(n)?It.object(n,e,t):Array.isArray(n)?It.array(n,e):Di(n)?It.map(n,e):cr(n)?It.set(n,e):typeof n=="object"&&n!==null?n:It.box(n,e)}nh(bh,mh);var aw={box:function(e,t){var r=Ba(t);return new jr(e,ja(r),r.name,!0,r.equals)},array:function(e,t){var r=Ba(t);return(H.useProxies===!1||r.proxy===!1?lS:tS)(e,ja(r),r.name)},map:function(e,t){var r=Ba(t);return new qh(e,ja(r),r.name)},set:function(e,t){var r=Ba(t);return new Yh(e,ja(r),r.name)},object:function(e,t,r){return $r(function(){return Fh(H.useProxies===!1||r?.proxy===!1?di({},r):Kw({},r),e,t)})},ref:er(tw),shallow:er(nw),deep:mh,struct:er(rw)},It=nh(bh,aw),yh="computed",sw="computed.struct",zu=Wu(yh),uw=Wu(sw,{equals:Ma.structural}),Fa=function(e,t){if(xo(t))return zu.decorate_20223_(e,t);if(oi(t))return To(e,t,zu);if(Jt(e))return er(Wu(yh,e));process.env.NODE_ENV!=="production"&&(gt(e)||ie("First argument to `computed` should be an expression."),gt(t)&&ie("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var r=Jt(t)?t:{};return r.get=e,r.name||(r.name=e.name||""),new gn(r)};Object.assign(Fa,zu),Fa.struct=er(uw);var _h,wh,$a=0,cw=1,fw=(_h=(wh=Na(function(){},"name"))==null?void 0:wh.configurable)!=null?_h:!1,Sh={value:"action",configurable:!0,writable:!1,enumerable:!1};function si(n,e,t,r){t===void 0&&(t=!1),process.env.NODE_ENV!=="production"&&(gt(e)||ie("`action` can only be invoked on functions"),(typeof n!="string"||!n)&&ie("actions should have valid names, got: '"+n+"'"));function o(){return lw(n,t,e,r||this,arguments)}return o.isMobxAction=!0,o.toString=function(){return e.toString()},fw&&(Sh.value=n,Qn(o,"name",Sh)),o}function lw(n,e,t,r,o){var s=dw(n,e,r,o);try{return t.apply(r,o)}catch(c){throw s.error_=c,c}finally{hw(s)}}function dw(n,e,t,r){var o=process.env.NODE_ENV!=="production"&&At()&&!!n,s=0;if(process.env.NODE_ENV!=="production"&&o){s=Date.now();var c=r?Array.from(r):Da;Zt({type:Xu,name:n,object:t,arguments:c})}var f=H.trackingDerivation,d=!e||!f;bn();var p=H.allowStateChanges;d&&(ui(),p=Hu(!0));var v=Ju(!0),b={runAsAction_:d,prevDerivation_:f,prevAllowStateChanges_:p,prevAllowStateReads_:v,notifySpy_:o,startTime_:s,actionId_:cw++,parentActionId_:$a};return $a=b.actionId_,b}function hw(n){$a!==n.actionId_&&ie(30),$a=n.parentActionId_,n.error_!==void 0&&(H.suppressReactionErrors=!0),qu(n.prevAllowStateChanges_),Co(n.prevAllowStateReads_),yn(),n.runAsAction_&&lr(n.prevDerivation_),process.env.NODE_ENV!=="production"&&n.notifySpy_&&Qt({time:Date.now()-n.startTime_}),H.suppressReactionErrors=!1}function Hu(n){var e=H.allowStateChanges;return H.allowStateChanges=n,e}function qu(n){H.allowStateChanges=n}var pw="create",jr=(function(n){function e(r,o,s,c,f){var d;if(s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableValue@"+Bn():"ObservableValue"),c===void 0&&(c=!0),f===void 0&&(f=Ma.default),d=n.call(this,s)||this,d.enhancer=void 0,d.name_=void 0,d.equals=void 0,d.hasUnreportedChange_=!1,d.interceptors_=void 0,d.changeListeners_=void 0,d.value_=void 0,d.dehancer=void 0,d.enhancer=o,d.name_=s,d.equals=f,d.value_=o(r,void 0,s),process.env.NODE_ENV!=="production"&&c&&At()){var p;ci({type:pw,object:d,observableKind:"value",debugObjectName:d.name_,newValue:""+((p=d.value_)==null?void 0:p.toString())})}return d}fh(e,n);var t=e.prototype;return t.dehanceValue=function(o){return this.dehancer!==void 0?this.dehancer(o):o},t.set=function(o){var s=this.value_;if(o=this.prepareNewValue_(o),o!==H.UNCHANGED){var c=At();process.env.NODE_ENV!=="production"&&c&&Zt({type:$n,object:this,observableKind:"value",debugObjectName:this.name_,newValue:o,oldValue:s}),this.setNewValue_(o),process.env.NODE_ENV!=="production"&&c&&Qt()}},t.prepareNewValue_=function(o){if(tr(this),_n(this)){var s=wn(this,{object:this,type:$n,newValue:o});if(!s)return H.UNCHANGED;o=s.newValue}return o=this.enhancer(o,this.value_,this.name_),this.equals(this.value_,o)?H.UNCHANGED:o},t.setNewValue_=function(o){var s=this.value_;this.value_=o,this.reportChanged(),jn(this)&&Fn(this,{type:$n,object:this,newValue:o,oldValue:s})},t.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},t.intercept_=function(o){return Ro(this,o)},t.observe_=function(o,s){return s&&o({observableKind:"value",debugObjectName:this.name_,object:this,type:$n,newValue:this.value_,oldValue:void 0}),Lo(this,o)},t.raw=function(){return this.value_},t.toJSON=function(){return this.get()},t.toString=function(){return this.name_+"["+this.value_+"]"},t.valueOf=function(){return uh(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},e})(Br),vw=kr("ObservableValue",jr),gn=(function(){function n(t){this.dependenciesState_=Ve.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ve.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Va(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=mn.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||ie(31),this.derivation=t.get,this.name_=t.name||(process.env.NODE_ENV!=="production"?"ComputedValue@"+Bn():"ComputedValue"),t.set&&(this.setter_=si(process.env.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",t.set)),this.equals_=t.equals||(t.compareStructural||t.struct?Ma.structural:Ma.default),this.scope_=t.context,this.requiresReaction_=t.requiresReaction,this.keepAlive_=!!t.keepAlive}var e=n.prototype;return e.onBecomeStale_=function(){Sw(this)},e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},e.get=function(){if(this.isComputing&&ie(32,this.name_,this.derivation),H.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Gu(this)&&(this.warnAboutUntrackedRead_(),bn(),this.value_=this.computeValue_(!1),yn());else if(Nh(this),Gu(this)){var r=H.trackingContext;this.keepAlive_&&!r&&(H.trackingContext=this),this.trackAndCompute()&&ww(this),H.trackingContext=r}var o=this.value_;if(Wa(o))throw o.cause;return o},e.set=function(r){if(this.setter_){this.isRunningSetter&&ie(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else ie(34,this.name_)},e.trackAndCompute=function(){var r=this.value_,o=this.dependenciesState_===Ve.NOT_TRACKING_,s=this.computeValue_(!0),c=o||Wa(r)||Wa(s)||!this.equals_(r,s);return c&&(this.value_=s,process.env.NODE_ENV!=="production"&&At()&&ci({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:r,newValue:s})),c},e.computeValue_=function(r){this.isComputing=!0;var o=Hu(!1),s;if(r)s=Oh(this,this.derivation,this.scope_);else if(H.disableErrorBoundaries===!0)s=this.derivation.call(this.scope_);else try{s=this.derivation.call(this.scope_)}catch(c){s=new Va(c)}return qu(o),this.isComputing=!1,s},e.suspend_=function(){this.keepAlive_||(Yu(this),this.value_=void 0,process.env.NODE_ENV!=="production"&&this.isTracing_!==mn.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},e.observe_=function(r,o){var s=this,c=!0,f=void 0;return Pw(function(){var d=s.get();if(!c||o){var p=ui();r({observableKind:"computed",debugObjectName:s.name_,type:$n,object:s,newValue:d,oldValue:f}),lr(p)}c=!1,f=d})},e.warnAboutUntrackedRead_=function(){process.env.NODE_ENV!=="production"&&(this.isTracing_!==mn.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:H.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},e.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},e.valueOf=function(){return uh(this.get())},e[Symbol.toPrimitive]=function(){return this.valueOf()},Pi(n,[{key:"isComputing",get:function(){return Kt(this.flags_,n.isComputingMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return Kt(this.flags_,n.isRunningSetterMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return Kt(this.flags_,n.isBeingObservedMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Kt(this.flags_,n.isPendingUnobservationMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Kt(this.flags_,n.diffValueMask_)?1:0},set:function(r){this.flags_=Xt(this.flags_,n.diffValueMask_,r===1)}}])})();gn.isComputingMask_=1,gn.isRunningSetterMask_=2,gn.isBeingObservedMask_=4,gn.isPendingUnobservationMask_=8,gn.diffValueMask_=16;var Do=kr("ComputedValue",gn),Ve;(function(n){n[n.NOT_TRACKING_=-1]="NOT_TRACKING_",n[n.UP_TO_DATE_=0]="UP_TO_DATE_",n[n.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",n[n.STALE_=2]="STALE_"})(Ve||(Ve={}));var mn;(function(n){n[n.NONE=0]="NONE",n[n.LOG=1]="LOG",n[n.BREAK=2]="BREAK"})(mn||(mn={}));var Va=function(e){this.cause=void 0,this.cause=e};function Wa(n){return n instanceof Va}function Gu(n){switch(n.dependenciesState_){case Ve.UP_TO_DATE_:return!1;case Ve.NOT_TRACKING_:case Ve.STALE_:return!0;case Ve.POSSIBLY_STALE_:{for(var e=Ju(!0),t=ui(),r=n.observing_,o=r.length,s=0;s<o;s++){var c=r[s];if(Do(c)){if(H.disableErrorBoundaries)c.get();else try{c.get()}catch{return lr(t),Co(e),!0}if(n.dependenciesState_===Ve.STALE_)return lr(t),Co(e),!0}}return Ih(n),lr(t),Co(e),!1}}}function tr(n){if(process.env.NODE_ENV!=="production"){var e=n.observers_.size>0;!H.allowStateChanges&&(e||H.enforceActions==="always")&&console.warn("[MobX] "+(H.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+n.name_)}}function gw(n){process.env.NODE_ENV!=="production"&&!H.allowStateReads&&H.observableRequiresReaction&&console.warn("[mobx] Observable '"+n.name_+"' being read outside a reactive context.")}function Oh(n,e,t){var r=Ju(!0);Ih(n),n.newObserving_=new Array(n.runId_===0?100:n.observing_.length),n.unboundDepsCount_=0,n.runId_=++H.runId;var o=H.trackingDerivation;H.trackingDerivation=n,H.inBatch++;var s;if(H.disableErrorBoundaries===!0)s=e.call(t);else try{s=e.call(t)}catch(c){s=new Va(c)}return H.inBatch--,H.trackingDerivation=o,bw(n),mw(n),Co(r),s}function mw(n){process.env.NODE_ENV!=="production"&&n.observing_.length===0&&(typeof n.requiresObservable_=="boolean"?n.requiresObservable_:H.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+n.name_+"' is created/updated without reading any observable value.")}function bw(n){for(var e=n.observing_,t=n.observing_=n.newObserving_,r=Ve.UP_TO_DATE_,o=0,s=n.unboundDepsCount_,c=0;c<s;c++){var f=t[c];f.diffValue===0&&(f.diffValue=1,o!==c&&(t[o]=f),o++),f.dependenciesState_>r&&(r=f.dependenciesState_)}for(t.length=o,n.newObserving_=null,s=e.length;s--;){var d=e[s];d.diffValue===0&&Th(d,n),d.diffValue=0}for(;o--;){var p=t[o];p.diffValue===1&&(p.diffValue=0,_w(p,n))}r!==Ve.UP_TO_DATE_&&(n.dependenciesState_=r,n.onBecomeStale_())}function Yu(n){var e=n.observing_;n.observing_=[];for(var t=e.length;t--;)Th(e[t],n);n.dependenciesState_=Ve.NOT_TRACKING_}function Eh(n){var e=ui();try{return n()}finally{lr(e)}}function ui(){var n=H.trackingDerivation;return H.trackingDerivation=null,n}function lr(n){H.trackingDerivation=n}function Ju(n){var e=H.allowStateReads;return H.allowStateReads=n,e}function Co(n){H.allowStateReads=n}function Ih(n){if(n.dependenciesState_!==Ve.UP_TO_DATE_){n.dependenciesState_=Ve.UP_TO_DATE_;for(var e=n.observing_,t=e.length;t--;)e[t].lowestObserverState_=Ve.UP_TO_DATE_}}var Ua=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},za=!0,Ah=!1,H=(function(){var n=xa();return n.__mobxInstanceCount>0&&!n.__mobxGlobals&&(za=!1),n.__mobxGlobals&&n.__mobxGlobals.version!==new Ua().version&&(za=!1),za?n.__mobxGlobals?(n.__mobxInstanceCount+=1,n.__mobxGlobals.UNCHANGED||(n.__mobxGlobals.UNCHANGED={}),n.__mobxGlobals):(n.__mobxInstanceCount=1,n.__mobxGlobals=new Ua):(setTimeout(function(){Ah||ie(35)},1),new Ua)})();function yw(){if((H.pendingReactions.length||H.inBatch||H.isRunningReactions)&&ie(36),Ah=!0,za){var n=xa();--n.__mobxInstanceCount===0&&(n.__mobxGlobals=void 0),H=new Ua}}function _w(n,e){n.observers_.add(e),n.lowestObserverState_>e.dependenciesState_&&(n.lowestObserverState_=e.dependenciesState_)}function Th(n,e){n.observers_.delete(e),n.observers_.size===0&&xh(n)}function xh(n){n.isPendingUnobservation===!1&&(n.isPendingUnobservation=!0,H.pendingUnobservations.push(n))}function bn(){H.inBatch++}function yn(){if(--H.inBatch===0){Rh();for(var n=H.pendingUnobservations,e=0;e<n.length;e++){var t=n[e];t.isPendingUnobservation=!1,t.observers_.size===0&&(t.isBeingObserved&&(t.isBeingObserved=!1,t.onBUO()),t instanceof gn&&t.suspend_())}H.pendingUnobservations=[]}}function Nh(n){gw(n);var e=H.trackingDerivation;return e!==null?(e.runId_!==n.lastAccessedBy_&&(n.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=n,!n.isBeingObserved&&H.trackingContext&&(n.isBeingObserved=!0,n.onBO())),n.isBeingObserved):(n.observers_.size===0&&H.inBatch>0&&xh(n),!1)}function Dh(n){n.lowestObserverState_!==Ve.STALE_&&(n.lowestObserverState_=Ve.STALE_,n.observers_.forEach(function(e){e.dependenciesState_===Ve.UP_TO_DATE_&&(process.env.NODE_ENV!=="production"&&e.isTracing_!==mn.NONE&&Ch(e,n),e.onBecomeStale_()),e.dependenciesState_=Ve.STALE_}))}function ww(n){n.lowestObserverState_!==Ve.STALE_&&(n.lowestObserverState_=Ve.STALE_,n.observers_.forEach(function(e){e.dependenciesState_===Ve.POSSIBLY_STALE_?(e.dependenciesState_=Ve.STALE_,process.env.NODE_ENV!=="production"&&e.isTracing_!==mn.NONE&&Ch(e,n)):e.dependenciesState_===Ve.UP_TO_DATE_&&(n.lowestObserverState_=Ve.UP_TO_DATE_)}))}function Sw(n){n.lowestObserverState_===Ve.UP_TO_DATE_&&(n.lowestObserverState_=Ve.POSSIBLY_STALE_,n.observers_.forEach(function(e){e.dependenciesState_===Ve.UP_TO_DATE_&&(e.dependenciesState_=Ve.POSSIBLY_STALE_,e.onBecomeStale_())}))}function Ch(n,e){if(console.log("[mobx.trace] '"+n.name_+"' is invalidated due to a change in: '"+e.name_+"'"),n.isTracing_===mn.BREAK){var t=[];Ph($h(n),t,1),new Function(`debugger;
|
|
77
|
-
/*
|
|
78
|
-
Tracing '`+n.name_+`'
|
|
79
|
-
|
|
80
|
-
You are entering this break point because derivation '`+n.name_+"' is being traced and '"+e.name_+`' is now forcing it to update.
|
|
81
|
-
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
|
|
82
|
-
The stackframe you are looking for is at least ~6-8 stack-frames up.
|
|
83
|
-
|
|
84
|
-
`+(n instanceof gn?n.derivation.toString().replace(/[*]\//g,"/"):"")+`
|
|
85
|
-
|
|
86
|
-
The dependencies for this derivation are:
|
|
87
|
-
|
|
88
|
-
`+t.join(`
|
|
89
|
-
`)+`
|
|
90
|
-
*/
|
|
91
|
-
`)()}}function Ph(n,e,t){if(e.length>=1e3){e.push("(and many more)");return}e.push(""+" ".repeat(t-1)+n.name),n.dependencies&&n.dependencies.forEach(function(r){return Ph(r,e,t+1)})}var dr=(function(){function n(t,r,o,s){t===void 0&&(t=process.env.NODE_ENV!=="production"?"Reaction@"+Bn():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ve.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=mn.NONE,this.name_=t,this.onInvalidate_=r,this.errorHandler_=o,this.requiresObservable_=s}var e=n.prototype;return e.onBecomeStale_=function(){this.schedule_()},e.schedule_=function(){this.isScheduled||(this.isScheduled=!0,H.pendingReactions.push(this),Rh())},e.runReaction_=function(){if(!this.isDisposed){bn(),this.isScheduled=!1;var r=H.trackingContext;if(H.trackingContext=this,Gu(this)){this.isTrackPending=!0;try{this.onInvalidate_(),process.env.NODE_ENV!=="production"&&this.isTrackPending&&At()&&ci({name:this.name_,type:"scheduled-reaction"})}catch(o){this.reportExceptionInDerivation_(o)}}H.trackingContext=r,yn()}},e.track=function(r){if(!this.isDisposed){bn();var o=At(),s;process.env.NODE_ENV!=="production"&&o&&(s=Date.now(),Zt({name:this.name_,type:"reaction"})),this.isRunning=!0;var c=H.trackingContext;H.trackingContext=this;var f=Oh(this,r,void 0);H.trackingContext=c,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Yu(this),Wa(f)&&this.reportExceptionInDerivation_(f.cause),process.env.NODE_ENV!=="production"&&o&&Qt({time:Date.now()-s}),yn()}},e.reportExceptionInDerivation_=function(r){var o=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(H.disableErrorBoundaries)throw r;var s=process.env.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";H.suppressReactionErrors?process.env.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(s,r),process.env.NODE_ENV!=="production"&&At()&&ci({type:"error",name:this.name_,message:s,error:""+r}),H.globalReactionErrorHandlers.forEach(function(c){return c(r,o)})},e.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(bn(),Yu(this),yn()))},e.getDisposer_=function(r){var o=this,s=function c(){o.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",c)};return r==null||r.addEventListener==null||r.addEventListener("abort",s),s[be]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(s[Symbol.dispose]=s),s},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(r){r===void 0&&(r=!1),Gw(this,r)},Pi(n,[{key:"isDisposed",get:function(){return Kt(this.flags_,n.isDisposedMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return Kt(this.flags_,n.isScheduledMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return Kt(this.flags_,n.isTrackPendingMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return Kt(this.flags_,n.isRunningMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isRunningMask_,r)}},{key:"diffValue",get:function(){return Kt(this.flags_,n.diffValueMask_)?1:0},set:function(r){this.flags_=Xt(this.flags_,n.diffValueMask_,r===1)}}])})();dr.isDisposedMask_=1,dr.isScheduledMask_=2,dr.isTrackPendingMask_=4,dr.isRunningMask_=8,dr.diffValueMask_=16;var Mh=100,Ku=function(e){return e()};function Rh(){H.inBatch>0||H.isRunningReactions||Ku(Ow)}function Ow(){H.isRunningReactions=!0;for(var n=H.pendingReactions,e=0;n.length>0;){++e===Mh&&(console.error(process.env.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+Mh+" iterations."+(" Probably there is a cycle in the reactive function: "+n[0]):"[mobx] cycle in reaction: "+n[0]),n.splice(0));for(var t=n.splice(0),r=0,o=t.length;r<o;r++)t[r].runReaction_()}H.isRunningReactions=!1}var Ha=kr("Reaction",dr);function Ew(n){var e=Ku;Ku=function(r){return n(function(){return e(r)})}}function At(){return process.env.NODE_ENV!=="production"&&!!H.spyListeners.length}function ci(n){if(process.env.NODE_ENV!=="production"&&H.spyListeners.length)for(var e=H.spyListeners,t=0,r=e.length;t<r;t++)e[t](n)}function Zt(n){if(process.env.NODE_ENV!=="production"){var e=fr({},n,{spyReportStart:!0});ci(e)}}var Iw={type:"report-end",spyReportEnd:!0};function Qt(n){process.env.NODE_ENV!=="production"&&ci(n?fr({},n,{type:"report-end",spyReportEnd:!0}):Iw)}function Aw(n){return process.env.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(H.spyListeners.push(n),ju(function(){H.spyListeners=H.spyListeners.filter(function(e){return e!==n})}))}var Xu="action",Tw="action.bound",Lh="autoAction",xw="autoAction.bound",Nw="<unnamed action>",Zu=No(Xu),Dw=No(Tw,{bound:!0}),Qu=No(Lh,{autoAction:!0}),Cw=No(xw,{autoAction:!0,bound:!0});function kh(n){var e=function(r,o){if(gt(r))return si(r.name||Nw,r,n);if(gt(o))return si(r,o,n);if(xo(o))return(n?Qu:Zu).decorate_20223_(r,o);if(oi(o))return To(r,o,n?Qu:Zu);if(oi(r))return er(No(n?Lh:Xu,{name:r,autoAction:n}));process.env.NODE_ENV!=="production"&&ie("Invalid arguments for `action`")};return e}var Ri=kh(!1);Object.assign(Ri,Zu);var Po=kh(!0);Object.assign(Po,Qu),Ri.bound=er(Dw),Po.bound=er(Cw);function fi(n){return gt(n)&&n.isMobxAction===!0}function Pw(n,e){var t,r,o,s;e===void 0&&(e=rh),process.env.NODE_ENV!=="production"&&(gt(n)||ie("Autorun expects a function as first argument"),fi(n)&&ie("Autorun does not accept actions since actions are untrackable"));var c=(t=(r=e)==null?void 0:r.name)!=null?t:process.env.NODE_ENV!=="production"?n.name||"Autorun@"+Bn():"Autorun",f=!e.scheduler&&!e.delay,d;if(f)d=new dr(c,function(){this.track(b)},e.onError,e.requiresObservable);else{var p=Rw(e),v=!1;d=new dr(c,function(){v||(v=!0,p(function(){v=!1,d.isDisposed||d.track(b)}))},e.onError,e.requiresObservable)}function b(){n(d)}return(o=e)!=null&&(o=o.signal)!=null&&o.aborted||d.schedule_(),d.getDisposer_((s=e)==null?void 0:s.signal)}var Mw=function(e){return e()};function Rw(n){return n.scheduler?n.scheduler:n.delay?function(e){return setTimeout(e,n.delay)}:Mw}var Lw="onBO",kw="onBUO";function Bw(n,e,t){return jh(Lw,n,e,t)}function Bh(n,e,t){return jh(kw,n,e,t)}function jh(n,e,t,r){var o=ji(e),s=gt(r)?r:t,c=n+"L";return o[c]?o[c].add(s):o[c]=new Set([s]),function(){var f=o[c];f&&(f.delete(s),f.size===0&&delete o[c])}}var jw="never",qa="always",Fw="observed";function $w(n){n.isolateGlobalState===!0&&yw();var e=n.useProxies,t=n.enforceActions;if(e!==void 0&&(H.useProxies=e===qa?!0:e===jw?!1:typeof Proxy<"u"),e==="ifavailable"&&(H.verifyProxies=!0),t!==void 0){var r=t===qa?qa:t===Fw;H.enforceActions=r,H.allowStateChanges=!(r===!0||r===qa)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(o){o in n&&(H[o]=!!n[o])}),H.allowStateReads=!H.observableRequiresReaction,process.env.NODE_ENV!=="production"&&H.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),n.reactionScheduler&&Ew(n.reactionScheduler)}function Fh(n,e,t,r){process.env.NODE_ENV!=="production"&&(arguments.length>4&&ie("'extendObservable' expected 2-4 arguments"),typeof n!="object"&&ie("'extendObservable' expects an object as first argument"),pr(n)&&ie("'extendObservable' should not be used on maps, use map.merge instead"),Jt(e)||ie("'extendObservable' only accepts plain objects as second argument"),(ki(e)||ki(t))&&ie("Extending an object with another observable (object) is not supported"));var o=b0(e);return $r(function(){var s=di(n,r)[be];Ci(o).forEach(function(c){s.extend_(c,o[c],t&&c in t?t[c]:!0)})}),n}function $h(n,e){return Vh(ji(n,e))}function Vh(n){var e={name:n.name_};return n.observing_&&n.observing_.length>0&&(e.dependencies=Vw(n.observing_).map(Vh)),e}function Vw(n){return Array.from(new Set(n))}var Ww=0;function Wh(){this.message="FLOW_CANCELLED"}Wh.prototype=Object.create(Error.prototype);var ec=hh("flow"),Uw=hh("flow.bound",{bound:!0}),Li=Object.assign(function(e,t){if(xo(t))return ec.decorate_20223_(e,t);if(oi(t))return To(e,t,ec);process.env.NODE_ENV!=="production"&&arguments.length!==1&&ie("Flow expects single argument with generator function");var r=e,o=r.name||"<unnamed flow>",s=function(){var f=this,d=arguments,p=++Ww,v=Ri(o+" - runid: "+p+" - init",r).apply(f,d),b,w=void 0,y=new Promise(function(O,S){var A=0;b=S;function x(oe){w=void 0;var q;try{q=Ri(o+" - runid: "+p+" - yield "+A++,v.next).call(v,oe)}catch(ye){return S(ye)}G(q)}function k(oe){w=void 0;var q;try{q=Ri(o+" - runid: "+p+" - yield "+A++,v.throw).call(v,oe)}catch(ye){return S(ye)}G(q)}function G(oe){if(gt(oe?.then)){oe.then(G,S);return}return oe.done?O(oe.value):(w=Promise.resolve(oe.value),w.then(x,k))}x(void 0)});return y.cancel=Ri(o+" - runid: "+p+" - cancel",function(){try{w&&Uh(w);var O=v.return(void 0),S=Promise.resolve(O.value);S.then(Ni,Ni),Uh(S),b(new Wh)}catch(A){b(A)}}),y};return s.isMobXFlow=!0,s},ec);Li.bound=er(Uw);function Uh(n){gt(n.cancel)&&n.cancel()}function Mo(n){return n?.isMobXFlow===!0}function zw(n,e){return n?hi(n)||!!n[be]||Vu(n)||Ha(n)||Do(n):!1}function ki(n){return process.env.NODE_ENV!=="production"&&arguments.length!==1&&ie("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),zw(n)}function Hw(n){if(hi(n))return n[be].ownKeys_();ie(38)}function Ga(n,e,t){return n.set(e,t),t}function Bi(n,e){if(n==null||typeof n!="object"||n instanceof Date||!ki(n))return n;if(vw(n)||Do(n))return Bi(n.get(),e);if(e.has(n))return e.get(n);if(ko(n)){var t=Ga(e,n,new Array(n.length));return n.forEach(function(c,f){t[f]=Bi(c,e)}),t}if(Wn(n)){var r=Ga(e,n,new Set);return n.forEach(function(c){r.add(Bi(c,e))}),r}if(pr(n)){var o=Ga(e,n,new Map);return n.forEach(function(c,f){o.set(f,Bi(c,e))}),o}else{var s=Ga(e,n,{});return Hw(n).forEach(function(c){Eo.propertyIsEnumerable.call(n,c)&&(s[c]=Bi(n[c],e))}),s}}function qw(n,e){return process.env.NODE_ENV!=="production"&&e&&ie("toJS no longer supports options"),Bi(n,new Map)}function Gw(){if(process.env.NODE_ENV!=="production"){for(var n=!1,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[t.length-1]=="boolean"&&(n=t.pop());var o=Yw(t);if(!o)return ie("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===mn.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=n?mn.BREAK:mn.LOG}}function Yw(n){switch(n.length){case 0:return H.trackingDerivation;case 1:return ji(n[0]);case 2:return ji(n[0],n[1])}}function hr(n,e){e===void 0&&(e=void 0),bn();try{return n.apply(e)}finally{yn()}}function li(n){return n[be]}var Jw={has:function(e,t){return process.env.NODE_ENV!=="production"&&H.trackingDerivation&&Io("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),li(e).has_(t)},get:function(e,t){return li(e).get_(t)},set:function(e,t,r){var o;return oi(t)?(process.env.NODE_ENV!=="production"&&!li(e).values_.has(t)&&Io("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(o=li(e).set_(t,r,!0))!=null?o:!0):!1},deleteProperty:function(e,t){var r;return process.env.NODE_ENV!=="production"&&Io("delete properties from an observable object. Use 'remove' from 'mobx' instead."),oi(t)?(r=li(e).delete_(t,!0))!=null?r:!0:!1},defineProperty:function(e,t,r){var o;return process.env.NODE_ENV!=="production"&&Io("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(o=li(e).defineProperty_(t,r))!=null?o:!0},ownKeys:function(e){return process.env.NODE_ENV!=="production"&&H.trackingDerivation&&Io("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),li(e).ownKeys_()},preventExtensions:function(e){ie(13)}};function Kw(n,e){var t,r;return ih(),n=di(n,e),(r=(t=n[be]).proxy_)!=null?r:t.proxy_=new Proxy(n,Jw)}function _n(n){return n.interceptors_!==void 0&&n.interceptors_.length>0}function Ro(n,e){var t=n.interceptors_||(n.interceptors_=[]);return t.push(e),ju(function(){var r=t.indexOf(e);r!==-1&&t.splice(r,1)})}function wn(n,e){var t=ui();try{for(var r=[].concat(n.interceptors_||[]),o=0,s=r.length;o<s&&(e=r[o](e),e&&!e.type&&ie(14),!!e);o++);return e}finally{lr(t)}}function jn(n){return n.changeListeners_!==void 0&&n.changeListeners_.length>0}function Lo(n,e){var t=n.changeListeners_||(n.changeListeners_=[]);return t.push(e),ju(function(){var r=t.indexOf(e);r!==-1&&t.splice(r,1)})}function Fn(n,e){var t=ui(),r=n.changeListeners_;if(r){r=r.slice();for(var o=0,s=r.length;o<s;o++)r[o](e);lr(t)}}function Xw(n,e,t){return $r(function(){var r,o=di(n,t)[be];process.env.NODE_ENV!=="production"&&e&&n[Ft]&&ie("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(r=e)!=null||(e=E0(n)),Ci(e).forEach(function(s){return o.make_(s,e[s])})}),n}var tc=Symbol("mobx-keys");function Zw(n,e,t){return process.env.NODE_ENV!=="production"&&(!Jt(n)&&!Jt(Object.getPrototypeOf(n))&&ie("'makeAutoObservable' can only be used for classes that don't have a superclass"),hi(n)&&ie("makeAutoObservable can only be used on objects not already made observable")),Jt(n)?Fh(n,n,e,t):($r(function(){var r=di(n,t)[be];if(!n[tc]){var o=Object.getPrototypeOf(n),s=new Set([].concat(Ci(n),Ci(o)));s.delete("constructor"),s.delete(be),Ao(o,tc,s)}n[tc].forEach(function(c){return r.make_(c,e&&c in e?e[c]:!0)})}),n)}var zh="splice",$n="update",Qw=1e4,eS={get:function(e,t){var r=e[be];return t===be?r:t==="length"?r.getArrayLength_():typeof t=="string"&&!isNaN(t)?r.get_(parseInt(t)):vn(Ya,t)?Ya[t]:e[t]},set:function(e,t,r){var o=e[be];return t==="length"&&o.setArrayLength_(r),typeof t=="symbol"||isNaN(t)?e[t]=r:o.set_(parseInt(t),r),!0},preventExtensions:function(){ie(15)}},nc=(function(){function n(t,r,o,s){t===void 0&&(t=process.env.NODE_ENV!=="production"?"ObservableArray@"+Bn():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=o,this.legacyMode_=s,this.atom_=new Br(t),this.enhancer_=function(c,f){return r(c,f,process.env.NODE_ENV!=="production"?t+"[..]":"ObservableArray[..]")}}var e=n.prototype;return e.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},e.intercept_=function(r){return Ro(this,r)},e.observe_=function(r,o){return o===void 0&&(o=!1),o&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Lo(this,r)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&ie("Out of range: "+r);var o=this.values_.length;if(r!==o)if(r>o){for(var s=new Array(r-o),c=0;c<r-o;c++)s[c]=void 0;this.spliceWithArray_(o,0,s)}else this.spliceWithArray_(r,o-r)},e.updateArrayLength_=function(r,o){r!==this.lastKnownLength_&&ie(16),this.lastKnownLength_+=o,this.legacyMode_&&o>0&&rp(r+o+1)},e.spliceWithArray_=function(r,o,s){var c=this;tr(this.atom_);var f=this.values_.length;if(r===void 0?r=0:r>f?r=f:r<0&&(r=Math.max(0,f+r)),arguments.length===1?o=f-r:o==null?o=0:o=Math.max(0,Math.min(o,f-r)),s===void 0&&(s=Da),_n(this)){var d=wn(this,{object:this.proxy_,type:zh,index:r,removedCount:o,added:s});if(!d)return Da;o=d.removedCount,s=d.added}if(s=s.length===0?s:s.map(function(b){return c.enhancer_(b,void 0)}),this.legacyMode_||process.env.NODE_ENV!=="production"){var p=s.length-o;this.updateArrayLength_(f,p)}var v=this.spliceItemsIntoValues_(r,o,s);return(o!==0||s.length!==0)&&this.notifyArraySplice_(r,s,v),this.dehanceValues_(v)},e.spliceItemsIntoValues_=function(r,o,s){if(s.length<Qw){var c;return(c=this.values_).splice.apply(c,[r,o].concat(s))}else{var f=this.values_.slice(r,r+o),d=this.values_.slice(r+o);this.values_.length+=s.length-o;for(var p=0;p<s.length;p++)this.values_[r+p]=s[p];for(var v=0;v<d.length;v++)this.values_[r+s.length+v]=d[v];return f}},e.notifyArrayChildUpdate_=function(r,o,s){var c=!this.owned_&&At(),f=jn(this),d=f||c?{observableKind:"array",object:this.proxy_,type:$n,debugObjectName:this.atom_.name_,index:r,newValue:o,oldValue:s}:null;process.env.NODE_ENV!=="production"&&c&&Zt(d),this.atom_.reportChanged(),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt()},e.notifyArraySplice_=function(r,o,s){var c=!this.owned_&&At(),f=jn(this),d=f||c?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:zh,index:r,removed:s,added:o,removedCount:s.length,addedCount:o.length}:null;process.env.NODE_ENV!=="production"&&c&&Zt(d),this.atom_.reportChanged(),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt()},e.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn(process.env.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+r+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},e.set_=function(r,o){var s=this.values_;if(this.legacyMode_&&r>s.length&&ie(17,r,s.length),r<s.length){tr(this.atom_);var c=s[r];if(_n(this)){var f=wn(this,{type:$n,object:this.proxy_,index:r,newValue:o});if(!f)return;o=f.newValue}o=this.enhancer_(o,c);var d=o!==c;d&&(s[r]=o,this.notifyArrayChildUpdate_(r,o,c))}else{for(var p=new Array(r+1-s.length),v=0;v<p.length-1;v++)p[v]=void 0;p[p.length-1]=o,this.spliceWithArray_(s.length,0,p)}},n})();function tS(n,e,t,r){return t===void 0&&(t=process.env.NODE_ENV!=="production"?"ObservableArray@"+Bn():"ObservableArray"),r===void 0&&(r=!1),ih(),$r(function(){var o=new nc(t,e,r,!1);ah(o.values_,be,o);var s=new Proxy(o.values_,eS);return o.proxy_=s,n&&n.length&&o.spliceWithArray_(0,0,n),s})}var Ya={clear:function(){return this.splice(0)},replace:function(e){var t=this[be];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];var c=this[be];switch(arguments.length){case 0:return[];case 1:return c.spliceWithArray_(e);case 2:return c.spliceWithArray_(e,t)}return c.spliceWithArray_(e,t,o)},spliceWithArray:function(e,t,r){return this[be].spliceWithArray_(e,t,r)},push:function(){for(var e=this[be],t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.spliceWithArray_(e.values_.length,0,r),e.values_.length},pop:function(){return this.splice(Math.max(this[be].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[be],t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.spliceWithArray_(0,0,r),e.values_.length},reverse:function(){return H.trackingDerivation&&ie(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){H.trackingDerivation&&ie(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[be],r=t.dehanceValues_(t.values_).indexOf(e);return r>-1?(this.splice(r,1),!0):!1}};Je("at",en),Je("concat",en),Je("flat",en),Je("includes",en),Je("indexOf",en),Je("join",en),Je("lastIndexOf",en),Je("slice",en),Je("toString",en),Je("toLocaleString",en),Je("toSorted",en),Je("toSpliced",en),Je("with",en),Je("every",Vn),Je("filter",Vn),Je("find",Vn),Je("findIndex",Vn),Je("findLast",Vn),Je("findLastIndex",Vn),Je("flatMap",Vn),Je("forEach",Vn),Je("map",Vn),Je("some",Vn),Je("toReversed",Vn),Je("reduce",Hh),Je("reduceRight",Hh);function Je(n,e){typeof Array.prototype[n]=="function"&&(Ya[n]=e(n))}function en(n){return function(){var e=this[be];e.atom_.reportObserved();var t=e.dehanceValues_(e.values_);return t[n].apply(t,arguments)}}function Vn(n){return function(e,t){var r=this,o=this[be];o.atom_.reportObserved();var s=o.dehanceValues_(o.values_);return s[n](function(c,f){return e.call(t,c,f,r)})}}function Hh(n){return function(){var e=this,t=this[be];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_),o=arguments[0];return arguments[0]=function(s,c,f){return o(s,c,f,e)},r[n].apply(r,arguments)}}var nS=kr("ObservableArrayAdministration",nc);function ko(n){return Ca(n)&&nS(n[be])}var rS={},Fr="add",Ja="delete",qh=(function(){function n(t,r,o){var s=this;r===void 0&&(r=ai),o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableMap@"+Bn():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[be]=rS,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=o,gt(Map)||ie(18),$r(function(){s.keysAtom_=lh(process.env.NODE_ENV!=="production"?s.name_+".keys()":"ObservableMap.keys()"),s.data_=new Map,s.hasMap_=new Map,t&&s.merge(t)})}var e=n.prototype;return e.has_=function(r){return this.data_.has(r)},e.has=function(r){var o=this;if(!H.trackingDerivation)return this.has_(r);var s=this.hasMap_.get(r);if(!s){var c=s=new jr(this.has_(r),Ra,process.env.NODE_ENV!=="production"?this.name_+"."+Fu(r)+"?":"ObservableMap.key?",!1);this.hasMap_.set(r,c),Bh(c,function(){return o.hasMap_.delete(r)})}return s.get()},e.set=function(r,o){var s=this.has_(r);if(_n(this)){var c=wn(this,{type:s?$n:Fr,object:this,newValue:o,name:r});if(!c)return this;o=c.newValue}return s?this.updateValue_(r,o):this.addValue_(r,o),this},e.delete=function(r){var o=this;if(tr(this.keysAtom_),_n(this)){var s=wn(this,{type:Ja,object:this,name:r});if(!s)return!1}if(this.has_(r)){var c=At(),f=jn(this),d=f||c?{observableKind:"map",debugObjectName:this.name_,type:Ja,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return process.env.NODE_ENV!=="production"&&c&&Zt(d),hr(function(){var p;o.keysAtom_.reportChanged(),(p=o.hasMap_.get(r))==null||p.setNewValue_(!1);var v=o.data_.get(r);v.setNewValue_(void 0),o.data_.delete(r)}),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt(),!0}return!1},e.updateValue_=function(r,o){var s=this.data_.get(r);if(o=s.prepareNewValue_(o),o!==H.UNCHANGED){var c=At(),f=jn(this),d=f||c?{observableKind:"map",debugObjectName:this.name_,type:$n,object:this,oldValue:s.value_,name:r,newValue:o}:null;process.env.NODE_ENV!=="production"&&c&&Zt(d),s.setNewValue_(o),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt()}},e.addValue_=function(r,o){var s=this;tr(this.keysAtom_),hr(function(){var p,v=new jr(o,s.enhancer_,process.env.NODE_ENV!=="production"?s.name_+"."+Fu(r):"ObservableMap.key",!1);s.data_.set(r,v),o=v.value_,(p=s.hasMap_.get(r))==null||p.setNewValue_(!0),s.keysAtom_.reportChanged()});var c=At(),f=jn(this),d=f||c?{observableKind:"map",debugObjectName:this.name_,type:Fr,object:this,name:r,newValue:o}:null;process.env.NODE_ENV!=="production"&&c&&Zt(d),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt()},e.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},e.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},e.values=function(){var r=this,o=this.keys();return Gh({next:function(){var c=o.next(),f=c.done,d=c.value;return{done:f,value:f?void 0:r.get(d)}}})},e.entries=function(){var r=this,o=this.keys();return Gh({next:function(){var c=o.next(),f=c.done,d=c.value;return{done:f,value:f?void 0:[d,r.get(d)]}}})},e[Symbol.iterator]=function(){return this.entries()},e.forEach=function(r,o){for(var s=Mi(this),c;!(c=s()).done;){var f=c.value,d=f[0],p=f[1];r.call(o,p,d,this)}},e.merge=function(r){var o=this;return pr(r)&&(r=new Map(r)),hr(function(){Jt(r)?m0(r).forEach(function(s){return o.set(s,r[s])}):Array.isArray(r)?r.forEach(function(s){var c=s[0],f=s[1];return o.set(c,f)}):Di(r)?(g0(r)||ie(19,r),r.forEach(function(s,c){return o.set(c,s)})):r!=null&&ie(20,r)}),this},e.clear=function(){var r=this;hr(function(){Eh(function(){for(var o=Mi(r.keys()),s;!(s=o()).done;){var c=s.value;r.delete(c)}})})},e.replace=function(r){var o=this;return hr(function(){for(var s=iS(r),c=new Map,f=!1,d=Mi(o.data_.keys()),p;!(p=d()).done;){var v=p.value;if(!s.has(v)){var b=o.delete(v);if(b)f=!0;else{var w=o.data_.get(v);c.set(v,w)}}}for(var y=Mi(s.entries()),O;!(O=y()).done;){var S=O.value,A=S[0],x=S[1],k=o.data_.has(A);if(o.set(A,x),o.data_.has(A)){var G=o.data_.get(A);c.set(A,G),k||(f=!0)}}if(!f)if(o.data_.size!==c.size)o.keysAtom_.reportChanged();else for(var oe=o.data_.keys(),q=c.keys(),ye=oe.next(),L=q.next();!ye.done;){if(ye.value!==L.value){o.keysAtom_.reportChanged();break}ye=oe.next(),L=q.next()}o.data_=c}),this},e.toString=function(){return"[object ObservableMap]"},e.toJSON=function(){return Array.from(this)},e.observe_=function(r,o){return process.env.NODE_ENV!=="production"&&o===!0&&ie("`observe` doesn't support fireImmediately=true in combination with maps."),Lo(this,r)},e.intercept_=function(r){return Ro(this,r)},Pi(n,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),pr=kr("ObservableMap",qh);function Gh(n){return n[Symbol.toStringTag]="MapIterator",sc(n)}function iS(n){if(Di(n)||pr(n))return n;if(Array.isArray(n))return new Map(n);if(Jt(n)){var e=new Map;for(var t in n)e.set(t,n[t]);return e}else return ie(21,n)}var oS={},Yh=(function(){function n(t,r,o){var s=this;r===void 0&&(r=ai),o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableSet@"+Bn():"ObservableSet"),this.name_=void 0,this[be]=oS,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=o,gt(Set)||ie(22),this.enhancer_=function(c,f){return r(c,f,o)},$r(function(){s.atom_=lh(s.name_),t&&s.replace(t)})}var e=n.prototype;return e.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.clear=function(){var r=this;hr(function(){Eh(function(){for(var o=Mi(r.data_.values()),s;!(s=o()).done;){var c=s.value;r.delete(c)}})})},e.forEach=function(r,o){for(var s=Mi(this),c;!(c=s()).done;){var f=c.value;r.call(o,f,f,this)}},e.add=function(r){var o=this;if(tr(this.atom_),_n(this)){var s=wn(this,{type:Fr,object:this,newValue:r});if(!s)return this;r=s.newValue}if(!this.has(r)){hr(function(){o.data_.add(o.enhancer_(r,void 0)),o.atom_.reportChanged()});var c=process.env.NODE_ENV!=="production"&&At(),f=jn(this),d=f||c?{observableKind:"set",debugObjectName:this.name_,type:Fr,object:this,newValue:r}:null;c&&process.env.NODE_ENV!=="production"&&Zt(d),f&&Fn(this,d),c&&process.env.NODE_ENV!=="production"&&Qt()}return this},e.delete=function(r){var o=this;if(_n(this)){var s=wn(this,{type:Ja,object:this,oldValue:r});if(!s)return!1}if(this.has(r)){var c=process.env.NODE_ENV!=="production"&&At(),f=jn(this),d=f||c?{observableKind:"set",debugObjectName:this.name_,type:Ja,object:this,oldValue:r}:null;return c&&process.env.NODE_ENV!=="production"&&Zt(d),hr(function(){o.atom_.reportChanged(),o.data_.delete(r)}),f&&Fn(this,d),c&&process.env.NODE_ENV!=="production"&&Qt(),!0}return!1},e.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},e.entries=function(){var r=this.values();return Jh({next:function(){var s=r.next(),c=s.value,f=s.done;return f?{value:void 0,done:f}:{value:[c,c],done:f}}})},e.keys=function(){return this.values()},e.values=function(){this.atom_.reportObserved();var r=this,o=this.data_.values();return Jh({next:function(){var c=o.next(),f=c.value,d=c.done;return d?{value:void 0,done:d}:{value:r.dehanceValue_(f),done:d}}})},e.intersection=function(r){if(cr(r)&&!Wn(r))return r.intersection(this);var o=new Set(this);return o.intersection(r)},e.union=function(r){if(cr(r)&&!Wn(r))return r.union(this);var o=new Set(this);return o.union(r)},e.difference=function(r){return new Set(this).difference(r)},e.symmetricDifference=function(r){if(cr(r)&&!Wn(r))return r.symmetricDifference(this);var o=new Set(this);return o.symmetricDifference(r)},e.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},e.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},e.isDisjointFrom=function(r){if(cr(r)&&!Wn(r))return r.isDisjointFrom(this);var o=new Set(this);return o.isDisjointFrom(r)},e.replace=function(r){var o=this;return Wn(r)&&(r=new Set(r)),hr(function(){Array.isArray(r)?(o.clear(),r.forEach(function(s){return o.add(s)})):cr(r)?(o.clear(),r.forEach(function(s){return o.add(s)})):r!=null&&ie("Cannot initialize set from "+r)}),this},e.observe_=function(r,o){return process.env.NODE_ENV!=="production"&&o===!0&&ie("`observe` doesn't support fireImmediately=true in combination with sets."),Lo(this,r)},e.intercept_=function(r){return Ro(this,r)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[Symbol.iterator]=function(){return this.values()},Pi(n,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),Wn=kr("ObservableSet",Yh);function Jh(n){return n[Symbol.toStringTag]="SetIterator",sc(n)}var Kh=Object.create(null),Xh="remove",rc=(function(){function n(t,r,o,s){r===void 0&&(r=new Map),s===void 0&&(s=G0),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=t,this.values_=r,this.name_=o,this.defaultAnnotation_=s,this.keysAtom_=new Br(process.env.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=Jt(this.target_),process.env.NODE_ENV!=="production"&&!cp(this.defaultAnnotation_)&&ie("defaultAnnotation must be valid annotation"),process.env.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var e=n.prototype;return e.getObservablePropValue_=function(r){return this.values_.get(r).get()},e.setObservablePropValue_=function(r,o){var s=this.values_.get(r);if(s instanceof gn)return s.set(o),!0;if(_n(this)){var c=wn(this,{type:$n,object:this.proxy_||this.target_,name:r,newValue:o});if(!c)return null;o=c.newValue}if(o=s.prepareNewValue_(o),o!==H.UNCHANGED){var f=jn(this),d=process.env.NODE_ENV!=="production"&&At(),p=f||d?{type:$n,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:s.value_,name:r,newValue:o}:null;process.env.NODE_ENV!=="production"&&d&&Zt(p),s.setNewValue_(o),f&&Fn(this,p),process.env.NODE_ENV!=="production"&&d&&Qt()}return!0},e.get_=function(r){return H.trackingDerivation&&!vn(this.target_,r)&&this.has_(r),this.target_[r]},e.set_=function(r,o,s){return s===void 0&&(s=!1),vn(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,o):s?Reflect.set(this.target_,r,o):(this.target_[r]=o,!0):this.extend_(r,{value:o,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,s)},e.has_=function(r){if(!H.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var o=this.pendingKeys_.get(r);return o||(o=new jr(r in this.target_,Ra,process.env.NODE_ENV!=="production"?this.name_+"."+Fu(r)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(r,o)),o.get()},e.make_=function(r,o){if(o===!0&&(o=this.defaultAnnotation_),o!==!1){if(ep(this,o,r),!(r in this.target_)){var s;if((s=this.target_[Ft])!=null&&s[r])return;ie(1,o.annotationType_,this.name_+"."+r.toString())}for(var c=this.target_;c&&c!==Eo;){var f=Na(c,r);if(f){var d=o.make_(this,r,f,c);if(d===0)return;if(d===1)break}c=Object.getPrototypeOf(c)}Qh(this,o,r)}},e.extend_=function(r,o,s,c){if(c===void 0&&(c=!1),s===!0&&(s=this.defaultAnnotation_),s===!1)return this.defineProperty_(r,o,c);ep(this,s,r);var f=s.extend_(this,r,o,c);return f&&Qh(this,s,r),f},e.defineProperty_=function(r,o,s){s===void 0&&(s=!1),tr(this.keysAtom_);try{bn();var c=this.delete_(r);if(!c)return c;if(_n(this)){var f=wn(this,{object:this.proxy_||this.target_,name:r,type:Fr,newValue:o.value});if(!f)return null;var d=f.newValue;o.value!==d&&(o=fr({},o,{value:d}))}if(s){if(!Reflect.defineProperty(this.target_,r,o))return!1}else Qn(this.target_,r,o);this.notifyPropertyAddition_(r,o.value)}finally{yn()}return!0},e.defineObservableProperty_=function(r,o,s,c){c===void 0&&(c=!1),tr(this.keysAtom_);try{bn();var f=this.delete_(r);if(!f)return f;if(_n(this)){var d=wn(this,{object:this.proxy_||this.target_,name:r,type:Fr,newValue:o});if(!d)return null;o=d.newValue}var p=Zh(r),v={configurable:H.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:p.get,set:p.set};if(c){if(!Reflect.defineProperty(this.target_,r,v))return!1}else Qn(this.target_,r,v);var b=new jr(o,s,process.env.NODE_ENV!=="production"?this.name_+"."+r.toString():"ObservableObject.key",!1);this.values_.set(r,b),this.notifyPropertyAddition_(r,b.value_)}finally{yn()}return!0},e.defineComputedProperty_=function(r,o,s){s===void 0&&(s=!1),tr(this.keysAtom_);try{bn();var c=this.delete_(r);if(!c)return c;if(_n(this)){var f=wn(this,{object:this.proxy_||this.target_,name:r,type:Fr,newValue:void 0});if(!f)return null}o.name||(o.name=process.env.NODE_ENV!=="production"?this.name_+"."+r.toString():"ObservableObject.key"),o.context=this.proxy_||this.target_;var d=Zh(r),p={configurable:H.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:d.get,set:d.set};if(s){if(!Reflect.defineProperty(this.target_,r,p))return!1}else Qn(this.target_,r,p);this.values_.set(r,new gn(o)),this.notifyPropertyAddition_(r,void 0)}finally{yn()}return!0},e.delete_=function(r,o){if(o===void 0&&(o=!1),tr(this.keysAtom_),!vn(this.target_,r))return!0;if(_n(this)){var s=wn(this,{object:this.proxy_||this.target_,name:r,type:Xh});if(!s)return null}try{var c;bn();var f=jn(this),d=process.env.NODE_ENV!=="production"&&At(),p=this.values_.get(r),v=void 0;if(!p&&(f||d)){var b;v=(b=Na(this.target_,r))==null?void 0:b.value}if(o){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(process.env.NODE_ENV!=="production"&&delete this.appliedAnnotations_[r],p&&(this.values_.delete(r),p instanceof jr&&(v=p.value_),Dh(p)),this.keysAtom_.reportChanged(),(c=this.pendingKeys_)==null||(c=c.get(r))==null||c.set(r in this.target_),f||d){var w={type:Xh,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:v,name:r};process.env.NODE_ENV!=="production"&&d&&Zt(w),f&&Fn(this,w),process.env.NODE_ENV!=="production"&&d&&Qt()}}finally{yn()}return!0},e.observe_=function(r,o){return process.env.NODE_ENV!=="production"&&o===!0&&ie("`observe` doesn't support the fire immediately property for observable objects."),Lo(this,r)},e.intercept_=function(r){return Ro(this,r)},e.notifyPropertyAddition_=function(r,o){var s,c=jn(this),f=process.env.NODE_ENV!=="production"&&At();if(c||f){var d=c||f?{type:Fr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:o}:null;process.env.NODE_ENV!=="production"&&f&&Zt(d),c&&Fn(this,d),process.env.NODE_ENV!=="production"&&f&&Qt()}(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),Ci(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},n})();function di(n,e){var t;if(process.env.NODE_ENV!=="production"&&e&&hi(n)&&ie("Options can't be provided for already observable objects."),vn(n,be))return process.env.NODE_ENV!=="production"&&!(ip(n)instanceof rc)&&ie("Cannot convert '"+Ka(n)+`' into observable object:
|
|
92
|
-
The target is already observable of different type.
|
|
93
|
-
Extending builtins is not supported.`),n;process.env.NODE_ENV!=="production"&&!Object.isExtensible(n)&&ie("Cannot make the designated object observable; it is not extensible");var r=(t=e?.name)!=null?t:process.env.NODE_ENV!=="production"?(Jt(n)?"ObservableObject":n.constructor.name)+"@"+Bn():"ObservableObject",o=new rc(n,new Map,String(r),iw(e));return Ao(n,be,o),n}var aS=kr("ObservableObjectAdministration",rc);function Zh(n){return Kh[n]||(Kh[n]={get:function(){return this[be].getObservablePropValue_(n)},set:function(t){return this[be].setObservablePropValue_(n,t)}})}function hi(n){return Ca(n)?aS(n[be]):!1}function Qh(n,e,t){var r;process.env.NODE_ENV!=="production"&&(n.appliedAnnotations_[t]=e),(r=n.target_[Ft])==null||delete r[t]}function ep(n,e,t){if(process.env.NODE_ENV!=="production"&&!cp(e)&&ie("Cannot annotate '"+n.name_+"."+t.toString()+"': Invalid annotation."),process.env.NODE_ENV!=="production"&&!La(e)&&vn(n.appliedAnnotations_,t)){var r=n.name_+"."+t.toString(),o=n.appliedAnnotations_[t].annotationType_,s=e.annotationType_;ie("Cannot apply '"+s+"' to '"+r+"':"+(`
|
|
94
|
-
The field is already annotated with '`+o+"'.")+`
|
|
95
|
-
Re-annotating fields is not allowed.
|
|
96
|
-
Use 'override' annotation for methods overridden by subclass.`)}}var sS=np(0),uS=(function(){var n=!1,e={};return Object.defineProperty(e,"0",{set:function(){n=!0}}),Object.create(e)[0]=1,n===!1})(),ic=0,tp=function(){};function cS(n,e){Object.setPrototypeOf?Object.setPrototypeOf(n.prototype,e):n.prototype.__proto__!==void 0?n.prototype.__proto__=e:n.prototype=e}cS(tp,Array.prototype);var oc=(function(n){function e(r,o,s,c){var f;return s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableArray@"+Bn():"ObservableArray"),c===void 0&&(c=!1),f=n.call(this)||this,$r(function(){var d=new nc(s,o,c,!0);d.proxy_=f,ah(f,be,d),r&&r.length&&f.spliceWithArray(0,0,r),uS&&Object.defineProperty(f,"0",sS)}),f}fh(e,n);var t=e.prototype;return t.concat=function(){this[be].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return Array.prototype.concat.apply(this.slice(),s.map(function(f){return ko(f)?f.slice():f}))},t[Symbol.iterator]=function(){var r=this,o=0;return sc({next:function(){return o<r.length?{value:r[o++],done:!1}:{done:!0,value:void 0}}})},Pi(e,[{key:"length",get:function(){return this[be].getArrayLength_()},set:function(o){this[be].setArrayLength_(o)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(tp);Object.entries(Ya).forEach(function(n){var e=n[0],t=n[1];e!=="concat"&&Ao(oc.prototype,e,t)});function np(n){return{enumerable:!1,configurable:!0,get:function(){return this[be].get_(n)},set:function(t){this[be].set_(n,t)}}}function fS(n){Qn(oc.prototype,""+n,np(n))}function rp(n){if(n>ic){for(var e=ic;e<n+100;e++)fS(e);ic=n}}rp(1e3);function lS(n,e,t){return new oc(n,e,t)}function ji(n,e){if(typeof n=="object"&&n!==null){if(ko(n))return e!==void 0&&ie(23),n[be].atom_;if(Wn(n))return n.atom_;if(pr(n)){if(e===void 0)return n.keysAtom_;var t=n.data_.get(e)||n.hasMap_.get(e);return t||ie(25,e,Ka(n)),t}if(hi(n)){if(!e)return ie(26);var r=n[be].values_.get(e);return r||ie(27,e,Ka(n)),r}if(Vu(n)||Do(n)||Ha(n))return n}else if(gt(n)&&Ha(n[be]))return n[be];ie(28)}function ip(n,e){if(n||ie(29),Vu(n)||Do(n)||Ha(n)||pr(n)||Wn(n))return n;if(n[be])return n[be];ie(24,n)}function Ka(n,e){var t;if(e!==void 0)t=ji(n,e);else{if(fi(n))return n.name;hi(n)||pr(n)||Wn(n)?t=ip(n):t=ji(n)}return t.name_}function $r(n){var e=ui(),t=Hu(!0);bn();try{return n()}finally{yn(),qu(t),lr(e)}}var op=Eo.toString;function ap(n,e,t){return t===void 0&&(t=-1),ac(n,e,t)}function ac(n,e,t,r,o){if(n===e)return n!==0||1/n===1/e;if(n==null||e==null)return!1;if(n!==n)return e!==e;var s=typeof n;if(s!=="function"&&s!=="object"&&typeof e!="object")return!1;var c=op.call(n);if(c!==op.call(e))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+n==""+e;case"[object Number]":return+n!=+n?+e!=+e:+n==0?1/+n===1/e:+n==+e;case"[object Date]":case"[object Boolean]":return+n==+e;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(n)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":t>=0&&t++;break}n=sp(n),e=sp(e);var f=c==="[object Array]";if(!f){if(typeof n!="object"||typeof e!="object")return!1;var d=n.constructor,p=e.constructor;if(d!==p&&!(gt(d)&&d instanceof d&>(p)&&p instanceof p)&&"constructor"in n&&"constructor"in e)return!1}if(t===0)return!1;t<0&&(t=-1),r=r||[],o=o||[];for(var v=r.length;v--;)if(r[v]===n)return o[v]===e;if(r.push(n),o.push(e),f){if(v=n.length,v!==e.length)return!1;for(;v--;)if(!ac(n[v],e[v],t-1,r,o))return!1}else{var b=Object.keys(n),w=b.length;if(Object.keys(e).length!==w)return!1;for(var y=0;y<w;y++){var O=b[y];if(!(vn(e,O)&&ac(n[O],e[O],t-1,r,o)))return!1}}return r.pop(),o.pop(),!0}function sp(n){return ko(n)?n.slice():Di(n)||pr(n)||cr(n)||Wn(n)?Array.from(n.entries()):n}var up,dS=((up=xa().Iterator)==null?void 0:up.prototype)||{};function sc(n){return n[Symbol.iterator]=hS,Object.assign(Object.create(dS),n)}function hS(){return this}function cp(n){return n instanceof Object&&typeof n.annotationType_=="string"&>(n.make_)&>(n.extend_)}["Symbol","Map","Set"].forEach(function(n){var e=xa();typeof e[n]>"u"&&ie("MobX requires global '"+n+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Aw,extras:{getDebugName:Ka},$mobx:be});var pS=Object.getOwnPropertyDescriptor,vS=(n,e,t,r)=>{for(var o=r>1?void 0:r?pS(e,t):e,s=n.length-1,c;s>=0;s--)(c=n[s])&&(o=c(o)||o);return o},gS=(n,e)=>(t,r)=>e(t,r,n);Fe.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(e){this.service=e,Zw(this,{service:!1},{autoBind:!0})}setLayout=e=>{this.layout=e};setTabTitle=(e,t)=>{this.tabTitleMap.set($e.toString(e),t)};getTabTitle=e=>this.tabTitleMap.get($e.toString(e));setTabTitleTooltip=(e,t)=>{this.tabTitleTooltipMap.set($e.toString(e),t)};getTabTitleTooltip=e=>this.tabTitleTooltipMap.get($e.toString(e));setFullScreenLayoutByBranch=e=>{e===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,e)};setFullScreenHideTitle=e=>{this.fullScreenHideTitle=e};addTab=e=>{const t=this.service.getTabBranch(this.layout,[]);t!=null&&(this.service.hasWinId(this.layout,e.justId)?this.layout=this.service.activeWinId(this.layout,e.justId):this.layout=this.service.addTabWin(this.layout,t,e.justId,-1),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=e=>{const t=this.service.getTabNodeInfoByNodeName(this.layout,e.nodeName,[]);t!=null&&(this.service.hasWinId(this.layout,e.justId)?this.layout=this.service.activeWinId(this.layout,e.justId):this.layout=this.service.addTabWin(this.layout,t.branch,e.justId,-1),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=e=>this.service.queryWinIdsByViewId(this.layout??null,e,[]);cloneTab=e=>{const t=this.service.getBranchByWinId(this.layout,e.justId);if(t==null)return;const r=this.service.getNodeAtBranch(this.layout,t);let o=0;r?.type==="stack"&&r.active!=null&&(o=$e.indexOf(r.tabs,e.justId)+1),this.layout=this.service.addTabWin(this.layout,t,e.cloneJustId,o),this.lastActiveId=e.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=e=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,e.justId))};removeAllTabs=e=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,e.branch))};activeWin=e=>{this.layout=this.service.activeWinId(this.layout,e.justId),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const e=this.lastActiveId;if(e==null)return;const t=this.service.getNodeByWinId(this.layout,e);if(t?.type!=="stack"||t.tabs.length===0)return;const o=($e.indexOf(t.tabs,e)-1+t.tabs.length)%t.tabs.length,s=t.tabs[o];this.activeWin({justId:s})};activeNextWin=()=>{const e=this.lastActiveId;if(e==null)return;const t=this.service.getNodeByWinId(this.layout,e);if(t?.type!=="stack"||t.tabs.length===0)return;const o=($e.indexOf(t.tabs,e)+1)%t.tabs.length,s=t.tabs[o];this.activeWin({justId:s})};updateResize=e=>{this.layout=this.service.updateSplitSize(this.layout,e.branch,e.size)};moveWin=e=>{e.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,e)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,e)),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const e=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:e})};toggleWin=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r==null||r.node.type!=="split-pixels")return;const o=r.node.primaryHide!==!0,s=!o||r.node.size<10?r.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(r.branch,{$merge:{size:s,primaryHide:o}}),f=this.service.updateNode(t,c);f!=null&&this.setLayout(f)};showWin=({nodeName:e,show:t})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,e,[]);if(o!=null&&o.node.type==="split-pixels"&&t===(o.node.size===0)){const s=t?o.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:s}}),f=this.service.updateNode(r,c);if(f==null)return;this.setLayout(f)}};getSizeByNodeName=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r!=null)return r.node.type==="split-pixels"||r.node.type==="split-percentage"?r.node.size:null};getBranchByJustId=({justId:e})=>{const t=this.layout;return this.service.getBranchByWinId(t,e)};isPrimaryHide=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r!=null)return r.node.type==="split-pixels"?r.node.primaryHide:null};openWin=({justId:e})=>{this.service.hasWinId(this.layout??null,e)?this.activeWin({justId:e}):this.addTab({justId:e})};openWinByNodeName=({justId:e,nodeName:t})=>{this.service.hasWinId(this.layout??null,e)?(console.log("hasWinId",e),this.activeWin({justId:e})):(console.log("addTabByNodeName",e),this.addTabByNodeName({justId:e,nodeName:t}))};getWinIds=({viewId:e})=>this.service.queryWinIdsByViewId(this.layout??null,e,[]);getDupWinIds=({justId:e})=>this.service.queryDupWinIdsByWinId(this.layout??null,e,[]);getWinIdsByBranch=({branch:e})=>this.service.queryWinIdsByStack(this.layout??null,e);getNodeAtBranch=({branch:e})=>this.service.getNodeAtBranch(this.layout??null,e);openWinMenu=({justId:e,nodeName:t})=>{const r=e.viewId,o=this.getWinIds({viewId:r});if(o.length===0)console.log("openWinMenu1",o,e),this.openWinByNodeName({justId:e,nodeName:t});else{const s=o.toSorted((c,f)=>(c.dupId??"")<=(f.dupId??"")?-1:1).at(-1);s&&(console.log("openWinMenu2",o,s),this.openWinByNodeName({justId:s,nodeName:t}))}};fullScreenWin=async(e,t,r=!1)=>{t?this.setLayout(null):(this.setFullScreenLayoutByBranch(e),this.setFullScreenHideTitle(r))}},Fe.JustLayoutStore=vS([gd(),gS(0,h_(ii.JustLayoutService))],Fe.JustLayoutStore);const fp=new H_(({bind:n})=>{n(ii.JustLayoutService).to(Fe.JustLayoutService).inSingletonScope(),n(ii.JustLayoutStore).to(Fe.JustLayoutStore).inTransientScope(),n(ii.JustLayoutFactory).toFactory(e=>t=>{if(!Bo.has(t)){const r=Xa.get(ii.JustLayoutStore);Bo.set(t,r)}return Bo.get(t)})}),Xa=new r0,mS=[fp];Xa.load(...mS);const Bo=new Map;window.storeLayout=Bo,window.toJS=qw;const nr=n=>{const[e]=R.useState(()=>Xa.get(ii.JustLayoutFactory)(n));return e},lp=R.createContext({dragDropManager:void 0});function Sn(n){return"Minified Redux error #"+n+"; visit https://redux.js.org/Errors?code="+n+" for the full message or use the non-minified dev environment for full errors. "}var dp=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),hp=function(){return Math.random().toString(36).substring(7).split("").join(".")},pp={INIT:"@@redux/INIT"+hp(),REPLACE:"@@redux/REPLACE"+hp()};function bS(n){if(typeof n!="object"||n===null)return!1;for(var e=n;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(n)===e}function yS(n){if(n===void 0)return"undefined";if(n===null)return"null";var e=typeof n;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(n))return"array";if(SS(n))return"date";if(wS(n))return"error";var t=_S(n);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function _S(n){return typeof n.constructor=="function"?n.constructor.name:null}function wS(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function SS(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function Fi(n){var e=typeof n;return process.env.NODE_ENV!=="production"&&(e=yS(n)),e}function vp(n,e,t){var r;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Sn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(1):"Expected the enhancer to be a function. Instead, received: '"+Fi(t)+"'");return t(vp)(n,e)}if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(2):"Expected the root reducer to be a function. Instead, received: '"+Fi(n)+"'");var o=n,s=e,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function v(){if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function b(S){if(typeof S!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(4):"Expected the listener to be a function. Instead, received: '"+Fi(S)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var A=!0;return p(),f.push(S),function(){if(A){if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");A=!1,p();var k=f.indexOf(S);f.splice(k,1),c=null}}}function w(S){if(!bS(S))throw new Error(process.env.NODE_ENV==="production"?Sn(7):"Actions must be plain objects. Instead, the actual type was: '"+Fi(S)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof S.type>"u")throw new Error(process.env.NODE_ENV==="production"?Sn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(9):"Reducers may not dispatch actions.");try{d=!0,s=o(s,S)}finally{d=!1}for(var A=c=f,x=0;x<A.length;x++){var k=A[x];k()}return S}function y(S){if(typeof S!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(10):"Expected the nextReducer to be a function. Instead, received: '"+Fi(S));o=S,w({type:pp.REPLACE})}function O(){var S,A=b;return S={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(process.env.NODE_ENV==="production"?Sn(11):"Expected the observer to be an object. Instead, received: '"+Fi(k)+"'");function G(){k.next&&k.next(v())}G();var oe=A(G);return{unsubscribe:oe}}},S[dp]=function(){return this},S}return w({type:pp.INIT}),r={dispatch:w,subscribe:b,getState:v,replaceReducer:y},r[dp]=O,r}function Ae(n,e,...t){if(OS()&&e===void 0)throw new Error("invariant requires an error message argument");if(!n){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;r=new Error(e.replace(/%s/g,function(){return t[o++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function OS(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function ES(n,e,t){return e.split(".").reduce((r,o)=>r&&r[o]?r[o]:t||null,n)}function IS(n,e){return n.filter(t=>t!==e)}function gp(n){return typeof n=="object"}function AS(n,e){const t=new Map,r=s=>{t.set(s,t.has(s)?t.get(s)+1:1)};n.forEach(r),e.forEach(r);const o=[];return t.forEach((s,c)=>{s===1&&o.push(c)}),o}function TS(n,e){return n.filter(t=>e.indexOf(t)>-1)}const uc="dnd-core/INIT_COORDS",Za="dnd-core/BEGIN_DRAG",cc="dnd-core/PUBLISH_DRAG_SOURCE",Qa="dnd-core/HOVER",es="dnd-core/DROP",ts="dnd-core/END_DRAG";function mp(n,e){return{type:uc,payload:{sourceClientOffset:e||null,clientOffset:n||null}}}const xS={type:uc,payload:{clientOffset:null,sourceClientOffset:null}};function NS(n){return function(t=[],r={publishSource:!0}){const{publishSource:o=!0,clientOffset:s,getSourceClientOffset:c}=r,f=n.getMonitor(),d=n.getRegistry();n.dispatch(mp(s)),DS(t,f,d);const p=MS(t,f);if(p==null){n.dispatch(xS);return}let v=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");CS(c),v=c(p)}n.dispatch(mp(s,v));const w=d.getSource(p).beginDrag(f,p);if(w==null)return;PS(w),d.pinSource(p);const y=d.getSourceType(p);return{type:Za,payload:{itemType:y,item:w,sourceId:p,clientOffset:s||null,sourceClientOffset:v||null,isSourcePublic:!!o}}}}function DS(n,e,t){Ae(!e.isDragging(),"Cannot call beginDrag while dragging."),n.forEach(function(r){Ae(t.getSource(r),"Expected sourceIds to be registered.")})}function CS(n){Ae(typeof n=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function PS(n){Ae(gp(n),"Item must be an object.")}function MS(n,e){let t=null;for(let r=n.length-1;r>=0;r--)if(e.canDragSource(n[r])){t=n[r];break}return t}function RS(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function LS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){RS(n,o,t[o])})}return n}function kS(n){return function(t={}){const r=n.getMonitor(),o=n.getRegistry();BS(r),$S(r).forEach((c,f)=>{const d=jS(c,f,o,r),p={type:es,payload:{dropResult:LS({},t,d)}};n.dispatch(p)})}}function BS(n){Ae(n.isDragging(),"Cannot call drop while not dragging."),Ae(!n.didDrop(),"Cannot call drop twice during one drag operation.")}function jS(n,e,t,r){const o=t.getTarget(n);let s=o?o.drop(r,n):void 0;return FS(s),typeof s>"u"&&(s=e===0?{}:r.getDropResult()),s}function FS(n){Ae(typeof n>"u"||gp(n),"Drop result must either be an object or undefined.")}function $S(n){const e=n.getTargetIds().filter(n.canDropOnTarget,n);return e.reverse(),e}function VS(n){return function(){const t=n.getMonitor(),r=n.getRegistry();WS(t);const o=t.getSourceId();return o!=null&&(r.getSource(o,!0).endDrag(t,o),r.unpinSource()),{type:ts}}}function WS(n){Ae(n.isDragging(),"Cannot call endDrag while not dragging.")}function fc(n,e){return e===null?n===null:Array.isArray(n)?n.some(t=>t===e):n===e}function US(n){return function(t,{clientOffset:r}={}){zS(t);const o=t.slice(0),s=n.getMonitor(),c=n.getRegistry(),f=s.getItemType();return qS(o,c,f),HS(o,s,c),GS(o,s,c),{type:Qa,payload:{targetIds:o,clientOffset:r||null}}}}function zS(n){Ae(Array.isArray(n),"Expected targetIds to be an array.")}function HS(n,e,t){Ae(e.isDragging(),"Cannot call hover while not dragging."),Ae(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<n.length;r++){const o=n[r];Ae(n.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");const s=t.getTarget(o);Ae(s,"Expected targetIds to be registered.")}}function qS(n,e,t){for(let r=n.length-1;r>=0;r--){const o=n[r],s=e.getTargetType(o);fc(s,t)||n.splice(r,1)}}function GS(n,e,t){n.forEach(function(r){t.getTarget(r).hover(e,r)})}function YS(n){return function(){if(n.getMonitor().isDragging())return{type:cc}}}function JS(n){return{beginDrag:NS(n),publishDragSource:YS(n),hover:US(n),drop:kS(n),endDrag:VS(n)}}class KS{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;function r(s){return(...c)=>{const f=s.apply(e,c);typeof f<"u"&&t(f)}}const o=JS(this);return Object.keys(o).reduce((s,c)=>{const f=o[c];return s[c]=r(f),s},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function XS(n,e){return{x:n.x+e.x,y:n.y+e.y}}function bp(n,e){return{x:n.x-e.x,y:n.y-e.y}}function ZS(n){const{clientOffset:e,initialClientOffset:t,initialSourceClientOffset:r}=n;return!e||!t||!r?null:bp(XS(e,r),t)}function QS(n){const{clientOffset:e,initialClientOffset:t}=n;return!e||!t?null:bp(e,t)}const jo=[],lc=[];jo.__IS_NONE__=!0,lc.__IS_ALL__=!0;function eO(n,e){return n===jo?!1:n===lc||typeof e>"u"?!0:TS(e,n).length>0}class tO{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;Ae(typeof e=="function","listener must be a function."),Ae(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const s=()=>{const c=this.store.getState(),f=c.stateId;try{f===o||f===o+1&&!eO(c.dirtyHandlerIds,r)||e()}finally{o=f}};return this.store.subscribe(s)}subscribeToOffsetChange(e){Ae(typeof e=="function","listener must be a function.");let t=this.store.getState().dragOffset;const r=()=>{const o=this.store.getState().dragOffset;o!==t&&(t=o,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Ae(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(Ae(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();return fc(r,o)&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(Ae(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),o=this.getItemType();return r!==o?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),s=this.getItemType();if(s&&!fc(o,s))return!1;const c=this.getTargetIds();if(!c.length)return!1;const f=c.indexOf(e);return r?f===c.length-1:f>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return ZS(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return QS(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const yp=typeof global<"u"?global:self,_p=yp.MutationObserver||yp.WebKitMutationObserver;function wp(n){return function(){const t=setTimeout(o,0),r=setInterval(o,50);function o(){clearTimeout(t),clearInterval(r),n()}}}function nO(n){let e=1;const t=new _p(n),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const rO=typeof _p=="function"?nO:wp;class iO{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let r=0,o=e.length-this.index;r<o;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=rO(this.flush),this.requestErrorThrow=wp(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class oO{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class aO{create(e){const t=this.freeTasks,r=t.length?t.pop():new oO(this.onError,o=>t[t.length]=o);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const Sp=new iO,sO=new aO(Sp.registerPendingError);function uO(n){Sp.enqueueTask(sO.create(n))}const dc="dnd-core/ADD_SOURCE",hc="dnd-core/ADD_TARGET",pc="dnd-core/REMOVE_SOURCE",ns="dnd-core/REMOVE_TARGET";function cO(n){return{type:dc,payload:{sourceId:n}}}function fO(n){return{type:hc,payload:{targetId:n}}}function lO(n){return{type:pc,payload:{sourceId:n}}}function dO(n){return{type:ns,payload:{targetId:n}}}function hO(n){Ae(typeof n.canDrag=="function","Expected canDrag to be a function."),Ae(typeof n.beginDrag=="function","Expected beginDrag to be a function."),Ae(typeof n.endDrag=="function","Expected endDrag to be a function.")}function pO(n){Ae(typeof n.canDrop=="function","Expected canDrop to be a function."),Ae(typeof n.hover=="function","Expected hover to be a function."),Ae(typeof n.drop=="function","Expected beginDrag to be a function.")}function vc(n,e){if(e&&Array.isArray(n)){n.forEach(t=>vc(t,!1));return}Ae(typeof n=="string"||typeof n=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var On;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(On||(On={}));let vO=0;function gO(){return vO++}function mO(n){const e=gO().toString();switch(n){case On.SOURCE:return`S${e}`;case On.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${n}`)}}function Op(n){switch(n[0]){case"S":return On.SOURCE;case"T":return On.TARGET;default:throw new Error(`Cannot parse handler ID: ${n}`)}}function Ep(n,e){const t=n.entries();let r=!1;do{const{done:o,value:[,s]}=t.next();if(s===e)return!0;r=!!o}while(!r);return!1}class bO{addSource(e,t){vc(e),hO(t);const r=this.addHandler(On.SOURCE,e,t);return this.store.dispatch(cO(r)),r}addTarget(e,t){vc(e,!0),pO(t);const r=this.addHandler(On.TARGET,e,t);return this.store.dispatch(fO(r)),r}containsHandler(e){return Ep(this.dragSources,e)||Ep(this.dropTargets,e)}getSource(e,t=!1){return Ae(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ae(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ae(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ae(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Op(e)===On.SOURCE}isTargetId(e){return Op(e)===On.TARGET}removeSource(e){Ae(this.getSource(e),"Expected an existing source."),this.store.dispatch(lO(e)),uO(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ae(this.getTarget(e),"Expected an existing target."),this.store.dispatch(dO(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ae(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ae(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const o=mO(e);return this.types.set(o,t),e===On.SOURCE?this.dragSources.set(o,r):e===On.TARGET&&this.dropTargets.set(o,r),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const yO=(n,e)=>n===e;function _O(n,e){return!n&&!e?!0:!n||!e?!1:n.x===e.x&&n.y===e.y}function wO(n,e,t=yO){if(n.length!==e.length)return!1;for(let r=0;r<n.length;++r)if(!t(n[r],e[r]))return!1;return!0}function SO(n=jo,e){switch(e.type){case Qa:break;case dc:case hc:case ns:case pc:return jo;case Za:case cc:case ts:case es:default:return lc}const{targetIds:t=[],prevTargetIds:r=[]}=e.payload,o=AS(t,r);if(!(o.length>0||!wO(t,r)))return jo;const c=r[r.length-1],f=t[t.length-1];return c!==f&&(c&&o.push(c),f&&o.push(f)),o}function OO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function EO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){OO(n,o,t[o])})}return n}const Ip={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function IO(n=Ip,e){const{payload:t}=e;switch(e.type){case uc:case Za:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case Qa:return _O(n.clientOffset,t.clientOffset)?n:EO({},n,{clientOffset:t.clientOffset});case ts:case es:return Ip;default:return n}}function AO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $i(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){AO(n,o,t[o])})}return n}const TO={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function xO(n=TO,e){const{payload:t}=e;switch(e.type){case Za:return $i({},n,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case cc:return $i({},n,{isSourcePublic:!0});case Qa:return $i({},n,{targetIds:t.targetIds});case ns:return n.targetIds.indexOf(t.targetId)===-1?n:$i({},n,{targetIds:IS(n.targetIds,t.targetId)});case es:return $i({},n,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case ts:return $i({},n,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function NO(n=0,e){switch(e.type){case dc:case hc:return n+1;case pc:case ns:return n-1;default:return n}}function DO(n=0){return n+1}function CO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function PO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){CO(n,o,t[o])})}return n}function MO(n={},e){return{dirtyHandlerIds:SO(n.dirtyHandlerIds,{type:e.type,payload:PO({},e.payload,{prevTargetIds:ES(n,"dragOperation.targetIds",[])})}),dragOffset:IO(n.dragOffset,e),refCount:NO(n.refCount,e),dragOperation:xO(n.dragOperation,e),stateId:DO(n.stateId)}}function RO(n,e=void 0,t={},r=!1){const o=LO(r),s=new tO(o,new bO(o)),c=new KS(o,s),f=n(c,e,t);return c.receiveBackend(f),c}function LO(n){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return vp(MO,n&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function kO(n,e){if(n==null)return{};var t=BO(n,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function BO(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}let Ap=0;const rs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var jO=R.memo(function(e){var{children:t}=e,r=kO(e,["children"]);const[o,s]=FO(r);return R.useEffect(()=>{if(s){const c=Tp();return++Ap,()=>{--Ap===0&&(c[rs]=null)}}},[]),Q.jsx(lp.Provider,{value:o,children:t})});function FO(n){if("manager"in n)return[{dragDropManager:n.manager},!1];const e=$O(n.backend,n.context,n.options,n.debugMode),t=!n.context;return[e,t]}function $O(n,e=Tp(),t,r){const o=e;return o[rs]||(o[rs]={dragDropManager:RO(n,e,t,r)}),o[rs]}function Tp(){return typeof global<"u"?global:window}var gc,xp;function VO(){return xp||(xp=1,gc=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!n(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){var c=s[o];if(!n(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}),gc}var WO=VO();const UO=po(WO),pi=typeof window<"u"?R.useLayoutEffect:R.useEffect;function zO(n,e,t){const[r,o]=R.useState(()=>e(n)),s=R.useCallback(()=>{const c=e(n);UO(r,c)||(o(c),t&&t())},[r,n,t]);return pi(s),[r,s]}function HO(n,e,t){const[r,o]=zO(n,e,t);return pi(function(){const c=n.getHandlerId();if(c!=null)return n.subscribeToStateChange(o,{handlerIds:[c]})},[n,o]),r}function Np(n,e,t){return HO(e,n||(()=>({})),()=>t.reconnect())}function Dp(n,e){const t=[...e||[]];return e==null&&typeof n!="function"&&t.push(n),R.useMemo(()=>typeof n=="function"?n():n,t)}function qO(n){return R.useMemo(()=>n.hooks.dragSource(),[n])}function GO(n){return R.useMemo(()=>n.hooks.dragPreview(),[n])}let mc=!1,bc=!1;class YO{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ae(!mc,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return mc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{mc=!1}}isDragging(){if(!this.sourceId)return!1;Ae(!bc,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return bc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{bc=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let yc=!1;class JO{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ae(!yc,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return yc=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{yc=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function KO(n,e,t){const r=t.getRegistry(),o=r.addTarget(n,e);return[o,()=>r.removeTarget(o)]}function XO(n,e,t){const r=t.getRegistry(),o=r.addSource(n,e);return[o,()=>r.removeSource(o)]}function _c(n,e,t,r){let o;if(o!==void 0)return!!o;if(n===e)return!0;if(typeof n!="object"||!n||typeof e!="object"||!e)return!1;const s=Object.keys(n),c=Object.keys(e);if(s.length!==c.length)return!1;const f=Object.prototype.hasOwnProperty.bind(e);for(let d=0;d<s.length;d++){const p=s[d];if(!f(p))return!1;const v=n[p],b=e[p];if(o=void 0,o===!1||o===void 0&&v!==b)return!1}return!0}function wc(n){return n!==null&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function ZO(n){if(typeof n.type=="string")return;const e=n.type.displayName||n.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function QO(n){return(e=null,t=null)=>{if(!R.isValidElement(e)){const s=e;return n(s,t),s}const r=e;return ZO(r),eE(r,t?s=>n(s,t):n)}}function Cp(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];if(t.endsWith("Ref"))e[t]=n[t];else{const o=QO(r);e[t]=()=>o}}),e}function Pp(n,e){typeof n=="function"?n(e):n.current=e}function eE(n,e){const t=n.ref;return Ae(typeof t!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),t?R.cloneElement(n,{ref:r=>{Pp(t,r),Pp(e,r)}}):R.cloneElement(n,{ref:e})}class tE{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!_c(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!_c(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Cp({dragSource:(t,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,wc(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,wc(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class nE{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!_c(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Cp({dropTarget:(t,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,wc(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Vi(){const{dragDropManager:n}=R.useContext(lp);return Ae(n!=null,"Expected drag drop context"),n}function rE(n,e){const t=Vi(),r=R.useMemo(()=>new tE(t.getBackend()),[t]);return pi(()=>(r.dragSourceOptions=n||null,r.reconnect(),()=>r.disconnectDragSource()),[r,n]),pi(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function iE(){const n=Vi();return R.useMemo(()=>new YO(n),[n])}class oE{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(t):r={},r??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const r=this.spec,o=this.monitor,{isDragging:s}=r;return s?s(o):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:o}=e;o&&o(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function aE(n,e,t){const r=R.useMemo(()=>new oE(n,e,t),[e,t]);return R.useEffect(()=>{r.spec=n},[n]),r}function sE(n){return R.useMemo(()=>{const e=n.type;return Ae(e!=null,"spec.type must be defined"),e},[n])}function uE(n,e,t){const r=Vi(),o=aE(n,e,t),s=sE(n);pi(function(){if(s!=null){const[f,d]=XO(s,o,r);return e.receiveHandlerId(f),t.receiveHandlerId(f),d}},[r,e,t,o,s])}function cE(n,e){const t=Dp(n,e);Ae(!t.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=iE(),o=rE(t.options,t.previewOptions);return uE(t,r,o),[Np(t.collect,r,o),qO(o),GO(o)]}function fE(n){return R.useMemo(()=>n.hooks.dropTarget(),[n])}function lE(n){const e=Vi(),t=R.useMemo(()=>new nE(e.getBackend()),[e]);return pi(()=>(t.dropTargetOptions=n||null,t.reconnect(),()=>t.disconnectDropTarget()),[n]),t}function dE(){const n=Vi();return R.useMemo(()=>new JO(n),[n])}function hE(n){const{accept:e}=n;return R.useMemo(()=>(Ae(n.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class pE{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function vE(n,e){const t=R.useMemo(()=>new pE(n,e),[e]);return R.useEffect(()=>{t.spec=n},[n]),t}function gE(n,e,t){const r=Vi(),o=vE(n,e),s=hE(n);pi(function(){const[f,d]=KO(s,o,r);return e.receiveHandlerId(f),t.receiveHandlerId(f),d},[r,e,o,t,s.map(c=>c.toString()).join("|")])}function Sc(n,e){const t=Dp(n,e),r=dE(),o=lE(t.options);return gE(t,r,o),[Np(t.collect,r,o),fE(o)]}var Oc={exports:{}};var Mp;function mE(){return Mp||(Mp=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(s=o(s,r(f)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var f in s)e.call(s,f)&&s[f]&&(c=o(c,f));return c}function o(s,c){return c?s?s+" "+c:s+c:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(Oc)),Oc.exports}var bE=mE();const Un=po(bE),Rp=n=>!!n&&n[0]==="o",Lp=ho.unstable_batchedUpdates,Fo=(n,e)=>n===!0||!!(n&&n[e]),En=(n,e)=>typeof n=="function"?n(e):n,yE="_szhsinMenu",_E=n=>n[yE],is=(n,e)=>(e&&Object.keys(e).forEach(t=>{const r=n[t],o=e[t];typeof o=="function"&&r?n[t]=(...s)=>{o(...s),r(...s)}:n[t]=o}),n),wE=n=>{if(typeof n!="string")return{top:0,right:0,bottom:0,left:0};const e=n.trim().split(/\s+/,4).map(parseFloat),t=isNaN(e[0])?0:e[0],r=isNaN(e[1])?t:e[1];return{top:t,right:r,bottom:isNaN(e[2])?t:e[2],left:isNaN(e[3])?r:e[3]}},Ec=n=>{for(;n;){if(n=n.parentNode,!n||n===document.body||!n.parentNode)return;const{overflow:e,overflowX:t,overflowY:r}=getComputedStyle(n);if(/auto|scroll|overlay|hidden/.test(e+r+t))return n}};function kp(n,e){return{"aria-disabled":n||void 0,tabIndex:e?0:-1}}function Bp(n,e){for(let t=0;t<n.length;t++)if(n[t]===e)return t;return-1}const os=({block:n,element:e,modifiers:t,className:r})=>R.useMemo(()=>{const o=e?`${n}__${e}`:n;let s=o;t&&Object.keys(t).forEach(f=>{const d=t[f];d&&(s+=` ${o}--${d===!0?f:`${f}-${d}`}`)});let c=typeof r=="function"?r(t):r;return typeof c=="string"&&(c=c.trim(),c&&(s+=` ${c}`)),s},[n,e,t,r]),SE="szh-menu-container",as="szh-menu",OE="arrow",EE="item",jp=R.createContext(),Fp=R.createContext({}),$p=R.createContext({}),Vp=R.createContext({}),IE=R.createContext({}),Ic=R.createContext({}),zn=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),mt=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),$o=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Vo=Object.freeze({FIRST:"first",LAST:"last"}),AE=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Wp="absolute",TE="none",xE="menuitem",Ac={preventScroll:!0},NE=({className:n,containerRef:e,containerProps:t,children:r,isOpen:o,theming:s,transition:c,onClose:f})=>{const d=Fo(c,"item"),p=({key:b})=>{b===zn.ESC&&En(f,{key:b,reason:$o.CANCEL})},v=b=>{o&&!b.currentTarget.contains(b.relatedTarget)&&En(f,{reason:$o.BLUR})};return Q.jsx("div",{...is({onKeyDown:p,onBlur:v},t),className:os({block:SE,modifiers:R.useMemo(()=>({theme:s,itemTransition:d}),[s,d]),className:n}),style:{position:"absolute",...t?.style},ref:e,children:r})},DE=()=>{let n,e=0;return{toggle:t=>{t?e++:e--,e=Math.max(e,0)},on:(t,r,o)=>{e?n||(n=setTimeout(()=>{n=0,r()},t)):o?.()},off:()=>{n&&(clearTimeout(n),n=0)}}},CE=n=>{const[e,t]=R.useState(),o=R.useRef({items:[],hoverIndex:-1,sorted:!1}).current,s=R.useCallback((f,d)=>{const{items:p}=o;if(!f)o.items=[];else if(d)p.push(f);else{const v=p.indexOf(f);v>-1&&(p.splice(v,1),f.contains(document.activeElement)&&(n.current.focus(Ac),t()))}o.hoverIndex=-1,o.sorted=!1},[o,n]),c=R.useCallback((f,d,p)=>{const{items:v,hoverIndex:b}=o,w=()=>{if(o.sorted)return;const S=n.current.querySelectorAll(".szh-menu__item");v.sort((A,x)=>Bp(S,A)-Bp(S,x)),o.sorted=!0};let y=-1,O;switch(f){case mt.RESET:break;case mt.SET:O=d;break;case mt.UNSET:O=S=>S===d?void 0:S;break;case mt.FIRST:w(),y=0,O=v[y];break;case mt.LAST:w(),y=v.length-1,O=v[y];break;case mt.SET_INDEX:w(),y=p,O=v[y];break;case mt.INCREASE:w(),y=b,y<0&&(y=v.indexOf(d)),y++,y>=v.length&&(y=0),O=v[y];break;case mt.DECREASE:w(),y=b,y<0&&(y=v.indexOf(d)),y--,y<0&&(y=v.length-1),O=v[y];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${f}`)}O||(y=-1),t(O),o.hoverIndex=y},[n,o]);return{hoverItem:e,dispatch:c,updateItems:s}},Up=(n,e)=>Math.round(n)===e?n:e,PE=n=>{const e=n.getBoundingClientRect();return e.width=Up(e.width,n.offsetWidth),e.height=Up(e.height,n.offsetHeight),e},ME=(n,e,t,r)=>{const o=PE(e),s=n.getBoundingClientRect(),c=t===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:t.getBoundingClientRect(),f=wE(r),d=O=>O+s.left-c.left-f.left,p=O=>O+s.left+o.width-c.right+f.right,v=O=>O+s.top-c.top-f.top,b=O=>O+s.top+o.height-c.bottom+f.bottom;return{menuRect:o,containerRect:s,getLeftOverflow:d,getRightOverflow:p,getTopOverflow:v,getBottomOverflow:b,confineHorizontally:O=>{let S=d(O);if(S<0)O-=S;else{const A=p(O);A>0&&(O-=A,S=d(O),S<0&&(O-=S))}return O},confineVertically:O=>{let S=v(O);if(S<0)O-=S;else{const A=b(O);A>0&&(O-=A,S=v(O),S<0&&(O-=S))}return O}}},RE=({arrowRef:n,menuY:e,anchorRect:t,containerRect:r,menuRect:o})=>{let s=t.top-r.top-e+t.height/2;const c=n.current.offsetHeight*1.25;return s=Math.max(c,s),s=Math.min(s,o.height-c),s},LE=({anchorRect:n,containerRect:e,menuRect:t,placeLeftorRightY:r,placeLeftX:o,placeRightX:s,getLeftOverflow:c,getRightOverflow:f,confineHorizontally:d,confineVertically:p,arrowRef:v,arrow:b,direction:w,position:y})=>{let O=w,S=r;y!=="initial"&&(S=p(S),y==="anchor"&&(S=Math.min(S,n.bottom-e.top),S=Math.max(S,n.top-e.top-t.height)));let A,x,k;return O==="left"?(A=o,y!=="initial"&&(x=c(A),x<0&&(k=f(s),(k<=0||-x>k)&&(A=s,O="right")))):(A=s,y!=="initial"&&(k=f(A),k>0&&(x=c(o),(x>=0||-x<k)&&(A=o,O="left")))),y==="auto"&&(A=d(A)),{arrowY:b?RE({menuY:S,arrowRef:v,anchorRect:n,containerRect:e,menuRect:t}):void 0,x:A,y:S,computedDirection:O}},kE=({arrowRef:n,menuX:e,anchorRect:t,containerRect:r,menuRect:o})=>{let s=t.left-r.left-e+t.width/2;const c=n.current.offsetWidth*1.25;return s=Math.max(c,s),s=Math.min(s,o.width-c),s},BE=({anchorRect:n,containerRect:e,menuRect:t,placeToporBottomX:r,placeTopY:o,placeBottomY:s,getTopOverflow:c,getBottomOverflow:f,confineHorizontally:d,confineVertically:p,arrowRef:v,arrow:b,direction:w,position:y})=>{let O=w==="top"?"top":"bottom",S=r;y!=="initial"&&(S=d(S),y==="anchor"&&(S=Math.min(S,n.right-e.left),S=Math.max(S,n.left-e.left-t.width)));let A,x,k;return O==="top"?(A=o,y!=="initial"&&(x=c(A),x<0&&(k=f(s),(k<=0||-x>k)&&(A=s,O="bottom")))):(A=s,y!=="initial"&&(k=f(A),k>0&&(x=c(o),(x>=0||-x<k)&&(A=o,O="top")))),y==="auto"&&(A=p(A)),{arrowX:b?kE({menuX:S,arrowRef:v,anchorRect:n,containerRect:e,menuRect:t}):void 0,x:S,y:A,computedDirection:O}},jE=({arrow:n,align:e,direction:t,gap:r,shift:o,position:s,anchorRect:c,arrowRef:f,positionHelpers:d})=>{const{menuRect:p,containerRect:v}=d,b=t==="left"||t==="right";let w=b?r:o,y=b?o:r;if(n){const q=f.current;b?w+=q.offsetWidth:y+=q.offsetHeight}const O=c.left-v.left-p.width-w,S=c.right-v.left+w,A=c.top-v.top-p.height-y,x=c.bottom-v.top+y;let k,G;e==="end"?(k=c.right-v.left-p.width,G=c.bottom-v.top-p.height):e==="center"?(k=c.left-v.left-(p.width-c.width)/2,G=c.top-v.top-(p.height-c.height)/2):(k=c.left-v.left,G=c.top-v.top),k+=w,G+=y;const oe={...d,anchorRect:c,placeLeftX:O,placeRightX:S,placeLeftorRightY:G,placeTopY:A,placeBottomY:x,placeToporBottomX:k,arrowRef:f,arrow:n,direction:t,position:s};switch(t){case"left":case"right":return LE(oe);default:return BE(oe)}},ss=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function zp(n,e){typeof n=="function"?n(e):n.current=e}const Tc=(n,e)=>R.useMemo(()=>n?e?t=>{zp(n,t),zp(e,t)}:n:e,[n,e]),Hp=-9999,FE=({ariaLabel:n,menuClassName:e,menuStyle:t,arrow:r,arrowProps:o={},anchorPoint:s,anchorRef:c,containerRef:f,containerProps:d,externalRef:p,parentScrollingRef:v,align:b="start",direction:w="bottom",position:y="auto",overflow:O="visible",setDownOverflow:S,repositionFlag:A,captureFocus:x=!0,state:k,endTransition:G,isDisabled:oe,menuItemFocus:q,gap:ye=0,shift:L=0,children:F,onClose:ae,focusProps:we,...ce})=>{const[Se,he]=R.useState({x:Hp,y:Hp}),[ct,ht]=R.useState({}),[ft,xt]=R.useState(),[ue,nn]=R.useState(w),[Pt]=R.useState(DE),[Le,wr]=R.useReducer(ne=>ne+1,1),{transition:pe,boundingBoxRef:Lt,boundingBoxPadding:rn,rootMenuRef:Ce,rootAnchorRef:ir,scrollNodesRef:$t,reposition:Vt,viewScroll:Sr,submenuCloseDelay:pt}=R.useContext(Ic),{submenuCtx:In,reposSubmenu:An=A}=R.useContext($p),Ke=R.useRef(),on=R.useRef(),Tn=R.useRef(!1),{hoverItem:at,dispatch:vt,updateItems:Gn}=CE(Ke),Qe=Rp(k),bt=Fo(pe,"open"),St=Fo(pe,"close"),P=$t.current,W=ne=>{switch(ne.key){case zn.HOME:vt(mt.FIRST);break;case zn.END:vt(mt.LAST);break;case zn.UP:vt(mt.DECREASE,at);break;case zn.DOWN:vt(mt.INCREASE,at);break;case zn.SPACE:ne.target&&ne.target.className.indexOf(as)!==-1&&ne.preventDefault();return;default:return}ne.preventDefault(),ne.stopPropagation()},U=()=>{k==="closing"&&xt(),En(G)},ee=ne=>{ne.stopPropagation(),Pt.on(pt,()=>{vt(mt.RESET),Ke.current.focus(Ac)})},le=ne=>{ne.target===ne.currentTarget&&Pt.off()},Be=R.useCallback(ne=>{const Y=Ke.current,K=f.current;if(!Y||!K)return;const te=c?c.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.y,width:0,height:0}:null;if(!te){process.env.NODE_ENV!=="production"&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open.");return}P.menu||(P.menu=(Lt?Lt.current:Ec(Ce.current))||window);const X=ME(K,Y,P.menu,rn);let{arrowX:Ee,arrowY:He,x:et,y:yt,computedDirection:Ji}=jE({arrow:r,align:b,direction:w,gap:ye,shift:L,position:y,anchorRect:te,arrowRef:on,positionHelpers:X});const{menuRect:Xo}=X,Ki=Xo.height;if(!ne&&O!=="visible"){const{getTopOverflow:Zo,getBottomOverflow:zf}=X;let Or,Qo;const ea=zf(yt);if(ea>0)Or=Ki-ea,Qo=ea;else{const Xi=Zo(yt);Xi<0&&(Or=Ki+Xi,Qo=0-Xi,Or>=0&&(yt-=Xi))}Or>=0&&xt({height:Or,overflowAmt:Qo})}r&&ht({x:Ee,y:He}),he({x:et,y:yt}),nn(Ji)},[r,b,rn,w,ye,L,y,O,s,c,f,Lt,Ce,P]);ss(()=>{Qe&&(Be(),Tn.current&&wr()),Tn.current=Qe},[Qe,Be,An]),ss(()=>{ft&&!S&&(Ke.current.scrollTop=0)},[ft,S]),ss(()=>Gn,[Gn]),R.useEffect(()=>{let{menu:ne}=P;if(!Qe||!ne)return;if(ne=ne.addEventListener?ne:window,!P.anchors){P.anchors=[];let X=Ec(ir&&ir.current);for(;X&&X!==ne;)P.anchors.push(X),X=Ec(X)}let Y=Sr;if(P.anchors.length&&Y==="initial"&&(Y="auto"),Y==="initial")return;const K=()=>{Y==="auto"?Lp(()=>Be(!0)):En(ae,{reason:$o.SCROLL})},te=P.anchors.concat(Sr!=="initial"?ne:[]);return te.forEach(X=>X.addEventListener("scroll",K)),()=>te.forEach(X=>X.removeEventListener("scroll",K))},[ir,P,Qe,ae,Sr,Be]);const nt=!!ft&&ft.overflowAmt>0;R.useEffect(()=>{if(nt||!Qe||!v)return;const ne=()=>Lp(Be),Y=v.current;return Y.addEventListener("scroll",ne),()=>Y.removeEventListener("scroll",ne)},[Qe,nt,v,Be]),R.useEffect(()=>{if(!Qe||typeof ResizeObserver!="function"||Vt==="initial")return;const ne=[],Y=new ResizeObserver(X=>X.forEach(({target:Ee})=>{ne.indexOf(Ee)<0?ne.push(Ee):ho.flushSync(()=>{Be(),wr()})})),K={box:"border-box"};Y.observe(Ke.current,K);const te=c?.current;return te&&Y.observe(te,K),()=>Y.disconnect()},[Qe,Vt,c,Be]),R.useEffect(()=>{if(!Qe){vt(mt.RESET),St||xt();return}const{position:ne,alwaysUpdate:Y}=q||{},K=()=>{ne===Vo.FIRST?vt(mt.FIRST):ne===Vo.LAST?vt(mt.LAST):ne>=-1&&vt(mt.SET_INDEX,void 0,ne)};if(Y)K();else if(x){const te=setTimeout(()=>{const X=Ke.current;X&&!X.contains(document.activeElement)&&(X.focus(Ac),K())},bt?170:100);return()=>clearTimeout(te)}},[Qe,bt,St,x,q,vt]);const Nt=R.useMemo(()=>({isParentOpen:Qe,submenuCtx:Pt,dispatch:vt,updateItems:Gn}),[Qe,Pt,vt,Gn]);let it,I;ft&&(S?I=ft.overflowAmt:it=ft.height);const N=R.useMemo(()=>({reposSubmenu:Le,submenuCtx:Pt,overflow:O,overflowAmt:I,parentMenuRef:Ke,parentDir:ue}),[Le,Pt,O,I,ue]),C=it>=0?{maxHeight:it,overflow:O}:void 0,j=R.useMemo(()=>({state:k,align:b,dir:ue}),[k,b,ue]),Z=R.useMemo(()=>({dir:ue}),[ue]),_e=os({block:as,element:OE,modifiers:Z,className:o.className}),Me=Q.jsxs("ul",{role:"menu","aria-label":n,...kp(oe),...is({onPointerEnter:In?.off,onPointerMove:ee,onPointerLeave:le,onKeyDown:W,onAnimationEnd:U},ce),ref:Tc(p,Ke),className:os({block:as,modifiers:j,className:e}),style:{...t,...C,margin:0,display:k==="closed"?"none":void 0,position:Wp,left:Se.x,top:Se.y},children:[r&&Q.jsx("li",{"aria-hidden":!0,...o,className:_e,style:{display:"block",position:Wp,left:ct.x,top:ct.y,...o.style},ref:on}),Q.jsx($p.Provider,{value:N,children:Q.jsx(Fp.Provider,{value:Nt,children:Q.jsx(jp.Provider,{value:at,children:En(F,j)})})})]});return d?Q.jsx(NE,{...d,isOpen:Qe,children:Me}):Me},qp=R.forwardRef(function({"aria-label":e,className:t,containerProps:r,initialMounted:o,unmountOnClose:s,transition:c,transitionTimeout:f,boundingBoxRef:d,boundingBoxPadding:p,reposition:v="auto",submenuOpenDelay:b=300,submenuCloseDelay:w=150,viewScroll:y="initial",portal:O,theming:S,onItemClick:A,...x},k){const G=R.useRef(null),oe=R.useRef({}),{anchorRef:q,state:ye,onClose:L}=x,F=R.useMemo(()=>({initialMounted:o,unmountOnClose:s,transition:c,transitionTimeout:f,boundingBoxRef:d,boundingBoxPadding:p,rootMenuRef:G,rootAnchorRef:q,scrollNodesRef:oe,reposition:v,viewScroll:y,submenuOpenDelay:b,submenuCloseDelay:w}),[o,s,c,f,q,d,p,v,y,b,w]),ae=R.useMemo(()=>({handleClick(ce,Se){ce.stopPropagation||En(A,ce);let he=ce.keepOpen;he===void 0&&(he=Se&&ce.key===zn.SPACE),he||En(L,{value:ce.value,key:ce.key,reason:$o.CLICK})},handleClose(ce){En(L,{key:ce,reason:$o.CLICK})}}),[A,L]);if(!ye)return null;const we=Q.jsx(Ic.Provider,{value:F,children:Q.jsx(Vp.Provider,{value:ae,children:Q.jsx(FE,{...x,ariaLabel:e||"Menu",externalRef:k,containerRef:G,containerProps:{className:t,containerRef:G,containerProps:r,theming:S,transition:c,onClose:L}})})});return O===!0&&typeof document<"u"?ho.createPortal(we,document.body):O?O.target?ho.createPortal(we,O.target):O.stablePosition?null:we:we}),xc=0,Nc=1,us=2,cs=3,fs=4,$E=5,Gp=6,VE=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Yp=n=>({_s:n,status:VE[n],isEnter:n<cs,isMounted:n!==Gp,isResolved:n===us||n>fs}),Dc=n=>n?Gp:$E,WE=(n,e)=>{switch(n){case Nc:case xc:return us;case fs:case cs:return Dc(e)}},UE=n=>typeof n=="object"?[n.enter,n.exit]:[n,n],Cc=setTimeout,zE=(n,e)=>Cc(()=>{isNaN(document.body.offsetTop)||n(e+1)},0),Jp=(n,e,t,r,o)=>{clearTimeout(r.current);const s=Yp(n);e(s),t.current=s,o&&o({current:s})},HE=({enter:n=!0,exit:e=!0,preEnter:t,preExit:r,timeout:o,initialEntered:s,mountOnEnter:c,unmountOnExit:f,onStateChange:d}={})=>{const[p,v]=R.useState(()=>Yp(s?us:Dc(c))),b=R.useRef(p),w=R.useRef(0),[y,O]=UE(o),S=R.useCallback(()=>{const A=WE(b.current._s,f);A&&Jp(A,v,b,w,d)},[d,f]);return[p,R.useCallback(A=>{const x=G=>{switch(Jp(G,v,b,w,d),G){case Nc:y>=0&&(w.current=Cc(S,y));break;case fs:O>=0&&(w.current=Cc(S,O));break;case xc:case cs:w.current=zE(x,G);break}},k=b.current.isEnter;typeof A!="boolean"&&(A=!k),A?!k&&x(n?t?xc:Nc:us):k&&x(e?r?cs:fs:Dc(f))},[S,d,n,e,t,r,y,O,f]),S]},Pc=({initialOpen:n,initialMounted:e,unmountOnClose:t,transition:r,transitionTimeout:o=500,onMenuChange:s}={})=>{const c=Fo(r,"open"),f=Fo(r,"close"),[{status:d},p,v]=HE({initialEntered:n,mountOnEnter:!e,unmountOnExit:t,timeout:o,enter:c,exit:f,onStateChange:R.useCallback(({current:{isEnter:b,isResolved:w}})=>{!s||b&&c&&w||!b&&f&&w||s({open:b})},[s,c,f])});return[{state:AE[d],endTransition:v},p]},qE=n=>{const[e,t]=Pc(n),[r,o]=R.useState(),s=(c,f)=>{o({position:c,alwaysUpdate:f}),t(!0)};return[{menuItemFocus:r,...e},t,s]},GE=(n,e)=>{if(process.env.NODE_ENV!=="production"&&typeof e!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[t]=R.useState({});return{onMouseDown:()=>{t.v=n&&n!=="closed"},onClick:r=>t.v?t.v=!1:e(!0,r)}},YE=parseInt(R.version)<19,Kp=R.forwardRef(function({"aria-label":e,captureFocus:t,initialOpen:r,menuButton:o,instanceRef:s,onMenuChange:c,...f},d){const[p,v,b]=qE({...f,onMenuChange:c}),{state:w}=p,y=Rp(w),O=R.useRef(null),S=GE(w,(q,ye)=>b(ye.detail?void 0:Vo.FIRST)),A=R.useCallback(q=>{v(!1),q.key&&O.current.focus()},[v]),x=q=>{switch(q.key){case zn.UP:b(Vo.LAST);break;case zn.DOWN:b(Vo.FIRST);break;default:return}q.preventDefault()},k=En(o,{open:y});if(!k||!k.type)throw new Error("Menu requires a menuButton prop.");const G={...is({onKeyDown:x,...S},k.props),ref:Tc(YE?k.ref:k.props.ref,O)};_E(k.type)==="MenuButton"&&(G.isOpen=y);const oe=R.cloneElement(k,G);return R.useImperativeHandle(s,()=>({openMenu:b,closeMenu:()=>v(!1)})),Q.jsxs(R.Fragment,{children:[oe,Q.jsx(qp,{...f,...p,"aria-label":e||(typeof k.props.children=="string"?k.props.children:"Menu"),anchorRef:O,ref:d,onClose:A})]})}),JE=(n,e)=>{const t=R.memo(e),r=R.forwardRef((o,s)=>{const c=R.useRef(null);return Q.jsx(t,{...o,itemRef:c,externalRef:s,isHovering:R.useContext(jp)===c.current})});return r.displayName=`WithHovering(${n})`,r},KE=n=>{const[e,t]=R.useState(!1);return R.useEffect(()=>{!n&&t(!1)},[n]),[e,()=>!e&&t(!0),()=>t(!1)]},XE=(n,e,t)=>{ss(()=>{if(process.env.NODE_ENV!=="production"&&!t)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${e.current.outerHTML}`);if(n)return;const r=e.current;return t(r,!0),()=>{t(r)}},[n,e,t])},ZE=(n,e,t,r)=>{const[o,s,c]=KE(t),{submenuCloseDelay:f}=R.useContext(Ic),{isParentOpen:d,submenuCtx:p,dispatch:v,updateItems:b}=R.useContext(Fp),w=()=>{!t&&!r&&v(mt.SET,n.current)},y=()=>{!r&&v(mt.UNSET,n.current)},O=x=>{t&&!x.currentTarget.contains(x.relatedTarget)&&y()},S=x=>{r||(x.stopPropagation(),s(),p.on(f,w,w))},A=(x,k)=>{c(),p.off(),!k&&y()};return XE(r,n,b),R.useEffect(()=>{t&&d&&e.current&&e.current.focus()},[e,t,d]),{mouseOver:o,setHover:w,onBlur:O,onPointerMove:S,onPointerLeave:A}},ls=JE("MenuItem",function({className:e,value:t,href:r,type:o,checked:s,disabled:c,children:f,onClick:d,isHovering:p,itemRef:v,externalRef:b,...w}){const y=!!c,{mouseOver:O,setHover:S,...A}=ZE(v,v,p,y),x=R.useContext(Vp),k=R.useContext(IE),G=o==="radio",oe=o==="checkbox",q=!!r&&!y&&!G&&!oe,ye=G?k.value===t:oe?!!s:!1,L=Se=>{if(y){Se.stopPropagation(),Se.preventDefault();return}const he={value:t,syntheticEvent:Se};Se.key!==void 0&&(he.key=Se.key),oe&&(he.checked=!ye),G&&(he.name=k.name),En(d,he),G&&En(k.onRadioChange,he),x.handleClick(he,oe||G)},F=Se=>{if(p)switch(Se.key){case zn.ENTER:Se.preventDefault();case zn.SPACE:q?v.current.click():L(Se)}},ae=R.useMemo(()=>({type:o,disabled:y,hover:O||p,checked:ye,anchor:q}),[o,y,O,p,ye,q]),we=is({...A,onPointerDown:S,onKeyDown:F,onClick:L},w),ce={role:G?"menuitemradio":oe?"menuitemcheckbox":xE,"aria-checked":G||oe?ye:void 0,...kp(y,p),...we,ref:Tc(b,v),className:os({block:as,element:EE,modifiers:ae,className:e}),children:R.useMemo(()=>En(f,ae),[f,ae])};return q?Q.jsx("li",{role:TE,children:Q.jsx("a",{href:r,...ce})}):Q.jsx("li",{...ce})});if(!R.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Xw)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function QE(n){n()}function e1(n){n||(n=QE,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),$w({reactionScheduler:n})}function t1(n){return $h(n)}var n1=1e4,r1=1e4,i1=(function(){function n(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=n1),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var o=Date.now();t.registrations.forEach(function(s,c){o-s.registeredAt>=r&&(t.finalize(s.value),t.registrations.delete(c))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(n.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){this.registrations.set(r,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(n.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(n.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,r1))}}),n})(),o1=typeof FinalizationRegistry<"u"?FinalizationRegistry:i1,Mc=new o1(function(n){var e;(e=n.reaction)===null||e===void 0||e.dispose(),n.reaction=null}),ds={exports:{}},Rc={};var Xp;function a1(){if(Xp)return Rc;Xp=1;var n=R;function e(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var t=typeof Object.is=="function"?Object.is:e,r=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function f(b,w){var y=w(),O=r({inst:{value:y,getSnapshot:w}}),S=O[0].inst,A=O[1];return s(function(){S.value=y,S.getSnapshot=w,d(S)&&A({inst:S})},[b,y,w]),o(function(){return d(S)&&A({inst:S}),b(function(){d(S)&&A({inst:S})})},[b]),c(y),y}function d(b){var w=b.getSnapshot;b=b.value;try{var y=w();return!t(b,y)}catch{return!0}}function p(b,w){return w()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return Rc.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,Rc}var Lc={};var Zp;function s1(){return Zp||(Zp=1,process.env.NODE_ENV!=="production"&&(function(){function n(y,O){return y===O&&(y!==0||1/y===1/O)||y!==y&&O!==O}function e(y,O){v||o.startTransition===void 0||(v=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var S=O();if(!b){var A=O();s(S,A)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b=!0)}A=c({inst:{value:S,getSnapshot:O}});var x=A[0].inst,k=A[1];return d(function(){x.value=S,x.getSnapshot=O,t(x)&&k({inst:x})},[y,S,O]),f(function(){return t(x)&&k({inst:x}),y(function(){t(x)&&k({inst:x})})},[y]),p(S),S}function t(y){var O=y.getSnapshot;y=y.value;try{var S=O();return!s(y,S)}catch{return!0}}function r(y,O){return O()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=R,s=typeof Object.is=="function"?Object.is:n,c=o.useState,f=o.useEffect,d=o.useLayoutEffect,p=o.useDebugValue,v=!1,b=!1,w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Lc.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:w,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Lc}var Qp;function u1(){return Qp||(Qp=1,process.env.NODE_ENV==="production"?ds.exports=a1():ds.exports=s1()),ds.exports}var c1=u1();function ev(n){n.reaction=new dr("observer".concat(n.name),function(){var e;n.stateVersion=Symbol(),(e=n.onStoreChange)===null||e===void 0||e.call(n)})}function f1(n,e){e===void 0&&(e="observed");var t=R.useRef(null);if(!t.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:e,subscribe:function(f){return Mc.unregister(r),r.onStoreChange=f,r.reaction||(ev(r),r.stateVersion=Symbol()),function(){var d;r.onStoreChange=null,(d=r.reaction)===null||d===void 0||d.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};t.current=r}var o=t.current;o.reaction||(ev(o),Mc.register(t,o,o)),R.useDebugValue(o.reaction,t1),c1.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot);var s,c;if(o.reaction.track(function(){try{s=n()}catch(f){c=f}}),c)throw c;return s}var kc,Bc,l1=!0,tv=!0,nv=typeof Symbol=="function"&&Symbol.for,d1=(Bc=(kc=Object.getOwnPropertyDescriptor(function(){},"name"))===null||kc===void 0?void 0:kc.configurable)!==null&&Bc!==void 0?Bc:!1,rv=nv?Symbol.for("react.forward_ref"):typeof R.forwardRef=="function"&&R.forwardRef(function(n){return null}).$$typeof,iv=nv?Symbol.for("react.memo"):typeof R.memo=="function"&&R.memo(function(n){return null}).$$typeof;function vr(n,e){var t;if(process.env.NODE_ENV,iv&&n.$$typeof===iv)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(t=void 0)!==null&&t!==void 0?t:!1,o=n,s=n.displayName||n.name;if(rv&&n.$$typeof===rv&&(r=!0,o=n.render,typeof o!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(f,d){return f1(function(){return o(f,d)},s)};return c.displayName=n.displayName,d1&&Object.defineProperty(c,"name",{value:n.name,writable:!0,configurable:!0}),n.contextTypes&&(c.contextTypes=n.contextTypes,process.env.NODE_ENV!=="production"&&tv&&(tv=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),r&&(c=R.forwardRef(c)),c=R.memo(c),p1(n,c),process.env.NODE_ENV!=="production"&&Object.defineProperty(c,"contextTypes",{set:function(){var f,d;throw new Error("[mobx-react-lite] `".concat(this.displayName||((f=this.type)===null||f===void 0?void 0:f.displayName)||((d=this.type)===null||d===void 0?void 0:d.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),c}var h1={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function p1(n,e){Object.keys(n).forEach(function(t){h1[t]||Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}process.env.NODE_ENV;var jc;e1(ho.unstable_batchedUpdates),jc=Mc.finalizeAllImmediately;function Fc(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function v1(n){if(Array.isArray(n))return n}function g1(n){if(Array.isArray(n))return Fc(n)}function m1(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function b1(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,av(r.key),r)}}function y1(n,e,t){return e&&b1(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function hs(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=$c(n))||e){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
97
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,c=!0,f=!1;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return c=d.done,d},e:function(d){f=!0,s=d},f:function(){try{c||t.return==null||t.return()}finally{if(f)throw s}}}}function Te(n,e,t){return(e=av(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function _1(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function w1(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,o,s,c,f=[],d=!0,p=!1;try{if(s=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;d=!1}else for(;!(d=(r=s.call(t)).done)&&(f.push(r.value),f.length!==e);d=!0);}catch(v){p=!0,o=v}finally{try{if(!d&&t.return!=null&&(c=t.return(),Object(c)!==c))return}finally{if(p)throw o}}return f}}function S1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
98
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
99
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ov(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function J(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ov(Object(t),!0).forEach(function(r){Te(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ov(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ps(n,e){return v1(n)||w1(n,e)||$c(n,e)||S1()}function Hn(n){return g1(n)||_1(n)||$c(n)||O1()}function E1(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function av(n){var e=E1(n,"string");return typeof e=="symbol"?e:e+""}function vs(n){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(n)}function $c(n,e){if(n){if(typeof n=="string")return Fc(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Fc(n,e):void 0}}var sv=function(){},Vc={},uv={},cv=null,fv={mark:sv,measure:sv};try{typeof window<"u"&&(Vc=window),typeof document<"u"&&(uv=document),typeof MutationObserver<"u"&&(cv=MutationObserver),typeof performance<"u"&&(fv=performance)}catch{}var I1=Vc.navigator||{},lv=I1.userAgent,dv=lv===void 0?"":lv,Vr=Vc,Ze=uv,hv=cv,gs=fv;Vr.document;var gr=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",pv=~dv.indexOf("MSIE")||~dv.indexOf("Trident/"),Wc,A1=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,T1=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,vv={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},x1={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},gv=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Tt="classic",Wo="duotone",mv="sharp",bv="sharp-duotone",yv="chisel",_v="etch",wv="jelly",Sv="jelly-duo",Ov="jelly-fill",Ev="notdog",Iv="notdog-duo",Av="slab",Tv="slab-press",xv="thumbprint",Nv="utility",Dv="utility-duo",Cv="utility-fill",Pv="whiteboard",N1="Classic",D1="Duotone",C1="Sharp",P1="Sharp Duotone",M1="Chisel",R1="Etch",L1="Jelly",k1="Jelly Duo",B1="Jelly Fill",j1="Notdog",F1="Notdog Duo",$1="Slab",V1="Slab Press",W1="Thumbprint",U1="Utility",z1="Utility Duo",H1="Utility Fill",q1="Whiteboard",Mv=[Tt,Wo,mv,bv,yv,_v,wv,Sv,Ov,Ev,Iv,Av,Tv,xv,Nv,Dv,Cv,Pv];Wc={},Te(Te(Te(Te(Te(Te(Te(Te(Te(Te(Wc,Tt,N1),Wo,D1),mv,C1),bv,P1),yv,M1),_v,R1),wv,L1),Sv,k1),Ov,B1),Ev,j1),Te(Te(Te(Te(Te(Te(Te(Te(Wc,Iv,F1),Av,$1),Tv,V1),xv,W1),Nv,U1),Dv,z1),Cv,H1),Pv,q1);var G1={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},Y1={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},J1=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),K1={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},Rv=["fak","fa-kit","fakd","fa-kit-duotone"],Lv={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},X1=["kit"],Z1="kit",Q1="kit-duotone",eI="Kit",tI="Kit Duotone";Te(Te({},Z1,eI),Q1,tI);var nI={kit:{"fa-kit":"fak"}},rI={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},iI={kit:{fak:"fa-kit"}},kv={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Uc,ms={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oI=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],aI="classic",sI="duotone",uI="sharp",cI="sharp-duotone",fI="chisel",lI="etch",dI="jelly",hI="jelly-duo",pI="jelly-fill",vI="notdog",gI="notdog-duo",mI="slab",bI="slab-press",yI="thumbprint",_I="utility",wI="utility-duo",SI="utility-fill",OI="whiteboard",EI="Classic",II="Duotone",AI="Sharp",TI="Sharp Duotone",xI="Chisel",NI="Etch",DI="Jelly",CI="Jelly Duo",PI="Jelly Fill",MI="Notdog",RI="Notdog Duo",LI="Slab",kI="Slab Press",BI="Thumbprint",jI="Utility",FI="Utility Duo",$I="Utility Fill",VI="Whiteboard";Uc={},Te(Te(Te(Te(Te(Te(Te(Te(Te(Te(Uc,aI,EI),sI,II),uI,AI),cI,TI),fI,xI),lI,NI),dI,DI),hI,CI),pI,PI),vI,MI),Te(Te(Te(Te(Te(Te(Te(Te(Uc,gI,RI),mI,LI),bI,kI),yI,BI),_I,jI),wI,FI),SI,$I),OI,VI);var WI="kit",UI="kit-duotone",zI="Kit",HI="Kit Duotone";Te(Te({},WI,zI),UI,HI);var qI={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},GI={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},zc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},YI=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],Bv=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(oI,YI),JI=["solid","regular","light","thin","duotone","brands","semibold"],jv=[1,2,3,4,5,6,7,8,9,10],KI=jv.concat([11,12,13,14,15,16,17,18,19,20]),XI=["aw","fw","pull-left","pull-right"],ZI=[].concat(Hn(Object.keys(GI)),JI,XI,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",ms.GROUP,ms.SWAP_OPACITY,ms.PRIMARY,ms.SECONDARY]).concat(jv.map(function(n){return"".concat(n,"x")})).concat(KI.map(function(n){return"w-".concat(n)})),QI={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},mr="___FONT_AWESOME___",Hc=16,Fv="fa",$v="svg-inline--fa",vi="data-fa-i2svg",qc="data-fa-pseudo-element",eA="data-fa-pseudo-element-pending",Gc="data-prefix",Yc="data-icon",Vv="fontawesome-i2svg",tA="async",nA=["HTML","HEAD","STYLE","SCRIPT"],Wv=["::before","::after",":before",":after"],Uv=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Uo(n){return new Proxy(n,{get:function(t,r){return r in t?t[r]:t[Tt]}})}var zv=J({},vv);zv[Tt]=J(J(J(J({},{"fa-duotone":"duotone"}),vv[Tt]),Lv.kit),Lv["kit-duotone"]);var rA=Uo(zv),Jc=J({},K1);Jc[Tt]=J(J(J(J({},{duotone:"fad"}),Jc[Tt]),kv.kit),kv["kit-duotone"]);var Hv=Uo(Jc),Kc=J({},zc);Kc[Tt]=J(J({},Kc[Tt]),iI.kit);var Xc=Uo(Kc),Zc=J({},qI);Zc[Tt]=J(J({},Zc[Tt]),nI.kit),Uo(Zc);var iA=A1,qv="fa-layers-text",oA=T1,aA=J({},G1);Uo(aA);var sA=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Qc=x1,uA=[].concat(Hn(X1),Hn(ZI)),zo=Vr.FontAwesomeConfig||{};function cA(n){var e=Ze.querySelector("script["+n+"]");if(e)return e.getAttribute(n)}function fA(n){return n===""?!0:n==="false"?!1:n==="true"?!0:n}if(Ze&&typeof Ze.querySelector=="function"){var lA=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];lA.forEach(function(n){var e=ps(n,2),t=e[0],r=e[1],o=fA(cA(t));o!=null&&(zo[r]=o)})}var Gv={styleDefault:"solid",familyDefault:Tt,cssPrefix:Fv,replacementClass:$v,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zo.familyPrefix&&(zo.cssPrefix=zo.familyPrefix);var Wi=J(J({},Gv),zo);Wi.autoReplaceSvg||(Wi.observeMutations=!1);var de={};Object.keys(Gv).forEach(function(n){Object.defineProperty(de,n,{enumerable:!0,set:function(t){Wi[n]=t,Ho.forEach(function(r){return r(de)})},get:function(){return Wi[n]}})}),Object.defineProperty(de,"familyPrefix",{enumerable:!0,set:function(e){Wi.cssPrefix=e,Ho.forEach(function(t){return t(de)})},get:function(){return Wi.cssPrefix}}),Vr.FontAwesomeConfig=de;var Ho=[];function dA(n){return Ho.push(n),function(){Ho.splice(Ho.indexOf(n),1)}}var Ui=Hc,rr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function hA(n){if(!(!n||!gr)){var e=Ze.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;for(var t=Ze.head.childNodes,r=null,o=t.length-1;o>-1;o--){var s=t[o],c=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(r=s)}return Ze.head.insertBefore(e,r),n}}var pA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Yv(){for(var n=12,e="";n-- >0;)e+=pA[Math.random()*62|0];return e}function zi(n){for(var e=[],t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function ef(n){return n.classList?zi(n.classList):(n.getAttribute("class")||"").split(" ").filter(function(e){return e})}function Jv(n){return"".concat(n).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function vA(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,'="').concat(Jv(n[t]),'" ')},"").trim()}function bs(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,": ").concat(n[t].trim(),";")},"")}function tf(n){return n.size!==rr.size||n.x!==rr.x||n.y!==rr.y||n.rotate!==rr.rotate||n.flipX||n.flipY}function gA(n){var e=n.transform,t=n.containerWidth,r=n.iconWidth,o={transform:"translate(".concat(t/2," 256)")},s="translate(".concat(e.x*32,", ").concat(e.y*32,") "),c="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),f="rotate(".concat(e.rotate," 0 0)"),d={transform:"".concat(s," ").concat(c," ").concat(f)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:d,path:p}}function mA(n){var e=n.transform,t=n.width,r=t===void 0?Hc:t,o=n.height,s=o===void 0?Hc:o,c="";return pv?c+="translate(".concat(e.x/Ui-r/2,"em, ").concat(e.y/Ui-s/2,"em) "):c+="translate(calc(-50% + ".concat(e.x/Ui,"em), calc(-50% + ").concat(e.y/Ui,"em)) "),c+="scale(".concat(e.size/Ui*(e.flipX?-1:1),", ").concat(e.size/Ui*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) "),c}var bA=`:root, :host {
|
|
19
|
+
`)+R+`return __p
|
|
20
|
+
}`;var oe=wg(function(){return pe(g,q+"return "+R).apply(r,v)});if(oe.source=R,wu(oe))throw oe;return oe}function xI(e){return me(e).toLowerCase()}function II(e){return me(e).toUpperCase()}function OI(e,t,a){if(e=me(e),e&&(a||t===r))return Cd(e);if(!e||!(t=ut(t)))return e;var u=At(e),c=At(t),g=Nd(u,c),v=Pd(u,c)+1;return mn(u,g,v).join("")}function DI(e,t,a){if(e=me(e),e&&(a||t===r))return e.slice(0,Md(e)+1);if(!e||!(t=ut(t)))return e;var u=At(e),c=Pd(u,At(t))+1;return mn(u,0,c).join("")}function AI(e,t,a){if(e=me(e),e&&(a||t===r))return e.replace(Gt,"");if(!e||!(t=ut(t)))return e;var u=At(e),c=Nd(u,At(t));return mn(u,c).join("")}function CI(e,t){var a=ee,u=Y;if(Ee(t)){var c="separator"in t?t.separator:c;a="length"in t?ie(t.length):a,u="omission"in t?ut(t.omission):u}e=me(e);var g=e.length;if(ar(e)){var v=At(e);g=v.length}if(a>=g)return e;var b=a-or(u);if(b<1)return u;var x=v?mn(v,0,b).join(""):e.slice(0,b);if(c===r)return x+u;if(v&&(b+=x.length-b),_u(c)){if(e.slice(b).search(c)){var M,k=x;for(c.global||(c=Ws(c.source,me(Zc.exec(c))+"g")),c.lastIndex=0;M=c.exec(k);)var R=M.index;x=x.slice(0,R===r?b:R)}}else if(e.indexOf(ut(c),b)!=b){var H=x.lastIndexOf(c);H>-1&&(x=x.slice(0,H))}return x+u}function NI(e){return e=me(e),e&&xe.test(e)?e.replace(Ke,ow):e}var PI=hr(function(e,t,a){return e+(a?" ":"")+t.toUpperCase()}),xu=_h("toUpperCase");function Sg(e,t,a){return e=me(e),t=a?r:t,t===r?tw(e)?lw(e):GS(e):e.match(t)||[]}var wg=se(function(e,t){try{return ot(e,r,t)}catch(a){return wu(a)?a:new Q(a)}}),LI=Kt(function(e,t){return vt(t,function(a){a=Rt(a),Vt(e,a,bu(e[a],e))}),e});function MI(e){var t=e==null?0:e.length,a=J();return e=t?_e(e,function(u){if(typeof u[1]!="function")throw new mt(f);return[a(u[0]),u[1]]}):[],se(function(u){for(var c=-1;++c<t;){var g=e[c];if(ot(g[0],this,u))return ot(g[1],this,u)}})}function kI(e){return o_(bt(e,w))}function Iu(e){return function(){return e}}function FI(e,t){return e==null||e!==e?t:e}var RI=Th(),WI=Th(!0);function tt(e){return e}function Ou(e){return eh(typeof e=="function"?e:bt(e,w))}function BI(e){return nh(bt(e,w))}function $I(e,t){return rh(e,bt(t,w))}var UI=se(function(e,t){return function(a){return Qr(a,e,t)}}),HI=se(function(e,t){return function(a){return Qr(e,a,t)}});function Du(e,t,a){var u=Me(t),c=ca(t,u);a==null&&!(Ee(t)&&(c.length||!u.length))&&(a=t,t=e,e=this,c=ca(t,Me(t)));var g=!(Ee(a)&&"chain"in a)||!!a.chain,v=Qt(e);return vt(c,function(b){var x=t[b];e[b]=x,v&&(e.prototype[b]=function(){var M=this.__chain__;if(g||M){var k=e(this.__wrapped__),R=k.__actions__=Ze(this.__actions__);return R.push({func:x,args:arguments,thisArg:e}),k.__chain__=M,k}return x.apply(e,cn([this.value()],arguments))})}),e}function zI(){return Fe._===this&&(Fe._=pw),this}function Au(){}function jI(e){return e=ie(e),se(function(t){return ih(t,e)})}var qI=ou(_e),GI=ou(xd),YI=ou(Ns);function _g(e){return hu(e)?Ps(Rt(e)):E_(e)}function JI(e){return function(t){return e==null?r:kn(e,t)}}var VI=Ih(),XI=Ih(!0);function Cu(){return[]}function Nu(){return!1}function KI(){return{}}function ZI(){return""}function QI(){return!0}function eO(e,t){if(e=ie(e),e<1||e>He)return[];var a=rt,u=$e(e,rt);t=J(t),e-=rt;for(var c=ks(u,t);++a<e;)t(a);return c}function tO(e){return te(e)?_e(e,Rt):lt(e)?[e]:Ze(Hh(me(e)))}function nO(e){var t=++hw;return me(e)+t}var rO=ma(function(e,t){return e+t},0),iO=su("ceil"),aO=ma(function(e,t){return e/t},1),oO=su("floor");function sO(e){return e&&e.length?fa(e,tt,Gs):r}function uO(e,t){return e&&e.length?fa(e,J(t,2),Gs):r}function lO(e){return Dd(e,tt)}function fO(e,t){return Dd(e,J(t,2))}function cO(e){return e&&e.length?fa(e,tt,Xs):r}function dO(e,t){return e&&e.length?fa(e,J(t,2),Xs):r}var hO=ma(function(e,t){return e*t},1),gO=su("round"),pO=ma(function(e,t){return e-t},0);function vO(e){return e&&e.length?Ms(e,tt):0}function mO(e,t){return e&&e.length?Ms(e,J(t,2)):0}return h.after=BT,h.ary=Qh,h.assign=Ix,h.assignIn=hg,h.assignInWith=Ca,h.assignWith=Ox,h.at=Dx,h.before=eg,h.bind=bu,h.bindAll=LI,h.bindKey=tg,h.castArray=KT,h.chain=Xh,h.chunk=oE,h.compact=sE,h.concat=uE,h.cond=MI,h.conforms=kI,h.constant=Iu,h.countBy=vT,h.create=Ax,h.curry=ng,h.curryRight=rg,h.debounce=ig,h.defaults=Cx,h.defaultsDeep=Nx,h.defer=$T,h.delay=UT,h.difference=lE,h.differenceBy=fE,h.differenceWith=cE,h.drop=dE,h.dropRight=hE,h.dropRightWhile=gE,h.dropWhile=pE,h.fill=vE,h.filter=yT,h.flatMap=wT,h.flatMapDeep=_T,h.flatMapDepth=ET,h.flatten=Gh,h.flattenDeep=mE,h.flattenDepth=yE,h.flip=HT,h.flow=RI,h.flowRight=WI,h.fromPairs=bE,h.functions=Wx,h.functionsIn=Bx,h.groupBy=TT,h.initial=wE,h.intersection=_E,h.intersectionBy=EE,h.intersectionWith=TE,h.invert=Ux,h.invertBy=Hx,h.invokeMap=IT,h.iteratee=Ou,h.keyBy=OT,h.keys=Me,h.keysIn=et,h.map=Ta,h.mapKeys=jx,h.mapValues=qx,h.matches=BI,h.matchesProperty=$I,h.memoize=Ia,h.merge=Gx,h.mergeWith=gg,h.method=UI,h.methodOf=HI,h.mixin=Du,h.negate=Oa,h.nthArg=jI,h.omit=Yx,h.omitBy=Jx,h.once=zT,h.orderBy=DT,h.over=qI,h.overArgs=jT,h.overEvery=GI,h.overSome=YI,h.partial=Su,h.partialRight=ag,h.partition=AT,h.pick=Vx,h.pickBy=pg,h.property=_g,h.propertyOf=JI,h.pull=DE,h.pullAll=Jh,h.pullAllBy=AE,h.pullAllWith=CE,h.pullAt=NE,h.range=VI,h.rangeRight=XI,h.rearg=qT,h.reject=PT,h.remove=PE,h.rest=GT,h.reverse=mu,h.sampleSize=MT,h.set=Kx,h.setWith=Zx,h.shuffle=kT,h.slice=LE,h.sortBy=WT,h.sortedUniq=$E,h.sortedUniqBy=UE,h.split=wI,h.spread=YT,h.tail=HE,h.take=zE,h.takeRight=jE,h.takeRightWhile=qE,h.takeWhile=GE,h.tap=sT,h.throttle=JT,h.thru=Ea,h.toArray=fg,h.toPairs=vg,h.toPairsIn=mg,h.toPath=tO,h.toPlainObject=dg,h.transform=Qx,h.unary=VT,h.union=YE,h.unionBy=JE,h.unionWith=VE,h.uniq=XE,h.uniqBy=KE,h.uniqWith=ZE,h.unset=eI,h.unzip=yu,h.unzipWith=Vh,h.update=tI,h.updateWith=nI,h.values=vr,h.valuesIn=rI,h.without=QE,h.words=Sg,h.wrap=XT,h.xor=eT,h.xorBy=tT,h.xorWith=nT,h.zip=rT,h.zipObject=iT,h.zipObjectDeep=aT,h.zipWith=oT,h.entries=vg,h.entriesIn=mg,h.extend=hg,h.extendWith=Ca,Du(h,h),h.add=rO,h.attempt=wg,h.camelCase=sI,h.capitalize=yg,h.ceil=iO,h.clamp=iI,h.clone=ZT,h.cloneDeep=ex,h.cloneDeepWith=tx,h.cloneWith=QT,h.conformsTo=nx,h.deburr=bg,h.defaultTo=FI,h.divide=aO,h.endsWith=uI,h.eq=Nt,h.escape=lI,h.escapeRegExp=fI,h.every=mT,h.find=bT,h.findIndex=jh,h.findKey=Px,h.findLast=ST,h.findLastIndex=qh,h.findLastKey=Lx,h.floor=oO,h.forEach=Kh,h.forEachRight=Zh,h.forIn=Mx,h.forInRight=kx,h.forOwn=Fx,h.forOwnRight=Rx,h.get=Eu,h.gt=rx,h.gte=ix,h.has=$x,h.hasIn=Tu,h.head=Yh,h.identity=tt,h.includes=xT,h.indexOf=SE,h.inRange=aI,h.invoke=zx,h.isArguments=Wn,h.isArray=te,h.isArrayBuffer=ax,h.isArrayLike=Qe,h.isArrayLikeObject=Ie,h.isBoolean=ox,h.isBuffer=yn,h.isDate=sx,h.isElement=ux,h.isEmpty=lx,h.isEqual=fx,h.isEqualWith=cx,h.isError=wu,h.isFinite=dx,h.isFunction=Qt,h.isInteger=og,h.isLength=Da,h.isMap=sg,h.isMatch=hx,h.isMatchWith=gx,h.isNaN=px,h.isNative=vx,h.isNil=yx,h.isNull=mx,h.isNumber=ug,h.isObject=Ee,h.isObjectLike=Te,h.isPlainObject=ai,h.isRegExp=_u,h.isSafeInteger=bx,h.isSet=lg,h.isString=Aa,h.isSymbol=lt,h.isTypedArray=pr,h.isUndefined=Sx,h.isWeakMap=wx,h.isWeakSet=_x,h.join=xE,h.kebabCase=cI,h.last=wt,h.lastIndexOf=IE,h.lowerCase=dI,h.lowerFirst=hI,h.lt=Ex,h.lte=Tx,h.max=sO,h.maxBy=uO,h.mean=lO,h.meanBy=fO,h.min=cO,h.minBy=dO,h.stubArray=Cu,h.stubFalse=Nu,h.stubObject=KI,h.stubString=ZI,h.stubTrue=QI,h.multiply=hO,h.nth=OE,h.noConflict=zI,h.noop=Au,h.now=xa,h.pad=gI,h.padEnd=pI,h.padStart=vI,h.parseInt=mI,h.random=oI,h.reduce=CT,h.reduceRight=NT,h.repeat=yI,h.replace=bI,h.result=Xx,h.round=gO,h.runInContext=T,h.sample=LT,h.size=FT,h.snakeCase=SI,h.some=RT,h.sortedIndex=ME,h.sortedIndexBy=kE,h.sortedIndexOf=FE,h.sortedLastIndex=RE,h.sortedLastIndexBy=WE,h.sortedLastIndexOf=BE,h.startCase=_I,h.startsWith=EI,h.subtract=pO,h.sum=vO,h.sumBy=mO,h.template=TI,h.times=eO,h.toFinite=en,h.toInteger=ie,h.toLength=cg,h.toLower=xI,h.toNumber=_t,h.toSafeInteger=xx,h.toString=me,h.toUpper=II,h.trim=OI,h.trimEnd=DI,h.trimStart=AI,h.truncate=CI,h.unescape=NI,h.uniqueId=nO,h.upperCase=PI,h.upperFirst=xu,h.each=Kh,h.eachRight=Zh,h.first=Yh,Du(h,(function(){var e={};return kt(h,function(t,a){ve.call(h.prototype,a)||(e[a]=t)}),e})(),{chain:!1}),h.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),vt(["drop","take"],function(e,t){fe.prototype[e]=function(a){a=a===r?1:Pe(ie(a),0);var u=this.__filtered__&&!t?new fe(this):this.clone();return u.__filtered__?u.__takeCount__=$e(a,u.__takeCount__):u.__views__.push({size:$e(a,rt),type:e+(u.__dir__<0?"Right":"")}),u},fe.prototype[e+"Right"]=function(a){return this.reverse()[e](a).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var a=t+1,u=a==We||a==Ve;fe.prototype[e]=function(c){var g=this.clone();return g.__iteratees__.push({iteratee:J(c,3),type:a}),g.__filtered__=g.__filtered__||u,g}}),vt(["head","last"],function(e,t){var a="take"+(t?"Right":"");fe.prototype[e]=function(){return this[a](1).value()[0]}}),vt(["initial","tail"],function(e,t){var a="drop"+(t?"":"Right");fe.prototype[e]=function(){return this.__filtered__?new fe(this):this[a](1)}}),fe.prototype.compact=function(){return this.filter(tt)},fe.prototype.find=function(e){return this.filter(e).head()},fe.prototype.findLast=function(e){return this.reverse().find(e)},fe.prototype.invokeMap=se(function(e,t){return typeof e=="function"?new fe(this):this.map(function(a){return Qr(a,e,t)})}),fe.prototype.reject=function(e){return this.filter(Oa(J(e)))},fe.prototype.slice=function(e,t){e=ie(e);var a=this;return a.__filtered__&&(e>0||t<0)?new fe(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),t!==r&&(t=ie(t),a=t<0?a.dropRight(-t):a.take(t-e)),a)},fe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},fe.prototype.toArray=function(){return this.take(rt)},kt(fe.prototype,function(e,t){var a=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),c=h[u?"take"+(t=="last"?"Right":""):t],g=u||/^find/.test(t);c&&(h.prototype[t]=function(){var v=this.__wrapped__,b=u?[1]:arguments,x=v instanceof fe,M=b[0],k=x||te(v),R=function(le){var de=c.apply(h,cn([le],b));return u&&H?de[0]:de};k&&a&&typeof M=="function"&&M.length!=1&&(x=k=!1);var H=this.__chain__,q=!!this.__actions__.length,K=g&&!H,oe=x&&!q;if(!g&&k){v=oe?v:new fe(this);var Z=e.apply(v,b);return Z.__actions__.push({func:Ea,args:[R],thisArg:r}),new yt(Z,H)}return K&&oe?e.apply(this,b):(Z=this.thru(R),K?u?Z.value()[0]:Z.value():Z)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Vi[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var c=arguments;if(u&&!this.__chain__){var g=this.value();return t.apply(te(g)?g:[],c)}return this[a](function(v){return t.apply(te(v)?v:[],c)})}}),kt(fe.prototype,function(e,t){var a=h[t];if(a){var u=a.name+"";ve.call(fr,u)||(fr[u]=[]),fr[u].push({name:t,func:a})}}),fr[va(r,C).name]=[{name:"wrapper",func:r}],fe.prototype.clone=Nw,fe.prototype.reverse=Pw,fe.prototype.value=Lw,h.prototype.at=uT,h.prototype.chain=lT,h.prototype.commit=fT,h.prototype.next=cT,h.prototype.plant=hT,h.prototype.reverse=gT,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=pT,h.prototype.first=h.prototype.head,Gr&&(h.prototype[Gr]=dT),h}),sr=fw();Cn?((Cn.exports=sr)._=sr,Os._=sr):Fe._=sr}).call(xg)})(Sr,Sr.exports)),Sr.exports}var Bn=Ig();class ge{static toString(n){const r=Pu(n);if(r==null)throw new Error("buildWinId: stringify error");return r}static getParamString(n,r){return n.params?.[r]?.toString()}static getParam(n,r){return n.params?.[r]}static isEquals(n,r){return Bn.isEqual(n,r)}static indexOf(n,r){return n.map(ge.toString).indexOf(ge.toString(r))}static includes(n,r){return n.map(ge.toString).includes(ge.toString(r))}static withoutDup(n){const{params:r,viewId:o,title:s}=n;return{params:r,viewId:o,title:s}}static replaceDup(n){const{params:r,viewId:o,title:s}=n;return{params:r,viewId:o,title:s,dupId:`${new Date().getTime()}`}}}var si={exports:{}},Mu;function Og(){return Mu||(Mu=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0});function r(N){return typeof N=="object"&&!("toString"in N)?Object.prototype.toString.call(N).slice(8,-1):N}var o=typeof process=="object"&&process.env.NODE_ENV==="production";function s(N,L){if(!N)throw o?new Error("Invariant failed"):new Error(L())}n.invariant=s;var l=Object.prototype.hasOwnProperty,f=Array.prototype.splice,d=Object.prototype.toString;function p(N){return d.call(N).slice(8,-1)}var m=Object.assign||(function(N,L){return S(L).forEach(function(j){l.call(L,j)&&(N[j]=L[j])}),N}),S=typeof Object.getOwnPropertySymbols=="function"?function(N){return Object.keys(N).concat(Object.getOwnPropertySymbols(N))}:function(N){return Object.keys(N)};function w(N){return Array.isArray(N)?m(N.constructor(N.length),N):p(N)==="Map"?new Map(N):p(N)==="Set"?new Set(N):N&&typeof N=="object"?m(Object.create(Object.getPrototypeOf(N)),N):N}var O=(function(){function N(){this.commands=m({},y),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(L,j){return L===j},this.update.newContext=function(){return new N().update}}return Object.defineProperty(N.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(L){this.update.isEquals=L},enumerable:!0,configurable:!0}),N.prototype.extend=function(L,j){this.commands[L]=j},N.prototype.update=function(L,j){var ee=this,Y=typeof j=="function"?{$apply:j}:j;Array.isArray(L)&&Array.isArray(Y)||s(!Array.isArray(Y),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),s(typeof Y=="object"&&Y!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(ee.commands).join(", ")+".")});var ae=L;return S(Y).forEach(function(X){if(l.call(ee.commands,X)){var We=L===ae;ae=ee.commands[X](Y[X],ae,Y,L),We&&ee.isEquals(ae,L)&&(ae=L)}else{var Je=p(L)==="Map"?ee.update(L.get(X),Y[X]):ee.update(L[X],Y[X]),Ve=p(ae)==="Map"?ae.get(X):ae[X];(!ee.isEquals(Je,Ve)||typeof Je>"u"&&!l.call(L,X))&&(ae===L&&(ae=w(L)),p(ae)==="Map"?ae.set(X,Je):ae[X]=Je)}}),ae},N})();n.Context=O;var y={$push:function(N,L,j){return _(L,j,"$push"),N.length?L.concat(N):L},$unshift:function(N,L,j){return _(L,j,"$unshift"),N.length?N.concat(L):L},$splice:function(N,L,j,ee){return C(L,j),N.forEach(function(Y){F(Y),L===ee&&Y.length&&(L=w(ee)),f.apply(L,Y)}),L},$set:function(N,L,j){return V(j),N},$toggle:function(N,L){I(N,"$toggle");var j=N.length?w(L):L;return N.forEach(function(ee){j[ee]=!L[ee]}),j},$unset:function(N,L,j,ee){return I(N,"$unset"),N.forEach(function(Y){Object.hasOwnProperty.call(L,Y)&&(L===ee&&(L=w(ee)),delete L[Y])}),L},$add:function(N,L,j,ee){return ue(L,"$add"),I(N,"$add"),p(L)==="Map"?N.forEach(function(Y){var ae=Y[0],X=Y[1];L===ee&&L.get(ae)!==X&&(L=w(ee)),L.set(ae,X)}):N.forEach(function(Y){L===ee&&!L.has(Y)&&(L=w(ee)),L.add(Y)}),L},$remove:function(N,L,j,ee){return ue(L,"$remove"),I(N,"$remove"),N.forEach(function(Y){L===ee&&L.has(Y)&&(L=w(ee)),L.delete(Y)}),L},$merge:function(N,L,j,ee){return B(L,N),S(N).forEach(function(Y){N[Y]!==L[Y]&&(L===ee&&(L=w(ee)),L[Y]=N[Y])}),L},$apply:function(N,L){return U(N),N(L)}},E=new O;n.isEquals=E.update.isEquals,n.extend=E.extend,n.default=E.update,n.default.default=i.exports=m(n.default,n);function _(N,L,j){s(Array.isArray(N),function(){return"update(): expected target of "+r(j)+" to be an array; got "+r(N)+"."}),I(L[j],j)}function I(N,L){s(Array.isArray(N),function(){return"update(): expected spec of "+r(L)+" to be an array; got "+r(N)+". Did you forget to wrap your parameter in an array?"})}function C(N,L){s(Array.isArray(N),function(){return"Expected $splice target to be an array; got "+r(N)}),F(L.$splice)}function F(N){s(Array.isArray(N),function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(N)+". Did you forget to wrap your parameters in an array?"})}function U(N){s(typeof N=="function",function(){return"update(): expected spec of $apply to be a function; got "+r(N)+"."})}function V(N){s(Object.keys(N).length===1,function(){return"Cannot have more than one key in an object with $set"})}function B(N,L){s(L&&typeof L=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+r(L)}),s(N&&typeof N=="object",function(){return"update(): $merge expects a target of type 'object'; got "+r(N)})}function ue(N,L){var j=p(N);s(j==="Map"||j==="Set",function(){return"update(): "+r(L)+" expects a target of type Set or Map; got "+r(j)})}})(si,si.exports)),si.exports}var Dg=Og();const Ag=br(Dg);var Cg=Object.getOwnPropertyDescriptor,Ng=(i,n,r,o)=>{for(var s=o>1?void 0:o?Cg(n,r):n,l=i.length-1,f;l>=0;l--)(f=i[l])&&(s=f(s)||s);return s};he.JustLayoutService=class{insertWinIdToStack=(n,r)=>{if(n==null)return n;const o=this.getNodeByBranch(n,r.branch);if(o.type!=="stack")return n;const l=o.tabs,f=r.index>=0?Bn.clamp(r.index,0,l.length):l.length;return this.updateNodeOfBranch(n,r.branch,{$set:{...o,type:"stack",tabs:[...l.slice(0,f),r.justId,...l.slice(f)],active:r.justId}})};insertWinIdToSplit=(n,r)=>{if(n==null)return n;const o=this.getNodeByBranch(n,r.branch),s=r.pos==="first"?"second":"first";return this.updateNodeOfBranch(n,r.branch,{$set:{type:"split-percentage",direction:r.direction,[s]:{...o,name:void 0},[r.pos]:{type:"stack",tabs:[r.justId],active:r.justId,name:void 0},size:r.size??50,dndAccept:o.dndAccept,name:o.name,hideTitle:o.hideTitle}})};removeWinId=(n,r)=>{if(n==null)return null;const o=this.getNodeByWinId(n,r);if(o?.type!=="stack")return n;const s=o.active?ge.indexOf(o.tabs,o.active):0,l=o.tabs.filter(d=>!ge.isEquals(d,r));let f;return o.active!==null&&ge.includes(l,o.active)?f=o.active:f=l.length>0&&o.active!==null?l[Bn.clamp(s-1,0,l.length-1)]:null,this.updateNodeOfWinId(n,r,{$set:{...o,tabs:l,active:f}})};removeAllTabs=(n,r)=>{if(n==null)return null;const o=this.getNodeByBranch(n,r);return o==null||o.type!=="stack"?n:this.updateNodeOfBranch(n,r,{$set:{...o,tabs:[],active:null}})};activeWinId=(n,r)=>{if(n==null)return null;const o=this.getNodeByWinId(n,r);return o==null?n:this.updateNodeOfWinId(n,r,{$set:{...o,active:r}})};getActiveWinIds=n=>{const r=(o,s)=>{if(o===null)return s;if(o.type==="stack")return o.active!==null?[...s,o.active]:s;{const l=r(o.first,s);return r(o.second,l)}};return r(n,[])};removeEmpty=n=>{if(n==null)return n;const r=this.findEmptyBranch(n,null,[]);if(r===null)return n;if(r.length===0)return null;const o=r[r.length-1],s=r.slice(0,-1),l=o==="first"?"second":"first",f=this.getNodeByBranch(n,s),d=this.getNodeByBranch(n,[...s,l]);return this.updateNodeOfBranch(n,s,{$set:{...d,dndAccept:f.dndAccept,name:f.name,hideTitle:f.hideTitle}})};findEmptyBranch=(n,r,o)=>{if(n===null)return null;if(n.type==="stack"){const s=r!=null&&r.type!="stack"&&(!!r.first.name||!!r.second.name);if(n.tabs.length===0&&!s)return o}else{const s=this.findEmptyBranch(n.first,n,[...o,"first"]);if(s!=null)return s;const l=this.findEmptyBranch(n.second,n,[...o,"second"]);if(l!=null)return l}return null};moveWinIdToStack=(n,r)=>{const o=this.removeWinId(n,r.justId);return this.insertWinIdToStack(o,r)};moveWinIdToSplit=(n,r)=>{const o=this.removeWinId(n,r.justId);return this.insertWinIdToSplit(o,r)};getBranch=(n,r,o)=>{if(n===null)return null;if(n.type==="stack")return ge.includes(n.tabs,r)?o:null;{const s=this.getBranch(n.first,r,[...o,"first"]);if(s!=null)return s;const l=this.getBranch(n.second,r,[...o,"second"]);return l??null}};getBranchByWinId=(n,r)=>this.getBranch(n,r,[]);getNodeInfoByNodeName=(n,r,o)=>{if(n===null)return null;if(n.name==r)return{node:n,branch:[...o]};if(n.type!="stack"){const s=this.getNodeInfoByNodeName(n.first,r,[...o,"first"]);if(s!=null)return s;const l=this.getNodeInfoByNodeName(n.second,r,[...o,"second"]);if(l!=null)return l}return null};getTabNodeInfoByNodeName=(n,r,o)=>{if(n===null)return null;const s=this.getNodeInfoByNodeName(n,r,o);if(s==null)return null;if(s.node.type==="stack")return s;{const l=this.getTabNodeInfo(s.node,[]);if(l!=null)return{node:l.node,branch:[...s.branch,...l.branch]}}return null};getNodeByWinId=(n,r)=>{if(n===null)return null;if(n.type==="stack")return ge.includes(n.tabs,r)?(console.log("includes ok:",n.tabs,r),n):(console.log("includes nok:",n.tabs,r),null);{const o=this.getNodeByWinId(n.first,r);if(o!=null)return o;const s=this.getNodeByWinId(n.second,r);return s??null}};getTabBranch=(n,r)=>{if(n===null)return null;if(n.type==="stack")return r;{let o;n.type==="split-pixels"?o=n.primary==="first"?"second":"first":o=n.direction==="row"?"second":"first";const s=this.getTabBranch(n[o],[...r,o]);if(s!=null)return s}return null};getTabNodeInfo=(n,r)=>{if(n===null)return null;if(n.type==="stack")return{node:n,branch:r};{let o;n.type==="split-pixels"?o=n.primary==="first"?"second":"first":o=n.direction==="row"?"second":"first";const s=this.getTabNodeInfo(n[o],[...r,o]);if(s!=null)return s}return null};addTabWin=(n,r,o,s)=>{if(n===null)return null;const l=this.getNodeByBranch(n,r);if(l.type!=="stack")return n;const f=s<0?l.tabs.length:Bn.clamp(s,0,l.tabs.length);return this.updateNodeOfBranch(n,r,{$merge:{tabs:[...l.tabs.slice(0,f),o,...l.tabs.slice(f)],active:o}})};queryWinIdsByViewId=(n,r,o)=>{if(n===null)return o;if(n.type==="stack")return[...o,...n.tabs.filter(s=>s.viewId===r)];{const s=this.queryWinIdsByViewId(n.first,r,o);return this.queryWinIdsByViewId(n.second,r,[...o,...s])}};queryDupWinIdsByWinId=(n,r,o)=>{if(n===null)return o;if(n.type==="stack"){const s=ge.withoutDup(r),l=n.tabs.filter(f=>{const d=ge.withoutDup(f);return ge.isEquals(s,d)});return[...o,...l]}else{const s=this.queryDupWinIdsByWinId(n.first,r,o);return this.queryDupWinIdsByWinId(n.second,r,[...o,...s])}};queryWinIdsByStack=(n,r)=>{if(n===null)return[];const o=this.getNodeByBranch(n,r);return o.type!=="stack"?[]:o.tabs};getNodeByBranch=(n,r)=>r.reduce((o,s)=>o?.[s],n);updateNodeOfBranch=(n,r,o)=>{const s=this.buildSpecFromUpdateSpec(r,o);return this.updateNode(n,s)};updateNodeOfWinId=(n,r,o)=>{const s=this.getBranchByWinId(n,r);if(s==null)return n;const l=this.buildSpecFromUpdateSpec(s,o);return this.updateNode(n,l)};hasWinId=(n,r)=>this.getNodeByWinId(n,r)!=null;updateNode=(n,r)=>n==null?null:Ag(n,r);buildSpecFromUpdateSpec=(n,r)=>n.length>0?Bn.set({},n,r):r;getNodeAtBranch=(n,r)=>r.length>0?Bn.get(n,r,null):n;getBranchRightTop=n=>{if(n==null)return[];let r=n;const o=[];for(;r.type!=="stack";)r.direction==="row"?(o.push("second"),r=r.second):r.direction==="column"&&(o.push("first"),r=r.first);return o};updateSplitSize=(n,r,o)=>{const s=this.buildSpecFromUpdateSpec(r,{$merge:{size:o}});return this.updateNode(n,s)}},he.JustLayoutService=Ng([oi.injectable()],he.JustLayoutService);var Pg=Object.getOwnPropertyDescriptor,Lg=(i,n,r,o)=>{for(var s=o>1?void 0:o?Pg(n,r):n,l=i.length-1,f;l>=0;l--)(f=i[l])&&(s=f(s)||s);return s},Mg=(i,n)=>(r,o)=>n(r,o,i);he.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(n){this.service=n,mr.makeAutoObservable(this,{service:!1},{autoBind:!0})}setLayout=n=>{this.layout=n};setTabTitle=(n,r)=>{this.tabTitleMap.set(ge.toString(n),r)};getTabTitle=n=>this.tabTitleMap.get(ge.toString(n));setTabTitleTooltip=(n,r)=>{this.tabTitleTooltipMap.set(ge.toString(n),r)};getTabTitleTooltip=n=>this.tabTitleTooltipMap.get(ge.toString(n));setFullScreenLayoutByBranch=n=>{n===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,n)};setFullScreenHideTitle=n=>{this.fullScreenHideTitle=n};addTab=n=>{const r=this.service.getTabBranch(this.layout,[]);r!=null&&(this.service.hasWinId(this.layout,n.justId)?this.layout=this.service.activeWinId(this.layout,n.justId):this.layout=this.service.addTabWin(this.layout,r,n.justId,-1),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=n=>{const r=this.service.getTabNodeInfoByNodeName(this.layout,n.nodeName,[]);r!=null&&(this.service.hasWinId(this.layout,n.justId)?this.layout=this.service.activeWinId(this.layout,n.justId):this.layout=this.service.addTabWin(this.layout,r.branch,n.justId,-1),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=n=>this.service.queryWinIdsByViewId(this.layout??null,n,[]);cloneTab=n=>{const r=this.service.getBranchByWinId(this.layout,n.justId);if(r==null)return;const o=this.service.getNodeAtBranch(this.layout,r);let s=0;o?.type==="stack"&&o.active!=null&&(s=ge.indexOf(o.tabs,n.justId)+1),this.layout=this.service.addTabWin(this.layout,r,n.cloneJustId,s),this.lastActiveId=n.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=n=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,n.justId))};removeAllTabs=n=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,n.branch))};activeWin=n=>{this.layout=this.service.activeWinId(this.layout,n.justId),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const n=this.lastActiveId;if(n==null)return;const r=this.service.getNodeByWinId(this.layout,n);if(r?.type!=="stack"||r.tabs.length===0)return;const s=(ge.indexOf(r.tabs,n)-1+r.tabs.length)%r.tabs.length,l=r.tabs[s];this.activeWin({justId:l})};activeNextWin=()=>{const n=this.lastActiveId;if(n==null)return;const r=this.service.getNodeByWinId(this.layout,n);if(r?.type!=="stack"||r.tabs.length===0)return;const s=(ge.indexOf(r.tabs,n)+1)%r.tabs.length,l=r.tabs[s];this.activeWin({justId:l})};updateResize=n=>{this.layout=this.service.updateSplitSize(this.layout,n.branch,n.size)};moveWin=n=>{n.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,n)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,n)),this.lastActiveId=n.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const n=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:n})};toggleWin=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o==null||o.node.type!=="split-pixels")return;const s=o.node.primaryHide!==!0,l=!s||o.node.size<10?o.node.primaryDefaultSize:0,f=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:l,primaryHide:s}}),d=this.service.updateNode(r,f);d!=null&&this.setLayout(d)};showWin=({nodeName:n,show:r})=>{const o=this.layout,s=this.service.getNodeInfoByNodeName(o,n,[]);if(s!=null&&s.node.type==="split-pixels"&&r===(s.node.size===0)){const l=r?s.node.primaryDefaultSize:0,f=this.service.buildSpecFromUpdateSpec(s.branch,{$merge:{size:l}}),d=this.service.updateNode(o,f);if(d==null)return;this.setLayout(d)}};getSizeByNodeName=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o!=null)return o.node.type==="split-pixels"||o.node.type==="split-percentage"?o.node.size:null};getBranchByJustId=({justId:n})=>{const r=this.layout;return this.service.getBranchByWinId(r,n)};isPrimaryHide=({nodeName:n})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,n,[]);if(o!=null)return o.node.type==="split-pixels"?o.node.primaryHide:null};openWin=({justId:n})=>{this.service.hasWinId(this.layout??null,n)?this.activeWin({justId:n}):this.addTab({justId:n})};openWinByNodeName=({justId:n,nodeName:r})=>{this.service.hasWinId(this.layout??null,n)?(console.log("hasWinId",n),this.activeWin({justId:n})):(console.log("addTabByNodeName",n),this.addTabByNodeName({justId:n,nodeName:r}))};getWinIds=({viewId:n})=>this.service.queryWinIdsByViewId(this.layout??null,n,[]);getDupWinIds=({justId:n})=>this.service.queryDupWinIdsByWinId(this.layout??null,n,[]);getWinIdsByBranch=({branch:n})=>this.service.queryWinIdsByStack(this.layout??null,n);getNodeAtBranch=({branch:n})=>this.service.getNodeAtBranch(this.layout??null,n);openWinMenu=({justId:n,nodeName:r})=>{const o=n.viewId,s=this.getWinIds({viewId:o});if(s.length===0)console.log("openWinMenu1",s,n),this.openWinByNodeName({justId:n,nodeName:r});else{const l=s.toSorted((f,d)=>(f.dupId??"")<=(d.dupId??"")?-1:1).at(-1);l&&(console.log("openWinMenu2",s,l),this.openWinByNodeName({justId:l,nodeName:r}))}};fullScreenWin=async(n,r,o=!1)=>{r?this.setLayout(null):(this.setFullScreenLayoutByBranch(n),this.setFullScreenHideTitle(o))}},he.JustLayoutStore=Lg([oi.injectable(),Mg(0,oi.inject(Wt.JustLayoutService))],he.JustLayoutStore);const kg=new oi.ContainerModule(({bind:i})=>{i(Wt.JustLayoutService).to(he.JustLayoutService).inSingletonScope(),i(Wt.JustLayoutStore).to(he.JustLayoutStore).inTransientScope(),i(Wt.JustLayoutStoreCacheMap).toConstantValue(new Map),i(Wt.JustLayoutFactory).toFactory(n=>{const r=n.get(Wt.JustLayoutStoreCacheMap);return o=>{if(!r.has(o)){const s=n.get(Wt.JustLayoutStore);r.set(o,s)}return r.get(o)}})}),Lt=i=>{const n=Tg.useInjection(Wt.JustLayoutFactory),[r]=A.useState(()=>n(i));return r},ku=A.createContext({dragDropManager:void 0});function dt(i){return"Minified Redux error #"+i+"; visit https://redux.js.org/Errors?code="+i+" for the full message or use the non-minified dev environment for full errors. "}var Fu=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ru=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wu={INIT:"@@redux/INIT"+Ru(),REPLACE:"@@redux/REPLACE"+Ru()};function Fg(i){if(typeof i!="object"||i===null)return!1;for(var n=i;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(i)===n}function Rg(i){if(i===void 0)return"undefined";if(i===null)return"null";var n=typeof i;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(i))return"array";if($g(i))return"date";if(Bg(i))return"error";var r=Wg(i);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Wg(i){return typeof i.constructor=="function"?i.constructor.name:null}function Bg(i){return i instanceof Error||typeof i.message=="string"&&i.constructor&&typeof i.constructor.stackTraceLimit=="number"}function $g(i){return i instanceof Date?!0:typeof i.toDateString=="function"&&typeof i.getDate=="function"&&typeof i.setDate=="function"}function $n(i){var n=typeof i;return process.env.NODE_ENV!=="production"&&(n=Rg(i)),n}function Bu(i,n,r){var o;if(typeof n=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?dt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof n=="function"&&typeof r>"u"&&(r=n,n=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?dt(1):"Expected the enhancer to be a function. Instead, received: '"+$n(r)+"'");return r(Bu)(i,n)}if(typeof i!="function")throw new Error(process.env.NODE_ENV==="production"?dt(2):"Expected the root reducer to be a function. Instead, received: '"+$n(i)+"'");var s=i,l=n,f=[],d=f,p=!1;function m(){d===f&&(d=f.slice())}function S(){if(p)throw new Error(process.env.NODE_ENV==="production"?dt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function w(_){if(typeof _!="function")throw new Error(process.env.NODE_ENV==="production"?dt(4):"Expected the listener to be a function. Instead, received: '"+$n(_)+"'");if(p)throw new Error(process.env.NODE_ENV==="production"?dt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var I=!0;return m(),d.push(_),function(){if(I){if(p)throw new Error(process.env.NODE_ENV==="production"?dt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");I=!1,m();var F=d.indexOf(_);d.splice(F,1),f=null}}}function O(_){if(!Fg(_))throw new Error(process.env.NODE_ENV==="production"?dt(7):"Actions must be plain objects. Instead, the actual type was: '"+$n(_)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof _.type>"u")throw new Error(process.env.NODE_ENV==="production"?dt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(p)throw new Error(process.env.NODE_ENV==="production"?dt(9):"Reducers may not dispatch actions.");try{p=!0,l=s(l,_)}finally{p=!1}for(var I=f=d,C=0;C<I.length;C++){var F=I[C];F()}return _}function y(_){if(typeof _!="function")throw new Error(process.env.NODE_ENV==="production"?dt(10):"Expected the nextReducer to be a function. Instead, received: '"+$n(_));s=_,O({type:Wu.REPLACE})}function E(){var _,I=w;return _={subscribe:function(F){if(typeof F!="object"||F===null)throw new Error(process.env.NODE_ENV==="production"?dt(11):"Expected the observer to be an object. Instead, received: '"+$n(F)+"'");function U(){F.next&&F.next(S())}U();var V=I(U);return{unsubscribe:V}}},_[Fu]=function(){return this},_}return O({type:Wu.INIT}),o={dispatch:O,subscribe:w,getState:S,replaceReducer:y},o[Fu]=E,o}function ne(i,n,...r){if(Ug()&&n===void 0)throw new Error("invariant requires an error message argument");if(!i){let o;if(n===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let s=0;o=new Error(n.replace(/%s/g,function(){return r[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}function Ug(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function Hg(i,n,r){return n.split(".").reduce((o,s)=>o&&o[s]?o[s]:r||null,i)}function zg(i,n){return i.filter(r=>r!==n)}function $u(i){return typeof i=="object"}function jg(i,n){const r=new Map,o=l=>{r.set(l,r.has(l)?r.get(l)+1:1)};i.forEach(o),n.forEach(o);const s=[];return r.forEach((l,f)=>{l===1&&s.push(f)}),s}function qg(i,n){return i.filter(r=>n.indexOf(r)>-1)}const Pa="dnd-core/INIT_COORDS",ui="dnd-core/BEGIN_DRAG",La="dnd-core/PUBLISH_DRAG_SOURCE",li="dnd-core/HOVER",fi="dnd-core/DROP",ci="dnd-core/END_DRAG";function Uu(i,n){return{type:Pa,payload:{sourceClientOffset:n||null,clientOffset:i||null}}}const Gg={type:Pa,payload:{clientOffset:null,sourceClientOffset:null}};function Yg(i){return function(r=[],o={publishSource:!0}){const{publishSource:s=!0,clientOffset:l,getSourceClientOffset:f}=o,d=i.getMonitor(),p=i.getRegistry();i.dispatch(Uu(l)),Jg(r,d,p);const m=Kg(r,d);if(m==null){i.dispatch(Gg);return}let S=null;if(l){if(!f)throw new Error("getSourceClientOffset must be defined");Vg(f),S=f(m)}i.dispatch(Uu(l,S));const O=p.getSource(m).beginDrag(d,m);if(O==null)return;Xg(O),p.pinSource(m);const y=p.getSourceType(m);return{type:ui,payload:{itemType:y,item:O,sourceId:m,clientOffset:l||null,sourceClientOffset:S||null,isSourcePublic:!!s}}}}function Jg(i,n,r){ne(!n.isDragging(),"Cannot call beginDrag while dragging."),i.forEach(function(o){ne(r.getSource(o),"Expected sourceIds to be registered.")})}function Vg(i){ne(typeof i=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Xg(i){ne($u(i),"Item must be an object.")}function Kg(i,n){let r=null;for(let o=i.length-1;o>=0;o--)if(n.canDragSource(i[o])){r=i[o];break}return r}function Zg(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Qg(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Zg(i,s,r[s])})}return i}function ep(i){return function(r={}){const o=i.getMonitor(),s=i.getRegistry();tp(o),ip(o).forEach((f,d)=>{const p=np(f,d,s,o),m={type:fi,payload:{dropResult:Qg({},r,p)}};i.dispatch(m)})}}function tp(i){ne(i.isDragging(),"Cannot call drop while not dragging."),ne(!i.didDrop(),"Cannot call drop twice during one drag operation.")}function np(i,n,r,o){const s=r.getTarget(i);let l=s?s.drop(o,i):void 0;return rp(l),typeof l>"u"&&(l=n===0?{}:o.getDropResult()),l}function rp(i){ne(typeof i>"u"||$u(i),"Drop result must either be an object or undefined.")}function ip(i){const n=i.getTargetIds().filter(i.canDropOnTarget,i);return n.reverse(),n}function ap(i){return function(){const r=i.getMonitor(),o=i.getRegistry();op(r);const s=r.getSourceId();return s!=null&&(o.getSource(s,!0).endDrag(r,s),o.unpinSource()),{type:ci}}}function op(i){ne(i.isDragging(),"Cannot call endDrag while not dragging.")}function Ma(i,n){return n===null?i===null:Array.isArray(i)?i.some(r=>r===n):i===n}function sp(i){return function(r,{clientOffset:o}={}){up(r);const s=r.slice(0),l=i.getMonitor(),f=i.getRegistry(),d=l.getItemType();return fp(s,f,d),lp(s,l,f),cp(s,l,f),{type:li,payload:{targetIds:s,clientOffset:o||null}}}}function up(i){ne(Array.isArray(i),"Expected targetIds to be an array.")}function lp(i,n,r){ne(n.isDragging(),"Cannot call hover while not dragging."),ne(!n.didDrop(),"Cannot call hover after drop.");for(let o=0;o<i.length;o++){const s=i[o];ne(i.lastIndexOf(s)===o,"Expected targetIds to be unique in the passed array.");const l=r.getTarget(s);ne(l,"Expected targetIds to be registered.")}}function fp(i,n,r){for(let o=i.length-1;o>=0;o--){const s=i[o],l=n.getTargetType(s);Ma(l,r)||i.splice(o,1)}}function cp(i,n,r){i.forEach(function(o){r.getTarget(o).hover(n,o)})}function dp(i){return function(){if(i.getMonitor().isDragging())return{type:La}}}function hp(i){return{beginDrag:Yg(i),publishDragSource:dp(i),hover:sp(i),drop:ep(i),endDrag:ap(i)}}class gp{receiveBackend(n){this.backend=n}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const n=this,{dispatch:r}=this.store;function o(l){return(...f)=>{const d=l.apply(n,f);typeof d<"u"&&r(d)}}const s=hp(this);return Object.keys(s).reduce((l,f)=>{const d=s[f];return l[f]=o(d),l},{})}dispatch(n){this.store.dispatch(n)}constructor(n,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const o=this.store.getState().refCount>0;this.backend&&(o&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!o&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=n,this.monitor=r,n.subscribe(this.handleRefCountChange)}}function pp(i,n){return{x:i.x+n.x,y:i.y+n.y}}function Hu(i,n){return{x:i.x-n.x,y:i.y-n.y}}function vp(i){const{clientOffset:n,initialClientOffset:r,initialSourceClientOffset:o}=i;return!n||!r||!o?null:Hu(pp(n,o),r)}function mp(i){const{clientOffset:n,initialClientOffset:r}=i;return!n||!r?null:Hu(n,r)}const wr=[],ka=[];wr.__IS_NONE__=!0,ka.__IS_ALL__=!0;function yp(i,n){return i===wr?!1:i===ka||typeof n>"u"?!0:qg(n,i).length>0}class bp{subscribeToStateChange(n,r={}){const{handlerIds:o}=r;ne(typeof n=="function","listener must be a function."),ne(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");let s=this.store.getState().stateId;const l=()=>{const f=this.store.getState(),d=f.stateId;try{d===s||d===s+1&&!yp(f.dirtyHandlerIds,o)||n()}finally{s=d}};return this.store.subscribe(l)}subscribeToOffsetChange(n){ne(typeof n=="function","listener must be a function.");let r=this.store.getState().dragOffset;const o=()=>{const s=this.store.getState().dragOffset;s!==r&&(r=s,n())};return this.store.subscribe(o)}canDragSource(n){if(!n)return!1;const r=this.registry.getSource(n);return ne(r,`Expected to find a valid source. sourceId=${n}`),this.isDragging()?!1:r.canDrag(this,n)}canDropOnTarget(n){if(!n)return!1;const r=this.registry.getTarget(n);if(ne(r,`Expected to find a valid target. targetId=${n}`),!this.isDragging()||this.didDrop())return!1;const o=this.registry.getTargetType(n),s=this.getItemType();return Ma(o,s)&&r.canDrop(this,n)}isDragging(){return!!this.getItemType()}isDraggingSource(n){if(!n)return!1;const r=this.registry.getSource(n,!0);if(ne(r,`Expected to find a valid source. sourceId=${n}`),!this.isDragging()||!this.isSourcePublic())return!1;const o=this.registry.getSourceType(n),s=this.getItemType();return o!==s?!1:r.isDragging(this,n)}isOverTarget(n,r={shallow:!1}){if(!n)return!1;const{shallow:o}=r;if(!this.isDragging())return!1;const s=this.registry.getTargetType(n),l=this.getItemType();if(l&&!Ma(s,l))return!1;const f=this.getTargetIds();if(!f.length)return!1;const d=f.indexOf(n);return o?d===f.length-1:d>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vp(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return mp(this.store.getState().dragOffset)}constructor(n,r){this.store=n,this.registry=r}}const zu=typeof global<"u"?global:self,ju=zu.MutationObserver||zu.WebKitMutationObserver;function qu(i){return function(){const r=setTimeout(s,0),o=setInterval(s,50);function s(){clearTimeout(r),clearInterval(o),i()}}}function Sp(i){let n=1;const r=new ju(i),o=document.createTextNode("");return r.observe(o,{characterData:!0}),function(){n=-n,o.data=n}}const wp=typeof ju=="function"?Sp:qu;class _p{enqueueTask(n){const{queue:r,requestFlush:o}=this;r.length||(o(),this.flushing=!0),r[r.length]=n}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:n}=this;for(;this.index<n.length;){const r=this.index;if(this.index++,n[r].call(),this.index>this.capacity){for(let o=0,s=n.length-this.index;o<s;o++)n[o]=n[o+this.index];n.length-=this.index,this.index=0}}n.length=0,this.index=0,this.flushing=!1},this.registerPendingError=n=>{this.pendingErrors.push(n),this.requestErrorThrow()},this.requestFlush=wp(this.flush),this.requestErrorThrow=qu(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Ep{call(){try{this.task&&this.task()}catch(n){this.onError(n)}finally{this.task=null,this.release(this)}}constructor(n,r){this.onError=n,this.release=r,this.task=null}}class Tp{create(n){const r=this.freeTasks,o=r.length?r.pop():new Ep(this.onError,s=>r[r.length]=s);return o.task=n,o}constructor(n){this.onError=n,this.freeTasks=[]}}const Gu=new _p,xp=new Tp(Gu.registerPendingError);function Ip(i){Gu.enqueueTask(xp.create(i))}const Fa="dnd-core/ADD_SOURCE",Ra="dnd-core/ADD_TARGET",Wa="dnd-core/REMOVE_SOURCE",di="dnd-core/REMOVE_TARGET";function Op(i){return{type:Fa,payload:{sourceId:i}}}function Dp(i){return{type:Ra,payload:{targetId:i}}}function Ap(i){return{type:Wa,payload:{sourceId:i}}}function Cp(i){return{type:di,payload:{targetId:i}}}function Np(i){ne(typeof i.canDrag=="function","Expected canDrag to be a function."),ne(typeof i.beginDrag=="function","Expected beginDrag to be a function."),ne(typeof i.endDrag=="function","Expected endDrag to be a function.")}function Pp(i){ne(typeof i.canDrop=="function","Expected canDrop to be a function."),ne(typeof i.hover=="function","Expected hover to be a function."),ne(typeof i.drop=="function","Expected beginDrag to be a function.")}function Ba(i,n){if(n&&Array.isArray(i)){i.forEach(r=>Ba(r,!1));return}ne(typeof i=="string"||typeof i=="symbol",n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ht;(function(i){i.SOURCE="SOURCE",i.TARGET="TARGET"})(ht||(ht={}));let Lp=0;function Mp(){return Lp++}function kp(i){const n=Mp().toString();switch(i){case ht.SOURCE:return`S${n}`;case ht.TARGET:return`T${n}`;default:throw new Error(`Unknown Handler Role: ${i}`)}}function Yu(i){switch(i[0]){case"S":return ht.SOURCE;case"T":return ht.TARGET;default:throw new Error(`Cannot parse handler ID: ${i}`)}}function Ju(i,n){const r=i.entries();let o=!1;do{const{done:s,value:[,l]}=r.next();if(l===n)return!0;o=!!s}while(!o);return!1}class Fp{addSource(n,r){Ba(n),Np(r);const o=this.addHandler(ht.SOURCE,n,r);return this.store.dispatch(Op(o)),o}addTarget(n,r){Ba(n,!0),Pp(r);const o=this.addHandler(ht.TARGET,n,r);return this.store.dispatch(Dp(o)),o}containsHandler(n){return Ju(this.dragSources,n)||Ju(this.dropTargets,n)}getSource(n,r=!1){return ne(this.isSourceId(n),"Expected a valid source ID."),r&&n===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(n)}getTarget(n){return ne(this.isTargetId(n),"Expected a valid target ID."),this.dropTargets.get(n)}getSourceType(n){return ne(this.isSourceId(n),"Expected a valid source ID."),this.types.get(n)}getTargetType(n){return ne(this.isTargetId(n),"Expected a valid target ID."),this.types.get(n)}isSourceId(n){return Yu(n)===ht.SOURCE}isTargetId(n){return Yu(n)===ht.TARGET}removeSource(n){ne(this.getSource(n),"Expected an existing source."),this.store.dispatch(Ap(n)),Ip(()=>{this.dragSources.delete(n),this.types.delete(n)})}removeTarget(n){ne(this.getTarget(n),"Expected an existing target."),this.store.dispatch(Cp(n)),this.dropTargets.delete(n),this.types.delete(n)}pinSource(n){const r=this.getSource(n);ne(r,"Expected an existing source."),this.pinnedSourceId=n,this.pinnedSource=r}unpinSource(){ne(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(n,r,o){const s=kp(n);return this.types.set(s,r),n===ht.SOURCE?this.dragSources.set(s,o):n===ht.TARGET&&this.dropTargets.set(s,o),s}constructor(n){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=n}}const Rp=(i,n)=>i===n;function Wp(i,n){return!i&&!n?!0:!i||!n?!1:i.x===n.x&&i.y===n.y}function Bp(i,n,r=Rp){if(i.length!==n.length)return!1;for(let o=0;o<i.length;++o)if(!r(i[o],n[o]))return!1;return!0}function $p(i=wr,n){switch(n.type){case li:break;case Fa:case Ra:case di:case Wa:return wr;case ui:case La:case ci:case fi:default:return ka}const{targetIds:r=[],prevTargetIds:o=[]}=n.payload,s=jg(r,o);if(!(s.length>0||!Bp(r,o)))return wr;const f=o[o.length-1],d=r[r.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Up(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Hp(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Up(i,s,r[s])})}return i}const Vu={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function zp(i=Vu,n){const{payload:r}=n;switch(n.type){case Pa:case ui:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case li:return Wp(i.clientOffset,r.clientOffset)?i:Hp({},i,{clientOffset:r.clientOffset});case ci:case fi:return Vu;default:return i}}function jp(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Un(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){jp(i,s,r[s])})}return i}const qp={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Gp(i=qp,n){const{payload:r}=n;switch(n.type){case ui:return Un({},i,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case La:return Un({},i,{isSourcePublic:!0});case li:return Un({},i,{targetIds:r.targetIds});case di:return i.targetIds.indexOf(r.targetId)===-1?i:Un({},i,{targetIds:zg(i.targetIds,r.targetId)});case fi:return Un({},i,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ci:return Un({},i,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return i}}function Yp(i=0,n){switch(n.type){case Fa:case Ra:return i+1;case Wa:case di:return i-1;default:return i}}function Jp(i=0){return i+1}function Vp(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Xp(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){Vp(i,s,r[s])})}return i}function Kp(i={},n){return{dirtyHandlerIds:$p(i.dirtyHandlerIds,{type:n.type,payload:Xp({},n.payload,{prevTargetIds:Hg(i,"dragOperation.targetIds",[])})}),dragOffset:zp(i.dragOffset,n),refCount:Yp(i.refCount,n),dragOperation:Gp(i.dragOperation,n),stateId:Jp(i.stateId)}}function Zp(i,n=void 0,r={},o=!1){const s=Qp(o),l=new bp(s,new Fp(s)),f=new gp(s,l),d=i(f,n,r);return f.receiveBackend(d),f}function Qp(i){const n=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Bu(Kp,i&&n&&n({name:"dnd-core",instanceId:"dnd-core"}))}function ev(i,n){if(i==null)return{};var r=tv(i,n),o,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(s=0;s<l.length;s++)o=l[s],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(i,o)&&(r[o]=i[o])}return r}function tv(i,n){if(i==null)return{};var r={},o=Object.keys(i),s,l;for(l=0;l<o.length;l++)s=o[l],!(n.indexOf(s)>=0)&&(r[s]=i[s]);return r}let Xu=0;const hi=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var nv=A.memo(function(n){var{children:r}=n,o=ev(n,["children"]);const[s,l]=rv(o);return A.useEffect(()=>{if(l){const f=Ku();return++Xu,()=>{--Xu===0&&(f[hi]=null)}}},[]),$.jsx(ku.Provider,{value:s,children:r})});function rv(i){if("manager"in i)return[{dragDropManager:i.manager},!1];const n=iv(i.backend,i.context,i.options,i.debugMode),r=!i.context;return[n,r]}function iv(i,n=Ku(),r,o){const s=n;return s[hi]||(s[hi]={dragDropManager:Zp(i,n,r,o)}),s[hi]}function Ku(){return typeof global<"u"?global:window}var $a,Zu;function av(){return Zu||(Zu=1,$a=function i(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var o,s,l;if(Array.isArray(n)){if(o=n.length,o!=r.length)return!1;for(s=o;s--!==0;)if(!i(n[s],r[s]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(l=Object.keys(n),o=l.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[s]))return!1;for(s=o;s--!==0;){var f=l[s];if(!i(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}),$a}var ov=av();const sv=br(ov),bn=typeof window<"u"?A.useLayoutEffect:A.useEffect;function uv(i,n,r){const[o,s]=A.useState(()=>n(i)),l=A.useCallback(()=>{const f=n(i);sv(o,f)||(s(f),r&&r())},[o,i,r]);return bn(l),[o,l]}function lv(i,n,r){const[o,s]=uv(i,n,r);return bn(function(){const f=i.getHandlerId();if(f!=null)return i.subscribeToStateChange(s,{handlerIds:[f]})},[i,s]),o}function Qu(i,n,r){return lv(n,i||(()=>({})),()=>r.reconnect())}function el(i,n){const r=[...n||[]];return n==null&&typeof i!="function"&&r.push(i),A.useMemo(()=>typeof i=="function"?i():i,r)}function fv(i){return A.useMemo(()=>i.hooks.dragSource(),[i])}function cv(i){return A.useMemo(()=>i.hooks.dragPreview(),[i])}let Ua=!1,Ha=!1;class dv{receiveHandlerId(n){this.sourceId=n}getHandlerId(){return this.sourceId}canDrag(){ne(!Ua,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ua=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ua=!1}}isDragging(){if(!this.sourceId)return!1;ne(!Ha,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ha=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ha=!1}}subscribeToStateChange(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}isDraggingSource(n){return this.internalMonitor.isDraggingSource(n)}isOverTarget(n,r){return this.internalMonitor.isOverTarget(n,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(n){return this.internalMonitor.subscribeToOffsetChange(n)}canDragSource(n){return this.internalMonitor.canDragSource(n)}canDropOnTarget(n){return this.internalMonitor.canDropOnTarget(n)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(n){this.sourceId=null,this.internalMonitor=n.getMonitor()}}let za=!1;class hv{receiveHandlerId(n){this.targetId=n}getHandlerId(){return this.targetId}subscribeToStateChange(n,r){return this.internalMonitor.subscribeToStateChange(n,r)}canDrop(){if(!this.targetId)return!1;ne(!za,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return za=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{za=!1}}isOver(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(n){this.targetId=null,this.internalMonitor=n.getMonitor()}}function gv(i,n,r){const o=r.getRegistry(),s=o.addTarget(i,n);return[s,()=>o.removeTarget(s)]}function pv(i,n,r){const o=r.getRegistry(),s=o.addSource(i,n);return[s,()=>o.removeSource(s)]}function ja(i,n,r,o){let s;if(s!==void 0)return!!s;if(i===n)return!0;if(typeof i!="object"||!i||typeof n!="object"||!n)return!1;const l=Object.keys(i),f=Object.keys(n);if(l.length!==f.length)return!1;const d=Object.prototype.hasOwnProperty.bind(n);for(let p=0;p<l.length;p++){const m=l[p];if(!d(m))return!1;const S=i[m],w=n[m];if(s=void 0,s===!1||s===void 0&&S!==w)return!1}return!0}function qa(i){return i!==null&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function vv(i){if(typeof i.type=="string")return;const n=i.type.displayName||i.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${n} into a <div>, or turn it into a drag source or a drop target itself.`)}function mv(i){return(n=null,r=null)=>{if(!A.isValidElement(n)){const l=n;return i(l,r),l}const o=n;return vv(o),yv(o,r?l=>i(l,r):i)}}function tl(i){const n={};return Object.keys(i).forEach(r=>{const o=i[r];if(r.endsWith("Ref"))n[r]=i[r];else{const s=mv(o);n[r]=()=>s}}),n}function nl(i,n){typeof i=="function"?i(n):i.current=n}function yv(i,n){const r=i.ref;return ne(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?A.cloneElement(i,{ref:o=>{nl(r,o),nl(n,o)}}):A.cloneElement(i,{ref:n})}class bv{receiveHandlerId(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(n){this.dragSourceOptionsInternal=n}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(n){this.dragPreviewOptionsInternal=n}reconnect(){const n=this.reconnectDragSource();this.reconnectDragPreview(n)}reconnectDragSource(){const n=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?n?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),r):(this.lastConnectedDragSource=n,r):r}reconnectDragPreview(n=!1){const r=this.dragPreview,o=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(o&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ja(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ja(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(n){this.hooks=tl({dragSource:(r,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,qa(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,qa(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=n}}class Sv{get connectTarget(){return this.dropTarget}reconnect(){const n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(n){this.dropTargetOptionsInternal=n}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ja(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(n){this.hooks=tl({dropTarget:(r,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,qa(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=n}}function Hn(){const{dragDropManager:i}=A.useContext(ku);return ne(i!=null,"Expected drag drop context"),i}function wv(i,n){const r=Hn(),o=A.useMemo(()=>new bv(r.getBackend()),[r]);return bn(()=>(o.dragSourceOptions=i||null,o.reconnect(),()=>o.disconnectDragSource()),[o,i]),bn(()=>(o.dragPreviewOptions=n||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,n]),o}function _v(){const i=Hn();return A.useMemo(()=>new dv(i),[i])}class Ev{beginDrag(){const n=this.spec,r=this.monitor;let o=null;return typeof n.item=="object"?o=n.item:typeof n.item=="function"?o=n.item(r):o={},o??null}canDrag(){const n=this.spec,r=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(r):!0}isDragging(n,r){const o=this.spec,s=this.monitor,{isDragging:l}=o;return l?l(s):r===n.getSourceId()}endDrag(){const n=this.spec,r=this.monitor,o=this.connector,{end:s}=n;s&&s(r.getItem(),r),o.reconnect()}constructor(n,r,o){this.spec=n,this.monitor=r,this.connector=o}}function Tv(i,n,r){const o=A.useMemo(()=>new Ev(i,n,r),[n,r]);return A.useEffect(()=>{o.spec=i},[i]),o}function xv(i){return A.useMemo(()=>{const n=i.type;return ne(n!=null,"spec.type must be defined"),n},[i])}function Iv(i,n,r){const o=Hn(),s=Tv(i,n,r),l=xv(i);bn(function(){if(l!=null){const[d,p]=pv(l,s,o);return n.receiveHandlerId(d),r.receiveHandlerId(d),p}},[o,n,r,s,l])}function Ov(i,n){const r=el(i,n);ne(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=_v(),s=wv(r.options,r.previewOptions);return Iv(r,o,s),[Qu(r.collect,o,s),fv(s),cv(s)]}function Dv(i){return A.useMemo(()=>i.hooks.dropTarget(),[i])}function Av(i){const n=Hn(),r=A.useMemo(()=>new Sv(n.getBackend()),[n]);return bn(()=>(r.dropTargetOptions=i||null,r.reconnect(),()=>r.disconnectDropTarget()),[i]),r}function Cv(){const i=Hn();return A.useMemo(()=>new hv(i),[i])}function Nv(i){const{accept:n}=i;return A.useMemo(()=>(ne(i.accept!=null,"accept must be defined"),Array.isArray(n)?n:[n]),[n])}class Pv{canDrop(){const n=this.spec,r=this.monitor;return n.canDrop?n.canDrop(r.getItem(),r):!0}hover(){const n=this.spec,r=this.monitor;n.hover&&n.hover(r.getItem(),r)}drop(){const n=this.spec,r=this.monitor;if(n.drop)return n.drop(r.getItem(),r)}constructor(n,r){this.spec=n,this.monitor=r}}function Lv(i,n){const r=A.useMemo(()=>new Pv(i,n),[n]);return A.useEffect(()=>{r.spec=i},[i]),r}function Mv(i,n,r){const o=Hn(),s=Lv(i,n),l=Nv(i);bn(function(){const[d,p]=gv(l,s,o);return n.receiveHandlerId(d),r.receiveHandlerId(d),p},[o,n,s,r,l.map(f=>f.toString()).join("|")])}function Ga(i,n){const r=el(i,n),o=Cv(),s=Av(r.options);return Mv(r,o,s),[Qu(r.collect,o,s),Dv(s)]}var Ya={exports:{}};var rl;function kv(){return rl||(rl=1,(function(i){(function(){var n={}.hasOwnProperty;function r(){for(var l="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(l=s(l,o(d)))}return l}function o(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return r.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var f="";for(var d in l)n.call(l,d)&&l[d]&&(f=s(f,d));return f}function s(l,f){return f?l?l+" "+f:l+f:l}i.exports?(r.default=r,i.exports=r):window.classNames=r})()})(Ya)),Ya.exports}var Fv=kv();const Et=br(Fv),il=i=>!!i&&i[0]==="o",al=yr.unstable_batchedUpdates,_r=(i,n)=>i===!0||!!(i&&i[n]),gt=(i,n)=>typeof i=="function"?i(n):i,Rv="_szhsinMenu",Wv=i=>i[Rv],gi=(i,n)=>(n&&Object.keys(n).forEach(r=>{const o=i[r],s=n[r];typeof s=="function"&&o?i[r]=(...l)=>{s(...l),o(...l)}:i[r]=s}),i),Bv=i=>{if(typeof i!="string")return{top:0,right:0,bottom:0,left:0};const n=i.trim().split(/\s+/,4).map(parseFloat),r=isNaN(n[0])?0:n[0],o=isNaN(n[1])?r:n[1];return{top:r,right:o,bottom:isNaN(n[2])?r:n[2],left:isNaN(n[3])?o:n[3]}},Ja=i=>{for(;i;){if(i=i.parentNode,!i||i===document.body||!i.parentNode)return;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(i);if(/auto|scroll|overlay|hidden/.test(n+o+r))return i}};function ol(i,n){return{"aria-disabled":i||void 0,tabIndex:n?0:-1}}function sl(i,n){for(let r=0;r<i.length;r++)if(i[r]===n)return r;return-1}const pi=({block:i,element:n,modifiers:r,className:o})=>A.useMemo(()=>{const s=n?`${i}__${n}`:i;let l=s;r&&Object.keys(r).forEach(d=>{const p=r[d];p&&(l+=` ${s}--${p===!0?d:`${d}-${p}`}`)});let f=typeof o=="function"?o(r):o;return typeof f=="string"&&(f=f.trim(),f&&(l+=` ${f}`)),l},[i,n,r,o]),$v="szh-menu-container",vi="szh-menu",Uv="arrow",Hv="item",ul=A.createContext(),ll=A.createContext({}),fl=A.createContext({}),cl=A.createContext({}),zv=A.createContext({}),Va=A.createContext({}),Tt=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Ce=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),Er=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Tr=Object.freeze({FIRST:"first",LAST:"last"}),jv=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),dl="absolute",qv="none",Gv="menuitem",Xa={preventScroll:!0},Yv=({className:i,containerRef:n,containerProps:r,children:o,isOpen:s,theming:l,transition:f,onClose:d})=>{const p=_r(f,"item"),m=({key:w})=>{w===Tt.ESC&>(d,{key:w,reason:Er.CANCEL})},S=w=>{s&&!w.currentTarget.contains(w.relatedTarget)&>(d,{reason:Er.BLUR})};return $.jsx("div",{...gi({onKeyDown:m,onBlur:S},r),className:pi({block:$v,modifiers:A.useMemo(()=>({theme:l,itemTransition:p}),[l,p]),className:i}),style:{position:"absolute",...r?.style},ref:n,children:o})},Jv=()=>{let i,n=0;return{toggle:r=>{r?n++:n--,n=Math.max(n,0)},on:(r,o,s)=>{n?i||(i=setTimeout(()=>{i=0,o()},r)):s?.()},off:()=>{i&&(clearTimeout(i),i=0)}}},Vv=i=>{const[n,r]=A.useState(),s=A.useRef({items:[],hoverIndex:-1,sorted:!1}).current,l=A.useCallback((d,p)=>{const{items:m}=s;if(!d)s.items=[];else if(p)m.push(d);else{const S=m.indexOf(d);S>-1&&(m.splice(S,1),d.contains(document.activeElement)&&(i.current.focus(Xa),r()))}s.hoverIndex=-1,s.sorted=!1},[s,i]),f=A.useCallback((d,p,m)=>{const{items:S,hoverIndex:w}=s,O=()=>{if(s.sorted)return;const _=i.current.querySelectorAll(".szh-menu__item");S.sort((I,C)=>sl(_,I)-sl(_,C)),s.sorted=!0};let y=-1,E;switch(d){case Ce.RESET:break;case Ce.SET:E=p;break;case Ce.UNSET:E=_=>_===p?void 0:_;break;case Ce.FIRST:O(),y=0,E=S[y];break;case Ce.LAST:O(),y=S.length-1,E=S[y];break;case Ce.SET_INDEX:O(),y=m,E=S[y];break;case Ce.INCREASE:O(),y=w,y<0&&(y=S.indexOf(p)),y++,y>=S.length&&(y=0),E=S[y];break;case Ce.DECREASE:O(),y=w,y<0&&(y=S.indexOf(p)),y--,y<0&&(y=S.length-1),E=S[y];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${d}`)}E||(y=-1),r(E),s.hoverIndex=y},[i,s]);return{hoverItem:n,dispatch:f,updateItems:l}},hl=(i,n)=>Math.round(i)===n?i:n,Xv=i=>{const n=i.getBoundingClientRect();return n.width=hl(n.width,i.offsetWidth),n.height=hl(n.height,i.offsetHeight),n},Kv=(i,n,r,o)=>{const s=Xv(n),l=i.getBoundingClientRect(),f=r===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:r.getBoundingClientRect(),d=Bv(o),p=E=>E+l.left-f.left-d.left,m=E=>E+l.left+s.width-f.right+d.right,S=E=>E+l.top-f.top-d.top,w=E=>E+l.top+s.height-f.bottom+d.bottom;return{menuRect:s,containerRect:l,getLeftOverflow:p,getRightOverflow:m,getTopOverflow:S,getBottomOverflow:w,confineHorizontally:E=>{let _=p(E);if(_<0)E-=_;else{const I=m(E);I>0&&(E-=I,_=p(E),_<0&&(E-=_))}return E},confineVertically:E=>{let _=S(E);if(_<0)E-=_;else{const I=w(E);I>0&&(E-=I,_=S(E),_<0&&(E-=_))}return E}}},Zv=({arrowRef:i,menuY:n,anchorRect:r,containerRect:o,menuRect:s})=>{let l=r.top-o.top-n+r.height/2;const f=i.current.offsetHeight*1.25;return l=Math.max(f,l),l=Math.min(l,s.height-f),l},Qv=({anchorRect:i,containerRect:n,menuRect:r,placeLeftorRightY:o,placeLeftX:s,placeRightX:l,getLeftOverflow:f,getRightOverflow:d,confineHorizontally:p,confineVertically:m,arrowRef:S,arrow:w,direction:O,position:y})=>{let E=O,_=o;y!=="initial"&&(_=m(_),y==="anchor"&&(_=Math.min(_,i.bottom-n.top),_=Math.max(_,i.top-n.top-r.height)));let I,C,F;return E==="left"?(I=s,y!=="initial"&&(C=f(I),C<0&&(F=d(l),(F<=0||-C>F)&&(I=l,E="right")))):(I=l,y!=="initial"&&(F=d(I),F>0&&(C=f(s),(C>=0||-C<F)&&(I=s,E="left")))),y==="auto"&&(I=p(I)),{arrowY:w?Zv({menuY:_,arrowRef:S,anchorRect:i,containerRect:n,menuRect:r}):void 0,x:I,y:_,computedDirection:E}},em=({arrowRef:i,menuX:n,anchorRect:r,containerRect:o,menuRect:s})=>{let l=r.left-o.left-n+r.width/2;const f=i.current.offsetWidth*1.25;return l=Math.max(f,l),l=Math.min(l,s.width-f),l},tm=({anchorRect:i,containerRect:n,menuRect:r,placeToporBottomX:o,placeTopY:s,placeBottomY:l,getTopOverflow:f,getBottomOverflow:d,confineHorizontally:p,confineVertically:m,arrowRef:S,arrow:w,direction:O,position:y})=>{let E=O==="top"?"top":"bottom",_=o;y!=="initial"&&(_=p(_),y==="anchor"&&(_=Math.min(_,i.right-n.left),_=Math.max(_,i.left-n.left-r.width)));let I,C,F;return E==="top"?(I=s,y!=="initial"&&(C=f(I),C<0&&(F=d(l),(F<=0||-C>F)&&(I=l,E="bottom")))):(I=l,y!=="initial"&&(F=d(I),F>0&&(C=f(s),(C>=0||-C<F)&&(I=s,E="top")))),y==="auto"&&(I=m(I)),{arrowX:w?em({menuX:_,arrowRef:S,anchorRect:i,containerRect:n,menuRect:r}):void 0,x:_,y:I,computedDirection:E}},nm=({arrow:i,align:n,direction:r,gap:o,shift:s,position:l,anchorRect:f,arrowRef:d,positionHelpers:p})=>{const{menuRect:m,containerRect:S}=p,w=r==="left"||r==="right";let O=w?o:s,y=w?s:o;if(i){const B=d.current;w?O+=B.offsetWidth:y+=B.offsetHeight}const E=f.left-S.left-m.width-O,_=f.right-S.left+O,I=f.top-S.top-m.height-y,C=f.bottom-S.top+y;let F,U;n==="end"?(F=f.right-S.left-m.width,U=f.bottom-S.top-m.height):n==="center"?(F=f.left-S.left-(m.width-f.width)/2,U=f.top-S.top-(m.height-f.height)/2):(F=f.left-S.left,U=f.top-S.top),F+=O,U+=y;const V={...p,anchorRect:f,placeLeftX:E,placeRightX:_,placeLeftorRightY:U,placeTopY:I,placeBottomY:C,placeToporBottomX:F,arrowRef:d,arrow:i,direction:r,position:l};switch(r){case"left":case"right":return Qv(V);default:return tm(V)}},mi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?A.useLayoutEffect:A.useEffect;function gl(i,n){typeof i=="function"?i(n):i.current=n}const Ka=(i,n)=>A.useMemo(()=>i?n?r=>{gl(i,r),gl(n,r)}:i:n,[i,n]),pl=-9999,rm=({ariaLabel:i,menuClassName:n,menuStyle:r,arrow:o,arrowProps:s={},anchorPoint:l,anchorRef:f,containerRef:d,containerProps:p,externalRef:m,parentScrollingRef:S,align:w="start",direction:O="bottom",position:y="auto",overflow:E="visible",setDownOverflow:_,repositionFlag:I,captureFocus:C=!0,state:F,endTransition:U,isDisabled:V,menuItemFocus:B,gap:ue=0,shift:N=0,children:L,onClose:j,focusProps:ee,...Y})=>{const[ae,X]=A.useState({x:pl,y:pl}),[We,Je]=A.useState({}),[Ve,Ot]=A.useState(),[He,gs]=A.useState(O),[Dt]=A.useState(Jv),[rt,Ri]=A.useReducer(ce=>ce+1,1),{transition:Wi,boundingBoxRef:Mr,boundingBoxPadding:qt,rootMenuRef:En,rootAnchorRef:kr,scrollNodesRef:Tn,reposition:sn,viewScroll:Fr,submenuCloseDelay:Xn}=A.useContext(Va),{submenuCtx:Kn,reposSubmenu:Bi=I}=A.useContext(fl),De=A.useRef(),un=A.useRef(),$i=A.useRef(!1),{hoverItem:it,dispatch:ze,updateItems:Zn}=Vv(De),Ae=il(F),Xe=_r(Wi,"open"),ln=_r(Wi,"close"),Be=Tn.current,ps=ce=>{switch(ce.key){case Tt.HOME:ze(Ce.FIRST);break;case Tt.END:ze(Ce.LAST);break;case Tt.UP:ze(Ce.DECREASE,it);break;case Tt.DOWN:ze(Ce.INCREASE,it);break;case Tt.SPACE:ce.target&&ce.target.className.indexOf(vi)!==-1&&ce.preventDefault();return;default:return}ce.preventDefault(),ce.stopPropagation()},xn=()=>{F==="closing"&&Ot(),gt(U)},vs=ce=>{ce.stopPropagation(),Dt.on(Xn,()=>{ze(Ce.RESET),De.current.focus(Xa)})},In=ce=>{ce.target===ce.currentTarget&&Dt.off()},je=A.useCallback(ce=>{const Le=De.current,Ke=d.current;if(!Le||!Ke)return;const at=f?f.current?.getBoundingClientRect():l?{left:l.x,right:l.x,top:l.y,bottom:l.y,width:0,height:0}:null;if(!at){process.env.NODE_ENV!=="production"&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open.");return}Be.menu||(Be.menu=(Mr?Mr.current:Ja(En.current))||window);const xe=Kv(Ke,Le,Be.menu,qt);let{arrowX:tr,arrowY:ms,x:ys,y:An,computedDirection:bs}=nm({arrow:o,align:w,direction:O,gap:ue,shift:N,position:y,anchorRect:at,arrowRef:un,positionHelpers:xe});const{menuRect:Ss}=xe,Hi=Ss.height;if(!ce&&E!=="visible"){const{getTopOverflow:Hr,getBottomOverflow:ws}=xe;let Gt,zr;const jr=ws(An);if(jr>0)Gt=Hi-jr,zr=jr;else{const nr=Hr(An);nr<0&&(Gt=Hi+nr,zr=0-nr,Gt>=0&&(An-=nr))}Gt>=0&&Ot({height:Gt,overflowAmt:zr})}o&&Je({x:tr,y:ms}),X({x:ys,y:An}),gs(bs)},[o,w,qt,O,ue,N,y,E,l,f,d,Mr,En,Be]);mi(()=>{Ae&&(je(),$i.current&&Ri()),$i.current=Ae},[Ae,je,Bi]),mi(()=>{Ve&&!_&&(De.current.scrollTop=0)},[Ve,_]),mi(()=>Zn,[Zn]),A.useEffect(()=>{let{menu:ce}=Be;if(!Ae||!ce)return;if(ce=ce.addEventListener?ce:window,!Be.anchors){Be.anchors=[];let xe=Ja(kr&&kr.current);for(;xe&&xe!==ce;)Be.anchors.push(xe),xe=Ja(xe)}let Le=Fr;if(Be.anchors.length&&Le==="initial"&&(Le="auto"),Le==="initial")return;const Ke=()=>{Le==="auto"?al(()=>je(!0)):gt(j,{reason:Er.SCROLL})},at=Be.anchors.concat(Fr!=="initial"?ce:[]);return at.forEach(xe=>xe.addEventListener("scroll",Ke)),()=>at.forEach(xe=>xe.removeEventListener("scroll",Ke))},[kr,Be,Ae,j,Fr,je]);const Qn=!!Ve&&Ve.overflowAmt>0;A.useEffect(()=>{if(Qn||!Ae||!S)return;const ce=()=>al(je),Le=S.current;return Le.addEventListener("scroll",ce),()=>Le.removeEventListener("scroll",ce)},[Ae,Qn,S,je]),A.useEffect(()=>{if(!Ae||typeof ResizeObserver!="function"||sn==="initial")return;const ce=[],Le=new ResizeObserver(xe=>xe.forEach(({target:tr})=>{ce.indexOf(tr)<0?ce.push(tr):yr.flushSync(()=>{je(),Ri()})})),Ke={box:"border-box"};Le.observe(De.current,Ke);const at=f?.current;return at&&Le.observe(at,Ke),()=>Le.disconnect()},[Ae,sn,f,je]),A.useEffect(()=>{if(!Ae){ze(Ce.RESET),ln||Ot();return}const{position:ce,alwaysUpdate:Le}=B||{},Ke=()=>{ce===Tr.FIRST?ze(Ce.FIRST):ce===Tr.LAST?ze(Ce.LAST):ce>=-1&&ze(Ce.SET_INDEX,void 0,ce)};if(Le)Ke();else if(C){const at=setTimeout(()=>{const xe=De.current;xe&&!xe.contains(document.activeElement)&&(xe.focus(Xa),Ke())},Xe?170:100);return()=>clearTimeout(at)}},[Ae,Xe,ln,C,B,ze]);const Rr=A.useMemo(()=>({isParentOpen:Ae,submenuCtx:Dt,dispatch:ze,updateItems:Zn}),[Ae,Dt,ze,Zn]);let On,Dn;Ve&&(_?Dn=Ve.overflowAmt:On=Ve.height);const Wr=A.useMemo(()=>({reposSubmenu:rt,submenuCtx:Dt,overflow:E,overflowAmt:Dn,parentMenuRef:De,parentDir:He}),[rt,Dt,E,Dn,He]),Br=On>=0?{maxHeight:On,overflow:E}:void 0,er=A.useMemo(()=>({state:F,align:w,dir:He}),[F,w,He]),$r=A.useMemo(()=>({dir:He}),[He]),Ur=pi({block:vi,element:Uv,modifiers:$r,className:s.className}),Ui=$.jsxs("ul",{role:"menu","aria-label":i,...ol(V),...gi({onPointerEnter:Kn?.off,onPointerMove:vs,onPointerLeave:In,onKeyDown:ps,onAnimationEnd:xn},Y),ref:Ka(m,De),className:pi({block:vi,modifiers:er,className:n}),style:{...r,...Br,margin:0,display:F==="closed"?"none":void 0,position:dl,left:ae.x,top:ae.y},children:[o&&$.jsx("li",{"aria-hidden":!0,...s,className:Ur,style:{display:"block",position:dl,left:We.x,top:We.y,...s.style},ref:un}),$.jsx(fl.Provider,{value:Wr,children:$.jsx(ll.Provider,{value:Rr,children:$.jsx(ul.Provider,{value:it,children:gt(L,er)})})})]});return p?$.jsx(Yv,{...p,isOpen:Ae,children:Ui}):Ui},vl=A.forwardRef(function({"aria-label":n,className:r,containerProps:o,initialMounted:s,unmountOnClose:l,transition:f,transitionTimeout:d,boundingBoxRef:p,boundingBoxPadding:m,reposition:S="auto",submenuOpenDelay:w=300,submenuCloseDelay:O=150,viewScroll:y="initial",portal:E,theming:_,onItemClick:I,...C},F){const U=A.useRef(null),V=A.useRef({}),{anchorRef:B,state:ue,onClose:N}=C,L=A.useMemo(()=>({initialMounted:s,unmountOnClose:l,transition:f,transitionTimeout:d,boundingBoxRef:p,boundingBoxPadding:m,rootMenuRef:U,rootAnchorRef:B,scrollNodesRef:V,reposition:S,viewScroll:y,submenuOpenDelay:w,submenuCloseDelay:O}),[s,l,f,d,B,p,m,S,y,w,O]),j=A.useMemo(()=>({handleClick(Y,ae){Y.stopPropagation||gt(I,Y);let X=Y.keepOpen;X===void 0&&(X=ae&&Y.key===Tt.SPACE),X||gt(N,{value:Y.value,key:Y.key,reason:Er.CLICK})},handleClose(Y){gt(N,{key:Y,reason:Er.CLICK})}}),[I,N]);if(!ue)return null;const ee=$.jsx(Va.Provider,{value:L,children:$.jsx(cl.Provider,{value:j,children:$.jsx(rm,{...C,ariaLabel:n||"Menu",externalRef:F,containerRef:U,containerProps:{className:r,containerRef:U,containerProps:o,theming:_,transition:f,onClose:N}})})});return E===!0&&typeof document<"u"?yr.createPortal(ee,document.body):E?E.target?yr.createPortal(ee,E.target):E.stablePosition?null:ee:ee}),Za=0,Qa=1,yi=2,bi=3,Si=4,im=5,ml=6,am=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],yl=i=>({_s:i,status:am[i],isEnter:i<bi,isMounted:i!==ml,isResolved:i===yi||i>Si}),eo=i=>i?ml:im,om=(i,n)=>{switch(i){case Qa:case Za:return yi;case Si:case bi:return eo(n)}},sm=i=>typeof i=="object"?[i.enter,i.exit]:[i,i],to=setTimeout,um=(i,n)=>to(()=>{isNaN(document.body.offsetTop)||i(n+1)},0),bl=(i,n,r,o,s)=>{clearTimeout(o.current);const l=yl(i);n(l),r.current=l,s&&s({current:l})},lm=({enter:i=!0,exit:n=!0,preEnter:r,preExit:o,timeout:s,initialEntered:l,mountOnEnter:f,unmountOnExit:d,onStateChange:p}={})=>{const[m,S]=A.useState(()=>yl(l?yi:eo(f))),w=A.useRef(m),O=A.useRef(0),[y,E]=sm(s),_=A.useCallback(()=>{const I=om(w.current._s,d);I&&bl(I,S,w,O,p)},[p,d]);return[m,A.useCallback(I=>{const C=U=>{switch(bl(U,S,w,O,p),U){case Qa:y>=0&&(O.current=to(_,y));break;case Si:E>=0&&(O.current=to(_,E));break;case Za:case bi:O.current=um(C,U);break}},F=w.current.isEnter;typeof I!="boolean"&&(I=!F),I?!F&&C(i?r?Za:Qa:yi):F&&C(n?o?bi:Si:eo(d))},[_,p,i,n,r,o,y,E,d]),_]},no=({initialOpen:i,initialMounted:n,unmountOnClose:r,transition:o,transitionTimeout:s=500,onMenuChange:l}={})=>{const f=_r(o,"open"),d=_r(o,"close"),[{status:p},m,S]=lm({initialEntered:i,mountOnEnter:!n,unmountOnExit:r,timeout:s,enter:f,exit:d,onStateChange:A.useCallback(({current:{isEnter:w,isResolved:O}})=>{!l||w&&f&&O||!w&&d&&O||l({open:w})},[l,f,d])});return[{state:jv[p],endTransition:S},m]},fm=i=>{const[n,r]=no(i),[o,s]=A.useState(),l=(f,d)=>{s({position:f,alwaysUpdate:d}),r(!0)};return[{menuItemFocus:o,...n},r,l]},cm=(i,n)=>{if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[r]=A.useState({});return{onMouseDown:()=>{r.v=i&&i!=="closed"},onClick:o=>r.v?r.v=!1:n(!0,o)}},dm=parseInt(A.version)<19,Sl=A.forwardRef(function({"aria-label":n,captureFocus:r,initialOpen:o,menuButton:s,instanceRef:l,onMenuChange:f,...d},p){const[m,S,w]=fm({...d,onMenuChange:f}),{state:O}=m,y=il(O),E=A.useRef(null),_=cm(O,(B,ue)=>w(ue.detail?void 0:Tr.FIRST)),I=A.useCallback(B=>{S(!1),B.key&&E.current.focus()},[S]),C=B=>{switch(B.key){case Tt.UP:w(Tr.LAST);break;case Tt.DOWN:w(Tr.FIRST);break;default:return}B.preventDefault()},F=gt(s,{open:y});if(!F||!F.type)throw new Error("Menu requires a menuButton prop.");const U={...gi({onKeyDown:C,..._},F.props),ref:Ka(dm?F.ref:F.props.ref,E)};Wv(F.type)==="MenuButton"&&(U.isOpen=y);const V=A.cloneElement(F,U);return A.useImperativeHandle(l,()=>({openMenu:w,closeMenu:()=>S(!1)})),$.jsxs(A.Fragment,{children:[V,$.jsx(vl,{...d,...m,"aria-label":n||(typeof F.props.children=="string"?F.props.children:"Menu"),anchorRef:E,ref:p,onClose:I})]})}),hm=(i,n)=>{const r=A.memo(n),o=A.forwardRef((s,l)=>{const f=A.useRef(null);return $.jsx(r,{...s,itemRef:f,externalRef:l,isHovering:A.useContext(ul)===f.current})});return o.displayName=`WithHovering(${i})`,o},gm=i=>{const[n,r]=A.useState(!1);return A.useEffect(()=>{!i&&r(!1)},[i]),[n,()=>!n&&r(!0),()=>r(!1)]},pm=(i,n,r)=>{mi(()=>{if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${n.current.outerHTML}`);if(i)return;const o=n.current;return r(o,!0),()=>{r(o)}},[i,n,r])},vm=(i,n,r,o)=>{const[s,l,f]=gm(r),{submenuCloseDelay:d}=A.useContext(Va),{isParentOpen:p,submenuCtx:m,dispatch:S,updateItems:w}=A.useContext(ll),O=()=>{!r&&!o&&S(Ce.SET,i.current)},y=()=>{!o&&S(Ce.UNSET,i.current)},E=C=>{r&&!C.currentTarget.contains(C.relatedTarget)&&y()},_=C=>{o||(C.stopPropagation(),l(),m.on(d,O,O))},I=(C,F)=>{f(),m.off(),!F&&y()};return pm(o,i,w),A.useEffect(()=>{r&&p&&n.current&&n.current.focus()},[n,r,p]),{mouseOver:s,setHover:O,onBlur:E,onPointerMove:_,onPointerLeave:I}},wi=hm("MenuItem",function({className:n,value:r,href:o,type:s,checked:l,disabled:f,children:d,onClick:p,isHovering:m,itemRef:S,externalRef:w,...O}){const y=!!f,{mouseOver:E,setHover:_,...I}=vm(S,S,m,y),C=A.useContext(cl),F=A.useContext(zv),U=s==="radio",V=s==="checkbox",B=!!o&&!y&&!U&&!V,ue=U?F.value===r:V?!!l:!1,N=ae=>{if(y){ae.stopPropagation(),ae.preventDefault();return}const X={value:r,syntheticEvent:ae};ae.key!==void 0&&(X.key=ae.key),V&&(X.checked=!ue),U&&(X.name=F.name),gt(p,X),U&>(F.onRadioChange,X),C.handleClick(X,V||U)},L=ae=>{if(m)switch(ae.key){case Tt.ENTER:ae.preventDefault();case Tt.SPACE:B?S.current.click():N(ae)}},j=A.useMemo(()=>({type:s,disabled:y,hover:E||m,checked:ue,anchor:B}),[s,y,E,m,ue,B]),ee=gi({...I,onPointerDown:_,onKeyDown:L,onClick:N},O),Y={role:U?"menuitemradio":V?"menuitemcheckbox":Gv,"aria-checked":U||V?ue:void 0,...ol(y,m),...ee,ref:Ka(w,S),className:pi({block:vi,element:Hv,modifiers:j,className:n}),children:A.useMemo(()=>gt(d,j),[d,j])};return B?$.jsx("li",{role:qv,children:$.jsx("a",{href:o,...Y})}):$.jsx("li",{...Y})});if(!A.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!mr.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function mm(i){i()}function ym(i){i||(i=mm,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),mr.configure({reactionScheduler:i})}function bm(i){return mr.getDependencyTree(i)}var Sm=1e4,wm=1e4,_m=(function(){function i(n){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(o){o===void 0&&(o=Sm),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var s=Date.now();r.registrations.forEach(function(l,f){s-l.registeredAt>=o&&(r.finalize(l.value),r.registrations.delete(f))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(i.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(n,r,o){this.registrations.set(o,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(i.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(n){this.registrations.delete(n)}}),Object.defineProperty(i.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,wm))}}),i})(),Em=typeof FinalizationRegistry<"u"?FinalizationRegistry:_m,ro=new Em(function(i){var n;(n=i.reaction)===null||n===void 0||n.dispose(),i.reaction=null}),_i={exports:{}},io={};var wl;function Tm(){if(wl)return io;wl=1;var i=A;function n(w,O){return w===O&&(w!==0||1/w===1/O)||w!==w&&O!==O}var r=typeof Object.is=="function"?Object.is:n,o=i.useState,s=i.useEffect,l=i.useLayoutEffect,f=i.useDebugValue;function d(w,O){var y=O(),E=o({inst:{value:y,getSnapshot:O}}),_=E[0].inst,I=E[1];return l(function(){_.value=y,_.getSnapshot=O,p(_)&&I({inst:_})},[w,y,O]),s(function(){return p(_)&&I({inst:_}),w(function(){p(_)&&I({inst:_})})},[w]),f(y),y}function p(w){var O=w.getSnapshot;w=w.value;try{var y=O();return!r(w,y)}catch{return!0}}function m(w,O){return O()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return io.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:S,io}var ao={};var _l;function xm(){return _l||(_l=1,process.env.NODE_ENV!=="production"&&(function(){function i(y,E){return y===E&&(y!==0||1/y===1/E)||y!==y&&E!==E}function n(y,E){S||s.startTransition===void 0||(S=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var _=E();if(!w){var I=E();l(_,I)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}I=f({inst:{value:_,getSnapshot:E}});var C=I[0].inst,F=I[1];return p(function(){C.value=_,C.getSnapshot=E,r(C)&&F({inst:C})},[y,_,E]),d(function(){return r(C)&&F({inst:C}),y(function(){r(C)&&F({inst:C})})},[y]),m(_),_}function r(y){var E=y.getSnapshot;y=y.value;try{var _=E();return!l(y,_)}catch{return!0}}function o(y,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=A,l=typeof Object.is=="function"?Object.is:i,f=s.useState,d=s.useEffect,p=s.useLayoutEffect,m=s.useDebugValue,S=!1,w=!1,O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:n;ao.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ao}var El;function Im(){return El||(El=1,process.env.NODE_ENV==="production"?_i.exports=Tm():_i.exports=xm()),_i.exports}var Om=Im();function Tl(i){i.reaction=new mr.Reaction("observer".concat(i.name),function(){var n;i.stateVersion=Symbol(),(n=i.onStoreChange)===null||n===void 0||n.call(i)})}function Dm(i,n){n===void 0&&(n="observed");var r=A.useRef(null);if(!r.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:n,subscribe:function(d){return ro.unregister(o),o.onStoreChange=d,o.reaction||(Tl(o),o.stateVersion=Symbol()),function(){var p;o.onStoreChange=null,(p=o.reaction)===null||p===void 0||p.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};r.current=o}var s=r.current;s.reaction||(Tl(s),ro.register(r,s,s)),A.useDebugValue(s.reaction,bm),Om.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot);var l,f;if(s.reaction.track(function(){try{l=i()}catch(d){f=d}}),f)throw f;return l}var oo,so,Am=!0,xl=!0,Il=typeof Symbol=="function"&&Symbol.for,Cm=(so=(oo=Object.getOwnPropertyDescriptor(function(){},"name"))===null||oo===void 0?void 0:oo.configurable)!==null&&so!==void 0?so:!1,Ol=Il?Symbol.for("react.forward_ref"):typeof A.forwardRef=="function"&&A.forwardRef(function(i){return null}).$$typeof,Dl=Il?Symbol.for("react.memo"):typeof A.memo=="function"&&A.memo(function(i){return null}).$$typeof;function Bt(i,n){var r;if(process.env.NODE_ENV,Dl&&i.$$typeof===Dl)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var o=(r=void 0)!==null&&r!==void 0?r:!1,s=i,l=i.displayName||i.name;if(Ol&&i.$$typeof===Ol&&(o=!0,s=i.render,typeof s!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var f=function(d,p){return Dm(function(){return s(d,p)},l)};return f.displayName=i.displayName,Cm&&Object.defineProperty(f,"name",{value:i.name,writable:!0,configurable:!0}),i.contextTypes&&(f.contextTypes=i.contextTypes,process.env.NODE_ENV!=="production"&&xl&&(xl=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),o&&(f=A.forwardRef(f)),f=A.memo(f),Pm(i,f),process.env.NODE_ENV!=="production"&&Object.defineProperty(f,"contextTypes",{set:function(){var d,p;throw new Error("[mobx-react-lite] `".concat(this.displayName||((d=this.type)===null||d===void 0?void 0:d.displayName)||((p=this.type)===null||p===void 0?void 0:p.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),f}var Nm={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Pm(i,n){Object.keys(i).forEach(function(r){Nm[r]||Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(i,r))})}process.env.NODE_ENV;var uo;ym(yr.unstable_batchedUpdates),uo=ro.finalizeAllImmediately;function lo(i,n){(n==null||n>i.length)&&(n=i.length);for(var r=0,o=Array(n);r<n;r++)o[r]=i[r];return o}function Lm(i){if(Array.isArray(i))return i}function Mm(i){if(Array.isArray(i))return lo(i)}function km(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Fm(i,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,Cl(o.key),o)}}function Rm(i,n,r){return n&&Fm(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}function Ei(i,n){var r=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!r){if(Array.isArray(i)||(r=fo(i))||n){r&&(i=r);var o=0,s=function(){};return{s,n:function(){return o>=i.length?{done:!0}:{done:!1,value:i[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,f=!0,d=!1;return{s:function(){r=r.call(i)},n:function(){var p=r.next();return f=p.done,p},e:function(p){d=!0,l=p},f:function(){try{f||r.return==null||r.return()}finally{if(d)throw l}}}}function re(i,n,r){return(n=Cl(n))in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Wm(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Bm(i,n){var r=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(r!=null){var o,s,l,f,d=[],p=!0,m=!1;try{if(l=(r=r.call(i)).next,n===0){if(Object(r)!==r)return;p=!1}else for(;!(p=(o=l.call(r)).done)&&(d.push(o.value),d.length!==n);p=!0);}catch(S){m=!0,s=S}finally{try{if(!p&&r.return!=null&&(f=r.return(),Object(f)!==f))return}finally{if(m)throw s}}return d}}function $m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Um(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Al(i,n){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),r.push.apply(r,o)}return r}function W(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Al(Object(r),!0).forEach(function(o){re(i,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(r,o))})}return i}function Ti(i,n){return Lm(i)||Bm(i,n)||fo(i,n)||$m()}function xt(i){return Mm(i)||Wm(i)||fo(i)||Um()}function Hm(i,n){if(typeof i!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var o=r.call(i,n);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function Cl(i){var n=Hm(i,"string");return typeof n=="symbol"?n:n+""}function xi(i){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xi(i)}function fo(i,n){if(i){if(typeof i=="string")return lo(i,n);var r={}.toString.call(i).slice(8,-1);return r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set"?Array.from(i):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(i,n):void 0}}var Nl=function(){},co={},Pl={},Ll=null,Ml={mark:Nl,measure:Nl};try{typeof window<"u"&&(co=window),typeof document<"u"&&(Pl=document),typeof MutationObserver<"u"&&(Ll=MutationObserver),typeof performance<"u"&&(Ml=performance)}catch{}var zm=co.navigator||{},kl=zm.userAgent,Fl=kl===void 0?"":kl,rn=co,Se=Pl,Rl=Ll,Ii=Ml;rn.document;var $t=!!Se.documentElement&&!!Se.head&&typeof Se.addEventListener=="function"&&typeof Se.createElement=="function",Wl=~Fl.indexOf("MSIE")||~Fl.indexOf("Trident/"),ho,jm=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,qm=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,Bl={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},Gm={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},$l=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],ke="classic",xr="duotone",Ul="sharp",Hl="sharp-duotone",zl="chisel",jl="etch",ql="jelly",Gl="jelly-duo",Yl="jelly-fill",Jl="notdog",Vl="notdog-duo",Xl="slab",Kl="slab-press",Zl="thumbprint",Ql="utility",ef="utility-duo",tf="utility-fill",nf="whiteboard",Ym="Classic",Jm="Duotone",Vm="Sharp",Xm="Sharp Duotone",Km="Chisel",Zm="Etch",Qm="Jelly",ey="Jelly Duo",ty="Jelly Fill",ny="Notdog",ry="Notdog Duo",iy="Slab",ay="Slab Press",oy="Thumbprint",sy="Utility",uy="Utility Duo",ly="Utility Fill",fy="Whiteboard",rf=[ke,xr,Ul,Hl,zl,jl,ql,Gl,Yl,Jl,Vl,Xl,Kl,Zl,Ql,ef,tf,nf];ho={},re(re(re(re(re(re(re(re(re(re(ho,ke,Ym),xr,Jm),Ul,Vm),Hl,Xm),zl,Km),jl,Zm),ql,Qm),Gl,ey),Yl,ty),Jl,ny),re(re(re(re(re(re(re(re(ho,Vl,ry),Xl,iy),Kl,ay),Zl,oy),Ql,sy),ef,uy),tf,ly),nf,fy);var cy={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},dy={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},hy=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),gy={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},af=["fak","fa-kit","fakd","fa-kit-duotone"],of={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},py=["kit"],vy="kit",my="kit-duotone",yy="Kit",by="Kit Duotone";re(re({},vy,yy),my,by);var Sy={kit:{"fa-kit":"fak"}},wy={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},_y={kit:{fak:"fa-kit"}},sf={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},go,Oi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ey=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Ty="classic",xy="duotone",Iy="sharp",Oy="sharp-duotone",Dy="chisel",Ay="etch",Cy="jelly",Ny="jelly-duo",Py="jelly-fill",Ly="notdog",My="notdog-duo",ky="slab",Fy="slab-press",Ry="thumbprint",Wy="utility",By="utility-duo",$y="utility-fill",Uy="whiteboard",Hy="Classic",zy="Duotone",jy="Sharp",qy="Sharp Duotone",Gy="Chisel",Yy="Etch",Jy="Jelly",Vy="Jelly Duo",Xy="Jelly Fill",Ky="Notdog",Zy="Notdog Duo",Qy="Slab",e0="Slab Press",t0="Thumbprint",n0="Utility",r0="Utility Duo",i0="Utility Fill",a0="Whiteboard";go={},re(re(re(re(re(re(re(re(re(re(go,Ty,Hy),xy,zy),Iy,jy),Oy,qy),Dy,Gy),Ay,Yy),Cy,Jy),Ny,Vy),Py,Xy),Ly,Ky),re(re(re(re(re(re(re(re(go,My,Zy),ky,Qy),Fy,e0),Ry,t0),Wy,n0),By,r0),$y,i0),Uy,a0);var o0="kit",s0="kit-duotone",u0="Kit",l0="Kit Duotone";re(re({},o0,u0),s0,l0);var f0={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},c0={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},po={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},d0=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],uf=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(Ey,d0),h0=["solid","regular","light","thin","duotone","brands","semibold"],lf=[1,2,3,4,5,6,7,8,9,10],g0=lf.concat([11,12,13,14,15,16,17,18,19,20]),p0=["aw","fw","pull-left","pull-right"],v0=[].concat(xt(Object.keys(c0)),h0,p0,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Oi.GROUP,Oi.SWAP_OPACITY,Oi.PRIMARY,Oi.SECONDARY]).concat(lf.map(function(i){return"".concat(i,"x")})).concat(g0.map(function(i){return"w-".concat(i)})),m0={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},Ut="___FONT_AWESOME___",vo=16,ff="fa",cf="svg-inline--fa",Sn="data-fa-i2svg",mo="data-fa-pseudo-element",y0="data-fa-pseudo-element-pending",yo="data-prefix",bo="data-icon",df="fontawesome-i2svg",b0="async",S0=["HTML","HEAD","STYLE","SCRIPT"],hf=["::before","::after",":before",":after"],gf=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ir(i){return new Proxy(i,{get:function(r,o){return o in r?r[o]:r[ke]}})}var pf=W({},Bl);pf[ke]=W(W(W(W({},{"fa-duotone":"duotone"}),Bl[ke]),of.kit),of["kit-duotone"]);var w0=Ir(pf),So=W({},gy);So[ke]=W(W(W(W({},{duotone:"fad"}),So[ke]),sf.kit),sf["kit-duotone"]);var vf=Ir(So),wo=W({},po);wo[ke]=W(W({},wo[ke]),_y.kit);var _o=Ir(wo),Eo=W({},f0);Eo[ke]=W(W({},Eo[ke]),Sy.kit),Ir(Eo);var _0=jm,mf="fa-layers-text",E0=qm,T0=W({},cy);Ir(T0);var x0=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],To=Gm,I0=[].concat(xt(py),xt(v0)),Or=rn.FontAwesomeConfig||{};function O0(i){var n=Se.querySelector("script["+i+"]");if(n)return n.getAttribute(i)}function D0(i){return i===""?!0:i==="false"?!1:i==="true"?!0:i}if(Se&&typeof Se.querySelector=="function"){var A0=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];A0.forEach(function(i){var n=Ti(i,2),r=n[0],o=n[1],s=D0(O0(r));s!=null&&(Or[o]=s)})}var yf={styleDefault:"solid",familyDefault:ke,cssPrefix:ff,replacementClass:cf,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Or.familyPrefix&&(Or.cssPrefix=Or.familyPrefix);var zn=W(W({},yf),Or);zn.autoReplaceSvg||(zn.observeMutations=!1);var G={};Object.keys(yf).forEach(function(i){Object.defineProperty(G,i,{enumerable:!0,set:function(r){zn[i]=r,Dr.forEach(function(o){return o(G)})},get:function(){return zn[i]}})}),Object.defineProperty(G,"familyPrefix",{enumerable:!0,set:function(n){zn.cssPrefix=n,Dr.forEach(function(r){return r(G)})},get:function(){return zn.cssPrefix}}),rn.FontAwesomeConfig=G;var Dr=[];function C0(i){return Dr.push(i),function(){Dr.splice(Dr.indexOf(i),1)}}var jn=vo,Mt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function N0(i){if(!(!i||!$t)){var n=Se.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=i;for(var r=Se.head.childNodes,o=null,s=r.length-1;s>-1;s--){var l=r[s],f=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(f)>-1&&(o=l)}return Se.head.insertBefore(n,o),i}}var P0="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function bf(){for(var i=12,n="";i-- >0;)n+=P0[Math.random()*62|0];return n}function qn(i){for(var n=[],r=(i||[]).length>>>0;r--;)n[r]=i[r];return n}function xo(i){return i.classList?qn(i.classList):(i.getAttribute("class")||"").split(" ").filter(function(n){return n})}function Sf(i){return"".concat(i).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function L0(i){return Object.keys(i||{}).reduce(function(n,r){return n+"".concat(r,'="').concat(Sf(i[r]),'" ')},"").trim()}function Di(i){return Object.keys(i||{}).reduce(function(n,r){return n+"".concat(r,": ").concat(i[r].trim(),";")},"")}function Io(i){return i.size!==Mt.size||i.x!==Mt.x||i.y!==Mt.y||i.rotate!==Mt.rotate||i.flipX||i.flipY}function M0(i){var n=i.transform,r=i.containerWidth,o=i.iconWidth,s={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(n.x*32,", ").concat(n.y*32,") "),f="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),d="rotate(".concat(n.rotate," 0 0)"),p={transform:"".concat(l," ").concat(f," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")};return{outer:s,inner:p,path:m}}function k0(i){var n=i.transform,r=i.width,o=r===void 0?vo:r,s=i.height,l=s===void 0?vo:s,f="";return Wl?f+="translate(".concat(n.x/jn-o/2,"em, ").concat(n.y/jn-l/2,"em) "):f+="translate(calc(-50% + ".concat(n.x/jn,"em), calc(-50% + ").concat(n.y/jn,"em)) "),f+="scale(".concat(n.size/jn*(n.flipX?-1:1),", ").concat(n.size/jn*(n.flipY?-1:1),") "),f+="rotate(".concat(n.rotate,"deg) "),f}var F0=`:root, :host {
|
|
100
24
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
|
|
101
25
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
|
|
102
26
|
--fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
|
|
@@ -646,8 +570,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
646
570
|
margin: auto;
|
|
647
571
|
position: absolute;
|
|
648
572
|
z-index: var(--fa-stack-z-index, auto);
|
|
649
|
-
}`;function Kv(){var n=Fv,e=$v,t=de.cssPrefix,r=de.replacementClass,o=bA;if(t!==n||r!==e){var s=new RegExp("\\.".concat(n,"\\-"),"g"),c=new RegExp("\\--".concat(n,"\\-"),"g"),f=new RegExp("\\.".concat(e),"g");o=o.replace(s,".".concat(t,"-")).replace(c,"--".concat(t,"-")).replace(f,".".concat(r))}return o}var Xv=!1;function nf(){de.autoAddCss&&!Xv&&(hA(Kv()),Xv=!0)}var yA={mixout:function(){return{dom:{css:Kv,insertCss:nf}}},hooks:function(){return{beforeDOMElementCreation:function(){nf()},beforeI2svg:function(){nf()}}}},br=Vr||{};br[mr]||(br[mr]={}),br[mr].styles||(br[mr].styles={}),br[mr].hooks||(br[mr].hooks={}),br[mr].shims||(br[mr].shims=[]);var qn=br[mr],Zv=[],Qv=function(){Ze.removeEventListener("DOMContentLoaded",Qv),ys=1,Zv.map(function(e){return e()})},ys=!1;gr&&(ys=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),ys||Ze.addEventListener("DOMContentLoaded",Qv));function _A(n){gr&&(ys?setTimeout(n,0):Zv.push(n))}function qo(n){var e=n.tag,t=n.attributes,r=t===void 0?{}:t,o=n.children,s=o===void 0?[]:o;return typeof n=="string"?Jv(n):"<".concat(e," ").concat(vA(r),">").concat(s.map(qo).join(""),"</").concat(e,">")}function eg(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}var rf=function(e,t,r,o){var s=Object.keys(e),c=s.length,f=t,d,p,v;for(r===void 0?(d=1,v=e[s[0]]):(d=0,v=r);d<c;d++)p=s[d],v=f(v,e[p],p,e);return v};function tg(n){return Hn(n).length!==1?null:n.codePointAt(0).toString(16)}function ng(n){return Object.keys(n).reduce(function(e,t){var r=n[t],o=!!r.icon;return o?e[r.iconName]=r.icon:e[t]=r,e},{})}function of(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.skipHooks,o=r===void 0?!1:r,s=ng(e);typeof qn.hooks.addPack=="function"&&!o?qn.hooks.addPack(n,ng(e)):qn.styles[n]=J(J({},qn.styles[n]||{}),s),n==="fas"&&of("fa",e)}var Go=qn.styles,wA=qn.shims,rg=Object.keys(Xc),SA=rg.reduce(function(n,e){return n[e]=Object.keys(Xc[e]),n},{}),af=null,ig={},og={},ag={},sg={},ug={};function OA(n){return~uA.indexOf(n)}function EA(n,e){var t=e.split("-"),r=t[0],o=t.slice(1).join("-");return r===n&&o!==""&&!OA(o)?o:null}var cg=function(){var e=function(s){return rf(Go,function(c,f,d){return c[d]=rf(f,s,{}),c},{})};ig=e(function(o,s,c){if(s[3]&&(o[s[3]]=c),s[2]){var f=s[2].filter(function(d){return typeof d=="number"});f.forEach(function(d){o[d.toString(16)]=c})}return o}),og=e(function(o,s,c){if(o[c]=c,s[2]){var f=s[2].filter(function(d){return typeof d=="string"});f.forEach(function(d){o[d]=c})}return o}),ug=e(function(o,s,c){var f=s[2];return o[c]=c,f.forEach(function(d){o[d]=c}),o});var t="far"in Go||de.autoFetchSvg,r=rf(wA,function(o,s){var c=s[0],f=s[1],d=s[2];return f==="far"&&!t&&(f="fas"),typeof c=="string"&&(o.names[c]={prefix:f,iconName:d}),typeof c=="number"&&(o.unicodes[c.toString(16)]={prefix:f,iconName:d}),o},{names:{},unicodes:{}});ag=r.names,sg=r.unicodes,af=_s(de.styleDefault,{family:de.familyDefault})};dA(function(n){af=_s(n.styleDefault,{family:de.familyDefault})}),cg();function sf(n,e){return(ig[n]||{})[e]}function IA(n,e){return(og[n]||{})[e]}function gi(n,e){return(ug[n]||{})[e]}function fg(n){return ag[n]||{prefix:null,iconName:null}}function AA(n){var e=sg[n],t=sf("fas",n);return e||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}function Wr(){return af}var lg=function(){return{prefix:null,iconName:null,rest:[]}};function TA(n){var e=Tt,t=rg.reduce(function(r,o){return r[o]="".concat(de.cssPrefix,"-").concat(o),r},{});return Mv.forEach(function(r){(n.includes(t[r])||n.some(function(o){return SA[r].includes(o)}))&&(e=r)}),e}function _s(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.family,r=t===void 0?Tt:t,o=rA[r][n];if(r===Wo&&!n)return"fad";var s=Hv[r][n]||Hv[r][o],c=n in qn.styles?n:null,f=s||c||null;return f}function xA(n){var e=[],t=null;return n.forEach(function(r){var o=EA(de.cssPrefix,r);o?t=o:r&&e.push(r)}),{iconName:t,rest:e}}function dg(n){return n.sort().filter(function(e,t,r){return r.indexOf(e)===t})}var hg=Bv.concat(Rv);function ws(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.skipLookups,r=t===void 0?!1:t,o=null,s=dg(n.filter(function(y){return hg.includes(y)})),c=dg(n.filter(function(y){return!hg.includes(y)})),f=s.filter(function(y){return o=y,!gv.includes(y)}),d=ps(f,1),p=d[0],v=p===void 0?null:p,b=TA(s),w=J(J({},xA(c)),{},{prefix:_s(v,{family:b})});return J(J(J({},w),PA({values:n,family:b,styles:Go,config:de,canonical:w,givenPrefix:o})),NA(r,o,w))}function NA(n,e,t){var r=t.prefix,o=t.iconName;if(n||!r||!o)return{prefix:r,iconName:o};var s=e==="fa"?fg(o):{},c=gi(r,o);return o=s.iconName||c||o,r=s.prefix||r,r==="far"&&!Go.far&&Go.fas&&!de.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var DA=Mv.filter(function(n){return n!==Tt||n!==Wo}),CA=Object.keys(zc).filter(function(n){return n!==Tt}).map(function(n){return Object.keys(zc[n])}).flat();function PA(n){var e=n.values,t=n.family,r=n.canonical,o=n.givenPrefix,s=o===void 0?"":o,c=n.styles,f=c===void 0?{}:c,d=n.config,p=d===void 0?{}:d,v=t===Wo,b=e.includes("fa-duotone")||e.includes("fad"),w=p.familyDefault==="duotone",y=r.prefix==="fad"||r.prefix==="fa-duotone";if(!v&&(b||w||y)&&(r.prefix="fad"),(e.includes("fa-brands")||e.includes("fab"))&&(r.prefix="fab"),!r.prefix&&DA.includes(t)){var O=Object.keys(f).find(function(A){return CA.includes(A)});if(O||p.autoFetchSvg){var S=J1.get(t).defaultShortPrefixId;r.prefix=S,r.iconName=gi(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||s==="fa")&&(r.prefix=Wr()||"fas"),r}var MA=(function(){function n(){m1(this,n),this.definitions={}}return y1(n,[{key:"add",value:function(){for(var t=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var c=o.reduce(this._pullDefinitions,{});Object.keys(c).forEach(function(f){t.definitions[f]=J(J({},t.definitions[f]||{}),c[f]),of(f,c[f]);var d=Xc[Tt][f];d&&of(d,c[f]),cg()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(s){var c=o[s],f=c.prefix,d=c.iconName,p=c.icon,v=p[2];t[f]||(t[f]={}),v.length>0&&v.forEach(function(b){typeof b=="string"&&(t[f][b]=p)}),t[f][d]=p}),t}}])})(),pg=[],Hi={},qi={},RA=Object.keys(qi);function LA(n,e){var t=e.mixoutsTo;return pg=n,Hi={},Object.keys(qi).forEach(function(r){RA.indexOf(r)===-1&&delete qi[r]}),pg.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(c){typeof o[c]=="function"&&(t[c]=o[c]),vs(o[c])==="object"&&Object.keys(o[c]).forEach(function(f){t[c]||(t[c]={}),t[c][f]=o[c][f]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(c){Hi[c]||(Hi[c]=[]),Hi[c].push(s[c])})}r.provides&&r.provides(qi)}),t}function uf(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];var s=Hi[n]||[];return s.forEach(function(c){e=c.apply(null,[e].concat(r))}),e}function mi(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var o=Hi[n]||[];o.forEach(function(s){s.apply(null,t)})}function Ur(){var n=arguments[0],e=Array.prototype.slice.call(arguments,1);return qi[n]?qi[n].apply(null,e):void 0}function cf(n){n.prefix==="fa"&&(n.prefix="fas");var e=n.iconName,t=n.prefix||Wr();if(e)return e=gi(t,e)||e,eg(vg.definitions,t,e)||eg(qn.styles,t,e)}var vg=new MA,kA=function(){de.autoReplaceSvg=!1,de.observeMutations=!1,mi("noAuto")},BA={i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return gr?(mi("beforeI2svg",e),Ur("pseudoElements2svg",e),Ur("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;de.autoReplaceSvg===!1&&(de.autoReplaceSvg=!0),de.observeMutations=!0,_A(function(){FA({autoReplaceSvgRoot:t}),mi("watch",e)})}},jA={icon:function(e){if(e===null)return null;if(vs(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:gi(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=_s(e[0]);return{prefix:r,iconName:gi(r,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(de.cssPrefix,"-"))>-1||e.match(iA))){var o=ws(e.split(" "),{skipLookups:!0});return{prefix:o.prefix||Wr(),iconName:gi(o.prefix,o.iconName)||o.iconName}}if(typeof e=="string"){var s=Wr();return{prefix:s,iconName:gi(s,e)||e}}}},tn={noAuto:kA,config:de,dom:BA,parse:jA,library:vg,findIconDefinition:cf,toHtml:qo},FA=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,r=t===void 0?Ze:t;(Object.keys(qn.styles).length>0||de.autoFetchSvg)&&gr&&de.autoReplaceSvg&&tn.dom.i2svg({node:r})};function Ss(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(function(r){return qo(r)})}}),Object.defineProperty(n,"node",{get:function(){if(gr){var r=Ze.createElement("div");return r.innerHTML=n.html,r.children}}}),n}function $A(n){var e=n.children,t=n.main,r=n.mask,o=n.attributes,s=n.styles,c=n.transform;if(tf(c)&&t.found&&!r.found){var f=t.width,d=t.height,p={x:f/d/2,y:.5};o.style=bs(J(J({},s),{},{"transform-origin":"".concat(p.x+c.x/16,"em ").concat(p.y+c.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}function VA(n){var e=n.prefix,t=n.iconName,r=n.children,o=n.attributes,s=n.symbol,c=s===!0?"".concat(e,"-").concat(de.cssPrefix,"-").concat(t):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},o),{},{id:c}),children:r}]}]}function WA(n){var e=["aria-label","aria-labelledby","title","role"];return e.some(function(t){return t in n})}function ff(n){var e=n.icons,t=e.main,r=e.mask,o=n.prefix,s=n.iconName,c=n.transform,f=n.symbol,d=n.maskId,p=n.extra,v=n.watchable,b=v===void 0?!1:v,w=r.found?r:t,y=w.width,O=w.height,S=[de.replacementClass,s?"".concat(de.cssPrefix,"-").concat(s):""].filter(function(q){return p.classes.indexOf(q)===-1}).filter(function(q){return q!==""||!!q}).concat(p.classes).join(" "),A={children:[],attributes:J(J({},p.attributes),{},{"data-prefix":o,"data-icon":s,class:S,role:p.attributes.role||"img",viewBox:"0 0 ".concat(y," ").concat(O)})};!WA(p.attributes)&&!p.attributes["aria-hidden"]&&(A.attributes["aria-hidden"]="true"),b&&(A.attributes[vi]="");var x=J(J({},A),{},{prefix:o,iconName:s,main:t,mask:r,maskId:d,transform:c,symbol:f,styles:J({},p.styles)}),k=r.found&&t.found?Ur("generateAbstractMask",x)||{children:[],attributes:{}}:Ur("generateAbstractIcon",x)||{children:[],attributes:{}},G=k.children,oe=k.attributes;return x.children=G,x.attributes=oe,f?VA(x):$A(x)}function gg(n){var e=n.content,t=n.width,r=n.height,o=n.transform,s=n.extra,c=n.watchable,f=c===void 0?!1:c,d=J(J({},s.attributes),{},{class:s.classes.join(" ")});f&&(d[vi]="");var p=J({},s.styles);tf(o)&&(p.transform=mA({transform:o,width:t,height:r}),p["-webkit-transform"]=p.transform);var v=bs(p);v.length>0&&(d.style=v);var b=[];return b.push({tag:"span",attributes:d,children:[e]}),b}function UA(n){var e=n.content,t=n.extra,r=J(J({},t.attributes),{},{class:t.classes.join(" ")}),o=bs(t.styles);o.length>0&&(r.style=o);var s=[];return s.push({tag:"span",attributes:r,children:[e]}),s}var lf=qn.styles;function df(n){var e=n[0],t=n[1],r=n.slice(4),o=ps(r,1),s=o[0],c=null;return Array.isArray(s)?c={tag:"g",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.PRIMARY),fill:"currentColor",d:s[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:e,height:t,icon:c}}var zA={found:!1,width:512,height:512};function HA(n,e){!Uv&&!de.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(e,'" is missing.'))}function hf(n,e){var t=e;return e==="fa"&&de.styleDefault!==null&&(e=Wr()),new Promise(function(r,o){if(t==="fa"){var s=fg(n)||{};n=s.iconName||n,e=s.prefix||e}if(n&&e&&lf[e]&&lf[e][n]){var c=lf[e][n];return r(df(c))}HA(n,e),r(J(J({},zA),{},{icon:de.showMissingIcons&&n?Ur("missingIconAbstract")||{}:{}}))})}var mg=function(){},pf=de.measurePerformance&&gs&&gs.mark&&gs.measure?gs:{mark:mg,measure:mg},Yo='FA "7.1.0"',qA=function(e){return pf.mark("".concat(Yo," ").concat(e," begins")),function(){return bg(e)}},bg=function(e){pf.mark("".concat(Yo," ").concat(e," ends")),pf.measure("".concat(Yo," ").concat(e),"".concat(Yo," ").concat(e," begins"),"".concat(Yo," ").concat(e," ends"))},vf={begin:qA,end:bg},Os=function(){};function yg(n){var e=n.getAttribute?n.getAttribute(vi):null;return typeof e=="string"}function GA(n){var e=n.getAttribute?n.getAttribute(Gc):null,t=n.getAttribute?n.getAttribute(Yc):null;return e&&t}function YA(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(de.replacementClass)}function JA(){if(de.autoReplaceSvg===!0)return Es.replace;var n=Es[de.autoReplaceSvg];return n||Es.replace}function KA(n){return Ze.createElementNS("http://www.w3.org/2000/svg",n)}function XA(n){return Ze.createElement(n)}function _g(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.ceFn,r=t===void 0?n.tag==="svg"?KA:XA:t;if(typeof n=="string")return Ze.createTextNode(n);var o=r(n.tag);Object.keys(n.attributes||[]).forEach(function(c){o.setAttribute(c,n.attributes[c])});var s=n.children||[];return s.forEach(function(c){o.appendChild(_g(c,{ceFn:r}))}),o}function ZA(n){var e=" ".concat(n.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var Es={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(o){t.parentNode.insertBefore(_g(o),t)}),t.getAttribute(vi)===null&&de.keepOriginalSource){var r=Ze.createComment(ZA(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){var t=e[0],r=e[1];if(~ef(t).indexOf(de.replacementClass))return Es.replace(e);var o=new RegExp("".concat(de.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(f,d){return d===de.replacementClass||d.match(o)?f.toSvg.push(d):f.toNode.push(d),f},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",s.toNode.join(" "))}var c=r.map(function(f){return qo(f)}).join(`
|
|
650
|
-
`);
|
|
651
|
-
`),
|
|
652
|
-
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(S){o.e(S)}finally{o.f()}if(!r.size)return;var O=Array.from(r).join(", ");try{t=n.querySelectorAll(O)}catch{}}return new Promise(function(S,A){var x=zi(t).filter(bT).map(mT),k=vf.begin("searchPseudoElements");Og(),Promise.all(x).then(function(){k(),mf(),S()}).catch(function(){k(),mf(),A()})})}}var wT={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Pg,t}}},provides:function(e){e.pseudoElements2svg=function(t){var r=t.node,o=r===void 0?Ze:r;de.searchPseudoElements&&Pg(o)}}},Mg=!1,ST={mixout:function(){return{dom:{unwatch:function(){Og(),Mg=!0}}}},hooks:function(){return{bootstrap:function(){Eg(uf("mutationObserverCallbacks",{}))},noAuto:function(){QA()},watch:function(t){var r=t.observeMutationsRoot;Mg?mf():Eg(uf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Rg=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(r,o){var s=o.toLowerCase().split("-"),c=s[0],f=s.slice(1).join("-");if(c&&f==="h")return r.flipX=!0,r;if(c&&f==="v")return r.flipY=!0,r;if(f=parseFloat(f),isNaN(f))return r;switch(c){case"grow":r.size=r.size+f;break;case"shrink":r.size=r.size-f;break;case"left":r.x=r.x-f;break;case"right":r.x=r.x+f;break;case"up":r.y=r.y-f;break;case"down":r.y=r.y+f;break;case"rotate":r.rotate=r.rotate+f;break}return r},t)},OT={mixout:function(){return{parse:{transform:function(t){return Rg(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-transform");return o&&(t.transform=Rg(o)),t}}},provides:function(e){e.generateAbstractTransformGrouping=function(t){var r=t.main,o=t.transform,s=t.containerWidth,c=t.iconWidth,f={transform:"translate(".concat(s/2," 256)")},d="translate(".concat(o.x*32,", ").concat(o.y*32,") "),p="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),v="rotate(".concat(o.rotate," 0 0)"),b={transform:"".concat(d," ").concat(p," ").concat(v)},w={transform:"translate(".concat(c/2*-1," -256)")},y={outer:f,inner:b,path:w};return{tag:"g",attributes:J({},y.outer),children:[{tag:"g",attributes:J({},y.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:J(J({},r.icon.attributes),y.path)}]}]}}}},yf={x:0,y:0,width:"100%",height:"100%"};function Lg(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}function ET(n){return n.tag==="g"?n.children:[n]}var IT={hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-mask"),s=o?ws(o.split(" ").map(function(c){return c.trim()})):lg();return s.prefix||(s.prefix=Wr()),t.mask=s,t.maskId=r.getAttribute("data-fa-mask-id"),t}}},provides:function(e){e.generateAbstractMask=function(t){var r=t.children,o=t.attributes,s=t.main,c=t.mask,f=t.maskId,d=t.transform,p=s.width,v=s.icon,b=c.width,w=c.icon,y=gA({transform:d,containerWidth:b,iconWidth:p}),O={tag:"rect",attributes:J(J({},yf),{},{fill:"white"})},S=v.children?{children:v.children.map(Lg)}:{},A={tag:"g",attributes:J({},y.inner),children:[Lg(J({tag:v.tag,attributes:J(J({},v.attributes),y.path)},S))]},x={tag:"g",attributes:J({},y.outer),children:[A]},k="mask-".concat(f||Yv()),G="clip-".concat(f||Yv()),oe={tag:"mask",attributes:J(J({},yf),{},{id:k,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[O,x]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:G},children:ET(w)},oe]};return r.push(q,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(G,")"),mask:"url(#".concat(k,")")},yf)}),{children:r,attributes:o}}}},AT={provides:function(e){var t=!1;Vr.matchMedia&&(t=Vr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:J(J({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var c=J(J({},s),{},{attributeName:"opacity"}),f={tag:"circle",attributes:J(J({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||f.children.push({tag:"animate",attributes:J(J({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},c),{},{values:"1;0;1;1;0;1;"})}),r.push(f),r.push({tag:"path",attributes:J(J({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:J(J({},c),{},{values:"1;0;0;0;0;1;"})}]}),t||r.push({tag:"path",attributes:J(J({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:J(J({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},TT={hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-symbol"),s=o===null?!1:o===""?!0:o;return t.symbol=s,t}}}},xT=[yA,cT,fT,lT,dT,wT,ST,OT,IT,AT,TT];LA(xT,{mixoutsTo:tn}),tn.noAuto;var Jo=tn.config;tn.library,tn.dom;var kg=tn.parse;tn.findIconDefinition,tn.toHtml;var NT=tn.icon;tn.layer,tn.text,tn.counter;function DT(n){return n=n-0,n===n}function Bg(n){return DT(n)?n:(n=n.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():""),n.charAt(0).toLowerCase()+n.slice(1))}function CT(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Gi=new Map,PT=1e3;function MT(n){if(Gi.has(n))return Gi.get(n);const e={};let t=0;const r=n.length;for(;t<r;){const o=n.indexOf(";",t),s=o===-1?r:o,c=n.slice(t,s).trim();if(c){const f=c.indexOf(":");if(f>0){const d=c.slice(0,f).trim(),p=c.slice(f+1).trim();if(d&&p){const v=Bg(d);e[v.startsWith("webkit")?CT(v):v]=p}}}t=s+1}if(Gi.size===PT){const o=Gi.keys().next().value;o&&Gi.delete(o)}return Gi.set(n,e),e}function jg(n,e,t={}){if(typeof e=="string")return e;const r=(e.children||[]).map(v=>jg(n,v)),o=e.attributes||{},s={};for(const[v,b]of Object.entries(o))switch(!0){case v==="class":{s.className=b;break}case v==="style":{s.style=MT(String(b));break}case v.startsWith("aria-"):case v.startsWith("data-"):{s[v.toLowerCase()]=b;break}default:s[Bg(v)]=b}const{style:c,role:f,"aria-label":d,...p}=t;return c&&(s.style=s.style?{...s.style,...c}:c),f&&(s.role=f),d&&(s["aria-label"]=d,s["aria-hidden"]="false"),n(e.tag,{...p,...s},...r)}var RT=jg.bind(null,R.createElement),Fg=(n,e)=>{const t=R.useId();return n||(e?t:void 0)},LT=class{constructor(n="react-fontawesome"){this.enabled=!1;let e=!1;try{e=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=n,this.enabled=e}log(...n){this.enabled&&console.log(`[${this.scope}]`,...n)}warn(...n){this.enabled&&console.warn(`[${this.scope}]`,...n)}error(...n){this.enabled&&console.error(`[${this.scope}]`,...n)}};typeof process<"u"&&process.env.FA_VERSION;var kT="searchPseudoElementsFullScan"in Jo?"7.0.0":"6.0.0",BT=Number.parseInt(kT)>=7,Ko="fa",yr={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},jT={left:"fa-pull-left",right:"fa-pull-right"},FT={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},$T={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},_r={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function VT(n){const e=Jo.cssPrefix||Jo.familyPrefix||Ko;return e===Ko?n:n.replace(new RegExp(String.raw`(?<=^|\s)${Ko}-`,"g"),`${e}-`)}function WT(n){const{beat:e,fade:t,beatFade:r,bounce:o,shake:s,spin:c,spinPulse:f,spinReverse:d,pulse:p,fixedWidth:v,inverse:b,border:w,flip:y,size:O,rotation:S,pull:A,swapOpacity:x,rotateBy:k,widthAuto:G,className:oe}=n,q=[];return oe&&q.push(...oe.split(" ")),e&&q.push(yr.beat),t&&q.push(yr.fade),r&&q.push(yr.beatFade),o&&q.push(yr.bounce),s&&q.push(yr.shake),c&&q.push(yr.spin),d&&q.push(yr.spinReverse),f&&q.push(yr.spinPulse),p&&q.push(yr.pulse),v&&q.push(_r.fixedWidth),b&&q.push(_r.inverse),w&&q.push(_r.border),y===!0&&q.push(_r.flip),(y==="horizontal"||y==="both")&&q.push(_r.flipHorizontal),(y==="vertical"||y==="both")&&q.push(_r.flipVertical),O!=null&&q.push($T[O]),S!=null&&S!==0&&q.push(FT[S]),A!=null&&q.push(jT[A]),x&&q.push(_r.swapOpacity),BT?(k&&q.push(_r.rotateBy),G&&q.push(_r.widthAuto),(Jo.cssPrefix||Jo.familyPrefix||Ko)===Ko?q:q.map(VT)):q}var UT=n=>typeof n=="object"&&"icon"in n&&!!n.icon;function $g(n){if(n)return UT(n)?n:kg.icon(n)}function zT(n){return Object.keys(n)}var Vg=new LT("FontAwesomeIcon"),Wg={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},HT=new Set(Object.keys(Wg)),Yi=R.forwardRef((n,e)=>{const t={...Wg,...n},{icon:r,mask:o,symbol:s,title:c,titleId:f,maskId:d,transform:p}=t,v=Fg(d,!!o),b=Fg(f,!!c),w=$g(r);if(!w)return Vg.error("Icon lookup is undefined",r),null;const y=WT(t),O=typeof p=="string"?kg.transform(p):p,S=$g(o),A=NT(w,{...y.length>0&&{classes:y},...O&&{transform:O},...S&&{mask:S},symbol:s,title:c,titleId:b,maskId:v});if(!A)return Vg.error("Could not find icon",w),null;const{abstract:x}=A,k={ref:e};for(const G of zT(t))HT.has(G)||(k[G]=t[G]);return RT(x[0],k)});Yi.displayName="FontAwesomeIcon";var qT={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},GT={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},Ug={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},YT={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};function JT({layoutId:n,justId:e,winInfo:t}){console.log("TabTitle justId",e);const[r,o]=Pc(),[s]=R.useState({x:0,y:0}),c=nr(n),f=c.getTabTitleTooltip(e),d=v=>{c.removeWin({justId:v})},p=(v,b)=>{c.activeWin({justId:b})};return Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"just-icon",onClick:v=>p(v,e),title:f,children:t.getTabIcon(e,n)}),Q.jsx("div",{className:"just-title",onClick:v=>p(v,e),title:f,children:c.getTabTitle(e)??e.title}),Q.jsx("div",{className:"just-icon just-close",onClick:()=>d(e),children:Q.jsx(Yi,{icon:Ug})}),Q.jsx(qp,{state:r.state,endTransition:r.endTransition,anchorPoint:s,onClose:()=>o(!1),children:Q.jsxs(ls,{onClick:()=>d(e),children:[Q.jsx("div",{className:"just-icon"}),Q.jsx("div",{className:"just-title",children:"Close"}),Q.jsx("div",{className:"just-icon"})]})})]})}const zg=vr(JT);function KT(n){const{layoutId:e,isFullScreenView:t,dndAccept:r,winInfo:o,justBranch:s,justId:c,justStack:f,rect:d}=n,p=R.useRef(null),[,v]=Pc(),[,b]=R.useState({x:0,y:0}),w=nr(e),[{isDragging:y},O]=cE({type:c.viewId,item:{justBranch:s,justId:c,index:-1},collect:x=>({isDragging:x.isDragging()})}),[,S]=Sc({accept:r,collect(x){return{handlerId:x.getHandlerId()}},hover(x,k){if(!p.current||c===x.justId)return;const G=p.current.getBoundingClientRect(),oe=k.getClientOffset(),q=(G.right-G.left)/2,ye=oe.x-G.left,L=x.justId,F=c,ae=f.tabs.filter(ce=>!$e.isEquals(ce,L));let we=$e.indexOf(ae,F);ye>q&&(we+=1),x.pos="stack",x.index=we}});R.useEffect(()=>{if($e.isEquals(c,w.lastActiveId??null)){if(p.current==null||d==null)return;const x=p.current.getBoundingClientRect();(d.left>x.left||d.right<x.right)&&p.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[w.lastActiveTm]),R.useLayoutEffect(()=>{p.current&&O(S(p))},[S,O]);const A=R.useCallback(x=>{x.preventDefault(),b({x:x.clientX,y:x.clientY}),v(!0)},[v]);return Q.jsx("div",{className:Un("just-draggable-title","just-title-menus",{dragging:y,"just-active":$e.isEquals(f.active,c),"last-active":$e.isEquals(w.lastActiveId,c)}),ref:p,onContextMenu:A,children:o.getTabTitle?o.getTabTitle({justId:c,layoutId:e,justBranch:s,isFullScreenView:t,winInfo:o}):Q.jsx(zg,{justId:c,layoutId:e,justBranch:s,isFullScreenView:t,winInfo:o})})}const Hg=vr(KT);function qg(n){let e=null;return()=>(e==null&&(e=n()),e)}function XT(n,e){return n.filter(t=>t!==e)}function ZT(n,e){const t=new Set,r=s=>t.add(s);n.forEach(r),e.forEach(r);const o=[];return t.forEach(s=>o.push(s)),o}class QT{enter(e){const t=this.entered.length,r=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(e));return this.entered=ZT(this.entered.filter(r),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=XT(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class ex{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const o=this.config.exposeProperties[r];o!=null&&(t[r]={value:o(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Gg="__NATIVE_FILE__",Yg="__NATIVE_URL__",Jg="__NATIVE_TEXT__",Kg="__NATIVE_HTML__",Xg=Object.freeze(Object.defineProperty({__proto__:null,FILE:Gg,HTML:Kg,TEXT:Jg,URL:Yg},Symbol.toStringTag,{value:"Module"}));function _f(n,e,t){const r=e.reduce((o,s)=>o||n.getData(s),"");return r??t}const wf={[Gg]:{exposeProperties:{files:n=>Array.prototype.slice.call(n.files),items:n=>n.items,dataTransfer:n=>n},matchesTypes:["Files"]},[Kg]:{exposeProperties:{html:(n,e)=>_f(n,e,""),dataTransfer:n=>n},matchesTypes:["Html","text/html"]},[Yg]:{exposeProperties:{urls:(n,e)=>_f(n,e,"").split(`
|
|
653
|
-
`),dataTransfer:n=>n},matchesTypes:["Url","text/uri-list"]},[Jg]:{exposeProperties:{text:(n,e)=>_f(n,e,""),dataTransfer:n=>n},matchesTypes:["Text","text/plain"]}};function tx(n,e){const t=wf[n];if(!t)throw new Error(`native type ${n} has no configuration`);const r=new ex(t);return r.loadDataTransfer(e),r}function Sf(n){if(!n)return null;const e=Array.prototype.slice.call(n.types||[]);return Object.keys(wf).filter(t=>{const r=wf[t];return r?.matchesTypes?r.matchesTypes.some(o=>e.indexOf(o)>-1):!1})[0]||null}const nx=qg(()=>/firefox/i.test(navigator.userAgent)),Zg=qg(()=>!!window.safari);class Qg{interpolate(e){const{xs:t,ys:r,c1s:o,c2s:s,c3s:c}=this;let f=t.length-1;if(e===t[f])return r[f];let d=0,p=c.length-1,v;for(;d<=p;){v=Math.floor(.5*(d+p));const y=t[v];if(y<e)d=v+1;else if(y>e)p=v-1;else return r[v]}f=Math.max(0,p);const b=e-t[f],w=b*b;return r[f]+o[f]*b+s[f]*w+c[f]*b*w}constructor(e,t){const{length:r}=e,o=[];for(let y=0;y<r;y++)o.push(y);o.sort((y,O)=>e[y]<e[O]?-1:1);const s=[],c=[];let f,d;for(let y=0;y<r-1;y++)f=e[y+1]-e[y],d=t[y+1]-t[y],s.push(f),c.push(d/f);const p=[c[0]];for(let y=0;y<s.length-1;y++){const O=c[y],S=c[y+1];if(O*S<=0)p.push(0);else{f=s[y];const A=s[y+1],x=f+A;p.push(3*x/((x+A)/O+(x+f)/S))}}p.push(c[c.length-1]);const v=[],b=[];let w;for(let y=0;y<p.length-1;y++){w=c[y];const O=p[y],S=1/s[y],A=O+p[y+1]-w-w;v.push((w-O-A)*S),b.push(A*S*S)}this.xs=e,this.ys=t,this.c1s=p,this.c2s=v,this.c3s=b}}const rx=1;function em(n){const e=n.nodeType===rx?n:n.parentElement;if(!e)return null;const{top:t,left:r}=e.getBoundingClientRect();return{x:r,y:t}}function As(n){return{x:n.clientX,y:n.clientY}}function ix(n){var e;return n.nodeName==="IMG"&&(nx()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(n)))}function ox(n,e,t,r){let o=n?e.width:t,s=n?e.height:r;return Zg()&&n&&(s/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:s}}function ax(n,e,t,r,o){const s=ix(e),f=em(s?n:e),d={x:t.x-f.x,y:t.y-f.y},{offsetWidth:p,offsetHeight:v}=n,{anchorX:b,anchorY:w}=r,{dragPreviewWidth:y,dragPreviewHeight:O}=ox(s,e,p,v),S=()=>{let ye=new Qg([0,.5,1],[d.y,d.y/v*O,d.y+O-v]).interpolate(w);return Zg()&&s&&(ye+=(window.devicePixelRatio-1)*O),ye},A=()=>new Qg([0,.5,1],[d.x,d.x/p*y,d.x+y-p]).interpolate(b),{offsetX:x,offsetY:k}=o,G=x===0||x,oe=k===0||k;return{x:G?x:A(),y:oe?k:S()}}class sx{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function ux(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function tm(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){ux(n,o,t[o])})}return n}class cx{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)===null||t===void 0||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const o=c=>this.handleDragStart(c,e),s=c=>this.handleSelectStart(c);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=c=>this.handleDragEnter(c,e),o=c=>this.handleDragOver(c,e),s=c=>this.handleDrop(c,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return tm({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return tm({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Xg).some(t=>Xg[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=tx(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const s=this.sourceNodes.get(o);return s&&em(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const c=As(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:c});const{dataTransfer:f}=o,d=Sf(f);if(this.monitor.isDragging()){if(f&&typeof f.setDragImage=="function"){const v=this.monitor.getSourceId(),b=this.sourceNodes.get(v),w=this.sourcePreviewNodes.get(v)||b;if(w){const{anchorX:y,anchorY:O,offsetX:S,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),G=ax(b,w,c,{anchorX:y,anchorY:O},{offsetX:S,offsetY:A});f.setDragImage(w,G.x,G.y)}}try{f?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(d)this.beginDragNativeItem(d);else{if(f&&!f.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:f}=o,d=Sf(f);d&&this.beginDragNativeItem(d,f)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,s.length>0&&this.actions.hover(s,{clientOffset:As(o)}),s.some(f=>this.monitor.canDropOnTarget(f))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=As(o),this.scheduleHover(s),(s||[]).some(f=>this.monitor.canDropOnTarget(f))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;o.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}else Sf(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:As(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const s=o.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(o.preventDefault(),s.dragDrop()))},this.options=new sx(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new QT(this.isNodeInDocument)}}const fx=function(e,t,r){return new cx(e,t,r)};function lx({layoutId:n,justBranch:e,isFullScreenView:t}){const r=nr(n),o=()=>{console.log("closeAllTabs justBranch",e),r.removeAllTabs({branch:e})},s=async(c=!1)=>{t?r.setLayout(null):(r.setFullScreenLayoutByBranch(e),r.setFullScreenHideTitle(c))};return Q.jsxs(Q.Fragment,{children:[Q.jsxs(ls,{className:"just-menu-item",onClick:()=>o(),children:[Q.jsx("div",{className:"just-icon"}),Q.jsx("div",{className:"just-title",children:"Close All"}),Q.jsx("div",{className:"just-icon"})]}),Q.jsxs(ls,{className:"just-menu-item",onClick:()=>s(!0),children:[Q.jsx("div",{className:"just-icon",children:Q.jsx(Yi,{icon:qT})}),Q.jsx("div",{className:"just-title",children:t?"F11":"Full"}),Q.jsx("div",{className:"just-icon"})]})]})}const nm=vr(lx);function dx({layoutId:n,isFullScreenView:e,dndAccept:t,justBranch:r,justStack:o,getWinInfo:s,getTabMenu:c}){const f=R.useRef(null),[d,p]=R.useState(null),v=nr(n),b=A=>{v.removeWin({justId:A})},w=A=>{v.activeWin({justId:A})},y=(A,x)=>{v.moveWin({pos:"stack",justId:x.justId,branch:r,index:x.index??-1})},[{isOver:O},S]=Sc(()=>({accept:t,collect:A=>({isOver:A.isOver()}),drop(A,x){y(x.getItemType(),x.getItem())},hover(A,x){f.current&&(A.index=-1)}}),[o]);return R.useLayoutEffect(()=>{f.current&&S(f)},[S]),R.useEffect(()=>{if(f.current===null)return;function A(){if(f.current===null)return;const k=f.current.getBoundingClientRect()??null;p(k)}A();const x=new ResizeObserver(A);return x.observe(f.current),window.addEventListener("scroll",A,!0),()=>{x.disconnect(),window.removeEventListener("scroll",A,!0)}},[]),Q.jsxs("div",{className:Un("just-win-title"),tabIndex:1,children:[Q.jsx("div",{className:Un("just-title-list",{"is-over":O}),ref:f,children:o.tabs.map(A=>Q.jsx(Hg,{layoutId:n,isFullScreenView:e,dndAccept:t,rect:d,justId:A,justBranch:r,justStack:o,winInfo:s(A)},[...r,$e.toString(A)].join(",")))}),Q.jsxs("div",{className:"just-title-menus",children:[Q.jsx(Kp,{menuButton:Q.jsx("div",{className:"just-title-menu",children:Q.jsx(Yi,{icon:YT})}),children:o.tabs.map(A=>Q.jsxs(ls,{className:Un("just-menu-item",{active:$e.isEquals(o.active,A)}),children:[Q.jsx("div",{className:"just-icon",onClick:()=>w(A),children:s(A).getTabIcon(A,n)}),Q.jsx("div",{className:"just-title",onClick:()=>w(A),children:v.getTabTitle(A)??A.title}),Q.jsx("div",{className:"just-icon just-close",onClick:x=>{x.stopPropagation(),b(A)},children:Q.jsx(Yi,{icon:Ug})})]},$e.toString(A)))}),Q.jsx(Kp,{menuButton:Q.jsx("div",{className:"just-title-menu",children:Q.jsx(Yi,{icon:GT})}),children:c?c(n,r,o,e):Q.jsx(nm,{layoutId:n,justBranch:r,justStack:o,isFullScreenView:e})})]})]})}const rm=vr(dx);function hx(n){const e=R.useRef(null),{layoutId:t,dndAccept:r,getWinInfo:o,justBranch:s,justStack:c}=n,[f,d]=R.useState(null),p=nr(t),v=(y,O)=>{O.pos&&(O.pos==="stack"?p.moveWin({pos:O.pos,justId:O.justId,branch:s,index:O.index??-1}):p.moveWin({pos:O.pos,justId:O.justId,branch:s,direction:O.direction??"row"}))},[{isOver:b},w]=Sc(()=>({accept:r,collect:y=>({isOver:y.isOver()}),drop(y,O){e.current&&v(O.getItemType(),O.getItem())},hover(y,O){if(!e.current)return;const S=e.current.getBoundingClientRect(),A=O.getClientOffset(),x=(S.right-S.left)/2,k=(S.bottom-S.top)/2,G=A.x-S.left,oe=A.y-S.top,q=G-x,ye=oe-k,L=Math.abs(q*100/x),F=Math.abs(ye*100/k);if(L<60&&F<60){y.pos="stack";const ae={top:S.top,left:S.left,width:S.width,height:S.height};d(ae)}else{const ae=L>F?"row":"column",ce=Math.sign(ae==="row"?q:ye)>0?"second":"first";y.direction=ae,y.pos=ce;const Se={top:ce==="second"&&ae==="column"?S.top+S.height/2:S.top,left:ce==="second"&&ae==="row"?S.left+S.width/2:S.left,width:ae==="row"?S.width/2:S.width,height:ae==="column"?S.height/2:S.height};d(Se)}}}),[c]);return R.useLayoutEffect(()=>{e.current&&w(e)},[w]),Q.jsxs("div",{className:Un("just-win-body",{isOver:b,"last-active":$e.isEquals(c.active,p.lastActiveId)}),ref:e,children:[c.tabs.map(y=>Q.jsx(R.Activity,{mode:$e.isEquals(c.active,y)?"visible":"hidden",children:o(y).getView(y,t)},$e.toString(y))),b&&f!=null&&Q.jsx("div",{className:"just-overlay",style:{top:f.top,left:f.left,width:`${f.width}px`,height:`${f.height}px`}})]})}const im=vr(hx);function px({layoutId:n,isFullScreenView:e,hideTitle:t,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c,getTabMenu:f}){const d=nr(n),p=d.fullScreenHideTitle,v=t!==!0,b=()=>{s.active&&d.activeWin({justId:s.active})};return Q.jsxs("div",{className:"just-win",onFocusCapture:b,tabIndex:1,children:[v&&!p&&Q.jsx(rm,{layoutId:n,isFullScreenView:e,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c,getTabMenu:f}),Q.jsx(im,{layoutId:n,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c})]})}const om=vr(px);var Of,am;function Ef(){if(am)return Of;am=1;function n(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Of=n,Of}var If,sm;function vx(){if(sm)return If;sm=1;var n=typeof dn=="object"&&dn&&dn.Object===Object&&dn;return If=n,If}var Af,um;function cm(){if(um)return Af;um=1;var n=vx(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Af=t,Af}var Tf,fm;function gx(){if(fm)return Tf;fm=1;var n=cm(),e=function(){return n.Date.now()};return Tf=e,Tf}var xf,lm;function mx(){if(lm)return xf;lm=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return xf=e,xf}var Nf,dm;function bx(){if(dm)return Nf;dm=1;var n=mx(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return Nf=t,Nf}var Df,hm;function pm(){if(hm)return Df;hm=1;var n=cm(),e=n.Symbol;return Df=e,Df}var Cf,vm;function yx(){if(vm)return Cf;vm=1;var n=pm(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,o=n?n.toStringTag:void 0;function s(c){var f=t.call(c,o),d=c[o];try{c[o]=void 0;var p=!0}catch{}var v=r.call(c);return p&&(f?c[o]=d:delete c[o]),v}return Cf=s,Cf}var Pf,gm;function _x(){if(gm)return Pf;gm=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return Pf=t,Pf}var Mf,mm;function wx(){if(mm)return Mf;mm=1;var n=pm(),e=yx(),t=_x(),r="[object Null]",o="[object Undefined]",s=n?n.toStringTag:void 0;function c(f){return f==null?f===void 0?o:r:s&&s in Object(f)?e(f):t(f)}return Mf=c,Mf}var Rf,bm;function Sx(){if(bm)return Rf;bm=1;function n(e){return e!=null&&typeof e=="object"}return Rf=n,Rf}var Lf,ym;function Ox(){if(ym)return Lf;ym=1;var n=wx(),e=Sx(),t="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&n(o)==t}return Lf=r,Lf}var kf,_m;function wm(){if(_m)return kf;_m=1;var n=bx(),e=Ef(),t=Ox(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;function d(p){if(typeof p=="number")return p;if(t(p))return r;if(e(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=e(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=n(p);var b=s.test(p);return b||c.test(p)?f(p.slice(2),b?2:8):o.test(p)?r:+p}return kf=d,kf}var Bf,Sm;function Ex(){if(Sm)return Bf;Sm=1;var n=Ef(),e=gx(),t=wm(),r="Expected a function",o=Math.max,s=Math.min;function c(f,d,p){var v,b,w,y,O,S,A=0,x=!1,k=!1,G=!0;if(typeof f!="function")throw new TypeError(r);d=t(d)||0,n(p)&&(x=!!p.leading,k="maxWait"in p,w=k?o(t(p.maxWait)||0,d):w,G="trailing"in p?!!p.trailing:G);function oe(he){var ct=v,ht=b;return v=b=void 0,A=he,y=f.apply(ht,ct),y}function q(he){return A=he,O=setTimeout(F,d),x?oe(he):y}function ye(he){var ct=he-S,ht=he-A,ft=d-ct;return k?s(ft,w-ht):ft}function L(he){var ct=he-S,ht=he-A;return S===void 0||ct>=d||ct<0||k&&ht>=w}function F(){var he=e();if(L(he))return ae(he);O=setTimeout(F,ye(he))}function ae(he){return O=void 0,G&&v?oe(he):(v=b=void 0,y)}function we(){O!==void 0&&clearTimeout(O),A=0,v=S=b=O=void 0}function ce(){return O===void 0?y:ae(e())}function Se(){var he=e(),ct=L(he);if(v=arguments,b=this,S=he,ct){if(O===void 0)return q(S);if(k)return clearTimeout(O),O=setTimeout(F,d),oe(S)}return O===void 0&&(O=setTimeout(F,d)),y}return Se.cancel=we,Se.flush=ce,Se}return Bf=c,Bf}var jf,Om;function Ix(){if(Om)return jf;Om=1;var n=Ex(),e=Ef(),t="Expected a function";function r(o,s,c){var f=!0,d=!0;if(typeof o!="function")throw new TypeError(t);return e(c)&&(f="leading"in c?!!c.leading:f,d="trailing"in c?!!c.trailing:d),n(o,s,{leading:f,maxWait:s,trailing:d})}return jf=r,jf}var Ax=Ix();const Tx=po(Ax);var Ff,Em;function xx(){if(Em)return Ff;Em=1;function n(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}return Ff=n,Ff}var $f,Im;function Nx(){if(Im)return $f;Im=1;var n=xx(),e=wm();function t(r,o,s){return s===void 0&&(s=o,o=void 0),s!==void 0&&(s=e(s),s=s===s?s:0),o!==void 0&&(o=e(o),o=o===o?o:0),n(e(r),o,s)}return $f=t,$f}var Dx=Nx();const Vf=po(Dx),Cx=1e3/30;function Px({node:n,containerRef:e,onChange:t,onRelease:r}){const o=R.useRef(null),[s,c]=R.useState(!1),f=()=>{s||(o.current.ownerDocument.addEventListener("mousemove",b,!0),o.current.ownerDocument.addEventListener("mouseup",v,!0),c(!0))},d=()=>{o.current&&(o.current.ownerDocument.removeEventListener("mousemove",b,!0),o.current.ownerDocument.removeEventListener("mouseup",v,!0),c(!1))},p=O=>{O.button===0&&(O.preventDefault(),f())},v=O=>{if(d(),e==null)return;const S=w(O,n,e);S!==null&&r(S)},b=O=>{O.preventDefault(),e!=null&&y(O,n,e)},w=(O,S,A)=>{if(A.current==null)return null;const x=A.current.getBoundingClientRect(),k=S.direction==="row"?O.clientX:O.clientY,G=S.direction==="row"?x.left:x.top,oe=S.direction==="row"?x.width:x.height,q=Vf(k-G,0,oe),ye=Vf(oe-q,0,oe),L=Vf(q*100/oe,0,100);return S.type==="split-percentage"?{type:S.type,size:L}:S.type==="split-pixels"?S.primary==="first"?{type:"split-pixels",primary:"first",size:q}:{type:"split-pixels",primary:"second",size:ye}:null},y=Tx((O,S,A)=>{if(A.current==null)return null;const x=w(O,S,A);x!==null&&t(x)},Cx);return R.useEffect(()=>{}),Q.jsx("div",{ref:o,className:Un("just-splitter"),onMouseDown:p})}const Am=vr(Px);function Wf({layoutId:n,isFullScreenView:e,hideTitle:t,dndAccept:r,node:o,justBranch:s,getWinInfo:c,getTabMenu:f}){const d=R.useRef(null),p=nr(n),v=({size:w})=>{p.updateResize({branch:s,size:w})},b=(w,y)=>w.type==="split-percentage"&&y==="first"?{flexBasis:`calc(${w.size}% - 3px)`,[w.direction==="row"?"minWidth":"minHeight"]:`${w.minSize??0}%`}:w.type==="split-pixels"&&y===w.primary?{flexBasis:`${w.size}px`,[w.direction==="row"?"minWidth":"minHeight"]:`${w.minSize??0}px`}:{};return Q.jsxs("div",{ref:d,className:Un("just-node"),children:[o?.type==="stack"&&Q.jsx(om,{hideTitle:o.hideTitle??t,layoutId:n,isFullScreenView:e,dndAccept:o.dndAccept??r,justStack:o,justBranch:s,getWinInfo:c,getTabMenu:f}),(o?.type==="split-percentage"||o?.type==="split-pixels")&&Q.jsxs("div",{className:Un(o.type,{"just-column":o.direction==="column","just-row":o.direction==="row"}),children:[Q.jsx(R.Activity,{mode:o.type==="split-pixels"&&o.primary==="first"&&o.primaryHide===!0?"hidden":"visible",children:Q.jsx("div",{className:Un("just-first",{"just-primary":o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first","just-secondary":!(o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first")}),style:b(o,"first"),children:Q.jsx(Wf,{layoutId:n,isFullScreenView:e,hideTitle:o.hideTitle??t,dndAccept:o.dndAccept??r,node:o.first,justBranch:[...s,"first"],getWinInfo:c,getTabMenu:f})})}),!(o.type==="split-pixels"&&(o.noSplitter===!0||o.primaryHide===!0))&&Q.jsx(Am,{layoutId:n,node:o,justBranch:s,containerRef:d,onChange:v,onRelease:v}),Q.jsx(R.Activity,{mode:o.type==="split-pixels"&&o.primary==="second"&&o.primaryHide===!0?"hidden":"visible",children:Q.jsx("div",{className:Un("just-second",{"just-primary":!(o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first"),"just-secondary":o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first"}),style:b(o,"second"),children:Q.jsx(Wf,{layoutId:n,isFullScreenView:e,hideTitle:o.hideTitle??t,dndAccept:o.dndAccept??r,node:o.second,justBranch:[...s,"second"],getWinInfo:c,getTabMenu:f})})})]},`JustNode-${s.join(",")}`)]})}const Uf=vr(Wf);function Mx({layoutId:n,getWinInfo:e,getTabMenu:t,initialValue:r}){const o=`${n}_FULLSCREEN`,s=nr(n),c=nr(o);return R.useEffect(()=>{c.layout===null&&(s.setFullScreenLayoutByBranch(null),s.setFullScreenHideTitle(!1))},[c.layout]),R.useEffect(()=>{s.setLayout(r),s.setFullScreenLayoutByBranch(null),c.setLayout(null)},[]),R.useEffect(()=>{const f=()=>{},d=async p=>{p.key==="Escape"?(console.log("esc"),s.setFullScreenLayoutByBranch(null)):p.key==="F11"&&(console.log("F11"),s.fullScreenLayout!==null&&s.setFullScreenLayoutByBranch(null)),p.altKey&&(p.key==="ArrowRight"?c.layout!==null?c.activeNextWin():s.activeNextWin():p.key==="ArrowLeft"&&(c.layout!==null?c.activePrevWin():s.activePrevWin()))};return window.addEventListener("keydown",d),document.addEventListener("fullscreenchange",f),()=>{window.removeEventListener("keydown",d),document.removeEventListener("fullscreenchange",f)}},[]),R.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",s.fullScreenLayout),c.setLayout(s.fullScreenLayout),s.lastActiveId&&c.activeWin({justId:s.lastActiveId})},[s.fullScreenLayout]),R.useEffect(()=>{c.setFullScreenHideTitle(s.fullScreenHideTitle)},[s.fullScreenHideTitle]),Q.jsx(jO,{backend:fx,children:Q.jsxs("div",{className:Un("just-layout"),children:[s.fullScreenLayout===null&&Q.jsx(Uf,{layoutId:n,isFullScreenView:!1,hideTitle:s.layout?.hideTitle,dndAccept:s.layout?.dndAccept??[],node:s.layout,justBranch:[],getWinInfo:e,getTabMenu:t}),s.fullScreenLayout!==null&&Q.jsx(Uf,{layoutId:o,isFullScreenView:!0,hideTitle:s.layout?.hideTitle,dndAccept:s.layout?.dndAccept??[],node:c.layout,justBranch:[],getWinInfo:e,getTabMenu:t})]})})}const Rx=vr(Mx);Fe.JUST_LAYOUT_TYPES=ii,Fe.JustDraggableTitle=Hg,Fe.JustLayoutView=Rx,Fe.JustNodeView=Uf,Fe.JustSplitter=Am,Fe.JustTabMenu=nm,Fe.JustTabTitle=zg,Fe.JustUtil=$e,Fe.JustWinBodyView=im,Fe.JustWinTitleView=rm,Fe.JustWinView=om,Fe.container=Xa,Fe.justLayoutModule=fp,Fe.stableStringify=eh,Fe.storeLayout=Bo,Fe.useJustLayoutStore=nr,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})}));
|
|
573
|
+
}`;function wf(){var i=ff,n=cf,r=G.cssPrefix,o=G.replacementClass,s=F0;if(r!==i||o!==n){var l=new RegExp("\\.".concat(i,"\\-"),"g"),f=new RegExp("\\--".concat(i,"\\-"),"g"),d=new RegExp("\\.".concat(n),"g");s=s.replace(l,".".concat(r,"-")).replace(f,"--".concat(r,"-")).replace(d,".".concat(o))}return s}var _f=!1;function Oo(){G.autoAddCss&&!_f&&(N0(wf()),_f=!0)}var R0={mixout:function(){return{dom:{css:wf,insertCss:Oo}}},hooks:function(){return{beforeDOMElementCreation:function(){Oo()},beforeI2svg:function(){Oo()}}}},Ht=rn||{};Ht[Ut]||(Ht[Ut]={}),Ht[Ut].styles||(Ht[Ut].styles={}),Ht[Ut].hooks||(Ht[Ut].hooks={}),Ht[Ut].shims||(Ht[Ut].shims=[]);var It=Ht[Ut],Ef=[],Tf=function(){Se.removeEventListener("DOMContentLoaded",Tf),Ai=1,Ef.map(function(n){return n()})},Ai=!1;$t&&(Ai=(Se.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Se.readyState),Ai||Se.addEventListener("DOMContentLoaded",Tf));function W0(i){$t&&(Ai?setTimeout(i,0):Ef.push(i))}function Ar(i){var n=i.tag,r=i.attributes,o=r===void 0?{}:r,s=i.children,l=s===void 0?[]:s;return typeof i=="string"?Sf(i):"<".concat(n," ").concat(L0(o),">").concat(l.map(Ar).join(""),"</").concat(n,">")}function xf(i,n,r){if(i&&i[n]&&i[n][r])return{prefix:n,iconName:r,icon:i[n][r]}}var Do=function(n,r,o,s){var l=Object.keys(n),f=l.length,d=r,p,m,S;for(o===void 0?(p=1,S=n[l[0]]):(p=0,S=o);p<f;p++)m=l[p],S=d(S,n[m],m,n);return S};function If(i){return xt(i).length!==1?null:i.codePointAt(0).toString(16)}function Of(i){return Object.keys(i).reduce(function(n,r){var o=i[r],s=!!o.icon;return s?n[o.iconName]=o.icon:n[r]=o,n},{})}function Ao(i,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.skipHooks,s=o===void 0?!1:o,l=Of(n);typeof It.hooks.addPack=="function"&&!s?It.hooks.addPack(i,Of(n)):It.styles[i]=W(W({},It.styles[i]||{}),l),i==="fas"&&Ao("fa",n)}var Cr=It.styles,B0=It.shims,Df=Object.keys(_o),$0=Df.reduce(function(i,n){return i[n]=Object.keys(_o[n]),i},{}),Co=null,Af={},Cf={},Nf={},Pf={},Lf={};function U0(i){return~I0.indexOf(i)}function H0(i,n){var r=n.split("-"),o=r[0],s=r.slice(1).join("-");return o===i&&s!==""&&!U0(s)?s:null}var Mf=function(){var n=function(l){return Do(Cr,function(f,d,p){return f[p]=Do(d,l,{}),f},{})};Af=n(function(s,l,f){if(l[3]&&(s[l[3]]=f),l[2]){var d=l[2].filter(function(p){return typeof p=="number"});d.forEach(function(p){s[p.toString(16)]=f})}return s}),Cf=n(function(s,l,f){if(s[f]=f,l[2]){var d=l[2].filter(function(p){return typeof p=="string"});d.forEach(function(p){s[p]=f})}return s}),Lf=n(function(s,l,f){var d=l[2];return s[f]=f,d.forEach(function(p){s[p]=f}),s});var r="far"in Cr||G.autoFetchSvg,o=Do(B0,function(s,l){var f=l[0],d=l[1],p=l[2];return d==="far"&&!r&&(d="fas"),typeof f=="string"&&(s.names[f]={prefix:d,iconName:p}),typeof f=="number"&&(s.unicodes[f.toString(16)]={prefix:d,iconName:p}),s},{names:{},unicodes:{}});Nf=o.names,Pf=o.unicodes,Co=Ci(G.styleDefault,{family:G.familyDefault})};C0(function(i){Co=Ci(i.styleDefault,{family:G.familyDefault})}),Mf();function No(i,n){return(Af[i]||{})[n]}function z0(i,n){return(Cf[i]||{})[n]}function wn(i,n){return(Lf[i]||{})[n]}function kf(i){return Nf[i]||{prefix:null,iconName:null}}function j0(i){var n=Pf[i],r=No("fas",i);return n||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function an(){return Co}var Ff=function(){return{prefix:null,iconName:null,rest:[]}};function q0(i){var n=ke,r=Df.reduce(function(o,s){return o[s]="".concat(G.cssPrefix,"-").concat(s),o},{});return rf.forEach(function(o){(i.includes(r[o])||i.some(function(s){return $0[o].includes(s)}))&&(n=o)}),n}function Ci(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.family,o=r===void 0?ke:r,s=w0[o][i];if(o===xr&&!i)return"fad";var l=vf[o][i]||vf[o][s],f=i in It.styles?i:null,d=l||f||null;return d}function G0(i){var n=[],r=null;return i.forEach(function(o){var s=H0(G.cssPrefix,o);s?r=s:o&&n.push(o)}),{iconName:r,rest:n}}function Rf(i){return i.sort().filter(function(n,r,o){return o.indexOf(n)===r})}var Wf=uf.concat(af);function Ni(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,o=r===void 0?!1:r,s=null,l=Rf(i.filter(function(y){return Wf.includes(y)})),f=Rf(i.filter(function(y){return!Wf.includes(y)})),d=l.filter(function(y){return s=y,!$l.includes(y)}),p=Ti(d,1),m=p[0],S=m===void 0?null:m,w=q0(l),O=W(W({},G0(f)),{},{prefix:Ci(S,{family:w})});return W(W(W({},O),X0({values:i,family:w,styles:Cr,config:G,canonical:O,givenPrefix:s})),Y0(o,s,O))}function Y0(i,n,r){var o=r.prefix,s=r.iconName;if(i||!o||!s)return{prefix:o,iconName:s};var l=n==="fa"?kf(s):{},f=wn(o,s);return s=l.iconName||f||s,o=l.prefix||o,o==="far"&&!Cr.far&&Cr.fas&&!G.autoFetchSvg&&(o="fas"),{prefix:o,iconName:s}}var J0=rf.filter(function(i){return i!==ke||i!==xr}),V0=Object.keys(po).filter(function(i){return i!==ke}).map(function(i){return Object.keys(po[i])}).flat();function X0(i){var n=i.values,r=i.family,o=i.canonical,s=i.givenPrefix,l=s===void 0?"":s,f=i.styles,d=f===void 0?{}:f,p=i.config,m=p===void 0?{}:p,S=r===xr,w=n.includes("fa-duotone")||n.includes("fad"),O=m.familyDefault==="duotone",y=o.prefix==="fad"||o.prefix==="fa-duotone";if(!S&&(w||O||y)&&(o.prefix="fad"),(n.includes("fa-brands")||n.includes("fab"))&&(o.prefix="fab"),!o.prefix&&J0.includes(r)){var E=Object.keys(d).find(function(I){return V0.includes(I)});if(E||m.autoFetchSvg){var _=hy.get(r).defaultShortPrefixId;o.prefix=_,o.iconName=wn(o.prefix,o.iconName)||o.iconName}}return(o.prefix==="fa"||l==="fa")&&(o.prefix=an()||"fas"),o}var K0=(function(){function i(){km(this,i),this.definitions={}}return Rm(i,[{key:"add",value:function(){for(var r=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];var f=s.reduce(this._pullDefinitions,{});Object.keys(f).forEach(function(d){r.definitions[d]=W(W({},r.definitions[d]||{}),f[d]),Ao(d,f[d]);var p=_o[ke][d];p&&Ao(p,f[d]),Mf()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,o){var s=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(s).map(function(l){var f=s[l],d=f.prefix,p=f.iconName,m=f.icon,S=m[2];r[d]||(r[d]={}),S.length>0&&S.forEach(function(w){typeof w=="string"&&(r[d][w]=m)}),r[d][p]=m}),r}}])})(),Bf=[],Gn={},Yn={},Z0=Object.keys(Yn);function Q0(i,n){var r=n.mixoutsTo;return Bf=i,Gn={},Object.keys(Yn).forEach(function(o){Z0.indexOf(o)===-1&&delete Yn[o]}),Bf.forEach(function(o){var s=o.mixout?o.mixout():{};if(Object.keys(s).forEach(function(f){typeof s[f]=="function"&&(r[f]=s[f]),xi(s[f])==="object"&&Object.keys(s[f]).forEach(function(d){r[f]||(r[f]={}),r[f][d]=s[f][d]})}),o.hooks){var l=o.hooks();Object.keys(l).forEach(function(f){Gn[f]||(Gn[f]=[]),Gn[f].push(l[f])})}o.provides&&o.provides(Yn)}),r}function Po(i,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];var l=Gn[i]||[];return l.forEach(function(f){n=f.apply(null,[n].concat(o))}),n}function _n(i){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=Gn[i]||[];s.forEach(function(l){l.apply(null,r)})}function on(){var i=arguments[0],n=Array.prototype.slice.call(arguments,1);return Yn[i]?Yn[i].apply(null,n):void 0}function Lo(i){i.prefix==="fa"&&(i.prefix="fas");var n=i.iconName,r=i.prefix||an();if(n)return n=wn(r,n)||n,xf($f.definitions,r,n)||xf(It.styles,r,n)}var $f=new K0,eb=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,_n("noAuto")},tb={i2svg:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return $t?(_n("beforeI2svg",n),on("pseudoElements2svg",n),on("i2svg",n)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.autoReplaceSvgRoot;G.autoReplaceSvg===!1&&(G.autoReplaceSvg=!0),G.observeMutations=!0,W0(function(){rb({autoReplaceSvgRoot:r}),_n("watch",n)})}},nb={icon:function(n){if(n===null)return null;if(xi(n)==="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:wn(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){var r=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],o=Ci(n[0]);return{prefix:o,iconName:wn(o,r)||r}}if(typeof n=="string"&&(n.indexOf("".concat(G.cssPrefix,"-"))>-1||n.match(_0))){var s=Ni(n.split(" "),{skipLookups:!0});return{prefix:s.prefix||an(),iconName:wn(s.prefix,s.iconName)||s.iconName}}if(typeof n=="string"){var l=an();return{prefix:l,iconName:wn(l,n)||n}}}},nt={noAuto:eb,config:G,dom:tb,parse:nb,library:$f,findIconDefinition:Lo,toHtml:Ar},rb=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.autoReplaceSvgRoot,o=r===void 0?Se:r;(Object.keys(It.styles).length>0||G.autoFetchSvg)&&$t&&G.autoReplaceSvg&&nt.dom.i2svg({node:o})};function Pi(i,n){return Object.defineProperty(i,"abstract",{get:n}),Object.defineProperty(i,"html",{get:function(){return i.abstract.map(function(o){return Ar(o)})}}),Object.defineProperty(i,"node",{get:function(){if($t){var o=Se.createElement("div");return o.innerHTML=i.html,o.children}}}),i}function ib(i){var n=i.children,r=i.main,o=i.mask,s=i.attributes,l=i.styles,f=i.transform;if(Io(f)&&r.found&&!o.found){var d=r.width,p=r.height,m={x:d/p/2,y:.5};s.style=Di(W(W({},l),{},{"transform-origin":"".concat(m.x+f.x/16,"em ").concat(m.y+f.y/16,"em")}))}return[{tag:"svg",attributes:s,children:n}]}function ab(i){var n=i.prefix,r=i.iconName,o=i.children,s=i.attributes,l=i.symbol,f=l===!0?"".concat(n,"-").concat(G.cssPrefix,"-").concat(r):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:W(W({},s),{},{id:f}),children:o}]}]}function ob(i){var n=["aria-label","aria-labelledby","title","role"];return n.some(function(r){return r in i})}function Mo(i){var n=i.icons,r=n.main,o=n.mask,s=i.prefix,l=i.iconName,f=i.transform,d=i.symbol,p=i.maskId,m=i.extra,S=i.watchable,w=S===void 0?!1:S,O=o.found?o:r,y=O.width,E=O.height,_=[G.replacementClass,l?"".concat(G.cssPrefix,"-").concat(l):""].filter(function(B){return m.classes.indexOf(B)===-1}).filter(function(B){return B!==""||!!B}).concat(m.classes).join(" "),I={children:[],attributes:W(W({},m.attributes),{},{"data-prefix":s,"data-icon":l,class:_,role:m.attributes.role||"img",viewBox:"0 0 ".concat(y," ").concat(E)})};!ob(m.attributes)&&!m.attributes["aria-hidden"]&&(I.attributes["aria-hidden"]="true"),w&&(I.attributes[Sn]="");var C=W(W({},I),{},{prefix:s,iconName:l,main:r,mask:o,maskId:p,transform:f,symbol:d,styles:W({},m.styles)}),F=o.found&&r.found?on("generateAbstractMask",C)||{children:[],attributes:{}}:on("generateAbstractIcon",C)||{children:[],attributes:{}},U=F.children,V=F.attributes;return C.children=U,C.attributes=V,d?ab(C):ib(C)}function Uf(i){var n=i.content,r=i.width,o=i.height,s=i.transform,l=i.extra,f=i.watchable,d=f===void 0?!1:f,p=W(W({},l.attributes),{},{class:l.classes.join(" ")});d&&(p[Sn]="");var m=W({},l.styles);Io(s)&&(m.transform=k0({transform:s,width:r,height:o}),m["-webkit-transform"]=m.transform);var S=Di(m);S.length>0&&(p.style=S);var w=[];return w.push({tag:"span",attributes:p,children:[n]}),w}function sb(i){var n=i.content,r=i.extra,o=W(W({},r.attributes),{},{class:r.classes.join(" ")}),s=Di(r.styles);s.length>0&&(o.style=s);var l=[];return l.push({tag:"span",attributes:o,children:[n]}),l}var ko=It.styles;function Fo(i){var n=i[0],r=i[1],o=i.slice(4),s=Ti(o,1),l=s[0],f=null;return Array.isArray(l)?f={tag:"g",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.GROUP)},children:[{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.SECONDARY),fill:"currentColor",d:l[0]}},{tag:"path",attributes:{class:"".concat(G.cssPrefix,"-").concat(To.PRIMARY),fill:"currentColor",d:l[1]}}]}:f={tag:"path",attributes:{fill:"currentColor",d:l}},{found:!0,width:n,height:r,icon:f}}var ub={found:!1,width:512,height:512};function lb(i,n){!gf&&!G.showMissingIcons&&i&&console.error('Icon with name "'.concat(i,'" and prefix "').concat(n,'" is missing.'))}function Ro(i,n){var r=n;return n==="fa"&&G.styleDefault!==null&&(n=an()),new Promise(function(o,s){if(r==="fa"){var l=kf(i)||{};i=l.iconName||i,n=l.prefix||n}if(i&&n&&ko[n]&&ko[n][i]){var f=ko[n][i];return o(Fo(f))}lb(i,n),o(W(W({},ub),{},{icon:G.showMissingIcons&&i?on("missingIconAbstract")||{}:{}}))})}var Hf=function(){},Wo=G.measurePerformance&&Ii&&Ii.mark&&Ii.measure?Ii:{mark:Hf,measure:Hf},Nr='FA "7.1.0"',fb=function(n){return Wo.mark("".concat(Nr," ").concat(n," begins")),function(){return zf(n)}},zf=function(n){Wo.mark("".concat(Nr," ").concat(n," ends")),Wo.measure("".concat(Nr," ").concat(n),"".concat(Nr," ").concat(n," begins"),"".concat(Nr," ").concat(n," ends"))},Bo={begin:fb,end:zf},Li=function(){};function jf(i){var n=i.getAttribute?i.getAttribute(Sn):null;return typeof n=="string"}function cb(i){var n=i.getAttribute?i.getAttribute(yo):null,r=i.getAttribute?i.getAttribute(bo):null;return n&&r}function db(i){return i&&i.classList&&i.classList.contains&&i.classList.contains(G.replacementClass)}function hb(){if(G.autoReplaceSvg===!0)return Mi.replace;var i=Mi[G.autoReplaceSvg];return i||Mi.replace}function gb(i){return Se.createElementNS("http://www.w3.org/2000/svg",i)}function pb(i){return Se.createElement(i)}function qf(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.ceFn,o=r===void 0?i.tag==="svg"?gb:pb:r;if(typeof i=="string")return Se.createTextNode(i);var s=o(i.tag);Object.keys(i.attributes||[]).forEach(function(f){s.setAttribute(f,i.attributes[f])});var l=i.children||[];return l.forEach(function(f){s.appendChild(qf(f,{ceFn:o}))}),s}function vb(i){var n=" ".concat(i.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}var Mi={replace:function(n){var r=n[0];if(r.parentNode)if(n[1].forEach(function(s){r.parentNode.insertBefore(qf(s),r)}),r.getAttribute(Sn)===null&&G.keepOriginalSource){var o=Se.createComment(vb(r));r.parentNode.replaceChild(o,r)}else r.remove()},nest:function(n){var r=n[0],o=n[1];if(~xo(r).indexOf(G.replacementClass))return Mi.replace(n);var s=new RegExp("".concat(G.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){var l=o[0].attributes.class.split(" ").reduce(function(d,p){return p===G.replacementClass||p.match(s)?d.toSvg.push(p):d.toNode.push(p),d},{toNode:[],toSvg:[]});o[0].attributes.class=l.toSvg.join(" "),l.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",l.toNode.join(" "))}var f=o.map(function(d){return Ar(d)}).join(`
|
|
574
|
+
`);r.setAttribute(Sn,""),r.innerHTML=f}};function Gf(i){i()}function Yf(i,n){var r=typeof n=="function"?n:Li;if(i.length===0)r();else{var o=Gf;G.mutateApproach===b0&&(o=rn.requestAnimationFrame||Gf),o(function(){var s=hb(),l=Bo.begin("mutate");i.map(s),l(),r()})}}var $o=!1;function Jf(){$o=!0}function Uo(){$o=!1}var ki=null;function Vf(i){if(Rl&&G.observeMutations){var n=i.treeCallback,r=n===void 0?Li:n,o=i.nodeCallback,s=o===void 0?Li:o,l=i.pseudoElementsCallback,f=l===void 0?Li:l,d=i.observeMutationsRoot,p=d===void 0?Se:d;ki=new Rl(function(m){if(!$o){var S=an();qn(m).forEach(function(w){if(w.type==="childList"&&w.addedNodes.length>0&&!jf(w.addedNodes[0])&&(G.searchPseudoElements&&f(w.target),r(w.target)),w.type==="attributes"&&w.target.parentNode&&G.searchPseudoElements&&f([w.target],!0),w.type==="attributes"&&jf(w.target)&&~x0.indexOf(w.attributeName))if(w.attributeName==="class"&&cb(w.target)){var O=Ni(xo(w.target)),y=O.prefix,E=O.iconName;w.target.setAttribute(yo,y||S),E&&w.target.setAttribute(bo,E)}else db(w.target)&&s(w.target)})}}),$t&&ki.observe(p,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function mb(){ki&&ki.disconnect()}function yb(i){var n=i.getAttribute("style"),r=[];return n&&(r=n.split(";").reduce(function(o,s){var l=s.split(":"),f=l[0],d=l.slice(1);return f&&d.length>0&&(o[f]=d.join(":").trim()),o},{})),r}function bb(i){var n=i.getAttribute("data-prefix"),r=i.getAttribute("data-icon"),o=i.innerText!==void 0?i.innerText.trim():"",s=Ni(xo(i));return s.prefix||(s.prefix=an()),n&&r&&(s.prefix=n,s.iconName=r),s.iconName&&s.prefix||(s.prefix&&o.length>0&&(s.iconName=z0(s.prefix,i.innerText)||No(s.prefix,If(i.innerText))),!s.iconName&&G.autoFetchSvg&&i.firstChild&&i.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=i.firstChild.data)),s}function Sb(i){var n=qn(i.attributes).reduce(function(r,o){return r.name!=="class"&&r.name!=="style"&&(r[o.name]=o.value),r},{});return n}function wb(){return{iconName:null,prefix:null,transform:Mt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Xf(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=bb(i),o=r.iconName,s=r.prefix,l=r.rest,f=Sb(i),d=Po("parseNodeAttributes",{},i),p=n.styleParser?yb(i):[];return W({iconName:o,prefix:s,transform:Mt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:p,attributes:f}},d)}var _b=It.styles;function Kf(i){var n=G.autoReplaceSvg==="nest"?Xf(i,{styleParser:!1}):Xf(i);return~n.extra.classes.indexOf(mf)?on("generateLayersText",i,n):on("generateSvgReplacementMutation",i,n)}function Eb(){return[].concat(xt(af),xt(uf))}function Zf(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!$t)return Promise.resolve();var r=Se.documentElement.classList,o=function(w){return r.add("".concat(df,"-").concat(w))},s=function(w){return r.remove("".concat(df,"-").concat(w))},l=G.autoFetchSvg?Eb():$l.concat(Object.keys(_b));l.includes("fa")||l.push("fa");var f=[".".concat(mf,":not([").concat(Sn,"])")].concat(l.map(function(S){return".".concat(S,":not([").concat(Sn,"])")})).join(", ");if(f.length===0)return Promise.resolve();var d=[];try{d=qn(i.querySelectorAll(f))}catch{}if(d.length>0)o("pending"),s("complete");else return Promise.resolve();var p=Bo.begin("onTree"),m=d.reduce(function(S,w){try{var O=Kf(w);O&&S.push(O)}catch(y){gf||y.name==="MissingIcon"&&console.error(y)}return S},[]);return new Promise(function(S,w){Promise.all(m).then(function(O){Yf(O,function(){o("active"),o("complete"),s("pending"),typeof n=="function"&&n(),p(),S()})}).catch(function(O){p(),w(O)})})}function Tb(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Kf(i).then(function(r){r&&Yf([r],n)})}function xb(i){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(n||{}).icon?n:Lo(n||{}),s=r.mask;return s&&(s=(s||{}).icon?s:Lo(s||{})),i(o,W(W({},r),{},{mask:s}))}}var Ib=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,s=o===void 0?Mt:o,l=r.symbol,f=l===void 0?!1:l,d=r.mask,p=d===void 0?null:d,m=r.maskId,S=m===void 0?null:m,w=r.classes,O=w===void 0?[]:w,y=r.attributes,E=y===void 0?{}:y,_=r.styles,I=_===void 0?{}:_;if(n){var C=n.prefix,F=n.iconName,U=n.icon;return Pi(W({type:"icon"},n),function(){return _n("beforeDOMElementCreation",{iconDefinition:n,params:r}),Mo({icons:{main:Fo(U),mask:p?Fo(p.icon):{found:!1,width:null,height:null,icon:{}}},prefix:C,iconName:F,transform:W(W({},Mt),s),symbol:f,maskId:S,extra:{attributes:E,styles:I,classes:O}})})}},Ob={mixout:function(){return{icon:xb(Ib)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=Zf,r.nodeCallback=Tb,r}}},provides:function(n){n.i2svg=function(r){var o=r.node,s=o===void 0?Se:o,l=r.callback,f=l===void 0?function(){}:l;return Zf(s,f)},n.generateSvgReplacementMutation=function(r,o){var s=o.iconName,l=o.prefix,f=o.transform,d=o.symbol,p=o.mask,m=o.maskId,S=o.extra;return new Promise(function(w,O){Promise.all([Ro(s,l),p.iconName?Ro(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var E=Ti(y,2),_=E[0],I=E[1];w([r,Mo({icons:{main:_,mask:I},prefix:l,iconName:s,transform:f,symbol:d,maskId:m,extra:S,watchable:!0})])}).catch(O)})},n.generateAbstractIcon=function(r){var o=r.children,s=r.attributes,l=r.main,f=r.transform,d=r.styles,p=Di(d);p.length>0&&(s.style=p);var m;return Io(f)&&(m=on("generateAbstractTransformGrouping",{main:l,transform:f,containerWidth:l.width,iconWidth:l.width})),o.push(m||l.icon),{children:o,attributes:s}}}},Db={mixout:function(){return{layer:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.classes,l=s===void 0?[]:s;return Pi({type:"layer"},function(){_n("beforeDOMElementCreation",{assembler:r,params:o});var f=[];return r(function(d){Array.isArray(d)?d.map(function(p){f=f.concat(p.abstract)}):f=f.concat(d.abstract)}),[{tag:"span",attributes:{class:["".concat(G.cssPrefix,"-layers")].concat(xt(l)).join(" ")},children:f}]})}}}},Ab={mixout:function(){return{counter:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o.title;var s=o.classes,l=s===void 0?[]:s,f=o.attributes,d=f===void 0?{}:f,p=o.styles,m=p===void 0?{}:p;return Pi({type:"counter",content:r},function(){return _n("beforeDOMElementCreation",{content:r,params:o}),sb({content:r.toString(),extra:{attributes:d,styles:m,classes:["".concat(G.cssPrefix,"-layers-counter")].concat(xt(l))}})})}}}},Cb={mixout:function(){return{text:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.transform,l=s===void 0?Mt:s,f=o.classes,d=f===void 0?[]:f,p=o.attributes,m=p===void 0?{}:p,S=o.styles,w=S===void 0?{}:S;return Pi({type:"text",content:r},function(){return _n("beforeDOMElementCreation",{content:r,params:o}),Uf({content:r,transform:W(W({},Mt),l),extra:{attributes:m,styles:w,classes:["".concat(G.cssPrefix,"-layers-text")].concat(xt(d))}})})}}},provides:function(n){n.generateLayersText=function(r,o){var s=o.transform,l=o.extra,f=null,d=null;if(Wl){var p=parseInt(getComputedStyle(r).fontSize,10),m=r.getBoundingClientRect();f=m.width/p,d=m.height/p}return Promise.resolve([r,Uf({content:r.innerHTML,width:f,height:d,transform:s,extra:l,watchable:!0})])}}},Qf=new RegExp('"',"ug"),ec=[1105920,1112319],tc=W(W(W(W({},{FontAwesome:{normal:"fas",400:"fas"}}),dy),m0),wy),Ho=Object.keys(tc).reduce(function(i,n){return i[n.toLowerCase()]=tc[n],i},{}),Nb=Object.keys(Ho).reduce(function(i,n){var r=Ho[n];return i[n]=r[900]||xt(Object.entries(r))[0][1],i},{});function Pb(i){var n=i.replace(Qf,"");return If(xt(n)[0]||"")}function Lb(i){var n=i.getPropertyValue("font-feature-settings").includes("ss01"),r=i.getPropertyValue("content"),o=r.replace(Qf,""),s=o.codePointAt(0),l=s>=ec[0]&&s<=ec[1],f=o.length===2?o[0]===o[1]:!1;return l||f||n}function Mb(i,n){var r=i.replace(/^['"]|['"]$/g,"").toLowerCase(),o=parseInt(n),s=isNaN(o)?"normal":o;return(Ho[r]||{})[s]||Nb[r]}function nc(i,n){var r="".concat(y0).concat(n.replace(":","-"));return new Promise(function(o,s){if(i.getAttribute(r)!==null)return o();var l=qn(i.children),f=l.filter(function(ue){return ue.getAttribute(mo)===n})[0],d=rn.getComputedStyle(i,n),p=d.getPropertyValue("font-family"),m=p.match(E0),S=d.getPropertyValue("font-weight"),w=d.getPropertyValue("content");if(f&&!m)return i.removeChild(f),o();if(m&&w!=="none"&&w!==""){var O=d.getPropertyValue("content"),y=Mb(p,S),E=Pb(O),_=m[0].startsWith("FontAwesome"),I=Lb(d),C=No(y,E),F=C;if(_){var U=j0(E);U.iconName&&U.prefix&&(C=U.iconName,y=U.prefix)}if(C&&!I&&(!f||f.getAttribute(yo)!==y||f.getAttribute(bo)!==F)){i.setAttribute(r,F),f&&i.removeChild(f);var V=wb(),B=V.extra;B.attributes[mo]=n,Ro(C,y).then(function(ue){var N=Mo(W(W({},V),{},{icons:{main:ue,mask:Ff()},prefix:y,iconName:F,extra:B,watchable:!0})),L=Se.createElementNS("http://www.w3.org/2000/svg","svg");n==="::before"?i.insertBefore(L,i.firstChild):i.appendChild(L),L.outerHTML=N.map(function(j){return Ar(j)}).join(`
|
|
575
|
+
`),i.removeAttribute(r),o()}).catch(s)}else o()}else o()})}function kb(i){return Promise.all([nc(i,"::before"),nc(i,"::after")])}function Fb(i){return i.parentNode!==document.head&&!~S0.indexOf(i.tagName.toUpperCase())&&!i.getAttribute(mo)&&(!i.parentNode||i.parentNode.tagName!=="svg")}var Rb=function(n){return!!n&&hf.some(function(r){return n.includes(r)})},Wb=function(n){if(!n)return[];var r=new Set,o=n.split(/,(?![^()]*\))/).map(function(p){return p.trim()});o=o.flatMap(function(p){return p.includes("(")?p:p.split(",").map(function(m){return m.trim()})});var s=Ei(o),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;if(Rb(f)){var d=hf.reduce(function(p,m){return p.replace(m,"")},f);d!==""&&d!=="*"&&r.add(d)}}}catch(p){s.e(p)}finally{s.f()}return r};function rc(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($t){var r;if(n)r=i;else if(G.searchPseudoElementsFullScan)r=i.querySelectorAll("*");else{var o=new Set,s=Ei(document.styleSheets),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;try{var d=Ei(f.cssRules),p;try{for(d.s();!(p=d.n()).done;){var m=p.value,S=Wb(m.selectorText),w=Ei(S),O;try{for(w.s();!(O=w.n()).done;){var y=O.value;o.add(y)}}catch(_){w.e(_)}finally{w.f()}}}catch(_){d.e(_)}finally{d.f()}}catch(_){G.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(f.href," (").concat(_.message,`)
|
|
576
|
+
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(_){s.e(_)}finally{s.f()}if(!o.size)return;var E=Array.from(o).join(", ");try{r=i.querySelectorAll(E)}catch{}}return new Promise(function(_,I){var C=qn(r).filter(Fb).map(kb),F=Bo.begin("searchPseudoElements");Jf(),Promise.all(C).then(function(){F(),Uo(),_()}).catch(function(){F(),Uo(),I()})})}}var Bb={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=rc,r}}},provides:function(n){n.pseudoElements2svg=function(r){var o=r.node,s=o===void 0?Se:o;G.searchPseudoElements&&rc(s)}}},ic=!1,$b={mixout:function(){return{dom:{unwatch:function(){Jf(),ic=!0}}}},hooks:function(){return{bootstrap:function(){Vf(Po("mutationObserverCallbacks",{}))},noAuto:function(){mb()},watch:function(r){var o=r.observeMutationsRoot;ic?Uo():Vf(Po("mutationObserverCallbacks",{observeMutationsRoot:o}))}}}},ac=function(n){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return n.toLowerCase().split(" ").reduce(function(o,s){var l=s.toLowerCase().split("-"),f=l[0],d=l.slice(1).join("-");if(f&&d==="h")return o.flipX=!0,o;if(f&&d==="v")return o.flipY=!0,o;if(d=parseFloat(d),isNaN(d))return o;switch(f){case"grow":o.size=o.size+d;break;case"shrink":o.size=o.size-d;break;case"left":o.x=o.x-d;break;case"right":o.x=o.x+d;break;case"up":o.y=o.y-d;break;case"down":o.y=o.y+d;break;case"rotate":o.rotate=o.rotate+d;break}return o},r)},Ub={mixout:function(){return{parse:{transform:function(r){return ac(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-transform");return s&&(r.transform=ac(s)),r}}},provides:function(n){n.generateAbstractTransformGrouping=function(r){var o=r.main,s=r.transform,l=r.containerWidth,f=r.iconWidth,d={transform:"translate(".concat(l/2," 256)")},p="translate(".concat(s.x*32,", ").concat(s.y*32,") "),m="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),S="rotate(".concat(s.rotate," 0 0)"),w={transform:"".concat(p," ").concat(m," ").concat(S)},O={transform:"translate(".concat(f/2*-1," -256)")},y={outer:d,inner:w,path:O};return{tag:"g",attributes:W({},y.outer),children:[{tag:"g",attributes:W({},y.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:W(W({},o.icon.attributes),y.path)}]}]}}}},zo={x:0,y:0,width:"100%",height:"100%"};function oc(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return i.attributes&&(i.attributes.fill||n)&&(i.attributes.fill="black"),i}function Hb(i){return i.tag==="g"?i.children:[i]}var zb={hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-mask"),l=s?Ni(s.split(" ").map(function(f){return f.trim()})):Ff();return l.prefix||(l.prefix=an()),r.mask=l,r.maskId=o.getAttribute("data-fa-mask-id"),r}}},provides:function(n){n.generateAbstractMask=function(r){var o=r.children,s=r.attributes,l=r.main,f=r.mask,d=r.maskId,p=r.transform,m=l.width,S=l.icon,w=f.width,O=f.icon,y=M0({transform:p,containerWidth:w,iconWidth:m}),E={tag:"rect",attributes:W(W({},zo),{},{fill:"white"})},_=S.children?{children:S.children.map(oc)}:{},I={tag:"g",attributes:W({},y.inner),children:[oc(W({tag:S.tag,attributes:W(W({},S.attributes),y.path)},_))]},C={tag:"g",attributes:W({},y.outer),children:[I]},F="mask-".concat(d||bf()),U="clip-".concat(d||bf()),V={tag:"mask",attributes:W(W({},zo),{},{id:F,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,C]},B={tag:"defs",children:[{tag:"clipPath",attributes:{id:U},children:Hb(O)},V]};return o.push(B,{tag:"rect",attributes:W({fill:"currentColor","clip-path":"url(#".concat(U,")"),mask:"url(#".concat(F,")")},zo)}),{children:o,attributes:s}}}},jb={provides:function(n){var r=!1;rn.matchMedia&&(r=rn.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var o=[],s={fill:"currentColor"},l={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.push({tag:"path",attributes:W(W({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var f=W(W({},l),{},{attributeName:"opacity"}),d={tag:"circle",attributes:W(W({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||d.children.push({tag:"animate",attributes:W(W({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:W(W({},f),{},{values:"1;0;1;1;0;1;"})}),o.push(d),o.push({tag:"path",attributes:W(W({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:W(W({},f),{},{values:"1;0;0;0;0;1;"})}]}),r||o.push({tag:"path",attributes:W(W({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:W(W({},f),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:o}}}},qb={hooks:function(){return{parseNodeAttributes:function(r,o){var s=o.getAttribute("data-fa-symbol"),l=s===null?!1:s===""?!0:s;return r.symbol=l,r}}}},Gb=[R0,Ob,Db,Ab,Cb,Bb,$b,Ub,zb,jb,qb];Q0(Gb,{mixoutsTo:nt}),nt.noAuto;var Pr=nt.config;nt.library,nt.dom;var sc=nt.parse;nt.findIconDefinition,nt.toHtml;var Yb=nt.icon;nt.layer,nt.text,nt.counter;function Jb(i){return i=i-0,i===i}function uc(i){return Jb(i)?i:(i=i.replace(/[_-]+(.)?/g,(n,r)=>r?r.toUpperCase():""),i.charAt(0).toLowerCase()+i.slice(1))}function Vb(i){return i.charAt(0).toUpperCase()+i.slice(1)}var Jn=new Map,Xb=1e3;function Kb(i){if(Jn.has(i))return Jn.get(i);const n={};let r=0;const o=i.length;for(;r<o;){const s=i.indexOf(";",r),l=s===-1?o:s,f=i.slice(r,l).trim();if(f){const d=f.indexOf(":");if(d>0){const p=f.slice(0,d).trim(),m=f.slice(d+1).trim();if(p&&m){const S=uc(p);n[S.startsWith("webkit")?Vb(S):S]=m}}}r=l+1}if(Jn.size===Xb){const s=Jn.keys().next().value;s&&Jn.delete(s)}return Jn.set(i,n),n}function lc(i,n,r={}){if(typeof n=="string")return n;const o=(n.children||[]).map(S=>lc(i,S)),s=n.attributes||{},l={};for(const[S,w]of Object.entries(s))switch(!0){case S==="class":{l.className=w;break}case S==="style":{l.style=Kb(String(w));break}case S.startsWith("aria-"):case S.startsWith("data-"):{l[S.toLowerCase()]=w;break}default:l[uc(S)]=w}const{style:f,role:d,"aria-label":p,...m}=r;return f&&(l.style=l.style?{...l.style,...f}:f),d&&(l.role=d),p&&(l["aria-label"]=p,l["aria-hidden"]="false"),i(n.tag,{...m,...l},...o)}var Zb=lc.bind(null,A.createElement),fc=(i,n)=>{const r=A.useId();return i||(n?r:void 0)},Qb=class{constructor(i="react-fontawesome"){this.enabled=!1;let n=!1;try{n=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=i,this.enabled=n}log(...i){this.enabled&&console.log(`[${this.scope}]`,...i)}warn(...i){this.enabled&&console.warn(`[${this.scope}]`,...i)}error(...i){this.enabled&&console.error(`[${this.scope}]`,...i)}};typeof process<"u"&&process.env.FA_VERSION;var e1="searchPseudoElementsFullScan"in Pr?"7.0.0":"6.0.0",t1=Number.parseInt(e1)>=7,Lr="fa",zt={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},n1={left:"fa-pull-left",right:"fa-pull-right"},r1={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},i1={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},jt={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function a1(i){const n=Pr.cssPrefix||Pr.familyPrefix||Lr;return n===Lr?i:i.replace(new RegExp(String.raw`(?<=^|\s)${Lr}-`,"g"),`${n}-`)}function o1(i){const{beat:n,fade:r,beatFade:o,bounce:s,shake:l,spin:f,spinPulse:d,spinReverse:p,pulse:m,fixedWidth:S,inverse:w,border:O,flip:y,size:E,rotation:_,pull:I,swapOpacity:C,rotateBy:F,widthAuto:U,className:V}=i,B=[];return V&&B.push(...V.split(" ")),n&&B.push(zt.beat),r&&B.push(zt.fade),o&&B.push(zt.beatFade),s&&B.push(zt.bounce),l&&B.push(zt.shake),f&&B.push(zt.spin),p&&B.push(zt.spinReverse),d&&B.push(zt.spinPulse),m&&B.push(zt.pulse),S&&B.push(jt.fixedWidth),w&&B.push(jt.inverse),O&&B.push(jt.border),y===!0&&B.push(jt.flip),(y==="horizontal"||y==="both")&&B.push(jt.flipHorizontal),(y==="vertical"||y==="both")&&B.push(jt.flipVertical),E!=null&&B.push(i1[E]),_!=null&&_!==0&&B.push(r1[_]),I!=null&&B.push(n1[I]),C&&B.push(jt.swapOpacity),t1?(F&&B.push(jt.rotateBy),U&&B.push(jt.widthAuto),(Pr.cssPrefix||Pr.familyPrefix||Lr)===Lr?B:B.map(a1)):B}var s1=i=>typeof i=="object"&&"icon"in i&&!!i.icon;function cc(i){if(i)return s1(i)?i:sc.icon(i)}function u1(i){return Object.keys(i)}var dc=new Qb("FontAwesomeIcon"),hc={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},l1=new Set(Object.keys(hc)),Vn=A.forwardRef((i,n)=>{const r={...hc,...i},{icon:o,mask:s,symbol:l,title:f,titleId:d,maskId:p,transform:m}=r,S=fc(p,!!s),w=fc(d,!!f),O=cc(o);if(!O)return dc.error("Icon lookup is undefined",o),null;const y=o1(r),E=typeof m=="string"?sc.transform(m):m,_=cc(s),I=Yb(O,{...y.length>0&&{classes:y},...E&&{transform:E},..._&&{mask:_},symbol:l,title:f,titleId:w,maskId:S});if(!I)return dc.error("Could not find icon",O),null;const{abstract:C}=I,F={ref:n};for(const U of u1(r))l1.has(U)||(F[U]=r[U]);return Zb(C[0],F)});Vn.displayName="FontAwesomeIcon";var f1={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},c1={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},gc={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},d1={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};function h1({layoutId:i,justId:n,winInfo:r}){console.log("TabTitle justId",n);const[o,s]=no(),[l]=A.useState({x:0,y:0}),f=Lt(i),d=f.getTabTitleTooltip(n),p=S=>{f.removeWin({justId:S})},m=(S,w)=>{f.activeWin({justId:w})};return $.jsxs($.Fragment,{children:[$.jsx("div",{className:"just-icon",onClick:S=>m(S,n),title:d,children:r.getTabIcon(n,i)}),$.jsx("div",{className:"just-title",onClick:S=>m(S,n),title:d,children:f.getTabTitle(n)??n.title}),$.jsx("div",{className:"just-icon just-close",onClick:()=>p(n),children:$.jsx(Vn,{icon:gc})}),$.jsx(vl,{state:o.state,endTransition:o.endTransition,anchorPoint:l,onClose:()=>s(!1),children:$.jsxs(wi,{onClick:()=>p(n),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close"}),$.jsx("div",{className:"just-icon"})]})})]})}const pc=Bt(h1);function g1(i){const{layoutId:n,isFullScreenView:r,dndAccept:o,winInfo:s,justBranch:l,justId:f,justStack:d,rect:p}=i,m=A.useRef(null),[,S]=no(),[,w]=A.useState({x:0,y:0}),O=Lt(n),[{isDragging:y},E]=Ov({type:f.viewId,item:{justBranch:l,justId:f,index:-1},collect:C=>({isDragging:C.isDragging()})}),[,_]=Ga({accept:o,collect(C){return{handlerId:C.getHandlerId()}},hover(C,F){if(!m.current||f===C.justId)return;const U=m.current.getBoundingClientRect(),V=F.getClientOffset(),B=(U.right-U.left)/2,ue=V.x-U.left,N=C.justId,L=f,j=d.tabs.filter(Y=>!ge.isEquals(Y,N));let ee=ge.indexOf(j,L);ue>B&&(ee+=1),C.pos="stack",C.index=ee}});A.useEffect(()=>{if(ge.isEquals(f,O.lastActiveId??null)){if(m.current==null||p==null)return;const C=m.current.getBoundingClientRect();(p.left>C.left||p.right<C.right)&&m.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[O.lastActiveTm]),A.useLayoutEffect(()=>{m.current&&E(_(m))},[_,E]);const I=A.useCallback(C=>{C.preventDefault(),w({x:C.clientX,y:C.clientY}),S(!0)},[S]);return $.jsx("div",{className:Et("just-draggable-title","just-title-menus",{dragging:y,"just-active":ge.isEquals(d.active,f),"last-active":ge.isEquals(O.lastActiveId,f)}),ref:m,onContextMenu:I,children:s.getTabTitle?s.getTabTitle({justId:f,layoutId:n,justBranch:l,isFullScreenView:r,winInfo:s}):$.jsx(pc,{justId:f,layoutId:n,justBranch:l,isFullScreenView:r,winInfo:s})})}const vc=Bt(g1);function mc(i){let n=null;return()=>(n==null&&(n=i()),n)}function p1(i,n){return i.filter(r=>r!==n)}function v1(i,n){const r=new Set,o=l=>r.add(l);i.forEach(o),n.forEach(o);const s=[];return r.forEach(l=>s.push(l)),s}class m1{enter(n){const r=this.entered.length,o=s=>this.isNodeInDocument(s)&&(!s.contains||s.contains(n));return this.entered=v1(this.entered.filter(o),[n]),r===0&&this.entered.length>0}leave(n){const r=this.entered.length;return this.entered=p1(this.entered.filter(this.isNodeInDocument),n),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(n){this.entered=[],this.isNodeInDocument=n}}class y1{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(n=>{Object.defineProperty(this.item,n,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${n}" until the drop event.`),null}})})}loadDataTransfer(n){if(n){const r={};Object.keys(this.config.exposeProperties).forEach(o=>{const s=this.config.exposeProperties[o];s!=null&&(r[o]={value:s(n,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(n,r){return r===n.getSourceId()}endDrag(){}constructor(n){this.config=n,this.item={},this.initializeExposedProperties()}}const yc="__NATIVE_FILE__",bc="__NATIVE_URL__",Sc="__NATIVE_TEXT__",wc="__NATIVE_HTML__",_c=Object.freeze(Object.defineProperty({__proto__:null,FILE:yc,HTML:wc,TEXT:Sc,URL:bc},Symbol.toStringTag,{value:"Module"}));function jo(i,n,r){const o=n.reduce((s,l)=>s||i.getData(l),"");return o??r}const qo={[yc]:{exposeProperties:{files:i=>Array.prototype.slice.call(i.files),items:i=>i.items,dataTransfer:i=>i},matchesTypes:["Files"]},[wc]:{exposeProperties:{html:(i,n)=>jo(i,n,""),dataTransfer:i=>i},matchesTypes:["Html","text/html"]},[bc]:{exposeProperties:{urls:(i,n)=>jo(i,n,"").split(`
|
|
577
|
+
`),dataTransfer:i=>i},matchesTypes:["Url","text/uri-list"]},[Sc]:{exposeProperties:{text:(i,n)=>jo(i,n,""),dataTransfer:i=>i},matchesTypes:["Text","text/plain"]}};function b1(i,n){const r=qo[i];if(!r)throw new Error(`native type ${i} has no configuration`);const o=new y1(r);return o.loadDataTransfer(n),o}function Go(i){if(!i)return null;const n=Array.prototype.slice.call(i.types||[]);return Object.keys(qo).filter(r=>{const o=qo[r];return o?.matchesTypes?o.matchesTypes.some(s=>n.indexOf(s)>-1):!1})[0]||null}const S1=mc(()=>/firefox/i.test(navigator.userAgent)),Ec=mc(()=>!!window.safari);class Tc{interpolate(n){const{xs:r,ys:o,c1s:s,c2s:l,c3s:f}=this;let d=r.length-1;if(n===r[d])return o[d];let p=0,m=f.length-1,S;for(;p<=m;){S=Math.floor(.5*(p+m));const y=r[S];if(y<n)p=S+1;else if(y>n)m=S-1;else return o[S]}d=Math.max(0,m);const w=n-r[d],O=w*w;return o[d]+s[d]*w+l[d]*O+f[d]*w*O}constructor(n,r){const{length:o}=n,s=[];for(let y=0;y<o;y++)s.push(y);s.sort((y,E)=>n[y]<n[E]?-1:1);const l=[],f=[];let d,p;for(let y=0;y<o-1;y++)d=n[y+1]-n[y],p=r[y+1]-r[y],l.push(d),f.push(p/d);const m=[f[0]];for(let y=0;y<l.length-1;y++){const E=f[y],_=f[y+1];if(E*_<=0)m.push(0);else{d=l[y];const I=l[y+1],C=d+I;m.push(3*C/((C+I)/E+(C+d)/_))}}m.push(f[f.length-1]);const S=[],w=[];let O;for(let y=0;y<m.length-1;y++){O=f[y];const E=m[y],_=1/l[y],I=E+m[y+1]-O-O;S.push((O-E-I)*_),w.push(I*_*_)}this.xs=n,this.ys=r,this.c1s=m,this.c2s=S,this.c3s=w}}const w1=1;function xc(i){const n=i.nodeType===w1?i:i.parentElement;if(!n)return null;const{top:r,left:o}=n.getBoundingClientRect();return{x:o,y:r}}function Fi(i){return{x:i.clientX,y:i.clientY}}function _1(i){var n;return i.nodeName==="IMG"&&(S1()||!(!((n=document.documentElement)===null||n===void 0)&&n.contains(i)))}function E1(i,n,r,o){let s=i?n.width:r,l=i?n.height:o;return Ec()&&i&&(l/=window.devicePixelRatio,s/=window.devicePixelRatio),{dragPreviewWidth:s,dragPreviewHeight:l}}function T1(i,n,r,o,s){const l=_1(n),d=xc(l?i:n),p={x:r.x-d.x,y:r.y-d.y},{offsetWidth:m,offsetHeight:S}=i,{anchorX:w,anchorY:O}=o,{dragPreviewWidth:y,dragPreviewHeight:E}=E1(l,n,m,S),_=()=>{let ue=new Tc([0,.5,1],[p.y,p.y/S*E,p.y+E-S]).interpolate(O);return Ec()&&l&&(ue+=(window.devicePixelRatio-1)*E),ue},I=()=>new Tc([0,.5,1],[p.x,p.x/m*y,p.x+y-m]).interpolate(w),{offsetX:C,offsetY:F}=s,U=C===0||C,V=F===0||F;return{x:U?C:I(),y:V?F:_()}}class x1{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var n;return!((n=this.globalContext)===null||n===void 0)&&n.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var n;return((n=this.optionsArgs)===null||n===void 0?void 0:n.rootElement)||this.window}constructor(n,r){this.ownerDocument=null,this.globalContext=n,this.optionsArgs=r}}function I1(i,n,r){return n in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i}function Ic(i){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){I1(i,s,r[s])})}return i}class O1{profile(){var n,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((n=this.dragStartSourceIds)===null||n===void 0?void 0:n.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const n=this.rootElement;if(n!==void 0){if(n.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");n.__isReactDndBackendSetUp=!0,this.addEventListeners(n)}}teardown(){const n=this.rootElement;if(n!==void 0&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(n,r,o){return this.sourcePreviewNodeOptions.set(n,o),this.sourcePreviewNodes.set(n,r),()=>{this.sourcePreviewNodes.delete(n),this.sourcePreviewNodeOptions.delete(n)}}connectDragSource(n,r,o){this.sourceNodes.set(n,r),this.sourceNodeOptions.set(n,o);const s=f=>this.handleDragStart(f,n),l=f=>this.handleSelectStart(f);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",s),r.addEventListener("selectstart",l),()=>{this.sourceNodes.delete(n),this.sourceNodeOptions.delete(n),r.removeEventListener("dragstart",s),r.removeEventListener("selectstart",l),r.setAttribute("draggable","false")}}connectDropTarget(n,r){const o=f=>this.handleDragEnter(f,n),s=f=>this.handleDragOver(f,n),l=f=>this.handleDrop(f,n);return r.addEventListener("dragenter",o),r.addEventListener("dragover",s),r.addEventListener("drop",l),()=>{r.removeEventListener("dragenter",o),r.removeEventListener("dragover",s),r.removeEventListener("drop",l)}}addEventListeners(n){n.addEventListener&&(n.addEventListener("dragstart",this.handleTopDragStart),n.addEventListener("dragstart",this.handleTopDragStartCapture,!0),n.addEventListener("dragend",this.handleTopDragEndCapture,!0),n.addEventListener("dragenter",this.handleTopDragEnter),n.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.addEventListener("dragover",this.handleTopDragOver),n.addEventListener("dragover",this.handleTopDragOverCapture,!0),n.addEventListener("drop",this.handleTopDrop),n.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(n){n.removeEventListener&&(n.removeEventListener("dragstart",this.handleTopDragStart),n.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),n.removeEventListener("dragend",this.handleTopDragEndCapture,!0),n.removeEventListener("dragenter",this.handleTopDragEnter),n.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),n.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),n.removeEventListener("dragover",this.handleTopDragOver),n.removeEventListener("dragover",this.handleTopDragOverCapture,!0),n.removeEventListener("drop",this.handleTopDrop),n.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const n=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(n);return Ic({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const n=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(n);return Ic({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const n=this.monitor.getItemType();return Object.keys(_c).some(r=>_c[r]===n)}beginDragNativeItem(n,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=b1(n,r),this.currentNativeHandle=this.registry.addSource(n,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(n){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=n;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var o;return(o=this.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var n;(n=this.window)===null||n===void 0||n.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(n,r){n.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(n,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(n,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(n,r){this.dropTargetIds.unshift(r)}constructor(n,r,o){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=s=>{const l=this.sourceNodes.get(s);return l&&xc(l)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=s=>!!(s&&this.document&&this.document.body&&this.document.body.contains(s)),this.endDragIfSourceWasRemovedFromDOM=()=>{const s=this.currentDragSourceNode;s==null||this.isNodeInDocument(s)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=s=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(s||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=s=>{if(s.defaultPrevented)return;const{dragStartSourceIds:l}=this;this.dragStartSourceIds=null;const f=Fi(s);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(l||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:f});const{dataTransfer:d}=s,p=Go(d);if(this.monitor.isDragging()){if(d&&typeof d.setDragImage=="function"){const S=this.monitor.getSourceId(),w=this.sourceNodes.get(S),O=this.sourcePreviewNodes.get(S)||w;if(O){const{anchorX:y,anchorY:E,offsetX:_,offsetY:I}=this.getCurrentSourcePreviewNodeOptions(),U=T1(w,O,f,{anchorX:y,anchorY:E},{offsetX:_,offsetY:I});d.setDragImage(O,U.x,U.y)}}try{d?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(s.target);const{captureDraggingState:m}=this.getCurrentSourcePreviewNodeOptions();m?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(p)this.beginDragNativeItem(p);else{if(d&&!d.types&&(s.target&&!s.target.hasAttribute||!s.target.hasAttribute("draggable")))return;s.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=s=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var l;(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}if(!this.enterLeaveCounter.enter(s.target)||this.monitor.isDragging())return;const{dataTransfer:d}=s,p=Go(d);p&&this.beginDragNativeItem(p,d)},this.handleTopDragEnter=s=>{const{dragEnterTargetIds:l}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=s.altKey,l.length>0&&this.actions.hover(l,{clientOffset:Fi(s)}),l.some(d=>this.monitor.canDropOnTarget(d))&&(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=s=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var l;(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}},this.handleTopDragOver=s=>{const{dragOverTargetIds:l}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none");return}this.altKeyPressed=s.altKey,this.lastClientOffset=Fi(s),this.scheduleHover(l),(l||[]).some(d=>this.monitor.canDropOnTarget(d))?(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?s.preventDefault():(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=s=>{this.isDraggingNativeItem()&&s.preventDefault(),this.enterLeaveCounter.leave(s.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=s=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var l;s.preventDefault(),(l=this.currentNativeSource)===null||l===void 0||l.loadDataTransfer(s.dataTransfer)}else Go(s.dataTransfer)&&s.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=s=>{const{dropTargetIds:l}=this;this.dropTargetIds=[],this.actions.hover(l,{clientOffset:Fi(s)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=s=>{const l=s.target;typeof l.dragDrop=="function"&&(l.tagName==="INPUT"||l.tagName==="SELECT"||l.tagName==="TEXTAREA"||l.isContentEditable||(s.preventDefault(),l.dragDrop()))},this.options=new x1(r,o),this.actions=n.getActions(),this.monitor=n.getMonitor(),this.registry=n.getRegistry(),this.enterLeaveCounter=new m1(this.isNodeInDocument)}}const D1=function(n,r,o){return new O1(n,r,o)};function A1({layoutId:i,justBranch:n,isFullScreenView:r}){const o=Lt(i),s=()=>{console.log("closeAllTabs justBranch",n),o.removeAllTabs({branch:n})},l=async(f=!1)=>{r?o.setLayout(null):(o.setFullScreenLayoutByBranch(n),o.setFullScreenHideTitle(f))};return $.jsxs($.Fragment,{children:[$.jsxs(wi,{className:"just-menu-item",onClick:()=>s(),children:[$.jsx("div",{className:"just-icon"}),$.jsx("div",{className:"just-title",children:"Close All"}),$.jsx("div",{className:"just-icon"})]}),$.jsxs(wi,{className:"just-menu-item",onClick:()=>l(!0),children:[$.jsx("div",{className:"just-icon",children:$.jsx(Vn,{icon:f1})}),$.jsx("div",{className:"just-title",children:r?"F11":"Full"}),$.jsx("div",{className:"just-icon"})]})]})}const Oc=Bt(A1);function C1({layoutId:i,isFullScreenView:n,dndAccept:r,justBranch:o,justStack:s,getWinInfo:l,getTabMenu:f}){const d=A.useRef(null),[p,m]=A.useState(null),S=Lt(i),w=I=>{S.removeWin({justId:I})},O=I=>{S.activeWin({justId:I})},y=(I,C)=>{S.moveWin({pos:"stack",justId:C.justId,branch:o,index:C.index??-1})},[{isOver:E},_]=Ga(()=>({accept:r,collect:I=>({isOver:I.isOver()}),drop(I,C){y(C.getItemType(),C.getItem())},hover(I,C){d.current&&(I.index=-1)}}),[s]);return A.useLayoutEffect(()=>{d.current&&_(d)},[_]),A.useEffect(()=>{if(d.current===null)return;function I(){if(d.current===null)return;const F=d.current.getBoundingClientRect()??null;m(F)}I();const C=new ResizeObserver(I);return C.observe(d.current),window.addEventListener("scroll",I,!0),()=>{C.disconnect(),window.removeEventListener("scroll",I,!0)}},[]),$.jsxs("div",{className:Et("just-win-title"),tabIndex:1,children:[$.jsx("div",{className:Et("just-title-list",{"is-over":E}),ref:d,children:s.tabs.map(I=>$.jsx(vc,{layoutId:i,isFullScreenView:n,dndAccept:r,rect:p,justId:I,justBranch:o,justStack:s,winInfo:l(I)},[...o,ge.toString(I)].join(",")))}),$.jsxs("div",{className:"just-title-menus",children:[$.jsx(Sl,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(Vn,{icon:d1})}),children:s.tabs.map(I=>$.jsxs(wi,{className:Et("just-menu-item",{active:ge.isEquals(s.active,I)}),children:[$.jsx("div",{className:"just-icon",onClick:()=>O(I),children:l(I).getTabIcon(I,i)}),$.jsx("div",{className:"just-title",onClick:()=>O(I),children:S.getTabTitle(I)??I.title}),$.jsx("div",{className:"just-icon just-close",onClick:C=>{C.stopPropagation(),w(I)},children:$.jsx(Vn,{icon:gc})})]},ge.toString(I)))}),$.jsx(Sl,{menuButton:$.jsx("div",{className:"just-title-menu",children:$.jsx(Vn,{icon:c1})}),children:f?f(i,o,s,n):$.jsx(Oc,{layoutId:i,justBranch:o,justStack:s,isFullScreenView:n})})]})]})}const Dc=Bt(C1);function N1(i){const n=A.useRef(null),{layoutId:r,dndAccept:o,getWinInfo:s,justBranch:l,justStack:f}=i,[d,p]=A.useState(null),m=Lt(r),S=(y,E)=>{E.pos&&(E.pos==="stack"?m.moveWin({pos:E.pos,justId:E.justId,branch:l,index:E.index??-1}):m.moveWin({pos:E.pos,justId:E.justId,branch:l,direction:E.direction??"row"}))},[{isOver:w},O]=Ga(()=>({accept:o,collect:y=>({isOver:y.isOver()}),drop(y,E){n.current&&S(E.getItemType(),E.getItem())},hover(y,E){if(!n.current)return;const _=n.current.getBoundingClientRect(),I=E.getClientOffset(),C=(_.right-_.left)/2,F=(_.bottom-_.top)/2,U=I.x-_.left,V=I.y-_.top,B=U-C,ue=V-F,N=Math.abs(B*100/C),L=Math.abs(ue*100/F);if(N<60&&L<60){y.pos="stack";const j={top:_.top,left:_.left,width:_.width,height:_.height};p(j)}else{const j=N>L?"row":"column",Y=Math.sign(j==="row"?B:ue)>0?"second":"first";y.direction=j,y.pos=Y;const ae={top:Y==="second"&&j==="column"?_.top+_.height/2:_.top,left:Y==="second"&&j==="row"?_.left+_.width/2:_.left,width:j==="row"?_.width/2:_.width,height:j==="column"?_.height/2:_.height};p(ae)}}}),[f]);return A.useLayoutEffect(()=>{n.current&&O(n)},[O]),$.jsxs("div",{className:Et("just-win-body",{isOver:w,"last-active":ge.isEquals(f.active,m.lastActiveId)}),ref:n,children:[f.tabs.map(y=>$.jsx(A.Activity,{mode:ge.isEquals(f.active,y)?"visible":"hidden",children:s(y).getView(y,r)},ge.toString(y))),w&&d!=null&&$.jsx("div",{className:"just-overlay",style:{top:d.top,left:d.left,width:`${d.width}px`,height:`${d.height}px`}})]})}const Ac=Bt(N1);function P1({layoutId:i,isFullScreenView:n,hideTitle:r,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f,getTabMenu:d}){const p=Lt(i),m=p.fullScreenHideTitle,S=r!==!0,w=()=>{l.active&&p.activeWin({justId:l.active})};return $.jsxs("div",{className:"just-win",onFocusCapture:w,tabIndex:1,children:[S&&!m&&$.jsx(Dc,{layoutId:i,isFullScreenView:n,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f,getTabMenu:d}),$.jsx(Ac,{layoutId:i,dndAccept:o,justBranch:s,justStack:l,getWinInfo:f})]})}const Cc=Bt(P1);var Yo,Nc;function Jo(){if(Nc)return Yo;Nc=1;function i(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}return Yo=i,Yo}var Vo,Pc;function L1(){if(Pc)return Vo;Pc=1;var i=typeof nn=="object"&&nn&&nn.Object===Object&&nn;return Vo=i,Vo}var Xo,Lc;function Mc(){if(Lc)return Xo;Lc=1;var i=L1(),n=typeof self=="object"&&self&&self.Object===Object&&self,r=i||n||Function("return this")();return Xo=r,Xo}var Ko,kc;function M1(){if(kc)return Ko;kc=1;var i=Mc(),n=function(){return i.Date.now()};return Ko=n,Ko}var Zo,Fc;function k1(){if(Fc)return Zo;Fc=1;var i=/\s/;function n(r){for(var o=r.length;o--&&i.test(r.charAt(o)););return o}return Zo=n,Zo}var Qo,Rc;function F1(){if(Rc)return Qo;Rc=1;var i=k1(),n=/^\s+/;function r(o){return o&&o.slice(0,i(o)+1).replace(n,"")}return Qo=r,Qo}var es,Wc;function Bc(){if(Wc)return es;Wc=1;var i=Mc(),n=i.Symbol;return es=n,es}var ts,$c;function R1(){if($c)return ts;$c=1;var i=Bc(),n=Object.prototype,r=n.hasOwnProperty,o=n.toString,s=i?i.toStringTag:void 0;function l(f){var d=r.call(f,s),p=f[s];try{f[s]=void 0;var m=!0}catch{}var S=o.call(f);return m&&(d?f[s]=p:delete f[s]),S}return ts=l,ts}var ns,Uc;function W1(){if(Uc)return ns;Uc=1;var i=Object.prototype,n=i.toString;function r(o){return n.call(o)}return ns=r,ns}var rs,Hc;function B1(){if(Hc)return rs;Hc=1;var i=Bc(),n=R1(),r=W1(),o="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;function f(d){return d==null?d===void 0?s:o:l&&l in Object(d)?n(d):r(d)}return rs=f,rs}var is,zc;function $1(){if(zc)return is;zc=1;function i(n){return n!=null&&typeof n=="object"}return is=i,is}var as,jc;function U1(){if(jc)return as;jc=1;var i=B1(),n=$1(),r="[object Symbol]";function o(s){return typeof s=="symbol"||n(s)&&i(s)==r}return as=o,as}var os,qc;function Gc(){if(qc)return os;qc=1;var i=F1(),n=Jo(),r=U1(),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt;function p(m){if(typeof m=="number")return m;if(r(m))return o;if(n(m)){var S=typeof m.valueOf=="function"?m.valueOf():m;m=n(S)?S+"":S}if(typeof m!="string")return m===0?m:+m;m=i(m);var w=l.test(m);return w||f.test(m)?d(m.slice(2),w?2:8):s.test(m)?o:+m}return os=p,os}var ss,Yc;function H1(){if(Yc)return ss;Yc=1;var i=Jo(),n=M1(),r=Gc(),o="Expected a function",s=Math.max,l=Math.min;function f(d,p,m){var S,w,O,y,E,_,I=0,C=!1,F=!1,U=!0;if(typeof d!="function")throw new TypeError(o);p=r(p)||0,i(m)&&(C=!!m.leading,F="maxWait"in m,O=F?s(r(m.maxWait)||0,p):O,U="trailing"in m?!!m.trailing:U);function V(X){var We=S,Je=w;return S=w=void 0,I=X,y=d.apply(Je,We),y}function B(X){return I=X,E=setTimeout(L,p),C?V(X):y}function ue(X){var We=X-_,Je=X-I,Ve=p-We;return F?l(Ve,O-Je):Ve}function N(X){var We=X-_,Je=X-I;return _===void 0||We>=p||We<0||F&&Je>=O}function L(){var X=n();if(N(X))return j(X);E=setTimeout(L,ue(X))}function j(X){return E=void 0,U&&S?V(X):(S=w=void 0,y)}function ee(){E!==void 0&&clearTimeout(E),I=0,S=_=w=E=void 0}function Y(){return E===void 0?y:j(n())}function ae(){var X=n(),We=N(X);if(S=arguments,w=this,_=X,We){if(E===void 0)return B(_);if(F)return clearTimeout(E),E=setTimeout(L,p),V(_)}return E===void 0&&(E=setTimeout(L,p)),y}return ae.cancel=ee,ae.flush=Y,ae}return ss=f,ss}var us,Jc;function z1(){if(Jc)return us;Jc=1;var i=H1(),n=Jo(),r="Expected a function";function o(s,l,f){var d=!0,p=!0;if(typeof s!="function")throw new TypeError(r);return n(f)&&(d="leading"in f?!!f.leading:d,p="trailing"in f?!!f.trailing:p),i(s,l,{leading:d,maxWait:l,trailing:p})}return us=o,us}var j1=z1();const q1=br(j1);var ls,Vc;function G1(){if(Vc)return ls;Vc=1;function i(n,r,o){return n===n&&(o!==void 0&&(n=n<=o?n:o),r!==void 0&&(n=n>=r?n:r)),n}return ls=i,ls}var fs,Xc;function Y1(){if(Xc)return fs;Xc=1;var i=G1(),n=Gc();function r(o,s,l){return l===void 0&&(l=s,s=void 0),l!==void 0&&(l=n(l),l=l===l?l:0),s!==void 0&&(s=n(s),s=s===s?s:0),i(n(o),s,l)}return fs=r,fs}var J1=Y1();const cs=br(J1),V1=1e3/30;function X1({node:i,containerRef:n,onChange:r,onRelease:o}){const s=A.useRef(null),[l,f]=A.useState(!1),d=()=>{l||(s.current.ownerDocument.addEventListener("mousemove",w,!0),s.current.ownerDocument.addEventListener("mouseup",S,!0),f(!0))},p=()=>{s.current&&(s.current.ownerDocument.removeEventListener("mousemove",w,!0),s.current.ownerDocument.removeEventListener("mouseup",S,!0),f(!1))},m=E=>{E.button===0&&(E.preventDefault(),d())},S=E=>{if(p(),n==null)return;const _=O(E,i,n);_!==null&&o(_)},w=E=>{E.preventDefault(),n!=null&&y(E,i,n)},O=(E,_,I)=>{if(I.current==null)return null;const C=I.current.getBoundingClientRect(),F=_.direction==="row"?E.clientX:E.clientY,U=_.direction==="row"?C.left:C.top,V=_.direction==="row"?C.width:C.height,B=cs(F-U,0,V),ue=cs(V-B,0,V),N=cs(B*100/V,0,100);return _.type==="split-percentage"?{type:_.type,size:N}:_.type==="split-pixels"?_.primary==="first"?{type:"split-pixels",primary:"first",size:B}:{type:"split-pixels",primary:"second",size:ue}:null},y=q1((E,_,I)=>{if(I.current==null)return null;const C=O(E,_,I);C!==null&&r(C)},V1);return A.useEffect(()=>{}),$.jsx("div",{ref:s,className:Et("just-splitter"),onMouseDown:m})}const Kc=Bt(X1);function ds({layoutId:i,isFullScreenView:n,hideTitle:r,dndAccept:o,node:s,justBranch:l,getWinInfo:f,getTabMenu:d}){const p=A.useRef(null),m=Lt(i),S=({size:O})=>{m.updateResize({branch:l,size:O})},w=(O,y)=>O.type==="split-percentage"&&y==="first"?{flexBasis:`calc(${O.size}% - 3px)`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}%`}:O.type==="split-pixels"&&y===O.primary?{flexBasis:`${O.size}px`,[O.direction==="row"?"minWidth":"minHeight"]:`${O.minSize??0}px`}:{};return $.jsxs("div",{ref:p,className:Et("just-node"),children:[s?.type==="stack"&&$.jsx(Cc,{hideTitle:s.hideTitle??r,layoutId:i,isFullScreenView:n,dndAccept:s.dndAccept??o,justStack:s,justBranch:l,getWinInfo:f,getTabMenu:d}),(s?.type==="split-percentage"||s?.type==="split-pixels")&&$.jsxs("div",{className:Et(s.type,{"just-column":s.direction==="column","just-row":s.direction==="row"}),children:[$.jsx(A.Activity,{mode:s.type==="split-pixels"&&s.primary==="first"&&s.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:Et("just-first",{"just-primary":s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first","just-secondary":!(s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first")}),style:w(s,"first"),children:$.jsx(ds,{layoutId:i,isFullScreenView:n,hideTitle:s.hideTitle??r,dndAccept:s.dndAccept??o,node:s.first,justBranch:[...l,"first"],getWinInfo:f,getTabMenu:d})})}),!(s.type==="split-pixels"&&(s.noSplitter===!0||s.primaryHide===!0))&&$.jsx(Kc,{layoutId:i,node:s,justBranch:l,containerRef:p,onChange:S,onRelease:S}),$.jsx(A.Activity,{mode:s.type==="split-pixels"&&s.primary==="second"&&s.primaryHide===!0?"hidden":"visible",children:$.jsx("div",{className:Et("just-second",{"just-primary":!(s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first"),"just-secondary":s.type==="split-percentage"||s.type==="split-pixels"&&s.primary==="first"}),style:w(s,"second"),children:$.jsx(ds,{layoutId:i,isFullScreenView:n,hideTitle:s.hideTitle??r,dndAccept:s.dndAccept??o,node:s.second,justBranch:[...l,"second"],getWinInfo:f,getTabMenu:d})})})]},`JustNode-${l.join(",")}`)]})}const hs=Bt(ds);function K1({layoutId:i,getWinInfo:n,getTabMenu:r,initialValue:o}){const s=`${i}_FULLSCREEN`,l=Lt(i),f=Lt(s);return A.useEffect(()=>{f.layout===null&&(l.setFullScreenLayoutByBranch(null),l.setFullScreenHideTitle(!1))},[f.layout]),A.useEffect(()=>{l.setLayout(o),l.setFullScreenLayoutByBranch(null),f.setLayout(null)},[]),A.useEffect(()=>{const d=()=>{},p=async m=>{m.key==="Escape"?(console.log("esc"),l.setFullScreenLayoutByBranch(null)):m.key==="F11"&&(console.log("F11"),l.fullScreenLayout!==null&&l.setFullScreenLayoutByBranch(null)),m.altKey&&(m.key==="ArrowRight"?f.layout!==null?f.activeNextWin():l.activeNextWin():m.key==="ArrowLeft"&&(f.layout!==null?f.activePrevWin():l.activePrevWin()))};return window.addEventListener("keydown",p),document.addEventListener("fullscreenchange",d),()=>{window.removeEventListener("keydown",p),document.removeEventListener("fullscreenchange",d)}},[]),A.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",l.fullScreenLayout),f.setLayout(l.fullScreenLayout),l.lastActiveId&&f.activeWin({justId:l.lastActiveId})},[l.fullScreenLayout]),A.useEffect(()=>{f.setFullScreenHideTitle(l.fullScreenHideTitle)},[l.fullScreenHideTitle]),$.jsx(nv,{backend:D1,children:$.jsxs("div",{className:Et("just-layout"),children:[l.fullScreenLayout===null&&$.jsx(hs,{layoutId:i,isFullScreenView:!1,hideTitle:l.layout?.hideTitle,dndAccept:l.layout?.dndAccept??[],node:l.layout,justBranch:[],getWinInfo:n,getTabMenu:r}),l.fullScreenLayout!==null&&$.jsx(hs,{layoutId:s,isFullScreenView:!0,hideTitle:l.layout?.hideTitle,dndAccept:l.layout?.dndAccept??[],node:f.layout,justBranch:[],getWinInfo:n,getTabMenu:r})]})})}const Z1=Bt(K1);he.JUST_LAYOUT_TYPES=Wt,he.JustDraggableTitle=vc,he.JustLayoutView=Z1,he.JustNodeView=hs,he.JustSplitter=Kc,he.JustTabMenu=Oc,he.JustTabTitle=pc,he.JustUtil=ge,he.JustWinBodyView=Ac,he.JustWinTitleView=Dc,he.JustWinView=Cc,he.justLayoutModule=kg,he.stableStringify=Pu,he.useJustLayoutStore=Lt,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})}));
|