@ws-ui/store 0.1.10 → 0.1.11
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.cjs.js +48 -76
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5891 -6606
- package/dist/index.es.js.map +1 -1
- package/dist/modules/modals/reducer.d.ts +3 -2
- package/dist/modules/modals/thunks.d.ts +1 -1
- package/dist/modules/modals/types.d.ts +1 -59
- package/dist/selectors/modals.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,122 +1,94 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@ws-ui/shared"),dt=require("react"),ZE=require("react-dom");function rt(e){for(var n=arguments.length,t=Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=iS[e],i=s?typeof s=="function"?s.apply(null,t):s:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vr(e){return!!e&&!!e[xe]}function Sr(e){var n;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===uS}(e)||Array.isArray(e)||!!e[Va]||!!(!((n=e.constructor)===null||n===void 0)&&n[Va])||Ps(e)||Ds(e))}function Kr(e,n,t){t===void 0&&(t=!1),gn(e)===0?(t?Object.keys:ia)(e).forEach(function(a){t&&typeof a=="symbol"||n(a,e[a],e)}):e.forEach(function(a,s){return n(s,a,e)})}function gn(e){var n=e[xe];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:Ps(e)?2:Ds(e)?3:0}function pn(e,n){return gn(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function os(e,n){return gn(e)===2?e.get(n):e[n]}function Qp(e,n,t){var a=gn(e);a===2?e.set(n,t):a===3?e.add(t):e[n]=t}function eh(e,n){return e===n?e!==0||1/e==1/n:e!=e&&n!=n}function Ps(e){return oS&&e instanceof Map}function Ds(e){return sS&&e instanceof Set}function yt(e){return e.o||e.t}function yc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var n=th(e);delete n[xe];for(var t=ia(n),a=0;a<t.length;a++){var s=t[a],i=n[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),n)}function mc(e,n){return n===void 0&&(n=!1),bc(e)||Vr(e)||!Sr(e)||(gn(e)>1&&(e.set=e.add=e.clear=e.delete=QE),Object.freeze(e),n&&Kr(e,function(t,a){return mc(a,!0)},!0)),e}function QE(){rt(2)}function bc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var n=Hu[e];return n||rt(18,e),n}function _c(e,n){Hu[e]||(Hu[e]=n)}function eo(){return process.env.NODE_ENV==="production"||da||rt(0),da}function cu(e,n){n&&(Rr("Patches"),e.u=[],e.s=[],e.v=n)}function ds(e){Uu(e),e.p.forEach(eS),e.p=null}function Uu(e){e===da&&(da=e.l)}function Fd(e){return da={p:[],l:da,h:e,m:!0,_:0}}function eS(e){var n=e[xe];n.i===0||n.i===1?n.j():n.g=!0}function lu(e,n){n._=n.p.length;var t=n.p[0],a=e!==void 0&&e!==t;return n.h.O||Rr("ES5").S(n,e,a),a?(t[xe].P&&(ds(n),rt(4)),Sr(e)&&(e=ps(n,e),n.l||hs(n,e)),n.u&&Rr("Patches").M(t[xe].t,e,n.u,n.s)):e=ps(n,t,[]),ds(n),n.u&&n.v(n.u,n.s),e!==Sc?e:void 0}function ps(e,n,t){if(bc(n))return n;var a=n[xe];if(!a)return Kr(n,function(l,d){return $d(e,a,n,l,d,t)},!0),n;if(a.A!==e)return n;if(!a.P)return hs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=yc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Kr(i,function(l,d){return $d(e,a,s,l,d,t,c)}),hs(e,s,!1),t&&e.u&&Rr("Patches").N(a,t,e.u,e.s)}return a.o}function $d(e,n,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&rt(5),Vr(s)){var l=ps(e,s,i&&n&&n.i!==3&&!pn(n.R,a)?i.concat(a):void 0);if(Qp(t,a,l),!Vr(l))return;e.m=!1}else c&&t.add(s);if(Sr(s)&&!bc(s)){if(!e.h.D&&e._<1)return;ps(e,s),n&&n.A.l||hs(e,s)}}function hs(e,n,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&mc(n,t)}function fu(e,n){var t=e[xe];return(t?yt(t):e)[n]}function Md(e,n){if(n in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,n);if(a)return a;t=Object.getPrototypeOf(t)}}function Ht(e){e.P||(e.P=!0,e.l&&Ht(e.l))}function du(e){e.o||(e.o=yc(e.t))}function to(e,n,t){var a=Ps(n)?Rr("MapSet").F(n,t):Ds(n)?Rr("MapSet").T(n,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:eo(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=ro;c&&(d=[l],p=Ya);var h=Proxy.revocable(d,p),m=h.revoke,_=h.proxy;return l.k=_,l.j=m,_}(n,t):Rr("ES5").J(n,t);return(t?t.A:eo()).p.push(a),a}function tS(e){return Vr(e)||rt(22,e),function n(t){if(!Sr(t))return t;var a,s=t[xe],i=gn(t);if(s){if(!s.P&&(s.i<4||!Rr("ES5").K(s)))return s.t;s.I=!0,a=Nd(t,i),s.I=!1}else a=Nd(t,i);return Kr(a,function(c,l){s&&os(s.t,c)===l||Qp(a,c,n(l))}),i===3?new Set(a):a}(e)}function Nd(e,n){switch(n){case 2:return new Map(e);case 3:return Array.from(e)}return yc(e)}function rS(){function e(c,l){var d=i[c];return d?d.enumerable=l:i[c]=d={configurable:!0,enumerable:l,get:function(){var p=this[xe];return process.env.NODE_ENV!=="production"&&s(p),ro.get(p,c)},set:function(p){var h=this[xe];process.env.NODE_ENV!=="production"&&s(h),ro.set(h,c,p)}},d}function n(c){for(var l=c.length-1;l>=0;l--){var d=c[l][xe];if(!d.P)switch(d.i){case 5:a(d)&&Ht(d);break;case 4:t(d)&&Ht(d)}}}function t(c){for(var l=c.t,d=c.k,p=ia(d),h=p.length-1;h>=0;h--){var m=p[h];if(m!==xe){var _=l[m];if(_===void 0&&!pn(l,m))return!0;var S=d[m],T=S&&S[xe];if(T?T.t!==_:!eh(S,_))return!0}}var C=!!l[xe];return p.length!==ia(l).length+(C?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&rt(3,JSON.stringify(yt(c)))}var i={};_c("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(m,_){if(m){for(var S=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(S,""+T,e(T,!0));return S}var C=th(_);delete C[xe];for(var F=ia(C),D=0;D<F.length;D++){var W=F[D];C[W]=e(W,m||!!C[W].enumerable)}return Object.create(Object.getPrototypeOf(_),C)}(d,c),h={i:d?5:4,A:l?l.A:eo(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,xe,{value:h,writable:!0}),p},S:function(c,l,d){d?Vr(l)&&l[xe].A===c&&n(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var m=h[xe];if(m){var _=m.t,S=m.k,T=m.R,C=m.i;if(C===4)Kr(S,function(j){j!==xe&&(_[j]!==void 0||pn(_,j)?T[j]||p(S[j]):(T[j]=!0,Ht(m)))}),Kr(_,function(j){S[j]!==void 0||pn(S,j)||(T[j]=!1,Ht(m))});else if(C===5){if(a(m)&&(Ht(m),T.length=!0),S.length<_.length)for(var F=S.length;F<_.length;F++)T[F]=!1;else for(var D=_.length;D<S.length;D++)T[D]=!0;for(var W=Math.min(S.length,_.length),$=0;$<W;$++)S.hasOwnProperty($)||(T[$]=!0),T[$]===void 0&&p(S[$])}}}}(c.p[0]),n(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function nS(){function e(a){if(!Sr(a))return a;if(Array.isArray(a))return a.map(e);if(Ps(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(Ds(a))return new Set(Array.from(a).map(e));var s=Object.create(Object.getPrototypeOf(a));for(var i in a)s[i]=e(a[i]);return pn(a,Va)&&(s[Va]=a[Va]),s}function n(a){return Vr(a)?e(a):a}var t="add";_c("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var h=gn(d),m=c[p];typeof m!="string"&&typeof m!="number"&&(m=""+m),h!==0&&h!==1||m!=="__proto__"&&m!=="constructor"||rt(24),typeof d=="function"&&m==="prototype"&&rt(24),typeof(d=os(d,m))!="object"&&rt(15,c.join("/"))}var _=gn(d),S=e(i.value),T=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(T,S);case 3:rt(16);default:return d[T]=S}case t:switch(_){case 1:return T==="-"?d.push(S):d.splice(T,0,S);case 2:return d.set(T,S);case 3:return d.add(S);default:return d[T]=S}case"remove":switch(_){case 1:return d.splice(T,1);case 2:return d.delete(T);case 3:return d.delete(i.value);default:return delete d[T]}default:rt(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,h){var m=l.t,_=l.o;Kr(l.R,function(S,T){var C=os(m,S),F=os(_,S),D=T?pn(m,S)?"replace":t:"remove";if(C!==F||D!=="replace"){var W=d.concat(S);p.push(D==="remove"?{op:D,path:W}:{op:D,path:W,value:F}),h.push(D===t?{op:"remove",path:W}:D==="remove"?{op:t,path:W,value:n(C)}:{op:"replace",path:W,value:n(C)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,h){var m=l.t,_=l.R,S=l.o;if(S.length<m.length){var T=[S,m];m=T[0],S=T[1];var C=[h,p];p=C[0],h=C[1]}for(var F=0;F<m.length;F++)if(_[F]&&S[F]!==m[F]){var D=d.concat([F]);p.push({op:"replace",path:D,value:n(S[F])}),h.push({op:"replace",path:D,value:n(m[F])})}for(var W=m.length;W<S.length;W++){var $=d.concat([W]);p.push({op:t,path:$,value:n(S[W])})}m.length<S.length&&h.push({op:"replace",path:d.concat(["length"]),value:m.length})}(a,s,i,c);case 3:return function(l,d,p,h){var m=l.t,_=l.o,S=0;m.forEach(function(T){if(!_.has(T)){var C=d.concat([S]);p.push({op:"remove",path:C,value:T}),h.unshift({op:t,path:C,value:T})}S++}),S=0,_.forEach(function(T){if(!m.has(T)){var C=d.concat([S]);p.push({op:t,path:C,value:T}),h.unshift({op:"remove",path:C,value:T})}S++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===Sc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function aS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function n(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(Sr(d)){var p=to(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&rt(3,JSON.stringify(yt(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var m in h)h.hasOwnProperty(m)&&(p[m]=h[m])})(l,d)},i=function(){function l(p,h){return this[xe]={i:2,l:h,A:h?h.A:eo(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(l,Map);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return yt(this[xe]).size}}),d.has=function(p){return yt(this[xe]).has(p)},d.set=function(p,h){var m=this[xe];return a(m),yt(m).has(p)&&yt(m).get(p)===h||(n(m),Ht(m),m.R.set(p,!0),m.o.set(p,h),m.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[xe];return a(h),n(h),Ht(h),h.t.has(p)?h.R.set(p,!1):h.R.delete(p),h.o.delete(p),!0},d.clear=function(){var p=this[xe];a(p),yt(p).size&&(n(p),Ht(p),p.R=new Map,Kr(p.t,function(h){p.R.set(h,!1)}),p.o.clear())},d.forEach=function(p,h){var m=this;yt(this[xe]).forEach(function(_,S){p.call(h,m.get(S),S,m)})},d.get=function(p){var h=this[xe];a(h);var m=yt(h).get(p);if(h.I||!Sr(m)||m!==h.t.get(p))return m;var _=to(h.A.h,m,h);return n(h),h.o.set(p,_),_},d.keys=function(){return yt(this[xe]).keys()},d.values=function(){var p,h=this,m=this.keys();return(p={})[Qo]=function(){return h.values()},p.next=function(){var _=m.next();return _.done?_:{done:!1,value:h.get(_.value)}},p},d.entries=function(){var p,h=this,m=this.keys();return(p={})[Qo]=function(){return h.entries()},p.next=function(){var _=m.next();if(_.done)return _;var S=h.get(_.value);return{done:!1,value:[_.value,S]}},p},d[Qo]=function(){return this.entries()},l}(),c=function(){function l(p,h){return this[xe]={i:3,l:h,A:h?h.A:eo(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(l,Set);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return yt(this[xe]).size}}),d.has=function(p){var h=this[xe];return a(h),h.o?!!h.o.has(p)||!(!h.p.has(p)||!h.o.has(h.p.get(p))):h.t.has(p)},d.add=function(p){var h=this[xe];return a(h),this.has(p)||(t(h),Ht(h),h.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[xe];return a(h),t(h),Ht(h),h.o.delete(p)||!!h.p.has(p)&&h.o.delete(h.p.get(p))},d.clear=function(){var p=this[xe];a(p),yt(p).size&&(t(p),Ht(p),p.o.clear())},d.values=function(){var p=this[xe];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[xe];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Qo]=function(){return this.values()},d.forEach=function(p,h){for(var m=this.values(),_=m.next();!_.done;)p.call(h,_.value,_.value,this),_=m.next()},l}();_c("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Ld,da,Ec=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",oS=typeof Map<"u",sS=typeof Set<"u",jd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Ec?Symbol.for("immer-nothing"):((Ld={})["immer-nothing"]=!0,Ld),Va=Ec?Symbol.for("immer-draftable"):"__$immer_draftable",xe=Ec?Symbol.for("immer-state"):"__$immer_state",Qo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",iS={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},uS=""+Object.prototype.constructor,ia=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,th=Object.getOwnPropertyDescriptors||function(e){var n={};return ia(e).forEach(function(t){n[t]=Object.getOwnPropertyDescriptor(e,t)}),n},Hu={},ro={get:function(e,n){if(n===xe)return e;var t=yt(e);if(!pn(t,n))return function(s,i,c){var l,d=Md(i,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,t,n);var a=t[n];return e.I||!Sr(a)?a:a===fu(e.t,n)?(du(e),e.o[n]=to(e.A.h,a,e)):a},has:function(e,n){return n in yt(e)},ownKeys:function(e){return Reflect.ownKeys(yt(e))},set:function(e,n,t){var a=Md(yt(e),n);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=fu(yt(e),n),i=s==null?void 0:s[xe];if(i&&i.t===t)return e.o[n]=t,e.R[n]=!1,!0;if(eh(t,s)&&(t!==void 0||pn(e.t,n)))return!0;du(e),Ht(e)}return e.o[n]===t&&(t!==void 0||n in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[n])||(e.o[n]=t,e.R[n]=!0),!0},deleteProperty:function(e,n){return fu(e.t,n)!==void 0||n in e.t?(e.R[n]=!1,du(e),Ht(e)):delete e.R[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=yt(e),a=Reflect.getOwnPropertyDescriptor(t,n);return a&&{writable:!0,configurable:e.i!==1||n!=="length",enumerable:a.enumerable,value:t[n]}},defineProperty:function(){rt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){rt(12)}},Ya={};Kr(ro,function(e,n){Ya[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),Ya.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&rt(13),Ya.set.call(this,e,n,void 0)},Ya.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&rt(14),ro.set.call(this,e[0],n,t,e[0])};var cS=function(){function e(t){var a=this;this.O=jd,this.D=!0,this.produce=function(s,i,c){if(typeof s=="function"&&typeof i!="function"){var l=i;i=s;var d=a;return function(C){var F=this;C===void 0&&(C=l);for(var D=arguments.length,W=Array(D>1?D-1:0),$=1;$<D;$++)W[$-1]=arguments[$];return d.produce(C,function(j){var A;return(A=i).call.apply(A,[F,j].concat(W))})}}var p;if(typeof i!="function"&&rt(6),c!==void 0&&typeof c!="function"&&rt(7),Sr(s)){var h=Fd(a),m=to(a,s,void 0),_=!0;try{p=i(m),_=!1}finally{_?ds(h):Uu(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return cu(h,c),lu(C,h)},function(C){throw ds(h),C}):(cu(h,c),lu(p,h))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===Sc&&(p=void 0),a.D&&mc(p,!0),c){var S=[],T=[];Rr("Patches").M(s,p,S,T),c(S,T)}return p}rt(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),_=1;_<h;_++)m[_-1]=arguments[_];return a.produceWithPatches(p,function(S){return s.apply(void 0,[S].concat(m))})};var c,l,d=a.produce(s,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var n=e.prototype;return n.createDraft=function(t){Sr(t)||rt(8),Vr(t)&&(t=tS(t));var a=Fd(this),s=to(this,t,void 0);return s[xe].C=!0,Uu(a),s},n.finishDraft=function(t,a){var s=t&&t[xe];process.env.NODE_ENV!=="production"&&(s&&s.C||rt(9),s.I&&rt(10));var i=s.A;return cu(i,a),lu(void 0,i)},n.setAutoFreeze=function(t){this.D=t},n.setUseProxies=function(t){t&&!jd&&rt(20),this.O=t},n.applyPatches=function(t,a){var s;for(s=a.length-1;s>=0;s--){var i=a[s];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}s>-1&&(a=a.slice(s+1));var c=Rr("Patches").$;return Vr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),Qt=new cS,ss=Qt.produce;Qt.produceWithPatches.bind(Qt);Qt.setAutoFreeze.bind(Qt);Qt.setUseProxies.bind(Qt);Qt.applyPatches.bind(Qt);Qt.createDraft.bind(Qt);Qt.finishDraft.bind(Qt);function no(e){"@babel/helpers - typeof";return no=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},no(e)}function lS(e,n){if(no(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,n||"default");if(no(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function fS(e){var n=lS(e,"string");return no(n)==="symbol"?n:String(n)}function dS(e,n,t){return n=fS(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function kd(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Bd(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?kd(Object(t),!0).forEach(function(a){dS(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kd(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Pt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Wd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),pu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ln={INIT:"@@redux/INIT"+pu(),REPLACE:"@@redux/REPLACE"+pu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pu()}};function rh(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function pS(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(vS(e))return"date";if(gS(e))return"error";var t=hS(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function hS(e){return typeof e.constructor=="function"?e.constructor.name:null}function gS(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function vS(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Nn(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=pS(e)),n}function nh(e,n,t){var a;if(typeof n=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Pt(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 t>"u"&&(t=n,n=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(1):"Expected the enhancer to be a function. Instead, received: '"+Nn(t)+"'");return t(nh)(e,n)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(2):"Expected the root reducer to be a function. Instead, received: '"+Nn(e)+"'");var s=e,i=n,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function h(){if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(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 i}function m(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(4):"Expected the listener to be a function. Instead, received: '"+Nn(C)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(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 F=!0;return p(),l.push(C),function(){if(F){if(d)throw new Error(process.env.NODE_ENV==="production"?Pt(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.");F=!1,p();var W=l.indexOf(C);l.splice(W,1),c=null}}}function _(C){if(!rh(C))throw new Error(process.env.NODE_ENV==="production"?Pt(7):"Actions must be plain objects. Instead, the actual type was: '"+Nn(C)+"'. 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 C.type>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(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"?Pt(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,C)}finally{d=!1}for(var F=c=l,D=0;D<F.length;D++){var W=F[D];W()}return C}function S(C){if(typeof C!="function")throw new Error(process.env.NODE_ENV==="production"?Pt(10):"Expected the nextReducer to be a function. Instead, received: '"+Nn(C));s=C,_({type:Ln.REPLACE})}function T(){var C,F=m;return C={subscribe:function(W){if(typeof W!="object"||W===null)throw new Error(process.env.NODE_ENV==="production"?Pt(11):"Expected the observer to be an object. Instead, received: '"+Nn(W)+"'");function $(){W.next&&W.next(h())}$();var j=F($);return{unsubscribe:j}}},C[Wd]=function(){return this},C}return _({type:Ln.INIT}),a={dispatch:_,subscribe:m,getState:h,replaceReducer:S},a[Wd]=T,a}function Ud(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function yS(e,n,t,a){var s=Object.keys(n),i=t&&t.type===Ln.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!rh(e))return"The "+i+' has unexpected type of "'+Nn(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!n.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===Ln.REPLACE)&&c.length>0)return"Unexpected "+(c.length>1?"keys":"key")+" "+('"'+c.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function mS(e){Object.keys(e).forEach(function(n){var t=e[n],a=t(void 0,{type:Ln.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(12):'The slice reducer for key "'+n+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof t(void 0,{type:Ln.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Pt(13):'The slice reducer for key "'+n+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Ln.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function ah(e){for(var n=Object.keys(e),t={},a=0;a<n.length;a++){var s=n[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Ud('No reducer provided for key "'+s+'"'),typeof e[s]=="function"&&(t[s]=e[s])}var i=Object.keys(t),c;process.env.NODE_ENV!=="production"&&(c={});var l;try{mS(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var m=yS(p,t,h,c);m&&Ud(m)}for(var _=!1,S={},T=0;T<i.length;T++){var C=i[T],F=t[C],D=p[C],W=F(D,h);if(typeof W>"u"){var $=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?Pt(14):"When called with an action of type "+($?'"'+String($)+'"':"(unknown type)")+', the slice reducer for key "'+C+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}S[C]=W,_=_||W!==D}return _=_||i.length!==Object.keys(p).length,_?S:p}}function gs(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.length===0?function(a){return a}:n.length===1?n[0]:n.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function bS(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?Pt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=n.map(function(d){return d(c)});return i=gs.apply(void 0,l)(s.dispatch),Bd(Bd({},s),{},{dispatch:i})}}}var vs="NOT_FOUND";function _S(e){var n;return{get:function(a){return n&&e(n.key,a)?n.value:vs},put:function(a,s){n={key:a,value:s}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function ES(e,n){var t=[];function a(l){var d=t.findIndex(function(h){return n(l,h.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return vs}function s(l,d){a(l)===vs&&(t.unshift({key:l,value:d}),t.length>e&&t.pop())}function i(){return t}function c(){t=[]}return{get:a,put:s,getEntries:i,clear:c}}var SS=function(n,t){return n===t};function wS(e){return function(t,a){if(t===null||a===null||t.length!==a.length)return!1;for(var s=t.length,i=0;i<s;i++)if(!e(t[i],a[i]))return!1;return!0}}function TS(e,n){var t=typeof n=="object"?n:{equalityCheck:n},a=t.equalityCheck,s=a===void 0?SS:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=wS(s),p=c===1?_S(d):ES(c,d);function h(){var m=p.get(arguments);if(m===vs){if(m=e.apply(null,arguments),l){var _=p.getEntries(),S=_.find(function(T){return l(T.value,m)});S&&(m=S.value)}p.put(arguments,m)}return m}return h.clearCache=function(){return p.clear()},h}function xS(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every(function(a){return typeof a=="function"})){var t=n.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return n}function CS(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];var s=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var p=0,h,m={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(m=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var S=m,T=S.memoizeOptions,C=T===void 0?t:T,F=Array.isArray(C)?C:[C],D=xS(l),W=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(F)),$=e(function(){for(var A=[],K=D.length,G=0;G<K;G++)A.push(D[G].apply(null,arguments));return h=W.apply(null,A),h});return Object.assign($,{resultFunc:_,memoizedResultFunc:W,dependencies:D,lastResult:function(){return h},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),$};return s}var z=CS(TS);function oh(e){var n=function(a){var s=a.dispatch,i=a.getState;return function(c){return function(l){return typeof l=="function"?l(s,i,e):c(l)}}};return n}var sh=oh();sh.withExtraArgument=oh;const Hd=sh;var OS=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(a[i]=s[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),RS=globalThis&&globalThis.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return d([p,h])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=n.call(e,t)}catch(h){p=[6,h],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ys=globalThis&&globalThis.__spreadArray||function(e,n){for(var t=0,a=n.length,s=e.length;t<a;t++,s++)e[s]=n[t];return e},AS=Object.defineProperty,PS=Object.defineProperties,DS=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,IS=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,qd=function(e,n,t){return n in e?AS(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},hn=function(e,n){for(var t in n||(n={}))IS.call(n,t)&&qd(e,t,n[t]);if(Gd)for(var a=0,s=Gd(n);a<s.length;a++){var t=s[a];FS.call(n,t)&&qd(e,t,n[t])}return e},hu=function(e,n){return PS(e,DS(n))},$S=function(e,n,t){return new Promise(function(a,s){var i=function(d){try{l(t.next(d))}catch(p){s(p)}},c=function(d){try{l(t.throw(d))}catch(p){s(p)}},l=function(d){return d.done?a(d.value):Promise.resolve(d.value).then(i,c)};l((t=t.apply(e,n)).next())})},MS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gs:gs.apply(null,arguments)};function ih(e){if(typeof e!="object"||e===null)return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;for(var t=n;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return n===t}function uh(e,n){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(n+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("@ws-ui/shared"),pt=require("react"),BS=require("react-dom");function Je(e){for(var n=arguments.length,t=Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(process.env.NODE_ENV!=="production"){var s=KS[e],i=s?typeof s=="function"?s.apply(null,t):s:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Mr(e){return!!e&&!!e[ye]}function hr(e){var n;return!!e&&(function(t){if(!t||typeof t!="object")return!1;var a=Object.getPrototypeOf(t);if(a===null)return!0;var s=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===JS}(e)||Array.isArray(e)||!!e[Ra]||!!(!((n=e.constructor)===null||n===void 0)&&n[Ra])||ys(e)||bs(e))}function Lr(e,n,t){t===void 0&&(t=!1),rn(e)===0?(t?Object.keys:Hn)(e).forEach(function(a){t&&typeof a=="symbol"||n(a,e[a],e)}):e.forEach(function(a,s){return n(s,a,e)})}function rn(e){var n=e[ye];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:ys(e)?2:bs(e)?3:0}function en(e,n){return rn(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function zo(e,n){return rn(e)===2?e.get(n):e[n]}function Up(e,n,t){var a=rn(e);a===2?e.set(n,t):a===3?e.add(t):e[n]=t}function Hp(e,n){return e===n?e!==0||1/e==1/n:e!=e&&n!=n}function ys(e){return zS&&e instanceof Map}function bs(e){return VS&&e instanceof Set}function ft(e){return e.o||e.t}function fc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var n=Gp(e);delete n[ye];for(var t=Hn(n),a=0;a<t.length;a++){var s=t[a],i=n[s];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),n)}function dc(e,n){return n===void 0&&(n=!1),pc(e)||Mr(e)||!hr(e)||(rn(e)>1&&(e.set=e.add=e.clear=e.delete=WS),Object.freeze(e),n&&Lr(e,function(t,a){return dc(a,!0)},!0)),e}function WS(){Je(2)}function pc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function br(e){var n=ku[e];return n||Je(18,e),n}function hc(e,n){ku[e]||(ku[e]=n)}function Fa(){return process.env.NODE_ENV==="production"||Vn||Je(0),Vn}function ou(e,n){n&&(br("Patches"),e.u=[],e.s=[],e.v=n)}function es(e){Nu(e),e.p.forEach(US),e.p=null}function Nu(e){e===Vn&&(Vn=e.l)}function xd(e){return Vn={p:[],l:Vn,h:e,m:!0,_:0}}function US(e){var n=e[ye];n.i===0||n.i===1?n.j():n.g=!0}function su(e,n){n._=n.p.length;var t=n.p[0],a=e!==void 0&&e!==t;return n.h.O||br("ES5").S(n,e,a),a?(t[ye].P&&(es(n),Je(4)),hr(e)&&(e=ts(n,e),n.l||rs(n,e)),n.u&&br("Patches").M(t[ye].t,e,n.u,n.s)):e=ts(n,t,[]),es(n),n.u&&n.v(n.u,n.s),e!==vc?e:void 0}function ts(e,n,t){if(pc(n))return n;var a=n[ye];if(!a)return Lr(n,function(l,d){return Rd(e,a,n,l,d,t)},!0),n;if(a.A!==e)return n;if(!a.P)return rs(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var s=a.i===4||a.i===5?a.o=fc(a.k):a.o,i=s,c=!1;a.i===3&&(i=new Set(s),s.clear(),c=!0),Lr(i,function(l,d){return Rd(e,a,s,l,d,t,c)}),rs(e,s,!1),t&&e.u&&br("Patches").N(a,t,e.u,e.s)}return a.o}function Rd(e,n,t,a,s,i,c){if(process.env.NODE_ENV!=="production"&&s===t&&Je(5),Mr(s)){var l=ts(e,s,i&&n&&n.i!==3&&!en(n.R,a)?i.concat(a):void 0);if(Up(t,a,l),!Mr(l))return;e.m=!1}else c&&t.add(s);if(hr(s)&&!pc(s)){if(!e.h.D&&e._<1)return;ts(e,s),n&&n.A.l||rs(e,s)}}function rs(e,n,t){t===void 0&&(t=!1),!e.l&&e.h.D&&e.m&&dc(n,t)}function iu(e,n){var t=e[ye];return(t?ft(t):e)[n]}function Od(e,n){if(n in e)for(var t=Object.getPrototypeOf(e);t;){var a=Object.getOwnPropertyDescriptor(t,n);if(a)return a;t=Object.getPrototypeOf(t)}}function Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function uu(e){e.o||(e.o=fc(e.t))}function $a(e,n,t){var a=ys(n)?br("MapSet").F(n,t):bs(n)?br("MapSet").T(n,t):e.O?function(s,i){var c=Array.isArray(s),l={i:c?1:0,A:i?i.A:Fa(),P:!1,I:!1,R:{},l:i,t:s,k:null,o:null,j:null,C:!1},d=l,p=Ma;c&&(d=[l],p=Ca);var h=Proxy.revocable(d,p),y=h.revoke,_=h.proxy;return l.k=_,l.j=y,_}(n,t):br("ES5").J(n,t);return(t?t.A:Fa()).p.push(a),a}function HS(e){return Mr(e)||Je(22,e),function n(t){if(!hr(t))return t;var a,s=t[ye],i=rn(t);if(s){if(!s.P&&(s.i<4||!br("ES5").K(s)))return s.t;s.I=!0,a=Ad(t,i),s.I=!1}else a=Ad(t,i);return Lr(a,function(c,l){s&&zo(s.t,c)===l||Up(a,c,n(l))}),i===3?new Set(a):a}(e)}function Ad(e,n){switch(n){case 2:return new Map(e);case 3:return Array.from(e)}return fc(e)}function GS(){function e(c,l){var d=i[c];return d?d.enumerable=l:i[c]=d={configurable:!0,enumerable:l,get:function(){var p=this[ye];return process.env.NODE_ENV!=="production"&&s(p),Ma.get(p,c)},set:function(p){var h=this[ye];process.env.NODE_ENV!=="production"&&s(h),Ma.set(h,c,p)}},d}function n(c){for(var l=c.length-1;l>=0;l--){var d=c[l][ye];if(!d.P)switch(d.i){case 5:a(d)&&Lt(d);break;case 4:t(d)&&Lt(d)}}}function t(c){for(var l=c.t,d=c.k,p=Hn(d),h=p.length-1;h>=0;h--){var y=p[h];if(y!==ye){var _=l[y];if(_===void 0&&!en(l,y))return!0;var E=d[y],T=E&&E[ye];if(T?T.t!==_:!Hp(E,_))return!0}}var x=!!l[ye];return p.length!==Hn(l).length+(x?0:1)}function a(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function s(c){c.g&&Je(3,JSON.stringify(ft(c)))}var i={};hc("ES5",{J:function(c,l){var d=Array.isArray(c),p=function(y,_){if(y){for(var E=Array(_.length),T=0;T<_.length;T++)Object.defineProperty(E,""+T,e(T,!0));return E}var x=Gp(_);delete x[ye];for(var D=Hn(x),P=0;P<D.length;P++){var j=D[P];x[j]=e(j,y||!!x[j].enumerable)}return Object.create(Object.getPrototypeOf(_),x)}(d,c),h={i:d?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ye,{value:h,writable:!0}),p},S:function(c,l,d){d?Mr(l)&&l[ye].A===c&&n(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var y=h[ye];if(y){var _=y.t,E=y.k,T=y.R,x=y.i;if(x===4)Lr(E,function(k){k!==ye&&(_[k]!==void 0||en(_,k)?T[k]||p(E[k]):(T[k]=!0,Lt(y)))}),Lr(_,function(k){E[k]!==void 0||en(E,k)||(T[k]=!1,Lt(y))});else if(x===5){if(a(y)&&(Lt(y),T.length=!0),E.length<_.length)for(var D=E.length;D<_.length;D++)T[D]=!1;else for(var P=_.length;P<E.length;P++)T[P]=!0;for(var j=Math.min(E.length,_.length),M=0;M<j;M++)E.hasOwnProperty(M)||(T[M]=!0),T[M]===void 0&&p(E[M])}}}}(c.p[0]),n(c.p))},K:function(c){return c.i===4?t(c):a(c)}})}function qS(){function e(a){if(!hr(a))return a;if(Array.isArray(a))return a.map(e);if(ys(a))return new Map(Array.from(a.entries()).map(function(c){return[c[0],e(c[1])]}));if(bs(a))return new Set(Array.from(a).map(e));var s=Object.create(Object.getPrototypeOf(a));for(var i in a)s[i]=e(a[i]);return en(a,Ra)&&(s[Ra]=a[Ra]),s}function n(a){return Mr(a)?e(a):a}var t="add";hc("Patches",{$:function(a,s){return s.forEach(function(i){for(var c=i.path,l=i.op,d=a,p=0;p<c.length-1;p++){var h=rn(d),y=c[p];typeof y!="string"&&typeof y!="number"&&(y=""+y),h!==0&&h!==1||y!=="__proto__"&&y!=="constructor"||Je(24),typeof d=="function"&&y==="prototype"&&Je(24),typeof(d=zo(d,y))!="object"&&Je(15,c.join("/"))}var _=rn(d),E=e(i.value),T=c[c.length-1];switch(l){case"replace":switch(_){case 2:return d.set(T,E);case 3:Je(16);default:return d[T]=E}case t:switch(_){case 1:return T==="-"?d.push(E):d.splice(T,0,E);case 2:return d.set(T,E);case 3:return d.add(E);default:return d[T]=E}case"remove":switch(_){case 1:return d.splice(T,1);case 2:return d.delete(T);case 3:return d.delete(i.value);default:return delete d[T]}default:Je(17,l)}}),a},N:function(a,s,i,c){switch(a.i){case 0:case 4:case 2:return function(l,d,p,h){var y=l.t,_=l.o;Lr(l.R,function(E,T){var x=zo(y,E),D=zo(_,E),P=T?en(y,E)?"replace":t:"remove";if(x!==D||P!=="replace"){var j=d.concat(E);p.push(P==="remove"?{op:P,path:j}:{op:P,path:j,value:D}),h.push(P===t?{op:"remove",path:j}:P==="remove"?{op:t,path:j,value:n(x)}:{op:"replace",path:j,value:n(x)})}})}(a,s,i,c);case 5:case 1:return function(l,d,p,h){var y=l.t,_=l.R,E=l.o;if(E.length<y.length){var T=[E,y];y=T[0],E=T[1];var x=[h,p];p=x[0],h=x[1]}for(var D=0;D<y.length;D++)if(_[D]&&E[D]!==y[D]){var P=d.concat([D]);p.push({op:"replace",path:P,value:n(E[D])}),h.push({op:"replace",path:P,value:n(y[D])})}for(var j=y.length;j<E.length;j++){var M=d.concat([j]);p.push({op:t,path:M,value:n(E[j])})}y.length<E.length&&h.push({op:"replace",path:d.concat(["length"]),value:y.length})}(a,s,i,c);case 3:return function(l,d,p,h){var y=l.t,_=l.o,E=0;y.forEach(function(T){if(!_.has(T)){var x=d.concat([E]);p.push({op:"remove",path:x,value:T}),h.unshift({op:t,path:x,value:T})}E++}),E=0,_.forEach(function(T){if(!y.has(T)){var x=d.concat([E]);p.push({op:t,path:x,value:T}),h.unshift({op:"remove",path:x,value:T})}E++})}(a,s,i,c)}},M:function(a,s,i,c){i.push({op:"replace",path:[],value:s===vc?void 0:s}),c.push({op:"replace",path:[],value:a})}})}function YS(){function e(l,d){function p(){this.constructor=l}s(l,d),l.prototype=(p.prototype=d.prototype,new p)}function n(l){l.o||(l.R=new Map,l.o=new Map(l.t))}function t(l){l.o||(l.o=new Set,l.t.forEach(function(d){if(hr(d)){var p=$a(l.A.h,d,l);l.p.set(d,p),l.o.add(p)}else l.o.add(d)}))}function a(l){l.g&&Je(3,JSON.stringify(ft(l)))}var s=function(l,d){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var y in h)h.hasOwnProperty(y)&&(p[y]=h[y])})(l,d)},i=function(){function l(p,h){return this[ye]={i:2,l:h,A:h?h.A:Fa(),P:!1,I:!1,o:void 0,R:void 0,t:p,k:this,C:!1,g:!1},this}e(l,Map);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return ft(this[ye]).size}}),d.has=function(p){return ft(this[ye]).has(p)},d.set=function(p,h){var y=this[ye];return a(y),ft(y).has(p)&&ft(y).get(p)===h||(n(y),Lt(y),y.R.set(p,!0),y.o.set(p,h),y.R.set(p,!0)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[ye];return a(h),n(h),Lt(h),h.t.has(p)?h.R.set(p,!1):h.R.delete(p),h.o.delete(p),!0},d.clear=function(){var p=this[ye];a(p),ft(p).size&&(n(p),Lt(p),p.R=new Map,Lr(p.t,function(h){p.R.set(h,!1)}),p.o.clear())},d.forEach=function(p,h){var y=this;ft(this[ye]).forEach(function(_,E){p.call(h,y.get(E),E,y)})},d.get=function(p){var h=this[ye];a(h);var y=ft(h).get(p);if(h.I||!hr(y)||y!==h.t.get(p))return y;var _=$a(h.A.h,y,h);return n(h),h.o.set(p,_),_},d.keys=function(){return ft(this[ye]).keys()},d.values=function(){var p,h=this,y=this.keys();return(p={})[Wo]=function(){return h.values()},p.next=function(){var _=y.next();return _.done?_:{done:!1,value:h.get(_.value)}},p},d.entries=function(){var p,h=this,y=this.keys();return(p={})[Wo]=function(){return h.entries()},p.next=function(){var _=y.next();if(_.done)return _;var E=h.get(_.value);return{done:!1,value:[_.value,E]}},p},d[Wo]=function(){return this.entries()},l}(),c=function(){function l(p,h){return this[ye]={i:3,l:h,A:h?h.A:Fa(),P:!1,I:!1,o:void 0,t:p,k:this,p:new Map,g:!1,C:!1},this}e(l,Set);var d=l.prototype;return Object.defineProperty(d,"size",{get:function(){return ft(this[ye]).size}}),d.has=function(p){var h=this[ye];return a(h),h.o?!!h.o.has(p)||!(!h.p.has(p)||!h.o.has(h.p.get(p))):h.t.has(p)},d.add=function(p){var h=this[ye];return a(h),this.has(p)||(t(h),Lt(h),h.o.add(p)),this},d.delete=function(p){if(!this.has(p))return!1;var h=this[ye];return a(h),t(h),Lt(h),h.o.delete(p)||!!h.p.has(p)&&h.o.delete(h.p.get(p))},d.clear=function(){var p=this[ye];a(p),ft(p).size&&(t(p),Lt(p),p.o.clear())},d.values=function(){var p=this[ye];return a(p),t(p),p.o.values()},d.entries=function(){var p=this[ye];return a(p),t(p),p.o.entries()},d.keys=function(){return this.values()},d[Wo]=function(){return this.values()},d.forEach=function(p,h){for(var y=this.values(),_=y.next();!_.done;)p.call(h,_.value,_.value,this),_=y.next()},l}();hc("MapSet",{F:function(l,d){return new i(l,d)},T:function(l,d){return new c(l,d)}})}var Pd,Vn,gc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",zS=typeof Map<"u",VS=typeof Set<"u",Dd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",vc=gc?Symbol.for("immer-nothing"):((Pd={})["immer-nothing"]=!0,Pd),Ra=gc?Symbol.for("immer-draftable"):"__$immer_draftable",ye=gc?Symbol.for("immer-state"):"__$immer_state",Wo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",KS={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},JS=""+Object.prototype.constructor,Hn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gp=Object.getOwnPropertyDescriptors||function(e){var n={};return Hn(e).forEach(function(t){n[t]=Object.getOwnPropertyDescriptor(e,t)}),n},ku={},Ma={get:function(e,n){if(n===ye)return e;var t=ft(e);if(!en(t,n))return function(s,i,c){var l,d=Od(i,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(s.k):void 0}(e,t,n);var a=t[n];return e.I||!hr(a)?a:a===iu(e.t,n)?(uu(e),e.o[n]=$a(e.A.h,a,e)):a},has:function(e,n){return n in ft(e)},ownKeys:function(e){return Reflect.ownKeys(ft(e))},set:function(e,n,t){var a=Od(ft(e),n);if(a!=null&&a.set)return a.set.call(e.k,t),!0;if(!e.P){var s=iu(ft(e),n),i=s==null?void 0:s[ye];if(i&&i.t===t)return e.o[n]=t,e.R[n]=!1,!0;if(Hp(t,s)&&(t!==void 0||en(e.t,n)))return!0;uu(e),Lt(e)}return e.o[n]===t&&(t!==void 0||n in e.o)||Number.isNaN(t)&&Number.isNaN(e.o[n])||(e.o[n]=t,e.R[n]=!0),!0},deleteProperty:function(e,n){return iu(e.t,n)!==void 0||n in e.t?(e.R[n]=!1,uu(e),Lt(e)):delete e.R[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=ft(e),a=Reflect.getOwnPropertyDescriptor(t,n);return a&&{writable:!0,configurable:e.i!==1||n!=="length",enumerable:a.enumerable,value:t[n]}},defineProperty:function(){Je(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Je(12)}},Ca={};Lr(Ma,function(e,n){Ca[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),Ca.deleteProperty=function(e,n){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(n))&&Je(13),Ca.set.call(this,e,n,void 0)},Ca.set=function(e,n,t){return process.env.NODE_ENV!=="production"&&n!=="length"&&isNaN(parseInt(n))&&Je(14),Ma.set.call(this,e[0],n,t,e[0])};var XS=function(){function e(t){var a=this;this.O=Dd,this.D=!0,this.produce=function(s,i,c){if(typeof s=="function"&&typeof i!="function"){var l=i;i=s;var d=a;return function(x){var D=this;x===void 0&&(x=l);for(var P=arguments.length,j=Array(P>1?P-1:0),M=1;M<P;M++)j[M-1]=arguments[M];return d.produce(x,function(k){var O;return(O=i).call.apply(O,[D,k].concat(j))})}}var p;if(typeof i!="function"&&Je(6),c!==void 0&&typeof c!="function"&&Je(7),hr(s)){var h=xd(a),y=$a(a,s,void 0),_=!0;try{p=i(y),_=!1}finally{_?es(h):Nu(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return ou(h,c),su(x,h)},function(x){throw es(h),x}):(ou(h,c),su(p,h))}if(!s||typeof s!="object"){if((p=i(s))===void 0&&(p=s),p===vc&&(p=void 0),a.D&&dc(p,!0),c){var E=[],T=[];br("Patches").M(s,p,E,T),c(E,T)}return p}Je(21,s)},this.produceWithPatches=function(s,i){if(typeof s=="function")return function(p){for(var h=arguments.length,y=Array(h>1?h-1:0),_=1;_<h;_++)y[_-1]=arguments[_];return a.produceWithPatches(p,function(E){return s.apply(void 0,[E].concat(y))})};var c,l,d=a.produce(s,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,c,l]}):[d,c,l]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var n=e.prototype;return n.createDraft=function(t){hr(t)||Je(8),Mr(t)&&(t=HS(t));var a=xd(this),s=$a(this,t,void 0);return s[ye].C=!0,Nu(a),s},n.finishDraft=function(t,a){var s=t&&t[ye];process.env.NODE_ENV!=="production"&&(s&&s.C||Je(9),s.I&&Je(10));var i=s.A;return ou(i,a),su(void 0,i)},n.setAutoFreeze=function(t){this.D=t},n.setUseProxies=function(t){t&&!Dd&&Je(20),this.O=t},n.applyPatches=function(t,a){var s;for(s=a.length-1;s>=0;s--){var i=a[s];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}s>-1&&(a=a.slice(s+1));var c=br("Patches").$;return Mr(t)?c(t,a):this.produce(t,function(l){return c(l,a)})},e}(),Gt=new XS,Vo=Gt.produce;Gt.produceWithPatches.bind(Gt);Gt.setAutoFreeze.bind(Gt);Gt.setUseProxies.bind(Gt);Gt.applyPatches.bind(Gt);Gt.createDraft.bind(Gt);Gt.finishDraft.bind(Gt);function La(e){"@babel/helpers - typeof";return La=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},La(e)}function ZS(e,n){if(La(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,n||"default");if(La(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function QS(e){var n=ZS(e,"string");return La(n)==="symbol"?n:String(n)}function ew(e,n,t){return n=QS(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Id(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Fd(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Id(Object(t),!0).forEach(function(a){ew(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Id(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Ct(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $d=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),cu=function(){return Math.random().toString(36).substring(7).split("").join(".")},En={INIT:"@@redux/INIT"+cu(),REPLACE:"@@redux/REPLACE"+cu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+cu()}};function qp(e){if(typeof e!="object"||e===null)return!1;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function tw(e){if(e===void 0)return"undefined";if(e===null)return"null";var n=typeof e;switch(n){case"boolean":case"string":case"number":case"symbol":case"function":return n}if(Array.isArray(e))return"array";if(aw(e))return"date";if(nw(e))return"error";var t=rw(e);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return n.slice(8,-1).toLowerCase().replace(/\s/g,"")}function rw(e){return typeof e.constructor=="function"?e.constructor.name:null}function nw(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function aw(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function _n(e){var n=typeof e;return process.env.NODE_ENV!=="production"&&(n=tw(e)),n}function Yp(e,n,t){var a;if(typeof n=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ct(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 t>"u"&&(t=n,n=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(1):"Expected the enhancer to be a function. Instead, received: '"+_n(t)+"'");return t(Yp)(e,n)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(2):"Expected the root reducer to be a function. Instead, received: '"+_n(e)+"'");var s=e,i=n,c=[],l=c,d=!1;function p(){l===c&&(l=c.slice())}function h(){if(d)throw new Error(process.env.NODE_ENV==="production"?Ct(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 i}function y(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(4):"Expected the listener to be a function. Instead, received: '"+_n(x)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Ct(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 D=!0;return p(),l.push(x),function(){if(D){if(d)throw new Error(process.env.NODE_ENV==="production"?Ct(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.");D=!1,p();var j=l.indexOf(x);l.splice(j,1),c=null}}}function _(x){if(!qp(x))throw new Error(process.env.NODE_ENV==="production"?Ct(7):"Actions must be plain objects. Instead, the actual type was: '"+_n(x)+"'. 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 x.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(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"?Ct(9):"Reducers may not dispatch actions.");try{d=!0,i=s(i,x)}finally{d=!1}for(var D=c=l,P=0;P<D.length;P++){var j=D[P];j()}return x}function E(x){if(typeof x!="function")throw new Error(process.env.NODE_ENV==="production"?Ct(10):"Expected the nextReducer to be a function. Instead, received: '"+_n(x));s=x,_({type:En.REPLACE})}function T(){var x,D=y;return x={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(process.env.NODE_ENV==="production"?Ct(11):"Expected the observer to be an object. Instead, received: '"+_n(j)+"'");function M(){j.next&&j.next(h())}M();var k=D(M);return{unsubscribe:k}}},x[$d]=function(){return this},x}return _({type:En.INIT}),a={dispatch:_,subscribe:y,getState:h,replaceReducer:E},a[$d]=T,a}function Md(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function ow(e,n,t,a){var s=Object.keys(n),i=t&&t.type===En.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!qp(e))return"The "+i+' has unexpected type of "'+_n(e)+'". Expected argument to be an object with the following '+('keys: "'+s.join('", "')+'"');var c=Object.keys(e).filter(function(l){return!n.hasOwnProperty(l)&&!a[l]});if(c.forEach(function(l){a[l]=!0}),!(t&&t.type===En.REPLACE)&&c.length>0)return"Unexpected "+(c.length>1?"keys":"key")+" "+('"'+c.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+s.join('", "')+'". Unexpected keys will be ignored.')}function sw(e){Object.keys(e).forEach(function(n){var t=e[n],a=t(void 0,{type:En.INIT});if(typeof a>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(12):'The slice reducer for key "'+n+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof t(void 0,{type:En.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Ct(13):'The slice reducer for key "'+n+'" returned undefined when probed with a random type. '+("Don't try to handle '"+En.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function zp(e){for(var n=Object.keys(e),t={},a=0;a<n.length;a++){var s=n[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Md('No reducer provided for key "'+s+'"'),typeof e[s]=="function"&&(t[s]=e[s])}var i=Object.keys(t),c;process.env.NODE_ENV!=="production"&&(c={});var l;try{sw(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(process.env.NODE_ENV!=="production"){var y=ow(p,t,h,c);y&&Md(y)}for(var _=!1,E={},T=0;T<i.length;T++){var x=i[T],D=t[x],P=p[x],j=D(P,h);if(typeof j>"u"){var M=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?Ct(14):"When called with an action of type "+(M?'"'+String(M)+'"':"(unknown type)")+', the slice reducer for key "'+x+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}E[x]=j,_=_||j!==P}return _=_||i.length!==Object.keys(p).length,_?E:p}}function ns(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.length===0?function(a){return a}:n.length===1?n[0]:n.reduce(function(a,s){return function(){return a(s.apply(void 0,arguments))}})}function iw(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(a){return function(){var s=a.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?Ct(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:s.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=n.map(function(d){return d(c)});return i=ns.apply(void 0,l)(s.dispatch),Fd(Fd({},s),{},{dispatch:i})}}}var as="NOT_FOUND";function uw(e){var n;return{get:function(a){return n&&e(n.key,a)?n.value:as},put:function(a,s){n={key:a,value:s}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}}function cw(e,n){var t=[];function a(l){var d=t.findIndex(function(h){return n(l,h.key)});if(d>-1){var p=t[d];return d>0&&(t.splice(d,1),t.unshift(p)),p.value}return as}function s(l,d){a(l)===as&&(t.unshift({key:l,value:d}),t.length>e&&t.pop())}function i(){return t}function c(){t=[]}return{get:a,put:s,getEntries:i,clear:c}}var lw=function(n,t){return n===t};function fw(e){return function(t,a){if(t===null||a===null||t.length!==a.length)return!1;for(var s=t.length,i=0;i<s;i++)if(!e(t[i],a[i]))return!1;return!0}}function dw(e,n){var t=typeof n=="object"?n:{equalityCheck:n},a=t.equalityCheck,s=a===void 0?lw:a,i=t.maxSize,c=i===void 0?1:i,l=t.resultEqualityCheck,d=fw(s),p=c===1?uw(d):cw(c,d);function h(){var y=p.get(arguments);if(y===as){if(y=e.apply(null,arguments),l){var _=p.getEntries(),E=_.find(function(T){return l(T.value,y)});E&&(y=E.value)}p.put(arguments,y)}return y}return h.clearCache=function(){return p.clear()},h}function pw(e){var n=Array.isArray(e[0])?e[0]:e;if(!n.every(function(a){return typeof a=="function"})){var t=n.map(function(a){return typeof a=="function"?"function "+(a.name||"unnamed")+"()":typeof a}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t+"]")}return n}function hw(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];var s=function(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var p=0,h,y={memoizeOptions:void 0},_=l.pop();if(typeof _=="object"&&(y=_,_=l.pop()),typeof _!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof _+"]");var E=y,T=E.memoizeOptions,x=T===void 0?t:T,D=Array.isArray(x)?x:[x],P=pw(l),j=e.apply(void 0,[function(){return p++,_.apply(null,arguments)}].concat(D)),M=e(function(){for(var O=[],z=P.length,H=0;H<z;H++)O.push(P[H].apply(null,arguments));return h=j.apply(null,O),h});return Object.assign(M,{resultFunc:_,memoizedResultFunc:j,dependencies:P,lastResult:function(){return h},recomputations:function(){return p},resetRecomputations:function(){return p=0}}),M};return s}var G=hw(dw);function Vp(e){var n=function(a){var s=a.dispatch,i=a.getState;return function(c){return function(l){return typeof l=="function"?l(s,i,e):c(l)}}};return n}var Kp=Vp();Kp.withExtraArgument=Vp;const Ld=Kp;var gw=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(a[i]=s[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),vw=globalThis&&globalThis.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,s,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return d([p,h])}}function d(p){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,s=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=n.call(e,t)}catch(h){p=[6,h],s=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},os=globalThis&&globalThis.__spreadArray||function(e,n){for(var t=0,a=n.length,s=e.length;t<a;t++,s++)e[s]=n[t];return e},mw=Object.defineProperty,yw=Object.defineProperties,bw=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,Ew=Object.prototype.propertyIsEnumerable,kd=function(e,n,t){return n in e?mw(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t},tn=function(e,n){for(var t in n||(n={}))_w.call(n,t)&&kd(e,t,n[t]);if(Nd)for(var a=0,s=Nd(n);a<s.length;a++){var t=s[a];Ew.call(n,t)&&kd(e,t,n[t])}return e},lu=function(e,n){return yw(e,bw(n))},Sw=function(e,n,t){return new Promise(function(a,s){var i=function(d){try{l(t.next(d))}catch(p){s(p)}},c=function(d){try{l(t.throw(d))}catch(p){s(p)}},l=function(d){return d.done?a(d.value):Promise.resolve(d.value).then(i,c)};l((t=t.apply(e,n)).next())})},ww=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ns:ns.apply(null,arguments)};function Jp(e){if(typeof e!="object"||e===null)return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;for(var t=n;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return n===t}function Xp(e,n){var t=0;return{measureTime:function(a){var s=Date.now();try{return a()}finally{var i=Date.now();t+=i-s}},warnIfExceeded:function(){t>e&&console.warn(n+" took "+t+"ms, which is more than the warning threshold of "+e+`ms.
|
|
2
2
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
3
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
4
|
-
Take a look at the logic that dispatched this action: `,
|
|
3
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Tw=function(e){gw(n,e);function n(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var s=e.apply(this,t)||this;return Object.setPrototypeOf(s,n.prototype),s}return Object.defineProperty(n,Symbol.species,{get:function(){return n},enumerable:!1,configurable:!0}),n.prototype.concat=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return e.prototype.concat.apply(this,t)},n.prototype.prepend=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return t.length===1&&Array.isArray(t[0])?new(n.bind.apply(n,os([void 0],t[0].concat(this)))):new(n.bind.apply(n,os([void 0],t.concat(this))))},n}(Array),Cw=process.env.NODE_ENV==="production",jd="Invariant failed";function Bd(e,n){if(!e)throw Cw?new Error(jd):new Error(jd+": "+(n||""))}function xw(e,n,t,a){return JSON.stringify(e,Rw(n,a),t)}function Rw(e,n){var t=[],a=[];return n||(n=function(s,i){return t[0]===i?"[Circular ~]":"[Circular ~."+a.slice(0,t.indexOf(i)).join(".")+"]"}),function(s,i){if(t.length>0){var c=t.indexOf(this);~c?t.splice(c+1):t.push(this),~c?a.splice(c,1/0,s):a.push(s),~t.indexOf(i)&&(i=n.call(this,s,i))}else t.push(i);return e==null?i:e.call(this,s,i)}}function Ow(e){return typeof e!="object"||e===null||typeof e>"u"||Object.isFrozen(e)}function Aw(e,n,t){var a=Zp(e,n,t);return{detectMutations:function(){return Qp(e,n,a,t)}}}function Zp(e,n,t,a){n===void 0&&(n=[]),a===void 0&&(a="");var s={value:t};if(!e(t)){s.children={};for(var i in t){var c=a?a+"."+i:i;n.length&&n.indexOf(c)!==-1||(s.children[i]=Zp(e,n,t[i],c))}}return s}function Qp(e,n,t,a,s,i){n===void 0&&(n=[]),s===void 0&&(s=!1),i===void 0&&(i="");var c=t?t.value:void 0,l=c===a;if(s&&!l&&!Number.isNaN(a))return{wasMutated:!0,path:i};if(e(c)||e(a))return{wasMutated:!1};var d={};for(var p in t.children)d[p]=!0;for(var p in a)d[p]=!0;for(var p in d){var h=i?i+"."+p:p;if(!(n.length&&n.indexOf(h)!==-1)){var y=Qp(e,n,t.children[p],a[p],l,h);if(y.wasMutated)return y}}return{wasMutated:!1}}function Pw(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(d){return function(p){return d(p)}}};var n=e.isImmutable,t=n===void 0?Ow:n,a=e.ignoredPaths,s=e.warnAfter,i=s===void 0?32:s,c=e.ignore;a=a||c;var l=Aw.bind(null,t,a);return function(d){var p=d.getState,h=p(),y=l(h),_;return function(E){return function(T){var x=Xp(i,"ImmutableStateInvariantMiddleware");x.measureTime(function(){h=p(),_=y.detectMutations(),y=l(h),Bd(!_.wasMutated,"A state mutation was detected between dispatches, in the path '"+(_.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var D=E(T);return x.measureTime(function(){h=p(),_=y.detectMutations(),y=l(h),_.wasMutated&&Bd(!_.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(_.path||"")+". Take a look at the reducer(s) handling the action "+xw(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),x.warnIfExceeded(),D}}}}function eh(e){var n=typeof e;return n==="undefined"||e===null||n==="string"||n==="boolean"||n==="number"||Array.isArray(e)||Jp(e)}function ju(e,n,t,a,s){n===void 0&&(n=""),t===void 0&&(t=eh),s===void 0&&(s=[]);var i;if(!t(e))return{keyPath:n||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var c=a!=null?a(e):Object.entries(e),l=s.length>0,d=0,p=c;d<p.length;d++){var h=p[d],y=h[0],_=h[1],E=n?n+"."+y:y;if(!(l&&s.indexOf(E)>=0)){if(!t(_))return{keyPath:E,value:_};if(typeof _=="object"&&(i=ju(_,E,t,a,s),i))return i}}return!1}function Dw(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(T){return function(x){return T(x)}}};var n=e.isSerializable,t=n===void 0?eh:n,a=e.getEntries,s=e.ignoredActions,i=s===void 0?[]:s,c=e.ignoredActionPaths,l=c===void 0?["meta.arg","meta.baseQueryMeta"]:c,d=e.ignoredPaths,p=d===void 0?[]:d,h=e.warnAfter,y=h===void 0?32:h,_=e.ignoreState,E=_===void 0?!1:_;return function(T){return function(x){return function(D){if(i.length&&i.indexOf(D.type)!==-1)return x(D);var P=Xp(y,"SerializableStateInvariantMiddleware");P.measureTime(function(){var M=ju(D,"",t,a,l);if(M){var k=M.keyPath,O=M.value;console.error("A non-serializable value was detected in an action, in the path: `"+k+"`. Value:",O,`
|
|
4
|
+
Take a look at the logic that dispatched this action: `,D,`
|
|
5
5
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
6
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var
|
|
7
|
-
Take a look at the reducer(s) handling this action type: `+
|
|
8
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),D.warnIfExceeded()),W}}}}function gu(e){return typeof e=="boolean"}function GS(){return function(n){return qS(n)}}function qS(e){e===void 0&&(e={});var n=e.thunk,t=n===void 0?!0:n,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new NS;if(t&&(gu(t)?l.push(Hd):l.push(Hd.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};gu(s)||(d=s),l.unshift(US(d))}if(c){var p={};gu(c)||(p=c),l.push(HS(p))}}return l}var vu=process.env.NODE_ENV==="production";function YS(e){var n=GS(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?n():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,m=t.enhancers,_=m===void 0?void 0:m,S;if(typeof s=="function")S=s;else if(ih(s))S=ah(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(n),!vu&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!vu&&T.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=bS.apply(void 0,T),F=gs;d&&(F=MS(hn({trace:!vu},typeof d=="object"&&d)));var D=[C];Array.isArray(_)?D=ys([C],_):typeof _=="function"&&(D=_(D));var W=F.apply(void 0,D);return nh(S,h,W)}function Ka(e,n){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(n){var i=n.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return hn(hn({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return t.toString=function(){return""+e},t.type=e,t.match=function(a){return a.type===e},t}function dh(e){var n={},t=[],a,s={addCase:function(i,c){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof i=="string"?i:i.type;if(l in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[l]=c,s},addMatcher:function(i,c){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:c}),s},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addDefaultCase` can only be called once");return a=i,s}};return e(s),[n,t,a]}function zS(e){return typeof e=="function"}function VS(e,n,t,a){t===void 0&&(t=[]);var s=typeof n=="function"?dh(n):[n,t,a],i=s[0],c=s[1],l=s[2],d;if(zS(e))d=function(){return ss(e(),function(){})};else{var p=ss(e,function(){});d=function(){return p}}function h(m,_){m===void 0&&(m=d());var S=ys([i[_.type]],c.filter(function(T){var C=T.matcher;return C(_)}).map(function(T){var C=T.reducer;return C}));return S.filter(function(T){return!!T}).length===0&&(S=[l]),S.reduce(function(T,C){if(C)if(Vr(T)){var F=T,D=C(F,_);return typeof D>"u"?T:D}else{if(Sr(T))return ss(T,function(W){return C(W,_)});var D=C(T,_);if(typeof D>"u"){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return D}return T},m)}return h.getInitialState=d,h}function KS(e,n){return e+"/"+n}function lr(e){var n=e.name;if(!n)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:ss(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(h){var m=a[h],_=KS(n,h),S,T;"reducer"in m?(S=m.reducer,T=m.prepare):S=m,i[h]=S,c[_]=S,l[h]=T?Ka(_,T):Ka(_)});function d(){var h=typeof e.extraReducers=="function"?dh(e.extraReducers):[e.extraReducers],m=h[0],_=m===void 0?{}:m,S=h[1],T=S===void 0?[]:S,C=h[2],F=C===void 0?void 0:C,D=hn(hn({},_),c);return VS(t,D,T,F)}var p;return{name:n,reducer:function(h,m){return p||(p=d()),p(h,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var JS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wc=function(e){e===void 0&&(e=21);for(var n="",t=e;t--;)n+=JS[Math.random()*64|0];return n},XS=["name","message","stack","code"],yu=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Vd=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),ZS=function(e){if(typeof e=="object"&&e!==null){for(var n={},t=0,a=XS;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(n[s]=e[s])}return n}return{message:String(e)}};function re(e,n,t){var a=Ka(e+"/fulfilled",function(p,h,m,_){return{payload:p,meta:hu(hn({},_||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),s=Ka(e+"/pending",function(p,h,m){return{payload:void 0,meta:hu(hn({},m||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),i=Ka(e+"/rejected",function(p,h,m,_,S){return{payload:_,error:(t&&t.serializeError||ZS)(p||"Rejected"),meta:hu(hn({},S||{}),{arg:m,requestId:h,rejectedWithValue:!!_,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(h,m,_){var S=t!=null&&t.idGenerator?t.idGenerator(p):wc(),T=new l,C,F=new Promise(function(j,A){return T.signal.addEventListener("abort",function(){return A({name:"AbortError",message:C||"Aborted"})})}),D=!1;function W(j){D&&(C=j,T.abort())}var $=function(){return $S(this,null,function(){var j,A,K,G,Y,ie;return RS(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),G=(j=t==null?void 0:t.condition)==null?void 0:j.call(t,p,{getState:m,extra:_}),ew(G)?[4,G]:[3,2];case 1:G=We.sent(),We.label=2;case 2:if(G===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return D=!0,h(s(S,p,(A=t==null?void 0:t.getPendingMeta)==null?void 0:A.call(t,{requestId:S,arg:p},{getState:m,extra:_}))),[4,Promise.race([F,Promise.resolve(n(p,{dispatch:h,getState:m,extra:_,requestId:S,signal:T.signal,rejectWithValue:function(Re,st){return new yu(Re,st)},fulfillWithValue:function(Re,st){return new Vd(Re,st)}})).then(function(Re){if(Re instanceof yu)throw Re;return Re instanceof Vd?a(Re.payload,S,p,Re.meta):a(Re,S,p)})])];case 3:return K=We.sent(),[3,5];case 4:return Y=We.sent(),K=Y instanceof yu?i(null,S,p,Y.payload,Y.meta):i(Y,S,p),[3,5];case 5:return ie=t&&!t.dispatchConditionRejection&&i.match(K)&&K.meta.condition,ie||h(K),[2,K]}})})}();return Object.assign($,{abort:W,requestId:S,arg:p,unwrap:function(){return $.then(QS)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function QS(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ew(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tw=function(e){return e&&typeof e.match=="function"},rw=function(e,n){return tw(e)?e.match(n):e(n)};function _r(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return e.some(function(a){return rw(a,t)})}}function Tc(e,n){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=n.indexOf(e.meta.requestStatus)>-1;return t&&a}function xc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ph(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["pending"])}:xc(e)?function(t){var a=e.map(function(i){return i.pending}),s=_r.apply(void 0,a);return s(t)}:ph()(e[0])}function hh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["rejected"])}:xc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=_r.apply(void 0,a);return s(t)}:hh()(e[0])}function gh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return Tc(t,["fulfilled"])}:xc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=_r.apply(void 0,a);return s(t)}:gh()(e[0])}rS();var qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nw(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),t}function aw(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var so=aw,ow=typeof qr=="object"&&qr&&qr.Object===Object&&qr,vh=ow,sw=vh,iw=typeof self=="object"&&self&&self.Object===Object&&self,uw=sw||iw||Function("return this")(),Pr=uw,cw=Pr,lw=function(){return cw.Date.now()},fw=lw,dw=/\s/;function pw(e){for(var n=e.length;n--&&dw.test(e.charAt(n)););return n}var hw=pw,gw=hw,vw=/^\s+/;function yw(e){return e&&e.slice(0,gw(e)+1).replace(vw,"")}var mw=yw,bw=Pr,_w=bw.Symbol,Cc=_w,Kd=Cc,yh=Object.prototype,Ew=yh.hasOwnProperty,Sw=yh.toString,Ga=Kd?Kd.toStringTag:void 0;function ww(e){var n=Ew.call(e,Ga),t=e[Ga];try{e[Ga]=void 0;var a=!0}catch{}var s=Sw.call(e);return a&&(n?e[Ga]=t:delete e[Ga]),s}var Tw=ww,xw=Object.prototype,Cw=xw.toString;function Ow(e){return Cw.call(e)}var Rw=Ow,Jd=Cc,Aw=Tw,Pw=Rw,Dw="[object Null]",Iw="[object Undefined]",Xd=Jd?Jd.toStringTag:void 0;function Fw(e){return e==null?e===void 0?Iw:Dw:Xd&&Xd in Object(e)?Aw(e):Pw(e)}var Fs=Fw;function $w(e){return e!=null&&typeof e=="object"}var Oc=$w,Mw=Fs,Nw=Oc,Lw="[object Symbol]";function jw(e){return typeof e=="symbol"||Nw(e)&&Mw(e)==Lw}var kw=jw,Bw=mw,Zd=so,Ww=kw,Qd=0/0,Uw=/^[-+]0x[0-9a-f]+$/i,Hw=/^0b[01]+$/i,Gw=/^0o[0-7]+$/i,qw=parseInt;function Yw(e){if(typeof e=="number")return e;if(Ww(e))return Qd;if(Zd(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Zd(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Bw(e);var t=Hw.test(e);return t||Gw.test(e)?qw(e.slice(2),t?2:8):Uw.test(e)?Qd:+e}var zw=Yw,Vw=so,mu=fw,ep=zw,Kw="Expected a function",Jw=Math.max,Xw=Math.min;function Zw(e,n,t){var a,s,i,c,l,d,p=0,h=!1,m=!1,_=!0;if(typeof e!="function")throw new TypeError(Kw);n=ep(n)||0,Vw(t)&&(h=!!t.leading,m="maxWait"in t,i=m?Jw(ep(t.maxWait)||0,n):i,_="trailing"in t?!!t.trailing:_);function S(K){var G=a,Y=s;return a=s=void 0,p=K,c=e.apply(Y,G),c}function T(K){return p=K,l=setTimeout(D,n),h?S(K):c}function C(K){var G=K-d,Y=K-p,ie=n-G;return m?Xw(ie,i-Y):ie}function F(K){var G=K-d,Y=K-p;return d===void 0||G>=n||G<0||m&&Y>=i}function D(){var K=mu();if(F(K))return W(K);l=setTimeout(D,C(K))}function W(K){return l=void 0,_&&a?S(K):(a=s=void 0,c)}function $(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function j(){return l===void 0?c:W(mu())}function A(){var K=mu(),G=F(K);if(a=arguments,s=this,d=K,G){if(l===void 0)return T(d);if(m)return clearTimeout(l),l=setTimeout(D,n),S(d)}return l===void 0&&(l=setTimeout(D,n)),c}return A.cancel=$,A.flush=j,A}var Qw=Zw,eT=Qw,tT=so,rT="Expected a function";function nT(e,n,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(rT);return tT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),eT(e,n,{leading:a,maxWait:n,trailing:s})}var aT=nT;const oT=Is(aT);var mh=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(mh||{}),Gr=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Gr||{}),ms=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ms||{}),bh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(bh||{});const $s=2e3,Rc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},_h="4DWS_PREFS",Eh=e=>`APP_STATE_${e}`,Sh=()=>{var e,n;return((n=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:n.getBaseID())||""};function wh(e){try{const n=Sh(),t=JSON.stringify(e);localStorage.setItem(Eh(n),t)}catch(n){console.error(n)}}function Th(e){try{const n=JSON.stringify(e);localStorage.setItem(_h,n)}catch(n){console.error(n)}}function xh(){try{const e=localStorage.getItem(_h);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function pa(){const e=Sh(),n=localStorage.getItem(Eh(e));if(n){const t=JSON.parse(n);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Rc}function Ms(e){const{name:n,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case E.FileFolderType.WEBFORM:return`${n}.WebForm`;case E.FileFolderType.METHOD:case E.FileFolderType.CLASS:return s?`${n}.${s}`:n;case E.FileFolderType.ROLES:return n;default:return`${n}.${t}`}}const Ch=e=>{if(!e)return[];const n=new Map;return e.dataClasses.forEach(t=>{var i,c;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((c=a.position)==null?void 0:c.y)||0},dragHandle:".custom-drag-handle",data:t};n.set(t.name,s)}),Array.from(n.values())};function Oh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function Rh(e,n){return{...e,components:Object.entries(e.components||{}).reduce((t,[a,s])=>({...t,[a]:{...s,custom:Object.entries(s.custom).reduce((i,[c,l])=>c===`states:${n}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var h,m;return p.type==="simple-action"?{...p,state:{...p.state,states:(m=(h=p.state)==null?void 0:h.states)==null?void 0:m.filter(_=>_!==n)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==n)}}}function sT(){this.__data__=[],this.size=0}var iT=sT;function uT(e,n){return e===n||e!==e&&n!==n}var cT=uT,lT=cT;function fT(e,n){for(var t=e.length;t--;)if(lT(e[t][0],n))return t;return-1}var Ns=fT,dT=Ns,pT=Array.prototype,hT=pT.splice;function gT(e){var n=this.__data__,t=dT(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():hT.call(n,t,1),--this.size,!0}var vT=gT,yT=Ns;function mT(e){var n=this.__data__,t=yT(n,e);return t<0?void 0:n[t][1]}var bT=mT,_T=Ns;function ET(e){return _T(this.__data__,e)>-1}var ST=ET,wT=Ns;function TT(e,n){var t=this.__data__,a=wT(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}var xT=TT,CT=iT,OT=vT,RT=bT,AT=ST,PT=xT;function ha(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}ha.prototype.clear=CT;ha.prototype.delete=OT;ha.prototype.get=RT;ha.prototype.has=AT;ha.prototype.set=PT;var Ls=ha,DT=Ls;function IT(){this.__data__=new DT,this.size=0}var FT=IT;function $T(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var MT=$T;function NT(e){return this.__data__.get(e)}var LT=NT;function jT(e){return this.__data__.has(e)}var kT=jT,BT=Fs,WT=so,UT="[object AsyncFunction]",HT="[object Function]",GT="[object GeneratorFunction]",qT="[object Proxy]";function YT(e){if(!WT(e))return!1;var n=BT(e);return n==HT||n==GT||n==UT||n==qT}var zT=YT,VT=Pr,KT=VT["__core-js_shared__"],JT=KT,bu=JT,tp=function(){var e=/[^.]+$/.exec(bu&&bu.keys&&bu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function XT(e){return!!tp&&tp in e}var ZT=XT,QT=Function.prototype,ex=QT.toString;function tx(e){if(e!=null){try{return ex.call(e)}catch{}try{return e+""}catch{}}return""}var Ah=tx,rx=zT,nx=ZT,ax=so,ox=Ah,sx=/[\\^$.*+?()[\]{}|]/g,ix=/^\[object .+?Constructor\]$/,ux=Function.prototype,cx=Object.prototype,lx=ux.toString,fx=cx.hasOwnProperty,dx=RegExp("^"+lx.call(fx).replace(sx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function px(e){if(!ax(e)||nx(e))return!1;var n=rx(e)?dx:ix;return n.test(ox(e))}var hx=px;function gx(e,n){return e==null?void 0:e[n]}var vx=gx,yx=hx,mx=vx;function bx(e,n){var t=mx(e,n);return yx(t)?t:void 0}var ga=bx,_x=ga,Ex=Pr,Sx=_x(Ex,"Map"),Ac=Sx,wx=ga,Tx=wx(Object,"create"),js=Tx,rp=js;function xx(){this.__data__=rp?rp(null):{},this.size=0}var Cx=xx;function Ox(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var Rx=Ox,Ax=js,Px="__lodash_hash_undefined__",Dx=Object.prototype,Ix=Dx.hasOwnProperty;function Fx(e){var n=this.__data__;if(Ax){var t=n[e];return t===Px?void 0:t}return Ix.call(n,e)?n[e]:void 0}var $x=Fx,Mx=js,Nx=Object.prototype,Lx=Nx.hasOwnProperty;function jx(e){var n=this.__data__;return Mx?n[e]!==void 0:Lx.call(n,e)}var kx=jx,Bx=js,Wx="__lodash_hash_undefined__";function Ux(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Bx&&n===void 0?Wx:n,this}var Hx=Ux,Gx=Cx,qx=Rx,Yx=$x,zx=kx,Vx=Hx;function va(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}va.prototype.clear=Gx;va.prototype.delete=qx;va.prototype.get=Yx;va.prototype.has=zx;va.prototype.set=Vx;var Kx=va,np=Kx,Jx=Ls,Xx=Ac;function Zx(){this.size=0,this.__data__={hash:new np,map:new(Xx||Jx),string:new np}}var Qx=Zx;function eC(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var tC=eC,rC=tC;function nC(e,n){var t=e.__data__;return rC(n)?t[typeof n=="string"?"string":"hash"]:t.map}var ks=nC,aC=ks;function oC(e){var n=aC(this,e).delete(e);return this.size-=n?1:0,n}var sC=oC,iC=ks;function uC(e){return iC(this,e).get(e)}var cC=uC,lC=ks;function fC(e){return lC(this,e).has(e)}var dC=fC,pC=ks;function hC(e,n){var t=pC(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}var gC=hC,vC=Qx,yC=sC,mC=cC,bC=dC,_C=gC;function ya(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}ya.prototype.clear=vC;ya.prototype.delete=yC;ya.prototype.get=mC;ya.prototype.has=bC;ya.prototype.set=_C;var Ph=ya,EC=Ls,SC=Ac,wC=Ph,TC=200;function xC(e,n){var t=this.__data__;if(t instanceof EC){var a=t.__data__;if(!SC||a.length<TC-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new wC(a)}return t.set(e,n),this.size=t.size,this}var CC=xC,OC=Ls,RC=FT,AC=MT,PC=LT,DC=kT,IC=CC;function io(e){var n=this.__data__=new OC(e);this.size=n.size}io.prototype.clear=RC;io.prototype.delete=AC;io.prototype.get=PC;io.prototype.has=DC;io.prototype.set=IC;var FC="__lodash_hash_undefined__";function $C(e){return this.__data__.set(e,FC),this}var MC=$C;function NC(e){return this.__data__.has(e)}var LC=NC,jC=Ph,kC=MC,BC=LC;function qu(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new jC;++n<t;)this.add(e[n])}qu.prototype.add=qu.prototype.push=kC;qu.prototype.has=BC;var WC=Pr;WC.Uint8Array;var ap=Cc,op=ap?ap.prototype:void 0;op&&op.valueOf;var UC=Fs,HC=Oc,GC="[object Arguments]";function qC(e){return HC(e)&&UC(e)==GC}var YC=qC,sp=YC,zC=Oc,Dh=Object.prototype,VC=Dh.hasOwnProperty,KC=Dh.propertyIsEnumerable;sp(function(){return arguments}());var bs={exports:{}};function JC(){return!1}var XC=JC;bs.exports;(function(e,n){var t=Pr,a=XC,s=n&&!n.nodeType&&n,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(bs,bs.exports);bs.exports;var _s={exports:{}};_s.exports;(function(e,n){var t=vh,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(_s,_s.exports);var ZC=_s.exports,ip=ZC;ip&&ip.isTypedArray;var QC=ga,eO=Pr,tO=QC(eO,"DataView"),rO=tO,nO=ga,aO=Pr,oO=nO(aO,"Promise"),sO=oO,iO=ga,uO=Pr,cO=iO(uO,"Set"),lO=cO,fO=ga,dO=Pr,pO=fO(dO,"WeakMap"),hO=pO,Yu=rO,zu=Ac,Vu=sO,Ku=lO,Ju=hO,Ih=Fs,ma=Ah,up="[object Map]",gO="[object Object]",cp="[object Promise]",lp="[object Set]",fp="[object WeakMap]",dp="[object DataView]",vO=ma(Yu),yO=ma(zu),mO=ma(Vu),bO=ma(Ku),_O=ma(Ju),na=Ih;(Yu&&na(new Yu(new ArrayBuffer(1)))!=dp||zu&&na(new zu)!=up||Vu&&na(Vu.resolve())!=cp||Ku&&na(new Ku)!=lp||Ju&&na(new Ju)!=fp)&&(na=function(e){var n=Ih(e),t=n==gO?e.constructor:void 0,a=t?ma(t):"";if(a)switch(a){case vO:return dp;case yO:return up;case mO:return cp;case bO:return lp;case _O:return fp}return n});const EO="ROOT";aS(),nS();var pp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(pp||(pp={}));var Es={exports:{}};/**
|
|
6
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}});var j=x(D);return E||(P.measureTime(function(){var M=T.getState(),k=ju(M,"",t,a,p);if(k){var O=k.keyPath,z=k.value;console.error("A non-serializable value was detected in the state, in the path: `"+O+"`. Value:",z,`
|
|
7
|
+
Take a look at the reducer(s) handling this action type: `+D.type+`.
|
|
8
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),P.warnIfExceeded()),j}}}}function fu(e){return typeof e=="boolean"}function Iw(){return function(n){return Fw(n)}}function Fw(e){e===void 0&&(e={});var n=e.thunk,t=n===void 0?!0:n,a=e.immutableCheck,s=a===void 0?!0:a,i=e.serializableCheck,c=i===void 0?!0:i,l=new Tw;if(t&&(fu(t)?l.push(Ld):l.push(Ld.withExtraArgument(t.extraArgument))),process.env.NODE_ENV!=="production"){if(s){var d={};fu(s)||(d=s),l.unshift(Pw(d))}if(c){var p={};fu(c)||(p=c),l.push(Dw(p))}}return l}var du=process.env.NODE_ENV==="production";function $w(e){var n=Iw(),t=e||{},a=t.reducer,s=a===void 0?void 0:a,i=t.middleware,c=i===void 0?n():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,y=t.enhancers,_=y===void 0?void 0:y,E;if(typeof s=="function")E=s;else if(Jp(s))E=zp(s);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(n),!du&&!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!du&&T.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=iw.apply(void 0,T),D=ns;d&&(D=ww(tn({trace:!du},typeof d=="object"&&d)));var P=[x];Array.isArray(_)?P=os([x],_):typeof _=="function"&&(P=_(P));var j=D.apply(void 0,P);return Yp(E,h,j)}function Oa(e,n){function t(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(n){var i=n.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return tn(tn({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return t.toString=function(){return""+e},t.type=e,t.match=function(a){return a.type===e},t}function th(e){var n={},t=[],a,s={addCase:function(i,c){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(a)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof i=="string"?i:i.type;if(l in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[l]=c,s},addMatcher:function(i,c){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:c}),s},addDefaultCase:function(i){if(process.env.NODE_ENV!=="production"&&a)throw new Error("`builder.addDefaultCase` can only be called once");return a=i,s}};return e(s),[n,t,a]}function Mw(e){return typeof e=="function"}function Lw(e,n,t,a){t===void 0&&(t=[]);var s=typeof n=="function"?th(n):[n,t,a],i=s[0],c=s[1],l=s[2],d;if(Mw(e))d=function(){return Vo(e(),function(){})};else{var p=Vo(e,function(){});d=function(){return p}}function h(y,_){y===void 0&&(y=d());var E=os([i[_.type]],c.filter(function(T){var x=T.matcher;return x(_)}).map(function(T){var x=T.reducer;return x}));return E.filter(function(T){return!!T}).length===0&&(E=[l]),E.reduce(function(T,x){if(x)if(Mr(T)){var D=T,P=x(D,_);return typeof P>"u"?T:P}else{if(hr(T))return Vo(T,function(j){return x(j,_)});var P=x(T,_);if(typeof P>"u"){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return T},y)}return h.getInitialState=d,h}function Nw(e,n){return e+"/"+n}function nr(e){var n=e.name;if(!n)throw new Error("`name` is a required option for createSlice");var t=typeof e.initialState=="function"?e.initialState:Vo(e.initialState,function(){}),a=e.reducers||{},s=Object.keys(a),i={},c={},l={};s.forEach(function(h){var y=a[h],_=Nw(n,h),E,T;"reducer"in y?(E=y.reducer,T=y.prepare):E=y,i[h]=E,c[_]=E,l[h]=T?Oa(_,T):Oa(_)});function d(){var h=typeof e.extraReducers=="function"?th(e.extraReducers):[e.extraReducers],y=h[0],_=y===void 0?{}:y,E=h[1],T=E===void 0?[]:E,x=h[2],D=x===void 0?void 0:x,P=tn(tn({},_),c);return Lw(t,P,T,D)}var p;return{name:n,reducer:function(h,y){return p||(p=d()),p(h,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var kw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",mc=function(e){e===void 0&&(e=21);for(var n="",t=e;t--;)n+=kw[Math.random()*64|0];return n},jw=["name","message","stack","code"],pu=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Wd=function(){function e(n,t){this.payload=n,this.meta=t}return e}(),Bw=function(e){if(typeof e=="object"&&e!==null){for(var n={},t=0,a=jw;t<a.length;t++){var s=a[t];typeof e[s]=="string"&&(n[s]=e[s])}return n}return{message:String(e)}};function Q(e,n,t){var a=Oa(e+"/fulfilled",function(p,h,y,_){return{payload:p,meta:lu(tn({},_||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),s=Oa(e+"/pending",function(p,h,y){return{payload:void 0,meta:lu(tn({},y||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),i=Oa(e+"/rejected",function(p,h,y,_,E){return{payload:_,error:(t&&t.serializeError||Bw)(p||"Rejected"),meta:lu(tn({},E||{}),{arg:y,requestId:h,rejectedWithValue:!!_,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(c||(c=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(h,y,_){var E=t!=null&&t.idGenerator?t.idGenerator(p):mc(),T=new l,x,D=new Promise(function(k,O){return T.signal.addEventListener("abort",function(){return O({name:"AbortError",message:x||"Aborted"})})}),P=!1;function j(k){P&&(x=k,T.abort())}var M=function(){return Sw(this,null,function(){var k,O,z,H,Y,te;return vw(this,function(We){switch(We.label){case 0:return We.trys.push([0,4,,5]),H=(k=t==null?void 0:t.condition)==null?void 0:k.call(t,p,{getState:y,extra:_}),Uw(H)?[4,H]:[3,2];case 1:H=We.sent(),We.label=2;case 2:if(H===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,h(s(E,p,(O=t==null?void 0:t.getPendingMeta)==null?void 0:O.call(t,{requestId:E,arg:p},{getState:y,extra:_}))),[4,Promise.race([D,Promise.resolve(n(p,{dispatch:h,getState:y,extra:_,requestId:E,signal:T.signal,rejectWithValue:function(Te,st){return new pu(Te,st)},fulfillWithValue:function(Te,st){return new Wd(Te,st)}})).then(function(Te){if(Te instanceof pu)throw Te;return Te instanceof Wd?a(Te.payload,E,p,Te.meta):a(Te,E,p)})])];case 3:return z=We.sent(),[3,5];case 4:return Y=We.sent(),z=Y instanceof pu?i(null,E,p,Y.payload,Y.meta):i(Y,E,p),[3,5];case 5:return te=t&&!t.dispatchConditionRejection&&i.match(z)&&z.meta.condition,te||h(z),[2,z]}})})}();return Object.assign(M,{abort:j,requestId:E,arg:p,unwrap:function(){return M.then(Ww)}})}}return Object.assign(d,{pending:s,rejected:i,fulfilled:a,typePrefix:e})}function Ww(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Uw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Hw=function(e){return e&&typeof e.match=="function"},Gw=function(e,n){return Hw(e)?e.match(n):e(n)};function dr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return e.some(function(a){return Gw(a,t)})}}function yc(e,n){if(!e||!e.meta)return!1;var t=typeof e.meta.requestId=="string",a=n.indexOf(e.meta.requestStatus)>-1;return t&&a}function bc(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function rh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return yc(t,["pending"])}:bc(e)?function(t){var a=e.map(function(i){return i.pending}),s=dr.apply(void 0,a);return s(t)}:rh()(e[0])}function nh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return yc(t,["rejected"])}:bc(e)?function(t){var a=e.map(function(i){return i.rejected}),s=dr.apply(void 0,a);return s(t)}:nh()(e[0])}function ah(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===0?function(t){return yc(t,["fulfilled"])}:bc(e)?function(t){var a=e.map(function(i){return i.fulfilled}),s=dr.apply(void 0,a);return s(t)}:ah()(e[0])}GS();var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qw(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),t}function Yw(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var ja=Yw,zw=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,oh=zw,Vw=oh,Kw=typeof self=="object"&&self&&self.Object===Object&&self,Jw=Vw||Kw||Function("return this")(),Er=Jw,Xw=Er,Zw=function(){return Xw.Date.now()},Qw=Zw,eT=/\s/;function tT(e){for(var n=e.length;n--&&eT.test(e.charAt(n)););return n}var rT=tT,nT=rT,aT=/^\s+/;function oT(e){return e&&e.slice(0,nT(e)+1).replace(aT,"")}var sT=oT,iT=Er,uT=iT.Symbol,_c=uT,Ud=_c,sh=Object.prototype,cT=sh.hasOwnProperty,lT=sh.toString,wa=Ud?Ud.toStringTag:void 0;function fT(e){var n=cT.call(e,wa),t=e[wa];try{e[wa]=void 0;var a=!0}catch{}var s=lT.call(e);return a&&(n?e[wa]=t:delete e[wa]),s}var dT=fT,pT=Object.prototype,hT=pT.toString;function gT(e){return hT.call(e)}var vT=gT,Hd=_c,mT=dT,yT=vT,bT="[object Null]",_T="[object Undefined]",Gd=Hd?Hd.toStringTag:void 0;function ET(e){return e==null?e===void 0?_T:bT:Gd&&Gd in Object(e)?mT(e):yT(e)}var Es=ET;function ST(e){return e!=null&&typeof e=="object"}var Ec=ST,wT=Es,TT=Ec,CT="[object Symbol]";function xT(e){return typeof e=="symbol"||TT(e)&&wT(e)==CT}var RT=xT,OT=sT,qd=ja,AT=RT,Yd=0/0,PT=/^[-+]0x[0-9a-f]+$/i,DT=/^0b[01]+$/i,IT=/^0o[0-7]+$/i,FT=parseInt;function $T(e){if(typeof e=="number")return e;if(AT(e))return Yd;if(qd(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=qd(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=OT(e);var t=DT.test(e);return t||IT.test(e)?FT(e.slice(2),t?2:8):PT.test(e)?Yd:+e}var MT=$T,LT=ja,hu=Qw,zd=MT,NT="Expected a function",kT=Math.max,jT=Math.min;function BT(e,n,t){var a,s,i,c,l,d,p=0,h=!1,y=!1,_=!0;if(typeof e!="function")throw new TypeError(NT);n=zd(n)||0,LT(t)&&(h=!!t.leading,y="maxWait"in t,i=y?kT(zd(t.maxWait)||0,n):i,_="trailing"in t?!!t.trailing:_);function E(z){var H=a,Y=s;return a=s=void 0,p=z,c=e.apply(Y,H),c}function T(z){return p=z,l=setTimeout(P,n),h?E(z):c}function x(z){var H=z-d,Y=z-p,te=n-H;return y?jT(te,i-Y):te}function D(z){var H=z-d,Y=z-p;return d===void 0||H>=n||H<0||y&&Y>=i}function P(){var z=hu();if(D(z))return j(z);l=setTimeout(P,x(z))}function j(z){return l=void 0,_&&a?E(z):(a=s=void 0,c)}function M(){l!==void 0&&clearTimeout(l),p=0,a=d=s=l=void 0}function k(){return l===void 0?c:j(hu())}function O(){var z=hu(),H=D(z);if(a=arguments,s=this,d=z,H){if(l===void 0)return T(d);if(y)return clearTimeout(l),l=setTimeout(P,n),E(d)}return l===void 0&&(l=setTimeout(P,n)),c}return O.cancel=M,O.flush=k,O}var WT=BT,UT=WT,HT=ja,GT="Expected a function";function qT(e,n,t){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(GT);return HT(t)&&(a="leading"in t?!!t.leading:a,s="trailing"in t?!!t.trailing:s),UT(e,n,{leading:a,maxWait:n,trailing:s})}var YT=qT;const zT=_s(YT);var ih=(e=>(e[e.First=0]="First",e[e.Last=-1]="Last",e))(ih||{}),Ir=(e=>(e.ATTACHED="attached",e.DETACHED="detached",e.ERROR="error",e))(Ir||{}),ss=(e=>(e.SOCKET_ERROR="socket-error",e.SOCKET_CLOSURE="socket-closure",e))(ss||{}),uh=(e=>(e.NOT_STARTED="remote debugger not started",e.ALREADY_IN_USE="already in use",e.TIMEOUT="timeout",e))(uh||{});const Ss=2e3,Sc={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Ir.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},ch="4DWS_PREFS",lh=e=>`APP_STATE_${e}`,fh=()=>{var e,n;return((n=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:n.getBaseID())||""};function dh(e){try{const n=fh(),t=JSON.stringify(e);localStorage.setItem(lh(n),t)}catch(n){console.error(n)}}function ph(e){try{const n=JSON.stringify(e);localStorage.setItem(ch,n)}catch(n){console.error(n)}}function hh(){try{const e=localStorage.getItem(ch);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function Kn(){const e=fh(),n=localStorage.getItem(lh(e));if(n){const t=JSON.parse(n);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return Sc}function ws(e){const{name:n,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case b.FileFolderType.WEBFORM:return`${n}.WebForm`;case b.FileFolderType.METHOD:case b.FileFolderType.CLASS:return s?`${n}.${s}`:n;case b.FileFolderType.ROLES:return n;default:return`${n}.${t}`}}const gh=e=>{if(!e)return[];const n=new Map;return e.dataClasses.forEach(t=>{var i,c;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((c=a.position)==null?void 0:c.y)||0},dragHandle:".custom-drag-handle",data:t};n.set(t.name,s)}),Array.from(n.values())};function vh(e){return e?["json","4dmodel","webform","mform"].includes(e.toLowerCase()):!1}function mh(e,n){return{...e,components:Object.entries(e.components||{}).reduce((t,[a,s])=>({...t,[a]:{...s,custom:Object.entries(s.custom).reduce((i,[c,l])=>c===`states:${n}`?i:{...i,[c]:l},{}),props:Object.entries(s.props).reduce((i,[c,l])=>{let d=l;return c==="events"&&(d=d.map(p=>{var h,y;return p.type==="simple-action"?{...p,state:{...p.state,states:(y=(h=p.state)==null?void 0:h.states)==null?void 0:y.filter(_=>_!==n)}}:p})),{...i,[c]:d}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(t=>t.id!==n)}}}function VT(){this.__data__=[],this.size=0}var KT=VT;function JT(e,n){return e===n||e!==e&&n!==n}var XT=JT,ZT=XT;function QT(e,n){for(var t=e.length;t--;)if(ZT(e[t][0],n))return t;return-1}var Ts=QT,e1=Ts,t1=Array.prototype,r1=t1.splice;function n1(e){var n=this.__data__,t=e1(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():r1.call(n,t,1),--this.size,!0}var a1=n1,o1=Ts;function s1(e){var n=this.__data__,t=o1(n,e);return t<0?void 0:n[t][1]}var i1=s1,u1=Ts;function c1(e){return u1(this.__data__,e)>-1}var l1=c1,f1=Ts;function d1(e,n){var t=this.__data__,a=f1(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}var p1=d1,h1=KT,g1=a1,v1=i1,m1=l1,y1=p1;function Jn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Jn.prototype.clear=h1;Jn.prototype.delete=g1;Jn.prototype.get=v1;Jn.prototype.has=m1;Jn.prototype.set=y1;var Cs=Jn,b1=Cs;function _1(){this.__data__=new b1,this.size=0}var E1=_1;function S1(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var w1=S1;function T1(e){return this.__data__.get(e)}var C1=T1;function x1(e){return this.__data__.has(e)}var R1=x1,O1=Es,A1=ja,P1="[object AsyncFunction]",D1="[object Function]",I1="[object GeneratorFunction]",F1="[object Proxy]";function $1(e){if(!A1(e))return!1;var n=O1(e);return n==D1||n==I1||n==P1||n==F1}var M1=$1,L1=Er,N1=L1["__core-js_shared__"],k1=N1,gu=k1,Vd=function(){var e=/[^.]+$/.exec(gu&&gu.keys&&gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function j1(e){return!!Vd&&Vd in e}var B1=j1,W1=Function.prototype,U1=W1.toString;function H1(e){if(e!=null){try{return U1.call(e)}catch{}try{return e+""}catch{}}return""}var yh=H1,G1=M1,q1=B1,Y1=ja,z1=yh,V1=/[\\^$.*+?()[\]{}|]/g,K1=/^\[object .+?Constructor\]$/,J1=Function.prototype,X1=Object.prototype,Z1=J1.toString,Q1=X1.hasOwnProperty,eC=RegExp("^"+Z1.call(Q1).replace(V1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tC(e){if(!Y1(e)||q1(e))return!1;var n=G1(e)?eC:K1;return n.test(z1(e))}var rC=tC;function nC(e,n){return e==null?void 0:e[n]}var aC=nC,oC=rC,sC=aC;function iC(e,n){var t=sC(e,n);return oC(t)?t:void 0}var Xn=iC,uC=Xn,cC=Er,lC=uC(cC,"Map"),wc=lC,fC=Xn,dC=fC(Object,"create"),xs=dC,Kd=xs;function pC(){this.__data__=Kd?Kd(null):{},this.size=0}var hC=pC;function gC(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var vC=gC,mC=xs,yC="__lodash_hash_undefined__",bC=Object.prototype,_C=bC.hasOwnProperty;function EC(e){var n=this.__data__;if(mC){var t=n[e];return t===yC?void 0:t}return _C.call(n,e)?n[e]:void 0}var SC=EC,wC=xs,TC=Object.prototype,CC=TC.hasOwnProperty;function xC(e){var n=this.__data__;return wC?n[e]!==void 0:CC.call(n,e)}var RC=xC,OC=xs,AC="__lodash_hash_undefined__";function PC(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=OC&&n===void 0?AC:n,this}var DC=PC,IC=hC,FC=vC,$C=SC,MC=RC,LC=DC;function Zn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Zn.prototype.clear=IC;Zn.prototype.delete=FC;Zn.prototype.get=$C;Zn.prototype.has=MC;Zn.prototype.set=LC;var NC=Zn,Jd=NC,kC=Cs,jC=wc;function BC(){this.size=0,this.__data__={hash:new Jd,map:new(jC||kC),string:new Jd}}var WC=BC;function UC(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var HC=UC,GC=HC;function qC(e,n){var t=e.__data__;return GC(n)?t[typeof n=="string"?"string":"hash"]:t.map}var Rs=qC,YC=Rs;function zC(e){var n=YC(this,e).delete(e);return this.size-=n?1:0,n}var VC=zC,KC=Rs;function JC(e){return KC(this,e).get(e)}var XC=JC,ZC=Rs;function QC(e){return ZC(this,e).has(e)}var ex=QC,tx=Rs;function rx(e,n){var t=tx(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}var nx=rx,ax=WC,ox=VC,sx=XC,ix=ex,ux=nx;function Qn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}Qn.prototype.clear=ax;Qn.prototype.delete=ox;Qn.prototype.get=sx;Qn.prototype.has=ix;Qn.prototype.set=ux;var bh=Qn,cx=Cs,lx=wc,fx=bh,dx=200;function px(e,n){var t=this.__data__;if(t instanceof cx){var a=t.__data__;if(!lx||a.length<dx-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new fx(a)}return t.set(e,n),this.size=t.size,this}var hx=px,gx=Cs,vx=E1,mx=w1,yx=C1,bx=R1,_x=hx;function Ba(e){var n=this.__data__=new gx(e);this.size=n.size}Ba.prototype.clear=vx;Ba.prototype.delete=mx;Ba.prototype.get=yx;Ba.prototype.has=bx;Ba.prototype.set=_x;var Ex="__lodash_hash_undefined__";function Sx(e){return this.__data__.set(e,Ex),this}var wx=Sx;function Tx(e){return this.__data__.has(e)}var Cx=Tx,xx=bh,Rx=wx,Ox=Cx;function Bu(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new xx;++n<t;)this.add(e[n])}Bu.prototype.add=Bu.prototype.push=Rx;Bu.prototype.has=Ox;var Ax=Er;Ax.Uint8Array;var Xd=_c,Zd=Xd?Xd.prototype:void 0;Zd&&Zd.valueOf;var Px=Es,Dx=Ec,Ix="[object Arguments]";function Fx(e){return Dx(e)&&Px(e)==Ix}var $x=Fx,Qd=$x,Mx=Ec,_h=Object.prototype,Lx=_h.hasOwnProperty,Nx=_h.propertyIsEnumerable;Qd(function(){return arguments}());var is={exports:{}};function kx(){return!1}var jx=kx;is.exports;(function(e,n){var t=Er,a=jx,s=n&&!n.nodeType&&n,i=s&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===s,l=c?t.Buffer:void 0,d=l?l.isBuffer:void 0,p=d||a;e.exports=p})(is,is.exports);is.exports;var us={exports:{}};us.exports;(function(e,n){var t=oh,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,c=i&&t.process,l=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(us,us.exports);var Bx=us.exports,ep=Bx;ep&&ep.isTypedArray;var Wx=Xn,Ux=Er,Hx=Wx(Ux,"DataView"),Gx=Hx,qx=Xn,Yx=Er,zx=qx(Yx,"Promise"),Vx=zx,Kx=Xn,Jx=Er,Xx=Kx(Jx,"Set"),Zx=Xx,Qx=Xn,eR=Er,tR=Qx(eR,"WeakMap"),rR=tR,Wu=Gx,Uu=wc,Hu=Vx,Gu=Zx,qu=rR,Eh=Es,ea=yh,tp="[object Map]",nR="[object Object]",rp="[object Promise]",np="[object Set]",ap="[object WeakMap]",op="[object DataView]",aR=ea(Wu),oR=ea(Uu),sR=ea(Hu),iR=ea(Gu),uR=ea(qu),Bn=Eh;(Wu&&Bn(new Wu(new ArrayBuffer(1)))!=op||Uu&&Bn(new Uu)!=tp||Hu&&Bn(Hu.resolve())!=rp||Gu&&Bn(new Gu)!=np||qu&&Bn(new qu)!=ap)&&(Bn=function(e){var n=Eh(e),t=n==nR?e.constructor:void 0,a=t?ea(t):"";if(a)switch(a){case aR:return op;case oR:return tp;case sR:return rp;case iR:return np;case uR:return ap}return n});const cR="ROOT";YS(),qS();var sp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(sp||(sp={}));var cs={exports:{}};/**
|
|
9
9
|
* @license
|
|
10
10
|
* Lodash <https://lodash.com/>
|
|
11
11
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
12
12
|
* Released under MIT license <https://lodash.com/license>
|
|
13
13
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
14
14
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
15
|
-
*/Es.exports;(function(e,n){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",m=1,_=2,S=4,T=1,C=2,F=1,D=2,W=4,$=8,j=16,A=32,K=64,G=128,Y=256,ie=512,We=30,Re="...",st=800,Z=16,we=1,Xe=2,Ze=3,Ue=1/0,et=9007199254740991,Dt=17976931348623157e292,H=0/0,V=4294967295,ve=V-1,he=V>>>1,le=[["ary",G],["bind",F],["bindKey",D],["curry",$],["curryRight",j],["flip",ie],["partial",A],["partialRight",K],["rearg",Y]],ye="[object Arguments]",se="[object Array]",fe="[object AsyncFunction]",ue="[object Boolean]",me="[object Date]",ge="[object DOMException]",J="[object Error]",N="[object Function]",Ge="[object GeneratorFunction]",qe="[object Map]",it="[object Number]",vn="[object Null]",It="[object Object]",er="[object Promise]",Ea="[object Proxy]",bt="[object RegExp]",pt="[object Set]",Ir="[object String]",wr="[object Symbol]",yn="[object Undefined]",qt="[object WeakMap]",Sa="[object WeakSet]",Fr="[object ArrayBuffer]",Tr="[object DataView]",mn="[object Float32Array]",bn="[object Float64Array]",_n="[object Int8Array]",En="[object Int16Array]",dr="[object Int32Array]",$r="[object Uint8Array]",_t="[object Uint8ClampedArray]",pr="[object Uint16Array]",hr="[object Uint32Array]",Sn=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wn=/&(?:amp|lt|gt|quot|#39);/g,en=/[&<>"']/g,Tn=RegExp(Wn.source),Ta=RegExp(en.source),xa=/<%-([\s\S]+?)%>/g,xn=/<%([\s\S]+?)%>/g,Un=/<%=([\s\S]+?)%>/g,Ca=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oa=/^\w*$/,Ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g=/[\\^$.*+?()[\]{}|]/g,O=RegExp(g.source),I=/^\s+/,q=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/[()=,{}\[\]\/\s]/,be=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,at=/\w*$/,Ft=/^[-+]0x[0-9a-f]+$/i,Cn=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,Wv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,Hv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lo=/($^)/,Gv=/['\n\r\u2028\u2029\\]/g,fo="\\ud800-\\udfff",qv="\\u0300-\\u036f",Yv="\\ufe20-\\ufe2f",zv="\\u20d0-\\u20ff",il=qv+Yv+zv,ul="\\u2700-\\u27bf",cl="a-z\\xdf-\\xf6\\xf8-\\xff",Vv="\\xac\\xb1\\xd7\\xf7",Kv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jv="\\u2000-\\u206f",Xv=" \\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",ll="A-Z\\xc0-\\xd6\\xd8-\\xde",fl="\\ufe0e\\ufe0f",dl=Vv+Kv+Jv+Xv,Qs="['’]",Zv="["+fo+"]",pl="["+dl+"]",po="["+il+"]",hl="\\d+",Qv="["+ul+"]",gl="["+cl+"]",vl="[^"+fo+dl+hl+ul+cl+ll+"]",ei="\\ud83c[\\udffb-\\udfff]",ey="(?:"+po+"|"+ei+")",yl="[^"+fo+"]",ti="(?:\\ud83c[\\udde6-\\uddff]){2}",ri="[\\ud800-\\udbff][\\udc00-\\udfff]",Hn="["+ll+"]",ml="\\u200d",bl="(?:"+gl+"|"+vl+")",ty="(?:"+Hn+"|"+vl+")",_l="(?:"+Qs+"(?:d|ll|m|re|s|t|ve))?",El="(?:"+Qs+"(?:D|LL|M|RE|S|T|VE))?",Sl=ey+"?",wl="["+fl+"]?",ry="(?:"+ml+"(?:"+[yl,ti,ri].join("|")+")"+wl+Sl+")*",ny="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ay="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tl=wl+Sl+ry,oy="(?:"+[Qv,ti,ri].join("|")+")"+Tl,sy="(?:"+[yl+po+"?",po,ti,ri,Zv].join("|")+")",iy=RegExp(Qs,"g"),uy=RegExp(po,"g"),ni=RegExp(ei+"(?="+ei+")|"+sy+Tl,"g"),cy=RegExp([Hn+"?"+gl+"+"+_l+"(?="+[pl,Hn,"$"].join("|")+")",ty+"+"+El+"(?="+[pl,Hn+bl,"$"].join("|")+")",Hn+"?"+bl+"+"+_l,Hn+"+"+El,ay,ny,hl,oy].join("|"),"g"),ly=RegExp("["+ml+fo+il+fl+"]"),fy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dy=["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"],py=-1,Qe={};Qe[mn]=Qe[bn]=Qe[_n]=Qe[En]=Qe[dr]=Qe[$r]=Qe[_t]=Qe[pr]=Qe[hr]=!0,Qe[ye]=Qe[se]=Qe[Fr]=Qe[ue]=Qe[Tr]=Qe[me]=Qe[J]=Qe[N]=Qe[qe]=Qe[it]=Qe[It]=Qe[bt]=Qe[pt]=Qe[Ir]=Qe[qt]=!1;var Je={};Je[ye]=Je[se]=Je[Fr]=Je[Tr]=Je[ue]=Je[me]=Je[mn]=Je[bn]=Je[_n]=Je[En]=Je[dr]=Je[qe]=Je[it]=Je[It]=Je[bt]=Je[pt]=Je[Ir]=Je[wr]=Je[$r]=Je[_t]=Je[pr]=Je[hr]=!0,Je[J]=Je[N]=Je[qt]=!1;var hy={À:"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"},gy={"&":"&","<":"<",">":">",'"':""","'":"'"},vy={"&":"&","<":"<",">":">",""":'"',"'":"'"},yy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},my=parseFloat,by=parseInt,xl=typeof qr=="object"&&qr&&qr.Object===Object&&qr,_y=typeof self=="object"&&self&&self.Object===Object&&self,Et=xl||_y||Function("return this")(),ai=n&&!n.nodeType&&n,On=ai&&!0&&e&&!e.nodeType&&e,Cl=On&&On.exports===ai,oi=Cl&&xl.process,tr=function(){try{var R=On&&On.require&&On.require("util").types;return R||oi&&oi.binding&&oi.binding("util")}catch{}}(),Ol=tr&&tr.isArrayBuffer,Rl=tr&&tr.isDate,Al=tr&&tr.isMap,Pl=tr&&tr.isRegExp,Dl=tr&&tr.isSet,Il=tr&&tr.isTypedArray;function Yt(R,L,M){switch(M.length){case 0:return R.call(L);case 1:return R.call(L,M[0]);case 2:return R.call(L,M[0],M[1]);case 3:return R.call(L,M[0],M[1],M[2])}return R.apply(L,M)}function Ey(R,L,M,te){for(var _e=-1,$e=R==null?0:R.length;++_e<$e;){var ht=R[_e];L(te,ht,M(ht),R)}return te}function rr(R,L){for(var M=-1,te=R==null?0:R.length;++M<te&&L(R[M],M,R)!==!1;);return R}function Sy(R,L){for(var M=R==null?0:R.length;M--&&L(R[M],M,R)!==!1;);return R}function Fl(R,L){for(var M=-1,te=R==null?0:R.length;++M<te;)if(!L(R[M],M,R))return!1;return!0}function tn(R,L){for(var M=-1,te=R==null?0:R.length,_e=0,$e=[];++M<te;){var ht=R[M];L(ht,M,R)&&($e[_e++]=ht)}return $e}function ho(R,L){var M=R==null?0:R.length;return!!M&&Gn(R,L,0)>-1}function si(R,L,M){for(var te=-1,_e=R==null?0:R.length;++te<_e;)if(M(L,R[te]))return!0;return!1}function tt(R,L){for(var M=-1,te=R==null?0:R.length,_e=Array(te);++M<te;)_e[M]=L(R[M],M,R);return _e}function rn(R,L){for(var M=-1,te=L.length,_e=R.length;++M<te;)R[_e+M]=L[M];return R}function ii(R,L,M,te){var _e=-1,$e=R==null?0:R.length;for(te&&$e&&(M=R[++_e]);++_e<$e;)M=L(M,R[_e],_e,R);return M}function wy(R,L,M,te){var _e=R==null?0:R.length;for(te&&_e&&(M=R[--_e]);_e--;)M=L(M,R[_e],_e,R);return M}function ui(R,L){for(var M=-1,te=R==null?0:R.length;++M<te;)if(L(R[M],M,R))return!0;return!1}var Ty=ci("length");function xy(R){return R.split("")}function Cy(R){return R.match(Q)||[]}function $l(R,L,M){var te;return M(R,function(_e,$e,ht){if(L(_e,$e,ht))return te=$e,!1}),te}function go(R,L,M,te){for(var _e=R.length,$e=M+(te?1:-1);te?$e--:++$e<_e;)if(L(R[$e],$e,R))return $e;return-1}function Gn(R,L,M){return L===L?jy(R,L,M):go(R,Ml,M)}function Oy(R,L,M,te){for(var _e=M-1,$e=R.length;++_e<$e;)if(te(R[_e],L))return _e;return-1}function Ml(R){return R!==R}function Nl(R,L){var M=R==null?0:R.length;return M?fi(R,L)/M:H}function ci(R){return function(L){return L==null?t:L[R]}}function li(R){return function(L){return R==null?t:R[L]}}function Ll(R,L,M,te,_e){return _e(R,function($e,ht,Ve){M=te?(te=!1,$e):L(M,$e,ht,Ve)}),M}function Ry(R,L){var M=R.length;for(R.sort(L);M--;)R[M]=R[M].value;return R}function fi(R,L){for(var M,te=-1,_e=R.length;++te<_e;){var $e=L(R[te]);$e!==t&&(M=M===t?$e:M+$e)}return M}function di(R,L){for(var M=-1,te=Array(R);++M<R;)te[M]=L(M);return te}function Ay(R,L){return tt(L,function(M){return[M,R[M]]})}function jl(R){return R&&R.slice(0,Ul(R)+1).replace(I,"")}function zt(R){return function(L){return R(L)}}function pi(R,L){return tt(L,function(M){return R[M]})}function Aa(R,L){return R.has(L)}function kl(R,L){for(var M=-1,te=R.length;++M<te&&Gn(L,R[M],0)>-1;);return M}function Bl(R,L){for(var M=R.length;M--&&Gn(L,R[M],0)>-1;);return M}function Py(R,L){for(var M=R.length,te=0;M--;)R[M]===L&&++te;return te}var Dy=li(hy),Iy=li(gy);function Fy(R){return"\\"+yy[R]}function $y(R,L){return R==null?t:R[L]}function qn(R){return ly.test(R)}function My(R){return fy.test(R)}function Ny(R){for(var L,M=[];!(L=R.next()).done;)M.push(L.value);return M}function hi(R){var L=-1,M=Array(R.size);return R.forEach(function(te,_e){M[++L]=[_e,te]}),M}function Wl(R,L){return function(M){return R(L(M))}}function nn(R,L){for(var M=-1,te=R.length,_e=0,$e=[];++M<te;){var ht=R[M];(ht===L||ht===h)&&(R[M]=h,$e[_e++]=M)}return $e}function vo(R){var L=-1,M=Array(R.size);return R.forEach(function(te){M[++L]=te}),M}function Ly(R){var L=-1,M=Array(R.size);return R.forEach(function(te){M[++L]=[te,te]}),M}function jy(R,L,M){for(var te=M-1,_e=R.length;++te<_e;)if(R[te]===L)return te;return-1}function ky(R,L,M){for(var te=M+1;te--;)if(R[te]===L)return te;return te}function Yn(R){return qn(R)?Wy(R):Ty(R)}function gr(R){return qn(R)?Uy(R):xy(R)}function Ul(R){for(var L=R.length;L--&&q.test(R.charAt(L)););return L}var By=li(vy);function Wy(R){for(var L=ni.lastIndex=0;ni.test(R);)++L;return L}function Uy(R){return R.match(ni)||[]}function Hy(R){return R.match(cy)||[]}var Gy=function R(L){L=L==null?Et:zn.defaults(Et.Object(),L,zn.pick(Et,dy));var M=L.Array,te=L.Date,_e=L.Error,$e=L.Function,ht=L.Math,Ve=L.Object,gi=L.RegExp,qy=L.String,nr=L.TypeError,yo=M.prototype,Yy=$e.prototype,Vn=Ve.prototype,mo=L["__core-js_shared__"],bo=Yy.toString,He=Vn.hasOwnProperty,zy=0,Hl=function(){var r=/[^.]+$/.exec(mo&&mo.keys&&mo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),_o=Vn.toString,Vy=bo.call(Ve),Ky=Et._,Jy=gi("^"+bo.call(He).replace(g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Eo=Cl?L.Buffer:t,an=L.Symbol,So=L.Uint8Array,Gl=Eo?Eo.allocUnsafe:t,wo=Wl(Ve.getPrototypeOf,Ve),ql=Ve.create,Yl=Vn.propertyIsEnumerable,To=yo.splice,zl=an?an.isConcatSpreadable:t,Pa=an?an.iterator:t,Rn=an?an.toStringTag:t,xo=function(){try{var r=Fn(Ve,"defineProperty");return r({},"",{}),r}catch{}}(),Xy=L.clearTimeout!==Et.clearTimeout&&L.clearTimeout,Zy=te&&te.now!==Et.Date.now&&te.now,Qy=L.setTimeout!==Et.setTimeout&&L.setTimeout,Co=ht.ceil,Oo=ht.floor,vi=Ve.getOwnPropertySymbols,em=Eo?Eo.isBuffer:t,Vl=L.isFinite,tm=yo.join,rm=Wl(Ve.keys,Ve),gt=ht.max,Tt=ht.min,nm=te.now,am=L.parseInt,Kl=ht.random,om=yo.reverse,yi=Fn(L,"DataView"),Da=Fn(L,"Map"),mi=Fn(L,"Promise"),Kn=Fn(L,"Set"),Ia=Fn(L,"WeakMap"),Fa=Fn(Ve,"create"),Ro=Ia&&new Ia,Jn={},sm=$n(yi),im=$n(Da),um=$n(mi),cm=$n(Kn),lm=$n(Ia),Ao=an?an.prototype:t,$a=Ao?Ao.valueOf:t,Jl=Ao?Ao.toString:t;function y(r){if(ot(r)&&!Se(r)&&!(r instanceof Pe)){if(r instanceof ar)return r;if(He.call(r,"__wrapped__"))return Zf(r)}return new ar(r)}var Xn=function(){function r(){}return function(o){if(!nt(o))return{};if(ql)return ql(o);r.prototype=o;var u=new r;return r.prototype=t,u}}();function Po(){}function ar(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}y.templateSettings={escape:xa,evaluate:xn,interpolate:Un,variable:"",imports:{_:y}},y.prototype=Po.prototype,y.prototype.constructor=y,ar.prototype=Xn(Po.prototype),ar.prototype.constructor=ar;function Pe(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function fm(){var r=new Pe(this.__wrapped__);return r.__actions__=kt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=kt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=kt(this.__views__),r}function dm(){if(this.__filtered__){var r=new Pe(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function pm(){var r=this.__wrapped__.value(),o=this.__dir__,u=Se(r),f=o<0,v=u?r.length:0,b=x0(0,v,this.__views__),w=b.start,x=b.end,P=x-w,k=f?x:w-1,B=this.__iteratees__,U=B.length,X=0,ne=Tt(P,this.__takeCount__);if(!u||!f&&v==P&&ne==P)return Ef(r,this.__actions__);var de=[];e:for(;P--&&X<ne;){k+=o;for(var Ce=-1,pe=r[k];++Ce<U;){var Ae=B[Ce],De=Ae.iteratee,Jt=Ae.type,Nt=De(pe);if(Jt==Xe)pe=Nt;else if(!Nt){if(Jt==we)continue e;break e}}de[X++]=pe}return de}Pe.prototype=Xn(Po.prototype),Pe.prototype.constructor=Pe;function An(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function hm(){this.__data__=Fa?Fa(null):{},this.size=0}function gm(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function vm(r){var o=this.__data__;if(Fa){var u=o[r];return u===d?t:u}return He.call(o,r)?o[r]:t}function ym(r){var o=this.__data__;return Fa?o[r]!==t:He.call(o,r)}function mm(r,o){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=Fa&&o===t?d:o,this}An.prototype.clear=hm,An.prototype.delete=gm,An.prototype.get=vm,An.prototype.has=ym,An.prototype.set=mm;function Mr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function bm(){this.__data__=[],this.size=0}function _m(r){var o=this.__data__,u=Do(o,r);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():To.call(o,u,1),--this.size,!0}function Em(r){var o=this.__data__,u=Do(o,r);return u<0?t:o[u][1]}function Sm(r){return Do(this.__data__,r)>-1}function wm(r,o){var u=this.__data__,f=Do(u,r);return f<0?(++this.size,u.push([r,o])):u[f][1]=o,this}Mr.prototype.clear=bm,Mr.prototype.delete=_m,Mr.prototype.get=Em,Mr.prototype.has=Sm,Mr.prototype.set=wm;function Nr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function Tm(){this.size=0,this.__data__={hash:new An,map:new(Da||Mr),string:new An}}function xm(r){var o=Ho(this,r).delete(r);return this.size-=o?1:0,o}function Cm(r){return Ho(this,r).get(r)}function Om(r){return Ho(this,r).has(r)}function Rm(r,o){var u=Ho(this,r),f=u.size;return u.set(r,o),this.size+=u.size==f?0:1,this}Nr.prototype.clear=Tm,Nr.prototype.delete=xm,Nr.prototype.get=Cm,Nr.prototype.has=Om,Nr.prototype.set=Rm;function Pn(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Nr;++o<u;)this.add(r[o])}function Am(r){return this.__data__.set(r,d),this}function Pm(r){return this.__data__.has(r)}Pn.prototype.add=Pn.prototype.push=Am,Pn.prototype.has=Pm;function vr(r){var o=this.__data__=new Mr(r);this.size=o.size}function Dm(){this.__data__=new Mr,this.size=0}function Im(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function Fm(r){return this.__data__.get(r)}function $m(r){return this.__data__.has(r)}function Mm(r,o){var u=this.__data__;if(u instanceof Mr){var f=u.__data__;if(!Da||f.length<s-1)return f.push([r,o]),this.size=++u.size,this;u=this.__data__=new Nr(f)}return u.set(r,o),this.size=u.size,this}vr.prototype.clear=Dm,vr.prototype.delete=Im,vr.prototype.get=Fm,vr.prototype.has=$m,vr.prototype.set=Mm;function Xl(r,o){var u=Se(r),f=!u&&Mn(r),v=!u&&!f&&ln(r),b=!u&&!f&&!v&&ta(r),w=u||f||v||b,x=w?di(r.length,qy):[],P=x.length;for(var k in r)(o||He.call(r,k))&&!(w&&(k=="length"||v&&(k=="offset"||k=="parent")||b&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||Br(k,P)))&&x.push(k);return x}function Zl(r){var o=r.length;return o?r[Ai(0,o-1)]:t}function Nm(r,o){return Go(kt(r),Dn(o,0,r.length))}function Lm(r){return Go(kt(r))}function bi(r,o,u){(u!==t&&!yr(r[o],u)||u===t&&!(o in r))&&Lr(r,o,u)}function Ma(r,o,u){var f=r[o];(!(He.call(r,o)&&yr(f,u))||u===t&&!(o in r))&&Lr(r,o,u)}function Do(r,o){for(var u=r.length;u--;)if(yr(r[u][0],o))return u;return-1}function jm(r,o,u,f){return on(r,function(v,b,w){o(f,v,u(v),w)}),f}function Ql(r,o){return r&&Cr(o,mt(o),r)}function km(r,o){return r&&Cr(o,Wt(o),r)}function Lr(r,o,u){o=="__proto__"&&xo?xo(r,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[o]=u}function _i(r,o){for(var u=-1,f=o.length,v=M(f),b=r==null;++u<f;)v[u]=b?t:eu(r,o[u]);return v}function Dn(r,o,u){return r===r&&(u!==t&&(r=r<=u?r:u),o!==t&&(r=r>=o?r:o)),r}function or(r,o,u,f,v,b){var w,x=o&m,P=o&_,k=o&S;if(u&&(w=v?u(r,f,v,b):u(r)),w!==t)return w;if(!nt(r))return r;var B=Se(r);if(B){if(w=O0(r),!x)return kt(r,w)}else{var U=xt(r),X=U==N||U==Ge;if(ln(r))return Tf(r,x);if(U==It||U==ye||X&&!v){if(w=P||X?{}:Hf(r),!x)return P?v0(r,km(w,r)):g0(r,Ql(w,r))}else{if(!Je[U])return v?r:{};w=R0(r,U,x)}}b||(b=new vr);var ne=b.get(r);if(ne)return ne;b.set(r,w),md(r)?r.forEach(function(pe){w.add(or(pe,o,u,pe,r,b))}):vd(r)&&r.forEach(function(pe,Ae){w.set(Ae,or(pe,o,u,Ae,r,b))});var de=k?P?Bi:ki:P?Wt:mt,Ce=B?t:de(r);return rr(Ce||r,function(pe,Ae){Ce&&(Ae=pe,pe=r[Ae]),Ma(w,Ae,or(pe,o,u,Ae,r,b))}),w}function Bm(r){var o=mt(r);return function(u){return ef(u,r,o)}}function ef(r,o,u){var f=u.length;if(r==null)return!f;for(r=Ve(r);f--;){var v=u[f],b=o[v],w=r[v];if(w===t&&!(v in r)||!b(w))return!1}return!0}function tf(r,o,u){if(typeof r!="function")throw new nr(c);return Ua(function(){r.apply(t,u)},o)}function Na(r,o,u,f){var v=-1,b=ho,w=!0,x=r.length,P=[],k=o.length;if(!x)return P;u&&(o=tt(o,zt(u))),f?(b=si,w=!1):o.length>=s&&(b=Aa,w=!1,o=new Pn(o));e:for(;++v<x;){var B=r[v],U=u==null?B:u(B);if(B=f||B!==0?B:0,w&&U===U){for(var X=k;X--;)if(o[X]===U)continue e;P.push(B)}else b(o,U,f)||P.push(B)}return P}var on=Af(xr),rf=Af(Si,!0);function Wm(r,o){var u=!0;return on(r,function(f,v,b){return u=!!o(f,v,b),u}),u}function Io(r,o,u){for(var f=-1,v=r.length;++f<v;){var b=r[f],w=o(b);if(w!=null&&(x===t?w===w&&!Kt(w):u(w,x)))var x=w,P=b}return P}function Um(r,o,u,f){var v=r.length;for(u=Te(u),u<0&&(u=-u>v?0:v+u),f=f===t||f>v?v:Te(f),f<0&&(f+=v),f=u>f?0:_d(f);u<f;)r[u++]=o;return r}function nf(r,o){var u=[];return on(r,function(f,v,b){o(f,v,b)&&u.push(f)}),u}function St(r,o,u,f,v){var b=-1,w=r.length;for(u||(u=P0),v||(v=[]);++b<w;){var x=r[b];o>0&&u(x)?o>1?St(x,o-1,u,f,v):rn(v,x):f||(v[v.length]=x)}return v}var Ei=Pf(),af=Pf(!0);function xr(r,o){return r&&Ei(r,o,mt)}function Si(r,o){return r&&af(r,o,mt)}function Fo(r,o){return tn(o,function(u){return Wr(r[u])})}function In(r,o){o=un(o,r);for(var u=0,f=o.length;r!=null&&u<f;)r=r[Or(o[u++])];return u&&u==f?r:t}function of(r,o,u){var f=o(r);return Se(r)?f:rn(f,u(r))}function $t(r){return r==null?r===t?yn:vn:Rn&&Rn in Ve(r)?T0(r):L0(r)}function wi(r,o){return r>o}function Hm(r,o){return r!=null&&He.call(r,o)}function Gm(r,o){return r!=null&&o in Ve(r)}function qm(r,o,u){return r>=Tt(o,u)&&r<gt(o,u)}function Ti(r,o,u){for(var f=u?si:ho,v=r[0].length,b=r.length,w=b,x=M(b),P=1/0,k=[];w--;){var B=r[w];w&&o&&(B=tt(B,zt(o))),P=Tt(B.length,P),x[w]=!u&&(o||v>=120&&B.length>=120)?new Pn(w&&B):t}B=r[0];var U=-1,X=x[0];e:for(;++U<v&&k.length<P;){var ne=B[U],de=o?o(ne):ne;if(ne=u||ne!==0?ne:0,!(X?Aa(X,de):f(k,de,u))){for(w=b;--w;){var Ce=x[w];if(!(Ce?Aa(Ce,de):f(r[w],de,u)))continue e}X&&X.push(de),k.push(ne)}}return k}function Ym(r,o,u,f){return xr(r,function(v,b,w){o(f,u(v),b,w)}),f}function La(r,o,u){o=un(o,r),r=zf(r,o);var f=r==null?r:r[Or(ir(o))];return f==null?t:Yt(f,r,u)}function sf(r){return ot(r)&&$t(r)==ye}function zm(r){return ot(r)&&$t(r)==Fr}function Vm(r){return ot(r)&&$t(r)==me}function ja(r,o,u,f,v){return r===o?!0:r==null||o==null||!ot(r)&&!ot(o)?r!==r&&o!==o:Km(r,o,u,f,ja,v)}function Km(r,o,u,f,v,b){var w=Se(r),x=Se(o),P=w?se:xt(r),k=x?se:xt(o);P=P==ye?It:P,k=k==ye?It:k;var B=P==It,U=k==It,X=P==k;if(X&&ln(r)){if(!ln(o))return!1;w=!0,B=!1}if(X&&!B)return b||(b=new vr),w||ta(r)?Bf(r,o,u,f,v,b):S0(r,o,P,u,f,v,b);if(!(u&T)){var ne=B&&He.call(r,"__wrapped__"),de=U&&He.call(o,"__wrapped__");if(ne||de){var Ce=ne?r.value():r,pe=de?o.value():o;return b||(b=new vr),v(Ce,pe,u,f,b)}}return X?(b||(b=new vr),w0(r,o,u,f,v,b)):!1}function Jm(r){return ot(r)&&xt(r)==qe}function xi(r,o,u,f){var v=u.length,b=v,w=!f;if(r==null)return!b;for(r=Ve(r);v--;){var x=u[v];if(w&&x[2]?x[1]!==r[x[0]]:!(x[0]in r))return!1}for(;++v<b;){x=u[v];var P=x[0],k=r[P],B=x[1];if(w&&x[2]){if(k===t&&!(P in r))return!1}else{var U=new vr;if(f)var X=f(k,B,P,r,o,U);if(!(X===t?ja(B,k,T|C,f,U):X))return!1}}return!0}function uf(r){if(!nt(r)||I0(r))return!1;var o=Wr(r)?Jy:ut;return o.test($n(r))}function Xm(r){return ot(r)&&$t(r)==bt}function Zm(r){return ot(r)&&xt(r)==pt}function Qm(r){return ot(r)&&Jo(r.length)&&!!Qe[$t(r)]}function cf(r){return typeof r=="function"?r:r==null?Ut:typeof r=="object"?Se(r)?df(r[0],r[1]):ff(r):Dd(r)}function Ci(r){if(!Wa(r))return rm(r);var o=[];for(var u in Ve(r))He.call(r,u)&&u!="constructor"&&o.push(u);return o}function e0(r){if(!nt(r))return N0(r);var o=Wa(r),u=[];for(var f in r)f=="constructor"&&(o||!He.call(r,f))||u.push(f);return u}function Oi(r,o){return r<o}function lf(r,o){var u=-1,f=Bt(r)?M(r.length):[];return on(r,function(v,b,w){f[++u]=o(v,b,w)}),f}function ff(r){var o=Ui(r);return o.length==1&&o[0][2]?qf(o[0][0],o[0][1]):function(u){return u===r||xi(u,r,o)}}function df(r,o){return Gi(r)&&Gf(o)?qf(Or(r),o):function(u){var f=eu(u,r);return f===t&&f===o?tu(u,r):ja(o,f,T|C)}}function $o(r,o,u,f,v){r!==o&&Ei(o,function(b,w){if(v||(v=new vr),nt(b))t0(r,o,w,u,$o,f,v);else{var x=f?f(Yi(r,w),b,w+"",r,o,v):t;x===t&&(x=b),bi(r,w,x)}},Wt)}function t0(r,o,u,f,v,b,w){var x=Yi(r,u),P=Yi(o,u),k=w.get(P);if(k){bi(r,u,k);return}var B=b?b(x,P,u+"",r,o,w):t,U=B===t;if(U){var X=Se(P),ne=!X&&ln(P),de=!X&&!ne&&ta(P);B=P,X||ne||de?Se(x)?B=x:ct(x)?B=kt(x):ne?(U=!1,B=Tf(P,!0)):de?(U=!1,B=xf(P,!0)):B=[]:Ha(P)||Mn(P)?(B=x,Mn(x)?B=Ed(x):(!nt(x)||Wr(x))&&(B=Hf(P))):U=!1}U&&(w.set(P,B),v(B,P,f,b,w),w.delete(P)),bi(r,u,B)}function pf(r,o){var u=r.length;if(u)return o+=o<0?u:0,Br(o,u)?r[o]:t}function hf(r,o,u){o.length?o=tt(o,function(b){return Se(b)?function(w){return In(w,b.length===1?b[0]:b)}:b}):o=[Ut];var f=-1;o=tt(o,zt(ce()));var v=lf(r,function(b,w,x){var P=tt(o,function(k){return k(b)});return{criteria:P,index:++f,value:b}});return Ry(v,function(b,w){return h0(b,w,u)})}function r0(r,o){return gf(r,o,function(u,f){return tu(r,f)})}function gf(r,o,u){for(var f=-1,v=o.length,b={};++f<v;){var w=o[f],x=In(r,w);u(x,w)&&ka(b,un(w,r),x)}return b}function n0(r){return function(o){return In(o,r)}}function Ri(r,o,u,f){var v=f?Oy:Gn,b=-1,w=o.length,x=r;for(r===o&&(o=kt(o)),u&&(x=tt(r,zt(u)));++b<w;)for(var P=0,k=o[b],B=u?u(k):k;(P=v(x,B,P,f))>-1;)x!==r&&To.call(x,P,1),To.call(r,P,1);return r}function vf(r,o){for(var u=r?o.length:0,f=u-1;u--;){var v=o[u];if(u==f||v!==b){var b=v;Br(v)?To.call(r,v,1):Ii(r,v)}}return r}function Ai(r,o){return r+Oo(Kl()*(o-r+1))}function a0(r,o,u,f){for(var v=-1,b=gt(Co((o-r)/(u||1)),0),w=M(b);b--;)w[f?b:++v]=r,r+=u;return w}function Pi(r,o){var u="";if(!r||o<1||o>et)return u;do o%2&&(u+=r),o=Oo(o/2),o&&(r+=r);while(o);return u}function Oe(r,o){return zi(Yf(r,o,Ut),r+"")}function o0(r){return Zl(ra(r))}function s0(r,o){var u=ra(r);return Go(u,Dn(o,0,u.length))}function ka(r,o,u,f){if(!nt(r))return r;o=un(o,r);for(var v=-1,b=o.length,w=b-1,x=r;x!=null&&++v<b;){var P=Or(o[v]),k=u;if(P==="__proto__"||P==="constructor"||P==="prototype")return r;if(v!=w){var B=x[P];k=f?f(B,P,x):t,k===t&&(k=nt(B)?B:Br(o[v+1])?[]:{})}Ma(x,P,k),x=x[P]}return r}var yf=Ro?function(r,o){return Ro.set(r,o),r}:Ut,i0=xo?function(r,o){return xo(r,"toString",{configurable:!0,enumerable:!1,value:nu(o),writable:!0})}:Ut;function u0(r){return Go(ra(r))}function sr(r,o,u){var f=-1,v=r.length;o<0&&(o=-o>v?0:v+o),u=u>v?v:u,u<0&&(u+=v),v=o>u?0:u-o>>>0,o>>>=0;for(var b=M(v);++f<v;)b[f]=r[f+o];return b}function c0(r,o){var u;return on(r,function(f,v,b){return u=o(f,v,b),!u}),!!u}function Mo(r,o,u){var f=0,v=r==null?f:r.length;if(typeof o=="number"&&o===o&&v<=he){for(;f<v;){var b=f+v>>>1,w=r[b];w!==null&&!Kt(w)&&(u?w<=o:w<o)?f=b+1:v=b}return v}return Di(r,o,Ut,u)}function Di(r,o,u,f){var v=0,b=r==null?0:r.length;if(b===0)return 0;o=u(o);for(var w=o!==o,x=o===null,P=Kt(o),k=o===t;v<b;){var B=Oo((v+b)/2),U=u(r[B]),X=U!==t,ne=U===null,de=U===U,Ce=Kt(U);if(w)var pe=f||de;else k?pe=de&&(f||X):x?pe=de&&X&&(f||!ne):P?pe=de&&X&&!ne&&(f||!Ce):ne||Ce?pe=!1:pe=f?U<=o:U<o;pe?v=B+1:b=B}return Tt(b,ve)}function mf(r,o){for(var u=-1,f=r.length,v=0,b=[];++u<f;){var w=r[u],x=o?o(w):w;if(!u||!yr(x,P)){var P=x;b[v++]=w===0?0:w}}return b}function bf(r){return typeof r=="number"?r:Kt(r)?H:+r}function Vt(r){if(typeof r=="string")return r;if(Se(r))return tt(r,Vt)+"";if(Kt(r))return Jl?Jl.call(r):"";var o=r+"";return o=="0"&&1/r==-Ue?"-0":o}function sn(r,o,u){var f=-1,v=ho,b=r.length,w=!0,x=[],P=x;if(u)w=!1,v=si;else if(b>=s){var k=o?null:_0(r);if(k)return vo(k);w=!1,v=Aa,P=new Pn}else P=o?[]:x;e:for(;++f<b;){var B=r[f],U=o?o(B):B;if(B=u||B!==0?B:0,w&&U===U){for(var X=P.length;X--;)if(P[X]===U)continue e;o&&P.push(U),x.push(B)}else v(P,U,u)||(P!==x&&P.push(U),x.push(B))}return x}function Ii(r,o){return o=un(o,r),r=zf(r,o),r==null||delete r[Or(ir(o))]}function _f(r,o,u,f){return ka(r,o,u(In(r,o)),f)}function No(r,o,u,f){for(var v=r.length,b=f?v:-1;(f?b--:++b<v)&&o(r[b],b,r););return u?sr(r,f?0:b,f?b+1:v):sr(r,f?b+1:0,f?v:b)}function Ef(r,o){var u=r;return u instanceof Pe&&(u=u.value()),ii(o,function(f,v){return v.func.apply(v.thisArg,rn([f],v.args))},u)}function Fi(r,o,u){var f=r.length;if(f<2)return f?sn(r[0]):[];for(var v=-1,b=M(f);++v<f;)for(var w=r[v],x=-1;++x<f;)x!=v&&(b[v]=Na(b[v]||w,r[x],o,u));return sn(St(b,1),o,u)}function Sf(r,o,u){for(var f=-1,v=r.length,b=o.length,w={};++f<v;){var x=f<b?o[f]:t;u(w,r[f],x)}return w}function $i(r){return ct(r)?r:[]}function Mi(r){return typeof r=="function"?r:Ut}function un(r,o){return Se(r)?r:Gi(r,o)?[r]:Xf(Ne(r))}var l0=Oe;function cn(r,o,u){var f=r.length;return u=u===t?f:u,!o&&u>=f?r:sr(r,o,u)}var wf=Xy||function(r){return Et.clearTimeout(r)};function Tf(r,o){if(o)return r.slice();var u=r.length,f=Gl?Gl(u):new r.constructor(u);return r.copy(f),f}function Ni(r){var o=new r.constructor(r.byteLength);return new So(o).set(new So(r)),o}function f0(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function d0(r){var o=new r.constructor(r.source,at.exec(r));return o.lastIndex=r.lastIndex,o}function p0(r){return $a?Ve($a.call(r)):{}}function xf(r,o){var u=o?Ni(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function Cf(r,o){if(r!==o){var u=r!==t,f=r===null,v=r===r,b=Kt(r),w=o!==t,x=o===null,P=o===o,k=Kt(o);if(!x&&!k&&!b&&r>o||b&&w&&P&&!x&&!k||f&&w&&P||!u&&P||!v)return 1;if(!f&&!b&&!k&&r<o||k&&u&&v&&!f&&!b||x&&u&&v||!w&&v||!P)return-1}return 0}function h0(r,o,u){for(var f=-1,v=r.criteria,b=o.criteria,w=v.length,x=u.length;++f<w;){var P=Cf(v[f],b[f]);if(P){if(f>=x)return P;var k=u[f];return P*(k=="desc"?-1:1)}}return r.index-o.index}function Of(r,o,u,f){for(var v=-1,b=r.length,w=u.length,x=-1,P=o.length,k=gt(b-w,0),B=M(P+k),U=!f;++x<P;)B[x]=o[x];for(;++v<w;)(U||v<b)&&(B[u[v]]=r[v]);for(;k--;)B[x++]=r[v++];return B}function Rf(r,o,u,f){for(var v=-1,b=r.length,w=-1,x=u.length,P=-1,k=o.length,B=gt(b-x,0),U=M(B+k),X=!f;++v<B;)U[v]=r[v];for(var ne=v;++P<k;)U[ne+P]=o[P];for(;++w<x;)(X||v<b)&&(U[ne+u[w]]=r[v++]);return U}function kt(r,o){var u=-1,f=r.length;for(o||(o=M(f));++u<f;)o[u]=r[u];return o}function Cr(r,o,u,f){var v=!u;u||(u={});for(var b=-1,w=o.length;++b<w;){var x=o[b],P=f?f(u[x],r[x],x,u,r):t;P===t&&(P=r[x]),v?Lr(u,x,P):Ma(u,x,P)}return u}function g0(r,o){return Cr(r,Hi(r),o)}function v0(r,o){return Cr(r,Wf(r),o)}function Lo(r,o){return function(u,f){var v=Se(u)?Ey:jm,b=o?o():{};return v(u,r,ce(f,2),b)}}function Zn(r){return Oe(function(o,u){var f=-1,v=u.length,b=v>1?u[v-1]:t,w=v>2?u[2]:t;for(b=r.length>3&&typeof b=="function"?(v--,b):t,w&&Mt(u[0],u[1],w)&&(b=v<3?t:b,v=1),o=Ve(o);++f<v;){var x=u[f];x&&r(o,x,f,b)}return o})}function Af(r,o){return function(u,f){if(u==null)return u;if(!Bt(u))return r(u,f);for(var v=u.length,b=o?v:-1,w=Ve(u);(o?b--:++b<v)&&f(w[b],b,w)!==!1;);return u}}function Pf(r){return function(o,u,f){for(var v=-1,b=Ve(o),w=f(o),x=w.length;x--;){var P=w[r?x:++v];if(u(b[P],P,b)===!1)break}return o}}function y0(r,o,u){var f=o&F,v=Ba(r);function b(){var w=this&&this!==Et&&this instanceof b?v:r;return w.apply(f?u:this,arguments)}return b}function Df(r){return function(o){o=Ne(o);var u=qn(o)?gr(o):t,f=u?u[0]:o.charAt(0),v=u?cn(u,1).join(""):o.slice(1);return f[r]()+v}}function Qn(r){return function(o){return ii(Ad(Rd(o).replace(iy,"")),r,"")}}function Ba(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Xn(r.prototype),f=r.apply(u,o);return nt(f)?f:u}}function m0(r,o,u){var f=Ba(r);function v(){for(var b=arguments.length,w=M(b),x=b,P=ea(v);x--;)w[x]=arguments[x];var k=b<3&&w[0]!==P&&w[b-1]!==P?[]:nn(w,P);if(b-=k.length,b<u)return Nf(r,o,jo,v.placeholder,t,w,k,t,t,u-b);var B=this&&this!==Et&&this instanceof v?f:r;return Yt(B,this,w)}return v}function If(r){return function(o,u,f){var v=Ve(o);if(!Bt(o)){var b=ce(u,3);o=mt(o),u=function(x){return b(v[x],x,v)}}var w=r(o,u,f);return w>-1?v[b?o[w]:w]:t}}function Ff(r){return kr(function(o){var u=o.length,f=u,v=ar.prototype.thru;for(r&&o.reverse();f--;){var b=o[f];if(typeof b!="function")throw new nr(c);if(v&&!w&&Uo(b)=="wrapper")var w=new ar([],!0)}for(f=w?f:u;++f<u;){b=o[f];var x=Uo(b),P=x=="wrapper"?Wi(b):t;P&&qi(P[0])&&P[1]==(G|$|A|Y)&&!P[4].length&&P[9]==1?w=w[Uo(P[0])].apply(w,P[3]):w=b.length==1&&qi(b)?w[x]():w.thru(b)}return function(){var k=arguments,B=k[0];if(w&&k.length==1&&Se(B))return w.plant(B).value();for(var U=0,X=u?o[U].apply(this,k):B;++U<u;)X=o[U].call(this,X);return X}})}function jo(r,o,u,f,v,b,w,x,P,k){var B=o&G,U=o&F,X=o&D,ne=o&($|j),de=o&ie,Ce=X?t:Ba(r);function pe(){for(var Ae=arguments.length,De=M(Ae),Jt=Ae;Jt--;)De[Jt]=arguments[Jt];if(ne)var Nt=ea(pe),Xt=Py(De,Nt);if(f&&(De=Of(De,f,v,ne)),b&&(De=Rf(De,b,w,ne)),Ae-=Xt,ne&&Ae<k){var lt=nn(De,Nt);return Nf(r,o,jo,pe.placeholder,u,De,lt,x,P,k-Ae)}var mr=U?u:this,Hr=X?mr[r]:r;return Ae=De.length,x?De=j0(De,x):de&&Ae>1&&De.reverse(),B&&P<Ae&&(De.length=P),this&&this!==Et&&this instanceof pe&&(Hr=Ce||Ba(Hr)),Hr.apply(mr,De)}return pe}function $f(r,o){return function(u,f){return Ym(u,r,o(f),{})}}function ko(r,o){return function(u,f){var v;if(u===t&&f===t)return o;if(u!==t&&(v=u),f!==t){if(v===t)return f;typeof u=="string"||typeof f=="string"?(u=Vt(u),f=Vt(f)):(u=bf(u),f=bf(f)),v=r(u,f)}return v}}function Li(r){return kr(function(o){return o=tt(o,zt(ce())),Oe(function(u){var f=this;return r(o,function(v){return Yt(v,f,u)})})})}function Bo(r,o){o=o===t?" ":Vt(o);var u=o.length;if(u<2)return u?Pi(o,r):o;var f=Pi(o,Co(r/Yn(o)));return qn(o)?cn(gr(f),0,r).join(""):f.slice(0,r)}function b0(r,o,u,f){var v=o&F,b=Ba(r);function w(){for(var x=-1,P=arguments.length,k=-1,B=f.length,U=M(B+P),X=this&&this!==Et&&this instanceof w?b:r;++k<B;)U[k]=f[k];for(;P--;)U[k++]=arguments[++x];return Yt(X,v?u:this,U)}return w}function Mf(r){return function(o,u,f){return f&&typeof f!="number"&&Mt(o,u,f)&&(u=f=t),o=Ur(o),u===t?(u=o,o=0):u=Ur(u),f=f===t?o<u?1:-1:Ur(f),a0(o,u,f,r)}}function Wo(r){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=ur(o),u=ur(u)),r(o,u)}}function Nf(r,o,u,f,v,b,w,x,P,k){var B=o&$,U=B?w:t,X=B?t:w,ne=B?b:t,de=B?t:b;o|=B?A:K,o&=~(B?K:A),o&W||(o&=~(F|D));var Ce=[r,o,v,ne,U,de,X,x,P,k],pe=u.apply(t,Ce);return qi(r)&&Vf(pe,Ce),pe.placeholder=f,Kf(pe,r,o)}function ji(r){var o=ht[r];return function(u,f){if(u=ur(u),f=f==null?0:Tt(Te(f),292),f&&Vl(u)){var v=(Ne(u)+"e").split("e"),b=o(v[0]+"e"+(+v[1]+f));return v=(Ne(b)+"e").split("e"),+(v[0]+"e"+(+v[1]-f))}return o(u)}}var _0=Kn&&1/vo(new Kn([,-0]))[1]==Ue?function(r){return new Kn(r)}:su;function Lf(r){return function(o){var u=xt(o);return u==qe?hi(o):u==pt?Ly(o):Ay(o,r(o))}}function jr(r,o,u,f,v,b,w,x){var P=o&D;if(!P&&typeof r!="function")throw new nr(c);var k=f?f.length:0;if(k||(o&=~(A|K),f=v=t),w=w===t?w:gt(Te(w),0),x=x===t?x:Te(x),k-=v?v.length:0,o&K){var B=f,U=v;f=v=t}var X=P?t:Wi(r),ne=[r,o,u,f,v,B,U,b,w,x];if(X&&M0(ne,X),r=ne[0],o=ne[1],u=ne[2],f=ne[3],v=ne[4],x=ne[9]=ne[9]===t?P?0:r.length:gt(ne[9]-k,0),!x&&o&($|j)&&(o&=~($|j)),!o||o==F)var de=y0(r,o,u);else o==$||o==j?de=m0(r,o,x):(o==A||o==(F|A))&&!v.length?de=b0(r,o,u,f):de=jo.apply(t,ne);var Ce=X?yf:Vf;return Kf(Ce(de,ne),r,o)}function jf(r,o,u,f){return r===t||yr(r,Vn[u])&&!He.call(f,u)?o:r}function kf(r,o,u,f,v,b){return nt(r)&&nt(o)&&(b.set(o,r),$o(r,o,t,kf,b),b.delete(o)),r}function E0(r){return Ha(r)?t:r}function Bf(r,o,u,f,v,b){var w=u&T,x=r.length,P=o.length;if(x!=P&&!(w&&P>x))return!1;var k=b.get(r),B=b.get(o);if(k&&B)return k==o&&B==r;var U=-1,X=!0,ne=u&C?new Pn:t;for(b.set(r,o),b.set(o,r);++U<x;){var de=r[U],Ce=o[U];if(f)var pe=w?f(Ce,de,U,o,r,b):f(de,Ce,U,r,o,b);if(pe!==t){if(pe)continue;X=!1;break}if(ne){if(!ui(o,function(Ae,De){if(!Aa(ne,De)&&(de===Ae||v(de,Ae,u,f,b)))return ne.push(De)})){X=!1;break}}else if(!(de===Ce||v(de,Ce,u,f,b))){X=!1;break}}return b.delete(r),b.delete(o),X}function S0(r,o,u,f,v,b,w){switch(u){case Tr:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Fr:return!(r.byteLength!=o.byteLength||!b(new So(r),new So(o)));case ue:case me:case it:return yr(+r,+o);case J:return r.name==o.name&&r.message==o.message;case bt:case Ir:return r==o+"";case qe:var x=hi;case pt:var P=f&T;if(x||(x=vo),r.size!=o.size&&!P)return!1;var k=w.get(r);if(k)return k==o;f|=C,w.set(r,o);var B=Bf(x(r),x(o),f,v,b,w);return w.delete(r),B;case wr:if($a)return $a.call(r)==$a.call(o)}return!1}function w0(r,o,u,f,v,b){var w=u&T,x=ki(r),P=x.length,k=ki(o),B=k.length;if(P!=B&&!w)return!1;for(var U=P;U--;){var X=x[U];if(!(w?X in o:He.call(o,X)))return!1}var ne=b.get(r),de=b.get(o);if(ne&&de)return ne==o&&de==r;var Ce=!0;b.set(r,o),b.set(o,r);for(var pe=w;++U<P;){X=x[U];var Ae=r[X],De=o[X];if(f)var Jt=w?f(De,Ae,X,o,r,b):f(Ae,De,X,r,o,b);if(!(Jt===t?Ae===De||v(Ae,De,u,f,b):Jt)){Ce=!1;break}pe||(pe=X=="constructor")}if(Ce&&!pe){var Nt=r.constructor,Xt=o.constructor;Nt!=Xt&&"constructor"in r&&"constructor"in o&&!(typeof Nt=="function"&&Nt instanceof Nt&&typeof Xt=="function"&&Xt instanceof Xt)&&(Ce=!1)}return b.delete(r),b.delete(o),Ce}function kr(r){return zi(Yf(r,t,td),r+"")}function ki(r){return of(r,mt,Hi)}function Bi(r){return of(r,Wt,Wf)}var Wi=Ro?function(r){return Ro.get(r)}:su;function Uo(r){for(var o=r.name+"",u=Jn[o],f=He.call(Jn,o)?u.length:0;f--;){var v=u[f],b=v.func;if(b==null||b==r)return v.name}return o}function ea(r){var o=He.call(y,"placeholder")?y:r;return o.placeholder}function ce(){var r=y.iteratee||au;return r=r===au?cf:r,arguments.length?r(arguments[0],arguments[1]):r}function Ho(r,o){var u=r.__data__;return D0(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Ui(r){for(var o=mt(r),u=o.length;u--;){var f=o[u],v=r[f];o[u]=[f,v,Gf(v)]}return o}function Fn(r,o){var u=$y(r,o);return uf(u)?u:t}function T0(r){var o=He.call(r,Rn),u=r[Rn];try{r[Rn]=t;var f=!0}catch{}var v=_o.call(r);return f&&(o?r[Rn]=u:delete r[Rn]),v}var Hi=vi?function(r){return r==null?[]:(r=Ve(r),tn(vi(r),function(o){return Yl.call(r,o)}))}:iu,Wf=vi?function(r){for(var o=[];r;)rn(o,Hi(r)),r=wo(r);return o}:iu,xt=$t;(yi&&xt(new yi(new ArrayBuffer(1)))!=Tr||Da&&xt(new Da)!=qe||mi&&xt(mi.resolve())!=er||Kn&&xt(new Kn)!=pt||Ia&&xt(new Ia)!=qt)&&(xt=function(r){var o=$t(r),u=o==It?r.constructor:t,f=u?$n(u):"";if(f)switch(f){case sm:return Tr;case im:return qe;case um:return er;case cm:return pt;case lm:return qt}return o});function x0(r,o,u){for(var f=-1,v=u.length;++f<v;){var b=u[f],w=b.size;switch(b.type){case"drop":r+=w;break;case"dropRight":o-=w;break;case"take":o=Tt(o,r+w);break;case"takeRight":r=gt(r,o-w);break}}return{start:r,end:o}}function C0(r){var o=r.match(oe);return o?o[1].split(ee):[]}function Uf(r,o,u){o=un(o,r);for(var f=-1,v=o.length,b=!1;++f<v;){var w=Or(o[f]);if(!(b=r!=null&&u(r,w)))break;r=r[w]}return b||++f!=v?b:(v=r==null?0:r.length,!!v&&Jo(v)&&Br(w,v)&&(Se(r)||Mn(r)))}function O0(r){var o=r.length,u=new r.constructor(o);return o&&typeof r[0]=="string"&&He.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function Hf(r){return typeof r.constructor=="function"&&!Wa(r)?Xn(wo(r)):{}}function R0(r,o,u){var f=r.constructor;switch(o){case Fr:return Ni(r);case ue:case me:return new f(+r);case Tr:return f0(r,u);case mn:case bn:case _n:case En:case dr:case $r:case _t:case pr:case hr:return xf(r,u);case qe:return new f;case it:case Ir:return new f(r);case bt:return d0(r);case pt:return new f;case wr:return p0(r)}}function A0(r,o){var u=o.length;if(!u)return r;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),r.replace(ae,`{
|
|
15
|
+
*/cs.exports;(function(e,n){(function(){var t,a="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",y=1,_=2,E=4,T=1,x=2,D=1,P=2,j=4,M=8,k=16,O=32,z=64,H=128,Y=256,te=512,We=30,Te="...",st=800,X=16,Pe=1,it=2,Qe=3,Ge=1/0,rt=9007199254740991,qt=17976931348623157e292,W=0/0,q=4294967295,de=q-1,le=q>>>1,se=[["ary",H],["bind",D],["bindKey",P],["curry",M],["curryRight",k],["flip",te],["partial",O],["partialRight",z],["rearg",Y]],fe="[object Arguments]",ne="[object Array]",ce="[object AsyncFunction]",ue="[object Boolean]",he="[object Date]",ge="[object DOMException]",K="[object Error]",F="[object Function]",ze="[object GeneratorFunction]",qe="[object Map]",yt="[object Number]",Ha="[object Null]",Yt="[object Object]",nn="[object Promise]",Ws="[object Proxy]",or="[object RegExp]",xt="[object Set]",an="[object String]",on="[object Symbol]",Ga="[object Undefined]",Sr="[object WeakMap]",Us="[object WeakSet]",sn="[object ArrayBuffer]",Wr="[object DataView]",na="[object Float32Array]",aa="[object Float64Array]",oa="[object Int8Array]",sa="[object Int16Array]",un="[object Int32Array]",Cn="[object Uint8Array]",gr="[object Uint8ClampedArray]",cn="[object Uint16Array]",ln="[object Uint32Array]",qa=/\b__p \+= '';/g,Hs=/\b(__p \+=) '' \+/g,Ya=/(__e\(.*?\)|\b__t\)) \+\n'';/g,za=/&(?:amp|lt|gt|quot|#39);/g,ia=/[&<>"']/g,Va=RegExp(za.source),Gs=RegExp(ia.source),qs=/<%-([\s\S]+?)%>/g,Ka=/<%([\s\S]+?)%>/g,Ja=/<%=([\s\S]+?)%>/g,Ys=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zs=/^\w*$/,Vs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/[\\^$.*+?()[\]{}|]/g,U=RegExp(w.source),J=/^\s+/,ie=/\s/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,Ce=/,? & /,Ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,Xe=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zt=/\w*$/,Ur=/^[-+]0x[0-9a-f]+$/i,Xa=/^0b[01]+$/i,sr=/^\[object .+?Constructor\]$/,Av=/^0o[0-7]+$/i,Pv=/^(?:0|[1-9]\d*)$/,Dv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Za=/($^)/,Iv=/['\n\r\u2028\u2029\\]/g,Qa="\\ud800-\\udfff",Fv="\\u0300-\\u036f",$v="\\ufe20-\\ufe2f",Mv="\\u20d0-\\u20ff",el=Fv+$v+Mv,tl="\\u2700-\\u27bf",rl="a-z\\xdf-\\xf6\\xf8-\\xff",Lv="\\xac\\xb1\\xd7\\xf7",Nv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kv="\\u2000-\\u206f",jv=" \\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",nl="A-Z\\xc0-\\xd6\\xd8-\\xde",al="\\ufe0e\\ufe0f",ol=Lv+Nv+kv+jv,Ks="['’]",Bv="["+Qa+"]",sl="["+ol+"]",eo="["+el+"]",il="\\d+",Wv="["+tl+"]",ul="["+rl+"]",cl="[^"+Qa+ol+il+tl+rl+nl+"]",Js="\\ud83c[\\udffb-\\udfff]",Uv="(?:"+eo+"|"+Js+")",ll="[^"+Qa+"]",Xs="(?:\\ud83c[\\udde6-\\uddff]){2}",Zs="[\\ud800-\\udbff][\\udc00-\\udfff]",xn="["+nl+"]",fl="\\u200d",dl="(?:"+ul+"|"+cl+")",Hv="(?:"+xn+"|"+cl+")",pl="(?:"+Ks+"(?:d|ll|m|re|s|t|ve))?",hl="(?:"+Ks+"(?:D|LL|M|RE|S|T|VE))?",gl=Uv+"?",vl="["+al+"]?",Gv="(?:"+fl+"(?:"+[ll,Xs,Zs].join("|")+")"+vl+gl+")*",qv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ml=vl+gl+Gv,zv="(?:"+[Wv,Xs,Zs].join("|")+")"+ml,Vv="(?:"+[ll+eo+"?",eo,Xs,Zs,Bv].join("|")+")",Kv=RegExp(Ks,"g"),Jv=RegExp(eo,"g"),Qs=RegExp(Js+"(?="+Js+")|"+Vv+ml,"g"),Xv=RegExp([xn+"?"+ul+"+"+pl+"(?="+[sl,xn,"$"].join("|")+")",Hv+"+"+hl+"(?="+[sl,xn+dl,"$"].join("|")+")",xn+"?"+dl+"+"+pl,xn+"+"+hl,Yv,qv,il,zv].join("|"),"g"),Zv=RegExp("["+fl+Qa+el+al+"]"),Qv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,em=["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"],tm=-1,Ve={};Ve[na]=Ve[aa]=Ve[oa]=Ve[sa]=Ve[un]=Ve[Cn]=Ve[gr]=Ve[cn]=Ve[ln]=!0,Ve[fe]=Ve[ne]=Ve[sn]=Ve[ue]=Ve[Wr]=Ve[he]=Ve[K]=Ve[F]=Ve[qe]=Ve[yt]=Ve[Yt]=Ve[or]=Ve[xt]=Ve[an]=Ve[Sr]=!1;var Ye={};Ye[fe]=Ye[ne]=Ye[sn]=Ye[Wr]=Ye[ue]=Ye[he]=Ye[na]=Ye[aa]=Ye[oa]=Ye[sa]=Ye[un]=Ye[qe]=Ye[yt]=Ye[Yt]=Ye[or]=Ye[xt]=Ye[an]=Ye[on]=Ye[Cn]=Ye[gr]=Ye[cn]=Ye[ln]=!0,Ye[K]=Ye[F]=Ye[Sr]=!1;var rm={À:"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"},nm={"&":"&","<":"<",">":">",'"':""","'":"'"},am={"&":"&","<":"<",">":">",""":'"',"'":"'"},om={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sm=parseFloat,im=parseInt,yl=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,um=typeof self=="object"&&self&&self.Object===Object&&self,gt=yl||um||Function("return this")(),ei=n&&!n.nodeType&&n,fn=ei&&!0&&e&&!e.nodeType&&e,bl=fn&&fn.exports===ei,ti=bl&&yl.process,Vt=function(){try{var R=fn&&fn.require&&fn.require("util").types;return R||ti&&ti.binding&&ti.binding("util")}catch{}}(),_l=Vt&&Vt.isArrayBuffer,El=Vt&&Vt.isDate,Sl=Vt&&Vt.isMap,wl=Vt&&Vt.isRegExp,Tl=Vt&&Vt.isSet,Cl=Vt&&Vt.isTypedArray;function Nt(R,$,I){switch(I.length){case 0:return R.call($);case 1:return R.call($,I[0]);case 2:return R.call($,I[0],I[1]);case 3:return R.call($,I[0],I[1],I[2])}return R.apply($,I)}function cm(R,$,I,Z){for(var pe=-1,Oe=R==null?0:R.length;++pe<Oe;){var ut=R[pe];$(Z,ut,I(ut),R)}return Z}function Kt(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z&&$(R[I],I,R)!==!1;);return R}function lm(R,$){for(var I=R==null?0:R.length;I--&&$(R[I],I,R)!==!1;);return R}function xl(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z;)if(!$(R[I],I,R))return!1;return!0}function Hr(R,$){for(var I=-1,Z=R==null?0:R.length,pe=0,Oe=[];++I<Z;){var ut=R[I];$(ut,I,R)&&(Oe[pe++]=ut)}return Oe}function to(R,$){var I=R==null?0:R.length;return!!I&&Rn(R,$,0)>-1}function ri(R,$,I){for(var Z=-1,pe=R==null?0:R.length;++Z<pe;)if(I($,R[Z]))return!0;return!1}function Ke(R,$){for(var I=-1,Z=R==null?0:R.length,pe=Array(Z);++I<Z;)pe[I]=$(R[I],I,R);return pe}function Gr(R,$){for(var I=-1,Z=$.length,pe=R.length;++I<Z;)R[pe+I]=$[I];return R}function ni(R,$,I,Z){var pe=-1,Oe=R==null?0:R.length;for(Z&&Oe&&(I=R[++pe]);++pe<Oe;)I=$(I,R[pe],pe,R);return I}function fm(R,$,I,Z){var pe=R==null?0:R.length;for(Z&&pe&&(I=R[--pe]);pe--;)I=$(I,R[pe],pe,R);return I}function ai(R,$){for(var I=-1,Z=R==null?0:R.length;++I<Z;)if($(R[I],I,R))return!0;return!1}var dm=oi("length");function pm(R){return R.split("")}function hm(R){return R.match(Ee)||[]}function Rl(R,$,I){var Z;return I(R,function(pe,Oe,ut){if($(pe,Oe,ut))return Z=Oe,!1}),Z}function ro(R,$,I,Z){for(var pe=R.length,Oe=I+(Z?1:-1);Z?Oe--:++Oe<pe;)if($(R[Oe],Oe,R))return Oe;return-1}function Rn(R,$,I){return $===$?xm(R,$,I):ro(R,Ol,I)}function gm(R,$,I,Z){for(var pe=I-1,Oe=R.length;++pe<Oe;)if(Z(R[pe],$))return pe;return-1}function Ol(R){return R!==R}function Al(R,$){var I=R==null?0:R.length;return I?ii(R,$)/I:W}function oi(R){return function($){return $==null?t:$[R]}}function si(R){return function($){return R==null?t:R[$]}}function Pl(R,$,I,Z,pe){return pe(R,function(Oe,ut,Ue){I=Z?(Z=!1,Oe):$(I,Oe,ut,Ue)}),I}function vm(R,$){var I=R.length;for(R.sort($);I--;)R[I]=R[I].value;return R}function ii(R,$){for(var I,Z=-1,pe=R.length;++Z<pe;){var Oe=$(R[Z]);Oe!==t&&(I=I===t?Oe:I+Oe)}return I}function ui(R,$){for(var I=-1,Z=Array(R);++I<R;)Z[I]=$(I);return Z}function mm(R,$){return Ke($,function(I){return[I,R[I]]})}function Dl(R){return R&&R.slice(0,Ml(R)+1).replace(J,"")}function kt(R){return function($){return R($)}}function ci(R,$){return Ke($,function(I){return R[I]})}function ua(R,$){return R.has($)}function Il(R,$){for(var I=-1,Z=R.length;++I<Z&&Rn($,R[I],0)>-1;);return I}function Fl(R,$){for(var I=R.length;I--&&Rn($,R[I],0)>-1;);return I}function ym(R,$){for(var I=R.length,Z=0;I--;)R[I]===$&&++Z;return Z}var bm=si(rm),_m=si(nm);function Em(R){return"\\"+om[R]}function Sm(R,$){return R==null?t:R[$]}function On(R){return Zv.test(R)}function wm(R){return Qv.test(R)}function Tm(R){for(var $,I=[];!($=R.next()).done;)I.push($.value);return I}function li(R){var $=-1,I=Array(R.size);return R.forEach(function(Z,pe){I[++$]=[pe,Z]}),I}function $l(R,$){return function(I){return R($(I))}}function qr(R,$){for(var I=-1,Z=R.length,pe=0,Oe=[];++I<Z;){var ut=R[I];(ut===$||ut===h)&&(R[I]=h,Oe[pe++]=I)}return Oe}function no(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=Z}),I}function Cm(R){var $=-1,I=Array(R.size);return R.forEach(function(Z){I[++$]=[Z,Z]}),I}function xm(R,$,I){for(var Z=I-1,pe=R.length;++Z<pe;)if(R[Z]===$)return Z;return-1}function Rm(R,$,I){for(var Z=I+1;Z--;)if(R[Z]===$)return Z;return Z}function An(R){return On(R)?Am(R):dm(R)}function ir(R){return On(R)?Pm(R):pm(R)}function Ml(R){for(var $=R.length;$--&&ie.test(R.charAt($)););return $}var Om=si(am);function Am(R){for(var $=Qs.lastIndex=0;Qs.test(R);)++$;return $}function Pm(R){return R.match(Qs)||[]}function Dm(R){return R.match(Xv)||[]}var Im=function R($){$=$==null?gt:Pn.defaults(gt.Object(),$,Pn.pick(gt,em));var I=$.Array,Z=$.Date,pe=$.Error,Oe=$.Function,ut=$.Math,Ue=$.Object,fi=$.RegExp,Fm=$.String,Jt=$.TypeError,ao=I.prototype,$m=Oe.prototype,Dn=Ue.prototype,oo=$["__core-js_shared__"],so=$m.toString,ke=Dn.hasOwnProperty,Mm=0,Ll=function(){var r=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),io=Dn.toString,Lm=so.call(Ue),Nm=gt._,km=fi("^"+so.call(ke).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uo=bl?$.Buffer:t,Yr=$.Symbol,co=$.Uint8Array,Nl=uo?uo.allocUnsafe:t,lo=$l(Ue.getPrototypeOf,Ue),kl=Ue.create,jl=Dn.propertyIsEnumerable,fo=ao.splice,Bl=Yr?Yr.isConcatSpreadable:t,ca=Yr?Yr.iterator:t,dn=Yr?Yr.toStringTag:t,po=function(){try{var r=mn(Ue,"defineProperty");return r({},"",{}),r}catch{}}(),jm=$.clearTimeout!==gt.clearTimeout&&$.clearTimeout,Bm=Z&&Z.now!==gt.Date.now&&Z.now,Wm=$.setTimeout!==gt.setTimeout&&$.setTimeout,ho=ut.ceil,go=ut.floor,di=Ue.getOwnPropertySymbols,Um=uo?uo.isBuffer:t,Wl=$.isFinite,Hm=ao.join,Gm=$l(Ue.keys,Ue),ct=ut.max,bt=ut.min,qm=Z.now,Ym=$.parseInt,Ul=ut.random,zm=ao.reverse,pi=mn($,"DataView"),la=mn($,"Map"),hi=mn($,"Promise"),In=mn($,"Set"),fa=mn($,"WeakMap"),da=mn(Ue,"create"),vo=fa&&new fa,Fn={},Vm=yn(pi),Km=yn(la),Jm=yn(hi),Xm=yn(In),Zm=yn(fa),mo=Yr?Yr.prototype:t,pa=mo?mo.valueOf:t,Hl=mo?mo.toString:t;function v(r){if(tt(r)&&!ve(r)&&!(r instanceof we)){if(r instanceof Xt)return r;if(ke.call(r,"__wrapped__"))return qf(r)}return new Xt(r)}var $n=function(){function r(){}return function(o){if(!Ze(o))return{};if(kl)return kl(o);r.prototype=o;var u=new r;return r.prototype=t,u}}();function yo(){}function Xt(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=t}v.templateSettings={escape:qs,evaluate:Ka,interpolate:Ja,variable:"",imports:{_:v}},v.prototype=yo.prototype,v.prototype.constructor=v,Xt.prototype=$n(yo.prototype),Xt.prototype.constructor=Xt;function we(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function Qm(){var r=new we(this.__wrapped__);return r.__actions__=It(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=It(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=It(this.__views__),r}function ey(){if(this.__filtered__){var r=new we(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function ty(){var r=this.__wrapped__.value(),o=this.__dir__,u=ve(r),f=o<0,g=u?r.length:0,m=pb(0,g,this.__views__),S=m.start,C=m.end,A=C-S,L=f?C:S-1,N=this.__iteratees__,B=N.length,V=0,ee=bt(A,this.__takeCount__);if(!u||!f&&g==A&&ee==A)return hf(r,this.__actions__);var ae=[];e:for(;A--&&V<ee;){L+=o;for(var be=-1,oe=r[L];++be<B;){var Se=N[be],xe=Se.iteratee,Wt=Se.type,At=xe(oe);if(Wt==it)oe=At;else if(!At){if(Wt==Pe)continue e;break e}}ae[V++]=oe}return ae}we.prototype=$n(yo.prototype),we.prototype.constructor=we;function pn(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function ry(){this.__data__=da?da(null):{},this.size=0}function ny(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function ay(r){var o=this.__data__;if(da){var u=o[r];return u===d?t:u}return ke.call(o,r)?o[r]:t}function oy(r){var o=this.__data__;return da?o[r]!==t:ke.call(o,r)}function sy(r,o){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=da&&o===t?d:o,this}pn.prototype.clear=ry,pn.prototype.delete=ny,pn.prototype.get=ay,pn.prototype.has=oy,pn.prototype.set=sy;function wr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function iy(){this.__data__=[],this.size=0}function uy(r){var o=this.__data__,u=bo(o,r);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():fo.call(o,u,1),--this.size,!0}function cy(r){var o=this.__data__,u=bo(o,r);return u<0?t:o[u][1]}function ly(r){return bo(this.__data__,r)>-1}function fy(r,o){var u=this.__data__,f=bo(u,r);return f<0?(++this.size,u.push([r,o])):u[f][1]=o,this}wr.prototype.clear=iy,wr.prototype.delete=uy,wr.prototype.get=cy,wr.prototype.has=ly,wr.prototype.set=fy;function Tr(r){var o=-1,u=r==null?0:r.length;for(this.clear();++o<u;){var f=r[o];this.set(f[0],f[1])}}function dy(){this.size=0,this.__data__={hash:new pn,map:new(la||wr),string:new pn}}function py(r){var o=Do(this,r).delete(r);return this.size-=o?1:0,o}function hy(r){return Do(this,r).get(r)}function gy(r){return Do(this,r).has(r)}function vy(r,o){var u=Do(this,r),f=u.size;return u.set(r,o),this.size+=u.size==f?0:1,this}Tr.prototype.clear=dy,Tr.prototype.delete=py,Tr.prototype.get=hy,Tr.prototype.has=gy,Tr.prototype.set=vy;function hn(r){var o=-1,u=r==null?0:r.length;for(this.__data__=new Tr;++o<u;)this.add(r[o])}function my(r){return this.__data__.set(r,d),this}function yy(r){return this.__data__.has(r)}hn.prototype.add=hn.prototype.push=my,hn.prototype.has=yy;function ur(r){var o=this.__data__=new wr(r);this.size=o.size}function by(){this.__data__=new wr,this.size=0}function _y(r){var o=this.__data__,u=o.delete(r);return this.size=o.size,u}function Ey(r){return this.__data__.get(r)}function Sy(r){return this.__data__.has(r)}function wy(r,o){var u=this.__data__;if(u instanceof wr){var f=u.__data__;if(!la||f.length<s-1)return f.push([r,o]),this.size=++u.size,this;u=this.__data__=new Tr(f)}return u.set(r,o),this.size=u.size,this}ur.prototype.clear=by,ur.prototype.delete=_y,ur.prototype.get=Ey,ur.prototype.has=Sy,ur.prototype.set=wy;function Gl(r,o){var u=ve(r),f=!u&&bn(r),g=!u&&!f&&Xr(r),m=!u&&!f&&!g&&kn(r),S=u||f||g||m,C=S?ui(r.length,Fm):[],A=C.length;for(var L in r)(o||ke.call(r,L))&&!(S&&(L=="length"||g&&(L=="offset"||L=="parent")||m&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||Or(L,A)))&&C.push(L);return C}function ql(r){var o=r.length;return o?r[Ci(0,o-1)]:t}function Ty(r,o){return Io(It(r),gn(o,0,r.length))}function Cy(r){return Io(It(r))}function gi(r,o,u){(u!==t&&!cr(r[o],u)||u===t&&!(o in r))&&Cr(r,o,u)}function ha(r,o,u){var f=r[o];(!(ke.call(r,o)&&cr(f,u))||u===t&&!(o in r))&&Cr(r,o,u)}function bo(r,o){for(var u=r.length;u--;)if(cr(r[u][0],o))return u;return-1}function xy(r,o,u,f){return zr(r,function(g,m,S){o(f,g,u(g),S)}),f}function Yl(r,o){return r&&mr(o,dt(o),r)}function Ry(r,o){return r&&mr(o,$t(o),r)}function Cr(r,o,u){o=="__proto__"&&po?po(r,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[o]=u}function vi(r,o){for(var u=-1,f=o.length,g=I(f),m=r==null;++u<f;)g[u]=m?t:Ji(r,o[u]);return g}function gn(r,o,u){return r===r&&(u!==t&&(r=r<=u?r:u),o!==t&&(r=r>=o?r:o)),r}function Zt(r,o,u,f,g,m){var S,C=o&y,A=o&_,L=o&E;if(u&&(S=g?u(r,f,g,m):u(r)),S!==t)return S;if(!Ze(r))return r;var N=ve(r);if(N){if(S=gb(r),!C)return It(r,S)}else{var B=_t(r),V=B==F||B==ze;if(Xr(r))return mf(r,C);if(B==Yt||B==fe||V&&!g){if(S=A||V?{}:Lf(r),!C)return A?ab(r,Ry(S,r)):nb(r,Yl(S,r))}else{if(!Ye[B])return g?r:{};S=vb(r,B,C)}}m||(m=new ur);var ee=m.get(r);if(ee)return ee;m.set(r,S),fd(r)?r.forEach(function(oe){S.add(Zt(oe,o,u,oe,r,m))}):cd(r)&&r.forEach(function(oe,Se){S.set(Se,Zt(oe,o,u,Se,r,m))});var ae=L?A?Li:Mi:A?$t:dt,be=N?t:ae(r);return Kt(be||r,function(oe,Se){be&&(Se=oe,oe=r[Se]),ha(S,Se,Zt(oe,o,u,Se,r,m))}),S}function Oy(r){var o=dt(r);return function(u){return zl(u,r,o)}}function zl(r,o,u){var f=u.length;if(r==null)return!f;for(r=Ue(r);f--;){var g=u[f],m=o[g],S=r[g];if(S===t&&!(g in r)||!m(S))return!1}return!0}function Vl(r,o,u){if(typeof r!="function")throw new Jt(c);return Ea(function(){r.apply(t,u)},o)}function ga(r,o,u,f){var g=-1,m=to,S=!0,C=r.length,A=[],L=o.length;if(!C)return A;u&&(o=Ke(o,kt(u))),f?(m=ri,S=!1):o.length>=s&&(m=ua,S=!1,o=new hn(o));e:for(;++g<C;){var N=r[g],B=u==null?N:u(N);if(N=f||N!==0?N:0,S&&B===B){for(var V=L;V--;)if(o[V]===B)continue e;A.push(N)}else m(o,B,f)||A.push(N)}return A}var zr=Sf(vr),Kl=Sf(yi,!0);function Ay(r,o){var u=!0;return zr(r,function(f,g,m){return u=!!o(f,g,m),u}),u}function _o(r,o,u){for(var f=-1,g=r.length;++f<g;){var m=r[f],S=o(m);if(S!=null&&(C===t?S===S&&!Bt(S):u(S,C)))var C=S,A=m}return A}function Py(r,o,u,f){var g=r.length;for(u=me(u),u<0&&(u=-u>g?0:g+u),f=f===t||f>g?g:me(f),f<0&&(f+=g),f=u>f?0:pd(f);u<f;)r[u++]=o;return r}function Jl(r,o){var u=[];return zr(r,function(f,g,m){o(f,g,m)&&u.push(f)}),u}function vt(r,o,u,f,g){var m=-1,S=r.length;for(u||(u=yb),g||(g=[]);++m<S;){var C=r[m];o>0&&u(C)?o>1?vt(C,o-1,u,f,g):Gr(g,C):f||(g[g.length]=C)}return g}var mi=wf(),Xl=wf(!0);function vr(r,o){return r&&mi(r,o,dt)}function yi(r,o){return r&&Xl(r,o,dt)}function Eo(r,o){return Hr(o,function(u){return Ar(r[u])})}function vn(r,o){o=Kr(o,r);for(var u=0,f=o.length;r!=null&&u<f;)r=r[yr(o[u++])];return u&&u==f?r:t}function Zl(r,o,u){var f=o(r);return ve(r)?f:Gr(f,u(r))}function Rt(r){return r==null?r===t?Ga:Ha:dn&&dn in Ue(r)?db(r):Cb(r)}function bi(r,o){return r>o}function Dy(r,o){return r!=null&&ke.call(r,o)}function Iy(r,o){return r!=null&&o in Ue(r)}function Fy(r,o,u){return r>=bt(o,u)&&r<ct(o,u)}function _i(r,o,u){for(var f=u?ri:to,g=r[0].length,m=r.length,S=m,C=I(m),A=1/0,L=[];S--;){var N=r[S];S&&o&&(N=Ke(N,kt(o))),A=bt(N.length,A),C[S]=!u&&(o||g>=120&&N.length>=120)?new hn(S&&N):t}N=r[0];var B=-1,V=C[0];e:for(;++B<g&&L.length<A;){var ee=N[B],ae=o?o(ee):ee;if(ee=u||ee!==0?ee:0,!(V?ua(V,ae):f(L,ae,u))){for(S=m;--S;){var be=C[S];if(!(be?ua(be,ae):f(r[S],ae,u)))continue e}V&&V.push(ae),L.push(ee)}}return L}function $y(r,o,u,f){return vr(r,function(g,m,S){o(f,u(g),m,S)}),f}function va(r,o,u){o=Kr(o,r),r=Bf(r,o);var f=r==null?r:r[yr(er(o))];return f==null?t:Nt(f,r,u)}function Ql(r){return tt(r)&&Rt(r)==fe}function My(r){return tt(r)&&Rt(r)==sn}function Ly(r){return tt(r)&&Rt(r)==he}function ma(r,o,u,f,g){return r===o?!0:r==null||o==null||!tt(r)&&!tt(o)?r!==r&&o!==o:Ny(r,o,u,f,ma,g)}function Ny(r,o,u,f,g,m){var S=ve(r),C=ve(o),A=S?ne:_t(r),L=C?ne:_t(o);A=A==fe?Yt:A,L=L==fe?Yt:L;var N=A==Yt,B=L==Yt,V=A==L;if(V&&Xr(r)){if(!Xr(o))return!1;S=!0,N=!1}if(V&&!N)return m||(m=new ur),S||kn(r)?Ff(r,o,u,f,g,m):lb(r,o,A,u,f,g,m);if(!(u&T)){var ee=N&&ke.call(r,"__wrapped__"),ae=B&&ke.call(o,"__wrapped__");if(ee||ae){var be=ee?r.value():r,oe=ae?o.value():o;return m||(m=new ur),g(be,oe,u,f,m)}}return V?(m||(m=new ur),fb(r,o,u,f,g,m)):!1}function ky(r){return tt(r)&&_t(r)==qe}function Ei(r,o,u,f){var g=u.length,m=g,S=!f;if(r==null)return!m;for(r=Ue(r);g--;){var C=u[g];if(S&&C[2]?C[1]!==r[C[0]]:!(C[0]in r))return!1}for(;++g<m;){C=u[g];var A=C[0],L=r[A],N=C[1];if(S&&C[2]){if(L===t&&!(A in r))return!1}else{var B=new ur;if(f)var V=f(L,N,A,r,o,B);if(!(V===t?ma(N,L,T|x,f,B):V))return!1}}return!0}function ef(r){if(!Ze(r)||_b(r))return!1;var o=Ar(r)?km:sr;return o.test(yn(r))}function jy(r){return tt(r)&&Rt(r)==or}function By(r){return tt(r)&&_t(r)==xt}function Wy(r){return tt(r)&&ko(r.length)&&!!Ve[Rt(r)]}function tf(r){return typeof r=="function"?r:r==null?Mt:typeof r=="object"?ve(r)?af(r[0],r[1]):nf(r):Td(r)}function Si(r){if(!_a(r))return Gm(r);var o=[];for(var u in Ue(r))ke.call(r,u)&&u!="constructor"&&o.push(u);return o}function Uy(r){if(!Ze(r))return Tb(r);var o=_a(r),u=[];for(var f in r)f=="constructor"&&(o||!ke.call(r,f))||u.push(f);return u}function wi(r,o){return r<o}function rf(r,o){var u=-1,f=Ft(r)?I(r.length):[];return zr(r,function(g,m,S){f[++u]=o(g,m,S)}),f}function nf(r){var o=ki(r);return o.length==1&&o[0][2]?kf(o[0][0],o[0][1]):function(u){return u===r||Ei(u,r,o)}}function af(r,o){return Bi(r)&&Nf(o)?kf(yr(r),o):function(u){var f=Ji(u,r);return f===t&&f===o?Xi(u,r):ma(o,f,T|x)}}function So(r,o,u,f,g){r!==o&&mi(o,function(m,S){if(g||(g=new ur),Ze(m))Hy(r,o,S,u,So,f,g);else{var C=f?f(Ui(r,S),m,S+"",r,o,g):t;C===t&&(C=m),gi(r,S,C)}},$t)}function Hy(r,o,u,f,g,m,S){var C=Ui(r,u),A=Ui(o,u),L=S.get(A);if(L){gi(r,u,L);return}var N=m?m(C,A,u+"",r,o,S):t,B=N===t;if(B){var V=ve(A),ee=!V&&Xr(A),ae=!V&&!ee&&kn(A);N=A,V||ee||ae?ve(C)?N=C:nt(C)?N=It(C):ee?(B=!1,N=mf(A,!0)):ae?(B=!1,N=yf(A,!0)):N=[]:Sa(A)||bn(A)?(N=C,bn(C)?N=hd(C):(!Ze(C)||Ar(C))&&(N=Lf(A))):B=!1}B&&(S.set(A,N),g(N,A,f,m,S),S.delete(A)),gi(r,u,N)}function of(r,o){var u=r.length;if(u)return o+=o<0?u:0,Or(o,u)?r[o]:t}function sf(r,o,u){o.length?o=Ke(o,function(m){return ve(m)?function(S){return vn(S,m.length===1?m[0]:m)}:m}):o=[Mt];var f=-1;o=Ke(o,kt(re()));var g=rf(r,function(m,S,C){var A=Ke(o,function(L){return L(m)});return{criteria:A,index:++f,value:m}});return vm(g,function(m,S){return rb(m,S,u)})}function Gy(r,o){return uf(r,o,function(u,f){return Xi(r,f)})}function uf(r,o,u){for(var f=-1,g=o.length,m={};++f<g;){var S=o[f],C=vn(r,S);u(C,S)&&ya(m,Kr(S,r),C)}return m}function qy(r){return function(o){return vn(o,r)}}function Ti(r,o,u,f){var g=f?gm:Rn,m=-1,S=o.length,C=r;for(r===o&&(o=It(o)),u&&(C=Ke(r,kt(u)));++m<S;)for(var A=0,L=o[m],N=u?u(L):L;(A=g(C,N,A,f))>-1;)C!==r&&fo.call(C,A,1),fo.call(r,A,1);return r}function cf(r,o){for(var u=r?o.length:0,f=u-1;u--;){var g=o[u];if(u==f||g!==m){var m=g;Or(g)?fo.call(r,g,1):Oi(r,g)}}return r}function Ci(r,o){return r+go(Ul()*(o-r+1))}function Yy(r,o,u,f){for(var g=-1,m=ct(ho((o-r)/(u||1)),0),S=I(m);m--;)S[f?m:++g]=r,r+=u;return S}function xi(r,o){var u="";if(!r||o<1||o>rt)return u;do o%2&&(u+=r),o=go(o/2),o&&(r+=r);while(o);return u}function _e(r,o){return Hi(jf(r,o,Mt),r+"")}function zy(r){return ql(jn(r))}function Vy(r,o){var u=jn(r);return Io(u,gn(o,0,u.length))}function ya(r,o,u,f){if(!Ze(r))return r;o=Kr(o,r);for(var g=-1,m=o.length,S=m-1,C=r;C!=null&&++g<m;){var A=yr(o[g]),L=u;if(A==="__proto__"||A==="constructor"||A==="prototype")return r;if(g!=S){var N=C[A];L=f?f(N,A,C):t,L===t&&(L=Ze(N)?N:Or(o[g+1])?[]:{})}ha(C,A,L),C=C[A]}return r}var lf=vo?function(r,o){return vo.set(r,o),r}:Mt,Ky=po?function(r,o){return po(r,"toString",{configurable:!0,enumerable:!1,value:Qi(o),writable:!0})}:Mt;function Jy(r){return Io(jn(r))}function Qt(r,o,u){var f=-1,g=r.length;o<0&&(o=-o>g?0:g+o),u=u>g?g:u,u<0&&(u+=g),g=o>u?0:u-o>>>0,o>>>=0;for(var m=I(g);++f<g;)m[f]=r[f+o];return m}function Xy(r,o){var u;return zr(r,function(f,g,m){return u=o(f,g,m),!u}),!!u}function wo(r,o,u){var f=0,g=r==null?f:r.length;if(typeof o=="number"&&o===o&&g<=le){for(;f<g;){var m=f+g>>>1,S=r[m];S!==null&&!Bt(S)&&(u?S<=o:S<o)?f=m+1:g=m}return g}return Ri(r,o,Mt,u)}function Ri(r,o,u,f){var g=0,m=r==null?0:r.length;if(m===0)return 0;o=u(o);for(var S=o!==o,C=o===null,A=Bt(o),L=o===t;g<m;){var N=go((g+m)/2),B=u(r[N]),V=B!==t,ee=B===null,ae=B===B,be=Bt(B);if(S)var oe=f||ae;else L?oe=ae&&(f||V):C?oe=ae&&V&&(f||!ee):A?oe=ae&&V&&!ee&&(f||!be):ee||be?oe=!1:oe=f?B<=o:B<o;oe?g=N+1:m=N}return bt(m,de)}function ff(r,o){for(var u=-1,f=r.length,g=0,m=[];++u<f;){var S=r[u],C=o?o(S):S;if(!u||!cr(C,A)){var A=C;m[g++]=S===0?0:S}}return m}function df(r){return typeof r=="number"?r:Bt(r)?W:+r}function jt(r){if(typeof r=="string")return r;if(ve(r))return Ke(r,jt)+"";if(Bt(r))return Hl?Hl.call(r):"";var o=r+"";return o=="0"&&1/r==-Ge?"-0":o}function Vr(r,o,u){var f=-1,g=to,m=r.length,S=!0,C=[],A=C;if(u)S=!1,g=ri;else if(m>=s){var L=o?null:ub(r);if(L)return no(L);S=!1,g=ua,A=new hn}else A=o?[]:C;e:for(;++f<m;){var N=r[f],B=o?o(N):N;if(N=u||N!==0?N:0,S&&B===B){for(var V=A.length;V--;)if(A[V]===B)continue e;o&&A.push(B),C.push(N)}else g(A,B,u)||(A!==C&&A.push(B),C.push(N))}return C}function Oi(r,o){return o=Kr(o,r),r=Bf(r,o),r==null||delete r[yr(er(o))]}function pf(r,o,u,f){return ya(r,o,u(vn(r,o)),f)}function To(r,o,u,f){for(var g=r.length,m=f?g:-1;(f?m--:++m<g)&&o(r[m],m,r););return u?Qt(r,f?0:m,f?m+1:g):Qt(r,f?m+1:0,f?g:m)}function hf(r,o){var u=r;return u instanceof we&&(u=u.value()),ni(o,function(f,g){return g.func.apply(g.thisArg,Gr([f],g.args))},u)}function Ai(r,o,u){var f=r.length;if(f<2)return f?Vr(r[0]):[];for(var g=-1,m=I(f);++g<f;)for(var S=r[g],C=-1;++C<f;)C!=g&&(m[g]=ga(m[g]||S,r[C],o,u));return Vr(vt(m,1),o,u)}function gf(r,o,u){for(var f=-1,g=r.length,m=o.length,S={};++f<g;){var C=f<m?o[f]:t;u(S,r[f],C)}return S}function Pi(r){return nt(r)?r:[]}function Di(r){return typeof r=="function"?r:Mt}function Kr(r,o){return ve(r)?r:Bi(r,o)?[r]:Gf(De(r))}var Zy=_e;function Jr(r,o,u){var f=r.length;return u=u===t?f:u,!o&&u>=f?r:Qt(r,o,u)}var vf=jm||function(r){return gt.clearTimeout(r)};function mf(r,o){if(o)return r.slice();var u=r.length,f=Nl?Nl(u):new r.constructor(u);return r.copy(f),f}function Ii(r){var o=new r.constructor(r.byteLength);return new co(o).set(new co(r)),o}function Qy(r,o){var u=o?Ii(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function eb(r){var o=new r.constructor(r.source,zt.exec(r));return o.lastIndex=r.lastIndex,o}function tb(r){return pa?Ue(pa.call(r)):{}}function yf(r,o){var u=o?Ii(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function bf(r,o){if(r!==o){var u=r!==t,f=r===null,g=r===r,m=Bt(r),S=o!==t,C=o===null,A=o===o,L=Bt(o);if(!C&&!L&&!m&&r>o||m&&S&&A&&!C&&!L||f&&S&&A||!u&&A||!g)return 1;if(!f&&!m&&!L&&r<o||L&&u&&g&&!f&&!m||C&&u&&g||!S&&g||!A)return-1}return 0}function rb(r,o,u){for(var f=-1,g=r.criteria,m=o.criteria,S=g.length,C=u.length;++f<S;){var A=bf(g[f],m[f]);if(A){if(f>=C)return A;var L=u[f];return A*(L=="desc"?-1:1)}}return r.index-o.index}function _f(r,o,u,f){for(var g=-1,m=r.length,S=u.length,C=-1,A=o.length,L=ct(m-S,0),N=I(A+L),B=!f;++C<A;)N[C]=o[C];for(;++g<S;)(B||g<m)&&(N[u[g]]=r[g]);for(;L--;)N[C++]=r[g++];return N}function Ef(r,o,u,f){for(var g=-1,m=r.length,S=-1,C=u.length,A=-1,L=o.length,N=ct(m-C,0),B=I(N+L),V=!f;++g<N;)B[g]=r[g];for(var ee=g;++A<L;)B[ee+A]=o[A];for(;++S<C;)(V||g<m)&&(B[ee+u[S]]=r[g++]);return B}function It(r,o){var u=-1,f=r.length;for(o||(o=I(f));++u<f;)o[u]=r[u];return o}function mr(r,o,u,f){var g=!u;u||(u={});for(var m=-1,S=o.length;++m<S;){var C=o[m],A=f?f(u[C],r[C],C,u,r):t;A===t&&(A=r[C]),g?Cr(u,C,A):ha(u,C,A)}return u}function nb(r,o){return mr(r,ji(r),o)}function ab(r,o){return mr(r,$f(r),o)}function Co(r,o){return function(u,f){var g=ve(u)?cm:xy,m=o?o():{};return g(u,r,re(f,2),m)}}function Mn(r){return _e(function(o,u){var f=-1,g=u.length,m=g>1?u[g-1]:t,S=g>2?u[2]:t;for(m=r.length>3&&typeof m=="function"?(g--,m):t,S&&Ot(u[0],u[1],S)&&(m=g<3?t:m,g=1),o=Ue(o);++f<g;){var C=u[f];C&&r(o,C,f,m)}return o})}function Sf(r,o){return function(u,f){if(u==null)return u;if(!Ft(u))return r(u,f);for(var g=u.length,m=o?g:-1,S=Ue(u);(o?m--:++m<g)&&f(S[m],m,S)!==!1;);return u}}function wf(r){return function(o,u,f){for(var g=-1,m=Ue(o),S=f(o),C=S.length;C--;){var A=S[r?C:++g];if(u(m[A],A,m)===!1)break}return o}}function ob(r,o,u){var f=o&D,g=ba(r);function m(){var S=this&&this!==gt&&this instanceof m?g:r;return S.apply(f?u:this,arguments)}return m}function Tf(r){return function(o){o=De(o);var u=On(o)?ir(o):t,f=u?u[0]:o.charAt(0),g=u?Jr(u,1).join(""):o.slice(1);return f[r]()+g}}function Ln(r){return function(o){return ni(Sd(Ed(o).replace(Kv,"")),r,"")}}function ba(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=$n(r.prototype),f=r.apply(u,o);return Ze(f)?f:u}}function sb(r,o,u){var f=ba(r);function g(){for(var m=arguments.length,S=I(m),C=m,A=Nn(g);C--;)S[C]=arguments[C];var L=m<3&&S[0]!==A&&S[m-1]!==A?[]:qr(S,A);if(m-=L.length,m<u)return Af(r,o,xo,g.placeholder,t,S,L,t,t,u-m);var N=this&&this!==gt&&this instanceof g?f:r;return Nt(N,this,S)}return g}function Cf(r){return function(o,u,f){var g=Ue(o);if(!Ft(o)){var m=re(u,3);o=dt(o),u=function(C){return m(g[C],C,g)}}var S=r(o,u,f);return S>-1?g[m?o[S]:S]:t}}function xf(r){return Rr(function(o){var u=o.length,f=u,g=Xt.prototype.thru;for(r&&o.reverse();f--;){var m=o[f];if(typeof m!="function")throw new Jt(c);if(g&&!S&&Po(m)=="wrapper")var S=new Xt([],!0)}for(f=S?f:u;++f<u;){m=o[f];var C=Po(m),A=C=="wrapper"?Ni(m):t;A&&Wi(A[0])&&A[1]==(H|M|O|Y)&&!A[4].length&&A[9]==1?S=S[Po(A[0])].apply(S,A[3]):S=m.length==1&&Wi(m)?S[C]():S.thru(m)}return function(){var L=arguments,N=L[0];if(S&&L.length==1&&ve(N))return S.plant(N).value();for(var B=0,V=u?o[B].apply(this,L):N;++B<u;)V=o[B].call(this,V);return V}})}function xo(r,o,u,f,g,m,S,C,A,L){var N=o&H,B=o&D,V=o&P,ee=o&(M|k),ae=o&te,be=V?t:ba(r);function oe(){for(var Se=arguments.length,xe=I(Se),Wt=Se;Wt--;)xe[Wt]=arguments[Wt];if(ee)var At=Nn(oe),Ut=ym(xe,At);if(f&&(xe=_f(xe,f,g,ee)),m&&(xe=Ef(xe,m,S,ee)),Se-=Ut,ee&&Se<L){var at=qr(xe,At);return Af(r,o,xo,oe.placeholder,u,xe,at,C,A,L-Se)}var lr=B?u:this,Dr=V?lr[r]:r;return Se=xe.length,C?xe=xb(xe,C):ae&&Se>1&&xe.reverse(),N&&A<Se&&(xe.length=A),this&&this!==gt&&this instanceof oe&&(Dr=be||ba(Dr)),Dr.apply(lr,xe)}return oe}function Rf(r,o){return function(u,f){return $y(u,r,o(f),{})}}function Ro(r,o){return function(u,f){var g;if(u===t&&f===t)return o;if(u!==t&&(g=u),f!==t){if(g===t)return f;typeof u=="string"||typeof f=="string"?(u=jt(u),f=jt(f)):(u=df(u),f=df(f)),g=r(u,f)}return g}}function Fi(r){return Rr(function(o){return o=Ke(o,kt(re())),_e(function(u){var f=this;return r(o,function(g){return Nt(g,f,u)})})})}function Oo(r,o){o=o===t?" ":jt(o);var u=o.length;if(u<2)return u?xi(o,r):o;var f=xi(o,ho(r/An(o)));return On(o)?Jr(ir(f),0,r).join(""):f.slice(0,r)}function ib(r,o,u,f){var g=o&D,m=ba(r);function S(){for(var C=-1,A=arguments.length,L=-1,N=f.length,B=I(N+A),V=this&&this!==gt&&this instanceof S?m:r;++L<N;)B[L]=f[L];for(;A--;)B[L++]=arguments[++C];return Nt(V,g?u:this,B)}return S}function Of(r){return function(o,u,f){return f&&typeof f!="number"&&Ot(o,u,f)&&(u=f=t),o=Pr(o),u===t?(u=o,o=0):u=Pr(u),f=f===t?o<u?1:-1:Pr(f),Yy(o,u,f,r)}}function Ao(r){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=tr(o),u=tr(u)),r(o,u)}}function Af(r,o,u,f,g,m,S,C,A,L){var N=o&M,B=N?S:t,V=N?t:S,ee=N?m:t,ae=N?t:m;o|=N?O:z,o&=~(N?z:O),o&j||(o&=~(D|P));var be=[r,o,g,ee,B,ae,V,C,A,L],oe=u.apply(t,be);return Wi(r)&&Wf(oe,be),oe.placeholder=f,Uf(oe,r,o)}function $i(r){var o=ut[r];return function(u,f){if(u=tr(u),f=f==null?0:bt(me(f),292),f&&Wl(u)){var g=(De(u)+"e").split("e"),m=o(g[0]+"e"+(+g[1]+f));return g=(De(m)+"e").split("e"),+(g[0]+"e"+(+g[1]-f))}return o(u)}}var ub=In&&1/no(new In([,-0]))[1]==Ge?function(r){return new In(r)}:ru;function Pf(r){return function(o){var u=_t(o);return u==qe?li(o):u==xt?Cm(o):mm(o,r(o))}}function xr(r,o,u,f,g,m,S,C){var A=o&P;if(!A&&typeof r!="function")throw new Jt(c);var L=f?f.length:0;if(L||(o&=~(O|z),f=g=t),S=S===t?S:ct(me(S),0),C=C===t?C:me(C),L-=g?g.length:0,o&z){var N=f,B=g;f=g=t}var V=A?t:Ni(r),ee=[r,o,u,f,g,N,B,m,S,C];if(V&&wb(ee,V),r=ee[0],o=ee[1],u=ee[2],f=ee[3],g=ee[4],C=ee[9]=ee[9]===t?A?0:r.length:ct(ee[9]-L,0),!C&&o&(M|k)&&(o&=~(M|k)),!o||o==D)var ae=ob(r,o,u);else o==M||o==k?ae=sb(r,o,C):(o==O||o==(D|O))&&!g.length?ae=ib(r,o,u,f):ae=xo.apply(t,ee);var be=V?lf:Wf;return Uf(be(ae,ee),r,o)}function Df(r,o,u,f){return r===t||cr(r,Dn[u])&&!ke.call(f,u)?o:r}function If(r,o,u,f,g,m){return Ze(r)&&Ze(o)&&(m.set(o,r),So(r,o,t,If,m),m.delete(o)),r}function cb(r){return Sa(r)?t:r}function Ff(r,o,u,f,g,m){var S=u&T,C=r.length,A=o.length;if(C!=A&&!(S&&A>C))return!1;var L=m.get(r),N=m.get(o);if(L&&N)return L==o&&N==r;var B=-1,V=!0,ee=u&x?new hn:t;for(m.set(r,o),m.set(o,r);++B<C;){var ae=r[B],be=o[B];if(f)var oe=S?f(be,ae,B,o,r,m):f(ae,be,B,r,o,m);if(oe!==t){if(oe)continue;V=!1;break}if(ee){if(!ai(o,function(Se,xe){if(!ua(ee,xe)&&(ae===Se||g(ae,Se,u,f,m)))return ee.push(xe)})){V=!1;break}}else if(!(ae===be||g(ae,be,u,f,m))){V=!1;break}}return m.delete(r),m.delete(o),V}function lb(r,o,u,f,g,m,S){switch(u){case Wr:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case sn:return!(r.byteLength!=o.byteLength||!m(new co(r),new co(o)));case ue:case he:case yt:return cr(+r,+o);case K:return r.name==o.name&&r.message==o.message;case or:case an:return r==o+"";case qe:var C=li;case xt:var A=f&T;if(C||(C=no),r.size!=o.size&&!A)return!1;var L=S.get(r);if(L)return L==o;f|=x,S.set(r,o);var N=Ff(C(r),C(o),f,g,m,S);return S.delete(r),N;case on:if(pa)return pa.call(r)==pa.call(o)}return!1}function fb(r,o,u,f,g,m){var S=u&T,C=Mi(r),A=C.length,L=Mi(o),N=L.length;if(A!=N&&!S)return!1;for(var B=A;B--;){var V=C[B];if(!(S?V in o:ke.call(o,V)))return!1}var ee=m.get(r),ae=m.get(o);if(ee&&ae)return ee==o&&ae==r;var be=!0;m.set(r,o),m.set(o,r);for(var oe=S;++B<A;){V=C[B];var Se=r[V],xe=o[V];if(f)var Wt=S?f(xe,Se,V,o,r,m):f(Se,xe,V,r,o,m);if(!(Wt===t?Se===xe||g(Se,xe,u,f,m):Wt)){be=!1;break}oe||(oe=V=="constructor")}if(be&&!oe){var At=r.constructor,Ut=o.constructor;At!=Ut&&"constructor"in r&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Ut=="function"&&Ut instanceof Ut)&&(be=!1)}return m.delete(r),m.delete(o),be}function Rr(r){return Hi(jf(r,t,Vf),r+"")}function Mi(r){return Zl(r,dt,ji)}function Li(r){return Zl(r,$t,$f)}var Ni=vo?function(r){return vo.get(r)}:ru;function Po(r){for(var o=r.name+"",u=Fn[o],f=ke.call(Fn,o)?u.length:0;f--;){var g=u[f],m=g.func;if(m==null||m==r)return g.name}return o}function Nn(r){var o=ke.call(v,"placeholder")?v:r;return o.placeholder}function re(){var r=v.iteratee||eu;return r=r===eu?tf:r,arguments.length?r(arguments[0],arguments[1]):r}function Do(r,o){var u=r.__data__;return bb(o)?u[typeof o=="string"?"string":"hash"]:u.map}function ki(r){for(var o=dt(r),u=o.length;u--;){var f=o[u],g=r[f];o[u]=[f,g,Nf(g)]}return o}function mn(r,o){var u=Sm(r,o);return ef(u)?u:t}function db(r){var o=ke.call(r,dn),u=r[dn];try{r[dn]=t;var f=!0}catch{}var g=io.call(r);return f&&(o?r[dn]=u:delete r[dn]),g}var ji=di?function(r){return r==null?[]:(r=Ue(r),Hr(di(r),function(o){return jl.call(r,o)}))}:nu,$f=di?function(r){for(var o=[];r;)Gr(o,ji(r)),r=lo(r);return o}:nu,_t=Rt;(pi&&_t(new pi(new ArrayBuffer(1)))!=Wr||la&&_t(new la)!=qe||hi&&_t(hi.resolve())!=nn||In&&_t(new In)!=xt||fa&&_t(new fa)!=Sr)&&(_t=function(r){var o=Rt(r),u=o==Yt?r.constructor:t,f=u?yn(u):"";if(f)switch(f){case Vm:return Wr;case Km:return qe;case Jm:return nn;case Xm:return xt;case Zm:return Sr}return o});function pb(r,o,u){for(var f=-1,g=u.length;++f<g;){var m=u[f],S=m.size;switch(m.type){case"drop":r+=S;break;case"dropRight":o-=S;break;case"take":o=bt(o,r+S);break;case"takeRight":r=ct(r,o-S);break}}return{start:r,end:o}}function hb(r){var o=r.match(Ne);return o?o[1].split(Ce):[]}function Mf(r,o,u){o=Kr(o,r);for(var f=-1,g=o.length,m=!1;++f<g;){var S=yr(o[f]);if(!(m=r!=null&&u(r,S)))break;r=r[S]}return m||++f!=g?m:(g=r==null?0:r.length,!!g&&ko(g)&&Or(S,g)&&(ve(r)||bn(r)))}function gb(r){var o=r.length,u=new r.constructor(o);return o&&typeof r[0]=="string"&&ke.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function Lf(r){return typeof r.constructor=="function"&&!_a(r)?$n(lo(r)):{}}function vb(r,o,u){var f=r.constructor;switch(o){case sn:return Ii(r);case ue:case he:return new f(+r);case Wr:return Qy(r,u);case na:case aa:case oa:case sa:case un:case Cn:case gr:case cn:case ln:return yf(r,u);case qe:return new f;case yt:case an:return new f(r);case or:return eb(r);case xt:return new f;case on:return tb(r)}}function mb(r,o){var u=o.length;if(!u)return r;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),r.replace(Le,`{
|
|
16
16
|
/* [wrapped with `+o+`] */
|
|
17
|
-
`)}function P0(r){return Se(r)||Mn(r)||!!(zl&&r&&r[zl])}function Br(r,o){var u=typeof r;return o=o??et,!!o&&(u=="number"||u!="symbol"&&Uv.test(r))&&r>-1&&r%1==0&&r<o}function Mt(r,o,u){if(!nt(u))return!1;var f=typeof o;return(f=="number"?Bt(u)&&Br(o,u.length):f=="string"&&o in u)?yr(u[o],r):!1}function Gi(r,o){if(Se(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Kt(r)?!0:Oa.test(r)||!Ca.test(r)||o!=null&&r in Ve(o)}function D0(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function qi(r){var o=Uo(r),u=y[o];if(typeof u!="function"||!(o in Pe.prototype))return!1;if(r===u)return!0;var f=Wi(u);return!!f&&r===f[0]}function I0(r){return!!Hl&&Hl in r}var F0=mo?Wr:uu;function Wa(r){var o=r&&r.constructor,u=typeof o=="function"&&o.prototype||Vn;return r===u}function Gf(r){return r===r&&!nt(r)}function qf(r,o){return function(u){return u==null?!1:u[r]===o&&(o!==t||r in Ve(u))}}function $0(r){var o=Vo(r,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function M0(r,o){var u=r[1],f=o[1],v=u|f,b=v<(F|D|G),w=f==G&&u==$||f==G&&u==Y&&r[7].length<=o[8]||f==(G|Y)&&o[7].length<=o[8]&&u==$;if(!(b||w))return r;f&F&&(r[2]=o[2],v|=u&F?0:W);var x=o[3];if(x){var P=r[3];r[3]=P?Of(P,x,o[4]):x,r[4]=P?nn(r[3],h):o[4]}return x=o[5],x&&(P=r[5],r[5]=P?Rf(P,x,o[6]):x,r[6]=P?nn(r[5],h):o[6]),x=o[7],x&&(r[7]=x),f&G&&(r[8]=r[8]==null?o[8]:Tt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=v,r}function N0(r){var o=[];if(r!=null)for(var u in Ve(r))o.push(u);return o}function L0(r){return _o.call(r)}function Yf(r,o,u){return o=gt(o===t?r.length-1:o,0),function(){for(var f=arguments,v=-1,b=gt(f.length-o,0),w=M(b);++v<b;)w[v]=f[o+v];v=-1;for(var x=M(o+1);++v<o;)x[v]=f[v];return x[o]=u(w),Yt(r,this,x)}}function zf(r,o){return o.length<2?r:In(r,sr(o,0,-1))}function j0(r,o){for(var u=r.length,f=Tt(o.length,u),v=kt(r);f--;){var b=o[f];r[f]=Br(b,u)?v[b]:t}return r}function Yi(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Vf=Jf(yf),Ua=Qy||function(r,o){return Et.setTimeout(r,o)},zi=Jf(i0);function Kf(r,o,u){var f=o+"";return zi(r,A0(f,k0(C0(f),u)))}function Jf(r){var o=0,u=0;return function(){var f=nm(),v=Z-(f-u);if(u=f,v>0){if(++o>=st)return arguments[0]}else o=0;return r.apply(t,arguments)}}function Go(r,o){var u=-1,f=r.length,v=f-1;for(o=o===t?f:o;++u<o;){var b=Ai(u,v),w=r[b];r[b]=r[u],r[u]=w}return r.length=o,r}var Xf=$0(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(Ra,function(u,f,v,b){o.push(v?b.replace(be,"$1"):f||u)}),o});function Or(r){if(typeof r=="string"||Kt(r))return r;var o=r+"";return o=="0"&&1/r==-Ue?"-0":o}function $n(r){if(r!=null){try{return bo.call(r)}catch{}try{return r+""}catch{}}return""}function k0(r,o){return rr(le,function(u){var f="_."+u[0];o&u[1]&&!ho(r,f)&&r.push(f)}),r.sort()}function Zf(r){if(r instanceof Pe)return r.clone();var o=new ar(r.__wrapped__,r.__chain__);return o.__actions__=kt(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function B0(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=gt(Te(o),0);var f=r==null?0:r.length;if(!f||o<1)return[];for(var v=0,b=0,w=M(Co(f/o));v<f;)w[b++]=sr(r,v,v+=o);return w}function W0(r){for(var o=-1,u=r==null?0:r.length,f=0,v=[];++o<u;){var b=r[o];b&&(v[f++]=b)}return v}function U0(){var r=arguments.length;if(!r)return[];for(var o=M(r-1),u=arguments[0],f=r;f--;)o[f-1]=arguments[f];return rn(Se(u)?kt(u):[u],St(o,1))}var H0=Oe(function(r,o){return ct(r)?Na(r,St(o,1,ct,!0)):[]}),G0=Oe(function(r,o){var u=ir(o);return ct(u)&&(u=t),ct(r)?Na(r,St(o,1,ct,!0),ce(u,2)):[]}),q0=Oe(function(r,o){var u=ir(o);return ct(u)&&(u=t),ct(r)?Na(r,St(o,1,ct,!0),t,u):[]});function Y0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),sr(r,o<0?0:o,f)):[]}function z0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),o=f-o,sr(r,0,o<0?0:o)):[]}function V0(r,o){return r&&r.length?No(r,ce(o,3),!0,!0):[]}function K0(r,o){return r&&r.length?No(r,ce(o,3),!0):[]}function J0(r,o,u,f){var v=r==null?0:r.length;return v?(u&&typeof u!="number"&&Mt(r,o,u)&&(u=0,f=v),Um(r,o,u,f)):[]}function Qf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=u==null?0:Te(u);return v<0&&(v=gt(f+v,0)),go(r,ce(o,3),v)}function ed(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=f-1;return u!==t&&(v=Te(u),v=u<0?gt(f+v,0):Tt(v,f-1)),go(r,ce(o,3),v,!0)}function td(r){var o=r==null?0:r.length;return o?St(r,1):[]}function X0(r){var o=r==null?0:r.length;return o?St(r,Ue):[]}function Z0(r,o){var u=r==null?0:r.length;return u?(o=o===t?1:Te(o),St(r,o)):[]}function Q0(r){for(var o=-1,u=r==null?0:r.length,f={};++o<u;){var v=r[o];f[v[0]]=v[1]}return f}function rd(r){return r&&r.length?r[0]:t}function eb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=u==null?0:Te(u);return v<0&&(v=gt(f+v,0)),Gn(r,o,v)}function tb(r){var o=r==null?0:r.length;return o?sr(r,0,-1):[]}var rb=Oe(function(r){var o=tt(r,$i);return o.length&&o[0]===r[0]?Ti(o):[]}),nb=Oe(function(r){var o=ir(r),u=tt(r,$i);return o===ir(u)?o=t:u.pop(),u.length&&u[0]===r[0]?Ti(u,ce(o,2)):[]}),ab=Oe(function(r){var o=ir(r),u=tt(r,$i);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===r[0]?Ti(u,t,o):[]});function ob(r,o){return r==null?"":tm.call(r,o)}function ir(r){var o=r==null?0:r.length;return o?r[o-1]:t}function sb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var v=f;return u!==t&&(v=Te(u),v=v<0?gt(f+v,0):Tt(v,f-1)),o===o?ky(r,o,v):go(r,Ml,v,!0)}function ib(r,o){return r&&r.length?pf(r,Te(o)):t}var ub=Oe(nd);function nd(r,o){return r&&r.length&&o&&o.length?Ri(r,o):r}function cb(r,o,u){return r&&r.length&&o&&o.length?Ri(r,o,ce(u,2)):r}function lb(r,o,u){return r&&r.length&&o&&o.length?Ri(r,o,t,u):r}var fb=kr(function(r,o){var u=r==null?0:r.length,f=_i(r,o);return vf(r,tt(o,function(v){return Br(v,u)?+v:v}).sort(Cf)),f});function db(r,o){var u=[];if(!(r&&r.length))return u;var f=-1,v=[],b=r.length;for(o=ce(o,3);++f<b;){var w=r[f];o(w,f,r)&&(u.push(w),v.push(f))}return vf(r,v),u}function Vi(r){return r==null?r:om.call(r)}function pb(r,o,u){var f=r==null?0:r.length;return f?(u&&typeof u!="number"&&Mt(r,o,u)?(o=0,u=f):(o=o==null?0:Te(o),u=u===t?f:Te(u)),sr(r,o,u)):[]}function hb(r,o){return Mo(r,o)}function gb(r,o,u){return Di(r,o,ce(u,2))}function vb(r,o){var u=r==null?0:r.length;if(u){var f=Mo(r,o);if(f<u&&yr(r[f],o))return f}return-1}function yb(r,o){return Mo(r,o,!0)}function mb(r,o,u){return Di(r,o,ce(u,2),!0)}function bb(r,o){var u=r==null?0:r.length;if(u){var f=Mo(r,o,!0)-1;if(yr(r[f],o))return f}return-1}function _b(r){return r&&r.length?mf(r):[]}function Eb(r,o){return r&&r.length?mf(r,ce(o,2)):[]}function Sb(r){var o=r==null?0:r.length;return o?sr(r,1,o):[]}function wb(r,o,u){return r&&r.length?(o=u||o===t?1:Te(o),sr(r,0,o<0?0:o)):[]}function Tb(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:Te(o),o=f-o,sr(r,o<0?0:o,f)):[]}function xb(r,o){return r&&r.length?No(r,ce(o,3),!1,!0):[]}function Cb(r,o){return r&&r.length?No(r,ce(o,3)):[]}var Ob=Oe(function(r){return sn(St(r,1,ct,!0))}),Rb=Oe(function(r){var o=ir(r);return ct(o)&&(o=t),sn(St(r,1,ct,!0),ce(o,2))}),Ab=Oe(function(r){var o=ir(r);return o=typeof o=="function"?o:t,sn(St(r,1,ct,!0),t,o)});function Pb(r){return r&&r.length?sn(r):[]}function Db(r,o){return r&&r.length?sn(r,ce(o,2)):[]}function Ib(r,o){return o=typeof o=="function"?o:t,r&&r.length?sn(r,t,o):[]}function Ki(r){if(!(r&&r.length))return[];var o=0;return r=tn(r,function(u){if(ct(u))return o=gt(u.length,o),!0}),di(o,function(u){return tt(r,ci(u))})}function ad(r,o){if(!(r&&r.length))return[];var u=Ki(r);return o==null?u:tt(u,function(f){return Yt(o,t,f)})}var Fb=Oe(function(r,o){return ct(r)?Na(r,o):[]}),$b=Oe(function(r){return Fi(tn(r,ct))}),Mb=Oe(function(r){var o=ir(r);return ct(o)&&(o=t),Fi(tn(r,ct),ce(o,2))}),Nb=Oe(function(r){var o=ir(r);return o=typeof o=="function"?o:t,Fi(tn(r,ct),t,o)}),Lb=Oe(Ki);function jb(r,o){return Sf(r||[],o||[],Ma)}function kb(r,o){return Sf(r||[],o||[],ka)}var Bb=Oe(function(r){var o=r.length,u=o>1?r[o-1]:t;return u=typeof u=="function"?(r.pop(),u):t,ad(r,u)});function od(r){var o=y(r);return o.__chain__=!0,o}function Wb(r,o){return o(r),r}function qo(r,o){return o(r)}var Ub=kr(function(r){var o=r.length,u=o?r[0]:0,f=this.__wrapped__,v=function(b){return _i(b,r)};return o>1||this.__actions__.length||!(f instanceof Pe)||!Br(u)?this.thru(v):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:qo,args:[v],thisArg:t}),new ar(f,this.__chain__).thru(function(b){return o&&!b.length&&b.push(t),b}))});function Hb(){return od(this)}function Gb(){return new ar(this.value(),this.__chain__)}function qb(){this.__values__===t&&(this.__values__=bd(this.value()));var r=this.__index__>=this.__values__.length,o=r?t:this.__values__[this.__index__++];return{done:r,value:o}}function Yb(){return this}function zb(r){for(var o,u=this;u instanceof Po;){var f=Zf(u);f.__index__=0,f.__values__=t,o?v.__wrapped__=f:o=f;var v=f;u=u.__wrapped__}return v.__wrapped__=r,o}function Vb(){var r=this.__wrapped__;if(r instanceof Pe){var o=r;return this.__actions__.length&&(o=new Pe(this)),o=o.reverse(),o.__actions__.push({func:qo,args:[Vi],thisArg:t}),new ar(o,this.__chain__)}return this.thru(Vi)}function Kb(){return Ef(this.__wrapped__,this.__actions__)}var Jb=Lo(function(r,o,u){He.call(r,u)?++r[u]:Lr(r,u,1)});function Xb(r,o,u){var f=Se(r)?Fl:Wm;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}function Zb(r,o){var u=Se(r)?tn:nf;return u(r,ce(o,3))}var Qb=If(Qf),e_=If(ed);function t_(r,o){return St(Yo(r,o),1)}function r_(r,o){return St(Yo(r,o),Ue)}function n_(r,o,u){return u=u===t?1:Te(u),St(Yo(r,o),u)}function sd(r,o){var u=Se(r)?rr:on;return u(r,ce(o,3))}function id(r,o){var u=Se(r)?Sy:rf;return u(r,ce(o,3))}var a_=Lo(function(r,o,u){He.call(r,u)?r[u].push(o):Lr(r,u,[o])});function o_(r,o,u,f){r=Bt(r)?r:ra(r),u=u&&!f?Te(u):0;var v=r.length;return u<0&&(u=gt(v+u,0)),Xo(r)?u<=v&&r.indexOf(o,u)>-1:!!v&&Gn(r,o,u)>-1}var s_=Oe(function(r,o,u){var f=-1,v=typeof o=="function",b=Bt(r)?M(r.length):[];return on(r,function(w){b[++f]=v?Yt(o,w,u):La(w,o,u)}),b}),i_=Lo(function(r,o,u){Lr(r,u,o)});function Yo(r,o){var u=Se(r)?tt:lf;return u(r,ce(o,3))}function u_(r,o,u,f){return r==null?[]:(Se(o)||(o=o==null?[]:[o]),u=f?t:u,Se(u)||(u=u==null?[]:[u]),hf(r,o,u))}var c_=Lo(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function l_(r,o,u){var f=Se(r)?ii:Ll,v=arguments.length<3;return f(r,ce(o,4),u,v,on)}function f_(r,o,u){var f=Se(r)?wy:Ll,v=arguments.length<3;return f(r,ce(o,4),u,v,rf)}function d_(r,o){var u=Se(r)?tn:nf;return u(r,Ko(ce(o,3)))}function p_(r){var o=Se(r)?Zl:o0;return o(r)}function h_(r,o,u){(u?Mt(r,o,u):o===t)?o=1:o=Te(o);var f=Se(r)?Nm:s0;return f(r,o)}function g_(r){var o=Se(r)?Lm:u0;return o(r)}function v_(r){if(r==null)return 0;if(Bt(r))return Xo(r)?Yn(r):r.length;var o=xt(r);return o==qe||o==pt?r.size:Ci(r).length}function y_(r,o,u){var f=Se(r)?ui:c0;return u&&Mt(r,o,u)&&(o=t),f(r,ce(o,3))}var m_=Oe(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Mt(r,o[0],o[1])?o=[]:u>2&&Mt(o[0],o[1],o[2])&&(o=[o[0]]),hf(r,St(o,1),[])}),zo=Zy||function(){return Et.Date.now()};function b_(r,o){if(typeof o!="function")throw new nr(c);return r=Te(r),function(){if(--r<1)return o.apply(this,arguments)}}function ud(r,o,u){return o=u?t:o,o=r&&o==null?r.length:o,jr(r,G,t,t,t,t,o)}function cd(r,o){var u;if(typeof o!="function")throw new nr(c);return r=Te(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=t),u}}var Ji=Oe(function(r,o,u){var f=F;if(u.length){var v=nn(u,ea(Ji));f|=A}return jr(r,f,o,u,v)}),ld=Oe(function(r,o,u){var f=F|D;if(u.length){var v=nn(u,ea(ld));f|=A}return jr(o,f,r,u,v)});function fd(r,o,u){o=u?t:o;var f=jr(r,$,t,t,t,t,t,o);return f.placeholder=fd.placeholder,f}function dd(r,o,u){o=u?t:o;var f=jr(r,j,t,t,t,t,t,o);return f.placeholder=dd.placeholder,f}function pd(r,o,u){var f,v,b,w,x,P,k=0,B=!1,U=!1,X=!0;if(typeof r!="function")throw new nr(c);o=ur(o)||0,nt(u)&&(B=!!u.leading,U="maxWait"in u,b=U?gt(ur(u.maxWait)||0,o):b,X="trailing"in u?!!u.trailing:X);function ne(lt){var mr=f,Hr=v;return f=v=t,k=lt,w=r.apply(Hr,mr),w}function de(lt){return k=lt,x=Ua(Ae,o),B?ne(lt):w}function Ce(lt){var mr=lt-P,Hr=lt-k,Id=o-mr;return U?Tt(Id,b-Hr):Id}function pe(lt){var mr=lt-P,Hr=lt-k;return P===t||mr>=o||mr<0||U&&Hr>=b}function Ae(){var lt=zo();if(pe(lt))return De(lt);x=Ua(Ae,Ce(lt))}function De(lt){return x=t,X&&f?ne(lt):(f=v=t,w)}function Jt(){x!==t&&wf(x),k=0,f=P=v=x=t}function Nt(){return x===t?w:De(zo())}function Xt(){var lt=zo(),mr=pe(lt);if(f=arguments,v=this,P=lt,mr){if(x===t)return de(P);if(U)return wf(x),x=Ua(Ae,o),ne(P)}return x===t&&(x=Ua(Ae,o)),w}return Xt.cancel=Jt,Xt.flush=Nt,Xt}var __=Oe(function(r,o){return tf(r,1,o)}),E_=Oe(function(r,o,u){return tf(r,ur(o)||0,u)});function S_(r){return jr(r,ie)}function Vo(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new nr(c);var u=function(){var f=arguments,v=o?o.apply(this,f):f[0],b=u.cache;if(b.has(v))return b.get(v);var w=r.apply(this,f);return u.cache=b.set(v,w)||b,w};return u.cache=new(Vo.Cache||Nr),u}Vo.Cache=Nr;function Ko(r){if(typeof r!="function")throw new nr(c);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function w_(r){return cd(2,r)}var T_=l0(function(r,o){o=o.length==1&&Se(o[0])?tt(o[0],zt(ce())):tt(St(o,1),zt(ce()));var u=o.length;return Oe(function(f){for(var v=-1,b=Tt(f.length,u);++v<b;)f[v]=o[v].call(this,f[v]);return Yt(r,this,f)})}),Xi=Oe(function(r,o){var u=nn(o,ea(Xi));return jr(r,A,t,o,u)}),hd=Oe(function(r,o){var u=nn(o,ea(hd));return jr(r,K,t,o,u)}),x_=kr(function(r,o){return jr(r,Y,t,t,t,o)});function C_(r,o){if(typeof r!="function")throw new nr(c);return o=o===t?o:Te(o),Oe(r,o)}function O_(r,o){if(typeof r!="function")throw new nr(c);return o=o==null?0:gt(Te(o),0),Oe(function(u){var f=u[o],v=cn(u,0,o);return f&&rn(v,f),Yt(r,this,v)})}function R_(r,o,u){var f=!0,v=!0;if(typeof r!="function")throw new nr(c);return nt(u)&&(f="leading"in u?!!u.leading:f,v="trailing"in u?!!u.trailing:v),pd(r,o,{leading:f,maxWait:o,trailing:v})}function A_(r){return ud(r,1)}function P_(r,o){return Xi(Mi(o),r)}function D_(){if(!arguments.length)return[];var r=arguments[0];return Se(r)?r:[r]}function I_(r){return or(r,S)}function F_(r,o){return o=typeof o=="function"?o:t,or(r,S,o)}function $_(r){return or(r,m|S)}function M_(r,o){return o=typeof o=="function"?o:t,or(r,m|S,o)}function N_(r,o){return o==null||ef(r,o,mt(o))}function yr(r,o){return r===o||r!==r&&o!==o}var L_=Wo(wi),j_=Wo(function(r,o){return r>=o}),Mn=sf(function(){return arguments}())?sf:function(r){return ot(r)&&He.call(r,"callee")&&!Yl.call(r,"callee")},Se=M.isArray,k_=Ol?zt(Ol):zm;function Bt(r){return r!=null&&Jo(r.length)&&!Wr(r)}function ct(r){return ot(r)&&Bt(r)}function B_(r){return r===!0||r===!1||ot(r)&&$t(r)==ue}var ln=em||uu,W_=Rl?zt(Rl):Vm;function U_(r){return ot(r)&&r.nodeType===1&&!Ha(r)}function H_(r){if(r==null)return!0;if(Bt(r)&&(Se(r)||typeof r=="string"||typeof r.splice=="function"||ln(r)||ta(r)||Mn(r)))return!r.length;var o=xt(r);if(o==qe||o==pt)return!r.size;if(Wa(r))return!Ci(r).length;for(var u in r)if(He.call(r,u))return!1;return!0}function G_(r,o){return ja(r,o)}function q_(r,o,u){u=typeof u=="function"?u:t;var f=u?u(r,o):t;return f===t?ja(r,o,t,u):!!f}function Zi(r){if(!ot(r))return!1;var o=$t(r);return o==J||o==ge||typeof r.message=="string"&&typeof r.name=="string"&&!Ha(r)}function Y_(r){return typeof r=="number"&&Vl(r)}function Wr(r){if(!nt(r))return!1;var o=$t(r);return o==N||o==Ge||o==fe||o==Ea}function gd(r){return typeof r=="number"&&r==Te(r)}function Jo(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=et}function nt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function ot(r){return r!=null&&typeof r=="object"}var vd=Al?zt(Al):Jm;function z_(r,o){return r===o||xi(r,o,Ui(o))}function V_(r,o,u){return u=typeof u=="function"?u:t,xi(r,o,Ui(o),u)}function K_(r){return yd(r)&&r!=+r}function J_(r){if(F0(r))throw new _e(i);return uf(r)}function X_(r){return r===null}function Z_(r){return r==null}function yd(r){return typeof r=="number"||ot(r)&&$t(r)==it}function Ha(r){if(!ot(r)||$t(r)!=It)return!1;var o=wo(r);if(o===null)return!0;var u=He.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&bo.call(u)==Vy}var Qi=Pl?zt(Pl):Xm;function Q_(r){return gd(r)&&r>=-et&&r<=et}var md=Dl?zt(Dl):Zm;function Xo(r){return typeof r=="string"||!Se(r)&&ot(r)&&$t(r)==Ir}function Kt(r){return typeof r=="symbol"||ot(r)&&$t(r)==wr}var ta=Il?zt(Il):Qm;function e1(r){return r===t}function t1(r){return ot(r)&&xt(r)==qt}function r1(r){return ot(r)&&$t(r)==Sa}var n1=Wo(Oi),a1=Wo(function(r,o){return r<=o});function bd(r){if(!r)return[];if(Bt(r))return Xo(r)?gr(r):kt(r);if(Pa&&r[Pa])return Ny(r[Pa]());var o=xt(r),u=o==qe?hi:o==pt?vo:ra;return u(r)}function Ur(r){if(!r)return r===0?r:0;if(r=ur(r),r===Ue||r===-Ue){var o=r<0?-1:1;return o*Dt}return r===r?r:0}function Te(r){var o=Ur(r),u=o%1;return o===o?u?o-u:o:0}function _d(r){return r?Dn(Te(r),0,V):0}function ur(r){if(typeof r=="number")return r;if(Kt(r))return H;if(nt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=nt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=jl(r);var u=Cn.test(r);return u||Wv.test(r)?by(r.slice(2),u?2:8):Ft.test(r)?H:+r}function Ed(r){return Cr(r,Wt(r))}function o1(r){return r?Dn(Te(r),-et,et):r===0?r:0}function Ne(r){return r==null?"":Vt(r)}var s1=Zn(function(r,o){if(Wa(o)||Bt(o)){Cr(o,mt(o),r);return}for(var u in o)He.call(o,u)&&Ma(r,u,o[u])}),Sd=Zn(function(r,o){Cr(o,Wt(o),r)}),Zo=Zn(function(r,o,u,f){Cr(o,Wt(o),r,f)}),i1=Zn(function(r,o,u,f){Cr(o,mt(o),r,f)}),u1=kr(_i);function c1(r,o){var u=Xn(r);return o==null?u:Ql(u,o)}var l1=Oe(function(r,o){r=Ve(r);var u=-1,f=o.length,v=f>2?o[2]:t;for(v&&Mt(o[0],o[1],v)&&(f=1);++u<f;)for(var b=o[u],w=Wt(b),x=-1,P=w.length;++x<P;){var k=w[x],B=r[k];(B===t||yr(B,Vn[k])&&!He.call(r,k))&&(r[k]=b[k])}return r}),f1=Oe(function(r){return r.push(t,kf),Yt(wd,t,r)});function d1(r,o){return $l(r,ce(o,3),xr)}function p1(r,o){return $l(r,ce(o,3),Si)}function h1(r,o){return r==null?r:Ei(r,ce(o,3),Wt)}function g1(r,o){return r==null?r:af(r,ce(o,3),Wt)}function v1(r,o){return r&&xr(r,ce(o,3))}function y1(r,o){return r&&Si(r,ce(o,3))}function m1(r){return r==null?[]:Fo(r,mt(r))}function b1(r){return r==null?[]:Fo(r,Wt(r))}function eu(r,o,u){var f=r==null?t:In(r,o);return f===t?u:f}function _1(r,o){return r!=null&&Uf(r,o,Hm)}function tu(r,o){return r!=null&&Uf(r,o,Gm)}var E1=$f(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),r[o]=u},nu(Ut)),S1=$f(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=_o.call(o)),He.call(r,o)?r[o].push(u):r[o]=[u]},ce),w1=Oe(La);function mt(r){return Bt(r)?Xl(r):Ci(r)}function Wt(r){return Bt(r)?Xl(r,!0):e0(r)}function T1(r,o){var u={};return o=ce(o,3),xr(r,function(f,v,b){Lr(u,o(f,v,b),f)}),u}function x1(r,o){var u={};return o=ce(o,3),xr(r,function(f,v,b){Lr(u,v,o(f,v,b))}),u}var C1=Zn(function(r,o,u){$o(r,o,u)}),wd=Zn(function(r,o,u,f){$o(r,o,u,f)}),O1=kr(function(r,o){var u={};if(r==null)return u;var f=!1;o=tt(o,function(b){return b=un(b,r),f||(f=b.length>1),b}),Cr(r,Bi(r),u),f&&(u=or(u,m|_|S,E0));for(var v=o.length;v--;)Ii(u,o[v]);return u});function R1(r,o){return Td(r,Ko(ce(o)))}var A1=kr(function(r,o){return r==null?{}:r0(r,o)});function Td(r,o){if(r==null)return{};var u=tt(Bi(r),function(f){return[f]});return o=ce(o),gf(r,u,function(f,v){return o(f,v[0])})}function P1(r,o,u){o=un(o,r);var f=-1,v=o.length;for(v||(v=1,r=t);++f<v;){var b=r==null?t:r[Or(o[f])];b===t&&(f=v,b=u),r=Wr(b)?b.call(r):b}return r}function D1(r,o,u){return r==null?r:ka(r,o,u)}function I1(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:ka(r,o,u,f)}var xd=Lf(mt),Cd=Lf(Wt);function F1(r,o,u){var f=Se(r),v=f||ln(r)||ta(r);if(o=ce(o,4),u==null){var b=r&&r.constructor;v?u=f?new b:[]:nt(r)?u=Wr(b)?Xn(wo(r)):{}:u={}}return(v?rr:xr)(r,function(w,x,P){return o(u,w,x,P)}),u}function $1(r,o){return r==null?!0:Ii(r,o)}function M1(r,o,u){return r==null?r:_f(r,o,Mi(u))}function N1(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:_f(r,o,Mi(u),f)}function ra(r){return r==null?[]:pi(r,mt(r))}function L1(r){return r==null?[]:pi(r,Wt(r))}function j1(r,o,u){return u===t&&(u=o,o=t),u!==t&&(u=ur(u),u=u===u?u:0),o!==t&&(o=ur(o),o=o===o?o:0),Dn(ur(r),o,u)}function k1(r,o,u){return o=Ur(o),u===t?(u=o,o=0):u=Ur(u),r=ur(r),qm(r,o,u)}function B1(r,o,u){if(u&&typeof u!="boolean"&&Mt(r,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof r=="boolean"&&(u=r,r=t)),r===t&&o===t?(r=0,o=1):(r=Ur(r),o===t?(o=r,r=0):o=Ur(o)),r>o){var f=r;r=o,o=f}if(u||r%1||o%1){var v=Kl();return Tt(r+v*(o-r+my("1e-"+((v+"").length-1))),o)}return Ai(r,o)}var W1=Qn(function(r,o,u){return o=o.toLowerCase(),r+(u?Od(o):o)});function Od(r){return ru(Ne(r).toLowerCase())}function Rd(r){return r=Ne(r),r&&r.replace(Hv,Dy).replace(uy,"")}function U1(r,o,u){r=Ne(r),o=Vt(o);var f=r.length;u=u===t?f:Dn(Te(u),0,f);var v=u;return u-=o.length,u>=0&&r.slice(u,v)==o}function H1(r){return r=Ne(r),r&&Ta.test(r)?r.replace(en,Iy):r}function G1(r){return r=Ne(r),r&&O.test(r)?r.replace(g,"\\$&"):r}var q1=Qn(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),Y1=Qn(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),z1=Df("toLowerCase");function V1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;if(!o||f>=o)return r;var v=(o-f)/2;return Bo(Oo(v),u)+r+Bo(Co(v),u)}function K1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;return o&&f<o?r+Bo(o-f,u):r}function J1(r,o,u){r=Ne(r),o=Te(o);var f=o?Yn(r):0;return o&&f<o?Bo(o-f,u)+r:r}function X1(r,o,u){return u||o==null?o=0:o&&(o=+o),am(Ne(r).replace(I,""),o||0)}function Z1(r,o,u){return(u?Mt(r,o,u):o===t)?o=1:o=Te(o),Pi(Ne(r),o)}function Q1(){var r=arguments,o=Ne(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var eE=Qn(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function tE(r,o,u){return u&&typeof u!="number"&&Mt(r,o,u)&&(o=u=t),u=u===t?V:u>>>0,u?(r=Ne(r),r&&(typeof o=="string"||o!=null&&!Qi(o))&&(o=Vt(o),!o&&qn(r))?cn(gr(r),0,u):r.split(o,u)):[]}var rE=Qn(function(r,o,u){return r+(u?" ":"")+ru(o)});function nE(r,o,u){return r=Ne(r),u=u==null?0:Dn(Te(u),0,r.length),o=Vt(o),r.slice(u,u+o.length)==o}function aE(r,o,u){var f=y.templateSettings;u&&Mt(r,o,u)&&(o=t),r=Ne(r),o=Zo({},o,f,jf);var v=Zo({},o.imports,f.imports,jf),b=mt(v),w=pi(v,b),x,P,k=0,B=o.interpolate||lo,U="__p += '",X=gi((o.escape||lo).source+"|"+B.source+"|"+(B===Un?Ee:lo).source+"|"+(o.evaluate||lo).source+"|$","g"),ne="//# sourceURL="+(He.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++py+"]")+`
|
|
18
|
-
`;r.replace(
|
|
19
|
-
__e(`+
|
|
20
|
-
'`),
|
|
21
|
-
`+
|
|
22
|
-
__p += '`),
|
|
23
|
-
((__t = (`+
|
|
24
|
-
'`),
|
|
25
|
-
`;var
|
|
26
|
-
`+
|
|
17
|
+
`)}function yb(r){return ve(r)||bn(r)||!!(Bl&&r&&r[Bl])}function Or(r,o){var u=typeof r;return o=o??rt,!!o&&(u=="number"||u!="symbol"&&Pv.test(r))&&r>-1&&r%1==0&&r<o}function Ot(r,o,u){if(!Ze(u))return!1;var f=typeof o;return(f=="number"?Ft(u)&&Or(o,u.length):f=="string"&&o in u)?cr(u[o],r):!1}function Bi(r,o){if(ve(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Bt(r)?!0:zs.test(r)||!Ys.test(r)||o!=null&&r in Ue(o)}function bb(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function Wi(r){var o=Po(r),u=v[o];if(typeof u!="function"||!(o in we.prototype))return!1;if(r===u)return!0;var f=Ni(u);return!!f&&r===f[0]}function _b(r){return!!Ll&&Ll in r}var Eb=oo?Ar:au;function _a(r){var o=r&&r.constructor,u=typeof o=="function"&&o.prototype||Dn;return r===u}function Nf(r){return r===r&&!Ze(r)}function kf(r,o){return function(u){return u==null?!1:u[r]===o&&(o!==t||r in Ue(u))}}function Sb(r){var o=Lo(r,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function wb(r,o){var u=r[1],f=o[1],g=u|f,m=g<(D|P|H),S=f==H&&u==M||f==H&&u==Y&&r[7].length<=o[8]||f==(H|Y)&&o[7].length<=o[8]&&u==M;if(!(m||S))return r;f&D&&(r[2]=o[2],g|=u&D?0:j);var C=o[3];if(C){var A=r[3];r[3]=A?_f(A,C,o[4]):C,r[4]=A?qr(r[3],h):o[4]}return C=o[5],C&&(A=r[5],r[5]=A?Ef(A,C,o[6]):C,r[6]=A?qr(r[5],h):o[6]),C=o[7],C&&(r[7]=C),f&H&&(r[8]=r[8]==null?o[8]:bt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=g,r}function Tb(r){var o=[];if(r!=null)for(var u in Ue(r))o.push(u);return o}function Cb(r){return io.call(r)}function jf(r,o,u){return o=ct(o===t?r.length-1:o,0),function(){for(var f=arguments,g=-1,m=ct(f.length-o,0),S=I(m);++g<m;)S[g]=f[o+g];g=-1;for(var C=I(o+1);++g<o;)C[g]=f[g];return C[o]=u(S),Nt(r,this,C)}}function Bf(r,o){return o.length<2?r:vn(r,Qt(o,0,-1))}function xb(r,o){for(var u=r.length,f=bt(o.length,u),g=It(r);f--;){var m=o[f];r[f]=Or(m,u)?g[m]:t}return r}function Ui(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Wf=Hf(lf),Ea=Wm||function(r,o){return gt.setTimeout(r,o)},Hi=Hf(Ky);function Uf(r,o,u){var f=o+"";return Hi(r,mb(f,Rb(hb(f),u)))}function Hf(r){var o=0,u=0;return function(){var f=qm(),g=X-(f-u);if(u=f,g>0){if(++o>=st)return arguments[0]}else o=0;return r.apply(t,arguments)}}function Io(r,o){var u=-1,f=r.length,g=f-1;for(o=o===t?f:o;++u<o;){var m=Ci(u,g),S=r[m];r[m]=r[u],r[u]=S}return r.length=o,r}var Gf=Sb(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(Vs,function(u,f,g,m){o.push(g?m.replace(Xe,"$1"):f||u)}),o});function yr(r){if(typeof r=="string"||Bt(r))return r;var o=r+"";return o=="0"&&1/r==-Ge?"-0":o}function yn(r){if(r!=null){try{return so.call(r)}catch{}try{return r+""}catch{}}return""}function Rb(r,o){return Kt(se,function(u){var f="_."+u[0];o&u[1]&&!to(r,f)&&r.push(f)}),r.sort()}function qf(r){if(r instanceof we)return r.clone();var o=new Xt(r.__wrapped__,r.__chain__);return o.__actions__=It(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function Ob(r,o,u){(u?Ot(r,o,u):o===t)?o=1:o=ct(me(o),0);var f=r==null?0:r.length;if(!f||o<1)return[];for(var g=0,m=0,S=I(ho(f/o));g<f;)S[m++]=Qt(r,g,g+=o);return S}function Ab(r){for(var o=-1,u=r==null?0:r.length,f=0,g=[];++o<u;){var m=r[o];m&&(g[f++]=m)}return g}function Pb(){var r=arguments.length;if(!r)return[];for(var o=I(r-1),u=arguments[0],f=r;f--;)o[f-1]=arguments[f];return Gr(ve(u)?It(u):[u],vt(o,1))}var Db=_e(function(r,o){return nt(r)?ga(r,vt(o,1,nt,!0)):[]}),Ib=_e(function(r,o){var u=er(o);return nt(u)&&(u=t),nt(r)?ga(r,vt(o,1,nt,!0),re(u,2)):[]}),Fb=_e(function(r,o){var u=er(o);return nt(u)&&(u=t),nt(r)?ga(r,vt(o,1,nt,!0),t,u):[]});function $b(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),Qt(r,o<0?0:o,f)):[]}function Mb(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),o=f-o,Qt(r,0,o<0?0:o)):[]}function Lb(r,o){return r&&r.length?To(r,re(o,3),!0,!0):[]}function Nb(r,o){return r&&r.length?To(r,re(o,3),!0):[]}function kb(r,o,u,f){var g=r==null?0:r.length;return g?(u&&typeof u!="number"&&Ot(r,o,u)&&(u=0,f=g),Py(r,o,u,f)):[]}function Yf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=u==null?0:me(u);return g<0&&(g=ct(f+g,0)),ro(r,re(o,3),g)}function zf(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=f-1;return u!==t&&(g=me(u),g=u<0?ct(f+g,0):bt(g,f-1)),ro(r,re(o,3),g,!0)}function Vf(r){var o=r==null?0:r.length;return o?vt(r,1):[]}function jb(r){var o=r==null?0:r.length;return o?vt(r,Ge):[]}function Bb(r,o){var u=r==null?0:r.length;return u?(o=o===t?1:me(o),vt(r,o)):[]}function Wb(r){for(var o=-1,u=r==null?0:r.length,f={};++o<u;){var g=r[o];f[g[0]]=g[1]}return f}function Kf(r){return r&&r.length?r[0]:t}function Ub(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=u==null?0:me(u);return g<0&&(g=ct(f+g,0)),Rn(r,o,g)}function Hb(r){var o=r==null?0:r.length;return o?Qt(r,0,-1):[]}var Gb=_e(function(r){var o=Ke(r,Pi);return o.length&&o[0]===r[0]?_i(o):[]}),qb=_e(function(r){var o=er(r),u=Ke(r,Pi);return o===er(u)?o=t:u.pop(),u.length&&u[0]===r[0]?_i(u,re(o,2)):[]}),Yb=_e(function(r){var o=er(r),u=Ke(r,Pi);return o=typeof o=="function"?o:t,o&&u.pop(),u.length&&u[0]===r[0]?_i(u,t,o):[]});function zb(r,o){return r==null?"":Hm.call(r,o)}function er(r){var o=r==null?0:r.length;return o?r[o-1]:t}function Vb(r,o,u){var f=r==null?0:r.length;if(!f)return-1;var g=f;return u!==t&&(g=me(u),g=g<0?ct(f+g,0):bt(g,f-1)),o===o?Rm(r,o,g):ro(r,Ol,g,!0)}function Kb(r,o){return r&&r.length?of(r,me(o)):t}var Jb=_e(Jf);function Jf(r,o){return r&&r.length&&o&&o.length?Ti(r,o):r}function Xb(r,o,u){return r&&r.length&&o&&o.length?Ti(r,o,re(u,2)):r}function Zb(r,o,u){return r&&r.length&&o&&o.length?Ti(r,o,t,u):r}var Qb=Rr(function(r,o){var u=r==null?0:r.length,f=vi(r,o);return cf(r,Ke(o,function(g){return Or(g,u)?+g:g}).sort(bf)),f});function e0(r,o){var u=[];if(!(r&&r.length))return u;var f=-1,g=[],m=r.length;for(o=re(o,3);++f<m;){var S=r[f];o(S,f,r)&&(u.push(S),g.push(f))}return cf(r,g),u}function Gi(r){return r==null?r:zm.call(r)}function t0(r,o,u){var f=r==null?0:r.length;return f?(u&&typeof u!="number"&&Ot(r,o,u)?(o=0,u=f):(o=o==null?0:me(o),u=u===t?f:me(u)),Qt(r,o,u)):[]}function r0(r,o){return wo(r,o)}function n0(r,o,u){return Ri(r,o,re(u,2))}function a0(r,o){var u=r==null?0:r.length;if(u){var f=wo(r,o);if(f<u&&cr(r[f],o))return f}return-1}function o0(r,o){return wo(r,o,!0)}function s0(r,o,u){return Ri(r,o,re(u,2),!0)}function i0(r,o){var u=r==null?0:r.length;if(u){var f=wo(r,o,!0)-1;if(cr(r[f],o))return f}return-1}function u0(r){return r&&r.length?ff(r):[]}function c0(r,o){return r&&r.length?ff(r,re(o,2)):[]}function l0(r){var o=r==null?0:r.length;return o?Qt(r,1,o):[]}function f0(r,o,u){return r&&r.length?(o=u||o===t?1:me(o),Qt(r,0,o<0?0:o)):[]}function d0(r,o,u){var f=r==null?0:r.length;return f?(o=u||o===t?1:me(o),o=f-o,Qt(r,o<0?0:o,f)):[]}function p0(r,o){return r&&r.length?To(r,re(o,3),!1,!0):[]}function h0(r,o){return r&&r.length?To(r,re(o,3)):[]}var g0=_e(function(r){return Vr(vt(r,1,nt,!0))}),v0=_e(function(r){var o=er(r);return nt(o)&&(o=t),Vr(vt(r,1,nt,!0),re(o,2))}),m0=_e(function(r){var o=er(r);return o=typeof o=="function"?o:t,Vr(vt(r,1,nt,!0),t,o)});function y0(r){return r&&r.length?Vr(r):[]}function b0(r,o){return r&&r.length?Vr(r,re(o,2)):[]}function _0(r,o){return o=typeof o=="function"?o:t,r&&r.length?Vr(r,t,o):[]}function qi(r){if(!(r&&r.length))return[];var o=0;return r=Hr(r,function(u){if(nt(u))return o=ct(u.length,o),!0}),ui(o,function(u){return Ke(r,oi(u))})}function Xf(r,o){if(!(r&&r.length))return[];var u=qi(r);return o==null?u:Ke(u,function(f){return Nt(o,t,f)})}var E0=_e(function(r,o){return nt(r)?ga(r,o):[]}),S0=_e(function(r){return Ai(Hr(r,nt))}),w0=_e(function(r){var o=er(r);return nt(o)&&(o=t),Ai(Hr(r,nt),re(o,2))}),T0=_e(function(r){var o=er(r);return o=typeof o=="function"?o:t,Ai(Hr(r,nt),t,o)}),C0=_e(qi);function x0(r,o){return gf(r||[],o||[],ha)}function R0(r,o){return gf(r||[],o||[],ya)}var O0=_e(function(r){var o=r.length,u=o>1?r[o-1]:t;return u=typeof u=="function"?(r.pop(),u):t,Xf(r,u)});function Zf(r){var o=v(r);return o.__chain__=!0,o}function A0(r,o){return o(r),r}function Fo(r,o){return o(r)}var P0=Rr(function(r){var o=r.length,u=o?r[0]:0,f=this.__wrapped__,g=function(m){return vi(m,r)};return o>1||this.__actions__.length||!(f instanceof we)||!Or(u)?this.thru(g):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Fo,args:[g],thisArg:t}),new Xt(f,this.__chain__).thru(function(m){return o&&!m.length&&m.push(t),m}))});function D0(){return Zf(this)}function I0(){return new Xt(this.value(),this.__chain__)}function F0(){this.__values__===t&&(this.__values__=dd(this.value()));var r=this.__index__>=this.__values__.length,o=r?t:this.__values__[this.__index__++];return{done:r,value:o}}function $0(){return this}function M0(r){for(var o,u=this;u instanceof yo;){var f=qf(u);f.__index__=0,f.__values__=t,o?g.__wrapped__=f:o=f;var g=f;u=u.__wrapped__}return g.__wrapped__=r,o}function L0(){var r=this.__wrapped__;if(r instanceof we){var o=r;return this.__actions__.length&&(o=new we(this)),o=o.reverse(),o.__actions__.push({func:Fo,args:[Gi],thisArg:t}),new Xt(o,this.__chain__)}return this.thru(Gi)}function N0(){return hf(this.__wrapped__,this.__actions__)}var k0=Co(function(r,o,u){ke.call(r,u)?++r[u]:Cr(r,u,1)});function j0(r,o,u){var f=ve(r)?xl:Ay;return u&&Ot(r,o,u)&&(o=t),f(r,re(o,3))}function B0(r,o){var u=ve(r)?Hr:Jl;return u(r,re(o,3))}var W0=Cf(Yf),U0=Cf(zf);function H0(r,o){return vt($o(r,o),1)}function G0(r,o){return vt($o(r,o),Ge)}function q0(r,o,u){return u=u===t?1:me(u),vt($o(r,o),u)}function Qf(r,o){var u=ve(r)?Kt:zr;return u(r,re(o,3))}function ed(r,o){var u=ve(r)?lm:Kl;return u(r,re(o,3))}var Y0=Co(function(r,o,u){ke.call(r,u)?r[u].push(o):Cr(r,u,[o])});function z0(r,o,u,f){r=Ft(r)?r:jn(r),u=u&&!f?me(u):0;var g=r.length;return u<0&&(u=ct(g+u,0)),jo(r)?u<=g&&r.indexOf(o,u)>-1:!!g&&Rn(r,o,u)>-1}var V0=_e(function(r,o,u){var f=-1,g=typeof o=="function",m=Ft(r)?I(r.length):[];return zr(r,function(S){m[++f]=g?Nt(o,S,u):va(S,o,u)}),m}),K0=Co(function(r,o,u){Cr(r,u,o)});function $o(r,o){var u=ve(r)?Ke:rf;return u(r,re(o,3))}function J0(r,o,u,f){return r==null?[]:(ve(o)||(o=o==null?[]:[o]),u=f?t:u,ve(u)||(u=u==null?[]:[u]),sf(r,o,u))}var X0=Co(function(r,o,u){r[u?0:1].push(o)},function(){return[[],[]]});function Z0(r,o,u){var f=ve(r)?ni:Pl,g=arguments.length<3;return f(r,re(o,4),u,g,zr)}function Q0(r,o,u){var f=ve(r)?fm:Pl,g=arguments.length<3;return f(r,re(o,4),u,g,Kl)}function e_(r,o){var u=ve(r)?Hr:Jl;return u(r,No(re(o,3)))}function t_(r){var o=ve(r)?ql:zy;return o(r)}function r_(r,o,u){(u?Ot(r,o,u):o===t)?o=1:o=me(o);var f=ve(r)?Ty:Vy;return f(r,o)}function n_(r){var o=ve(r)?Cy:Jy;return o(r)}function a_(r){if(r==null)return 0;if(Ft(r))return jo(r)?An(r):r.length;var o=_t(r);return o==qe||o==xt?r.size:Si(r).length}function o_(r,o,u){var f=ve(r)?ai:Xy;return u&&Ot(r,o,u)&&(o=t),f(r,re(o,3))}var s_=_e(function(r,o){if(r==null)return[];var u=o.length;return u>1&&Ot(r,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),sf(r,vt(o,1),[])}),Mo=Bm||function(){return gt.Date.now()};function i_(r,o){if(typeof o!="function")throw new Jt(c);return r=me(r),function(){if(--r<1)return o.apply(this,arguments)}}function td(r,o,u){return o=u?t:o,o=r&&o==null?r.length:o,xr(r,H,t,t,t,t,o)}function rd(r,o){var u;if(typeof o!="function")throw new Jt(c);return r=me(r),function(){return--r>0&&(u=o.apply(this,arguments)),r<=1&&(o=t),u}}var Yi=_e(function(r,o,u){var f=D;if(u.length){var g=qr(u,Nn(Yi));f|=O}return xr(r,f,o,u,g)}),nd=_e(function(r,o,u){var f=D|P;if(u.length){var g=qr(u,Nn(nd));f|=O}return xr(o,f,r,u,g)});function ad(r,o,u){o=u?t:o;var f=xr(r,M,t,t,t,t,t,o);return f.placeholder=ad.placeholder,f}function od(r,o,u){o=u?t:o;var f=xr(r,k,t,t,t,t,t,o);return f.placeholder=od.placeholder,f}function sd(r,o,u){var f,g,m,S,C,A,L=0,N=!1,B=!1,V=!0;if(typeof r!="function")throw new Jt(c);o=tr(o)||0,Ze(u)&&(N=!!u.leading,B="maxWait"in u,m=B?ct(tr(u.maxWait)||0,o):m,V="trailing"in u?!!u.trailing:V);function ee(at){var lr=f,Dr=g;return f=g=t,L=at,S=r.apply(Dr,lr),S}function ae(at){return L=at,C=Ea(Se,o),N?ee(at):S}function be(at){var lr=at-A,Dr=at-L,Cd=o-lr;return B?bt(Cd,m-Dr):Cd}function oe(at){var lr=at-A,Dr=at-L;return A===t||lr>=o||lr<0||B&&Dr>=m}function Se(){var at=Mo();if(oe(at))return xe(at);C=Ea(Se,be(at))}function xe(at){return C=t,V&&f?ee(at):(f=g=t,S)}function Wt(){C!==t&&vf(C),L=0,f=A=g=C=t}function At(){return C===t?S:xe(Mo())}function Ut(){var at=Mo(),lr=oe(at);if(f=arguments,g=this,A=at,lr){if(C===t)return ae(A);if(B)return vf(C),C=Ea(Se,o),ee(A)}return C===t&&(C=Ea(Se,o)),S}return Ut.cancel=Wt,Ut.flush=At,Ut}var u_=_e(function(r,o){return Vl(r,1,o)}),c_=_e(function(r,o,u){return Vl(r,tr(o)||0,u)});function l_(r){return xr(r,te)}function Lo(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new Jt(c);var u=function(){var f=arguments,g=o?o.apply(this,f):f[0],m=u.cache;if(m.has(g))return m.get(g);var S=r.apply(this,f);return u.cache=m.set(g,S)||m,S};return u.cache=new(Lo.Cache||Tr),u}Lo.Cache=Tr;function No(r){if(typeof r!="function")throw new Jt(c);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function f_(r){return rd(2,r)}var d_=Zy(function(r,o){o=o.length==1&&ve(o[0])?Ke(o[0],kt(re())):Ke(vt(o,1),kt(re()));var u=o.length;return _e(function(f){for(var g=-1,m=bt(f.length,u);++g<m;)f[g]=o[g].call(this,f[g]);return Nt(r,this,f)})}),zi=_e(function(r,o){var u=qr(o,Nn(zi));return xr(r,O,t,o,u)}),id=_e(function(r,o){var u=qr(o,Nn(id));return xr(r,z,t,o,u)}),p_=Rr(function(r,o){return xr(r,Y,t,t,t,o)});function h_(r,o){if(typeof r!="function")throw new Jt(c);return o=o===t?o:me(o),_e(r,o)}function g_(r,o){if(typeof r!="function")throw new Jt(c);return o=o==null?0:ct(me(o),0),_e(function(u){var f=u[o],g=Jr(u,0,o);return f&&Gr(g,f),Nt(r,this,g)})}function v_(r,o,u){var f=!0,g=!0;if(typeof r!="function")throw new Jt(c);return Ze(u)&&(f="leading"in u?!!u.leading:f,g="trailing"in u?!!u.trailing:g),sd(r,o,{leading:f,maxWait:o,trailing:g})}function m_(r){return td(r,1)}function y_(r,o){return zi(Di(o),r)}function b_(){if(!arguments.length)return[];var r=arguments[0];return ve(r)?r:[r]}function __(r){return Zt(r,E)}function E_(r,o){return o=typeof o=="function"?o:t,Zt(r,E,o)}function S_(r){return Zt(r,y|E)}function w_(r,o){return o=typeof o=="function"?o:t,Zt(r,y|E,o)}function T_(r,o){return o==null||zl(r,o,dt(o))}function cr(r,o){return r===o||r!==r&&o!==o}var C_=Ao(bi),x_=Ao(function(r,o){return r>=o}),bn=Ql(function(){return arguments}())?Ql:function(r){return tt(r)&&ke.call(r,"callee")&&!jl.call(r,"callee")},ve=I.isArray,R_=_l?kt(_l):My;function Ft(r){return r!=null&&ko(r.length)&&!Ar(r)}function nt(r){return tt(r)&&Ft(r)}function O_(r){return r===!0||r===!1||tt(r)&&Rt(r)==ue}var Xr=Um||au,A_=El?kt(El):Ly;function P_(r){return tt(r)&&r.nodeType===1&&!Sa(r)}function D_(r){if(r==null)return!0;if(Ft(r)&&(ve(r)||typeof r=="string"||typeof r.splice=="function"||Xr(r)||kn(r)||bn(r)))return!r.length;var o=_t(r);if(o==qe||o==xt)return!r.size;if(_a(r))return!Si(r).length;for(var u in r)if(ke.call(r,u))return!1;return!0}function I_(r,o){return ma(r,o)}function F_(r,o,u){u=typeof u=="function"?u:t;var f=u?u(r,o):t;return f===t?ma(r,o,t,u):!!f}function Vi(r){if(!tt(r))return!1;var o=Rt(r);return o==K||o==ge||typeof r.message=="string"&&typeof r.name=="string"&&!Sa(r)}function $_(r){return typeof r=="number"&&Wl(r)}function Ar(r){if(!Ze(r))return!1;var o=Rt(r);return o==F||o==ze||o==ce||o==Ws}function ud(r){return typeof r=="number"&&r==me(r)}function ko(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=rt}function Ze(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function tt(r){return r!=null&&typeof r=="object"}var cd=Sl?kt(Sl):ky;function M_(r,o){return r===o||Ei(r,o,ki(o))}function L_(r,o,u){return u=typeof u=="function"?u:t,Ei(r,o,ki(o),u)}function N_(r){return ld(r)&&r!=+r}function k_(r){if(Eb(r))throw new pe(i);return ef(r)}function j_(r){return r===null}function B_(r){return r==null}function ld(r){return typeof r=="number"||tt(r)&&Rt(r)==yt}function Sa(r){if(!tt(r)||Rt(r)!=Yt)return!1;var o=lo(r);if(o===null)return!0;var u=ke.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&so.call(u)==Lm}var Ki=wl?kt(wl):jy;function W_(r){return ud(r)&&r>=-rt&&r<=rt}var fd=Tl?kt(Tl):By;function jo(r){return typeof r=="string"||!ve(r)&&tt(r)&&Rt(r)==an}function Bt(r){return typeof r=="symbol"||tt(r)&&Rt(r)==on}var kn=Cl?kt(Cl):Wy;function U_(r){return r===t}function H_(r){return tt(r)&&_t(r)==Sr}function G_(r){return tt(r)&&Rt(r)==Us}var q_=Ao(wi),Y_=Ao(function(r,o){return r<=o});function dd(r){if(!r)return[];if(Ft(r))return jo(r)?ir(r):It(r);if(ca&&r[ca])return Tm(r[ca]());var o=_t(r),u=o==qe?li:o==xt?no:jn;return u(r)}function Pr(r){if(!r)return r===0?r:0;if(r=tr(r),r===Ge||r===-Ge){var o=r<0?-1:1;return o*qt}return r===r?r:0}function me(r){var o=Pr(r),u=o%1;return o===o?u?o-u:o:0}function pd(r){return r?gn(me(r),0,q):0}function tr(r){if(typeof r=="number")return r;if(Bt(r))return W;if(Ze(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=Ze(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Dl(r);var u=Xa.test(r);return u||Av.test(r)?im(r.slice(2),u?2:8):Ur.test(r)?W:+r}function hd(r){return mr(r,$t(r))}function z_(r){return r?gn(me(r),-rt,rt):r===0?r:0}function De(r){return r==null?"":jt(r)}var V_=Mn(function(r,o){if(_a(o)||Ft(o)){mr(o,dt(o),r);return}for(var u in o)ke.call(o,u)&&ha(r,u,o[u])}),gd=Mn(function(r,o){mr(o,$t(o),r)}),Bo=Mn(function(r,o,u,f){mr(o,$t(o),r,f)}),K_=Mn(function(r,o,u,f){mr(o,dt(o),r,f)}),J_=Rr(vi);function X_(r,o){var u=$n(r);return o==null?u:Yl(u,o)}var Z_=_e(function(r,o){r=Ue(r);var u=-1,f=o.length,g=f>2?o[2]:t;for(g&&Ot(o[0],o[1],g)&&(f=1);++u<f;)for(var m=o[u],S=$t(m),C=-1,A=S.length;++C<A;){var L=S[C],N=r[L];(N===t||cr(N,Dn[L])&&!ke.call(r,L))&&(r[L]=m[L])}return r}),Q_=_e(function(r){return r.push(t,If),Nt(vd,t,r)});function eE(r,o){return Rl(r,re(o,3),vr)}function tE(r,o){return Rl(r,re(o,3),yi)}function rE(r,o){return r==null?r:mi(r,re(o,3),$t)}function nE(r,o){return r==null?r:Xl(r,re(o,3),$t)}function aE(r,o){return r&&vr(r,re(o,3))}function oE(r,o){return r&&yi(r,re(o,3))}function sE(r){return r==null?[]:Eo(r,dt(r))}function iE(r){return r==null?[]:Eo(r,$t(r))}function Ji(r,o,u){var f=r==null?t:vn(r,o);return f===t?u:f}function uE(r,o){return r!=null&&Mf(r,o,Dy)}function Xi(r,o){return r!=null&&Mf(r,o,Iy)}var cE=Rf(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=io.call(o)),r[o]=u},Qi(Mt)),lE=Rf(function(r,o,u){o!=null&&typeof o.toString!="function"&&(o=io.call(o)),ke.call(r,o)?r[o].push(u):r[o]=[u]},re),fE=_e(va);function dt(r){return Ft(r)?Gl(r):Si(r)}function $t(r){return Ft(r)?Gl(r,!0):Uy(r)}function dE(r,o){var u={};return o=re(o,3),vr(r,function(f,g,m){Cr(u,o(f,g,m),f)}),u}function pE(r,o){var u={};return o=re(o,3),vr(r,function(f,g,m){Cr(u,g,o(f,g,m))}),u}var hE=Mn(function(r,o,u){So(r,o,u)}),vd=Mn(function(r,o,u,f){So(r,o,u,f)}),gE=Rr(function(r,o){var u={};if(r==null)return u;var f=!1;o=Ke(o,function(m){return m=Kr(m,r),f||(f=m.length>1),m}),mr(r,Li(r),u),f&&(u=Zt(u,y|_|E,cb));for(var g=o.length;g--;)Oi(u,o[g]);return u});function vE(r,o){return md(r,No(re(o)))}var mE=Rr(function(r,o){return r==null?{}:Gy(r,o)});function md(r,o){if(r==null)return{};var u=Ke(Li(r),function(f){return[f]});return o=re(o),uf(r,u,function(f,g){return o(f,g[0])})}function yE(r,o,u){o=Kr(o,r);var f=-1,g=o.length;for(g||(g=1,r=t);++f<g;){var m=r==null?t:r[yr(o[f])];m===t&&(f=g,m=u),r=Ar(m)?m.call(r):m}return r}function bE(r,o,u){return r==null?r:ya(r,o,u)}function _E(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:ya(r,o,u,f)}var yd=Pf(dt),bd=Pf($t);function EE(r,o,u){var f=ve(r),g=f||Xr(r)||kn(r);if(o=re(o,4),u==null){var m=r&&r.constructor;g?u=f?new m:[]:Ze(r)?u=Ar(m)?$n(lo(r)):{}:u={}}return(g?Kt:vr)(r,function(S,C,A){return o(u,S,C,A)}),u}function SE(r,o){return r==null?!0:Oi(r,o)}function wE(r,o,u){return r==null?r:pf(r,o,Di(u))}function TE(r,o,u,f){return f=typeof f=="function"?f:t,r==null?r:pf(r,o,Di(u),f)}function jn(r){return r==null?[]:ci(r,dt(r))}function CE(r){return r==null?[]:ci(r,$t(r))}function xE(r,o,u){return u===t&&(u=o,o=t),u!==t&&(u=tr(u),u=u===u?u:0),o!==t&&(o=tr(o),o=o===o?o:0),gn(tr(r),o,u)}function RE(r,o,u){return o=Pr(o),u===t?(u=o,o=0):u=Pr(u),r=tr(r),Fy(r,o,u)}function OE(r,o,u){if(u&&typeof u!="boolean"&&Ot(r,o,u)&&(o=u=t),u===t&&(typeof o=="boolean"?(u=o,o=t):typeof r=="boolean"&&(u=r,r=t)),r===t&&o===t?(r=0,o=1):(r=Pr(r),o===t?(o=r,r=0):o=Pr(o)),r>o){var f=r;r=o,o=f}if(u||r%1||o%1){var g=Ul();return bt(r+g*(o-r+sm("1e-"+((g+"").length-1))),o)}return Ci(r,o)}var AE=Ln(function(r,o,u){return o=o.toLowerCase(),r+(u?_d(o):o)});function _d(r){return Zi(De(r).toLowerCase())}function Ed(r){return r=De(r),r&&r.replace(Dv,bm).replace(Jv,"")}function PE(r,o,u){r=De(r),o=jt(o);var f=r.length;u=u===t?f:gn(me(u),0,f);var g=u;return u-=o.length,u>=0&&r.slice(u,g)==o}function DE(r){return r=De(r),r&&Gs.test(r)?r.replace(ia,_m):r}function IE(r){return r=De(r),r&&U.test(r)?r.replace(w,"\\$&"):r}var FE=Ln(function(r,o,u){return r+(u?"-":"")+o.toLowerCase()}),$E=Ln(function(r,o,u){return r+(u?" ":"")+o.toLowerCase()}),ME=Tf("toLowerCase");function LE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;if(!o||f>=o)return r;var g=(o-f)/2;return Oo(go(g),u)+r+Oo(ho(g),u)}function NE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;return o&&f<o?r+Oo(o-f,u):r}function kE(r,o,u){r=De(r),o=me(o);var f=o?An(r):0;return o&&f<o?Oo(o-f,u)+r:r}function jE(r,o,u){return u||o==null?o=0:o&&(o=+o),Ym(De(r).replace(J,""),o||0)}function BE(r,o,u){return(u?Ot(r,o,u):o===t)?o=1:o=me(o),xi(De(r),o)}function WE(){var r=arguments,o=De(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var UE=Ln(function(r,o,u){return r+(u?"_":"")+o.toLowerCase()});function HE(r,o,u){return u&&typeof u!="number"&&Ot(r,o,u)&&(o=u=t),u=u===t?q:u>>>0,u?(r=De(r),r&&(typeof o=="string"||o!=null&&!Ki(o))&&(o=jt(o),!o&&On(r))?Jr(ir(r),0,u):r.split(o,u)):[]}var GE=Ln(function(r,o,u){return r+(u?" ":"")+Zi(o)});function qE(r,o,u){return r=De(r),u=u==null?0:gn(me(u),0,r.length),o=jt(o),r.slice(u,u+o.length)==o}function YE(r,o,u){var f=v.templateSettings;u&&Ot(r,o,u)&&(o=t),r=De(r),o=Bo({},o,f,Df);var g=Bo({},o.imports,f.imports,Df),m=dt(g),S=ci(g,m),C,A,L=0,N=o.interpolate||Za,B="__p += '",V=fi((o.escape||Za).source+"|"+N.source+"|"+(N===Ja?et:Za).source+"|"+(o.evaluate||Za).source+"|$","g"),ee="//# sourceURL="+(ke.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tm+"]")+`
|
|
18
|
+
`;r.replace(V,function(oe,Se,xe,Wt,At,Ut){return xe||(xe=Wt),B+=r.slice(L,Ut).replace(Iv,Em),Se&&(C=!0,B+=`' +
|
|
19
|
+
__e(`+Se+`) +
|
|
20
|
+
'`),At&&(A=!0,B+=`';
|
|
21
|
+
`+At+`;
|
|
22
|
+
__p += '`),xe&&(B+=`' +
|
|
23
|
+
((__t = (`+xe+`)) == null ? '' : __t) +
|
|
24
|
+
'`),L=Ut+oe.length,oe}),B+=`';
|
|
25
|
+
`;var ae=ke.call(o,"variable")&&o.variable;if(!ae)B=`with (obj) {
|
|
26
|
+
`+B+`
|
|
27
27
|
}
|
|
28
|
-
`;else if(
|
|
29
|
-
`+(
|
|
30
|
-
`)+"var __t, __p = ''"+(
|
|
28
|
+
`;else if(ht.test(ae))throw new pe(l);B=(A?B.replace(qa,""):B).replace(Hs,"$1").replace(Ya,"$1;"),B="function("+(ae||"obj")+`) {
|
|
29
|
+
`+(ae?"":`obj || (obj = {});
|
|
30
|
+
`)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(A?`, __j = Array.prototype.join;
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
|
-
`)+
|
|
34
|
-
}`;var Ce=Pd(function(){return $e(b,ne+"return "+U).apply(t,w)});if(Ce.source=U,Zi(Ce))throw Ce;return Ce}function oE(r){return Ne(r).toLowerCase()}function sE(r){return Ne(r).toUpperCase()}function iE(r,o,u){if(r=Ne(r),r&&(u||o===t))return jl(r);if(!r||!(o=Vt(o)))return r;var f=gr(r),v=gr(o),b=kl(f,v),w=Bl(f,v)+1;return cn(f,b,w).join("")}function uE(r,o,u){if(r=Ne(r),r&&(u||o===t))return r.slice(0,Ul(r)+1);if(!r||!(o=Vt(o)))return r;var f=gr(r),v=Bl(f,gr(o))+1;return cn(f,0,v).join("")}function cE(r,o,u){if(r=Ne(r),r&&(u||o===t))return r.replace(I,"");if(!r||!(o=Vt(o)))return r;var f=gr(r),v=kl(f,gr(o));return cn(f,v).join("")}function lE(r,o){var u=We,f=Re;if(nt(o)){var v="separator"in o?o.separator:v;u="length"in o?Te(o.length):u,f="omission"in o?Vt(o.omission):f}r=Ne(r);var b=r.length;if(qn(r)){var w=gr(r);b=w.length}if(u>=b)return r;var x=u-Yn(f);if(x<1)return f;var P=w?cn(w,0,x).join(""):r.slice(0,x);if(v===t)return P+f;if(w&&(x+=P.length-x),Qi(v)){if(r.slice(x).search(v)){var k,B=P;for(v.global||(v=gi(v.source,Ne(at.exec(v))+"g")),v.lastIndex=0;k=v.exec(B);)var U=k.index;P=P.slice(0,U===t?x:U)}}else if(r.indexOf(Vt(v),x)!=x){var X=P.lastIndexOf(v);X>-1&&(P=P.slice(0,X))}return P+f}function fE(r){return r=Ne(r),r&&Tn.test(r)?r.replace(Wn,By):r}var dE=Qn(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),ru=Df("toUpperCase");function Ad(r,o,u){return r=Ne(r),o=u?t:o,o===t?My(r)?Hy(r):Cy(r):r.match(o)||[]}var Pd=Oe(function(r,o){try{return Yt(r,t,o)}catch(u){return Zi(u)?u:new _e(u)}}),pE=kr(function(r,o){return rr(o,function(u){u=Or(u),Lr(r,u,Ji(r[u],r))}),r});function hE(r){var o=r==null?0:r.length,u=ce();return r=o?tt(r,function(f){if(typeof f[1]!="function")throw new nr(c);return[u(f[0]),f[1]]}):[],Oe(function(f){for(var v=-1;++v<o;){var b=r[v];if(Yt(b[0],this,f))return Yt(b[1],this,f)}})}function gE(r){return Bm(or(r,m))}function nu(r){return function(){return r}}function vE(r,o){return r==null||r!==r?o:r}var yE=Ff(),mE=Ff(!0);function Ut(r){return r}function au(r){return cf(typeof r=="function"?r:or(r,m))}function bE(r){return ff(or(r,m))}function _E(r,o){return df(r,or(o,m))}var EE=Oe(function(r,o){return function(u){return La(u,r,o)}}),SE=Oe(function(r,o){return function(u){return La(r,u,o)}});function ou(r,o,u){var f=mt(o),v=Fo(o,f);u==null&&!(nt(o)&&(v.length||!f.length))&&(u=o,o=r,r=this,v=Fo(o,mt(o)));var b=!(nt(u)&&"chain"in u)||!!u.chain,w=Wr(r);return rr(v,function(x){var P=o[x];r[x]=P,w&&(r.prototype[x]=function(){var k=this.__chain__;if(b||k){var B=r(this.__wrapped__),U=B.__actions__=kt(this.__actions__);return U.push({func:P,args:arguments,thisArg:r}),B.__chain__=k,B}return P.apply(r,rn([this.value()],arguments))})}),r}function wE(){return Et._===this&&(Et._=Ky),this}function su(){}function TE(r){return r=Te(r),Oe(function(o){return pf(o,r)})}var xE=Li(tt),CE=Li(Fl),OE=Li(ui);function Dd(r){return Gi(r)?ci(Or(r)):n0(r)}function RE(r){return function(o){return r==null?t:In(r,o)}}var AE=Mf(),PE=Mf(!0);function iu(){return[]}function uu(){return!1}function DE(){return{}}function IE(){return""}function FE(){return!0}function $E(r,o){if(r=Te(r),r<1||r>et)return[];var u=V,f=Tt(r,V);o=ce(o),r-=V;for(var v=di(f,o);++u<r;)o(u);return v}function ME(r){return Se(r)?tt(r,Or):Kt(r)?[r]:kt(Xf(Ne(r)))}function NE(r){var o=++zy;return Ne(r)+o}var LE=ko(function(r,o){return r+o},0),jE=ji("ceil"),kE=ko(function(r,o){return r/o},1),BE=ji("floor");function WE(r){return r&&r.length?Io(r,Ut,wi):t}function UE(r,o){return r&&r.length?Io(r,ce(o,2),wi):t}function HE(r){return Nl(r,Ut)}function GE(r,o){return Nl(r,ce(o,2))}function qE(r){return r&&r.length?Io(r,Ut,Oi):t}function YE(r,o){return r&&r.length?Io(r,ce(o,2),Oi):t}var zE=ko(function(r,o){return r*o},1),VE=ji("round"),KE=ko(function(r,o){return r-o},0);function JE(r){return r&&r.length?fi(r,Ut):0}function XE(r,o){return r&&r.length?fi(r,ce(o,2)):0}return y.after=b_,y.ary=ud,y.assign=s1,y.assignIn=Sd,y.assignInWith=Zo,y.assignWith=i1,y.at=u1,y.before=cd,y.bind=Ji,y.bindAll=pE,y.bindKey=ld,y.castArray=D_,y.chain=od,y.chunk=B0,y.compact=W0,y.concat=U0,y.cond=hE,y.conforms=gE,y.constant=nu,y.countBy=Jb,y.create=c1,y.curry=fd,y.curryRight=dd,y.debounce=pd,y.defaults=l1,y.defaultsDeep=f1,y.defer=__,y.delay=E_,y.difference=H0,y.differenceBy=G0,y.differenceWith=q0,y.drop=Y0,y.dropRight=z0,y.dropRightWhile=V0,y.dropWhile=K0,y.fill=J0,y.filter=Zb,y.flatMap=t_,y.flatMapDeep=r_,y.flatMapDepth=n_,y.flatten=td,y.flattenDeep=X0,y.flattenDepth=Z0,y.flip=S_,y.flow=yE,y.flowRight=mE,y.fromPairs=Q0,y.functions=m1,y.functionsIn=b1,y.groupBy=a_,y.initial=tb,y.intersection=rb,y.intersectionBy=nb,y.intersectionWith=ab,y.invert=E1,y.invertBy=S1,y.invokeMap=s_,y.iteratee=au,y.keyBy=i_,y.keys=mt,y.keysIn=Wt,y.map=Yo,y.mapKeys=T1,y.mapValues=x1,y.matches=bE,y.matchesProperty=_E,y.memoize=Vo,y.merge=C1,y.mergeWith=wd,y.method=EE,y.methodOf=SE,y.mixin=ou,y.negate=Ko,y.nthArg=TE,y.omit=O1,y.omitBy=R1,y.once=w_,y.orderBy=u_,y.over=xE,y.overArgs=T_,y.overEvery=CE,y.overSome=OE,y.partial=Xi,y.partialRight=hd,y.partition=c_,y.pick=A1,y.pickBy=Td,y.property=Dd,y.propertyOf=RE,y.pull=ub,y.pullAll=nd,y.pullAllBy=cb,y.pullAllWith=lb,y.pullAt=fb,y.range=AE,y.rangeRight=PE,y.rearg=x_,y.reject=d_,y.remove=db,y.rest=C_,y.reverse=Vi,y.sampleSize=h_,y.set=D1,y.setWith=I1,y.shuffle=g_,y.slice=pb,y.sortBy=m_,y.sortedUniq=_b,y.sortedUniqBy=Eb,y.split=tE,y.spread=O_,y.tail=Sb,y.take=wb,y.takeRight=Tb,y.takeRightWhile=xb,y.takeWhile=Cb,y.tap=Wb,y.throttle=R_,y.thru=qo,y.toArray=bd,y.toPairs=xd,y.toPairsIn=Cd,y.toPath=ME,y.toPlainObject=Ed,y.transform=F1,y.unary=A_,y.union=Ob,y.unionBy=Rb,y.unionWith=Ab,y.uniq=Pb,y.uniqBy=Db,y.uniqWith=Ib,y.unset=$1,y.unzip=Ki,y.unzipWith=ad,y.update=M1,y.updateWith=N1,y.values=ra,y.valuesIn=L1,y.without=Fb,y.words=Ad,y.wrap=P_,y.xor=$b,y.xorBy=Mb,y.xorWith=Nb,y.zip=Lb,y.zipObject=jb,y.zipObjectDeep=kb,y.zipWith=Bb,y.entries=xd,y.entriesIn=Cd,y.extend=Sd,y.extendWith=Zo,ou(y,y),y.add=LE,y.attempt=Pd,y.camelCase=W1,y.capitalize=Od,y.ceil=jE,y.clamp=j1,y.clone=I_,y.cloneDeep=$_,y.cloneDeepWith=M_,y.cloneWith=F_,y.conformsTo=N_,y.deburr=Rd,y.defaultTo=vE,y.divide=kE,y.endsWith=U1,y.eq=yr,y.escape=H1,y.escapeRegExp=G1,y.every=Xb,y.find=Qb,y.findIndex=Qf,y.findKey=d1,y.findLast=e_,y.findLastIndex=ed,y.findLastKey=p1,y.floor=BE,y.forEach=sd,y.forEachRight=id,y.forIn=h1,y.forInRight=g1,y.forOwn=v1,y.forOwnRight=y1,y.get=eu,y.gt=L_,y.gte=j_,y.has=_1,y.hasIn=tu,y.head=rd,y.identity=Ut,y.includes=o_,y.indexOf=eb,y.inRange=k1,y.invoke=w1,y.isArguments=Mn,y.isArray=Se,y.isArrayBuffer=k_,y.isArrayLike=Bt,y.isArrayLikeObject=ct,y.isBoolean=B_,y.isBuffer=ln,y.isDate=W_,y.isElement=U_,y.isEmpty=H_,y.isEqual=G_,y.isEqualWith=q_,y.isError=Zi,y.isFinite=Y_,y.isFunction=Wr,y.isInteger=gd,y.isLength=Jo,y.isMap=vd,y.isMatch=z_,y.isMatchWith=V_,y.isNaN=K_,y.isNative=J_,y.isNil=Z_,y.isNull=X_,y.isNumber=yd,y.isObject=nt,y.isObjectLike=ot,y.isPlainObject=Ha,y.isRegExp=Qi,y.isSafeInteger=Q_,y.isSet=md,y.isString=Xo,y.isSymbol=Kt,y.isTypedArray=ta,y.isUndefined=e1,y.isWeakMap=t1,y.isWeakSet=r1,y.join=ob,y.kebabCase=q1,y.last=ir,y.lastIndexOf=sb,y.lowerCase=Y1,y.lowerFirst=z1,y.lt=n1,y.lte=a1,y.max=WE,y.maxBy=UE,y.mean=HE,y.meanBy=GE,y.min=qE,y.minBy=YE,y.stubArray=iu,y.stubFalse=uu,y.stubObject=DE,y.stubString=IE,y.stubTrue=FE,y.multiply=zE,y.nth=ib,y.noConflict=wE,y.noop=su,y.now=zo,y.pad=V1,y.padEnd=K1,y.padStart=J1,y.parseInt=X1,y.random=B1,y.reduce=l_,y.reduceRight=f_,y.repeat=Z1,y.replace=Q1,y.result=P1,y.round=VE,y.runInContext=R,y.sample=p_,y.size=v_,y.snakeCase=eE,y.some=y_,y.sortedIndex=hb,y.sortedIndexBy=gb,y.sortedIndexOf=vb,y.sortedLastIndex=yb,y.sortedLastIndexBy=mb,y.sortedLastIndexOf=bb,y.startCase=rE,y.startsWith=nE,y.subtract=KE,y.sum=JE,y.sumBy=XE,y.template=aE,y.times=$E,y.toFinite=Ur,y.toInteger=Te,y.toLength=_d,y.toLower=oE,y.toNumber=ur,y.toSafeInteger=o1,y.toString=Ne,y.toUpper=sE,y.trim=iE,y.trimEnd=uE,y.trimStart=cE,y.truncate=lE,y.unescape=fE,y.uniqueId=NE,y.upperCase=dE,y.upperFirst=ru,y.each=sd,y.eachRight=id,y.first=rd,ou(y,function(){var r={};return xr(y,function(o,u){He.call(y.prototype,u)||(r[u]=o)}),r}(),{chain:!1}),y.VERSION=a,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){y[r].placeholder=y}),rr(["drop","take"],function(r,o){Pe.prototype[r]=function(u){u=u===t?1:gt(Te(u),0);var f=this.__filtered__&&!o?new Pe(this):this.clone();return f.__filtered__?f.__takeCount__=Tt(u,f.__takeCount__):f.__views__.push({size:Tt(u,V),type:r+(f.__dir__<0?"Right":"")}),f},Pe.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),rr(["filter","map","takeWhile"],function(r,o){var u=o+1,f=u==we||u==Ze;Pe.prototype[r]=function(v){var b=this.clone();return b.__iteratees__.push({iteratee:ce(v,3),type:u}),b.__filtered__=b.__filtered__||f,b}}),rr(["head","last"],function(r,o){var u="take"+(o?"Right":"");Pe.prototype[r]=function(){return this[u](1).value()[0]}}),rr(["initial","tail"],function(r,o){var u="drop"+(o?"":"Right");Pe.prototype[r]=function(){return this.__filtered__?new Pe(this):this[u](1)}}),Pe.prototype.compact=function(){return this.filter(Ut)},Pe.prototype.find=function(r){return this.filter(r).head()},Pe.prototype.findLast=function(r){return this.reverse().find(r)},Pe.prototype.invokeMap=Oe(function(r,o){return typeof r=="function"?new Pe(this):this.map(function(u){return La(u,r,o)})}),Pe.prototype.reject=function(r){return this.filter(Ko(ce(r)))},Pe.prototype.slice=function(r,o){r=Te(r);var u=this;return u.__filtered__&&(r>0||o<0)?new Pe(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==t&&(o=Te(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},Pe.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Pe.prototype.toArray=function(){return this.take(V)},xr(Pe.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),v=y[f?"take"+(o=="last"?"Right":""):o],b=f||/^find/.test(o);v&&(y.prototype[o]=function(){var w=this.__wrapped__,x=f?[1]:arguments,P=w instanceof Pe,k=x[0],B=P||Se(w),U=function(Ae){var De=v.apply(y,rn([Ae],x));return f&&X?De[0]:De};B&&u&&typeof k=="function"&&k.length!=1&&(P=B=!1);var X=this.__chain__,ne=!!this.__actions__.length,de=b&&!X,Ce=P&&!ne;if(!b&&B){w=Ce?w:new Pe(this);var pe=r.apply(w,x);return pe.__actions__.push({func:qo,args:[U],thisArg:t}),new ar(pe,X)}return de&&Ce?r.apply(this,x):(pe=this.thru(U),de?f?pe.value()[0]:pe.value():pe)})}),rr(["pop","push","shift","sort","splice","unshift"],function(r){var o=yo[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);y.prototype[r]=function(){var v=arguments;if(f&&!this.__chain__){var b=this.value();return o.apply(Se(b)?b:[],v)}return this[u](function(w){return o.apply(Se(w)?w:[],v)})}}),xr(Pe.prototype,function(r,o){var u=y[o];if(u){var f=u.name+"";He.call(Jn,f)||(Jn[f]=[]),Jn[f].push({name:o,func:u})}}),Jn[jo(t,D).name]=[{name:"wrapper",func:t}],Pe.prototype.clone=fm,Pe.prototype.reverse=dm,Pe.prototype.value=pm,y.prototype.at=Ub,y.prototype.chain=Hb,y.prototype.commit=Gb,y.prototype.next=qb,y.prototype.plant=zb,y.prototype.reverse=Vb,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Kb,y.prototype.first=y.prototype.head,Pa&&(y.prototype[Pa]=Yb),y},zn=Gy();On?((On.exports=zn)._=zn,ai._=zn):Et._=zn}).call(qr)})(Es,Es.exports);var Ke=Es.exports;const Fh=Is(Ke);function Pc(e){return`Debugger/${e}`}function $h(e,n){var a;const t=(a=n.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const SO=typeof process=="object"&&process&&process.platform==="win32";var wO=SO?{sep:"\\"}:{sep:"/"},TO=Mh;function Mh(e,n,t){e instanceof RegExp&&(e=hp(e,t)),n instanceof RegExp&&(n=hp(n,t));var a=Nh(e,n,t);return a&&{start:a[0],end:a[1],pre:t.slice(0,a[0]),body:t.slice(a[0]+e.length,a[1]),post:t.slice(a[1]+n.length)}}function hp(e,n){var t=n.match(e);return t?t[0]:null}Mh.range=Nh;function Nh(e,n,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(n,d+1),h=d;if(d>=0&&p>0){if(e===n)return[d,p];for(a=[],i=t.length;h>=0&&!l;)h==d?(a.push(h),d=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(n,h+1)),h=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var Lh=TO,xO=RO,jh="\0SLASH"+Math.random()+"\0",kh="\0OPEN"+Math.random()+"\0",Dc="\0CLOSE"+Math.random()+"\0",Bh="\0COMMA"+Math.random()+"\0",Wh="\0PERIOD"+Math.random()+"\0";function _u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function CO(e){return e.split("\\\\").join(jh).split("\\{").join(kh).split("\\}").join(Dc).split("\\,").join(Bh).split("\\.").join(Wh)}function OO(e){return e.split(jh).join("\\").split(kh).join("{").split(Dc).join("}").split(Bh).join(",").split(Wh).join(".")}function Uh(e){if(!e)return[""];var n=[],t=Lh("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,c=a.split(",");c[c.length-1]+="{"+s+"}";var l=Uh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),n.push.apply(n,c),n}function RO(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),za(CO(e),!0).map(OO)):[]}function AO(e){return"{"+e+"}"}function PO(e){return/^-?0\d/.test(e)}function DO(e,n){return e<=n}function IO(e,n){return e>=n}function za(e,n){var t=[],a=Lh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?za(a.post,!1):[""];if(/\$$/.test(a.pre))for(var c=0;c<i.length;c++){var l=s+"{"+a.body+"}"+i[c];t.push(l)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=d||p,m=a.body.indexOf(",")>=0;if(!h&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Dc+a.post,za(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Uh(a.body),_.length===1&&(_=za(_[0],!1).map(AO),_.length===1))return i.map(function(We){return a.pre+_[0]+We});var S;if(h){var T=_u(_[0]),C=_u(_[1]),F=Math.max(_[0].length,_[1].length),D=_.length==3?Math.abs(_u(_[2])):1,W=DO,$=C<T;$&&(D*=-1,W=IO);var j=_.some(PO);S=[];for(var A=T;W(A,C);A+=D){var K;if(p)K=String.fromCharCode(A),K==="\\"&&(K="");else if(K=String(A),j){var G=F-K.length;if(G>0){var Y=new Array(G+1).join("0");A<0?K="-"+Y+K.slice(1):K=Y+K}}S.push(K)}}else{S=[];for(var ie=0;ie<_.length;ie++)S.push.apply(S,za(_[ie],!1))}for(var ie=0;ie<S.length;ie++)for(var c=0;c<i.length;c++){var l=s+S[ie]+i[c];(!n||h||l)&&t.push(l)}}return t}const Zt=Hh=(e,n,t={})=>(Ss(n),!t.nocomment&&n.charAt(0)==="#"?!1:new Bs(n,t).match(e));var Hh=Zt;const Xu=wO;Zt.sep=Xu.sep;const br=Symbol("globstar **");Zt.GLOBSTAR=br;const FO=xO,gp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Zu="[^/]",Eu=Zu+"*?",$O="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",MO="(?:(?!(?:\\/|^)\\.).)*?",Gh=e=>e.split("").reduce((n,t)=>(n[t]=!0,n),{}),vp=Gh("().*{}+?[]^$\\!"),NO=Gh("[.("),yp=/\/+/;Zt.filter=(e,n={})=>(t,a,s)=>Zt(t,e,n);const fn=(e,n={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(n).forEach(a=>t[a]=n[a]),t};Zt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Zt;const n=Zt,t=(a,s,i)=>n(a,s,fn(e,i));return t.Minimatch=class extends n.Minimatch{constructor(s,i){super(s,fn(e,i))}},t.Minimatch.defaults=a=>n.defaults(fn(e,a)).Minimatch,t.filter=(a,s)=>n.filter(a,fn(e,s)),t.defaults=a=>n.defaults(fn(e,a)),t.makeRe=(a,s)=>n.makeRe(a,fn(e,s)),t.braceExpand=(a,s)=>n.braceExpand(a,fn(e,s)),t.match=(a,s,i)=>n.match(a,s,fn(e,i)),t};Zt.braceExpand=(e,n)=>qh(e,n);const qh=(e,n={})=>(Ss(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:FO(e)),LO=1024*64,Ss=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>LO)throw new TypeError("pattern is too long")},Su=Symbol("subparse");Zt.makeRe=(e,n)=>new Bs(e,n||{}).makeRe();Zt.match=(e,n,t={})=>{const a=new Bs(n,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(n),e};const jO=e=>e.replace(/\\(.)/g,"$1"),kO=e=>e.replace(/\\([^-\]])/g,"$1"),BO=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),WO=e=>e.replace(/[[\]\\]/g,"\\$&");class Bs{constructor(n,t){Ss(n),t||(t={}),this.options=t,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const n=this.pattern,t=this.options;if(!t.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(yp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const n=this.pattern;let t=!1,a=0;for(let s=0;s<n.length&&n.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=n.slice(a)),this.negate=t}matchOne(n,t,a){var s=this.options;this.debug("matchOne",{this:this,file:n,pattern:t}),this.debug("matchOne",n.length,t.length);for(var i=0,c=0,l=n.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],h=n[i];if(this.debug(t,p,h),p===!1)return!1;if(p===br){this.debug("GLOBSTAR",[t,p,h]);var m=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(n[i]==="."||n[i]===".."||!s.dot&&n[i].charAt(0)===".")return!1;return!0}for(;m<l;){var S=n[m];if(this.debug(`
|
|
35
|
-
globstar while`,n,
|
|
36
|
-
>>> no match, partial?`,n,
|
|
37
|
-
%s`,
|
|
33
|
+
`)+B+`return __p
|
|
34
|
+
}`;var be=wd(function(){return Oe(m,ee+"return "+B).apply(t,S)});if(be.source=B,Vi(be))throw be;return be}function zE(r){return De(r).toLowerCase()}function VE(r){return De(r).toUpperCase()}function KE(r,o,u){if(r=De(r),r&&(u||o===t))return Dl(r);if(!r||!(o=jt(o)))return r;var f=ir(r),g=ir(o),m=Il(f,g),S=Fl(f,g)+1;return Jr(f,m,S).join("")}function JE(r,o,u){if(r=De(r),r&&(u||o===t))return r.slice(0,Ml(r)+1);if(!r||!(o=jt(o)))return r;var f=ir(r),g=Fl(f,ir(o))+1;return Jr(f,0,g).join("")}function XE(r,o,u){if(r=De(r),r&&(u||o===t))return r.replace(J,"");if(!r||!(o=jt(o)))return r;var f=ir(r),g=Il(f,ir(o));return Jr(f,g).join("")}function ZE(r,o){var u=We,f=Te;if(Ze(o)){var g="separator"in o?o.separator:g;u="length"in o?me(o.length):u,f="omission"in o?jt(o.omission):f}r=De(r);var m=r.length;if(On(r)){var S=ir(r);m=S.length}if(u>=m)return r;var C=u-An(f);if(C<1)return f;var A=S?Jr(S,0,C).join(""):r.slice(0,C);if(g===t)return A+f;if(S&&(C+=A.length-C),Ki(g)){if(r.slice(C).search(g)){var L,N=A;for(g.global||(g=fi(g.source,De(zt.exec(g))+"g")),g.lastIndex=0;L=g.exec(N);)var B=L.index;A=A.slice(0,B===t?C:B)}}else if(r.indexOf(jt(g),C)!=C){var V=A.lastIndexOf(g);V>-1&&(A=A.slice(0,V))}return A+f}function QE(r){return r=De(r),r&&Va.test(r)?r.replace(za,Om):r}var eS=Ln(function(r,o,u){return r+(u?" ":"")+o.toUpperCase()}),Zi=Tf("toUpperCase");function Sd(r,o,u){return r=De(r),o=u?t:o,o===t?wm(r)?Dm(r):hm(r):r.match(o)||[]}var wd=_e(function(r,o){try{return Nt(r,t,o)}catch(u){return Vi(u)?u:new pe(u)}}),tS=Rr(function(r,o){return Kt(o,function(u){u=yr(u),Cr(r,u,Yi(r[u],r))}),r});function rS(r){var o=r==null?0:r.length,u=re();return r=o?Ke(r,function(f){if(typeof f[1]!="function")throw new Jt(c);return[u(f[0]),f[1]]}):[],_e(function(f){for(var g=-1;++g<o;){var m=r[g];if(Nt(m[0],this,f))return Nt(m[1],this,f)}})}function nS(r){return Oy(Zt(r,y))}function Qi(r){return function(){return r}}function aS(r,o){return r==null||r!==r?o:r}var oS=xf(),sS=xf(!0);function Mt(r){return r}function eu(r){return tf(typeof r=="function"?r:Zt(r,y))}function iS(r){return nf(Zt(r,y))}function uS(r,o){return af(r,Zt(o,y))}var cS=_e(function(r,o){return function(u){return va(u,r,o)}}),lS=_e(function(r,o){return function(u){return va(r,u,o)}});function tu(r,o,u){var f=dt(o),g=Eo(o,f);u==null&&!(Ze(o)&&(g.length||!f.length))&&(u=o,o=r,r=this,g=Eo(o,dt(o)));var m=!(Ze(u)&&"chain"in u)||!!u.chain,S=Ar(r);return Kt(g,function(C){var A=o[C];r[C]=A,S&&(r.prototype[C]=function(){var L=this.__chain__;if(m||L){var N=r(this.__wrapped__),B=N.__actions__=It(this.__actions__);return B.push({func:A,args:arguments,thisArg:r}),N.__chain__=L,N}return A.apply(r,Gr([this.value()],arguments))})}),r}function fS(){return gt._===this&&(gt._=Nm),this}function ru(){}function dS(r){return r=me(r),_e(function(o){return of(o,r)})}var pS=Fi(Ke),hS=Fi(xl),gS=Fi(ai);function Td(r){return Bi(r)?oi(yr(r)):qy(r)}function vS(r){return function(o){return r==null?t:vn(r,o)}}var mS=Of(),yS=Of(!0);function nu(){return[]}function au(){return!1}function bS(){return{}}function _S(){return""}function ES(){return!0}function SS(r,o){if(r=me(r),r<1||r>rt)return[];var u=q,f=bt(r,q);o=re(o),r-=q;for(var g=ui(f,o);++u<r;)o(u);return g}function wS(r){return ve(r)?Ke(r,yr):Bt(r)?[r]:It(Gf(De(r)))}function TS(r){var o=++Mm;return De(r)+o}var CS=Ro(function(r,o){return r+o},0),xS=$i("ceil"),RS=Ro(function(r,o){return r/o},1),OS=$i("floor");function AS(r){return r&&r.length?_o(r,Mt,bi):t}function PS(r,o){return r&&r.length?_o(r,re(o,2),bi):t}function DS(r){return Al(r,Mt)}function IS(r,o){return Al(r,re(o,2))}function FS(r){return r&&r.length?_o(r,Mt,wi):t}function $S(r,o){return r&&r.length?_o(r,re(o,2),wi):t}var MS=Ro(function(r,o){return r*o},1),LS=$i("round"),NS=Ro(function(r,o){return r-o},0);function kS(r){return r&&r.length?ii(r,Mt):0}function jS(r,o){return r&&r.length?ii(r,re(o,2)):0}return v.after=i_,v.ary=td,v.assign=V_,v.assignIn=gd,v.assignInWith=Bo,v.assignWith=K_,v.at=J_,v.before=rd,v.bind=Yi,v.bindAll=tS,v.bindKey=nd,v.castArray=b_,v.chain=Zf,v.chunk=Ob,v.compact=Ab,v.concat=Pb,v.cond=rS,v.conforms=nS,v.constant=Qi,v.countBy=k0,v.create=X_,v.curry=ad,v.curryRight=od,v.debounce=sd,v.defaults=Z_,v.defaultsDeep=Q_,v.defer=u_,v.delay=c_,v.difference=Db,v.differenceBy=Ib,v.differenceWith=Fb,v.drop=$b,v.dropRight=Mb,v.dropRightWhile=Lb,v.dropWhile=Nb,v.fill=kb,v.filter=B0,v.flatMap=H0,v.flatMapDeep=G0,v.flatMapDepth=q0,v.flatten=Vf,v.flattenDeep=jb,v.flattenDepth=Bb,v.flip=l_,v.flow=oS,v.flowRight=sS,v.fromPairs=Wb,v.functions=sE,v.functionsIn=iE,v.groupBy=Y0,v.initial=Hb,v.intersection=Gb,v.intersectionBy=qb,v.intersectionWith=Yb,v.invert=cE,v.invertBy=lE,v.invokeMap=V0,v.iteratee=eu,v.keyBy=K0,v.keys=dt,v.keysIn=$t,v.map=$o,v.mapKeys=dE,v.mapValues=pE,v.matches=iS,v.matchesProperty=uS,v.memoize=Lo,v.merge=hE,v.mergeWith=vd,v.method=cS,v.methodOf=lS,v.mixin=tu,v.negate=No,v.nthArg=dS,v.omit=gE,v.omitBy=vE,v.once=f_,v.orderBy=J0,v.over=pS,v.overArgs=d_,v.overEvery=hS,v.overSome=gS,v.partial=zi,v.partialRight=id,v.partition=X0,v.pick=mE,v.pickBy=md,v.property=Td,v.propertyOf=vS,v.pull=Jb,v.pullAll=Jf,v.pullAllBy=Xb,v.pullAllWith=Zb,v.pullAt=Qb,v.range=mS,v.rangeRight=yS,v.rearg=p_,v.reject=e_,v.remove=e0,v.rest=h_,v.reverse=Gi,v.sampleSize=r_,v.set=bE,v.setWith=_E,v.shuffle=n_,v.slice=t0,v.sortBy=s_,v.sortedUniq=u0,v.sortedUniqBy=c0,v.split=HE,v.spread=g_,v.tail=l0,v.take=f0,v.takeRight=d0,v.takeRightWhile=p0,v.takeWhile=h0,v.tap=A0,v.throttle=v_,v.thru=Fo,v.toArray=dd,v.toPairs=yd,v.toPairsIn=bd,v.toPath=wS,v.toPlainObject=hd,v.transform=EE,v.unary=m_,v.union=g0,v.unionBy=v0,v.unionWith=m0,v.uniq=y0,v.uniqBy=b0,v.uniqWith=_0,v.unset=SE,v.unzip=qi,v.unzipWith=Xf,v.update=wE,v.updateWith=TE,v.values=jn,v.valuesIn=CE,v.without=E0,v.words=Sd,v.wrap=y_,v.xor=S0,v.xorBy=w0,v.xorWith=T0,v.zip=C0,v.zipObject=x0,v.zipObjectDeep=R0,v.zipWith=O0,v.entries=yd,v.entriesIn=bd,v.extend=gd,v.extendWith=Bo,tu(v,v),v.add=CS,v.attempt=wd,v.camelCase=AE,v.capitalize=_d,v.ceil=xS,v.clamp=xE,v.clone=__,v.cloneDeep=S_,v.cloneDeepWith=w_,v.cloneWith=E_,v.conformsTo=T_,v.deburr=Ed,v.defaultTo=aS,v.divide=RS,v.endsWith=PE,v.eq=cr,v.escape=DE,v.escapeRegExp=IE,v.every=j0,v.find=W0,v.findIndex=Yf,v.findKey=eE,v.findLast=U0,v.findLastIndex=zf,v.findLastKey=tE,v.floor=OS,v.forEach=Qf,v.forEachRight=ed,v.forIn=rE,v.forInRight=nE,v.forOwn=aE,v.forOwnRight=oE,v.get=Ji,v.gt=C_,v.gte=x_,v.has=uE,v.hasIn=Xi,v.head=Kf,v.identity=Mt,v.includes=z0,v.indexOf=Ub,v.inRange=RE,v.invoke=fE,v.isArguments=bn,v.isArray=ve,v.isArrayBuffer=R_,v.isArrayLike=Ft,v.isArrayLikeObject=nt,v.isBoolean=O_,v.isBuffer=Xr,v.isDate=A_,v.isElement=P_,v.isEmpty=D_,v.isEqual=I_,v.isEqualWith=F_,v.isError=Vi,v.isFinite=$_,v.isFunction=Ar,v.isInteger=ud,v.isLength=ko,v.isMap=cd,v.isMatch=M_,v.isMatchWith=L_,v.isNaN=N_,v.isNative=k_,v.isNil=B_,v.isNull=j_,v.isNumber=ld,v.isObject=Ze,v.isObjectLike=tt,v.isPlainObject=Sa,v.isRegExp=Ki,v.isSafeInteger=W_,v.isSet=fd,v.isString=jo,v.isSymbol=Bt,v.isTypedArray=kn,v.isUndefined=U_,v.isWeakMap=H_,v.isWeakSet=G_,v.join=zb,v.kebabCase=FE,v.last=er,v.lastIndexOf=Vb,v.lowerCase=$E,v.lowerFirst=ME,v.lt=q_,v.lte=Y_,v.max=AS,v.maxBy=PS,v.mean=DS,v.meanBy=IS,v.min=FS,v.minBy=$S,v.stubArray=nu,v.stubFalse=au,v.stubObject=bS,v.stubString=_S,v.stubTrue=ES,v.multiply=MS,v.nth=Kb,v.noConflict=fS,v.noop=ru,v.now=Mo,v.pad=LE,v.padEnd=NE,v.padStart=kE,v.parseInt=jE,v.random=OE,v.reduce=Z0,v.reduceRight=Q0,v.repeat=BE,v.replace=WE,v.result=yE,v.round=LS,v.runInContext=R,v.sample=t_,v.size=a_,v.snakeCase=UE,v.some=o_,v.sortedIndex=r0,v.sortedIndexBy=n0,v.sortedIndexOf=a0,v.sortedLastIndex=o0,v.sortedLastIndexBy=s0,v.sortedLastIndexOf=i0,v.startCase=GE,v.startsWith=qE,v.subtract=NS,v.sum=kS,v.sumBy=jS,v.template=YE,v.times=SS,v.toFinite=Pr,v.toInteger=me,v.toLength=pd,v.toLower=zE,v.toNumber=tr,v.toSafeInteger=z_,v.toString=De,v.toUpper=VE,v.trim=KE,v.trimEnd=JE,v.trimStart=XE,v.truncate=ZE,v.unescape=QE,v.uniqueId=TS,v.upperCase=eS,v.upperFirst=Zi,v.each=Qf,v.eachRight=ed,v.first=Kf,tu(v,function(){var r={};return vr(v,function(o,u){ke.call(v.prototype,u)||(r[u]=o)}),r}(),{chain:!1}),v.VERSION=a,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){v[r].placeholder=v}),Kt(["drop","take"],function(r,o){we.prototype[r]=function(u){u=u===t?1:ct(me(u),0);var f=this.__filtered__&&!o?new we(this):this.clone();return f.__filtered__?f.__takeCount__=bt(u,f.__takeCount__):f.__views__.push({size:bt(u,q),type:r+(f.__dir__<0?"Right":"")}),f},we.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),Kt(["filter","map","takeWhile"],function(r,o){var u=o+1,f=u==Pe||u==Qe;we.prototype[r]=function(g){var m=this.clone();return m.__iteratees__.push({iteratee:re(g,3),type:u}),m.__filtered__=m.__filtered__||f,m}}),Kt(["head","last"],function(r,o){var u="take"+(o?"Right":"");we.prototype[r]=function(){return this[u](1).value()[0]}}),Kt(["initial","tail"],function(r,o){var u="drop"+(o?"":"Right");we.prototype[r]=function(){return this.__filtered__?new we(this):this[u](1)}}),we.prototype.compact=function(){return this.filter(Mt)},we.prototype.find=function(r){return this.filter(r).head()},we.prototype.findLast=function(r){return this.reverse().find(r)},we.prototype.invokeMap=_e(function(r,o){return typeof r=="function"?new we(this):this.map(function(u){return va(u,r,o)})}),we.prototype.reject=function(r){return this.filter(No(re(r)))},we.prototype.slice=function(r,o){r=me(r);var u=this;return u.__filtered__&&(r>0||o<0)?new we(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),o!==t&&(o=me(o),u=o<0?u.dropRight(-o):u.take(o-r)),u)},we.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},we.prototype.toArray=function(){return this.take(q)},vr(we.prototype,function(r,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),g=v[f?"take"+(o=="last"?"Right":""):o],m=f||/^find/.test(o);g&&(v.prototype[o]=function(){var S=this.__wrapped__,C=f?[1]:arguments,A=S instanceof we,L=C[0],N=A||ve(S),B=function(Se){var xe=g.apply(v,Gr([Se],C));return f&&V?xe[0]:xe};N&&u&&typeof L=="function"&&L.length!=1&&(A=N=!1);var V=this.__chain__,ee=!!this.__actions__.length,ae=m&&!V,be=A&&!ee;if(!m&&N){S=be?S:new we(this);var oe=r.apply(S,C);return oe.__actions__.push({func:Fo,args:[B],thisArg:t}),new Xt(oe,V)}return ae&&be?r.apply(this,C):(oe=this.thru(B),ae?f?oe.value()[0]:oe.value():oe)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(r){var o=ao[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);v.prototype[r]=function(){var g=arguments;if(f&&!this.__chain__){var m=this.value();return o.apply(ve(m)?m:[],g)}return this[u](function(S){return o.apply(ve(S)?S:[],g)})}}),vr(we.prototype,function(r,o){var u=v[o];if(u){var f=u.name+"";ke.call(Fn,f)||(Fn[f]=[]),Fn[f].push({name:o,func:u})}}),Fn[xo(t,P).name]=[{name:"wrapper",func:t}],we.prototype.clone=Qm,we.prototype.reverse=ey,we.prototype.value=ty,v.prototype.at=P0,v.prototype.chain=D0,v.prototype.commit=I0,v.prototype.next=F0,v.prototype.plant=M0,v.prototype.reverse=L0,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=N0,v.prototype.first=v.prototype.head,ca&&(v.prototype[ca]=$0),v},Pn=Im();fn?((fn.exports=Pn)._=Pn,ei._=Pn):gt._=Pn}).call(Fr)})(cs,cs.exports);var He=cs.exports;const Sh=_s(He);function Tc(e){return`Debugger/${e}`}function wh(e,n){var a;const t=(a=n.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const lR=typeof process=="object"&&process&&process.platform==="win32";var fR=lR?{sep:"\\"}:{sep:"/"},dR=Th;function Th(e,n,t){e instanceof RegExp&&(e=ip(e,t)),n instanceof RegExp&&(n=ip(n,t));var a=Ch(e,n,t);return a&&{start:a[0],end:a[1],pre:t.slice(0,a[0]),body:t.slice(a[0]+e.length,a[1]),post:t.slice(a[1]+n.length)}}function ip(e,n){var t=n.match(e);return t?t[0]:null}Th.range=Ch;function Ch(e,n,t){var a,s,i,c,l,d=t.indexOf(e),p=t.indexOf(n,d+1),h=d;if(d>=0&&p>0){if(e===n)return[d,p];for(a=[],i=t.length;h>=0&&!l;)h==d?(a.push(h),d=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,c=p),p=t.indexOf(n,h+1)),h=d<p&&d>=0?d:p;a.length&&(l=[i,c])}return l}var xh=dR,pR=vR,Rh="\0SLASH"+Math.random()+"\0",Oh="\0OPEN"+Math.random()+"\0",Cc="\0CLOSE"+Math.random()+"\0",Ah="\0COMMA"+Math.random()+"\0",Ph="\0PERIOD"+Math.random()+"\0";function vu(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function hR(e){return e.split("\\\\").join(Rh).split("\\{").join(Oh).split("\\}").join(Cc).split("\\,").join(Ah).split("\\.").join(Ph)}function gR(e){return e.split(Rh).join("\\").split(Oh).join("{").split(Cc).join("}").split(Ah).join(",").split(Ph).join(".")}function Dh(e){if(!e)return[""];var n=[],t=xh("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,c=a.split(",");c[c.length-1]+="{"+s+"}";var l=Dh(i);return i.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l)),n.push.apply(n,c),n}function vR(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),xa(hR(e),!0).map(gR)):[]}function mR(e){return"{"+e+"}"}function yR(e){return/^-?0\d/.test(e)}function bR(e,n){return e<=n}function _R(e,n){return e>=n}function xa(e,n){var t=[],a=xh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?xa(a.post,!1):[""];if(/\$$/.test(a.pre))for(var c=0;c<i.length;c++){var l=s+"{"+a.body+"}"+i[c];t.push(l)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=d||p,y=a.body.indexOf(",")>=0;if(!h&&!y)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+Cc+a.post,xa(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Dh(a.body),_.length===1&&(_=xa(_[0],!1).map(mR),_.length===1))return i.map(function(We){return a.pre+_[0]+We});var E;if(h){var T=vu(_[0]),x=vu(_[1]),D=Math.max(_[0].length,_[1].length),P=_.length==3?Math.abs(vu(_[2])):1,j=bR,M=x<T;M&&(P*=-1,j=_R);var k=_.some(yR);E=[];for(var O=T;j(O,x);O+=P){var z;if(p)z=String.fromCharCode(O),z==="\\"&&(z="");else if(z=String(O),k){var H=D-z.length;if(H>0){var Y=new Array(H+1).join("0");O<0?z="-"+Y+z.slice(1):z=Y+z}}E.push(z)}}else{E=[];for(var te=0;te<_.length;te++)E.push.apply(E,xa(_[te],!1))}for(var te=0;te<E.length;te++)for(var c=0;c<i.length;c++){var l=s+E[te]+i[c];(!n||h||l)&&t.push(l)}}return t}const Ht=Ih=(e,n,t={})=>(ls(n),!t.nocomment&&n.charAt(0)==="#"?!1:new Os(n,t).match(e));var Ih=Ht;const Yu=fR;Ht.sep=Yu.sep;const fr=Symbol("globstar **");Ht.GLOBSTAR=fr;const ER=pR,up={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},zu="[^/]",mu=zu+"*?",SR="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wR="(?:(?!(?:\\/|^)\\.).)*?",Fh=e=>e.split("").reduce((n,t)=>(n[t]=!0,n),{}),cp=Fh("().*{}+?[]^$\\!"),TR=Fh("[.("),lp=/\/+/;Ht.filter=(e,n={})=>(t,a,s)=>Ht(t,e,n);const Zr=(e,n={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(n).forEach(a=>t[a]=n[a]),t};Ht.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ht;const n=Ht,t=(a,s,i)=>n(a,s,Zr(e,i));return t.Minimatch=class extends n.Minimatch{constructor(s,i){super(s,Zr(e,i))}},t.Minimatch.defaults=a=>n.defaults(Zr(e,a)).Minimatch,t.filter=(a,s)=>n.filter(a,Zr(e,s)),t.defaults=a=>n.defaults(Zr(e,a)),t.makeRe=(a,s)=>n.makeRe(a,Zr(e,s)),t.braceExpand=(a,s)=>n.braceExpand(a,Zr(e,s)),t.match=(a,s,i)=>n.match(a,s,Zr(e,i)),t};Ht.braceExpand=(e,n)=>$h(e,n);const $h=(e,n={})=>(ls(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ER(e)),CR=1024*64,ls=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>CR)throw new TypeError("pattern is too long")},yu=Symbol("subparse");Ht.makeRe=(e,n)=>new Os(e,n||{}).makeRe();Ht.match=(e,n,t={})=>{const a=new Os(n,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(n),e};const xR=e=>e.replace(/\\(.)/g,"$1"),RR=e=>e.replace(/\\([^-\]])/g,"$1"),OR=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),AR=e=>e.replace(/[[\]\\]/g,"\\$&");class Os{constructor(n,t){ls(n),t||(t={}),this.options=t,this.set=[],this.pattern=n,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const n=this.pattern,t=this.options;if(!t.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();let a=this.globSet=this.braceExpand();t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,a),a=this.globParts=a.map(s=>s.split(lp)),this.debug(this.pattern,a),a=a.map((s,i,c)=>s.map(this.parse,this)),this.debug(this.pattern,a),a=a.filter(s=>s.indexOf(!1)===-1),this.debug(this.pattern,a),this.set=a}parseNegate(){if(this.options.nonegate)return;const n=this.pattern;let t=!1,a=0;for(let s=0;s<n.length&&n.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=n.slice(a)),this.negate=t}matchOne(n,t,a){var s=this.options;this.debug("matchOne",{this:this,file:n,pattern:t}),this.debug("matchOne",n.length,t.length);for(var i=0,c=0,l=n.length,d=t.length;i<l&&c<d;i++,c++){this.debug("matchOne loop");var p=t[c],h=n[i];if(this.debug(t,p,h),p===!1)return!1;if(p===fr){this.debug("GLOBSTAR",[t,p,h]);var y=i,_=c+1;if(_===d){for(this.debug("** at the end");i<l;i++)if(n[i]==="."||n[i]===".."||!s.dot&&n[i].charAt(0)===".")return!1;return!0}for(;y<l;){var E=n[y];if(this.debug(`
|
|
35
|
+
globstar while`,n,y,t,_,E),this.matchOne(n.slice(y),t.slice(_),a))return this.debug("globstar found match!",y,l,E),!0;if(E==="."||E===".."||!s.dot&&E.charAt(0)==="."){this.debug("dot detected!",n,y,t,_);break}this.debug("globstar swallow a segment, and continue"),y++}return!!(a&&(this.debug(`
|
|
36
|
+
>>> no match, partial?`,n,y,t,_),y===l))}var T;if(typeof p=="string"?(T=h===p,this.debug("string match",p,h,T)):(T=h.match(p),this.debug("pattern match",p,h,T)),!T)return!1}if(i===l&&c===d)return!0;if(i===l)return a;if(c===d)return i===l-1&&n[i]==="";throw new Error("wtf?")}braceExpand(){return $h(this.pattern,this.options)}parse(n,t){ls(n);const a=this.options;if(n==="**")if(a.noglobstar)n="*";else return fr;if(n==="")return"";let s="",i=!1,c=!1;const l=[],d=[];let p,h=!1,y=-1,_=-1,E,T,x,D=n.charAt(0)===".",P=a.dot||D;const j=()=>D?"":P?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=H=>H.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=()=>{if(p){switch(p){case"*":s+=mu,i=!0;break;case"?":s+=zu,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let H=0,Y;H<n.length&&(Y=n.charAt(H));H++){if(this.debug("%s %s %s %j",n,H,s,Y),c){if(Y==="/")return!1;cp[Y]&&(s+="\\"),s+=Y,c=!1;continue}switch(Y){case"/":return!1;case"\\":if(h&&n.charAt(H+1)==="-"){s+=Y;continue}k(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",n,H,s,Y),h){this.debug(" in class"),Y==="!"&&H===_+1&&(Y="^"),s+=Y;continue}this.debug("call clearStateChar %j",p),k(),p=Y,a.noext&&k();continue;case"(":{if(h){s+="(";continue}if(!p){s+="\\(";continue}const te={type:p,start:H-1,reStart:s.length,open:up[p].open,close:up[p].close};this.debug(this.pattern," ",te),l.push(te),s+=te.open,te.start===0&&te.type!=="!"&&(D=!0,s+=M(n.slice(H+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const te=l[l.length-1];if(h||!te){s+="\\)";continue}l.pop(),k(),i=!0,T=te,s+=T.close,T.type==="!"&&d.push(Object.assign(T,{reEnd:s.length}));continue}case"|":{const te=l[l.length-1];if(h||!te){s+="\\|";continue}k(),s+="|",te.start===0&&te.type!=="!"&&(D=!0,s+=M(n.slice(H+1)));continue}case"[":if(k(),h){s+="\\"+Y;continue}h=!0,_=H,y=s.length,s+=Y;continue;case"]":if(H===_+1||!h){s+="\\"+Y;continue}E=n.substring(_+1,H);try{RegExp("["+AR(RR(E))+"]"),s+=Y}catch{s=s.substring(0,y)+"(?:$.)"}i=!0,h=!1;continue;default:k(),cp[Y]&&!(Y==="^"&&h)&&(s+="\\"),s+=Y;break}}for(h&&(E=n.slice(_+1),x=this.parse(E,yu),s=s.substring(0,y)+"\\["+x[0],i=i||x[1]),T=l.pop();T;T=l.pop()){let H;H=s.slice(T.reStart+T.open.length),this.debug("setting tail",s,T),H=H.replace(/((?:\\{2}){0,64})(\\?)\|/g,(te,We,Te)=>(Te||(Te="\\"),We+We+Te+"|")),this.debug(`tail=%j
|
|
37
|
+
%s`,H,H,T,s);const Y=T.type==="*"?mu:T.type==="?"?zu:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+Y+"\\("+H}k(),c&&(s+="\\\\");const O=TR[s.charAt(0)];for(let H=d.length-1;H>-1;H--){const Y=d[H],te=s.slice(0,Y.reStart),We=s.slice(Y.reStart,Y.reEnd-8);let Te=s.slice(Y.reEnd);const st=s.slice(Y.reEnd-8,Y.reEnd)+Te,X=te.split(")").length,Pe=te.split("(").length-X;let it=Te;for(let Ge=0;Ge<Pe;Ge++)it=it.replace(/\)[+*?]?/,"");Te=it;const Qe=Te===""&&t!==yu?"(?:$|\\/)":"";s=te+We+Te+Qe+st}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=j()+s),t===yu)return[s,i];if(a.nocase&&!i&&(i=n.toUpperCase()!==n.toLowerCase()),!i)return xR(n);const z=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",z),{_glob:n,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const n=this.set;if(!n.length)return this.regexp=!1,this.regexp;const t=this.options,a=t.noglobstar?mu:t.dot?SR:wR,s=t.nocase?"i":"";let i=n.map(c=>(c=c.map(l=>typeof l=="string"?OR(l):l===fr?fr:l._src).reduce((l,d)=>(l[l.length-1]===fr&&d===fr||l.push(d),l),[]),c.forEach((l,d)=>{l!==fr||c[d-1]===fr||(d===0?c.length>1?c[d+1]="(?:\\/|"+a+"\\/)?"+c[d+1]:c[d]=a:d===c.length-1?c[d-1]+="(?:\\/|"+a+")?":(c[d-1]+="(?:\\/|\\/"+a+"\\/)"+c[d+1],c[d+1]=fr))}),c.filter(l=>l!==fr).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(n,t=this.partial){if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&t)return!0;const a=this.options;Yu.sep!=="/"&&(n=n.split(Yu.sep).join("/")),n=n.split(lp),this.debug(this.pattern,"split",n);const s=this.set;this.debug(this.pattern,"set",s);let i;for(let c=n.length-1;c>=0&&(i=n[c],!i);c--);for(let c=0;c<s.length;c++){const l=s[c];let d=n;if(a.matchBase&&l.length===1&&(d=[i]),this.matchOne(d,l,t))return a.flipNegate?!0:!this.negate}return a.flipNegate?!1:this.negate}static defaults(n){return Ht.defaults(n).Minimatch}}Ht.Minimatch=Os;const Mh=_s(Ih),Lh=[{pattern:b.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:b.MODEL_TAB_PATH,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}],Nh=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function kh(e){const n=e.split("/");return n.pop(),n.join("/")}function pr(e){const n=Lh.find(({pattern:t})=>Mh(e,t,{nocase:!0}));return n||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function jh(e){const n=Nh.find(({pattern:t})=>Mh(e,t,{nocase:!0}));return n?n.type:"text"}var Vu=function(e,n){return Vu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},Vu(e,n)};function As(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Vu(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Ku(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],a=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function fs(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),s,i=[],c;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)i.push(s.value)}catch(l){c={error:l}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(c)throw c.error}}return i}function ds(e,n,t){if(t||arguments.length===2)for(var a=0,s=n.length,i;a<s;a++)(i||!(a in n))&&(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))}function $r(e){return typeof e=="function"}function Bh(e){var n=function(a){Error.call(a),a.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var bu=Bh(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
38
38
|
`+t.map(function(a,s){return s+1+") "+a.toString()}).join(`
|
|
39
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function
|
|
39
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function Ju(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Ps=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,a,s,i;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var l=Ku(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.remove(this)}}catch(x){n={error:x}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else c.remove(this);var h=this.initialTeardown;if($r(h))try{h()}catch(x){i=x instanceof bu?x.errors:[x]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var _=Ku(y),E=_.next();!E.done;E=_.next()){var T=E.value;try{fp(T)}catch(x){i=i??[],x instanceof bu?i=ds(ds([],fs(i)),fs(x.errors)):i.push(x)}}}catch(x){a={error:x}}finally{try{E&&!E.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}if(i)throw new bu(i)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)fp(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&Ju(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&Ju(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Wh=Ps.EMPTY;function Uh(e){return e instanceof Ps||e&&"closed"in e&&$r(e.remove)&&$r(e.add)&&$r(e.unsubscribe)}function fp(e){$r(e)?e():e.unsubscribe()}var Hh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xu={setTimeout:function(e,n){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];var s=Xu.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,ds([e,n],fs(t))):setTimeout.apply(void 0,ds([e,n],fs(t)))},clearTimeout:function(e){var n=Xu.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function PR(e){Xu.setTimeout(function(){throw e})}function dp(){}function Ko(e){e()}var Gh=function(e){As(n,e);function n(t){var a=e.call(this)||this;return a.isStopped=!1,t?(a.destination=t,Uh(t)&&t.add(a)):a.destination=$R,a}return n.create=function(t,a,s){return new Zu(t,a,s)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(Ps),DR=Function.prototype.bind;function _u(e,n){return DR.call(e,n)}var IR=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(a){Uo(a)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(a){Uo(a)}else Uo(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){Uo(t)}},e}(),Zu=function(e){As(n,e);function n(t,a,s){var i=e.call(this)||this,c;if($r(t)||!t)c={next:t??void 0,error:a??void 0,complete:s??void 0};else{var l;i&&Hh.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},c={next:t.next&&_u(t.next,l),error:t.error&&_u(t.error,l),complete:t.complete&&_u(t.complete,l)}):c=t}return i.destination=new IR(c),i}return n}(Gh);function Uo(e){PR(e)}function FR(e){throw e}var $R={closed:!0,next:dp,error:FR,complete:dp},MR=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function LR(e){return e}function NR(e){return e.length===0?LR:e.length===1?e[0]:function(t){return e.reduce(function(a,s){return s(a)},t)}}var pp=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,a){var s=this,i=jR(n)?n:new Zu(n,t,a);return Ko(function(){var c=s,l=c.operator,d=c.source;i.add(l?l.call(i,d):d?s._subscribe(i):s._trySubscribe(i))}),i},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var a=this;return t=hp(t),new t(function(s,i){var c=new Zu({next:function(l){try{n(l)}catch(d){i(d),c.unsubscribe()}},error:i,complete:s});a.subscribe(c)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[MR]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return NR(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=hp(n),new n(function(a,s){var i;t.subscribe(function(c){return i=c},function(c){return s(c)},function(){return a(i)})})},e.create=function(n){return new e(n)},e}();function hp(e){var n;return(n=e??Hh.Promise)!==null&&n!==void 0?n:Promise}function kR(e){return e&&$r(e.next)&&$r(e.error)&&$r(e.complete)}function jR(e){return e&&e instanceof Gh||kR(e)&&Uh(e)}var BR=Bh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qh=function(e){As(n,e);function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype.lift=function(t){var a=new gp(this,this);return a.operator=t,a},n.prototype._throwIfClosed=function(){if(this.closed)throw new BR},n.prototype.next=function(t){var a=this;Ko(function(){var s,i;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var c=Ku(a.currentObservers),l=c.next();!l.done;l=c.next()){var d=l.value;d.next(t)}}catch(p){s={error:p}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(s)throw s.error}}}})},n.prototype.error=function(t){var a=this;Ko(function(){if(a._throwIfClosed(),!a.isStopped){a.hasError=a.isStopped=!0,a.thrownError=t;for(var s=a.observers;s.length;)s.shift().error(t)}})},n.prototype.complete=function(){var t=this;Ko(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var a=t.observers;a.length;)a.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var a=this,s=this,i=s.hasError,c=s.isStopped,l=s.observers;return i||c?Wh:(this.currentObservers=null,l.push(t),new Ps(function(){a.currentObservers=null,Ju(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var a=this,s=a.hasError,i=a.thrownError,c=a.isStopped;s?t.error(i):c&&t.complete()},n.prototype.asObservable=function(){var t=new pp;return t.source=this,t},n.create=function(t,a){return new gp(t,a)},n}(pp),gp=function(e){As(n,e);function n(t,a){var s=e.call(this)||this;return s.destination=t,s.source=a,s}return n.prototype.next=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.next)===null||s===void 0||s.call(a,t)},n.prototype.error=function(t){var a,s;(s=(a=this.destination)===null||a===void 0?void 0:a.error)===null||s===void 0||s.call(a,t)},n.prototype.complete=function(){var t,a;(a=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||a===void 0||a.call(t)},n.prototype._subscribe=function(t){var a,s;return(s=(a=this.source)===null||a===void 0?void 0:a.subscribe(t))!==null&&s!==void 0?s:Wh},n}(qh);const Yh=new qh;var Qu={exports:{}},Ho={exports:{}},Ie={};/** @license React v16.13.1
|
|
40
40
|
* react-is.production.min.js
|
|
41
41
|
*
|
|
42
42
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var
|
|
46
|
+
*/var vp;function WR(){if(vp)return Ie;vp=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(O){if(typeof O=="object"&&O!==null){var z=O.$$typeof;switch(z){case n:switch(O=O.type,O){case d:case p:case a:case i:case s:case y:return O;default:switch(O=O&&O.$$typeof,O){case l:case h:case T:case E:case c:return O;default:return z}}case t:return z}}}function k(O){return M(O)===p}return Ie.AsyncMode=d,Ie.ConcurrentMode=p,Ie.ContextConsumer=l,Ie.ContextProvider=c,Ie.Element=n,Ie.ForwardRef=h,Ie.Fragment=a,Ie.Lazy=T,Ie.Memo=E,Ie.Portal=t,Ie.Profiler=i,Ie.StrictMode=s,Ie.Suspense=y,Ie.isAsyncMode=function(O){return k(O)||M(O)===d},Ie.isConcurrentMode=k,Ie.isContextConsumer=function(O){return M(O)===l},Ie.isContextProvider=function(O){return M(O)===c},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===n},Ie.isForwardRef=function(O){return M(O)===h},Ie.isFragment=function(O){return M(O)===a},Ie.isLazy=function(O){return M(O)===T},Ie.isMemo=function(O){return M(O)===E},Ie.isPortal=function(O){return M(O)===t},Ie.isProfiler=function(O){return M(O)===i},Ie.isStrictMode=function(O){return M(O)===s},Ie.isSuspense=function(O){return M(O)===y},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===y||O===_||typeof O=="object"&&O!==null&&(O.$$typeof===T||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===h||O.$$typeof===D||O.$$typeof===P||O.$$typeof===j||O.$$typeof===x)},Ie.typeOf=M,Ie}var Fe={};/** @license React v16.13.1
|
|
47
47
|
* react-is.development.js
|
|
48
48
|
*
|
|
49
49
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the MIT license found in the
|
|
52
52
|
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var
|
|
53
|
+
*/var mp;function UR(){return mp||(mp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(F){return typeof F=="string"||typeof F=="function"||F===a||F===p||F===i||F===s||F===y||F===_||typeof F=="object"&&F!==null&&(F.$$typeof===T||F.$$typeof===E||F.$$typeof===c||F.$$typeof===l||F.$$typeof===h||F.$$typeof===D||F.$$typeof===P||F.$$typeof===j||F.$$typeof===x)}function k(F){if(typeof F=="object"&&F!==null){var ze=F.$$typeof;switch(ze){case n:var qe=F.type;switch(qe){case d:case p:case a:case i:case s:case y:return qe;default:var yt=qe&&qe.$$typeof;switch(yt){case l:case h:case T:case E:case c:return yt;default:return ze}}case t:return ze}}}var O=d,z=p,H=l,Y=c,te=n,We=h,Te=a,st=T,X=E,Pe=t,it=i,Qe=s,Ge=y,rt=!1;function qt(F){return rt||(rt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(F)||k(F)===d}function W(F){return k(F)===p}function q(F){return k(F)===l}function de(F){return k(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===n}function se(F){return k(F)===h}function fe(F){return k(F)===a}function ne(F){return k(F)===T}function ce(F){return k(F)===E}function ue(F){return k(F)===t}function he(F){return k(F)===i}function ge(F){return k(F)===s}function K(F){return k(F)===y}Fe.AsyncMode=O,Fe.ConcurrentMode=z,Fe.ContextConsumer=H,Fe.ContextProvider=Y,Fe.Element=te,Fe.ForwardRef=We,Fe.Fragment=Te,Fe.Lazy=st,Fe.Memo=X,Fe.Portal=Pe,Fe.Profiler=it,Fe.StrictMode=Qe,Fe.Suspense=Ge,Fe.isAsyncMode=qt,Fe.isConcurrentMode=W,Fe.isContextConsumer=q,Fe.isContextProvider=de,Fe.isElement=le,Fe.isForwardRef=se,Fe.isFragment=fe,Fe.isLazy=ne,Fe.isMemo=ce,Fe.isPortal=ue,Fe.isProfiler=he,Fe.isStrictMode=ge,Fe.isSuspense=K,Fe.isValidElementType=M,Fe.typeOf=k}()),Fe}var yp;function zh(){return yp||(yp=1,process.env.NODE_ENV==="production"?Ho.exports=WR():Ho.exports=UR()),Ho.exports}/*
|
|
54
54
|
object-assign
|
|
55
55
|
(c) Sindre Sorhus
|
|
56
56
|
@license MIT
|
|
57
|
-
*/var
|
|
58
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
57
|
+
*/var Eu,bp;function xc(){if(bp)return Eu;bp=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Eu=s()?Object.assign:function(i,c){for(var l,d=a(i),p,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var y in l)n.call(l,y)&&(d[y]=l[y]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},Eu}var Su,_p;function Rc(){if(_p)return Su;_p=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Su=e,Su}var wu,Ep;function Vh(){return Ep||(Ep=1,wu=Function.call.bind(Object.prototype.hasOwnProperty)),wu}var Tu,Sp;function HR(){if(Sp)return Tu;Sp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Rc(),t={},a=Vh();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function s(i,c,l,d,p){if(process.env.NODE_ENV!=="production"){for(var h in i)if(a(i,h)){var y;try{if(typeof i[h]!="function"){var _=Error((d||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}y=i[h](c,h,d,l,null,n)}catch(T){y=T}if(y&&!(y instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in t)){t[y.message]=!0;var E=p?p():"";e("Failed "+l+" type: "+y.message+(E??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Tu=s,Tu}var Cu,wp;function GR(){if(wp)return Cu;wp=1;var e=zh(),n=xc(),t=Rc(),a=Vh(),s=HR(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function c(){return null}return Cu=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function y(W){var q=W&&(p&&W[p]||W[h]);if(typeof q=="function")return q}var _="<<anonymous>>",E={array:P("array"),bigint:P("bigint"),bool:P("boolean"),func:P("function"),number:P("number"),object:P("object"),string:P("string"),symbol:P("symbol"),any:j(),arrayOf:M,element:k(),elementType:O(),instanceOf:z,node:We(),objectOf:Y,oneOf:H,oneOfType:te,shape:st,exact:X};function T(W,q){return W===q?W!==0||1/W===1/q:W!==W&&q!==q}function x(W,q){this.message=W,this.data=q&&typeof q=="object"?q:{},this.stack=""}x.prototype=Error.prototype;function D(W){if(process.env.NODE_ENV!=="production")var q={},de=0;function le(fe,ne,ce,ue,he,ge,K){if(ue=ue||_,ge=ge||ce,K!==t){if(d){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=ue+":"+ce;!q[ze]&&de<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ge+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[ze]=!0,de++)}}return ne[ce]==null?fe?ne[ce]===null?new x("The "+he+" `"+ge+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new x("The "+he+" `"+ge+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:W(ne,ce,ue,he,ge)}var se=le.bind(null,!1);return se.isRequired=le.bind(null,!0),se}function P(W){function q(de,le,se,fe,ne,ce){var ue=de[le],he=Qe(ue);if(he!==W){var ge=Ge(ue);return new x("Invalid "+fe+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+se+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return D(q)}function j(){return D(c)}function M(W){function q(de,le,se,fe,ne){if(typeof W!="function")return new x("Property `"+ne+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var ce=de[le];if(!Array.isArray(ce)){var ue=Qe(ce);return new x("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected an array."))}for(var he=0;he<ce.length;he++){var ge=W(ce,he,se,fe,ne+"["+he+"]",t);if(ge instanceof Error)return ge}return null}return D(q)}function k(){function W(q,de,le,se,fe){var ne=q[de];if(!l(ne)){var ce=Qe(ne);return new x("Invalid "+se+" `"+fe+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return D(W)}function O(){function W(q,de,le,se,fe){var ne=q[de];if(!e.isValidElementType(ne)){var ce=Qe(ne);return new x("Invalid "+se+" `"+fe+"` of type "+("`"+ce+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return D(W)}function z(W){function q(de,le,se,fe,ne){if(!(de[le]instanceof W)){var ce=W.name||_,ue=qt(de[le]);return new x("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected ")+("instance of `"+ce+"`."))}return null}return D(q)}function H(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function q(de,le,se,fe,ne){for(var ce=de[le],ue=0;ue<W.length;ue++)if(T(ce,W[ue]))return null;var he=JSON.stringify(W,function(K,F){var ze=Ge(F);return ze==="symbol"?String(F):F});return new x("Invalid "+fe+" `"+ne+"` of value `"+String(ce)+"` "+("supplied to `"+se+"`, expected one of "+he+"."))}return D(q)}function Y(W){function q(de,le,se,fe,ne){if(typeof W!="function")return new x("Property `"+ne+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var ce=de[le],ue=Qe(ce);if(ue!=="object")return new x("Invalid "+fe+" `"+ne+"` of type "+("`"+ue+"` supplied to `"+se+"`, expected an object."));for(var he in ce)if(a(ce,he)){var ge=W(ce,he,se,fe,ne+"."+he,t);if(ge instanceof Error)return ge}return null}return D(q)}function te(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var q=0;q<W.length;q++){var de=W[q];if(typeof de!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+rt(de)+" at index "+q+"."),c}function le(se,fe,ne,ce,ue){for(var he=[],ge=0;ge<W.length;ge++){var K=W[ge],F=K(se,fe,ne,ce,ue,t);if(F==null)return null;F.data&&a(F.data,"expectedType")&&he.push(F.data.expectedType)}var ze=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new x("Invalid "+ce+" `"+ue+"` supplied to "+("`"+ne+"`"+ze+"."))}return D(le)}function We(){function W(q,de,le,se,fe){return Pe(q[de])?null:new x("Invalid "+se+" `"+fe+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return D(W)}function Te(W,q,de,le,se){return new x((W||"React class")+": "+q+" type `"+de+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function st(W){function q(de,le,se,fe,ne){var ce=de[le],ue=Qe(ce);if(ue!=="object")return new x("Invalid "+fe+" `"+ne+"` of type `"+ue+"` "+("supplied to `"+se+"`, expected `object`."));for(var he in W){var ge=W[he];if(typeof ge!="function")return Te(se,fe,ne,he,Ge(ge));var K=ge(ce,he,se,fe,ne+"."+he,t);if(K)return K}return null}return D(q)}function X(W){function q(de,le,se,fe,ne){var ce=de[le],ue=Qe(ce);if(ue!=="object")return new x("Invalid "+fe+" `"+ne+"` of type `"+ue+"` "+("supplied to `"+se+"`, expected `object`."));var he=n({},de[le],W);for(var ge in he){var K=W[ge];if(a(W,ge)&&typeof K!="function")return Te(se,fe,ne,ge,Ge(K));if(!K)return new x("Invalid "+fe+" `"+ne+"` key `"+ge+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(de[le],null," ")+`
|
|
58
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var F=K(ce,ge,se,fe,ne+"."+ge,t);if(F)return F}return null}return D(q)}function Pe(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Pe);if(W===null||l(W))return!0;var q=y(W);if(q){var de=q.call(W),le;if(q!==W.entries){for(;!(le=de.next()).done;)if(!Pe(le.value))return!1}else for(;!(le=de.next()).done;){var se=le.value;if(se&&!Pe(se[1]))return!1}}else return!1;return!0;default:return!1}}function it(W,q){return W==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function Qe(W){var q=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":it(q,W)?"symbol":q}function Ge(W){if(typeof W>"u"||W===null)return""+W;var q=Qe(W);if(q==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return q}function rt(W){var q=Ge(W);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function qt(W){return!W.constructor||!W.constructor.name?_:W.constructor.name}return E.checkPropTypes=s,E.resetWarningCache=s.resetWarningCache,E.PropTypes=E,E},Cu}var xu,Tp;function qR(){if(Tp)return xu;Tp=1;var e=Rc();function n(){}function t(){}return t.resetWarningCache=n,xu=function(){function a(c,l,d,p,h,y){if(y!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}a.isRequired=a;function s(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:n};return i.PropTypes=i,i},xu}if(process.env.NODE_ENV!=="production"){var YR=zh(),zR=!0;Qu.exports=GR()(YR.isElement,zR)}else Qu.exports=qR()();var VR=Qu.exports;const Wn=_s(VR);var Nr=pt.createContext(null);process.env.NODE_ENV!=="production"&&(Nr.displayName="ReactRedux");function KR(e){e()}var Kh=KR,JR=function(n){return Kh=n},XR=function(){return Kh};function ZR(){var e=XR(),n=null,t=null;return{clear:function(){n=null,t=null},notify:function(){e(function(){for(var s=n;s;)s.callback(),s=s.next})},get:function(){for(var s=[],i=n;i;)s.push(i),i=i.next;return s},subscribe:function(s){var i=!0,c=t={callback:s,next:null,prev:t};return c.prev?c.prev.next=c:n=c,function(){!i||n===null||(i=!1,c.next?c.next.prev=c.prev:t=c.prev,c.prev?c.prev.next=c.next:n=c.next)}}}}var Cp={notify:function(){},get:function(){return[]}};function Jh(e,n){var t,a=Cp;function s(y){return d(),a.subscribe(y)}function i(){a.notify()}function c(){h.onStateChange&&h.onStateChange()}function l(){return!!t}function d(){t||(t=n?n.addNestedSub(c):e.subscribe(c),a=ZR())}function p(){t&&(t(),t=void 0,a.clear(),a=Cp)}var h={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:c,isSubscribed:l,trySubscribe:d,tryUnsubscribe:p,getListeners:function(){return a}};return h}var ec=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?pt.useLayoutEffect:pt.useEffect;function Xh(e){var n=e.store,t=e.context,a=e.children,s=pt.useMemo(function(){var l=Jh(n);return{store:n,subscription:l}},[n]),i=pt.useMemo(function(){return n.getState()},[n]);ec(function(){var l=s.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==n.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[s,i]);var c=t||Nr;return pt.createElement(c.Provider,{value:s},a)}process.env.NODE_ENV!=="production"&&(Xh.propTypes={store:Wn.shape({subscribe:Wn.func.isRequired,dispatch:Wn.func.isRequired,getState:Wn.func.isRequired}),context:Wn.object,children:Wn.any});var tc={exports:{}},$e={};/** @license React v16.13.1
|
|
59
59
|
* react-is.production.min.js
|
|
60
60
|
*
|
|
61
61
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var
|
|
65
|
+
*/var xp;function QR(){if(xp)return $e;xp=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(O){if(typeof O=="object"&&O!==null){var z=O.$$typeof;switch(z){case n:switch(O=O.type,O){case d:case p:case a:case i:case s:case y:return O;default:switch(O=O&&O.$$typeof,O){case l:case h:case T:case E:case c:return O;default:return z}}case t:return z}}}function k(O){return M(O)===p}return $e.AsyncMode=d,$e.ConcurrentMode=p,$e.ContextConsumer=l,$e.ContextProvider=c,$e.Element=n,$e.ForwardRef=h,$e.Fragment=a,$e.Lazy=T,$e.Memo=E,$e.Portal=t,$e.Profiler=i,$e.StrictMode=s,$e.Suspense=y,$e.isAsyncMode=function(O){return k(O)||M(O)===d},$e.isConcurrentMode=k,$e.isContextConsumer=function(O){return M(O)===l},$e.isContextProvider=function(O){return M(O)===c},$e.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===n},$e.isForwardRef=function(O){return M(O)===h},$e.isFragment=function(O){return M(O)===a},$e.isLazy=function(O){return M(O)===T},$e.isMemo=function(O){return M(O)===E},$e.isPortal=function(O){return M(O)===t},$e.isProfiler=function(O){return M(O)===i},$e.isStrictMode=function(O){return M(O)===s},$e.isSuspense=function(O){return M(O)===y},$e.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===p||O===i||O===s||O===y||O===_||typeof O=="object"&&O!==null&&(O.$$typeof===T||O.$$typeof===E||O.$$typeof===c||O.$$typeof===l||O.$$typeof===h||O.$$typeof===D||O.$$typeof===P||O.$$typeof===j||O.$$typeof===x)},$e.typeOf=M,$e}var Me={};/** @license React v16.13.1
|
|
66
66
|
* react-is.development.js
|
|
67
67
|
*
|
|
68
68
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the MIT license found in the
|
|
71
71
|
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var
|
|
72
|
+
*/var Rp;function eO(){return Rp||(Rp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function M(F){return typeof F=="string"||typeof F=="function"||F===a||F===p||F===i||F===s||F===y||F===_||typeof F=="object"&&F!==null&&(F.$$typeof===T||F.$$typeof===E||F.$$typeof===c||F.$$typeof===l||F.$$typeof===h||F.$$typeof===D||F.$$typeof===P||F.$$typeof===j||F.$$typeof===x)}function k(F){if(typeof F=="object"&&F!==null){var ze=F.$$typeof;switch(ze){case n:var qe=F.type;switch(qe){case d:case p:case a:case i:case s:case y:return qe;default:var yt=qe&&qe.$$typeof;switch(yt){case l:case h:case T:case E:case c:return yt;default:return ze}}case t:return ze}}}var O=d,z=p,H=l,Y=c,te=n,We=h,Te=a,st=T,X=E,Pe=t,it=i,Qe=s,Ge=y,rt=!1;function qt(F){return rt||(rt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(F)||k(F)===d}function W(F){return k(F)===p}function q(F){return k(F)===l}function de(F){return k(F)===c}function le(F){return typeof F=="object"&&F!==null&&F.$$typeof===n}function se(F){return k(F)===h}function fe(F){return k(F)===a}function ne(F){return k(F)===T}function ce(F){return k(F)===E}function ue(F){return k(F)===t}function he(F){return k(F)===i}function ge(F){return k(F)===s}function K(F){return k(F)===y}Me.AsyncMode=O,Me.ConcurrentMode=z,Me.ContextConsumer=H,Me.ContextProvider=Y,Me.Element=te,Me.ForwardRef=We,Me.Fragment=Te,Me.Lazy=st,Me.Memo=X,Me.Portal=Pe,Me.Profiler=it,Me.StrictMode=Qe,Me.Suspense=Ge,Me.isAsyncMode=qt,Me.isConcurrentMode=W,Me.isContextConsumer=q,Me.isContextProvider=de,Me.isElement=le,Me.isForwardRef=se,Me.isFragment=fe,Me.isLazy=ne,Me.isMemo=ce,Me.isPortal=ue,Me.isProfiler=he,Me.isStrictMode=ge,Me.isSuspense=K,Me.isValidElementType=M,Me.typeOf=k}()),Me}process.env.NODE_ENV==="production"?tc.exports=QR():tc.exports=eO();var tO=tc.exports,Zh=tO,rO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qh={};Qh[Zh.ForwardRef]=rO;Qh[Zh.Memo]=nO;var je={};/** @license React v17.0.2
|
|
73
73
|
* react-is.production.min.js
|
|
74
74
|
*
|
|
75
75
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var
|
|
79
|
+
*/var Op;function aO(){if(Op)return je;Op=1;var e=60103,n=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,y=60116,_=60121,E=60122,T=60117,x=60129,D=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;e=P("react.element"),n=P("react.portal"),t=P("react.fragment"),a=P("react.strict_mode"),s=P("react.profiler"),i=P("react.provider"),c=P("react.context"),l=P("react.forward_ref"),d=P("react.suspense"),p=P("react.suspense_list"),h=P("react.memo"),y=P("react.lazy"),_=P("react.block"),E=P("react.server.block"),T=P("react.fundamental"),x=P("react.debug_trace_mode"),D=P("react.legacy_hidden")}function j(X){if(typeof X=="object"&&X!==null){var Pe=X.$$typeof;switch(Pe){case e:switch(X=X.type,X){case t:case s:case a:case d:case p:return X;default:switch(X=X&&X.$$typeof,X){case c:case l:case y:case h:case i:return X;default:return Pe}}case n:return Pe}}}var M=i,k=e,O=l,z=t,H=y,Y=h,te=n,We=s,Te=a,st=d;return je.ContextConsumer=c,je.ContextProvider=M,je.Element=k,je.ForwardRef=O,je.Fragment=z,je.Lazy=H,je.Memo=Y,je.Portal=te,je.Profiler=We,je.StrictMode=Te,je.Suspense=st,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(X){return j(X)===c},je.isContextProvider=function(X){return j(X)===i},je.isElement=function(X){return typeof X=="object"&&X!==null&&X.$$typeof===e},je.isForwardRef=function(X){return j(X)===l},je.isFragment=function(X){return j(X)===t},je.isLazy=function(X){return j(X)===y},je.isMemo=function(X){return j(X)===h},je.isPortal=function(X){return j(X)===n},je.isProfiler=function(X){return j(X)===s},je.isStrictMode=function(X){return j(X)===a},je.isSuspense=function(X){return j(X)===d},je.isValidElementType=function(X){return typeof X=="string"||typeof X=="function"||X===t||X===s||X===x||X===a||X===d||X===p||X===D||typeof X=="object"&&X!==null&&(X.$$typeof===y||X.$$typeof===h||X.$$typeof===i||X.$$typeof===c||X.$$typeof===l||X.$$typeof===T||X.$$typeof===_||X[0]===E)},je.typeOf=j,je}var Be={};/** @license React v17.0.2
|
|
80
80
|
* react-is.development.js
|
|
81
81
|
*
|
|
82
82
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the MIT license found in the
|
|
85
85
|
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var
|
|
86
|
+
*/var Ap;function oO(){return Ap||(Ap=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,n=60106,t=60107,a=60108,s=60114,i=60109,c=60110,l=60112,d=60113,p=60120,h=60115,y=60116,_=60121,E=60122,T=60117,x=60129,D=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;e=P("react.element"),n=P("react.portal"),t=P("react.fragment"),a=P("react.strict_mode"),s=P("react.profiler"),i=P("react.provider"),c=P("react.context"),l=P("react.forward_ref"),d=P("react.suspense"),p=P("react.suspense_list"),h=P("react.memo"),y=P("react.lazy"),_=P("react.block"),E=P("react.server.block"),T=P("react.fundamental"),P("react.scope"),P("react.opaque.id"),x=P("react.debug_trace_mode"),P("react.offscreen"),D=P("react.legacy_hidden")}var j=!1;function M(K){return!!(typeof K=="string"||typeof K=="function"||K===t||K===s||K===x||K===a||K===d||K===p||K===D||j||typeof K=="object"&&K!==null&&(K.$$typeof===y||K.$$typeof===h||K.$$typeof===i||K.$$typeof===c||K.$$typeof===l||K.$$typeof===T||K.$$typeof===_||K[0]===E))}function k(K){if(typeof K=="object"&&K!==null){var F=K.$$typeof;switch(F){case e:var ze=K.type;switch(ze){case t:case s:case a:case d:case p:return ze;default:var qe=ze&&ze.$$typeof;switch(qe){case c:case l:case y:case h:case i:return qe;default:return F}}case n:return F}}}var O=c,z=i,H=e,Y=l,te=t,We=y,Te=h,st=n,X=s,Pe=a,it=d,Qe=!1,Ge=!1;function rt(K){return Qe||(Qe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function qt(K){return Ge||(Ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(K){return k(K)===c}function q(K){return k(K)===i}function de(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function le(K){return k(K)===l}function se(K){return k(K)===t}function fe(K){return k(K)===y}function ne(K){return k(K)===h}function ce(K){return k(K)===n}function ue(K){return k(K)===s}function he(K){return k(K)===a}function ge(K){return k(K)===d}Be.ContextConsumer=O,Be.ContextProvider=z,Be.Element=H,Be.ForwardRef=Y,Be.Fragment=te,Be.Lazy=We,Be.Memo=Te,Be.Portal=st,Be.Profiler=X,Be.StrictMode=Pe,Be.Suspense=it,Be.isAsyncMode=rt,Be.isConcurrentMode=qt,Be.isContextConsumer=W,Be.isContextProvider=q,Be.isElement=de,Be.isForwardRef=le,Be.isFragment=se,Be.isLazy=fe,Be.isMemo=ne,Be.isPortal=ce,Be.isProfiler=ue,Be.isStrictMode=he,Be.isSuspense=ge,Be.isValidElementType=M,Be.typeOf=k}()),Be}process.env.NODE_ENV==="production"?aO():oO();function Pp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function eg(e,n){if(Pp(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var t=Object.keys(e),a=Object.keys(n);if(t.length!==a.length)return!1;for(var s=0;s<t.length;s++)if(!Object.prototype.hasOwnProperty.call(n,t[s])||!Pp(e[t[s]],n[t[s]]))return!1;return!0}function tg(){var e=pt.useContext(Nr);if(process.env.NODE_ENV!=="production"&&!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}function rg(e){e===void 0&&(e=Nr);var n=e===Nr?tg:function(){return pt.useContext(e)};return function(){var a=n(),s=a.store;return s}}var sO=rg();function iO(e){e===void 0&&(e=Nr);var n=e===Nr?sO:rg(e);return function(){var a=n();return a.dispatch}}var uO=iO(),cO=function(n,t){return n===t};function lO(e,n,t,a){var s=pt.useReducer(function(T){return T+1},0),i=s[1],c=pt.useMemo(function(){return Jh(t,a)},[t,a]),l=pt.useRef(),d=pt.useRef(),p=pt.useRef(),h=pt.useRef(),y=t.getState(),_;try{if(e!==d.current||y!==p.current||l.current){var E=e(y);h.current===void 0||!n(E,h.current)?_=E:_=h.current}else _=h.current}catch(T){throw l.current&&(T.message+=`
|
|
87
87
|
The error may be correlated with this previous error:
|
|
88
88
|
`+l.current.stack+`
|
|
89
89
|
|
|
90
|
-
`),T}return oc(function(){d.current=e,p.current=m,h.current=_,l.current=void 0}),oc(function(){function T(){try{var C=t.getState();if(C===p.current)return;var F=d.current(C);if(n(F,h.current))return;h.current=F,p.current=C}catch(D){l.current=D}i()}return c.onStateChange=T,c.trySubscribe(),T(),function(){return c.tryUnsubscribe()}},[t,c]),_}function wR(e){e===void 0&&(e=Jr);var n=e===Jr?dg:function(){return dt.useContext(e)};return function(a,s){if(s===void 0&&(s=ER),process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}var i=n(),c=i.store,l=i.subscription,d=SR(a,s,c,l);return dt.useDebugValue(d),d}}var TR=wR();uR(ZE.unstable_batchedUpdates);const xR=()=>_R(),Xr=TR,$c=z(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),CR=z(e=>e,({catalog:e})=>e.state),hg=z($c,e=>e?e.dataClasses:[]),OR=z(hg,e=>Object.values(e).filter(({virtual:n})=>n)),RR=z($c,e=>e?e.methods:[]),gg=e=>z(n=>n,n=>{switch(n.catalog.state){case"loaded":const t=e?n.catalog.model.dataClasses[e]:n.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),AR=e=>Xr(gg(e),fg),PR=(e,n)=>z(gg(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===n)),DR=(e,n,t)=>Xr(PR(e,`${t}.${n}`),fg),vg=z(e=>e,e=>e),IR=e=>z(Zr,n=>{var s;const t=n.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),yg=e=>z(Zr,n=>{var a,s;const t=n.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),FR=(e,n,t)=>z(vg,a=>{var s,i;if(n){const c=a.sharedDatasources.sources[n];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),mg=z(e=>e,e=>{var n;return((n=e.sharedDatasources)==null?void 0:n.sources)||[]}),$R=(e,n,t,a)=>z(yg(e),mg,(s,i)=>{const c=Ke.flatten(Ke.values(i)),l=[...n!=="private"?s:[],...n!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:h=""})=>d.id!==p||(d.namespace||"")!==h))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),MR=z(e=>e.debugger,e=>e.meta),Bn=z(e=>e.debugger,e=>e.list),jt=z(e=>e.debugger,e=>e.sessions),NR=z(jt,e=>e.length),jn=(e,n,t,a)=>e.find(s=>s.filePath===n&&s.methodName===t&&(!a||s.className===a)),ft=(e,n)=>e.find(t=>t.threadId===n),bg=(e,n)=>e.find(t=>t.tabPath===n),LR=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.saved.locations)||[]}),jR=(e,n)=>z(Bn,t=>{var a;return((a=jn(t,e,n))==null?void 0:a.breakpoints.draft.locations)||[]}),kR=e=>z(Bn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.saved.locations.map(s=>({...s,line:s.line+(a.breakpoints.saved.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),BR=e=>z(Bn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.draft.locations.map(s=>({...s,line:s.line+(a.breakpoints.draft.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),WR=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.highlightedLines:null}),UR=e=>z(jt,n=>{const t=ft(n,e);return t!=null&&t.stopped?t.activeLine:null}),HR=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.expressions)||[]}),GR=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stopped)||!1}),qR=(e,n)=>z(Bn,t=>{var a;return(a=jn(t,e,n))==null?void 0:a.source}),YR=e=>z(jt,n=>{var t;return((t=bg(n,e))==null?void 0:t.threadId)||-1}),zR=e=>z(jt,n=>{var t,a;return(a=(t=ft(n,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),VR=e=>z(jt,n=>{var t;return(t=ft(n,e))==null?void 0:t.currentStackFrame}),KR=z(jt,e=>e.map(({channelId:n,threadId:t})=>({id:n,threadId:t}))),JR=e=>z(jt,n=>{var t;return((t=ft(n,e))==null?void 0:t.stackFrames)||[]}),XR=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),ZR=e=>z(jt,n=>{var t,a;return((a=(t=ft(n,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),QR=(e,n="saved")=>z(Bn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[n].offset)||0}),eA=(e,n,t,a)=>z(jt,s=>{var p;const i=((p=ft(s,e))==null?void 0:p.exceptions)||[],c=n===E.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(h=>h.location===l):i).map(h=>({...h,locationLine:c?h.locationLine:h.locationLine+1}))}),Zr=z(e=>e.root,e=>e),ba=z(Zr,e=>e.tabs),tA=z(Zr,e=>e.activeTab),rA=z(Zr,e=>e.recent.filter(({type:n})=>n!==E.FileFolderType.DEBUGGER)),nA=z(Zr,({tabs:e,activeTab:n})=>e.find(({path:t})=>t===n)),aA=z(Zr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),oA=z(ba,e=>e.filter(({type:n,flags:t})=>n===E.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:n})=>n)),sA=z(ba,e=>e.length>0),_a=e=>z(Zr,n=>n.tabs.find(({path:t})=>t===e)),_g=(e,n="")=>z(_a(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:Ke.get(t.content,n)),iA=e=>z(_a(e),n=>n==null?void 0:n.extra),uA=(e,n=t=>t)=>z(_g(e,"components"),t=>n(t||{})),Mc=z(ba,e=>e.filter(n=>n.flags.touched)),cA=z(Mc,e=>e.length),lA=z(jt,e=>e.map(({threadId:n,currentStackFrame:{source:t},tabPath:a})=>({name:$h(n,t),path:a,type:E.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),fA=z(e=>e,e=>e.explorer||[]),Eg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.WEBFORMS)),Sg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.METHODS)),wg=z(e=>e,e=>e.explorer.find(n=>n.path===E.FolderRootPath.CLASSES)),dA=z(Sg,e=>(e==null?void 0:e.children)||[]),pA=z(Eg,e=>(e==null?void 0:e.children)||[]),hA=z(wg,e=>(e==null?void 0:e.children)||[]),gA=z(e=>e.modals,e=>e.list),vA=z(e=>e.roles,e=>Ks(e)),yA=z(e=>e.roles,({roles:e})=>e),mA=z(e=>e.roles,({privileges:e})=>e),bA=z(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:n})=>n==="guest")),_A=z(e=>e.roles,({flags:e})=>e),EA=z(e=>e.roles,({selectedTab:e})=>e),SA=z(e=>e.roles,({forceLogin:e})=>e),wA=z(e=>e.roles,({date:e})=>e),Nc=z(e=>e.settings,e=>e.session),TA=(...e)=>z(Nc,n=>e.length>0?Ke.pick(n,e):n),xA=z(e=>e.settings,e=>e.project),CA=z(e=>e.settings,e=>e),Lc=z(e=>e.settings,e=>e.server),OA=z(Lc,e=>e.remoteDebuggerMode),RA=z(Lc,e=>e.qodly),AA=z(Nc,e=>e["monaco.zoom"]),Tg=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],xg=Tg.map(e=>({id:wc(),content:"",name:e,parentId:null,scope:E.EWebFormStyleClassScope.THEME})),jc=e=>z(_a(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),PA=(e,n)=>z(jc(e),t=>n.map(a=>{switch(!0){case a===E.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:E.EWebFormStyleClassScope.LOCAL}));case a===E.EWebFormStyleClassScope.THEME:return xg;default:return[]}}).flat()),DA=e=>z(jc(e),n=>[...n.map(t=>({...t,scope:E.EWebFormStyleClassScope.LOCAL})),...xg]),IA=z(e=>e,e=>{var n;return[...(((n=e.sharedCSS)==null?void 0:n.styles)||[]).map(t=>({...t,scope:E.EWebFormStyleClassScope.SHARED}))]}),FA=e=>z(_a(e),n=>n==null?void 0:n.flags),uo=z(e=>e.webforms,e=>e),Cg=z(uo,e=>(e==null?void 0:e.components)||[]),Hs=z(uo,e=>e.inspector),$A=z(Hs,e=>e.css),MA=z(Hs,e=>e.datasource),Og=z(uo,e=>e.templates||{data:[]}),NA=z(Og,e=>e.data||[]),LA=e=>z(Cg,n=>n.find(t=>t.id===e)),jA=e=>z(Hs,n=>n[e]),kA=z(uo,e=>e.datasources.theme),BA=z(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,n,t)=>[e.state,n.state,t.state].every(a=>["loaded","error"].includes(a))),kc={label:"Base",id:"root"},WA=e=>z(_a(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.states)||[kc]});var Bc=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(Bc||{}),Wc=(e=>(e.NONE="none",e.SAVE_ALL_AND_PROCEED="saved_all_and_proceed",e.PROCEED="proceed",e))(Wc||{}),Uc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Uc||{}),rs,UA=new Uint8Array(16);function Rg(){if(!rs&&(rs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!rs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rs(UA)}const HA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Gs(e){return typeof e=="string"&&HA.test(e)}var wt=[];for(var Du=0;Du<256;++Du)wt.push((Du+256).toString(16).substr(1));function qs(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(wt[e[n+0]]+wt[e[n+1]]+wt[e[n+2]]+wt[e[n+3]]+"-"+wt[e[n+4]]+wt[e[n+5]]+"-"+wt[e[n+6]]+wt[e[n+7]]+"-"+wt[e[n+8]]+wt[e[n+9]]+"-"+wt[e[n+10]]+wt[e[n+11]]+wt[e[n+12]]+wt[e[n+13]]+wt[e[n+14]]+wt[e[n+15]]).toLowerCase();if(!Gs(t))throw TypeError("Stringified UUID is invalid");return t}var jp,Iu,Fu=0,$u=0;function GA(e,n,t){var a=n&&t||0,s=n||new Array(16);e=e||{};var i=e.node||jp,c=e.clockseq!==void 0?e.clockseq:Iu;if(i==null||c==null){var l=e.random||(e.rng||Rg)();i==null&&(i=jp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Iu=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:$u+1,h=d-Fu+(p-$u)/1e4;if(h<0&&e.clockseq===void 0&&(c=c+1&16383),(h<0||d>Fu)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Fu=d,$u=p,Iu=c,d+=122192928e5;var m=((d&268435455)*1e4+p)%4294967296;s[a++]=m>>>24&255,s[a++]=m>>>16&255,s[a++]=m>>>8&255,s[a++]=m&255;var _=d/4294967296*1e4&268435455;s[a++]=_>>>8&255,s[a++]=_&255,s[a++]=_>>>24&15|16,s[a++]=_>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var S=0;S<6;++S)s[a+S]=i[S];return n||qs(s)}function Ag(e){if(!Gs(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function qA(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var YA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",zA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Pg(e,n,t){function a(s,i,c,l){if(typeof s=="string"&&(s=qA(s)),typeof i=="string"&&(i=Ag(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|n,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return qs(d)}try{a.name=e}catch{}return a.DNS=YA,a.URL=zA,a}function VA(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return KA(JA(XA(e),e.length*8))}function KA(e){for(var n=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);n.push(c)}return n}function Dg(e){return(e+64>>>9<<4)+14+1}function JA(e,n){e[n>>5]|=128<<n%32,e[Dg(n)-1]=n;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,h=i;t=Ct(t,a,s,i,e[c],7,-680876936),i=Ct(i,t,a,s,e[c+1],12,-389564586),s=Ct(s,i,t,a,e[c+2],17,606105819),a=Ct(a,s,i,t,e[c+3],22,-1044525330),t=Ct(t,a,s,i,e[c+4],7,-176418897),i=Ct(i,t,a,s,e[c+5],12,1200080426),s=Ct(s,i,t,a,e[c+6],17,-1473231341),a=Ct(a,s,i,t,e[c+7],22,-45705983),t=Ct(t,a,s,i,e[c+8],7,1770035416),i=Ct(i,t,a,s,e[c+9],12,-1958414417),s=Ct(s,i,t,a,e[c+10],17,-42063),a=Ct(a,s,i,t,e[c+11],22,-1990404162),t=Ct(t,a,s,i,e[c+12],7,1804603682),i=Ct(i,t,a,s,e[c+13],12,-40341101),s=Ct(s,i,t,a,e[c+14],17,-1502002290),a=Ct(a,s,i,t,e[c+15],22,1236535329),t=Ot(t,a,s,i,e[c+1],5,-165796510),i=Ot(i,t,a,s,e[c+6],9,-1069501632),s=Ot(s,i,t,a,e[c+11],14,643717713),a=Ot(a,s,i,t,e[c],20,-373897302),t=Ot(t,a,s,i,e[c+5],5,-701558691),i=Ot(i,t,a,s,e[c+10],9,38016083),s=Ot(s,i,t,a,e[c+15],14,-660478335),a=Ot(a,s,i,t,e[c+4],20,-405537848),t=Ot(t,a,s,i,e[c+9],5,568446438),i=Ot(i,t,a,s,e[c+14],9,-1019803690),s=Ot(s,i,t,a,e[c+3],14,-187363961),a=Ot(a,s,i,t,e[c+8],20,1163531501),t=Ot(t,a,s,i,e[c+13],5,-1444681467),i=Ot(i,t,a,s,e[c+2],9,-51403784),s=Ot(s,i,t,a,e[c+7],14,1735328473),a=Ot(a,s,i,t,e[c+12],20,-1926607734),t=Rt(t,a,s,i,e[c+5],4,-378558),i=Rt(i,t,a,s,e[c+8],11,-2022574463),s=Rt(s,i,t,a,e[c+11],16,1839030562),a=Rt(a,s,i,t,e[c+14],23,-35309556),t=Rt(t,a,s,i,e[c+1],4,-1530992060),i=Rt(i,t,a,s,e[c+4],11,1272893353),s=Rt(s,i,t,a,e[c+7],16,-155497632),a=Rt(a,s,i,t,e[c+10],23,-1094730640),t=Rt(t,a,s,i,e[c+13],4,681279174),i=Rt(i,t,a,s,e[c],11,-358537222),s=Rt(s,i,t,a,e[c+3],16,-722521979),a=Rt(a,s,i,t,e[c+6],23,76029189),t=Rt(t,a,s,i,e[c+9],4,-640364487),i=Rt(i,t,a,s,e[c+12],11,-421815835),s=Rt(s,i,t,a,e[c+15],16,530742520),a=Rt(a,s,i,t,e[c+2],23,-995338651),t=At(t,a,s,i,e[c],6,-198630844),i=At(i,t,a,s,e[c+7],10,1126891415),s=At(s,i,t,a,e[c+14],15,-1416354905),a=At(a,s,i,t,e[c+5],21,-57434055),t=At(t,a,s,i,e[c+12],6,1700485571),i=At(i,t,a,s,e[c+3],10,-1894986606),s=At(s,i,t,a,e[c+10],15,-1051523),a=At(a,s,i,t,e[c+1],21,-2054922799),t=At(t,a,s,i,e[c+8],6,1873313359),i=At(i,t,a,s,e[c+15],10,-30611744),s=At(s,i,t,a,e[c+6],15,-1560198380),a=At(a,s,i,t,e[c+13],21,1309151649),t=At(t,a,s,i,e[c+4],6,-145523070),i=At(i,t,a,s,e[c+11],10,-1120210379),s=At(s,i,t,a,e[c+2],15,718787259),a=At(a,s,i,t,e[c+9],21,-343485551),t=dn(t,l),a=dn(a,d),s=dn(s,p),i=dn(i,h)}return[t,a,s,i]}function XA(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(Dg(n)),a=0;a<n;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function dn(e,n){var t=(e&65535)+(n&65535),a=(e>>16)+(n>>16)+(t>>16);return a<<16|t&65535}function ZA(e,n){return e<<n|e>>>32-n}function Ys(e,n,t,a,s,i){return dn(ZA(dn(dn(n,e),dn(a,i)),s),t)}function Ct(e,n,t,a,s,i,c){return Ys(n&t|~n&a,e,n,s,i,c)}function Ot(e,n,t,a,s,i,c){return Ys(n&a|t&~a,e,n,s,i,c)}function Rt(e,n,t,a,s,i,c){return Ys(n^t^a,e,n,s,i,c)}function At(e,n,t,a,s,i,c){return Ys(t^(n|~a),e,n,s,i,c)}var QA=Pg("v3",48,VA);const eP=QA;function tP(e,n,t){e=e||{};var a=e.random||(e.rng||Rg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){t=t||0;for(var s=0;s<16;++s)n[t+s]=a[s];return n}return qs(a)}function rP(e,n,t,a){switch(e){case 0:return n&t^~n&a;case 1:return n^t^a;case 2:return n&t^n&a^t&a;case 3:return n^t^a}}function Mu(e,n){return e<<n|e>>>32-n}function nP(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var m=0;m<c;++m){for(var _=new Uint32Array(80),S=0;S<16;++S)_[S]=l[m][S];for(var T=16;T<80;++T)_[T]=Mu(_[T-3]^_[T-8]^_[T-14]^_[T-16],1);for(var C=t[0],F=t[1],D=t[2],W=t[3],$=t[4],j=0;j<80;++j){var A=Math.floor(j/20),K=Mu(C,5)+rP(A,F,D,W)+$+n[A]+_[j]>>>0;$=W,W=D,D=Mu(F,30)>>>0,F=C,C=K}t[0]=t[0]+C>>>0,t[1]=t[1]+F>>>0,t[2]=t[2]+D>>>0,t[3]=t[3]+W>>>0,t[4]=t[4]+$>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var aP=Pg("v5",80,nP);const oP=aP,sP="00000000-0000-0000-0000-000000000000";function iP(e){if(!Gs(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const uP=Object.freeze(Object.defineProperty({__proto__:null,NIL:sP,parse:Ag,stringify:qs,v1:GA,v3:eP,v4:tP,v5:oP,validate:Gs,version:iP},Symbol.toStringTag,{value:"Module"})),cP=nw(uP);function Hc(e,n){if(!e||!n||!e.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=n}Hc.prototype.convert=function(e){var n,t,a,s={},i=this.srcAlphabet.length,c=this.dstAlphabet.length,l=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(n=0;n<l;n++)s[n]=this.srcAlphabet.indexOf(e[n]);do{for(t=0,a=0,n=0;n<l;n++)t=t*i+s[n],t>=c?(s[a++]=parseInt(t/c,10),t=t%c):a>0&&(s[a++]=0);l=a,d=this.dstAlphabet.slice(t,t+1).concat(d)}while(a!==0);return d};Hc.prototype.isValid=function(e){for(var n=0;n<e.length;++n)if(this.srcAlphabet.indexOf(e[n])===-1)return!1;return!0};var lP=Hc,fP=lP;function co(e,n){var t=new fP(e,n);return function(a){return t.convert(a)}}co.BIN="01";co.OCT="01234567";co.DEC="0123456789";co.HEX="0123456789abcdef";var dP=co;const{v4:Nu}=cP,ns=dP,Lu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",pP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",hP={consistentLength:!0};let ju;const kp=(e,n,t)=>{const a=n(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},gP=(e,n)=>{const a=n(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},vP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var xs=(()=>{const e=(n,t)=>{const a=n||Lu,s={...hP,...t};if([...new Set(Array.from(a))].length!==a.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const i=vP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=ns(ns.HEX,a),d=ns(a,ns.HEX),p=()=>kp(Nu(),l,c),h={new:p,generate:p,uuid:Nu,fromUUID:m=>kp(m,l,c),toUUID:m=>gP(m,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Lu,cookieBase90:pP},e.uuid=Nu,e.generate=()=>(ju||(ju=e(Lu).generate),ju()),e})(),Me=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Me||{});const yP=[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.METHOD],Cs="guest",Gc=[{key:"read",label:"Read",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.ATTRIBUTE,Me.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Me.DATASTORE,Me.DATACLASS,Me.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Me.METHOD]}];function cr(e,...n){return Array.from(new Set([...e,...n]))}function Ig(e){const n={},t=new Map;e.forEach(d=>{const p=d.id||xs.generate();n[p]={...d,id:p,parents:[],includes:cr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(n).forEach(([d,p])=>{const h=p.includes.map(m=>{const _=t.get(m);return _?(n[_].parents=cr(n[_].parents,_),_):""}).filter(Boolean);n[d]={...p,includes:h}});const a=Fg(n),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>n[p].parents.push(d.id))}),Object.values(n).find(({privilege:d})=>d===Cs))return n;const l=xs.generate();return{[l]:{id:l,privilege:Cs,includes:[],parents:[],resources:[]},...n}}function Fg(e){return Object.values(e).sort((n,t)=>n.parents.length-t.parents.length)}function zs(e,n){const t=n[e];let a=[];return t&&t.parents.forEach(s=>{a=cr(a,...zs(s,n),s)}),a}function Os(e,n){const t=n[e];let a=[];return t&&t.includes.forEach(s=>{a=cr(a,...Os(s,n),s)}),a}function mP(e,n){const t=n[e];if(!t)return[];const a=[e,...zs(e,n),...t.includes];return Object.keys(n).filter(s=>!a.includes(s))}function bP(e,n){return n[e]?Object.keys(n).reduce((a,s)=>s===e?a:{...a,[s]:{...n[s],parents:n[s].parents.filter(i=>i!==e),includes:n[s].includes.filter(i=>i!==e)}},{}):n}function _P(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:cr(a.includes,n)},[n]:{...t[n],parents:cr(s.parents,e)}}}function EP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==n)},[n]:{...t[n],parents:t[n].parents.filter(i=>i!==e)}}}function $g(e,n){E.validateName(e),Object.entries(n).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=xs.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...n}}function SP(e,n,t,a,s){let i=$g(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=jg(c[1].id,n,t,a,i),i):s}function wP(e,n,t){if(!e)throw new Error("Please enter a name");if(!t[n])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&n!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[n]:{...t[n],privilege:e}}}function TP(e,n){return e.map(t=>Qr(t,n))}function Qr(e,n){return n[e]?n[e]:null}function Mg({applyTo:e,type:n,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=Ke.find(Gc,["key",s]);return!c||!c.canApplyTo.includes(n)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=cr(a[d]||[],s)}),a},{})}const ic=(e,n=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${n?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${n?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${n?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function qc(e){return{permissions:Gc.filter(({canApplyTo:n})=>n.includes(e.type)).map(({key:n,label:t})=>{const a={name:n,from:[]};switch(e.type){case Me.DATASTORE:return{...a,info:ic(t,!0)};case Me.DATACLASS:return{...a,info:ic(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Ng(e,n){const t=Lg(n),a={};return e.filter(({type:s})=>yP.includes(s)).forEach(s=>{const i=Mg(s);Object.entries(i).forEach(([c,l])=>{var h;const d=(h=t[c])==null?void 0:h.id;if(!d)return;a[d]=a[d]||{...n[d]};let p=Ke.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=qc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(m=>({...m,checked:m.checked||l.includes(m.name)}))})}),{...n,...a}}function Lg(e){return Object.values(e).reduce((n,t)=>({...n,[t.privilege]:t}),{})}function Vs(e){var t;const n=Ig(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Ng(((t=e.permissions)==null?void 0:t.allowed)||[],n),roles:(e.roles||[]).map(({id:a=xs.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:cr(i).map(c=>{var l;return(l=Object.values(n).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function Ks(e){const n=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...n,...n.map(a=>zs(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{forceLogin:e.forceLogin,permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=Ke.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:h})=>{h&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==Cs).map(({id:a,includes:s,privilege:i})=>({id:a,privilege:i,includes:s.map(c=>e.privileges[c].privilege)})),roles:Object.values(e.roles).map(a=>({...a,privileges:a.privileges.map(s=>{var i;return(i=e.privileges[s])==null?void 0:i.privilege}).filter(Boolean)}))}}function xP(e,n){const t=n[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const h=l.reduce((m,_)=>[...m,...n[_][d]],[]);return h.length===0?p:(p.push(h),s(h,d,p))}function i(l){const d=[],p=[];for(let h=l.length-1;h>=0;h-=1){const m=l[h].filter(_=>d.includes(_)?!1:(d.push(_),!0));m.length>0&&p.unshift(cr(m))}return p}function c(l,d){const p=[];return l.reduce((h,m)=>(m.forEach(_=>{n[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&h.push(d==="parents"?{source:_,target:T}:{source:T,target:_})}),p.push(_)}),h),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function CP(e,n,t){const a=Qr(e,t);if(!a||Ke.find(a.resources,{resource:n.applyTo,type:n.type}))return t;const s={...a,resources:[...a.resources,qc(n)]};return{...t,[e]:s}}function OP(e,n,t){const a=Qr(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==n.applyTo||c!==n.type)};return{...t,[e]:s}}function RP(e,n){const t=Qr(e,n);if(!t)return n;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...n,[e]:a}}function jg(e,n,t,a,s){const i=Qr(e,s);if(!i)return s;const l=Ke.find(i.resources,{type:t,resource:n})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===n?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:n,permissions:Gc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:ic(d.key,t===Me.DATASTORE)}))}]};return{...s,[e]:l}}function AP(e,n,t,a){const s=Qr(e,a);if(!s)return a;const c=Ke.find(s.resources,{type:n.type,resource:n.resource})?{...s,resources:s.resources.map(l=>l.type===n.type&&l.resource===n.resource?{...l,permissions:n.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...n,permissions:n.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function PP(e,n){var d;const t=kg(e,n)||[],a=((d=Qr(e,n))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Me.METHOD)||[]).map(({resource:p})=>p);return Object.entries(n).reduce((p,[h,{resources:m}])=>(m.filter(({resource:_,type:S})=>S===Me.METHOD&&c.includes(_)).forEach(({permissions:_,resource:S})=>{var C;((C=_.find(({name:F})=>F==="promote"))==null?void 0:C.checked)&&(p[S]=cr(p[S]||[],h))}),p),{})}function kg(e,n){var c;const t=Qr(e,n);if(!t)return[];const a=(c=Object.values(n).find(l=>l.privilege===Cs))==null?void 0:c.id;return(a&&a!==e?cr(Os(e,n),a):Os(e,n)).reduce((l,d)=>(n[d].resources.forEach(h=>{if(h.permissions.filter(({checked:S})=>S).length===0)return;const _=Ke.find(l,{type:h.type,resource:h.resource});if(!_){l.push({...h,permissions:h.permissions.map(S=>({...S,from:S.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((S,T)=>{let{from:C=[]}=S;return h.permissions[T].checked&&!C.includes(d)&&(C=[...C,d]),{...S,from:C,checked:S.checked}})}),l),Ke.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const DP=e=>e.reduce((n,t)=>({...n,[t.id]:{...t}}),{}),IP=(e,n)=>n[e]?Object.values(n).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):n,FP=(e,n,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:n}}:{...a,[s.id]:s},{}):t,$P=(e,n)=>{const t={id:e,role:"",privileges:[]};return{...n,[t.id]:t}},MP=(e,n)=>{if(E.validateName(e.role),Object.values(n).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(n).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},NP={list:[]},Bp=(e,n)=>e.list.filter(t=>t.id!==n),Bg=lr({name:"modals",initialState:NP,reducers:{createModal:(e,n)=>{e.list.push(n.payload)},editModal:(e,n)=>{const{id:t,...a}=n.payload,s=e.list.find(E.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,n)=>{const t=n.payload;e.list=Bp(e,t)},closeModal:(e,n)=>{const{id:t,reason:a}=n.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=Bp(e,t)}}}),{createModal:Wg,removeModal:Ug,closeModal:LP,editModal:jP}=Bg.actions;var uc={exports:{}},oa={};/*
|
|
91
|
-
|
|
92
|
-
(c) Sindre Sorhus
|
|
93
|
-
@license MIT
|
|
94
|
-
*/var ku,Wp;function Hg(){if(Wp)return ku;Wp=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function a(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ku=s()?Object.assign:function(i,c){for(var l,d=a(i),p,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var m in l)n.call(l,m)&&(d[m]=l[m]);if(e){p=e(l);for(var _=0;_<p.length;_++)t.call(l,p[_])&&(d[p[_]]=l[p[_]])}}return d},ku}/** @license React v17.0.2
|
|
95
|
-
* react-jsx-runtime.production.min.js
|
|
96
|
-
*
|
|
97
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the MIT license found in the
|
|
100
|
-
* LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/var Up;function kP(){if(Up)return oa;Up=1,Hg();var e=dt,n=60103;if(oa.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;n=t("react.element"),oa.Fragment=t("react.fragment")}var a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var h,m={},_=null,S=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(S=d.ref);for(h in d)s.call(d,h)&&!i.hasOwnProperty(h)&&(m[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)m[h]===void 0&&(m[h]=d[h]);return{$$typeof:n,type:l,key:_,ref:S,props:m,_owner:a.current}}return oa.jsx=c,oa.jsxs=c,oa}var Hp={};/** @license React v17.0.2
|
|
102
|
-
* react-jsx-runtime.development.js
|
|
103
|
-
*
|
|
104
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the MIT license found in the
|
|
107
|
-
* LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/var Gp;function BP(){return Gp||(Gp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var n=dt,t=Hg(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,h=60113,m=60120,_=60115,S=60116,T=60121,C=60122,F=60117,D=60129,W=60131;if(typeof Symbol=="function"&&Symbol.for){var $=Symbol.for;a=$("react.element"),s=$("react.portal"),e.Fragment=$("react.fragment"),i=$("react.strict_mode"),c=$("react.profiler"),l=$("react.provider"),d=$("react.context"),p=$("react.forward_ref"),h=$("react.suspense"),m=$("react.suspense_list"),_=$("react.memo"),S=$("react.lazy"),T=$("react.block"),C=$("react.server.block"),F=$("react.fundamental"),$("react.scope"),$("react.opaque.id"),D=$("react.debug_trace_mode"),$("react.offscreen"),W=$("react.legacy_hidden")}var j=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function K(g){if(g===null||typeof g!="object")return null;var O=j&&g[j]||g[A];return typeof O=="function"?O:null}var G=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(g){{for(var O=arguments.length,I=new Array(O>1?O-1:0),q=1;q<O;q++)I[q-1]=arguments[q];ie("error",g,I)}}function ie(g,O,I){{var q=G.ReactDebugCurrentFrame,ae=q.getStackAddendum();ae!==""&&(O+="%s",I=I.concat([ae]));var oe=I.map(function(ee){return""+ee});oe.unshift("Warning: "+O),Function.prototype.apply.call(console[g],console,oe)}}var We=!1;function Re(g){return!!(typeof g=="string"||typeof g=="function"||g===e.Fragment||g===c||g===D||g===i||g===h||g===m||g===W||We||typeof g=="object"&&g!==null&&(g.$$typeof===S||g.$$typeof===_||g.$$typeof===l||g.$$typeof===d||g.$$typeof===p||g.$$typeof===F||g.$$typeof===T||g[0]===C))}function st(g,O,I){var q=O.displayName||O.name||"";return g.displayName||(q!==""?I+"("+q+")":I)}function Z(g){return g.displayName||"Context"}function we(g){if(g==null)return null;if(typeof g.tag=="number"&&Y("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case e.Fragment:return"Fragment";case s:return"Portal";case c:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case d:var O=g;return Z(O)+".Consumer";case l:var I=g;return Z(I._context)+".Provider";case p:return st(g,g.render,"ForwardRef");case _:return we(g.type);case T:return we(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return we(oe(ae))}catch{return null}}}return null}var Xe=0,Ze,Ue,et,Dt,H,V,ve;function he(){}he.__reactDisabledLog=!0;function le(){{if(Xe===0){Ze=console.log,Ue=console.info,et=console.warn,Dt=console.error,H=console.group,V=console.groupCollapsed,ve=console.groupEnd;var g={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Xe++}}function ye(){{if(Xe--,Xe===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},g,{value:Ze}),info:t({},g,{value:Ue}),warn:t({},g,{value:et}),error:t({},g,{value:Dt}),group:t({},g,{value:H}),groupCollapsed:t({},g,{value:V}),groupEnd:t({},g,{value:ve})})}Xe<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=G.ReactCurrentDispatcher,fe;function ue(g,O,I){{if(fe===void 0)try{throw Error()}catch(ae){var q=ae.stack.trim().match(/\n( *(at )?)/);fe=q&&q[1]||""}return`
|
|
109
|
-
`+fe+g}}var me=!1,ge;{var J=typeof WeakMap=="function"?WeakMap:Map;ge=new J}function N(g,O){if(!g||me)return"";{var I=ge.get(g);if(I!==void 0)return I}var q;me=!0;var ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=se.current,se.current=null,le();try{if(O){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(ut){q=ut}Reflect.construct(g,[],ee)}else{try{ee.call()}catch(ut){q=ut}g.call(ee.prototype)}}else{try{throw Error()}catch(ut){q=ut}g()}}catch(ut){if(ut&&q&&typeof ut.stack=="string"){for(var Q=ut.stack.split(`
|
|
110
|
-
`),Ie=q.stack.split(`
|
|
111
|
-
`),be=Q.length-1,Ee=Ie.length-1;be>=1&&Ee>=0&&Q[be]!==Ie[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==Ie[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==Ie[Ee]){var at=`
|
|
112
|
-
`+Q[be].replace(" at new "," at ");return typeof g=="function"&&ge.set(g,at),at}while(be>=1&&Ee>=0);break}}}finally{me=!1,se.current=oe,ye(),Error.prepareStackTrace=ae}var Ft=g?g.displayName||g.name:"",Cn=Ft?ue(Ft):"";return typeof g=="function"&&ge.set(g,Cn),Cn}function Ge(g,O,I){return N(g,!1)}function qe(g){var O=g.prototype;return!!(O&&O.isReactComponent)}function it(g,O,I){if(g==null)return"";if(typeof g=="function")return N(g,qe(g));if(typeof g=="string")return ue(g);switch(g){case h:return ue("Suspense");case m:return ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case p:return Ge(g.render);case _:return it(g.type,O,I);case T:return Ge(g._render);case S:{var q=g,ae=q._payload,oe=q._init;try{return it(oe(ae),O,I)}catch{}}}return""}var vn={},It=G.ReactDebugCurrentFrame;function er(g){if(g){var O=g._owner,I=it(g.type,g._source,O?O.type:null);It.setExtraStackFrame(I)}else It.setExtraStackFrame(null)}function Ea(g,O,I,q,ae){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in g)if(oe(g,ee)){var Q=void 0;try{if(typeof g[ee]!="function"){var Ie=Error((q||"React class")+": "+I+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}Q=g[ee](O,ee,q,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&(er(ae),Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",I,ee,typeof Q),er(null)),Q instanceof Error&&!(Q.message in vn)&&(vn[Q.message]=!0,er(ae),Y("Failed %s type: %s",I,Q.message),er(null))}}}var bt=G.ReactCurrentOwner,pt=Object.prototype.hasOwnProperty,Ir={key:!0,ref:!0,__self:!0,__source:!0},wr,yn,qt;qt={};function Sa(g){if(pt.call(g,"ref")){var O=Object.getOwnPropertyDescriptor(g,"ref").get;if(O&&O.isReactWarning)return!1}return g.ref!==void 0}function Fr(g){if(pt.call(g,"key")){var O=Object.getOwnPropertyDescriptor(g,"key").get;if(O&&O.isReactWarning)return!1}return g.key!==void 0}function Tr(g,O){if(typeof g.ref=="string"&&bt.current&&O&&bt.current.stateNode!==O){var I=we(bt.current.type);qt[I]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',we(bt.current.type),g.ref),qt[I]=!0)}}function mn(g,O){{var I=function(){wr||(wr=!0,Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function bn(g,O){{var I=function(){yn||(yn=!0,Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var _n=function(g,O,I,q,ae,oe,ee){var Q={$$typeof:a,type:g,key:O,ref:I,props:ee,_owner:oe};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function En(g,O,I,q,ae){{var oe,ee={},Q=null,Ie=null;I!==void 0&&(Q=""+I),Fr(O)&&(Q=""+O.key),Sa(O)&&(Ie=O.ref,Tr(O,ae));for(oe in O)pt.call(O,oe)&&!Ir.hasOwnProperty(oe)&&(ee[oe]=O[oe]);if(g&&g.defaultProps){var be=g.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||Ie){var Ee=typeof g=="function"?g.displayName||g.name||"Unknown":g;Q&&mn(ee,Ee),Ie&&bn(ee,Ee)}return _n(g,Q,Ie,ae,q,bt.current,ee)}}var dr=G.ReactCurrentOwner,$r=G.ReactDebugCurrentFrame;function _t(g){if(g){var O=g._owner,I=it(g.type,g._source,O?O.type:null);$r.setExtraStackFrame(I)}else $r.setExtraStackFrame(null)}var pr;pr=!1;function hr(g){return typeof g=="object"&&g!==null&&g.$$typeof===a}function Sn(){{if(dr.current){var g=we(dr.current.type);if(g)return`
|
|
113
|
-
|
|
114
|
-
Check the render method of \``+g+"`."}return""}}function wa(g){{if(g!==void 0){var O=g.fileName.replace(/^.*[\\\/]/,""),I=g.lineNumber;return`
|
|
115
|
-
|
|
116
|
-
Check your code at `+O+":"+I+"."}return""}}var wn={};function Wn(g){{var O=Sn();if(!O){var I=typeof g=="string"?g:g.displayName||g.name;I&&(O=`
|
|
117
|
-
|
|
118
|
-
Check the top-level render call using <`+I+">.")}return O}}function en(g,O){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Wn(O);if(wn[I])return;wn[I]=!0;var q="";g&&g._owner&&g._owner!==dr.current&&(q=" It was passed a child from "+we(g._owner.type)+"."),_t(g),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),_t(null)}}function Tn(g,O){{if(typeof g!="object")return;if(Array.isArray(g))for(var I=0;I<g.length;I++){var q=g[I];hr(q)&&en(q,O)}else if(hr(g))g._store&&(g._store.validated=!0);else if(g){var ae=K(g);if(typeof ae=="function"&&ae!==g.entries)for(var oe=ae.call(g),ee;!(ee=oe.next()).done;)hr(ee.value)&&en(ee.value,O)}}}function Ta(g){{var O=g.type;if(O==null||typeof O=="string")return;var I;if(typeof O=="function")I=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===p||O.$$typeof===_))I=O.propTypes;else return;if(I){var q=we(O);Ea(I,g.props,"prop",q,g)}else if(O.PropTypes!==void 0&&!pr){pr=!0;var ae=we(O);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(g){{for(var O=Object.keys(g.props),I=0;I<O.length;I++){var q=O[I];if(q!=="children"&&q!=="key"){_t(g),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_t(null);break}}g.ref!==null&&(_t(g),Y("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function xn(g,O,I,q,ae,oe){{var ee=Re(g);if(!ee){var Q="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=wa(ae);Ie?Q+=Ie:Q+=Sn();var be;g===null?be="null":Array.isArray(g)?be="array":g!==void 0&&g.$$typeof===a?(be="<"+(we(g.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=En(g,O,I,ae,oe);if(Ee==null)return Ee;if(ee){var at=O.children;if(at!==void 0)if(q)if(Array.isArray(at)){for(var Ft=0;Ft<at.length;Ft++)Tn(at[Ft],g);Object.freeze&&Object.freeze(at)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tn(at,g)}return g===e.Fragment?xa(Ee):Ta(Ee),Ee}}function Un(g,O,I){return xn(g,O,I,!0)}function Ca(g,O,I){return xn(g,O,I,!1)}var Oa=Ca,Ra=Un;e.jsx=Oa,e.jsxs=Ra}()}(Hp)),Hp}process.env.NODE_ENV==="production"?uc.exports=kP():uc.exports=BP();var zr=uc.exports;const WP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),UP=e=>zr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[zr.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),HP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),GP=e=>zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zr.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),qP={FdSave:HP,FdWarningDanger:GP,FdInfoCircle:UP,FdInfoBold:WP};var Gt=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Gt||{}),Dr=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Dr||{}),Yc=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Yc||{});const fr=re("modals/open",async(e,{dispatch:n})=>{const{type:t=Gt.ALERT,store:a=Bv()}=e,s=wc();switch(n(Wg({id:s,type:t,isOpen:!0,...e})),t){case Gt.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(h=>h.id===s);if(d&&!d.isOpen){const h=d.closeReason===Yc.CONFIRMED,m=Ke.entries((p=d.views)==null?void 0:p.toggles).reduce((_,S)=>({..._,[S[0]]:S[1].value}),{});n(Ug(s)),c(),i({confirmed:h,options:m})}})});default:return{}}}),Gg=()=>E.getFileContent({name:E.ROLES_TAB_PATH}),qg="Roles & Privileges",Rs=re("roles/fetchRoles",async(e,{dispatch:n,rejectWithValue:t})=>{var i;let a;try{a=await Gg()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:E.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:qg,type:E.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:E.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return n(Lt(s)),{...a,content:Vs(a.content)}}),Yg=re("roles/fetchRolesChanges",async(e,{getState:n})=>{const{tabs:t}=n().root;if(t.find(s=>s.path===E.ROLES_TAB_PATH)){const{date:s}=n().roles;if(s&&await zc(s))return{old:!0}}return{}}),zc=async e=>{if(!e)return!1;try{const n=await Gg();if(n.date){const t=new Date(e),a=new Date(n.date);if(t>a)return!0}}catch(n){if(!Array.isArray(n==null?void 0:n.data.__ERROR))throw n}return!1},cc=re("roles/saveRoles",async(e,{getState:n,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=n().roles;if(s.old||await zc(i)){const{confirmed:d}=await a(fr({title:qg,message:"New content has been found on the server. Are you sure you want to continue?",type:Gt.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await E.setFileContent({name:E.ROLES_TAB_PATH,content:Ks(e)})}catch{return t("Error while loading the roles")}}),zg=lr({name:"roles",initialState:()=>{const{roles:e}=pa(),{roles:n={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:n,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,n)=>{e.privileges=n.payload,e.flags.touched=!0},updateRoles:(e,n)=>{e.roles=n.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,n)=>{e.roles=n.payload.roles,e.privileges=n.payload.privileges},toggleTab:(e,n)=>{e.selectedTab=n.payload},toggleForceLogin:(e,n)=>{e.forceLogin!==n.payload&&(e.forceLogin=n.payload,e.flags.touched=!0)},setRolesContent(e,n){const{content:t,flags:a={},...s}=n.payload,i=Vs(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(Rs.fulfilled,(n,t)=>{const{content:a,date:s}=t.payload;n={...n,...a,date:s}}).addCase(Rs.rejected,n=>({...n,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(cc.fulfilled,(n,t)=>({...n,flags:{...n.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(cc.rejected,(n,t)=>Fh.isString(t.payload)?n:{...n,flags:{...n.flags,...t.payload}}).addCase(Yg.fulfilled,(n,t)=>({...n,flags:{...n.flags,...t.payload}})).addCase(la.fulfilled,(n,t)=>{!t.payload||t.payload.path!==E.ROLES_TAB_PATH||(n.flags.touched=!1,n.flags.old=!1)}).addCase(el.fulfilled,(n,t)=>{t.meta.arg!==E.ROLES_TAB_PATH||!t.payload||(n.flags.touched=!1,n.flags.old=!1)})}}),{updatePrivileges:Vg,updateRoles:Kg,setRolesContent:Vc,toggleTab:YP,toggleForceLogin:zP,updateRolesAndPrivileges:Kc}=zg.actions,VP=zg.reducer,Jc=re("settings/fetch",async()=>await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.SETTINGS_TAB_PATH,content:!0,as:"json"})),Jg=re("settings/app",E.getAppSettings),KP=xh(),qp={session:{"studio.tips":!0,"studio.notifications":!0,"studio.enablePreview":!1,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":Bc.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.renderer.unsavedPopOverChoice":Wc.NONE,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:E.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},JP={...qp,session:{...qp.session,...KP},welcometour:{}},Xg=lr({name:"settings",initialState:JP,reducers:{setSetting(e,n){const{path:t,settingsKey:a,value:s}=n.payload;e[t][a]=s},setSettings(e,n){const{path:t,value:a}=n.payload;e[t]={...e[t],...a}},setSettingsAsText(e,n){const{path:t,settings:a}=n.payload;e[t]=a}},extraReducers(e){e.addCase(Jc.fulfilled,(n,t)=>{n.project={...n.project,...t.payload.content}}),e.addCase(Jg.fulfilled,(n,t)=>{n.server=t.payload,n.server.qodly&&(n.project["webforms.display-mode"]="airy")})}}),{setSetting:lc,setSettings:Js,setSettingsAsText:XP}=Xg.actions,ZP=Xg.reducer,fc=e=>{const n=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):n.indexOf(t.type)-n.indexOf(a.type))},Fe=(e,n)=>e.reduce((t,a)=>a.path===n.path&&a.type===n.type?[...t,n]:a.children?[...t,{...a,children:fc(Fe(a.children,n))}]:[...t,a],[]),vt=(e,n)=>e.reduce((t,a)=>t||(a.path===n?a:a.children?vt(a.children,n):null),null),QP=[{name:E.FolderRootPath.WEBFORMS,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:E.FolderRootPath.METHODS,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:E.FolderRootPath.CLASSES,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:E.FolderRootPath.SHARED,type:E.FileFolderType.FOLDER,children:[],path:E.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:E.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:E.FileFolderType.FILE,ext:"json",path:"roles",error:null,flags:{},config:{editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},isRoot:!0},{name:"Model",type:E.FileFolderType.MODEL,ext:"4DModel",path:"model",error:null,flags:{},config:{editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]}},{name:"Settings",type:E.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Zg=lr({name:"explorer",initialState:QP,reducers:{toggleExpandFolder:(e,n)=>(e=Fe(e,{...n.payload,flags:{...n.payload.flags,expanded:!n.payload.flags.expanded}}),e),expandFolder:(e,n)=>(e=Fe(e,{...n.payload,flags:{...n.payload.flags,expanded:!0}}),e),openAddFileInput:(e,n)=>Fe(e,{...n.payload,flags:{...n.payload.flags,adding:!0}}),addNewFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Fe(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Fe(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,n)=>{const{parent:t,child:a}=n.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Fe(e,{...t,children:[a,...s]})},setFolderChildren:(e,n)=>{const t=vt(e,n.payload.parentPath);return t?Fe(e,{...t,children:n.payload.children}):e}},extraReducers:e=>{e.addCase(ca.pending,(n,t)=>{const{file:a,newname:s}=t.meta.arg,i=vt(n,a.path);if(!i)return n;const c=a.path.split("/");c.pop();const l=`${c.join("/")}/${a.name}.${a.ext}`,d=`${c.join("/")}/${s}.${a.ext}`;switch(a.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Fe(n,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(ca.fulfilled,(n,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=vt(n,a.path);if(!i)return n;switch(s.old.ext){case"4dm":case"4qs":E.lspSubject.next({action:E.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Fe(n,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(ca.rejected,(n,t)=>{const{file:a}=t.meta.arg,s=vt(n,a.path);return s?Fe(n,{...s,flags:{...s.flags,loading:!1}}):n}),e.addCase(Ar.pending,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Ar.fulfilled,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):n}),e.addCase(Ar.rejected,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):n}),e.addCase(Ja.pending,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Ja.fulfilled,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,children:fc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):n}),e.addCase(Ja.rejected,(n,t)=>{const a=t.meta.arg,s=vt(n,a);return s?Fe(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):n}),e.addCase(us.pending,(n,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Fe(n,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(us.fulfilled,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=E.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${a}${c?`.${c.toLowerCase()}`:""}`);return Fe(n,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(us.rejected,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Fe(n,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(cs.pending,(n,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Fe(n,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(cs.fulfilled,(n,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=Er(`${s}${i?`.${i.toLowerCase()}`:""}`);return Fe(n,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(cs.rejected,(n,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Fe(n,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Za.pending,(n,t)=>{}),e.addCase(Za.fulfilled,(n,t)=>{var m;const{draggedNode:a,newLocation:s}=t.meta.arg,i=Kh(a.path),c=vt(n,i),l=vt(n,s.path),d=(m=c==null?void 0:c.children)==null?void 0:m.filter(_=>_.path!==a.path),p=s.path.split("/").length,h=a.path.split("/").length;return p>=h?(n=Fe(n,{...c,children:d}),n=Fe(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(n=Fe(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),n=Fe(n,{...c,children:d})),n}),e.addCase(Za.rejected,(n,t)=>{E.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(ua.pending,(n,t)=>{var C;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=E.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:h,supportedEditors:m}=Er(p);switch(c){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(C=s.children)==null?void 0:C.filter(F=>F.path!==`${i}/${a}`),S=[{name:a,path:`${i}/${a}`,type:E.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:h,supportedEditors:m},ext:d,date:new Date().toISOString()},..._],T=Fe(n,{...s,children:S});return Fh.merge(n,T)}),e.addCase(ua.fulfilled,(n,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=E.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:h}=Er(d),m=Fe(n,{name:a,path:`${s}/${a}`,type:E.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:h},ext:l,date:new Date().toISOString()});switch(i){case E.FileFolderType.CLASS:case E.FileFolderType.METHOD:E.lspSubject.next({action:E.LspActions.DID_CREATE,payload:{filePath:d}});break}return n=m,n}),e.addCase(ua.rejected,(n,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=E.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=Er(`${s}${c?`.${c.toLowerCase()}`:""}`);return n=Fe(n,{name:a,path:`${s}/${a}`,type:E.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),n}),e.addMatcher(ph(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!0}})),n}),e.addMatcher(gh(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!1}})),n}),e.addMatcher(hh(Xa),(n,t)=>{const a=vt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Fe(n,{...a,flags:{...a.flags,loading:!1}})),E.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),n})}}),{toggleExpandFolder:eD,expandFolder:tD,openAddFileInput:rD,addNewFile:Qg,refreshFile:nD,removeFile:dc,setFolderChildren:aD}=Zg.actions;function ev(e,n){switch(e){case E.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return n["webforms.display-mode"]===Uc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case E.FileFolderType.METHODS:return`//%attributes = {}
|
|
119
|
-
`;default:return""}}function tv(e,n,t){switch(n){case E.FileFolderType.MOBILEFORM:return`${e}.MForm`;case E.FileFolderType.WEBFORM:return`${e}.WebForm`;case E.FileFolderType.METHOD:case E.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function oD(e){switch(e){case E.FolderRootPath.WEBFORMS:return E.FileFolderType.WEBFORMS;case E.FolderRootPath.METHODS:return E.FileFolderType.METHODS;case E.FolderRootPath.CLASSES:return E.FileFolderType.CLASSES;case"Mobile":return E.FileFolderType.MOBILE;default:return e}}function rv(e){switch(e){case E.FileFolderType.WEBFORMS:return E.FileFolderType.WEBFORM;case E.FileFolderType.CLASSES:return E.FileFolderType.CLASS;case E.FileFolderType.METHODS:return E.FileFolderType.METHOD;case E.FileFolderType.FOLDER:return E.FileFolderType.FOLDER;case E.FileFolderType.MOBILE:return E.FileFolderType.MOBILEFORM;default:return e}}const sD=re("files/tryEditMethod",async({method:e},{dispatch:n})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=Er(e.filePath);return await n(Xc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:E.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),pc=re("explorer/createModelFiles",async(e,{dispatch:n,getState:t})=>{var m;const a=t(),s=E.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=vt(a.explorer,s);if(!c)return;await n(Ar(s));const d=((m=t().explorer.find(_=>_.name===s))==null?void 0:m.children)||[];let p=[{content:"",name:""}];const h=_=>{switch(_){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
90
|
+
`),T}return ec(function(){d.current=e,p.current=y,h.current=_,l.current=void 0}),ec(function(){function T(){try{var x=t.getState();if(x===p.current)return;var D=d.current(x);if(n(D,h.current))return;h.current=D,p.current=x}catch(P){l.current=P}i()}return c.onStateChange=T,c.trySubscribe(),T(),function(){return c.tryUnsubscribe()}},[t,c]),_}function fO(e){e===void 0&&(e=Nr);var n=e===Nr?tg:function(){return pt.useContext(e)};return function(a,s){if(s===void 0&&(s=cO),process.env.NODE_ENV!=="production"){if(!a)throw new Error("You must pass a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}var i=n(),c=i.store,l=i.subscription,d=lO(a,s,c,l);return pt.useDebugValue(d),d}}var dO=fO();JR(BS.unstable_batchedUpdates);const pO=()=>uO(),kr=dO,Oc=G(e=>e,e=>e.catalog.state==="loaded"?e.catalog.model:null),hO=G(e=>e,({catalog:e})=>e.state),ng=G(Oc,e=>e?e.dataClasses:[]),gO=G(ng,e=>Object.values(e).filter(({virtual:n})=>n)),vO=G(Oc,e=>e?e.methods:[]),ag=e=>G(n=>n,n=>{switch(n.catalog.state){case"loaded":const t=e?n.catalog.model.dataClasses[e]:n.catalog.model;return(t==null?void 0:t.methods)||[];default:return[]}}),mO=e=>kr(ag(e),eg),yO=(e,n)=>G(ag(e),t=>t.find(a=>`${a.applyTo}.${a.name}`===n)),bO=(e,n,t)=>kr(yO(e,`${t}.${n}`),eg),og=G(e=>e,e=>e),_O=e=>G(jr,n=>{var s;const t=n.tabs.find(({path:i})=>i===e),a=t==null?void 0:t.content.components;return!t||!a?[]:(s=Object.keys(a))==null?void 0:s.map(i=>({id:i,...a[i]}))}),sg=e=>G(jr,n=>{var a,s;const t=n.tabs.find(({path:i})=>i===e);return((s=(a=t==null?void 0:t.content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]}),EO=(e,n,t)=>G(og,a=>{var s,i;if(n){const c=a.sharedDatasources.sources[n];return c?c.find(l=>l.id===e):void 0}else{const c=a.root.tabs.find(d=>d.path===t);return c?(i=(s=c.content.metadata)==null?void 0:s.datasources)==null?void 0:i.find(d=>d.id===e):void 0}}),ig=G(e=>e,e=>{var n;return((n=e.sharedDatasources)==null?void 0:n.sources)||[]}),SO=(e,n,t,a)=>G(sg(e),ig,(s,i)=>{const c=He.flatten(He.values(i)),l=[...n!=="private"?s:[],...n!=="shared"?c:[]];return t?l.filter(d=>(!a||a.every(({id:p,namespace:h=""})=>d.id!==p||(d.namespace||"")!==h))&&(t.includes(d.type)||d.dataType&&(t.includes(d.dataType)||t.includes("objectFromArray")&&d.dataType==="object"&&d.from))):l}),wO=G(e=>e.debugger,e=>e.meta),Tn=G(e=>e.debugger,e=>e.list),Dt=G(e=>e.debugger,e=>e.sessions),TO=G(Dt,e=>e.length),Sn=(e,n,t,a)=>e.find(s=>s.filePath===n&&s.methodName===t&&(!a||s.className===a)),ot=(e,n)=>e.find(t=>t.threadId===n),ug=(e,n)=>e.find(t=>t.tabPath===n),CO=(e,n)=>G(Tn,t=>{var a;return((a=Sn(t,e,n))==null?void 0:a.breakpoints.saved.locations)||[]}),xO=(e,n)=>G(Tn,t=>{var a;return((a=Sn(t,e,n))==null?void 0:a.breakpoints.draft.locations)||[]}),RO=e=>G(Tn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.saved.locations.map(s=>({...s,line:s.line+(a.breakpoints.saved.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),OO=e=>G(Tn,n=>n.filter(t=>t.filePath===e).reduce((t,a)=>[...t,...a.breakpoints.draft.locations.map(s=>({...s,line:s.line+(a.breakpoints.draft.offset||0)}))],[]).sort((t,a)=>t.line-a.line)),AO=e=>G(Dt,n=>{const t=ot(n,e);return t!=null&&t.stopped?t.highlightedLines:null}),PO=e=>G(Dt,n=>{const t=ot(n,e);return t!=null&&t.stopped?t.activeLine:null}),DO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.expressions)||[]}),IO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.stopped)||!1}),FO=(e,n)=>G(Tn,t=>{var a;return(a=Sn(t,e,n))==null?void 0:a.source}),$O=e=>G(Dt,n=>{var t;return((t=ug(n,e))==null?void 0:t.threadId)||-1}),MO=e=>G(Dt,n=>{var t,a;return(a=(t=ot(n,e))==null?void 0:t.currentStackFrame)==null?void 0:a.source}),LO=e=>G(Dt,n=>{var t;return(t=ot(n,e))==null?void 0:t.currentStackFrame}),NO=G(Dt,e=>e.map(({channelId:n,threadId:t})=>({id:n,threadId:t}))),kO=e=>G(Dt,n=>{var t;return((t=ot(n,e))==null?void 0:t.stackFrames)||[]}),jO=e=>G(Dt,n=>{var t,a;return((a=(t=ot(n,e))==null?void 0:t.variables)==null?void 0:a.callchain)||[]}),BO=e=>G(Dt,n=>{var t,a;return((a=(t=ot(n,e))==null?void 0:t.variables)==null?void 0:a.expressions)||[]}),WO=(e,n="saved")=>G(Tn,t=>{const a=t.find(s=>s.filePath===e);return(a==null?void 0:a.breakpoints[n].offset)||0}),UO=(e,n,t,a)=>G(Dt,s=>{var p;const i=((p=ot(s,e))==null?void 0:p.exceptions)||[],c=n===b.FileFolderType.CLASS,l=c&&a?`${a}.${t}`:t;return(l?i.filter(h=>h.location===l):i).map(h=>({...h,locationLine:c?h.locationLine:h.locationLine+1}))}),jr=G(e=>e.root,e=>e),ta=G(jr,e=>e.tabs),HO=G(jr,e=>e.activeTab),GO=G(jr,e=>e.recent.filter(({type:n})=>n!==b.FileFolderType.DEBUGGER)),qO=G(jr,({tabs:e,activeTab:n})=>e.find(({path:t})=>t===n)),YO=G(jr,({tabs:e})=>e.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null)),zO=G(ta,e=>e.filter(({type:n,flags:t})=>n===b.FileFolderType.WEBFORM&&t.enabled===!1).map(({path:n})=>n)),VO=G(ta,e=>e.length>0),ra=e=>G(jr,n=>n.tabs.find(({path:t})=>t===e)),cg=(e,n="")=>G(ra(e),t=>!t||!t.content||typeof t.content=="string"?t==null?void 0:t.content:He.get(t.content,n)),KO=e=>G(ra(e),n=>n==null?void 0:n.extra),JO=(e,n=t=>t)=>G(cg(e,"components"),t=>n(t||{})),Ac=G(ta,e=>e.filter(n=>n.flags.touched)),XO=G(Ac,e=>e.length),ZO=G(Dt,e=>e.map(({threadId:n,currentStackFrame:{source:t},tabPath:a})=>({name:wh(n,t),path:a,type:b.FileFolderType.DEBUGGER,content:t==null?void 0:t.content,flags:{},extra:{source:t}}))),QO=G(e=>e,e=>e.explorer||[]),lg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.WEBFORMS)),fg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.METHODS)),dg=G(e=>e,e=>e.explorer.find(n=>n.path===b.FolderRootPath.CLASSES)),eA=G(fg,e=>(e==null?void 0:e.children)||[]),tA=G(lg,e=>(e==null?void 0:e.children)||[]),rA=G(dg,e=>(e==null?void 0:e.children)||[]),nA=G(e=>e.modals,e=>e.list),aA=G(e=>e.roles,e=>Ns(e)),oA=G(e=>e.roles,({roles:e})=>e),sA=G(e=>e.roles,({privileges:e})=>e),iA=G(e=>e.roles,({privileges:e})=>Object.values(e).find(({privilege:n})=>n==="guest")),uA=G(e=>e.roles,({flags:e})=>e),cA=G(e=>e.roles,({selectedTab:e})=>e),lA=G(e=>e.roles,({forceLogin:e})=>e),fA=G(e=>e.roles,({date:e})=>e),Pc=G(e=>e.settings,e=>e.session),dA=(...e)=>G(Pc,n=>e.length>0?He.pick(n,e):n),pA=G(e=>e.settings,e=>e.project),hA=G(e=>e.settings,e=>e),Dc=G(e=>e.settings,e=>e.server),gA=G(Dc,e=>e.remoteDebuggerMode),vA=G(Dc,e=>e.qodly),mA=G(Pc,e=>e["monaco.zoom"]),pg=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],hg=pg.map(e=>({id:mc(),content:"",name:e,parentId:null,scope:b.EWebFormStyleClassScope.THEME})),Ic=e=>G(ra(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.styles)||[]}),yA=(e,n)=>G(Ic(e),t=>n.map(a=>{switch(!0){case a===b.EWebFormStyleClassScope.LOCAL:return t.map(s=>({...s,scope:b.EWebFormStyleClassScope.LOCAL}));case a===b.EWebFormStyleClassScope.THEME:return hg;default:return[]}}).flat()),bA=e=>G(Ic(e),n=>[...n.map(t=>({...t,scope:b.EWebFormStyleClassScope.LOCAL})),...hg]),_A=G(e=>e,e=>{var n;return[...(((n=e.sharedCSS)==null?void 0:n.styles)||[]).map(t=>({...t,scope:b.EWebFormStyleClassScope.SHARED}))]}),EA=e=>G(ra(e),n=>n==null?void 0:n.flags),Wa=G(e=>e.webforms,e=>e),gg=G(Wa,e=>(e==null?void 0:e.components)||[]),Ds=G(Wa,e=>e.inspector),SA=G(Ds,e=>e.css),wA=G(Ds,e=>e.datasource),vg=G(Wa,e=>e.templates||{data:[]}),TA=G(vg,e=>e.data||[]),CA=e=>G(gg,n=>n.find(t=>t.id===e)),xA=e=>G(Ds,n=>n[e]),RA=G(Wa,e=>e.datasources.theme),OA=G(e=>e.catalog,e=>e.sharedDatasources,e=>e.sharedCSS,(e,n,t)=>[e.state,n.state,t.state].every(a=>["loaded","error"].includes(a))),Fc={label:"Base",id:"root"},AA=e=>G(ra(e),n=>{var t,a;return((a=(t=n==null?void 0:n.content)==null?void 0:t.metadata)==null?void 0:a.states)||[Fc]});var $c=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))($c||{}),Mc=(e=>(e.NONE="none",e.SAVE_ALL_AND_PROCEED="saved_all_and_proceed",e.PROCEED="proceed",e))(Mc||{}),Lc=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Lc||{}),Go,PA=new Uint8Array(16);function mg(){if(!Go&&(Go=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Go))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Go(PA)}const DA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Is(e){return typeof e=="string"&&DA.test(e)}var mt=[];for(var Ru=0;Ru<256;++Ru)mt.push((Ru+256).toString(16).substr(1));function Fs(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(mt[e[n+0]]+mt[e[n+1]]+mt[e[n+2]]+mt[e[n+3]]+"-"+mt[e[n+4]]+mt[e[n+5]]+"-"+mt[e[n+6]]+mt[e[n+7]]+"-"+mt[e[n+8]]+mt[e[n+9]]+"-"+mt[e[n+10]]+mt[e[n+11]]+mt[e[n+12]]+mt[e[n+13]]+mt[e[n+14]]+mt[e[n+15]]).toLowerCase();if(!Is(t))throw TypeError("Stringified UUID is invalid");return t}var Dp,Ou,Au=0,Pu=0;function IA(e,n,t){var a=n&&t||0,s=n||new Array(16);e=e||{};var i=e.node||Dp,c=e.clockseq!==void 0?e.clockseq:Ou;if(i==null||c==null){var l=e.random||(e.rng||mg)();i==null&&(i=Dp=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),c==null&&(c=Ou=(l[6]<<8|l[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Pu+1,h=d-Au+(p-Pu)/1e4;if(h<0&&e.clockseq===void 0&&(c=c+1&16383),(h<0||d>Au)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Au=d,Pu=p,Ou=c,d+=122192928e5;var y=((d&268435455)*1e4+p)%4294967296;s[a++]=y>>>24&255,s[a++]=y>>>16&255,s[a++]=y>>>8&255,s[a++]=y&255;var _=d/4294967296*1e4&268435455;s[a++]=_>>>8&255,s[a++]=_&255,s[a++]=_>>>24&15|16,s[a++]=_>>>16&255,s[a++]=c>>>8|128,s[a++]=c&255;for(var E=0;E<6;++E)s[a+E]=i[E];return n||Fs(s)}function yg(e){if(!Is(e))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}function FA(e){e=unescape(encodeURIComponent(e));for(var n=[],t=0;t<e.length;++t)n.push(e.charCodeAt(t));return n}var $A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",MA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function bg(e,n,t){function a(s,i,c,l){if(typeof s=="string"&&(s=FA(s)),typeof i=="string"&&(i=yg(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+s.length);if(d.set(i),d.set(s,i.length),d=t(d),d[6]=d[6]&15|n,d[8]=d[8]&63|128,c){l=l||0;for(var p=0;p<16;++p)c[l+p]=d[p];return c}return Fs(d)}try{a.name=e}catch{}return a.DNS=$A,a.URL=MA,a}function LA(e){if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=new Uint8Array(n.length);for(var t=0;t<n.length;++t)e[t]=n.charCodeAt(t)}return NA(kA(jA(e),e.length*8))}function NA(e){for(var n=[],t=e.length*32,a="0123456789abcdef",s=0;s<t;s+=8){var i=e[s>>5]>>>s%32&255,c=parseInt(a.charAt(i>>>4&15)+a.charAt(i&15),16);n.push(c)}return n}function _g(e){return(e+64>>>9<<4)+14+1}function kA(e,n){e[n>>5]|=128<<n%32,e[_g(n)-1]=n;for(var t=1732584193,a=-271733879,s=-1732584194,i=271733878,c=0;c<e.length;c+=16){var l=t,d=a,p=s,h=i;t=Et(t,a,s,i,e[c],7,-680876936),i=Et(i,t,a,s,e[c+1],12,-389564586),s=Et(s,i,t,a,e[c+2],17,606105819),a=Et(a,s,i,t,e[c+3],22,-1044525330),t=Et(t,a,s,i,e[c+4],7,-176418897),i=Et(i,t,a,s,e[c+5],12,1200080426),s=Et(s,i,t,a,e[c+6],17,-1473231341),a=Et(a,s,i,t,e[c+7],22,-45705983),t=Et(t,a,s,i,e[c+8],7,1770035416),i=Et(i,t,a,s,e[c+9],12,-1958414417),s=Et(s,i,t,a,e[c+10],17,-42063),a=Et(a,s,i,t,e[c+11],22,-1990404162),t=Et(t,a,s,i,e[c+12],7,1804603682),i=Et(i,t,a,s,e[c+13],12,-40341101),s=Et(s,i,t,a,e[c+14],17,-1502002290),a=Et(a,s,i,t,e[c+15],22,1236535329),t=St(t,a,s,i,e[c+1],5,-165796510),i=St(i,t,a,s,e[c+6],9,-1069501632),s=St(s,i,t,a,e[c+11],14,643717713),a=St(a,s,i,t,e[c],20,-373897302),t=St(t,a,s,i,e[c+5],5,-701558691),i=St(i,t,a,s,e[c+10],9,38016083),s=St(s,i,t,a,e[c+15],14,-660478335),a=St(a,s,i,t,e[c+4],20,-405537848),t=St(t,a,s,i,e[c+9],5,568446438),i=St(i,t,a,s,e[c+14],9,-1019803690),s=St(s,i,t,a,e[c+3],14,-187363961),a=St(a,s,i,t,e[c+8],20,1163531501),t=St(t,a,s,i,e[c+13],5,-1444681467),i=St(i,t,a,s,e[c+2],9,-51403784),s=St(s,i,t,a,e[c+7],14,1735328473),a=St(a,s,i,t,e[c+12],20,-1926607734),t=wt(t,a,s,i,e[c+5],4,-378558),i=wt(i,t,a,s,e[c+8],11,-2022574463),s=wt(s,i,t,a,e[c+11],16,1839030562),a=wt(a,s,i,t,e[c+14],23,-35309556),t=wt(t,a,s,i,e[c+1],4,-1530992060),i=wt(i,t,a,s,e[c+4],11,1272893353),s=wt(s,i,t,a,e[c+7],16,-155497632),a=wt(a,s,i,t,e[c+10],23,-1094730640),t=wt(t,a,s,i,e[c+13],4,681279174),i=wt(i,t,a,s,e[c],11,-358537222),s=wt(s,i,t,a,e[c+3],16,-722521979),a=wt(a,s,i,t,e[c+6],23,76029189),t=wt(t,a,s,i,e[c+9],4,-640364487),i=wt(i,t,a,s,e[c+12],11,-421815835),s=wt(s,i,t,a,e[c+15],16,530742520),a=wt(a,s,i,t,e[c+2],23,-995338651),t=Tt(t,a,s,i,e[c],6,-198630844),i=Tt(i,t,a,s,e[c+7],10,1126891415),s=Tt(s,i,t,a,e[c+14],15,-1416354905),a=Tt(a,s,i,t,e[c+5],21,-57434055),t=Tt(t,a,s,i,e[c+12],6,1700485571),i=Tt(i,t,a,s,e[c+3],10,-1894986606),s=Tt(s,i,t,a,e[c+10],15,-1051523),a=Tt(a,s,i,t,e[c+1],21,-2054922799),t=Tt(t,a,s,i,e[c+8],6,1873313359),i=Tt(i,t,a,s,e[c+15],10,-30611744),s=Tt(s,i,t,a,e[c+6],15,-1560198380),a=Tt(a,s,i,t,e[c+13],21,1309151649),t=Tt(t,a,s,i,e[c+4],6,-145523070),i=Tt(i,t,a,s,e[c+11],10,-1120210379),s=Tt(s,i,t,a,e[c+2],15,718787259),a=Tt(a,s,i,t,e[c+9],21,-343485551),t=Qr(t,l),a=Qr(a,d),s=Qr(s,p),i=Qr(i,h)}return[t,a,s,i]}function jA(e){if(e.length===0)return[];for(var n=e.length*8,t=new Uint32Array(_g(n)),a=0;a<n;a+=8)t[a>>5]|=(e[a/8]&255)<<a%32;return t}function Qr(e,n){var t=(e&65535)+(n&65535),a=(e>>16)+(n>>16)+(t>>16);return a<<16|t&65535}function BA(e,n){return e<<n|e>>>32-n}function $s(e,n,t,a,s,i){return Qr(BA(Qr(Qr(n,e),Qr(a,i)),s),t)}function Et(e,n,t,a,s,i,c){return $s(n&t|~n&a,e,n,s,i,c)}function St(e,n,t,a,s,i,c){return $s(n&a|t&~a,e,n,s,i,c)}function wt(e,n,t,a,s,i,c){return $s(n^t^a,e,n,s,i,c)}function Tt(e,n,t,a,s,i,c){return $s(t^(n|~a),e,n,s,i,c)}var WA=bg("v3",48,LA);const UA=WA;function HA(e,n,t){e=e||{};var a=e.random||(e.rng||mg)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,n){t=t||0;for(var s=0;s<16;++s)n[t+s]=a[s];return n}return Fs(a)}function GA(e,n,t,a){switch(e){case 0:return n&t^~n&a;case 1:return n^t^a;case 2:return n&t^n&a^t&a;case 3:return n^t^a}}function Du(e,n){return e<<n|e>>>32-n}function qA(e){var n=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var a=unescape(encodeURIComponent(e));e=[];for(var s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,c=Math.ceil(i/16),l=new Array(c),d=0;d<c;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];l[d]=p}l[c-1][14]=(e.length-1)*8/Math.pow(2,32),l[c-1][14]=Math.floor(l[c-1][14]),l[c-1][15]=(e.length-1)*8&4294967295;for(var y=0;y<c;++y){for(var _=new Uint32Array(80),E=0;E<16;++E)_[E]=l[y][E];for(var T=16;T<80;++T)_[T]=Du(_[T-3]^_[T-8]^_[T-14]^_[T-16],1);for(var x=t[0],D=t[1],P=t[2],j=t[3],M=t[4],k=0;k<80;++k){var O=Math.floor(k/20),z=Du(x,5)+GA(O,D,P,j)+M+n[O]+_[k]>>>0;M=j,j=P,P=Du(D,30)>>>0,D=x,x=z}t[0]=t[0]+x>>>0,t[1]=t[1]+D>>>0,t[2]=t[2]+P>>>0,t[3]=t[3]+j>>>0,t[4]=t[4]+M>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var YA=bg("v5",80,qA);const zA=YA,VA="00000000-0000-0000-0000-000000000000";function KA(e){if(!Is(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const JA=Object.freeze(Object.defineProperty({__proto__:null,NIL:VA,parse:yg,stringify:Fs,v1:IA,v3:UA,v4:HA,v5:zA,validate:Is,version:KA},Symbol.toStringTag,{value:"Module"})),XA=qw(JA);function Nc(e,n){if(!e||!n||!e.length||!n.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=n}Nc.prototype.convert=function(e){var n,t,a,s={},i=this.srcAlphabet.length,c=this.dstAlphabet.length,l=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(n=0;n<l;n++)s[n]=this.srcAlphabet.indexOf(e[n]);do{for(t=0,a=0,n=0;n<l;n++)t=t*i+s[n],t>=c?(s[a++]=parseInt(t/c,10),t=t%c):a>0&&(s[a++]=0);l=a,d=this.dstAlphabet.slice(t,t+1).concat(d)}while(a!==0);return d};Nc.prototype.isValid=function(e){for(var n=0;n<e.length;++n)if(this.srcAlphabet.indexOf(e[n])===-1)return!1;return!0};var ZA=Nc,QA=ZA;function Ua(e,n){var t=new QA(e,n);return function(a){return t.convert(a)}}Ua.BIN="01";Ua.OCT="01234567";Ua.DEC="0123456789";Ua.HEX="0123456789abcdef";var eP=Ua;const{v4:Iu}=XA,qo=eP,Fu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",tP="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",rP={consistentLength:!0};let $u;const Ip=(e,n,t)=>{const a=n(e.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?a:a.padStart(t.shortIdLength,t.paddingChar)},nP=(e,n)=>{const a=n(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[a[1],a[2],a[3],a[4],a[5]].join("-")},aP=e=>Math.ceil(Math.log(2**128)/Math.log(e));var ps=(()=>{const e=(n,t)=>{const a=n||Fu,s={...rP,...t};if([...new Set(Array.from(a))].length!==a.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const i=aP(a.length),c={shortIdLength:i,consistentLength:s.consistentLength,paddingChar:a[0]},l=qo(qo.HEX,a),d=qo(a,qo.HEX),p=()=>Ip(Iu(),l,c),h={new:p,generate:p,uuid:Iu,fromUUID:y=>Ip(y,l,c),toUUID:y=>nP(y,d),alphabet:a,maxLength:i};return Object.freeze(h),h};return e.constants={flickrBase58:Fu,cookieBase90:tP},e.uuid=Iu,e.generate=()=>($u||($u=e(Fu).generate),$u()),e})(),Ae=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e))(Ae||{});const oP=[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD],hs="guest",kc=[{key:"read",label:"Read",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE]},{key:"describe",label:"Describe",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.ATTRIBUTE,Ae.METHOD]},{key:"execute",label:"Execute",canApplyTo:[Ae.DATASTORE,Ae.DATACLASS,Ae.METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ae.METHOD]}];function rr(e,...n){return Array.from(new Set([...e,...n]))}function Eg(e){const n={},t=new Map;e.forEach(d=>{const p=d.id||ps.generate();n[p]={...d,id:p,parents:[],includes:rr(d.includes||[]),resources:[]},t.set(d.privilege,p)}),Object.entries(n).forEach(([d,p])=>{const h=p.includes.map(y=>{const _=t.get(y);return _?(n[_].parents=rr(n[_].parents,_),_):""}).filter(Boolean);n[d]={...p,includes:h}});const a=Sg(n),s=new Set;function i(d){s.add(d.id),d.includes=d.includes.filter(p=>!s.has(p))}if(a.forEach(i),a.forEach(d=>d.parents=[]),a.forEach(d=>{d.includes.forEach(p=>n[p].parents.push(d.id))}),Object.values(n).find(({privilege:d})=>d===hs))return n;const l=ps.generate();return{[l]:{id:l,privilege:hs,includes:[],parents:[],resources:[]},...n}}function Sg(e){return Object.values(e).sort((n,t)=>n.parents.length-t.parents.length)}function Ms(e,n){const t=n[e];let a=[];return t&&t.parents.forEach(s=>{a=rr(a,...Ms(s,n),s)}),a}function gs(e,n){const t=n[e];let a=[];return t&&t.includes.forEach(s=>{a=rr(a,...gs(s,n),s)}),a}function sP(e,n){const t=n[e];if(!t)return[];const a=[e,...Ms(e,n),...t.includes];return Object.keys(n).filter(s=>!a.includes(s))}function iP(e,n){return n[e]?Object.keys(n).reduce((a,s)=>s===e?a:{...a,[s]:{...n[s],parents:n[s].parents.filter(i=>i!==e),includes:n[s].includes.filter(i=>i!==e)}},{}):n}function uP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:rr(a.includes,n)},[n]:{...t[n],parents:rr(s.parents,e)}}}function cP(e,n,t){const a=t[e],s=t[n];return!a||!s?t:{...t,[e]:{...t[e],includes:t[e].includes.filter(i=>i!==n)},[n]:{...t[n],parents:t[n].parents.filter(i=>i!==e)}}}function wg(e,n){b.validateName(e),Object.entries(n).forEach(([,{privilege:a}])=>{if(e.toLowerCase()===a.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const t=ps.generate();return{[t]:{id:t,privilege:e,includes:[],parents:[],resources:[]},...n}}function lP(e,n,t,a,s){let i=wg(e,s);const c=Object.entries(i).find(([,l])=>l.privilege===e);return c?(i=Rg(c[1].id,n,t,a,i),i):s}function fP(e,n,t){if(!e)throw new Error("Please enter a name");if(!t[n])throw new Error("Invalid privilege");return Object.entries(t).forEach(([,{privilege:a,id:s}])=>{if(e.toLowerCase()===a.toLowerCase()&&n!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...t,[n]:{...t[n],privilege:e}}}function dP(e,n){return e.map(t=>Br(t,n))}function Br(e,n){return n[e]?n[e]:null}function Tg({applyTo:e,type:n,...t}){return Object.entries(t).reduce((a,[s,i])=>{const c=He.find(kc,["key",s]);return!c||!c.canApplyTo.includes(n)||(typeof i=="string"?i.split(","):i).forEach(d=>{a[d]=rr(a[d]||[],s)}),a},{})}const rc=(e,n=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${n?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${n?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${n?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function jc(e){return{permissions:kc.filter(({canApplyTo:n})=>n.includes(e.type)).map(({key:n,label:t})=>{const a={name:n,from:[]};switch(e.type){case Ae.DATASTORE:return{...a,info:rc(t,!0)};case Ae.DATACLASS:return{...a,info:rc(t)};default:return a}}),resource:e.applyTo,type:e.type}}function Cg(e,n){const t=xg(n),a={};return e.filter(({type:s})=>oP.includes(s)).forEach(s=>{const i=Tg(s);Object.entries(i).forEach(([c,l])=>{var h;const d=(h=t[c])==null?void 0:h.id;if(!d)return;a[d]=a[d]||{...n[d]};let p=He.find(a[d].resources,{resource:s.applyTo,type:s.type});p||(p=jc(s),a[d].resources.push(p)),p.permissions=p.permissions.map(y=>({...y,checked:y.checked||l.includes(y.name)}))})}),{...n,...a}}function xg(e){return Object.values(e).reduce((n,t)=>({...n,[t.privilege]:t}),{})}function Ls(e){var t;const n=Eg(e.privileges||[]);return{forceLogin:e==null?void 0:e.forceLogin,privileges:Cg(((t=e.permissions)==null?void 0:t.allowed)||[],n),roles:(e.roles||[]).map(({id:a=ps.generate(),role:s,privileges:i=[]})=>({id:a,role:s,privileges:rr(i).map(c=>{var l;return(l=Object.values(n).find(({privilege:d})=>d===c))==null?void 0:l.id}).filter(Boolean)})).reduce((a,s)=>({...a,[s.id]:{...s}}),{})}}function Ns(e){const n=Object.values(e.privileges).filter(({includes:a})=>a.length===0).map(({id:a})=>a),t=[...n,...n.map(a=>Ms(a,e.privileges).reverse())].flat().filter((a,s,i)=>i.indexOf(a)===s).map(a=>e.privileges[a]);return{forceLogin:e.forceLogin,permissions:{allowed:Object.values(e.privileges).reduce((a,s)=>(s.resources.forEach(({permissions:i,resource:c,type:l})=>{let d=He.find(a,{applyTo:c,type:l});d||(d={applyTo:c,type:l},a.push(d)),i.forEach(({name:p,checked:h})=>{h&&d&&(d[p]=d[p]||[],d[p].push(s.privilege))})}),a),[])},privileges:t.filter(({privilege:a})=>a!==hs).map(({id:a,includes:s,privilege:i})=>({id:a,privilege:i,includes:s.map(c=>e.privileges[c].privilege)})),roles:Object.values(e.roles).map(a=>({...a,privileges:a.privileges.map(s=>{var i;return(i=e.privileges[s])==null?void 0:i.privilege}).filter(Boolean)}))}}function pP(e,n){const t=n[e],a={children:[],links:[],parents:[],selected:e};if(!t)return a;function s(l,d,p=[]){const h=l.reduce((y,_)=>[...y,...n[_][d]],[]);return h.length===0?p:(p.push(h),s(h,d,p))}function i(l){const d=[],p=[];for(let h=l.length-1;h>=0;h-=1){const y=l[h].filter(_=>d.includes(_)?!1:(d.push(_),!0));y.length>0&&p.unshift(rr(y))}return p}function c(l,d){const p=[];return l.reduce((h,y)=>(y.forEach(_=>{n[_][d==="parents"?"includes":"parents"].forEach(T=>{p.includes(T)&&h.push(d==="parents"?{source:_,target:T}:{source:T,target:_})}),p.push(_)}),h),[])}return a.children=s([e],"includes"),a.children=i(a.children),a.parents=s([e],"parents"),a.parents=i(a.parents),a.links=[...c([[e],...a.parents],"parents"),...c([[e],...a.children],"includes")],a}function hP(e,n,t){const a=Br(e,t);if(!a||He.find(a.resources,{resource:n.applyTo,type:n.type}))return t;const s={...a,resources:[...a.resources,jc(n)]};return{...t,[e]:s}}function gP(e,n,t){const a=Br(e,t);if(!a)return t;const s={...a,resources:a.resources.filter(({resource:i,type:c})=>i!==n.applyTo||c!==n.type)};return{...t,[e]:s}}function vP(e,n){const t=Br(e,n);if(!t)return n;const a={...t,resources:t.resources.filter(s=>s.permissions.some(i=>i.from.length)).map(s=>({...s,permissions:s.permissions.map(i=>({...i,checked:!1}))}))};return{...n,[e]:a}}function Rg(e,n,t,a,s){const i=Br(e,s);if(!i)return s;const l=He.find(i.resources,{type:t,resource:n})?{...i,resources:i.resources.map(d=>d.type===t&&d.resource===n?{...d,permissions:d.permissions.map(p=>p.name===a?{...p,checked:!p.checked,from:[]}:p)}:d)}:{...i,resources:[...i.resources,{type:t,resource:n,permissions:kc.filter(d=>d.canApplyTo.includes(t)).map(d=>({from:[],name:d.key,checked:d.key===a,info:rc(d.key,t===Ae.DATASTORE)}))}]};return{...s,[e]:l}}function mP(e,n,t,a){const s=Br(e,a);if(!s)return a;const c=He.find(s.resources,{type:n.type,resource:n.resource})?{...s,resources:s.resources.map(l=>l.type===n.type&&l.resource===n.resource?{...l,permissions:n.permissions.map(d=>d.name===t.name?{...d,checked:!d.checked,from:[]}:d)}:l)}:{...s,resources:[...s.resources,{...n,permissions:n.permissions.map(l=>({...l,checked:t.name===l.name,from:[]}))}]};return{...a,[e]:c}}function yP(e,n){var d;const t=Og(e,n)||[],a=((d=Br(e,n))==null?void 0:d.resources)||[],c=([...t,...a].filter(({type:p})=>p===Ae.METHOD)||[]).map(({resource:p})=>p);return Object.entries(n).reduce((p,[h,{resources:y}])=>(y.filter(({resource:_,type:E})=>E===Ae.METHOD&&c.includes(_)).forEach(({permissions:_,resource:E})=>{var x;((x=_.find(({name:D})=>D==="promote"))==null?void 0:x.checked)&&(p[E]=rr(p[E]||[],h))}),p),{})}function Og(e,n){var c;const t=Br(e,n);if(!t)return[];const a=(c=Object.values(n).find(l=>l.privilege===hs))==null?void 0:c.id;return(a&&a!==e?rr(gs(e,n),a):gs(e,n)).reduce((l,d)=>(n[d].resources.forEach(h=>{if(h.permissions.filter(({checked:E})=>E).length===0)return;const _=He.find(l,{type:h.type,resource:h.resource});if(!_){l.push({...h,permissions:h.permissions.map(E=>({...E,from:E.checked?[d]:[],checked:!1}))});return}_.permissions=_.permissions.map((E,T)=>{let{from:x=[]}=E;return h.permissions[T].checked&&!x.includes(d)&&(x=[...x,d]),{...E,from:x,checked:E.checked}})}),l),He.clone(t.resources.map(l=>({...l,permissions:l.permissions.map(({checked:d,...p})=>({...p,checked:!!d}))}))))}const bP=e=>e.reduce((n,t)=>({...n,[t.id]:{...t}}),{}),_P=(e,n)=>n[e]?Object.values(n).reduce((t,a)=>e===a.id||a.role===""?t:{...t,[a.id]:a},{}):n,EP=(e,n,t)=>t[e]?Object.values(t).reduce((a,s)=>e===s.id?{...a,[s.id]:{...s,name:n}}:{...a,[s.id]:s},{}):t,SP=(e,n)=>{const t={id:e,role:"",privileges:[]};return{...n,[t.id]:t}},wP=(e,n)=>{if(b.validateName(e.role),Object.values(n).find(a=>a.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(n).reduce((a,s)=>e.id===s.id?{...a,[e.id]:e}:{...a,[s.id]:s},{})},TP={list:[]},Fp=(e,n)=>e.list.filter(t=>t.id!==n),Ag=nr({name:"modals",initialState:TP,reducers:{createModal:(e,n)=>{e.list.push(n.payload)},editModal:(e,n)=>{const{id:t,...a}=n.payload,s=e.list.find(b.byId(t));s&&Object.assign(s,{...a})},removeModal:(e,n)=>{const t=n.payload;e.list=Fp(e,t)},closeModal:(e,n)=>{const{id:t,reason:a}=n.payload;if(a){const s=e.list.find(i=>i.id===t);s&&(s.closeReason=a,s.isOpen=!1)}else e.list=Fp(e,t)}}}),{createModal:Pg,removeModal:Dg,closeModal:CP,editModal:xP}=Ag.actions,ar=Q("modals/open",async(e,{dispatch:n})=>{const{type:t=b.ModalType.ALERT,store:a=Ov()}=e,s=mc();switch(n(Pg({id:s,type:t,isOpen:!0,...e})),t){case b.ModalType.CONFIRM:return new Promise(i=>{const c=a.subscribe(()=>{var p;const{modals:l}=a.getState(),d=l.list.find(h=>h.id===s);if(d&&!d.isOpen){const h=d.closeReason===b.ModalCloseReason.CONFIRMED,y=He.entries((p=d.views)==null?void 0:p.toggles).reduce((_,E)=>({..._,[E[0]]:E[1].value}),{});n(Dg(s)),c(),i({confirmed:h,options:y})}})});default:return{}}}),Ig=()=>b.getFileContent({name:b.ROLES_TAB_PATH}),Fg="Roles & Privileges",vs=Q("roles/fetchRoles",async(e,{dispatch:n,rejectWithValue:t})=>{var i;let a;try{a=await Ig()}catch(c){if(!Array.isArray((i=c==null?void 0:c.data)==null?void 0:i.__ERROR))return t("Error while loading the roles");a={name:b.ROLES_TAB_PATH,date:new Date().toISOString(),content:{permissions:{allowed:[]},privileges:[],roles:[]}}}const s={name:Fg,type:b.FileFolderType.ROLES,date:a.date,view:{panel:{isOpen:!1,type:"",current:""}},path:b.ROLES_TAB_PATH,flags:{},extra:{editor:{key:"editors:roles"}},content:{}};return n(Pt(s)),{...a,content:Ls(a.content)}}),$g=Q("roles/fetchRolesChanges",async(e,{getState:n})=>{const{tabs:t}=n().root;if(t.find(s=>s.path===b.ROLES_TAB_PATH)){const{date:s}=n().roles;if(s&&await Bc(s))return{old:!0}}return{}}),Bc=async e=>{if(!e)return!1;try{const n=await Ig();if(n.date){const t=new Date(e),a=new Date(n.date);if(t>a)return!0}}catch(n){if(!Array.isArray(n==null?void 0:n.data.__ERROR))throw n}return!1},nc=Q("roles/saveRoles",async(e,{getState:n,rejectWithValue:t,dispatch:a})=>{try{const{flags:s,date:i}=n().roles;if(s.old||await Bc(i)){const{confirmed:d}=await a(ar({title:Fg,message:"New content has been found on the server. Are you sure you want to continue?",type:b.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!d)return t({old:!0})}return await b.setFileContent({name:b.ROLES_TAB_PATH,content:Ns(e)})}catch{return t("Error while loading the roles")}}),Mg=nr({name:"roles",initialState:()=>{const{roles:e}=Kn(),{roles:n={},privileges:t={},flags:a={touched:!1},date:s,selectedTab:i="roles"}=e||{};return{flags:a,roles:n,privileges:t,date:s,selectedTab:i}},reducers:{updatePrivileges:(e,n)=>{e.privileges=n.payload,e.flags.touched=!0},updateRoles:(e,n)=>{e.roles=n.payload,e.flags.touched=!0},updateRolesAndPrivileges:(e,n)=>{e.roles=n.payload.roles,e.privileges=n.payload.privileges},toggleTab:(e,n)=>{e.selectedTab=n.payload},toggleForceLogin:(e,n)=>{e.forceLogin!==n.payload&&(e.forceLogin=n.payload,e.flags.touched=!0)},setRolesContent(e,n){const{content:t,flags:a={},...s}=n.payload,i=Ls(t),c={...e.flags,...a};return{...e,...i,...s,flags:c}}},extraReducers(e){e.addCase(vs.fulfilled,(n,t)=>{const{content:a,date:s}=t.payload;n={...n,...a,date:s}}).addCase(vs.rejected,n=>({...n,roles:{},privileges:{},flags:{touched:!1},date:void 0})).addCase(nc.fulfilled,(n,t)=>({...n,flags:{...n.flags,confirmed:!0,touched:!1,old:!1},date:t.payload.date})).addCase(nc.rejected,(n,t)=>Sh.isString(t.payload)?n:{...n,flags:{...n.flags,...t.payload}}).addCase($g.fulfilled,(n,t)=>({...n,flags:{...n.flags,...t.payload}})).addCase(Yn.fulfilled,(n,t)=>{!t.payload||t.payload.path!==b.ROLES_TAB_PATH||(n.flags.touched=!1,n.flags.old=!1)}).addCase(zc.fulfilled,(n,t)=>{t.meta.arg!==b.ROLES_TAB_PATH||!t.payload||(n.flags.touched=!1,n.flags.old=!1)})}}),{updatePrivileges:Lg,updateRoles:Ng,setRolesContent:Wc,toggleTab:RP,toggleForceLogin:OP,updateRolesAndPrivileges:Uc}=Mg.actions,AP=Mg.reducer,Hc=Q("settings/fetch",async()=>await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:b.SETTINGS_TAB_PATH,content:!0,as:"json"})),kg=Q("settings/app",b.getAppSettings),PP=hh(),$p={session:{"studio.tips":!0,"studio.notifications":!0,"studio.enablePreview":!1,"studio.tipsBaseUrl":"https://raw.githubusercontent.com/4d/Web-studio-TIPS/gh-build","webforms.tooltip.behavior":$c.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.renderer.unsavedPopOverChoice":Mc.NONE,"welcometour.active":!0,"webforms.properties.advanced-mode":!1,"monaco.zoom":0},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"},server:{projectOpened:!1,remoteDebuggerMode:b.RemoteDebuggerMode.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:"",lsp:""},isRestActive:!0}},DP={...$p,session:{...$p.session,...PP},welcometour:{}},jg=nr({name:"settings",initialState:DP,reducers:{setSetting(e,n){const{path:t,settingsKey:a,value:s}=n.payload;e[t][a]=s},setSettings(e,n){const{path:t,value:a}=n.payload;e[t]={...e[t],...a}},setSettingsAsText(e,n){const{path:t,settings:a}=n.payload;e[t]=a}},extraReducers(e){e.addCase(Hc.fulfilled,(n,t)=>{n.project={...n.project,...t.payload.content}}),e.addCase(kg.fulfilled,(n,t)=>{n.server=t.payload,n.server.qodly&&(n.project["webforms.display-mode"]="airy")})}}),{setSetting:ac,setSettings:ks,setSettingsAsText:IP}=jg.actions,FP=jg.reducer,oc=e=>{const n=["folder","file"];return e.sort((t,a)=>t.type===a.type?t.name.localeCompare(a.name):n.indexOf(t.type)-n.indexOf(a.type))},Re=(e,n)=>e.reduce((t,a)=>a.path===n.path&&a.type===n.type?[...t,n]:a.children?[...t,{...a,children:oc(Re(a.children,n))}]:[...t,a],[]),lt=(e,n)=>e.reduce((t,a)=>t||(a.path===n?a:a.children?lt(a.children,n):null),null),$P=[{name:b.FolderRootPath.WEBFORMS,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.WEBFORMS,error:null,flags:{expanded:!1,loading:!1,cached:!1},tipKey:"editors:webform:explorer:webforms",config:{},isRoot:!0},{name:b.FolderRootPath.METHODS,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.METHODS,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:b.FolderRootPath.CLASSES,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.CLASSES,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:b.FolderRootPath.SHARED,type:b.FileFolderType.FOLDER,children:[],path:b.FolderRootPath.SHARED,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0},{name:"Debugger",type:b.FileFolderType.FOLDER,children:[],path:"Debugger",error:null,flags:{expanded:!1,cached:!0},config:{},isRoot:!0},{name:"Roles And Privileges",type:b.FileFolderType.FILE,ext:"json",path:"roles",error:null,flags:{},config:{editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},isRoot:!0},{name:"Model",type:b.FileFolderType.MODEL,ext:"4DModel",path:"model",error:null,flags:{},config:{editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]}},{name:"Settings",type:b.FileFolderType.FILE,ext:"json",path:"qodlyApp",error:null,flags:{},config:{editor:{key:"editors:settings"}},isRoot:!0}],Bg=nr({name:"explorer",initialState:$P,reducers:{toggleExpandFolder:(e,n)=>(e=Re(e,{...n.payload,flags:{...n.payload.flags,expanded:!n.payload.flags.expanded}}),e),expandFolder:(e,n)=>(e=Re(e,{...n.payload,flags:{...n.payload.flags,expanded:!0}}),e),openAddFileInput:(e,n)=>Re(e,{...n.payload,flags:{...n.payload.flags,adding:!0}}),addNewFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Re(e,{...t,children:[a,...t.children||[]]})},removeFile:(e,n)=>{const{parent:t,child:a}=n.payload;return Re(e,{...t,children:t.children.filter(s=>s.path!==a.path)})},refreshFile:(e,n)=>{const{parent:t,child:a}=n.payload,s=(t.children||[]).filter(i=>i.path!==a.path&&!a.error);return Re(e,{...t,children:[a,...s]})},setFolderChildren:(e,n)=>{const t=lt(e,n.payload.parentPath);return t?Re(e,{...t,children:n.payload.children}):e}},extraReducers:e=>{e.addCase(qn.pending,(n,t)=>{const{file:a,newname:s}=t.meta.arg,i=lt(n,a.path);if(!i)return n;const c=a.path.split("/");c.pop();const l=`${c.join("/")}/${a.name}.${a.ext}`,d=`${c.join("/")}/${s}.${a.ext}`;switch(a.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.WILL_RENAME,payload:{oldPath:l,newPath:d}});break}return Re(n,{...i,flags:{...i.flags,loading:!0}})}),e.addCase(qn.fulfilled,(n,t)=>{const{meta:{arg:{file:a}},payload:s}=t,i=lt(n,a.path);if(!i)return n;switch(s.old.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.DID_RENAME,payload:{oldPath:s.old.path,newPath:s.new.path}});break}return Re(n,{...i,flags:{...i.flags,loading:!1}})}),e.addCase(qn.rejected,(n,t)=>{const{file:a}=t.meta.arg,s=lt(n,a.path);return s?Re(n,{...s,flags:{...s.flags,loading:!1}}):n}),e.addCase(_r.pending,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(_r.fulfilled,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,children:oc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!0},error:null}):n}),e.addCase(_r.rejected,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!0}}):n}),e.addCase(Aa.pending,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,flags:{...s.flags,loading:!0}}):n}),e.addCase(Aa.fulfilled,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,children:oc(t.payload),flags:{...s.flags,loading:!1,cached:!0,expanded:!1},error:null}):n}),e.addCase(Aa.rejected,(n,t)=>{const a=t.meta.arg,s=lt(n,a);return s?Re(n,{...s,error:{message:t.payload},flags:{...s.flags,loading:!1,cached:!0,expanded:!1}}):n}),e.addCase(Jo.pending,(n,t)=>{const{fileName:a,parentNode:s,path:i,type:c}=t.meta.arg;return Re(n,{...s,children:[{name:a,path:`${i}/${a}`,type:c,error:null,flags:{loading:!0},config:{}},...s.children]})}),e.addCase(Jo.fulfilled,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg,c=b.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${a}${c?`.${c.toLowerCase()}`:""}`);return Re(n,{name:s,path:`${a}/${s}`,type:i,error:null,flags:{loading:!1},config:{editor:l,supportedEditors:d}})}),e.addCase(Jo.rejected,(n,t)=>{const{path:a,fileName:s,type:i}=t.meta.arg;return Re(n,{name:s,path:`${a}/${s}`,type:i,error:{message:t.payload},flags:{loading:!1},config:{}})}),e.addCase(Xo.pending,(n,t)=>{const{node:a,parentNode:s}=t.meta.arg;return Re(n,{...s,children:[{name:`${a.name}_copy`,path:`${a.path}/${a.name}_copy`,type:a.type,error:null,flags:{loading:!0},permissions:{canRename:!0,canDelete:!0}},...s.children]})}),e.addCase(Xo.fulfilled,(n,t)=>{const{node:a}=t.payload,{node:{path:s,ext:i}}=t.meta.arg,{editor:c,supportedEditors:l}=pr(`${s}${i?`.${i.toLowerCase()}`:""}`);return Re(n,{name:`${a.name}`,path:`${s}/${a.name}`,type:a.type,error:null,flags:{loading:!1},config:{editor:c,supportedEditors:l}})}),e.addCase(Xo.rejected,(n,t)=>{const a=t.payload,{node:s}=t.meta.arg;return Re(n,{name:`${s.name}_copy`,path:`${s.path}/${s.name}_copy`,type:s.type,error:{message:a},flags:{loading:!1},config:{}})}),e.addCase(Da.pending,(n,t)=>{}),e.addCase(Da.fulfilled,(n,t)=>{var y;const{draggedNode:a,newLocation:s}=t.meta.arg,i=kh(a.path),c=lt(n,i),l=lt(n,s.path),d=(y=c==null?void 0:c.children)==null?void 0:y.filter(_=>_.path!==a.path),p=s.path.split("/").length,h=a.path.split("/").length;return p>=h?(n=Re(n,{...c,children:d}),n=Re(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}})):(n=Re(n,{...l,children:[{...a,path:`${l.path}/${a.name}`},...l!=null&&l.children?l==null?void 0:l.children:[]],flags:{...l.flags,expanded:!0}}),n=Re(n,{...c,children:d})),n}),e.addCase(Da.rejected,(n,t)=>{b.toastSubject.next({message:"Error moving file",kind:"danger"})}),e.addCase(Gn.pending,(n,t)=>{var x;const{fileName:a,parentNode:s,path:i,type:c,qodly:l}=t.meta.arg,d=b.getFileExtentionFromType(c,l),p=`${i}/${a}${d?`.${d.toLowerCase()}`:""}`,{editor:h,supportedEditors:y}=pr(p);switch(c){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.WILL_CREATE,payload:{filePath:p}});break}const _=(x=s.children)==null?void 0:x.filter(D=>D.path!==`${i}/${a}`),E=[{name:a,path:`${i}/${a}`,type:b.FileFolderType.FILE,error:null,flags:{loading:!0},config:{editor:h,supportedEditors:y},ext:d,date:new Date().toISOString()},..._],T=Re(n,{...s,children:E});return Sh.merge(n,T)}),e.addCase(Gn.fulfilled,(n,t)=>{const{fileName:a,path:s,type:i,qodly:c}=t.meta.arg,l=b.getFileExtentionFromType(i,c),d=`${s}/${a}${l?`.${l.toLowerCase()}`:""}`,{editor:p,supportedEditors:h}=pr(d),y=Re(n,{name:a,path:`${s}/${a}`,type:b.FileFolderType.FILE,error:null,flags:{},config:{editor:p,supportedEditors:h},ext:l,date:new Date().toISOString()});switch(i){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.DID_CREATE,payload:{filePath:d}});break}return n=y,n}),e.addCase(Gn.rejected,(n,t)=>{const{fileName:a,path:s,type:i}=t.meta.arg,c=b.getFileExtentionFromType(i),{editor:l,supportedEditors:d}=pr(`${s}${c?`.${c.toLowerCase()}`:""}`);return n=Re(n,{name:a,path:`${s}/${a}`,type:b.FileFolderType.FILE,error:{message:"Failed creating file"},flags:{},config:{editor:l,supportedEditors:d},ext:c,date:new Date().toISOString()}),n}),e.addMatcher(rh(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!0}})),n}),e.addMatcher(ah(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!1}})),n}),e.addMatcher(nh(Pa),(n,t)=>{const a=lt(n,t.meta.arg.file.path.split(".")[0]);return a&&(n=Re(n,{...a,flags:{...a.flags,loading:!1}})),b.toastSubject.next({message:"Failed to open file, try again",kind:"danger"}),n})}}),{toggleExpandFolder:MP,expandFolder:LP,openAddFileInput:NP,addNewFile:Wg,refreshFile:kP,removeFile:sc,setFolderChildren:jP}=Bg.actions;function Ug(e,n){switch(e){case b.FileFolderType.WEBFORMS:const t={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white h-full w-full px-6",classNames:[],events:[]},displayName:"App",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return n["webforms.display-mode"]===Lc.AIRY&&(t.components.ROOT.props.airyMode=!0),t;case b.FileFolderType.METHODS:return`//%attributes = {}
|
|
91
|
+
`;default:return""}}function Hg(e,n,t){switch(n){case b.FileFolderType.MOBILEFORM:return`${e}.MForm`;case b.FileFolderType.WEBFORM:return`${e}.WebForm`;case b.FileFolderType.METHOD:case b.FileFolderType.CLASS:return`${e}.${t?"4qs":"4dm"}`;default:return e}}function BP(e){switch(e){case b.FolderRootPath.WEBFORMS:return b.FileFolderType.WEBFORMS;case b.FolderRootPath.METHODS:return b.FileFolderType.METHODS;case b.FolderRootPath.CLASSES:return b.FileFolderType.CLASSES;case"Mobile":return b.FileFolderType.MOBILE;default:return e}}function Gg(e){switch(e){case b.FileFolderType.WEBFORMS:return b.FileFolderType.WEBFORM;case b.FileFolderType.CLASSES:return b.FileFolderType.CLASS;case b.FileFolderType.METHODS:return b.FileFolderType.METHOD;case b.FileFolderType.FOLDER:return b.FileFolderType.FOLDER;case b.FileFolderType.MOBILE:return b.FileFolderType.MOBILEFORM;default:return e}}const WP=Q("files/tryEditMethod",async({method:e},{dispatch:n})=>{const t=e.filePath.split("/"),[a]=t[1].split("."),{editor:s}=pr(e.filePath);return await n(Gc({file:{name:a,path:e.filePath,date:new Date().toISOString(),type:b.FileFolderType.CLASS,editor:s},line:e.startingLine+1})).unwrap()}),ic=Q("explorer/createModelFiles",async(e,{dispatch:n,getState:t})=>{var y;const a=t(),s=b.FolderRootPath.CLASSES,i=a.settings.server.qodly,c=lt(a.explorer,s);if(!c)return;await n(_r(s));const d=((y=t().explorer.find(_=>_.name===s))==null?void 0:y.children)||[];let p=[{content:"",name:""}];const h=_=>{switch(_){case"dataclass":return{name:e.type==="dataclass"?e.className:"DataStore",content:i?`extends DataClass
|
|
120
92
|
`:`Class extends DataClass
|
|
121
93
|
`};case"collection":return{name:e.type==="dataclass"?e.collectionName:"DataStore",content:i?`extends EntitySelection
|
|
122
94
|
`:`Class extends EntitySelection
|
|
@@ -124,34 +96,34 @@ Check the top-level render call using <`+I+">.")}return O}}function en(g,O){{if(
|
|
|
124
96
|
`:`Class extends Entity
|
|
125
97
|
`};case"model":return{name:"DataStore",content:i?`extends DataStoreImplementation
|
|
126
98
|
`:`Class extends DataStoreImplementation
|
|
127
|
-
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...h("dataclass")},{...h("collection")},{...h("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...h(e.toCreate)}]:p=[{...h("model")}],p=p.filter(_=>!d.find(({name:S,ext:T})=>S===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:S})=>{await n(ua({type:E.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:S,qodly:a.settings.server.qodly}))})),await n(Ar(s))}),Ar=re("explorer/fetchFolderContent",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=Er(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Ja=re("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=Er(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function iD(e){const n=e.split(".");return n.pop(),{name:n.join("."),ext:e.split(".")[e.split(".").length-1]}}const uD=re("explorer/uploadFile",async e=>{const n=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),cD=re("explorer/uploadFile",async({file:e,path:n,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=Er(n),{name:c,ext:l}=iD(e.name);a(Qg({parent:t,child:{name:c,path:`${n}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(dc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&E.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(Ar(t.path)),{status:d.status,fileName:e.name}}catch{return a(dc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),E.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),ua=re("explorer/createNewFile",async({fileName:e,type:n,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const h=await E.setFileContent({name:tv(e,n,d),content:s||ev(n,p),path:t,asText:[E.FileFolderType.CLASS,E.FileFolderType.METHOD].includes(n)});return a.error&&(a.flags.expanded?await i(Ar(a.path)):await i(Ja(a.path))),{qodly:d,file:h,parentNode:a}}catch{return c("failed to create folder")}});function nv(e,n){const{qodly:t=!0,withExtension:a=!0}=n||{},s=E.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case E.FileFolderType.WEBFORM:i=`${E.FolderRootPath.WEBFORMS}/${e.name}`;break;case E.FileFolderType.METHOD:i=`${E.FolderRootPath.METHODS}/${e.name}`;break;case E.FileFolderType.CLASS:i=`${E.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const lD=re("explorer/createNewFileAndOpen",async(e,{dispatch:n,getState:t})=>{const a=await n(ua(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=nv(i,{withExtension:!1,qodly:s}),{editor:l}=Er(c);await n(Xa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),us=re("explorer/createNewNode",async({fileName:e,path:n,parentNode:t},{rejectWithValue:a})=>{try{return{file:await E.createFolder({verb:E.DesignerRequestVerb.CREATE_FOLDER,path:`${n}/${e}`,recursive:!0}),parentNode:t}}catch{return E.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),Xs=async(e,n={})=>{try{const t=e.path.split(".").at(-1),a=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:Oh(t)?"json":"text"}),s={editor:e.editor},i=E.getTypeFromExtension(e.path);i===E.FileFolderType.METHOD&&(s.attributes=E.parseAttributes(a.content),a.content=E.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return n.confirmed===void 0&&(n.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:n.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===E.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case E.ROLES_TAB_PATH:{const s={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:E.FileFolderType.ROLES,initialContent:s,content:s}}case E.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:E.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Xa=re("explorer/openFile",async({file:e,inactive:n,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(Lt(_)),_}if(e.path.startsWith("Debugger")){const _=d.find(S=>`Debugger/${S.threadId}`===e.path);if(_){const{source:{content:S},source:T}=_.currentStackFrame,C={name:e.name,type:E.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:S,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:S,flags:{confirmed:!0},extra:{source:T,editor:e.editor}};return i(Lt(C)),C}}let h=null;try{h=await Xs(e,a)}catch(_){const{data:S}=_;if(S.__ERROR.find(T=>[E.ERROR_CODES.JSON_MALFORMED,E.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(fr({title:"Corrupt file",type:Gt.CONFIRM,color:Dr.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const C=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:F,date:D,ext:W}=C;h={date:D,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(W),confirmed:!0},extra:{editor:E.EDITOR.Code},name:e.name,path:e.path,type:E.getTypeFromExtension(e.path),initialContent:F,content:F}}}}return h&&(e.path===E.ROLES_TAB_PATH&&!l.flags.touched?i(Vc({content:h.content,date:h.date})):e.path===E.SETTINGS_TAB_PATH&&i(Js({path:"project",value:h.content})),i((n?Iv:Lt)({...h,isNew:t})),h)}),Xc=re("explorer/openFileAtLine",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Lt(c)),c}const i=await Xs(e);return t(Lt(i)),i}),av=re("explorer/injectContentAtLine",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const s=n();e.path.split("/").pop();const c=vt(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await Xs({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:E.FileFolderType.CLASS,editor:c.config.editor});return await t(Lt(l)),{...e,path:`${c.path}.${c.ext}`}}),ov=re("explorer/openFileAtSelection",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Lt(c)),c}const i=await Xs(e);return t(Lt(i)),i}),hc=re("explorer/deleteFile",async e=>{const{name:n,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await E.dropFile({root:E.FolderRootType.ROOT,type:rv(t),verb:E.DesignerRequestVerb.DROP,name:n,path:i.join("/")}),node:e}}),fD=re("explorer/deleteFolder",async e=>{const{path:n,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await E.removeItem({force:!0,path:n,verb:E.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),dD=re("explorer/removeFileNode",async(e,{getState:n,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await E.removeItem({verb:E.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(kn())},$s),e.ext){const{tabs:s}=n().root,i=s.findIndex(c=>c.path===a);i>=0&&t(ol(i))}return{deleted:!0,node:e}}),ca=re("explorer/renameFile",async({file:e,newname:n})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${n}.${e.ext}`;return await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:n,path:i}}}const t=e.path.split("/");return t.pop(),await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${n}`}),{old:e,new:{...e,name:n,path:`${t.join("/")}/${n}`}}}),Za=re("explorer/relocateNode",async({draggedNode:e,newLocation:n},{rejectWithValue:t})=>{try{await E.moveItem({verb:E.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${n.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),cs=re("explorer/duplicateNode",async({node:e,duplicateName:n},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:m})=>m===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),h=await E.setFileContent({name:`${n}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...h,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),pD=re("explorer/executeMethod",async({methodName:e,params:n=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:n,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?E.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):E.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return E.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),hD=re("files/fetchFiles",async()=>E.getFolders(E.FolderRootType.WEBFORMS,E.FolderRootType.METHODS,E.FolderRootType.CLASSES)),Zc=re("tabs/renameDatasource",async(e,{dispatch:n,getState:t})=>{var S,T;const a=!!e.datasourceNamespace,{confirmed:s}=await n(fr({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:Gt.CONFIRM,color:Dr.WARNING,views:{toggles:{},tips:a?[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated on opened web forms only"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]:[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]}})).unwrap();if(!s)return null;const{autoUpdateReferences:i,datasourceId:c,datasourceNamespace:l,value:d,path:p}=e,h=t();let m=[];if(a){const C=h.sharedDatasources.sources[l]||[];m.push(...C)}else if(p){const C=h.root.tabs.find(E.by("path",p));if(m=(T=(S=C==null?void 0:C.content)==null?void 0:S.metadata)==null?void 0:T.datasources,!m)return null}const _=new RegExp(`^${c}\\b`,"");if(m=m.map(C=>{const F=(E.isObjectDatasource(C)||!E.isSimpleDatasource(C))&&C.from&&_.test(C.from),D=C.events?C.events.map(W=>{var $,j,A,K;switch(W==null?void 0:W.type){case"method":{const G=W;return G.params?{...G,params:G.params.map(Y=>{var ie;return{...Y,datasource:(ie=Y.datasource)==null?void 0:ie.replace(new RegExp(`^${c}`,""),d)}}),returns:($=G.returns)!=null&&$.datasource?{...G.returns,datasource:(j=G.returns.datasource)==null?void 0:j.replace(new RegExp(`^${c}`,""),d)}:G.returns}:G}case"simple-action":{const G=W;return G.datasource?{...G,datasource:{...G.datasource,name:(A=G.datasource.name)==null?void 0:A.replace(new RegExp(`^${c}`,""),d),from:(K=G.datasource.from)==null?void 0:K.replace(new RegExp(`^${c}`,""),d)}}:G}default:return W}}):C.events;return C.id===c?{...C,id:d,events:D}:F&&C.from?{...C,from:C.from.replace(new RegExp(`^${c}`,""),d),events:D}:{...C,events:D}}),i){const C=a?`${l}:${c}`:`${c}`,F=a?`${l}:${d}`:`${d}`;E.datasourcesSubject.next({path:p??"",action:E.DatasourcesActions.RENAME,old_reference:C,new_reference:F,is_shared:a})}return{path:p,namespace:l,datasources:m}}),Qc=re("tabs/edit-datasource",(e,{getState:n})=>{var i,c;const t=n();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(E.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),sv=re("tabs/fetchChanges",async(e,{getState:n})=>{const a=ba(n()).filter(s=>[E.FileFolderType.METHOD,E.FileFolderType.CLASS].includes(s.type));return E.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),gD=re("files/saveAll",async(e,{getState:n,dispatch:t})=>{const a=Mc(n());for(const s of a)t(la({tab:s}))}),el=re("files/tryCloseTab",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.findIndex(c=>c.path===e);if(s===-1)return!1;const i=a[s];if(i!=null&&i.flags.touched){const{confirmed:c}=await t(fr({title:Ms(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(ol(s)),i.path===E.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:E.ROLES_TAB_PATH,content:!0,as:"json"});t(Vc({content:l.content,date:l.date}))})(),!0}),vD=re("files/tryCloseOtherTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(fr({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Av(e))}),yD=re("files/tryCloseAllTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(fr({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Ov())}),mD=re("files/tryCloseRightTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(fr({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Rv(e))}),bD=re("files/tryCloseLeftTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(fr({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(Pv(e))}),gc=re("files/reloadTab",async(e,{dispatch:n})=>{if(e.flags.touched){const{confirmed:s}=await n(fr({title:Ms(e),message:"Changes made to the file will be lost. Continue?",type:Gt.CONFIRM,color:Dr.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=Jh(e.path),a=await E.getNodeInfo({verb:E.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===E.ROLES_TAB_PATH){const{roles:s,privileges:i}=Vs(a.content);n(Kc({roles:s,privileges:i}))}else if(e.path===E.SETTINGS_TAB_PATH){const{content:s}=a;n(Js({path:"project",value:s}))}else{const{content:s}=a;e.type===E.FileFolderType.WEBFORM?E.webformSubject.next({path:e.path,action:E.WebformActions.RELOAD,payload:s.components}):e.type===E.FileFolderType.MODEL&&ng.next({action:"reload",payload:s})}return a}),la=re("files/saveTab",async({tab:e},{dispatch:n,getState:t})=>{const{path:a,content:s}=e;if(e.type===E.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await E.getFilesInfo({path:a});if(c.files[0]){const h=new Date(e.date),m=new Date(c.files[0].date);if(h.getTime()<m.getTime()){const{confirmed:_}=await n(fr({title:Ms(e),message:"New content has been found on the server. Are you sure you want to continue?",type:Gt.CONFIRM,icon:"FdSave"})).unwrap();if(!_)return n(Cv({path:a,flags:{old:!0}})),null}}const l=await E.saveContent({verb:E.DesignerRequestVerb.SAVE_CONTENT,content:_D(e,t()),path:a});(e.type===E.FileFolderType.CLASS||e.type===E.FileFolderType.MODEL)&&setTimeout(()=>{n(kn())},$s);const d=(l.modelErrors||[]).map(h=>h.message),p=(l.permissionsErrors||[]).map(h=>h.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),_D=(e,n)=>{switch(!0){case e.path==="settings.json":case e.path===E.SETTINGS_TAB_PATH:return n.settings.project;case e.type===E.FileFolderType.ROLES:return{...e.content,...Ks(n.roles)};case e.type===E.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Yp=async e=>{if(e.type===E.FileFolderType.DATA_EXPLORER)return{name:"Data Explorer",path:e.path,flags:{},view:{panel:{isOpen:!1,type:"",current:""}},type:e.type,date:new Date().toISOString()};const n=e.path.split("/").filter(Boolean)[0],t=await E.getFile({root:n,type:e.type,verb:E.DesignerRequestVerb.GET,name:e.name}),a={};t.type===E.FileFolderType.METHOD&&(a.attributes=E.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===E.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===E.FileFolderType.MODEL?Ch(l):l}},iv=re("files/tryInjectMethod",async({type:e,dataclass:n},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=E.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!n)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=n,d=`Classes/${n}.${c}`;break;case"collection":l=`${n}Selection`,d=`Classes/${n}Selection.${c}`;break;case"entity":l=`${n}Entity`,d=`Classes/${n}Entity.${c}`;break;default:return p}const h=s.find(E.by("path",d));if(h)return a(Lt(h)),h;try{p=await Yp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:E.FileFolderType.CLASS})}catch{n?await a(pc({type:"dataclass",className:n,collectionName:`${n}Selection`,toCreate:e})):await a(pc({type:"model"}))}return p=await Yp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:E.FileFolderType.CLASS}),p.path=d,a(Lt(p)),p}),ED=re("roles/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===E.ROLES_TAB_PATH);if(s)return n(Lt(s)),s;n(Rs())});function zp(e,n){const{line:t,offset:a,type:s="saved"}=n;e.breakpoints[s].locations.push({line:t}),Ke.isNumber(a)&&(e.breakpoints[s].offset=a)}function Vp(e,n,t,a){e.breakpoints[t].locations=n,Ke.isNumber(a)&&(e.breakpoints[t].offset=a)}function Kp({filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function Jp(e,n,t){let a=!1;const s=e.map(i=>i[t]!==n[t]?i:(a=!0,{...i,...n}));return a?s:[...s,n]}function as(e){return e.map(({label:n})=>({label:n}))}const uv=lr({name:"debugger",initialState:()=>{var n,t;const{debugger:e={meta:{state:Gr.DETACHED},list:[],sessions:[],expressions:[]}}=pa();return{meta:{...e.meta,state:((n=e.meta)==null?void 0:n.state)===Gr.ATTACHED?(t=e.meta)==null?void 0:t.state:Gr.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=n.payload,p=jn(e.list,t,s,i);if(p)zp(p,d);else{if(a===E.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const h=Kp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});zp(h,d),e.list.push(h)}},removeBreakpointDecoration(e,n){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=n.payload;if(t.startsWith("Classes/")){const l=e.list.filter(d=>d.filePath===t);if(l.length>0){const d=s+i;l.forEach(p=>{const h=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(m=>m.line+h!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(m=>m.line+h!==d))})}}else{const l=jn(e.list,t,a);l&&(l.breakpoints[c].locations=l.breakpoints[c].locations.filter(d=>d.line!==s),c==="saved"&&(l.breakpoints.draft.locations=l.breakpoints.draft.locations.filter(d=>d.line!==s)))}},setBreakpointsDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:h="saved",clearDraft:m}=n.payload,_=jn(e.list,t,s);if(_)Vp(_,d,h,p),m&&h!=="draft"&&(_.breakpoints.draft.locations=[]);else{const S=Kp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Vp(S,d,h,p),e.list.push(S)}},clearBreakpoints(e,n){const{filePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearBreakpointsExcept(e,n){const{exceptedFilePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath!==t?{draft:!a||a==="draft"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearAllBreakpoints(e){e.list=e.list.map(n=>({...n,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}))},setActiveLine(e,n){const{threadId:t,line:a,highlight:s}=n.payload,i=ft(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,n){const{threadId:t,label:a,save:s}=n.payload,i=ft(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=as(i.expressions)))},removeExpression(e,n){const{threadId:t,index:a,save:s}=n.payload,i=ft(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=as(i.expressions)))},removeAllExpressions(e,n){const{threadId:t,save:a}=n.payload,s=ft(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,n){const{threadId:t,index:a,replacement:s,save:i}=n.payload,c=ft(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=as(c.expressions)))},setExpression(e,n){const{threadId:t,expression:a}=n.payload,s=ft(e.sessions,t);if(s){const i=a.index>=0?a.index:s.expressions.length>0?s.expressions.length-1:0,c=s.expressions[i];c?(c.result=a.result,c.nakedResult=a.nakedResult,c.variablesReference=a.variablesReference||0,c.presentationHint=a.presentationHint):s.expressions.push(a)}},updateExpressionAt(e,n){const{threadId:t,index:a,value:s}=n.payload,i=ft(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,n){const{expressions:t}=n.payload;e.expressions=as(t)},addSession(e,n){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=n.payload,c=ft(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Pc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,n){const{threadId:t,changes:a}=n.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,n){const{threadId:t}=n.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,n){const t=n.payload;e.sessions.splice(t,1)},setSessions(e,n){const t=n.payload;e.sessions=t},setCallChainVariables(e,n){const{threadId:t,frameId:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:Jp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,n){const{threadId:t,variablesReference:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:Jp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,n){const{threadId:t,content:a}=n.payload,s=ft(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,n){if(n.payload.state===Gr.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ms.SOCKET_ERROR}}=n.payload;if((t||e.meta.state!==Gr.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ms.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Gr.DETACHED)return}e.meta.state=n.payload.state}},extraReducers:e=>{e.addCase(lv.fulfilled,n=>{n.sessions=[]})}}),{addBreakpointDecoration:SD,removeBreakpointDecoration:wD,setBreakpointsDecoration:TD,clearBreakpoints:xD,clearBreakpointsExcept:CD,clearAllBreakpoints:OD,setActiveLine:RD,addExpression:AD,renameExpression:PD,removeExpression:DD,removeAllExpressions:ID,setExpression:FD,updateExpressionAt:$D,saveExpressions:MD,addSession:ND,updateSession:LD,removeSession:jD,removeSessionByIndex:kD,setSessions:cv,setCallChainVariables:BD,setExpressionVariables:WD,setSourceContent:UD,setDebuggerMeta:HD}=uv.actions,lv=re("files/wipeDebuggerSessions",async(e,{getState:n,dispatch:t})=>{const{sessions:a}=n().debugger;for(const{threadId:s}of a){const i=Pc(s);t(el(i))}}),fv=re("files/removeDebuggerSessionsNotIn",async(e,{getState:n,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=n().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(cv(c)),{staleThreadIds:i}}),tl=re("models/fetch",async()=>{try{return(await E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify({verb:E.DesignerRequestVerb.GET_INFO,path:E.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),As=re("models/save",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=n().root,i=s.find(c=>c.path===E.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await E.http(E.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(kn())},$s),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),GD=re("models/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return n(Lt(s)),s;n(tl())}),qD=re("model/rename-dataclass",async(e,{getState:n,dispatch:t})=>{var m,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=n();const l=c.explorer.find(S=>S.path===E.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(Ar(l.path)),c=n();const d={class:{found:!1,newNameTaken:!1,file:null,filename_update:i},entity:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Entity`},selection:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Selection`}};(_=(m=c.explorer.find(S=>S.path===E.FolderRootPath.CLASSES))==null?void 0:m.children)==null||_.forEach(S=>{S.name===d.class.filename_update&&(d.class.newNameTaken=!0),S.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),S.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),S.name===a?(d.class.found=!0,d.class.file=S):S.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=S):S.name===s&&(d.selection.found=!0,d.selection.file=S)});const p=Object.entries(d).reduce((S,T)=>{const[C,F]=T;return F.found?F.newNameTaken?[...S,{type:"error",message:`Cannot rename ${C} file to ${F.filename_update} because it already exists. The existing file will be used instead!`}]:S:[...S,{type:"warning",message:`${a} ${C} file was not found`}]},[]);p.length>0&&t(fr({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const h=Object.values(d).filter(S=>S.found&&S.file&&!S.newNameTaken);await Promise.all(h.map(async S=>await t(ca({file:S.file,newname:S.filename_update})))),h.length>0&&t(Ar("Classes"))}),ao={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},YD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[ao.DATACLASS_DELETE]:!0,[ao.DATACLASS_DRAGGABLE]:!0}},dv=lr({name:"Models",initialState:YD,reducers:{setModelFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(tl.fulfilled,(n,t)=>{var c;const a={},s={},i=t.payload.extraProperties||{};(c=t.payload.dataClasses)==null||c.forEach(l=>{a[l.name]=l,s[l.collectionName]=l}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i}),e.addCase(As.pending,()=>{}).addCase(As.fulfilled,(n,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i})}}),{setModelFlag:zD}=dv.actions;var pv=(e=>(e.UUID="uuid",e.STRING="string",e.TEXT="text",e.DATE="date",e.TIME="duration",e.BOOLEAN="bool",e.BYTE="byte",e.INTEGER="word",e.LONG="long",e.LONG64="long64",e.FLOAT="number",e.BLOB="blob",e.IMAGE="image",e.OBJECT="object",e))(pv||{}),Zs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Zs||{});const VD=e=>["string","uuid","number","long"].includes(e.type),KD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],JD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],XD=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],ZD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],QD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],eI=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],tI=(e,n)=>({toJSON:!0,extraProperties:n,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function rI(e,n,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const hv=e=>e.kind===Zs.RELATEDENTITY,gv=e=>e.kind===Zs.RELATEDENTITIES,nI=e=>gv(e)||hv(e),aI=()=>Xr(e=>e.model.draft.dataClasses),oI=()=>Xr(e=>e.model.draft.collections),sI=e=>Xr(n=>n.model.draft.dataClasses[e]),iI=(e,n)=>Xr(t=>t.model.draft.dataClasses[e].attributes.find(E.by("name",n))),uI=()=>Xr(e=>e.model.draft.extraProperties),cI=()=>{const e=Xr(s=>s.model.flags),n=s=>s in e?e[s]:void 0,t=n(ao.DATACLASS_DELETE),a=n(ao.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},lI=dv.reducer;function Bu(e,n){const t=e.tabs.find(({path:a})=>a===E.SETTINGS_TAB_PATH);t&&(t.flags.touched=n)}const vv={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},yv={[vv.SIDEBAR_SECTION_RESIZABLE]:!0},mv=lr({name:"webforms",initialState:()=>{const{webforms:e}=pa();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Rc.webforms.datasources,...e==null?void 0:e.datasources},flags:yv}},reducers:{toggleInspector:(e,n)=>{const{type:t}=n.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,n)=>{const{type:t,data:a}=n.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,n)=>{e.components.push(n.payload)},editComponent:(e,n)=>{const{id:t,changes:a}=n.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,n)=>{const{payload:t}=n,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,n)=>{e.templates.selectedGroup=n.payload.selectedGroup},setTemplatesData:(e,n)=>{e.templates.data=n.payload},setTemplateData:(e,n)=>{const{group:t,components:a}=n.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,n)=>{e.datasources.theme=n.payload},setWebformsFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(Tv.fulfilled,(n,t)=>{n.components=t.payload})}}),{toggleInspector:fI,inspect:dI,addComponent:bv,editComponent:_v,removeComponent:Ev,setSelectedGroup:pI,setTemplatesData:Sv,setTemplateData:wv,setDatasourcesTheme:hI,setWebformsFlag:gI}=mv.actions,vI=mv.reducer,rl=Ke.curry((e,n)=>{var s,i;const t={...n.sharedDatasources.sources},a=(i=((s=n.root.tabs.find(E.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),Ke.cloneDeep(t)}),yI=re("webforms/fetchTemplates",async(e,{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!Ke.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return n(Sv(c)),c}catch{return[]}}),mI=re("webforms/fetchTemplate",async({name:e},{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!Ke.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return n(wv({group:e,components:c})),c}catch{return[]}}),Tv=re("webforms/fetchCraftedComponents",async(e,{rejectWithValue:n})=>{try{return(await E.getNodeInfo({path:"WebForms/crafted_components.json",verb:E.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return n("Error while loading the crafted components")}}),bI=re("webforms/addCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(bv(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),_I=re("webforms/editCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(_v(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),EI=re("webforms/removeCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(Ev(e));const{webforms:{components:s}}=a();E.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),nl=re("datasources/add-datasource",async(e,{getState:n,rejectWithValue:t})=>{var a,s;try{const i=n(),c=e.datasource,l=!!c.namespace,d=[];if(l){const p={...i.sharedDatasources.sources,[c.namespace]:[...i.sharedDatasources.sources[c.namespace],c]};d.push(...p[c.namespace]),await E.setSharedSources(p)}else(((s=(a=i.root.tabs.find(E.by("path",e.path)).content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]).push(c);return{list:d,path:e.path,namespace:e.datasource.namespace}}catch{console.error("Error while adding the datasource",e.datasource.id),t("Error while adding the datasource")}}),al=re("datasources/edit-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=n(),c=!!e.namespace,l=rl(s,i);let d=Ke.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await E.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),SI=e=>e.type===fa.fulfilled.type,fa=re("datasources/rename-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,c=rl(e.path,a),l=Ke.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var m;const h=(E.isObjectDatasource(p)||!E.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((m=p.events)==null||m.forEach(_=>{var S,T,C,F,D;switch(_.type){case"method":{const W=_;W.params.forEach($=>{$.datasource&&Object.assign($,{datasource:$.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),W.returns&&Object.assign(W.returns,{datasource:(T=(S=W.returns)==null?void 0:S.datasource)==null?void 0:T.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const W=_;W.datasource&&Object.assign(W.datasource,{name:(C=W.datasource.name)==null?void 0:C.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(F=W.datasource.from)==null?void 0:F.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(D=W.datasource.target)==null?void 0:D.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:h&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=E.getDatasourceId({id:e.id,namespace:e.namespace}),h=E.getDatasourceId({id:e.new_name,namespace:e.namespace});E.datasourcesSubject.next({path:e.path??"",action:E.DatasourcesActions.RENAME,old_reference:p,new_reference:h,is_shared:s})}return s&&await E.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while renaming datasource ${e.namespace}:${e.id}`)}}),Qa=re("datasources/delete-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,l=rl(e.path,a)[i].filter(E.outById(e.id));return s&&await E.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),oo=lr({name:"root",initialState:()=>{const e=pa();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,n){const{path:t,...a}=n.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const n={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:E.SETTINGS_TAB_PATH,type:E.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===n.path);if(t||(e.tabs.push(n),t=e.tabs[e.tabs.length-1]),e.activeTab!==n.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=n.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,n){var i;const{payload:{path:t,datasourceDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},addWebformState(e,n){var i;const{payload:{path:t,stateDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[kc],(i=s.content.metadata.states)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.states=[...s.content.metadata.states,a],s.flags={...s.flags,touched:!0,confirmed:!0}))},removeWebformState(e,n){const{path:t,id:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:Rh(s.content,a)}:s)},editWebformState(e,n){const{path:t,state:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,states:s.content.metadata.states.map(i=>i.id===a.id?a:i)}}}:s)},removeDataSource(e,n){const{path:t,datasourceID:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,n){const{payload:{path:t,datasourceArr:a}}=n;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,n){e.tabs=n.payload},closeTab(e,n){const t=n.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,n){e.tabs=e.tabs.filter(t=>t.path===n.payload),e.activeTab=n.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,n){e.tabs.splice(n.payload+1),e.activeTab=e.tabs[n.payload].path},closeLeftTabs(e,n){e.tabs.splice(0,n.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const n=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(n==null?void 0:n.path)||""},confirmTab(e,n){const t=e.tabs.find(({path:a})=>a===n.payload);t&&(t.flags.confirmed||oo.caseReducers.setTabFlags(e,{type:n.type,payload:{path:n.payload,flags:{confirmed:!0}}}))},selectTab(e,n){const t=e.tabs.find(({path:s})=>s===n.payload);if(!t||e.activeTab===n.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=n.payload},openTabUnselected(e,n){const t=n.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,n){const t=[E.FileFolderType.DEBUGGER],{isNew:a,...s}=n.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if((t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,n){const{path:t,content:a,contentPath:s}=n.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(Ke.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(Ke.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?Ke.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c,confirmed:l}}})},setTabFlags(e,n){const{path:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,n){const{tabs:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,n){const{path:t,extra:a,flags:s}=n.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,n){const{path:t,styles:a=[]}=n.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,n){return e.tabs=e.tabs.map(t=>t.path===n.payload.path?n.payload:t),e}},extraReducers:e=>{e.addCase(lc,(n,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=n.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&oo.caseReducers.setTabFlags(n,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(av.fulfilled,(n,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=n.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
99
|
+
`}}};e.type==="dataclass"&&!e.toCreate?p=[{...h("dataclass")},{...h("collection")},{...h("entity")}]:e.type==="dataclass"&&e.toCreate?p=[{...h(e.toCreate)}]:p=[{...h("model")}],p=p.filter(_=>!d.find(({name:E,ext:T})=>E===_.name&&T===(i?"4qs":"4dm"))),await Promise.all(p.map(async({name:_,content:E})=>{await n(Gn({type:b.FileFolderType.CLASS,path:s,fileName:_,parentNode:c,content:E,qodly:a.settings.server.qodly}))})),await n(_r(s))}),_r=Q("explorer/fetchFolderContent",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=pr(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}}),Aa=Q("explorer/fetchFolderContentWithoutExpanding",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e})).map(a=>{const s=`${e}/${a.name}`,{editor:i,supportedEditors:c}=pr(`${s}${a.ext?`.${a.ext.toLowerCase()}`:""}`);return{name:a.name,size:a.size,type:a.type,date:`${a.date}`,flags:{},error:null,path:s,ext:a.ext,config:a.type==="folder"?{}:{editor:i,supportedEditors:c}}})}catch{return n("Failed loading file content please Reload")}},{getPendingMeta:()=>{}});function UP(e){const n=e.split(".");return n.pop(),{name:n.join("."),ext:e.split(".")[e.split(".").length-1]}}const HP=Q("explorer/uploadFile",async e=>{const n=e.type.includes("image/")?"$rawPict=true":"$binary=true";try{const t=await fetch(`/rest/$upload?${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return{status:t.status,data:await t.json()}}catch{return{status:500,data:null}}}),GP=Q("explorer/uploadFile",async({file:e,path:n,parentNode:t},{dispatch:a})=>{const{editor:s,supportedEditors:i}=pr(n),{name:c,ext:l}=UP(e.name);a(Wg({parent:t,child:{name:c,path:`${n}/${e.name}?t=${Date.now()}`,type:e.type,error:null,flags:{loading:!0},config:{editor:s,supportedEditors:i},ext:l}}));try{const d=await fetch(`/rest/$upload?$sharedFolder=true&$filename=${e.name}&$path=${n}`,{method:"POST",headers:{"Content-Type":e.type},body:e});return d.status>=300?(a(sc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),d.status!==413&&b.toastSubject.next({message:"error uploading file",kind:"danger"})):await a(_r(t.path)),{status:d.status,fileName:e.name}}catch{return a(sc({parent:t,child:{name:c,path:`${n}/${e.name}`,type:e.type,error:{message:"error uploading file"},flags:{},config:{editor:s,supportedEditors:i},ext:l}})),b.toastSubject.next({message:"error uploading file",kind:"danger"}),{status:500,fileName:e.name}}}),Gn=Q("explorer/createNewFile",async({fileName:e,type:n,path:t,parentNode:a,content:s},{dispatch:i,rejectWithValue:c,getState:l})=>{const{server:{qodly:d},project:p}=l().settings;try{const h=await b.setFileContent({name:Hg(e,n,d),content:s||Ug(n,p),path:t,asText:[b.FileFolderType.CLASS,b.FileFolderType.METHOD].includes(n)});return a.error&&(a.flags.expanded?await i(_r(a.path)):await i(Aa(a.path))),{qodly:d,file:h,parentNode:a}}catch{return c("failed to create folder")}});function qg(e,n){const{qodly:t=!0,withExtension:a=!0}=n||{},s=b.getFileExtentionFromType(e.type,t);let i="";switch(e.type){case b.FileFolderType.WEBFORM:i=`${b.FolderRootPath.WEBFORMS}/${e.name}`;break;case b.FileFolderType.METHOD:i=`${b.FolderRootPath.METHODS}/${e.name}`;break;case b.FileFolderType.CLASS:i=`${b.FolderRootPath.CLASSES}/${e.name}`;break;default:return""}return`${i}${a?`.${s}`:""}`}const qP=Q("explorer/createNewFileAndOpen",async(e,{dispatch:n,getState:t})=>{const a=await n(Gn(e)).unwrap(),{qodly:s}=t().settings.server;if(a){const{file:i}=a,c=qg(i,{withExtension:!1,qodly:s}),{editor:l}=pr(c);await n(Pa({file:{name:e.fileName,type:i.type,path:c,editor:l,date:new Date().toISOString()}}))}}),Jo=Q("explorer/createNewNode",async({fileName:e,path:n,parentNode:t},{rejectWithValue:a})=>{try{return{file:await b.createFolder({verb:b.DesignerRequestVerb.CREATE_FOLDER,path:`${n}/${e}`,recursive:!0}),parentNode:t}}catch{return b.toastSubject.next({message:"failed to create folder",kind:"danger"}),a("failed to create folder")}}),js=async(e,n={})=>{try{const t=e.path.split(".").at(-1),a=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:vh(t)?"json":"text"}),s={editor:e.editor},i=b.getTypeFromExtension(e.path);i===b.FileFolderType.METHOD&&(s.attributes=b.parseAttributes(a.content),a.content=b.addAttributesToContent(a.content,{}));const{content:c,date:l,ext:d}=a;return n.confirmed===void 0&&(n.confirmed=!0),{date:l,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(d),confirmed:n.confirmed},extra:s,name:e.name,path:e.path,type:i,initialContent:c,content:c}}catch(t){const{data:a}=t;if(a.__ERROR.find(s=>s.errCode===b.ERROR_CODES.FILE_NOT_FOUND))switch(e.path){case b.ROLES_TAB_PATH:{const s={permissions:{allowed:[]},privileges:[],roles:[]};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:roles"}},name:"Roles & Privileges",path:e.path,type:b.FileFolderType.ROLES,initialContent:s,content:s}}case b.SETTINGS_TAB_PATH:{const s={};return{date:new Date().toISOString(),flags:{},extra:{editor:{key:"editors:settings"}},name:"Settings",path:e.path,type:b.FileFolderType.SETTINGS,initialContent:s,content:s}}}throw t}},Pa=Q("explorer/openFile",async({file:e,inactive:n,isNew:t,flags:a={}},{getState:s,dispatch:i})=>{const{root:{tabs:c},roles:l,debugger:{sessions:d}}=s(),p=c.find(({path:_})=>e.path===_);if(p){const _={...p,extra:{...p==null?void 0:p.extra,editor:e.editor},flags:{...p==null?void 0:p.flags,...a}};return i(Pt(_)),_}if(e.path.startsWith("Debugger")){const _=d.find(E=>`Debugger/${E.threadId}`===e.path);if(_){const{source:{content:E},source:T}=_.currentStackFrame,x={name:e.name,type:b.FileFolderType.DEBUGGER,date:new Date().toISOString(),path:e.path,content:E,view:{panel:{isOpen:!1,type:"",current:""}},initialContent:E,flags:{confirmed:!0},extra:{source:T,editor:e.editor}};return i(Pt(x)),x}}let h=null;try{h=await js(e,a)}catch(_){const{data:E}=_;if(E.__ERROR.find(T=>[b.ERROR_CODES.JSON_MALFORMED,b.ERROR_CODES.JSON_MALFORMED_AT_LINE].includes(T.errCode))){const{confirmed:T}=await i(ar({title:"Corrupt file",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,message:"Open in code editor ?"})).unwrap();if(T){const x=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:"text"}),{content:D,date:P,ext:j}=x;h={date:P,view:{panel:{isOpen:!1,type:"",current:""}},flags:{enabled:["WebForm","MForm"].includes(j),confirmed:!0},extra:{editor:b.EDITOR.Code},name:e.name,path:e.path,type:b.getTypeFromExtension(e.path),initialContent:D,content:D}}}}return h&&(e.path===b.ROLES_TAB_PATH&&!l.flags.touched?i(Wc({content:h.content,date:h.date})):e.path===b.SETTINGS_TAB_PATH&&i(ks({path:"project",value:h.content})),i((n?_v:Pt)({...h,isNew:t})),h)}),Gc=Q("explorer/openFileAtLine",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Pt(c)),c}const i=await js(e);return t(Pt(i)),i}),Yg=Q("explorer/injectContentAtLine",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const s=n();e.path.split("/").pop();const c=lt(s.explorer,e.path);if(!c)return a(`Error while trying to inject content in file ${e.path}`);const l=await js({name:c.name,date:c.date||new Date().toISOString(),path:`${c.path}.${c.ext}`,type:b.FileFolderType.CLASS,editor:c.config.editor});return await t(Pt(l)),{...e,path:`${c.path}.${c.ext}`}}),zg=Q("explorer/openFileAtSelection",async({file:e},{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.find(({path:c})=>e.path===c);if(s){const c={...s,extra:{...s==null?void 0:s.extra,editor:e.editor}};return t(Pt(c)),c}const i=await js(e);return t(Pt(i)),i}),uc=Q("explorer/deleteFile",async e=>{const{name:n,type:t,path:a,flags:s}=e;if(s.error)return{deleted:!0,node:e};const i=a.split("/");return i.pop(),{deleted:await b.dropFile({root:b.FolderRootType.ROOT,type:Gg(t),verb:b.DesignerRequestVerb.DROP,name:n,path:i.join("/")}),node:e}}),YP=Q("explorer/deleteFolder",async e=>{const{path:n,flags:t}=e;if(t.error)return{deleted:!0,node:e};const{deleted:a}=await b.removeItem({force:!0,path:n,verb:b.DesignerRequestVerb.REMOVE_ITEM});return{deleted:a,node:e}}),zP=Q("explorer/removeFileNode",async(e,{getState:n,dispatch:t})=>{const a=`${e.path}.${e.ext}`;if(await b.removeItem({verb:b.DesignerRequestVerb.REMOVE_ITEM,path:a,force:!0}),e.path==="Classes/DataStore"&&setTimeout(()=>{t(wn())},Ss),e.ext){const{tabs:s}=n().root,i=s.findIndex(c=>c.path===a);i>=0&&t(Zc(i))}return{deleted:!0,node:e}}),qn=Q("explorer/renameFile",async({file:e,newname:n})=>{if(e.type!=="folder"){const a=e.path.split("/");a.pop();const s=`${a.join("/")}/${e.name}.${e.ext}`,i=`${a.join("/")}/${n}.${e.ext}`;return await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:s,newpath:i}),{old:{...e,path:s},new:{...e,name:n,path:i}}}const t=e.path.split("/");return t.pop(),await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:`${t.join("/")}/${e.name}`,newpath:`${t.join("/")}/${n}`}),{old:e,new:{...e,name:n,path:`${t.join("/")}/${n}`}}}),Da=Q("explorer/relocateNode",async({draggedNode:e,newLocation:n},{rejectWithValue:t})=>{try{await b.moveItem({verb:b.DesignerRequestVerb.MOVE_ITEM,path:`${e.path}.${e.ext}`,newpath:`${n.path}/${e.name}.${e.ext}`})}catch{return t("can't move item")}}),Xo=Q("explorer/duplicateNode",async({node:e,duplicateName:n},{rejectWithValue:t,fulfillWithValue:a,getState:s})=>{const i=e.path.split("/");i.pop();try{const{tabs:c}=s().root,l=c.find(({path:y})=>y===`${e.path}${e.ext?`.${e.ext}`:""}`),d=["4dm","4qm","4qs"].includes(e.ext),{content:p}=l||await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:`${e.path}.${e.ext}`,content:!0,as:d?"text":"json"}),h=await b.setFileContent({name:`${n}.${e.ext}`,content:p,path:i.join("/"),asText:d});return a({node:{...h,path:i.join("/")}})}catch{return t("failed to duplicate file")}}),VP=Q("explorer/executeMethod",async({methodName:e,params:n=[],resultingDataSource:t={},namespace:a=""},{rejectWithValue:s})=>{var i,c;try{const d=await window.Method4D.buildMethod({methodName:e,parameters:n,resultingDataSource:t},{namespace:a},null).callServerSide({id:"",serverSideRef:""},"onclick",{});return d!=null&&d.__NOTIFICATION?b.toastSubject.next({message:`${((i=d.__NOTIFICATION)==null?void 0:i.message)||""}`,kind:`${((c=d.__NOTIFICATION)==null?void 0:c.type)||"info"}`}):b.toastSubject.next({message:"Method executed Successfully",kind:"message"}),d}catch(l){return b.toastSubject.next({message:l.message||`Error executing the method "**${e}**"`,kind:"danger",markdown:!0}),s("can't execute method")}}),KP=Q("files/fetchFiles",async()=>b.getFolders(b.FolderRootType.WEBFORMS,b.FolderRootType.METHODS,b.FolderRootType.CLASSES)),qc=Q("tabs/renameDatasource",async(e,{dispatch:n,getState:t})=>{var E,T;const a=!!e.datasourceNamespace,{confirmed:s}=await n(ar({message:"Are you sure you want to rename the datasource?",title:"Rename Datasource",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,views:{toggles:{},tips:a?[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated on opened web forms only"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]:[{type:"warning",message:"The datasource property of components bound with this datasource will also be updated"},{type:"warning",message:"The origin of some other datasources might be also renamed (if this datasource is the origin of other datasources)"}]}})).unwrap();if(!s)return null;const{autoUpdateReferences:i,datasourceId:c,datasourceNamespace:l,value:d,path:p}=e,h=t();let y=[];if(a){const x=h.sharedDatasources.sources[l]||[];y.push(...x)}else if(p){const x=h.root.tabs.find(b.by("path",p));if(y=(T=(E=x==null?void 0:x.content)==null?void 0:E.metadata)==null?void 0:T.datasources,!y)return null}const _=new RegExp(`^${c}\\b`,"");if(y=y.map(x=>{const D=(b.isObjectDatasource(x)||!b.isSimpleDatasource(x))&&x.from&&_.test(x.from),P=x.events?x.events.map(j=>{var M,k,O,z;switch(j==null?void 0:j.type){case"method":{const H=j;return H.params?{...H,params:H.params.map(Y=>{var te;return{...Y,datasource:(te=Y.datasource)==null?void 0:te.replace(new RegExp(`^${c}`,""),d)}}),returns:(M=H.returns)!=null&&M.datasource?{...H.returns,datasource:(k=H.returns.datasource)==null?void 0:k.replace(new RegExp(`^${c}`,""),d)}:H.returns}:H}case"simple-action":{const H=j;return H.datasource?{...H,datasource:{...H.datasource,name:(O=H.datasource.name)==null?void 0:O.replace(new RegExp(`^${c}`,""),d),from:(z=H.datasource.from)==null?void 0:z.replace(new RegExp(`^${c}`,""),d)}}:H}default:return j}}):x.events;return x.id===c?{...x,id:d,events:P}:D&&x.from?{...x,from:x.from.replace(new RegExp(`^${c}`,""),d),events:P}:{...x,events:P}}),i){const x=a?`${l}:${c}`:`${c}`,D=a?`${l}:${d}`:`${d}`;b.datasourcesSubject.next({path:p??"",action:b.DatasourcesActions.RENAME,old_reference:x,new_reference:D,is_shared:a})}return{path:p,namespace:l,datasources:y}}),Yc=Q("tabs/edit-datasource",(e,{getState:n})=>{var i,c;const t=n();let a=[];if(e.namespace)a=t.sharedDatasources.sources[e.namespace];else{const l=t.root.tabs.find(b.by("path",e.path));l&&(a=((c=(i=l.content)==null?void 0:i.metadata)==null?void 0:c.datasources)||[])}return a.map(l=>l.id===e.datasourceId?Object.assign({},l,{[e.propertyKey]:e.value}):l)}),Vg=Q("tabs/fetchChanges",async(e,{getState:n})=>{const a=ta(n()).filter(s=>[b.FileFolderType.METHOD,b.FileFolderType.CLASS].includes(s.type));return b.getFilesInfo(...a.map(s=>{const[i]=s.path.split("/").filter(Boolean);return{name:s.name,type:s.type,root:i,path:"."}}))}),JP=Q("files/saveAll",async(e,{getState:n,dispatch:t})=>{const a=Ac(n());for(const s of a)t(Yn({tab:s}))}),zc=Q("files/tryCloseTab",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root,s=a.findIndex(c=>c.path===e);if(s===-1)return!1;const i=a[s];if(i!=null&&i.flags.touched){const{confirmed:c}=await t(ar({title:ws(i),message:"Your unsaved changes will be lost. Proceed anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!c)return!1}return t(Zc(s)),i.path===b.ROLES_TAB_PATH&&i.flags.touched&&(async()=>{const l=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:b.ROLES_TAB_PATH,content:!0,as:"json"});t(Wc({content:l.content,date:l.date}))})(),!0}),XP=Q("files/tryCloseOtherTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.path!==e&&i.flags.touched===!0)){const{confirmed:i}=await t(ar({title:"Closing other tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(mv(e))}),ZP=Q("files/tryCloseAllTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;if(a.some(i=>i.flags.touched===!0)){const{confirmed:i}=await t(ar({title:"Closing all tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(gv())}),QP=Q("files/tryCloseRightTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=a.length-1;i>e;i-=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(ar({title:"Closing right tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(vv(e))}),eD=Q("files/tryCloseLeftTabs",async(e,{getState:n,dispatch:t})=>{const{tabs:a}=n().root;let s=!1;for(let i=0;i<e;i+=1)if(a[i].flags.touched){s=!0;break}if(s){const{confirmed:i}=await t(ar({title:"Closing left tabs",message:"Your changes will be lost if you do not save them. Close anyway?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!i)return}t(yv(e))}),cc=Q("files/reloadTab",async(e,{dispatch:n})=>{if(e.flags.touched){const{confirmed:s}=await n(ar({title:ws(e),message:"Changes made to the file will be lost. Continue?",type:b.ModalType.CONFIRM,color:b.ModalColor.WARNING,icon:"FdWarningDanger"})).unwrap();if(!s)return}const t=jh(e.path),a=await b.getNodeInfo({verb:b.DesignerRequestVerb.GET_INFO,path:e.path,content:!0,as:t});if(e.path===b.ROLES_TAB_PATH){const{roles:s,privileges:i}=Ls(a.content);n(Uc({roles:s,privileges:i}))}else if(e.path===b.SETTINGS_TAB_PATH){const{content:s}=a;n(ks({path:"project",value:s}))}else{const{content:s}=a;e.type===b.FileFolderType.WEBFORM?b.webformSubject.next({path:e.path,action:b.WebformActions.RELOAD,payload:s.components}):e.type===b.FileFolderType.MODEL&&Yh.next({action:"reload",payload:s})}return a}),Yn=Q("files/saveTab",async({tab:e},{dispatch:n,getState:t})=>{const{path:a,content:s}=e;if(e.type===b.FileFolderType.DEBUGGER)return{...e,errors:[]};a.split("/").pop();const c=await b.getFilesInfo({path:a});if(c.files[0]){const h=new Date(e.date),y=new Date(c.files[0].date);if(h.getTime()<y.getTime()){const{confirmed:_}=await n(ar({title:ws(e),message:"New content has been found on the server. Are you sure you want to continue?",type:b.ModalType.CONFIRM,icon:"FdSave"})).unwrap();if(!_)return n(hv({path:a,flags:{old:!0}})),null}}const l=await b.saveContent({verb:b.DesignerRequestVerb.SAVE_CONTENT,content:tD(e,t()),path:a});(e.type===b.FileFolderType.CLASS||e.type===b.FileFolderType.MODEL)&&setTimeout(()=>{n(wn())},Ss);const d=(l.modelErrors||[]).map(h=>h.message),p=(l.permissionsErrors||[]).map(h=>h.message);return{...e,content:s,date:l.date,initialContent:s,errors:d.length>0||p.length>0?[{title:"Model errors",messages:d},{title:"Permissions errors",messages:p}]:[]}}),tD=(e,n)=>{switch(!0){case e.path==="settings.json":case e.path===b.SETTINGS_TAB_PATH:return n.settings.project;case e.type===b.FileFolderType.ROLES:return{...e.content,...Ns(n.roles)};case e.type===b.FileFolderType.MODEL:return e.content||{toJSON:!0,dataClasses:[],extraProperties:{}};default:return e.content}},Mp=async e=>{if(e.type===b.FileFolderType.DATA_EXPLORER)return{name:"Data Explorer",path:e.path,flags:{},view:{panel:{isOpen:!1,type:"",current:""}},type:e.type,date:new Date().toISOString()};const n=e.path.split("/").filter(Boolean)[0],t=await b.getFile({root:n,type:e.type,verb:b.DesignerRequestVerb.GET,name:e.name}),a={};t.type===b.FileFolderType.METHOD&&(a.attributes=b.parseAttributes(t.content));const{date:s,name:i,type:c,content:l}=t;return{date:s,flags:{enabled:e.type===b.FileFolderType.WEBFORM},extra:a,view:{panel:{isOpen:!1,type:"",current:""}},name:i,path:e.path,type:c,initialContent:l,content:c===b.FileFolderType.MODEL?gh(l):l}},Kg=Q("files/tryInjectMethod",async({type:e,dataclass:n},{getState:t,dispatch:a})=>{const{root:{tabs:s},settings:{server:{qodly:i}}}=t(),c=b.getFileExtentionFromType("class",i);let l="",d="",p=null;if(!n)l="DataStore",d=`Classes/DataStore.${c}`;else switch(e){case"dataclass":l=n,d=`Classes/${n}.${c}`;break;case"collection":l=`${n}Selection`,d=`Classes/${n}Selection.${c}`;break;case"entity":l=`${n}Entity`,d=`Classes/${n}Entity.${c}`;break;default:return p}const h=s.find(b.by("path",d));if(h)return a(Pt(h)),h;try{p=await Mp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:b.FileFolderType.CLASS})}catch{n?await a(ic({type:"dataclass",className:n,collectionName:`${n}Selection`,toCreate:e})):await a(ic({type:"model"}))}return p=await Mp({name:l,date:new Date().toISOString(),path:`class/${l}.${c}`,type:b.FileFolderType.CLASS}),p.path=d,a(Pt(p)),p}),rD=Q("roles/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path===b.ROLES_TAB_PATH);if(s)return n(Pt(s)),s;n(vs())});function Lp(e,n){const{line:t,offset:a,type:s="saved"}=n;e.breakpoints[s].locations.push({line:t}),He.isNumber(a)&&(e.breakpoints[s].offset=a)}function Np(e,n,t,a){e.breakpoints[t].locations=n,He.isNumber(a)&&(e.breakpoints[t].offset=a)}function kp({filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i}){return{filePath:e,fileType:n,methodName:t,className:a,ext:s,source:i,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}}function jp(e,n,t){let a=!1;const s=e.map(i=>i[t]!==n[t]?i:(a=!0,{...i,...n}));return a?s:[...s,n]}function Yo(e){return e.map(({label:n})=>({label:n}))}const Jg=nr({name:"debugger",initialState:()=>{var n,t;const{debugger:e={meta:{state:Ir.DETACHED},list:[],sessions:[],expressions:[]}}=Kn();return{meta:{...e.meta,state:((n=e.meta)==null?void 0:n.state)===Ir.ATTACHED?(t=e.meta)==null?void 0:t.state:Ir.DETACHED},list:e.list||[],sessions:e.sessions||[],expressions:e.expressions||[]}},reducers:{addBreakpointDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoint:d}=n.payload,p=Sn(e.list,t,s,i);if(p)Lp(p,d);else{if(a===b.FileFolderType.CLASS&&d.offset===void 0)throw new Error(`Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`);const h=kp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Lp(h,d),e.list.push(h)}},removeBreakpointDecoration(e,n){const{filePath:t,methodName:a,line:s,offset:i=0,type:c="saved"}=n.payload;if(t.startsWith("Classes/")){const l=e.list.filter(d=>d.filePath===t);if(l.length>0){const d=s+i;l.forEach(p=>{const h=p.breakpoints[c].offset||0;p.breakpoints[c].locations=p.breakpoints[c].locations.filter(y=>y.line+h!==d),c==="saved"&&(p.breakpoints.draft.locations=p.breakpoints.draft.locations.filter(y=>y.line+h!==d))})}}else{const l=Sn(e.list,t,a);l&&(l.breakpoints[c].locations=l.breakpoints[c].locations.filter(d=>d.line!==s),c==="saved"&&(l.breakpoints.draft.locations=l.breakpoints.draft.locations.filter(d=>d.line!==s)))}},setBreakpointsDecoration(e,n){const{filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l,breakpoints:d,offset:p,type:h="saved",clearDraft:y}=n.payload,_=Sn(e.list,t,s);if(_)Np(_,d,h,p),y&&h!=="draft"&&(_.breakpoints.draft.locations=[]);else{const E=kp({filePath:t,fileType:a,methodName:s,className:i,ext:c,source:l});Np(E,d,h,p),e.list.push(E)}},clearBreakpoints(e,n){const{filePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath===t?{draft:!a||a==="draft"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearBreakpointsExcept(e,n){const{exceptedFilePath:t,type:a="saved"}=n.payload;e.list=e.list.map(s=>({...s,breakpoints:s.filePath!==t?{draft:!a||a==="draft"||a==="any"?{locations:[],offset:0}:s.breakpoints.draft,saved:!a||a==="saved"||a==="any"?{locations:[],offset:0}:s.breakpoints.saved}:s.breakpoints}))},clearAllBreakpoints(e){e.list=e.list.map(n=>({...n,breakpoints:{draft:{locations:[],offset:0},saved:{locations:[],offset:0}}}))},setActiveLine(e,n){const{threadId:t,line:a,highlight:s}=n.payload,i=ot(e.sessions,t);i&&(i.activeLine=a,s&&(i.highlightedLines={start:a,end:a}))},addExpression(e,n){const{threadId:t,label:a,save:s}=n.payload,i=ot(e.sessions,t);i&&i.stopped&&(i.expressions=[...i.expressions||[],{label:a}],s&&(e.expressions=Yo(i.expressions)))},removeExpression(e,n){const{threadId:t,index:a,save:s}=n.payload,i=ot(e.sessions,t);i&&(i.expressions=i.expressions.filter((c,l)=>l!==a),s&&(e.expressions=Yo(i.expressions)))},removeAllExpressions(e,n){const{threadId:t,save:a}=n.payload,s=ot(e.sessions,t);s&&(s.expressions=[],a&&(e.expressions=[]))},renameExpression(e,n){const{threadId:t,index:a,replacement:s,save:i}=n.payload,c=ot(e.sessions,t);c&&c.expressions[a]&&(c.expressions[a].label=s,i&&(e.expressions=Yo(c.expressions)))},setExpression(e,n){const{threadId:t,expression:a}=n.payload,s=ot(e.sessions,t);if(s){const i=a.index>=0?a.index:s.expressions.length>0?s.expressions.length-1:0,c=s.expressions[i];c?(c.result=a.result,c.nakedResult=a.nakedResult,c.variablesReference=a.variablesReference||0,c.presentationHint=a.presentationHint):s.expressions.push(a)}},updateExpressionAt(e,n){const{threadId:t,index:a,value:s}=n.payload,i=ot(e.sessions,t);if(i){const c=i.expressions[a];c&&(c.result=`"${s}"`,c.nakedResult=s)}},saveExpressions(e,n){const{expressions:t}=n.payload;e.expressions=Yo(t)},addSession(e,n){const{threadId:t,channelId:a,stackFrames:s,exceptions:i=[]}=n.payload,c=ot(e.sessions,t),l=s[0],{expressions:d=[]}=e;if(c)c.expressions=d;else{const p=Tc(t);e.sessions.push({tabPath:p,threadId:t,channelId:a,stackFrames:s,currentStackFrame:l,exceptions:i,expressions:d,variables:{callchain:[],expressions:[]},highlightedLines:null,activeLine:null,stopped:!0})}},updateSession(e,n){const{threadId:t,changes:a}=n.payload;e.sessions=e.sessions.map(s=>s.threadId===t?{...s,...a}:s)},removeSession(e,n){const{threadId:t}=n.payload;e.sessions=e.sessions.filter(a=>a.threadId!==t)},removeSessionByIndex(e,n){const t=n.payload;e.sessions.splice(t,1)},setSessions(e,n){const t=n.payload;e.sessions=t},setCallChainVariables(e,n){const{threadId:t,frameId:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,callchain:jp((c=i.variables)==null?void 0:c.callchain,{frameId:a,items:s},"frameId")}}:i})},setExpressionVariables(e,n){const{threadId:t,variablesReference:a,variables:s}=n.payload;e.sessions=e.sessions.map(i=>{var c;return i.threadId===t?{...i,variables:{...i.variables,expressions:jp((c=i.variables)==null?void 0:c.expressions,{variablesReference:a,items:s},"variablesReference")}}:i})},setSourceContent(e,n){const{threadId:t,content:a}=n.payload,s=ot(e.sessions,t);s&&(s.currentStackFrame.source={...s.currentStackFrame.source,content:a})},setDebuggerMeta(e,n){if(n.payload.state===Ir.ERROR){e.meta.error={...e.meta.error,time:Date.now()};const{override:t,error:a={code:null,reason:"",type:ss.SOCKET_ERROR}}=n.payload;if((t||e.meta.state!==Ir.ERROR)&&(e.meta.error={...e.meta.error,...a}),(a==null?void 0:a.type)===ss.SOCKET_CLOSURE&&!(a!=null&&a.reason)&&e.meta.state===Ir.DETACHED)return}e.meta.state=n.payload.state}},extraReducers:e=>{e.addCase(Zg.fulfilled,n=>{n.sessions=[]})}}),{addBreakpointDecoration:nD,removeBreakpointDecoration:aD,setBreakpointsDecoration:oD,clearBreakpoints:sD,clearBreakpointsExcept:iD,clearAllBreakpoints:uD,setActiveLine:cD,addExpression:lD,renameExpression:fD,removeExpression:dD,removeAllExpressions:pD,setExpression:hD,updateExpressionAt:gD,saveExpressions:vD,addSession:mD,updateSession:yD,removeSession:bD,removeSessionByIndex:_D,setSessions:Xg,setCallChainVariables:ED,setExpressionVariables:SD,setSourceContent:wD,setDebuggerMeta:TD}=Jg.actions,Zg=Q("files/wipeDebuggerSessions",async(e,{getState:n,dispatch:t})=>{const{sessions:a}=n().debugger;for(const{threadId:s}of a){const i=Tc(s);t(zc(i))}}),Qg=Q("files/removeDebuggerSessionsNotIn",async(e,{getState:n,dispatch:t})=>{const{threadIds:a}=e,{sessions:s}=n().debugger,i=[],c=s.filter(l=>{const d=a.includes(l.threadId);return d||i.push(l.threadId),d});return t(Xg(c)),{staleThreadIds:i}}),Vc=Q("models/fetch",async()=>{try{return(await b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify({verb:b.DesignerRequestVerb.GET_INFO,path:b.MODEL_TAB_PATH,as:"json",content:!0}),headers:new Headers({"Content-Type":"application/json"})})).content}catch(e){return e.message}}),ms=Q("models/save",async(e,{getState:n,dispatch:t,rejectWithValue:a})=>{const{tabs:s}=n().root,i=s.find(c=>c.path===b.MODEL_TAB_PATH);if(!i)return a("Error while saving the model");try{const c=await b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify({verb:"save",path:i.path,content:i.content}),headers:new Headers({"Content-Type":"application/json"})});return setTimeout(()=>{t(wn())},Ss),{...c,path:i.path,content:e.content||{toJSON:!0,dataClasses:[],extraProperties:{}}}}catch{return a("Error while saving the model")}}),CD=Q("models/open",async(e,{dispatch:n,getState:t})=>{const{tabs:a}=t().root,s=a.find(i=>i.path==="models/main");if(s)return n(Pt(s)),s;n(Vc())}),xD=Q("model/rename-dataclass",async(e,{getState:n,dispatch:t})=>{var y,_;const{dataclassId:a,selectionId:s,name:i}=e;let c=n();const l=c.explorer.find(E=>E.path===b.FolderRootPath.CLASSES);if(!l)throw new Error("Classes folder was not found!");await t(_r(l.path)),c=n();const d={class:{found:!1,newNameTaken:!1,file:null,filename_update:i},entity:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Entity`},selection:{found:!1,newNameTaken:!1,file:null,filename_update:`${i}Selection`}};(_=(y=c.explorer.find(E=>E.path===b.FolderRootPath.CLASSES))==null?void 0:y.children)==null||_.forEach(E=>{E.name===d.class.filename_update&&(d.class.newNameTaken=!0),E.name===d.entity.filename_update&&(d.entity.newNameTaken=!0),E.name===d.selection.filename_update&&(d.selection.newNameTaken=!0),E.name===a?(d.class.found=!0,d.class.file=E):E.name===`${a}Entity`?(d.entity.found=!0,d.entity.file=E):E.name===s&&(d.selection.found=!0,d.selection.file=E)});const p=Object.entries(d).reduce((E,T)=>{const[x,D]=T;return D.found?D.newNameTaken?[...E,{type:"error",message:`Cannot rename ${x} file to ${D.filename_update} because it already exists. The existing file will be used instead!`}]:E:[...E,{type:"warning",message:`${a} ${x} file was not found`}]},[]);p.length>0&&t(ar({message:"The following errors were encountered during dataclass rename:",views:{tips:p}}));const h=Object.values(d).filter(E=>E.found&&E.file&&!E.newNameTaken);await Promise.all(h.map(async E=>await t(qn({file:E.file,newname:E.filename_update})))),h.length>0&&t(_r("Classes"))}),Na={DATACLASS_DELETE:"dataclass.delete",DATACLASS_DRAGGABLE:"dataclass.draggable"},RD={model:{dataClasses:{},collections:{},extraProperties:{}},draft:{dataClasses:{},collections:{},extraProperties:{}},flags:{[Na.DATACLASS_DELETE]:!0,[Na.DATACLASS_DRAGGABLE]:!0}},ev=nr({name:"Models",initialState:RD,reducers:{setModelFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(Vc.fulfilled,(n,t)=>{var c;const a={},s={},i=t.payload.extraProperties||{};(c=t.payload.dataClasses)==null||c.forEach(l=>{a[l.name]=l,s[l.collectionName]=l}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i}),e.addCase(ms.pending,()=>{}).addCase(ms.fulfilled,(n,t)=>{const a={},s={},i=t.payload.content.extraProperties||{};t.payload.content.dataClasses.forEach(c=>{a[c.name]=c,s[c.collectionName]=c}),n.draft.dataClasses=a,n.draft.collections=s,n.draft.extraProperties=i,n.model.dataClasses=a,n.model.collections=s,n.model.extraProperties=i})}}),{setModelFlag:OD}=ev.actions;var tv=(e=>(e.UUID="uuid",e.STRING="string",e.TEXT="text",e.DATE="date",e.TIME="duration",e.BOOLEAN="bool",e.BYTE="byte",e.INTEGER="word",e.LONG="long",e.LONG64="long64",e.FLOAT="number",e.BLOB="blob",e.IMAGE="image",e.OBJECT="object",e))(tv||{}),Bs=(e=>(e.STORAGE="storage",e.RELATEDENTITY="relatedEntity",e.RELATEDENTITIES="relatedEntities",e.CALCULATED="calculated",e.COMPOSITION="composition",e.ALIAS="alias",e))(Bs||{});const AD=e=>["string","uuid","number","long"].includes(e.type),PD=[{label:"Storage",value:"storage"},{label:"Calculated",value:"calculated"}],DD=[{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"}],ID=[{title:"String",kind:"storage",value:"string",calculatedType:"string",calculatedKind:"storage"},{title:"Text",kind:"storage",value:"text",calculatedType:"text",calculatedKind:"storage"},{title:"UUID",kind:"storage",value:"uuid",calculatedType:"uuid",calculatedKind:"storage"},{title:"Date",kind:"storage",value:"date",calculatedType:"date",calculatedKind:"storage"},{title:"Duration",kind:"storage",value:"duration",calculatedType:"duration",calculatedKind:"storage"},{title:"Bool",kind:"storage",value:"bool",calculatedType:"bool",calculatedKind:"storage"},{title:"Byte",kind:"storage",value:"byte",calculatedType:"byte",calculatedKind:"storage"},{title:"Word",kind:"storage",value:"word",calculatedType:"word",calculatedKind:"storage"},{title:"Number",kind:"storage",value:"number",calculatedType:"number",calculatedKind:"storage"},{title:"Long",kind:"storage",value:"long",calculatedType:"long",calculatedKind:"storage"},{title:"Object",kind:"storage",value:"object",calculatedType:"object",calculatedKind:"storage"},{title:"Image",kind:"storage",value:"image",calculatedType:"image",calculatedKind:"storage"},{title:"Blob",kind:"storage",value:"blob",calculatedType:"blob",calculatedKind:"storage"}],FD=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],$D=[{label:"Expose as REST",value:"public"},{label:"Do not expose as REST",value:"publicOnServer"}],MD=[{label:"None",value:"none"},{label:"B-tree",value:"btree"},{label:"Cluster",value:"cluster"},{label:"Automatic",value:"auto"}],LD=(e,n)=>({toJSON:!0,extraProperties:n,dataClasses:e.map(t=>{var a;return{...t.data,extraProperties:{position:{x:t.position.x,y:t.position.y},panelColor:(a=t.data.extraProperties)==null?void 0:a.panelColor}}})});function ND(e,n,t){const a=e;let s=0;for(;t[`${a}${s||""}`];)s++;return`${a}${s||""}`}const rv=e=>e.kind===Bs.RELATEDENTITY,nv=e=>e.kind===Bs.RELATEDENTITIES,kD=e=>nv(e)||rv(e),jD=()=>kr(e=>e.model.draft.dataClasses),BD=()=>kr(e=>e.model.draft.collections),WD=e=>kr(n=>n.model.draft.dataClasses[e]),UD=(e,n)=>kr(t=>t.model.draft.dataClasses[e].attributes.find(b.by("name",n))),HD=()=>kr(e=>e.model.draft.extraProperties),GD=()=>{const e=kr(s=>s.model.flags),n=s=>s in e?e[s]:void 0,t=n(Na.DATACLASS_DELETE),a=n(Na.DATACLASS_DRAGGABLE);return{deleteDataclass:t,draggableDataclass:a,flags:e}},qD=ev.reducer;function Mu(e,n){const t=e.tabs.find(({path:a})=>a===b.SETTINGS_TAB_PATH);t&&(t.flags.touched=n)}const av={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"},ov={[av.SIDEBAR_SECTION_RESIZABLE]:!0},sv=nr({name:"webforms",initialState:()=>{const{webforms:e}=Kn();return{...e,templates:{data:[],selectedGroup:""},datasources:{...Sc.webforms.datasources,...e==null?void 0:e.datasources},flags:ov}},reducers:{toggleInspector:(e,n)=>{const{type:t}=n.payload;e.inspector[t].active=!e.inspector[t].active,e.inspector[t].active||(e.inspector[t].data=void 0)},inspect:(e,n)=>{const{type:t,data:a}=n.payload;e.inspector[t].active&&(e.inspector[t].data=a)},addComponent:(e,n)=>{e.components.push(n.payload)},editComponent:(e,n)=>{const{id:t,changes:a}=n.payload;e.components=e.components.map(s=>s.id===t?{...s,...a}:s)},removeComponent:(e,n)=>{const{payload:t}=n,a=e.components.findIndex(s=>s.id===t);a!==-1&&e.components.splice(a,1)},setSelectedGroup:(e,n)=>{e.templates.selectedGroup=n.payload.selectedGroup},setTemplatesData:(e,n)=>{e.templates.data=n.payload},setTemplateData:(e,n)=>{const{group:t,components:a}=n.payload,s=e.templates.data.find(i=>i.group===t);s&&(s.components=a)},setDatasourcesTheme:(e,n)=>{e.datasources.theme=n.payload},setWebformsFlag(e,n){e.flags={...e.flags,...n.payload}}},extraReducers(e){e.addCase(dv.fulfilled,(n,t)=>{n.components=t.payload})}}),{toggleInspector:YD,inspect:zD,addComponent:iv,editComponent:uv,removeComponent:cv,setSelectedGroup:VD,setTemplatesData:lv,setTemplateData:fv,setDatasourcesTheme:KD,setWebformsFlag:JD}=sv.actions,XD=sv.reducer,Kc=He.curry((e,n)=>{var s,i;const t={...n.sharedDatasources.sources},a=(i=((s=n.root.tabs.find(b.by("path",e)))==null?void 0:s.content).metadata)==null?void 0:i.datasources;return a&&(t[e]=a),He.cloneDeep(t)}),ZD=Q("webforms/fetchTemplates",async(e,{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=t().settings.session["studio.tipsBaseUrl"]||"";if(!He.isEmpty(a))return a;try{const c=await(await fetch(`${s}/build/index.json?t=${Date.now()}`)).json();return n(lv(c)),c}catch{return[]}}),QD=Q("webforms/fetchTemplate",async({name:e},{dispatch:n,getState:t})=>{const{data:a}=t().webforms.templates,s=a.find(i=>i.group===e);if(s&&!He.isEmpty(s.components))return s.components;try{const c=await(await fetch(`${s==null?void 0:s.link}?t=${Date.now()}`)).json();return n(fv({group:e,components:c})),c}catch{return[]}}),dv=Q("webforms/fetchCraftedComponents",async(e,{rejectWithValue:n})=>{try{return(await b.getNodeInfo({path:"WebForms/crafted_components.json",verb:b.DesignerRequestVerb.GET_INFO,content:!0,as:"json"})).content}catch{return n("Error while loading the crafted components")}}),eI=Q("webforms/addCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(iv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while adding the crafted component")}}),tI=Q("webforms/editCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(uv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while editing the crafted component")}}),rI=Q("webforms/removeCraftedComponent",async(e,{dispatch:n,rejectWithValue:t,getState:a})=>{try{n(cv(e));const{webforms:{components:s}}=a();b.setCraftedComponents(s)}catch{return t("Error while removing the crafted component")}}),Jc=Q("datasources/add-datasource",async(e,{getState:n,rejectWithValue:t})=>{var a,s;try{const i=n(),c=e.datasource,l=!!c.namespace,d=[];if(l){const p={...i.sharedDatasources.sources,[c.namespace]:[...i.sharedDatasources.sources[c.namespace],c]};d.push(...p[c.namespace]),await b.setSharedSources(p)}else(((s=(a=i.root.tabs.find(b.by("path",e.path)).content)==null?void 0:a.metadata)==null?void 0:s.datasources)||[]).push(c);return{list:d,path:e.path,namespace:e.datasource.namespace}}catch{console.error("Error while adding the datasource",e.datasource.id),t("Error while adding the datasource")}}),Xc=Q("datasources/edit-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const{namespace:a,path:s}=e,i=n(),c=!!e.namespace,l=Kc(s,i);let d=He.defaultTo(l[a||s],[]);return d=d.map(p=>p.id===e.id?{...p,[e.property]:e.value}:p),c&&await b.setSharedSources({...i.sharedDatasources.sources,[e.namespace]:d}),{list:d,path:e.path,namespace:e.namespace}}catch{t(`Error while editing datasource ${e.id}`)}}),nI=e=>e.type===zn.fulfilled.type,zn=Q("datasources/rename-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,c=Kc(e.path,a),l=He.defaultTo(c[i],[]),d=new RegExp(`^${e.id}\\b`,"");if(l.forEach(p=>{var y;const h=(b.isObjectDatasource(p)||!b.isSimpleDatasource(p))&&p.from&&d.test(p.from);e.updateRefs&&((y=p.events)==null||y.forEach(_=>{var E,T,x,D,P;switch(_.type){case"method":{const j=_;j.params.forEach(M=>{M.datasource&&Object.assign(M,{datasource:M.datasource.replace(new RegExp(`^${e.id}`,""),e.new_name)})}),j.returns&&Object.assign(j.returns,{datasource:(T=(E=j.returns)==null?void 0:E.datasource)==null?void 0:T.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}case"simple-action":{const j=_;j.datasource&&Object.assign(j.datasource,{name:(x=j.datasource.name)==null?void 0:x.replace(new RegExp(`^${e.id}`,""),e.new_name),from:(D=j.datasource.from)==null?void 0:D.replace(new RegExp(`^${e.id}`,""),e.new_name),target:(P=j.datasource.target)==null?void 0:P.replace(new RegExp(`^${e.id}`,""),e.new_name)});return}default:return}})),p.id===e.id?p.id=e.new_name:h&&p.from&&(p.from=p.from.replace(new RegExp(`^${e.id}`,""),e.new_name))}),e.updateRefs){const p=b.getDatasourceId({id:e.id,namespace:e.namespace}),h=b.getDatasourceId({id:e.new_name,namespace:e.namespace});b.datasourcesSubject.next({path:e.path??"",action:b.DatasourcesActions.RENAME,old_reference:p,new_reference:h,is_shared:s})}return s&&await b.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while renaming datasource ${e.namespace}:${e.id}`)}}),Ia=Q("datasources/delete-datasource",async(e,{getState:n,rejectWithValue:t})=>{try{const a=n(),s=!!e.namespace,i=e.namespace||e.path,l=Kc(e.path,a)[i].filter(b.outById(e.id));return s&&await b.setSharedSources({...a.sharedDatasources.sources,[e.namespace]:l}),{list:l,path:e.path,namespace:e.namespace}}catch{return t(`Error while removing datasource ${e.id}`)}}),ka=nr({name:"root",initialState:()=>{const e=Kn();return{filesLoading:!1,tabs:e.tabs||[],activeTab:e.activeTab,recent:e.recent||[]}},reducers:{setPanelState(e,n){const{path:t,...a}=n.payload;e.tabs.forEach(s=>{s.path===t&&(s.view||(s.view={panel:{isOpen:!1,type:"",current:""}}),Object.assign(s.view.panel,a))})},openSettingsTab(e){const n={date:new Date().toISOString(),flags:{confirmed:!0},view:{panel:{isOpen:!1,type:"",current:""}},extra:{editor:{key:"editors:settings"}},name:"Settings",path:b.SETTINGS_TAB_PATH,type:b.FileFolderType.SETTINGS,initialContent:{},content:{}};let t=e.tabs.find(a=>a.path===n.path);if(t||(e.tabs.push(n),t=e.tabs[e.tabs.length-1]),e.activeTab!==n.path){const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=n.path,t.weight=((a==null?void 0:a.weight)||0)+1}},addDataSource(e,n){var i;const{payload:{path:t,datasourceDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.datasources=s.content.metadata.datasources||[],(i=s.content.metadata.datasources)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.datasources=[...s.content.metadata.datasources,{...a,events:[]}],s.flags={...s.flags,touched:!0,confirmed:!0}))},addWebformState(e,n){var i;const{payload:{path:t,stateDef:a}}=n,s=e.tabs.find(c=>c.path===t);s&&(s.content.metadata.states=s.content.metadata.states||[Fc],(i=s.content.metadata.states)!=null&&i.find(l=>l.id===a.id)||(s.content.metadata.states=[...s.content.metadata.states,a],s.flags={...s.flags,touched:!0,confirmed:!0}))},removeWebformState(e,n){const{path:t,id:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:mh(s.content,a)}:s)},editWebformState(e,n){const{path:t,state:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,states:s.content.metadata.states.map(i=>i.id===a.id?a:i)}}}:s)},removeDataSource(e,n){const{path:t,datasourceID:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...s.content.metadata,datasources:s.content.metadata.datasources.filter(i=>i.id!==a)}}}:s)},setDataSources(e,n){const{payload:{path:t,datasourceArr:a}}=n;e.tabs=e.tabs.map(s=>{var i;return s.path===t?{...s,flags:{...s.flags,touched:!0,confirmed:!0},content:{...s.content,metadata:{...(i=s.content)==null?void 0:i.metadata,datasources:a}}}:s})},setTabs(e,n){e.tabs=n.payload},closeTab(e,n){const t=n.payload;e.tabs.splice(t,1);const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);e.activeTab=(a==null?void 0:a.path)||""},closeOthers(e,n){e.tabs=e.tabs.filter(t=>t.path===n.payload),e.activeTab=n.payload},closeAllTabs(e){e.tabs=[],e.activeTab=""},closeRightTabs(e,n){e.tabs.splice(n.payload+1),e.activeTab=e.tabs[n.payload].path},closeLeftTabs(e,n){e.tabs.splice(0,n.payload)},closeSavedTabs(e){e.tabs=e.tabs.filter(({flags:{touched:t}})=>t);const n=e.tabs.reduce((t,a)=>(a==null?void 0:a.weight)>((t==null?void 0:t.weight)||0)?a:t,null);e.activeTab=(n==null?void 0:n.path)||""},confirmTab(e,n){const t=e.tabs.find(({path:a})=>a===n.payload);t&&(t.flags.confirmed||ka.caseReducers.setTabFlags(e,{type:n.type,payload:{path:n.payload,flags:{confirmed:!0}}}))},selectTab(e,n){const t=e.tabs.find(({path:s})=>s===n.payload);if(!t||e.activeTab===n.payload)return;const a=e.tabs.reduce((s,i)=>(i==null?void 0:i.weight)>((s==null?void 0:s.weight)||0)?i:s,null);t.weight=a?(a.weight||0)+1:1,e.activeTab=n.payload},openTabUnselected(e,n){const t=n.payload;let a=e.tabs.find(({path:i})=>t.path===i);a||(e.tabs.push(t),a=e.tabs[e.tabs.length-1]);const s=e.tabs.reduce((i,c)=>(c==null?void 0:c.weight)>((i==null?void 0:i.weight)||0)?c:i,null);a.weight=s?(s.weight||0)+1:1,a.extra={...a.extra,...t.extra}},selectTabByReference(e,n){const t=[b.FileFolderType.DEBUGGER],{isNew:a,...s}=n.payload;let i=s,c=e.tabs.find(({path:l})=>i.path===l);if((t.includes(i.type)||c!=null&&c.flags.confirmed)&&(i={...i,flags:{...i.flags,confirmed:!0}}),!c){const l=e.tabs.findIndex(({flags:{confirmed:d}})=>d===!1);l!==-1&&!t.includes(i.type)&&!a?e.activeTab===e.tabs[l].path?(e.tabs[l]=i,c=e.tabs[l]):(e.tabs.push(i),c=e.tabs[e.tabs.length-1],e.tabs.splice(l,1)):(e.tabs.push(i),c=e.tabs[e.tabs.length-1])}if(e.activeTab!==i.path){const l=e.tabs.reduce((d,p)=>(p==null?void 0:p.weight)>((d==null?void 0:d.weight)||0)?p:d,null);e.activeTab=i.path,c.weight=((l==null?void 0:l.weight)||0)+1}c.extra={...c.extra,...i.extra},c.flags={...c.flags||{},...i.flags||{}}},setContent(e,n){const{path:t,content:a,contentPath:s}=n.payload;e.tabs=e.tabs.map(i=>{if(i.path!==t)return i;let c=!1,l=i.flags.confirmed;if(typeof a=="string")c=i.initialContent!==a,l=!l&&c?!0:l;else{const d=JSON.stringify(He.get(i.initialContent,s||"",i.initialContent)),p=JSON.stringify(He.get(a,s||"",a));c=d!==p,l=!l&&c?!0:l}return a&&typeof a=="object"&&(s?He.set(i.content,s,a):i.content=a),typeof a=="string"&&(i.content=a),{...i,flags:{...i.flags,touched:c,confirmed:l}}})},setTabFlags(e,n){const{path:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>s.path===t?{...s,flags:{...s.flags,...a}}:s)},setTabsFlags(e,n){const{tabs:t,flags:a}=n.payload;e.tabs=e.tabs.map(s=>t.includes(s.path)?{...s,flags:{...s.flags,...a}}:s)},setTabExtra(e,n){const{path:t,extra:a,flags:s}=n.payload;e.tabs=e.tabs.map(i=>i.path===t?{...i,extra:{...i.extra,...a},flags:s?{...i.flags,...s}:i.flags}:i)},addWebFormStyles(e,n){const{path:t,styles:a=[]}=n.payload,s=e.tabs.find(i=>i.path===t);if(s){const i=s.content.metadata.styles.map(({name:l})=>l),c=a.filter(({name:l})=>!i.includes(l));s.content.metadata.styles=[...s.content.metadata.styles,...c].map(({scope:l,...d})=>({...d}))}},changeTabEditor(e,n){return e.tabs=e.tabs.map(t=>t.path===n.payload.path?n.payload:t),e}},extraReducers:e=>{e.addCase(ac,(n,t)=>{if(t.payload.settingsKey==="studio.enablePreview"&&t.payload.value===!1){const a=n.tabs.find(({flags:{confirmed:s}})=>s===!1);a&&ka.caseReducers.setTabFlags(n,{type:"",payload:{path:a.path,flags:{confirmed:!0}}})}}),e.addCase(Yg.fulfilled,(n,t)=>{if(!t.payload)return;const{content:a,line:s,path:i}=t.payload,c=n.tabs.find(l=>l.path===i);if(c&&typeof c.content=="string"){const l=c.content.trim().split(`
|
|
128
100
|
`);l.splice(s,0,a),c.content=l.join(`
|
|
129
|
-
`)}}),e.addCase(
|
|
101
|
+
`)}}),e.addCase(Yn.pending,(n,t)=>{const{tab:a}=t.meta.arg;switch(a.type){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.WILL_SAVE,payload:{filePath:a.path}});break}}),e.addCase(Yn.fulfilled,(n,t)=>{if(!t.payload)return;const a=n.tabs.find(({path:s})=>{var i;return s===((i=t.payload)==null?void 0:i.path)});if(a){switch(a.content=t.payload.content,a.date=t.payload.date,a.initialContent=t.payload.initialContent,a.flags.touched=!1,a.flags.confirmed=!0,a.flags.old=!1,a.type){case b.FileFolderType.CLASS:case b.FileFolderType.METHOD:b.lspSubject.next({action:b.LspActions.DID_SAVE,payload:{filePath:a.path,content:a.content}});break}t.payload.errors.length>0&&b.toastSubject.next({kind:"error",message:t.payload.errors})}}),e.addCase(Yn.rejected,(n,t)=>{b.toastSubject.next({kind:"danger",message:"Cannot save file"})}),e.addCase(Vg.fulfilled,(n,t)=>{const a=[...t.payload.files];n.tabs=n.tabs.map(s=>{if([b.FileFolderType.CLASS,b.FileFolderType.METHOD].includes(s.type)){const i=a.find(c=>c.name===s.name&&c.type===s.type);if(i){const c=new Date(s.date),l=new Date(i.date);if(c.getTime()!==l.getTime())return{...s,flags:{...s.flags,old:!0}}}}return s})}),e.addCase(cc.pending,(n,t)=>{n.tabs=n.tabs.map(a=>a.path===t.meta.arg.path?{...a,flags:{...a.flags,loading:!0}}:a)}),e.addCase(cc.fulfilled,(n,t)=>{const a=t.payload;if(a){const s=t.meta.arg;n.tabs=n.tabs.map(i=>{if(i.name===s.name&&i.type===s.type){const c=i.extra||{};return i.type===b.FileFolderType.METHOD?(c.attributes=b.parseAttributes(a.content),a.content=b.addAttributesToContent(a.content,{})):i.type===b.FileFolderType.SETTINGS&&(a.content={}),{...i,initialContent:a.content,content:a.content,date:a.date,flags:{enabled:i.flags.enabled,confirmed:i.flags.confirmed},extra:c}}return i})}}),e.addCase(Gc.fulfilled,(n,t)=>{if(!t.payload)return;const{line:a,offset:s}=t.meta.arg,i=n.tabs.find(({path:c})=>{var l;return c===((l=t.payload)==null?void 0:l.path)});i&&(i.extra={...i.extra,initialLineInfo:{line:a,offset:s,lastModification:Date.now()}})}),e.addCase(zg.fulfilled,(n,t)=>{if(!t.payload)return;const{selection:a}=t.meta.arg,s=n.tabs.find(({path:i})=>{var c;return i===((c=t.payload)==null?void 0:c.path)});s&&(s.extra={...s.extra,initialSelectionInfo:{selection:a,lastModification:Date.now()}})}),e.addCase(qn.fulfilled,(n,t)=>{t.payload.new!==t.payload.old&&(n.tabs=[...n.tabs].map(a=>a.path===t.payload.old.path?{...a,path:t.payload.new.path,name:t.payload.new.name}:a),n.activeTab===t.payload.old.path&&(n.activeTab=t.payload.new.path))}),e.addCase(uc.pending,(n,t)=>{const a=t.meta.arg,s=`${a.path}${a.ext?`.${a.ext}`:""}`;switch(a.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.WILL_DELETE,payload:{filePath:s}});break}}),e.addCase(uc.fulfilled,(n,t)=>{const{deleted:a,node:s}=t.payload;if(!a)return;const i=`${s.path}${s.ext?`.${s.ext}`:""}`;switch(s.ext){case"4dm":case"4qs":b.lspSubject.next({action:b.LspActions.DID_DELETE,payload:{filePath:i}});break}if(n.tabs=n.tabs.filter(c=>c.path!==i),n.recent=n.recent.filter(({path:c})=>i!==c),n.tabs.length){n.activeTab=n.tabs[n.tabs.length-1].path;return}n.activeTab=""}),e.addCase(Da.fulfilled,(n,t)=>{const{draggedNode:a,newLocation:s}=t.meta.arg;if(n.tabs.find(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`))return n.tabs=n.tabs.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),n.recent=n.recent.map(i=>i.path===`${a.path}${a.ext?`.${a.ext}`:""}`?{...i,path:`${s.path}/${a.name}.${a.ext}`}:i),n.activeTab=`${s.path}/${a.name}.${a.ext}`,n}),e.addCase(ms.fulfilled,(n,t)=>{const a=n.tabs.find(s=>s.path===t.payload.path);a&&(a.flags.touched=!1,a.flags.confirmed=!0,a.date=t.payload.date,a.content=t.payload.content,a.initialContent=t.payload.content)}),e.addCase(Kg.fulfilled,(n,t)=>{var i;if(!((i=t.payload)!=null&&i.path))return;const a=n.tabs.find(b.by("path",t.payload.path));if(!a)return;a.content=a.content+`
|
|
130
102
|
exposed Function ${t.meta.arg.name}()
|
|
131
103
|
`,a.flags={...a.flags,touched:!0,confirmed:!0};const s=a.content.split(`
|
|
132
|
-
`);a.extra={...a.extra,editor:
|
|
104
|
+
`);a.extra={...a.extra,editor:b.EDITOR.Code,initialLineInfo:{line:s.length-1,lastModification:Date.now()}}}),e.addCase(qc.fulfilled,(n,t)=>{var i,c;if(!((i=t.payload)!=null&&i.path)||(c=t.payload)!=null&&c.namespace)return;const a=t.payload.path,s=n.tabs.find(b.by("path",a));!s||!s.content||!s.content.metadata||(Object.assign(s.content.metadata,{datasources:t.payload.datasources}),s.flags.touched=!0,s.flags.confirmed=!0)}),e.addCase(Yc.fulfilled,(n,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace||n.tabs.forEach(i=>{i.path===s.path&&Object.assign(i.content,{metadata:{...i.content.metadata,datasources:a}})})}),e.addCase(Qg.fulfilled,(n,t)=>{const{staleThreadIds:a}=t.payload;if(a.length===0)return;const s=a.map(i=>`Debugger/${i}`);if(n.tabs=n.tabs.filter(i=>!s.includes(i.path)),n.recent=n.recent.filter(({path:i})=>!s.includes(i)),n.tabs.length){n.activeTab=n.tabs[n.tabs.length-1].path;return}n.activeTab=""}),e.addCase(Hc.pending,n=>Mu(n,!1)),e.addMatcher(dr(ac),(n,t)=>{["project"].includes(t.payload.path)&&Mu(n,!0)}),e.addMatcher(dr(ks),(n,t)=>{Mu(n,!1)}),e.addMatcher(dr(bv,Pt),(n,t)=>{const{payload:a}=t;let s;typeof a=="string"?s=n.tabs.find(({path:i})=>a===i):s=a,s&&(n.recent=[s,...n.recent.filter(({path:i})=>![s.path,"settings"].includes(i))])}),e.addMatcher(dr(Ng,Lg),(n,t)=>{n.tabs=n.tabs.map(a=>a.path===b.ROLES_TAB_PATH?{...a,flags:{...a.flags,confirmed:!0,touched:!0}}:a)}),e.addMatcher(dr(Uc),(n,t)=>{n.tabs=n.tabs.map(a=>a.path===b.ROLES_TAB_PATH?{...a,flags:{...a.flags,touched:!1}}:a)}),e.addMatcher(dr(Jc.fulfilled,Xc.fulfilled,Ia.fulfilled,zn.fulfilled),(n,t)=>{var s,i,c;const a=n.tabs.find(b.by("path",((s=t.payload)==null?void 0:s.path)||t.meta.arg.path));!a||(i=t.payload)!=null&&i.namespace||(a.flags.touched=!0,a.flags.confirmed=!0,Object.assign(a.content,{metadata:{...a.content.metadata,datasources:(c=t.payload)==null?void 0:c.list}}))}),e.addMatcher(dr(Ia.fulfilled,zn.fulfilled),(n,t)=>{var l;const a=n.tabs.find(b.by("path",((l=t.payload)==null?void 0:l.path)||t.meta.arg.path));if(!a)return;const{panel:s}=a.view,i=b.getDatasourceId({id:t.meta.arg.id,namespace:t.meta.arg.namespace});if(s.type==="datasource"&&s.current===i)switch(t.type){case Ia.fulfilled.type:Object.assign(a.view.panel,{type:"component",current:cR});break;case zn.fulfilled.type:const d=b.getDatasourceId({id:t.meta.arg.new_name,namespace:t.meta.arg.namespace});Object.assign(a.view.panel,{type:"datasource",current:d});break}})}}),{setTabs:aI,closeTab:Zc,setContent:pv,setTabFlags:hv,setTabsFlags:oI,setTabExtra:sI,closeAllTabs:gv,addDataSource:iI,closeRightTabs:vv,closeOthers:mv,closeLeftTabs:yv,closeSavedTabs:uI,setDataSources:cI,removeDataSource:lI,confirmTab:fI,selectTab:bv,selectTabByReference:Pt,openTabUnselected:_v,addWebFormStyles:dI,changeTabEditor:pI,openSettingsTab:hI,setPanelState:gI,addWebformState:vI,editWebformState:mI,removeWebformState:yI}=ka.actions,Ev=ka.reducer,bI=Jg.reducer,wn=Q("catalog/fetchCatalog",async(e,{rejectWithValue:n})=>{var t;try{const a=await b.getCatalog(),s=new Map,i=new Map;return(t=a==null?void 0:a.dataClasses)==null||t.forEach(({methods:c=[],...l})=>{if(l.uuid||Object.assign(l,{uuid:b.generateUUID()}),l.attributes){const p=["storage","relatedEntity"];l.attributes=l.attributes.map(h=>(p.includes(h.kind)&&!h.uuid&&Object.assign(h,{uuid:b.generateUUID()}),h))}const d={...l,methods:c};i.set(l.className,d),s.set(l.collectionName,d)}),{__BASEID:a.__BASEID,__UNIQID:a.__UNIQID,dataClassByCollectionName:Object.fromEntries(s.entries()),methods:a.methods||[],dataClasses:Object.fromEntries(i.entries())}}catch{return n("Error while loading the catalog")}}),_I=nr({name:"catalog",initialState:{state:"loading"},reducers:{},extraReducers(e){e.addCase(wn.pending,()=>({state:"loading"})).addCase(wn.fulfilled,(n,{payload:t})=>({state:"loaded",model:t})).addCase(wn.rejected,(n,t)=>({state:"error",error:t.payload||"Error while loading the catalog"}))}}),EI=_I.reducer,SI=Ag.reducer,Zo=Q("shared_datasources/fetchSharedSources",async(e,{rejectWithValue:n})=>{try{return await b.getSharedDatasources()}catch{return n("Error while loading the shared datasources")}}),Sv=Q("shared_datasources/addSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a=JSON.parse(JSON.stringify(t().sharedDatasources));if(e.namespace)a.sources[e.namespace]?a.sources[e.namespace].push(e):a.sources[e.namespace]=[e];else return n("Namespace is required");return await b.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),wv=Q("shared_datasources/editSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a=t().sharedDatasources;if(!e.namespace)return n("Namespace is required");if(a.sources[e.namespace])a.sources[e.namespace]=a.sources[e.namespace].map(s=>s.id===e.id?{...e,id:s.id}:s);else return n("Namespace not found");return await b.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),Tv=Q("shared_datasources/deleteSharedSource",async(e,{rejectWithValue:n,getState:t})=>{try{const a={...t().sharedDatasources};if(a.sources[e.namespace]){const s=a.sources[e.namespace].filter(i=>i.id!==e.id);if(s.length===0){const{[e.namespace]:i,...c}=a.sources;a.sources=c}else a.sources={...a.sources,[e.namespace]:s}}return await b.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),Qc=Q("shared_datasources/updateSharedDatasources",async(e,{rejectWithValue:n,getState:t})=>{try{const a={...t().sharedDatasources};for(const s of e){if(!s.namespace)return n("Namespace is required");if(a.sources[s.namespace])a.sources[s.namespace]=a.sources[s.namespace].map(i=>i.id===s.id?s:i);else return n("Namespace not found")}return await b.setSharedSources(a.sources),a.sources}catch{return n("Error while saving the shared datasources")}}),wI=Q("shared_datasources/setDatasourceEvents",async({tabPath:e,name:n,namespace:t,events:a},{getState:s,dispatch:i})=>{var E,T,x;const{root:{tabs:c},sharedDatasources:l}=s(),d=((x=(T=(E=c.find(({path:D})=>D===e))==null?void 0:E.content)==null?void 0:T.metadata)==null?void 0:x.datasources)||[],p={local:!1,shared:!1},h=(D,P)=>D.id===n&&(!t&&!D.namespace||D.namespace===t)?(P==null||P(),{...D,events:a}):D,y=d.map(D=>h(D,()=>{p.local=!0})),_=He.flatten(He.values(l.sources)).map(D=>h(D,()=>{p.shared=!0}));p.local&&i(pv({path:e,content:y,contentPath:"metadata.datasources"})),p.shared&&i(Qc(_))}),Cv=nr({name:"shared-datasources",initialState:{},reducers:{addEmptyNamespace(e,n){e.sources[n.payload.name]=[]}},extraReducers(e){e.addCase(Zo.pending,n=>({state:"loading",sources:{}})).addCase(Zo.fulfilled,(n,t)=>({state:"loaded",sources:t.payload})).addCase(Zo.rejected,(n,t)=>({state:"error",sources:{},error:t.payload||"Error while loading the shared datasources"})).addCase(Qc.fulfilled,(n,t)=>({state:"loaded",sources:t.payload})).addCase(Yc.fulfilled,(n,t)=>{const{payload:a,meta:{arg:s}}=t;s.namespace&&Object.assign(n.sources,{[s.namespace]:a})}).addCase(Sv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(Tv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(wv.fulfilled,(n,t)=>({...n,sources:t.payload})).addCase(qc.fulfilled,(n,t)=>{if(!t.payload)return n;const{datasources:a,namespace:s}=t.payload;s&&n.sources[s]&&Object.assign(n.sources[s],{[s]:a})}).addMatcher(dr(Jc.fulfilled,Ia.fulfilled,Xc.fulfilled,zn.fulfilled),(n,t)=>{if(!t.payload)return;const{namespace:a,list:s}=t.payload;a&&Object.assign(n.sources,{[a]:s})})}}),{addEmptyNamespace:TI}=Cv.actions,CI=Cv.reducer,xI=Bg.reducer,Qo=Q("shared_css/fetchSharedCSS",async(e,{rejectWithValue:n})=>{try{const{classes:t}=await b.getSharedCSS();return t}catch{return n("Error while loading the shared CSS")}}),RI=b.queue();async function OI(e){const n={verb:b.DesignerRequestVerb.SET_FILE_CONTENT,asText:!1,name:"shared_css.json",path:"",root:"shared",content:{classes:e.map(({scope:t,...a})=>({...a}))}};await RI(()=>b.http(b.API_PREFIX,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}))}const xv=nr({name:"shared-css",initialState:()=>{const{sharedCSS:e}=Kn();return e||{state:"loading",styles:[]}},reducers:{updateSharedCss:(e,n)=>(e.styles=n.payload.classes,OI(n.payload.classes),e),initSharedCss:(e,n)=>(e.styles=n.payload.classes,e)},extraReducers(e){e.addCase(Qo.pending,n=>({...n,state:"loading"})).addCase(Qo.fulfilled,(n,{payload:t})=>({state:"loaded",styles:t})).addCase(Qo.rejected,(n,t)=>({...n,state:"error",error:t.payload||"Error while loading the shared css"}))}}),{updateSharedCss:AI,initSharedCss:PI}=xv.actions,DI=xv.reducer,II={},FI=nr({name:"tabs",initialState:II,reducers:{}}),$I=e=>G(ta,n=>{var t,a;return(a=(t=n.find(s=>s.path===e))==null?void 0:t.view)==null?void 0:a.panel});FI.reducer;const Rv=zp({root:Ev,explorer:xI,debugger:bI,settings:FP,catalog:EI,roles:AP,sharedDatasources:CI,webforms:XD,modals:SI,sharedCSS:DI,model:qD});let Ta;const Ov=()=>(Ta||(Ta=$w({reducer:Rv}),Ta.subscribe(zT(()=>{const{root:{activeTab:e,tabs:n,recent:t},roles:a,debugger:s,webforms:i,sharedCSS:c,settings:{session:l}}=Ta.getState();ph({...l}),dh({tabs:n,activeTab:e,recent:t,roles:a,debugger:s,webforms:i,sharedCSS:c})},1e3))),Ta);var lc={exports:{}},Un={};/** @license React v17.0.2
|
|
133
105
|
* react-jsx-runtime.production.min.js
|
|
134
106
|
*
|
|
135
107
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
136
108
|
*
|
|
137
109
|
* This source code is licensed under the MIT license found in the
|
|
138
110
|
* LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/var
|
|
111
|
+
*/var Bp;function MI(){if(Bp)return Un;Bp=1,xc();var e=pt,n=60103;if(Un.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;n=t("react.element"),Un.Fragment=t("react.fragment")}var a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,p){var h,y={},_=null,E=null;p!==void 0&&(_=""+p),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(E=d.ref);for(h in d)s.call(d,h)&&!i.hasOwnProperty(h)&&(y[h]=d[h]);if(l&&l.defaultProps)for(h in d=l.defaultProps,d)y[h]===void 0&&(y[h]=d[h]);return{$$typeof:n,type:l,key:_,ref:E,props:y,_owner:a.current}}return Un.jsx=c,Un.jsxs=c,Un}var Lu={};/** @license React v17.0.2
|
|
140
112
|
* react-jsx-runtime.development.js
|
|
141
113
|
*
|
|
142
114
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
143
115
|
*
|
|
144
116
|
* This source code is licensed under the MIT license found in the
|
|
145
117
|
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/var
|
|
147
|
-
`+
|
|
148
|
-
`),
|
|
149
|
-
`),
|
|
150
|
-
`+
|
|
118
|
+
*/var Wp;function LI(){return Wp||(Wp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var n=pt,t=xc(),a=60103,s=60106;e.Fragment=60107;var i=60108,c=60114,l=60109,d=60110,p=60112,h=60113,y=60120,_=60115,E=60116,T=60121,x=60122,D=60117,P=60129,j=60131;if(typeof Symbol=="function"&&Symbol.for){var M=Symbol.for;a=M("react.element"),s=M("react.portal"),e.Fragment=M("react.fragment"),i=M("react.strict_mode"),c=M("react.profiler"),l=M("react.provider"),d=M("react.context"),p=M("react.forward_ref"),h=M("react.suspense"),y=M("react.suspense_list"),_=M("react.memo"),E=M("react.lazy"),T=M("react.block"),x=M("react.server.block"),D=M("react.fundamental"),M("react.scope"),M("react.opaque.id"),P=M("react.debug_trace_mode"),M("react.offscreen"),j=M("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator";function z(w){if(w===null||typeof w!="object")return null;var U=k&&w[k]||w[O];return typeof U=="function"?U:null}var H=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(w){{for(var U=arguments.length,J=new Array(U>1?U-1:0),ie=1;ie<U;ie++)J[ie-1]=arguments[ie];te("error",w,J)}}function te(w,U,J){{var ie=H.ReactDebugCurrentFrame,Le=ie.getStackAddendum();Le!==""&&(U+="%s",J=J.concat([Le]));var Ne=J.map(function(Ce){return""+Ce});Ne.unshift("Warning: "+U),Function.prototype.apply.call(console[w],console,Ne)}}var We=!1;function Te(w){return!!(typeof w=="string"||typeof w=="function"||w===e.Fragment||w===c||w===P||w===i||w===h||w===y||w===j||We||typeof w=="object"&&w!==null&&(w.$$typeof===E||w.$$typeof===_||w.$$typeof===l||w.$$typeof===d||w.$$typeof===p||w.$$typeof===D||w.$$typeof===T||w[0]===x))}function st(w,U,J){var ie=U.displayName||U.name||"";return w.displayName||(ie!==""?J+"("+ie+")":J)}function X(w){return w.displayName||"Context"}function Pe(w){if(w==null)return null;if(typeof w.tag=="number"&&Y("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case e.Fragment:return"Fragment";case s:return"Portal";case c:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case y:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case d:var U=w;return X(U)+".Consumer";case l:var J=w;return X(J._context)+".Provider";case p:return st(w,w.render,"ForwardRef");case _:return Pe(w.type);case T:return Pe(w._render);case E:{var ie=w,Le=ie._payload,Ne=ie._init;try{return Pe(Ne(Le))}catch{return null}}}return null}var it=0,Qe,Ge,rt,qt,W,q,de;function le(){}le.__reactDisabledLog=!0;function se(){{if(it===0){Qe=console.log,Ge=console.info,rt=console.warn,qt=console.error,W=console.group,q=console.groupCollapsed,de=console.groupEnd;var w={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}it++}}function fe(){{if(it--,it===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},w,{value:Qe}),info:t({},w,{value:Ge}),warn:t({},w,{value:rt}),error:t({},w,{value:qt}),group:t({},w,{value:W}),groupCollapsed:t({},w,{value:q}),groupEnd:t({},w,{value:de})})}it<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=H.ReactCurrentDispatcher,ce;function ue(w,U,J){{if(ce===void 0)try{throw Error()}catch(Le){var ie=Le.stack.trim().match(/\n( *(at )?)/);ce=ie&&ie[1]||""}return`
|
|
119
|
+
`+ce+w}}var he=!1,ge;{var K=typeof WeakMap=="function"?WeakMap:Map;ge=new K}function F(w,U){if(!w||he)return"";{var J=ge.get(w);if(J!==void 0)return J}var ie;he=!0;var Le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=ne.current,ne.current=null,se();try{if(U){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(sr){ie=sr}Reflect.construct(w,[],Ce)}else{try{Ce.call()}catch(sr){ie=sr}w.call(Ce.prototype)}}else{try{throw Error()}catch(sr){ie=sr}w()}}catch(sr){if(sr&&ie&&typeof sr.stack=="string"){for(var Ee=sr.stack.split(`
|
|
120
|
+
`),ht=ie.stack.split(`
|
|
121
|
+
`),Xe=Ee.length-1,et=ht.length-1;Xe>=1&&et>=0&&Ee[Xe]!==ht[et];)et--;for(;Xe>=1&&et>=0;Xe--,et--)if(Ee[Xe]!==ht[et]){if(Xe!==1||et!==1)do if(Xe--,et--,et<0||Ee[Xe]!==ht[et]){var zt=`
|
|
122
|
+
`+Ee[Xe].replace(" at new "," at ");return typeof w=="function"&&ge.set(w,zt),zt}while(Xe>=1&&et>=0);break}}}finally{he=!1,ne.current=Ne,fe(),Error.prepareStackTrace=Le}var Ur=w?w.displayName||w.name:"",Xa=Ur?ue(Ur):"";return typeof w=="function"&&ge.set(w,Xa),Xa}function ze(w,U,J){return F(w,!1)}function qe(w){var U=w.prototype;return!!(U&&U.isReactComponent)}function yt(w,U,J){if(w==null)return"";if(typeof w=="function")return F(w,qe(w));if(typeof w=="string")return ue(w);switch(w){case h:return ue("Suspense");case y:return ue("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case p:return ze(w.render);case _:return yt(w.type,U,J);case T:return ze(w._render);case E:{var ie=w,Le=ie._payload,Ne=ie._init;try{return yt(Ne(Le),U,J)}catch{}}}return""}var Ha={},Yt=H.ReactDebugCurrentFrame;function nn(w){if(w){var U=w._owner,J=yt(w.type,w._source,U?U.type:null);Yt.setExtraStackFrame(J)}else Yt.setExtraStackFrame(null)}function Ws(w,U,J,ie,Le){{var Ne=Function.call.bind(Object.prototype.hasOwnProperty);for(var Ce in w)if(Ne(w,Ce)){var Ee=void 0;try{if(typeof w[Ce]!="function"){var ht=Error((ie||"React class")+": "+J+" type `"+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[Ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ht.name="Invariant Violation",ht}Ee=w[Ce](U,Ce,ie,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Xe){Ee=Xe}Ee&&!(Ee instanceof Error)&&(nn(Le),Y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ie||"React class",J,Ce,typeof Ee),nn(null)),Ee instanceof Error&&!(Ee.message in Ha)&&(Ha[Ee.message]=!0,nn(Le),Y("Failed %s type: %s",J,Ee.message),nn(null))}}}var or=H.ReactCurrentOwner,xt=Object.prototype.hasOwnProperty,an={key:!0,ref:!0,__self:!0,__source:!0},on,Ga,Sr;Sr={};function Us(w){if(xt.call(w,"ref")){var U=Object.getOwnPropertyDescriptor(w,"ref").get;if(U&&U.isReactWarning)return!1}return w.ref!==void 0}function sn(w){if(xt.call(w,"key")){var U=Object.getOwnPropertyDescriptor(w,"key").get;if(U&&U.isReactWarning)return!1}return w.key!==void 0}function Wr(w,U){if(typeof w.ref=="string"&&or.current&&U&&or.current.stateNode!==U){var J=Pe(or.current.type);Sr[J]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Pe(or.current.type),w.ref),Sr[J]=!0)}}function na(w,U){{var J=function(){on||(on=!0,Y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};J.isReactWarning=!0,Object.defineProperty(w,"key",{get:J,configurable:!0})}}function aa(w,U){{var J=function(){Ga||(Ga=!0,Y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};J.isReactWarning=!0,Object.defineProperty(w,"ref",{get:J,configurable:!0})}}var oa=function(w,U,J,ie,Le,Ne,Ce){var Ee={$$typeof:a,type:w,key:U,ref:J,props:Ce,_owner:Ne};return Ee._store={},Object.defineProperty(Ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Le}),Object.freeze&&(Object.freeze(Ee.props),Object.freeze(Ee)),Ee};function sa(w,U,J,ie,Le){{var Ne,Ce={},Ee=null,ht=null;J!==void 0&&(Ee=""+J),sn(U)&&(Ee=""+U.key),Us(U)&&(ht=U.ref,Wr(U,Le));for(Ne in U)xt.call(U,Ne)&&!an.hasOwnProperty(Ne)&&(Ce[Ne]=U[Ne]);if(w&&w.defaultProps){var Xe=w.defaultProps;for(Ne in Xe)Ce[Ne]===void 0&&(Ce[Ne]=Xe[Ne])}if(Ee||ht){var et=typeof w=="function"?w.displayName||w.name||"Unknown":w;Ee&&na(Ce,et),ht&&aa(Ce,et)}return oa(w,Ee,ht,Le,ie,or.current,Ce)}}var un=H.ReactCurrentOwner,Cn=H.ReactDebugCurrentFrame;function gr(w){if(w){var U=w._owner,J=yt(w.type,w._source,U?U.type:null);Cn.setExtraStackFrame(J)}else Cn.setExtraStackFrame(null)}var cn;cn=!1;function ln(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function qa(){{if(un.current){var w=Pe(un.current.type);if(w)return`
|
|
151
123
|
|
|
152
|
-
Check the render method of \``+
|
|
124
|
+
Check the render method of \``+w+"`."}return""}}function Hs(w){{if(w!==void 0){var U=w.fileName.replace(/^.*[\\\/]/,""),J=w.lineNumber;return`
|
|
153
125
|
|
|
154
|
-
Check your code at `+
|
|
126
|
+
Check your code at `+U+":"+J+"."}return""}}var Ya={};function za(w){{var U=qa();if(!U){var J=typeof w=="string"?w:w.displayName||w.name;J&&(U=`
|
|
155
127
|
|
|
156
|
-
Check the top-level render call using <`+I+">.")}return O}}function en(g,O){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=Wn(O);if(wn[I])return;wn[I]=!0;var q="";g&&g._owner&&g._owner!==dr.current&&(q=" It was passed a child from "+we(g._owner.type)+"."),_t(g),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),_t(null)}}function Tn(g,O){{if(typeof g!="object")return;if(Array.isArray(g))for(var I=0;I<g.length;I++){var q=g[I];hr(q)&&en(q,O)}else if(hr(g))g._store&&(g._store.validated=!0);else if(g){var ae=K(g);if(typeof ae=="function"&&ae!==g.entries)for(var oe=ae.call(g),ee;!(ee=oe.next()).done;)hr(ee.value)&&en(ee.value,O)}}}function Ta(g){{var O=g.type;if(O==null||typeof O=="string")return;var I;if(typeof O=="function")I=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===p||O.$$typeof===_))I=O.propTypes;else return;if(I){var q=we(O);Ea(I,g.props,"prop",q,g)}else if(O.PropTypes!==void 0&&!pr){pr=!0;var ae=we(O);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ae||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(g){{for(var O=Object.keys(g.props),I=0;I<O.length;I++){var q=O[I];if(q!=="children"&&q!=="key"){_t(g),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_t(null);break}}g.ref!==null&&(_t(g),Y("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function xn(g,O,I,q,ae,oe){{var ee=Re(g);if(!ee){var Q="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=wa(ae);Ie?Q+=Ie:Q+=Sn();var be;g===null?be="null":Array.isArray(g)?be="array":g!==void 0&&g.$$typeof===a?(be="<"+(we(g.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=En(g,O,I,ae,oe);if(Ee==null)return Ee;if(ee){var at=O.children;if(at!==void 0)if(q)if(Array.isArray(at)){for(var Ft=0;Ft<at.length;Ft++)Tn(at[Ft],g);Object.freeze&&Object.freeze(at)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Tn(at,g)}return g===e.Fragment?xa(Ee):Ta(Ee),Ee}}function Un(g,O,I){return xn(g,O,I,!0)}function Ca(g,O,I){return xn(g,O,I,!1)}var Oa=Ca,Ra=Un;e.jsx=Oa,e.jsxs=Ra}()}(Wu)),Wu}process.env.NODE_ENV==="production"?vc.exports=eF():vc.exports=tF();var rF=vc.exports;const nF=({children:e,store:n})=>rF.jsx(ug,{store:n,children:e});exports.CATALOG_REFRESH_DELAY=$s;exports.DEFAULT_CACHE=Rc;exports.EAttributeKind=Zs;exports.EAttributeTypes=pv;exports.EDebuggerErrorReason=bh;exports.EDebuggerErrorType=ms;exports.EDebuggerState=Gr;exports.EDisplayMode=Uc;exports.EPermissionType=Me;exports.ETooltipBehavior=Bc;exports.EUnsavedPopOverChoice=Wc;exports.ExpressionIndex=mh;exports.FLAGS_INIT_STATE=yv;exports.FLAGS_KEYS=ao;exports.ModalCloseReason=Yc;exports.ModalColor=Dr;exports.ModalIcons=qP;exports.ModalType=Gt;exports.ROOT_WEBFORM_STATE=kc;exports.ReduxProvider=nF;exports.THEME_CLASSES=Tg;exports.WT_FLAGS_KEYS=vv;exports.actionsToPrivs=Mg;exports.addBreakpointDecoration=SD;exports.addComponent=bv;exports.addCraftedComponent=bI;exports.addDataSource=CI;exports.addDatasource=nl;exports.addEmptyNamespace=HI;exports.addExpression=AD;exports.addIn=_P;exports.addNewFile=Qg;exports.addPermission=CP;exports.addSession=ND;exports.addSharedSource=$v;exports.addWebFormStyles=DI;exports.addWebformState=MI;exports.allowed=mP;exports.attributeKinds=KD;exports.attributeScopes=QD;exports.attributeTypes=XD;exports.castToFileFolder=oD;exports.changeTabEditor=II;exports.children=Os;exports.clearAllBreakpoints=OD;exports.clearBreakpoints=xD;exports.clearBreakpointsExcept=CD;exports.closeAllTabs=Ov;exports.closeLeftTabs=Pv;exports.closeModal=LP;exports.closeOthers=Av;exports.closeRightTabs=Rv;exports.closeSavedTabs=OI;exports.closeTab=ol;exports.confirmTab=PI;exports.create=$g;exports.createModal=Wg;exports.createModelFiles=pc;exports.createNewFile=ua;exports.createNewFileAndOpen=lD;exports.createNewNode=us;exports.createRole=$P;exports.createWithResource=SP;exports.dataclassScopes=ZD;exports.deleteDatasource=Qa;exports.deleteFile=hc;exports.deleteFolder=fD;exports.deleteSharedSource=Nv;exports.deserializeModel=Ch;exports.duplicateNode=cs;exports.editComponent=_v;exports.editCraftedComponent=_I;exports.editDataSource=Qc;exports.editDatasource=al;exports.editModal=jP;exports.editRole=FP;exports.editSharedSource=Mv;exports.editWebformState=NI;exports.editors=zh;exports.executeMethod=pD;exports.expandFolder=tD;exports.extensions=Vh;exports.fetchAppSettings=Jg;exports.fetchCatalog=kn;exports.fetchChanges=sv;exports.fetchCraftedComponents=Tv;exports.fetchFiles=hD;exports.fetchFolderContent=Ar;exports.fetchFolderContentWithoutExpanding=Ja;exports.fetchModel=tl;exports.fetchRoles=Rs;exports.fetchRolesChanges=Yg;exports.fetchSettings=Jc;exports.fetchSharedCss=fs;exports.fetchSharedDatasources=ls;exports.fetchTemplate=mI;exports.fetchTemplates=yI;exports.findNodeByPath=vt;exports.findOne=jn;exports.findSession=ft;exports.findSessionByPath=bg;exports.getCachedState=pa;exports.getCashedPrefrences=xh;exports.getDebuggerTabName=$h;exports.getDebuggerTabPath=Pc;exports.getDefaultContent=ev;exports.getDefaultName=rI;exports.getDictByName=Lg;exports.getEditors=Er;exports.getExtension=Jh;exports.getFilePath=nv;exports.getFileType=rv;exports.getFilenameFromType=tv;exports.getGraphData=xP;exports.getInheritedResources=kg;exports.getModalTitle=Ms;exports.getNodeRelativePath=Kh;exports.getPrivilegeById=Qr;exports.getPromotions=PP;exports.getResourceFromType=qc;exports.getStore=Bv;exports.indexTypes=eI;exports.initSharedCss=KI;exports.injectContentAtLine=av;exports.inspect=dI;exports.isJSON=Oh;exports.isRelatedAttr=nI;exports.isRelatedEntitiesAttr=gv;exports.isRelatedEntityAttr=hv;exports.isRenameDatasource=SI;exports.isRolesOutdated=zc;exports.isValidPrimaryKey=VD;exports.modelSubject=ng;exports.openAddFileInput=rD;exports.openFile=Xa;exports.openFileAtLine=Xc;exports.openFileAtSelection=ov;exports.openModal=fr;exports.openModel=GD;exports.openRoles=ED;exports.openSettingsTab=FI;exports.openTabUnselected=Iv;exports.parents=zs;exports.populateShallow=TP;exports.primaryKeyAttributes=JD;exports.refactorWebform=Rh;exports.refreshFile=nD;exports.reloadTab=gc;exports.relocateNode=Za;exports.remove=bP;exports.removeAllExpressions=ID;exports.removeBreakpointDecoration=wD;exports.removeComponent=Ev;exports.removeCraftedComponent=EI;exports.removeDataSource=AI;exports.removeDebuggerSessionsNotIn=fv;exports.removeExpression=DD;exports.removeFile=dc;exports.removeFileNode=dD;exports.removeFrom=EP;exports.removeModal=Ug;exports.removePermission=OP;exports.removeRole=IP;exports.removeSession=jD;exports.removeSessionByIndex=kD;exports.removeWebformState=LI;exports.rename=wP;exports.renameDataSource=Zc;exports.renameDatasource=fa;exports.renameExpression=PD;exports.renameFile=ca;exports.resetResources=RP;exports.rootReducer=Fv;exports.sanitize=Vs;exports.sanitizePermissions=Ng;exports.sanitizePrivileges=Ig;exports.saveAll=gD;exports.saveExpressions=MD;exports.saveModel=As;exports.savePrefrences=Th;exports.saveRole=MP;exports.saveRoles=cc;exports.saveState=wh;exports.saveTab=la;exports.selectActiveLine=UR;exports.selectActiveTab=tA;exports.selectAllDatasourcesByPath=$R;exports.selectAppState=vg;exports.selectBreakpoints=LR;exports.selectCSSClassesByPath=DA;exports.selectCallChainVariables=XR;exports.selectCatalog=$c;exports.selectCatalogMethods=RR;exports.selectCatalogState=CR;exports.selectClassBreakpoints=kR;exports.selectClassOffset=QR;exports.selectClasses=hA;exports.selectClassesFolder=wg;exports.selectComponents=Cg;exports.selectComponentsByPath=IR;exports.selectContentByPath=_g;exports.selectCraftedComponent=LA;exports.selectCurrentFrameByThreadId=VR;exports.selectCurrentTab=nA;exports.selectDataclasses=hg;exports.selectDatasource=FR;exports.selectDatasourcesByPath=yg;exports.selectDatasourcesTheme=kA;exports.selectDebuggerChannels=KR;exports.selectDebuggerData=Bn;exports.selectDebuggerMeta=MR;exports.selectDebuggerSessions=jt;exports.selectDebuggerSessionsCount=NR;exports.selectDebuggers=lA;exports.selectDraftBreakpoints=jR;exports.selectDraftClassBreakpoints=BR;exports.selectExceptions=eA;exports.selectExplorer=fA;exports.selectExpressions=HR;exports.selectExpressionsVariables=ZR;exports.selectFlagsByPath=FA;exports.selectForceLogin=SA;exports.selectGuestPrivilege=bA;exports.selectHasTabs=sA;exports.selectHighlightedLines=WR;exports.selectInspectedCSSClass=$A;exports.selectInspectedDatasource=MA;exports.selectInspector=Hs;exports.selectInspectorStateByType=jA;exports.selectIsLoaded=BA;exports.selectMethods=dA;exports.selectMethodsFolder=Sg;exports.selectModals=gA;exports.selectMonacoZoom=AA;exports.selectPanelByPath=QI;exports.selectPartialSessionSettings=TA;exports.selectPreferences=CA;exports.selectPreviewedWebformsPaths=oA;exports.selectPrivileges=mA;exports.selectProjectSettings=xA;exports.selectQodly=RA;exports.selectRecentFiles=rA;exports.selectRemoteDebuggerMode=OA;exports.selectRoles=yA;exports.selectRolesAndPrivileges=vA;exports.selectRolesDate=wA;exports.selectRolesFlags=_A;exports.selectRoot=Zr;exports.selectSelectedTab=EA;exports.selectServerSettings=Lc;exports.selectSessionSettings=Nc;exports.selectSharedCSS=IA;exports.selectSharedDatasources=mg;exports.selectSourceByPath=qR;exports.selectSourceByThreadId=zR;exports.selectStackFrames=JR;exports.selectStoppedFromDebugSession=GR;exports.selectStylesByPath=PA;exports.selectTab=Dv;exports.selectTabByPath=_a;exports.selectTabByReference=Lt;exports.selectTabExtraByPath=iA;exports.selectTabMaxWeight=aA;exports.selectTabs=ba;exports.selectTemplates=Og;exports.selectTemplatesData=NA;exports.selectThreadIdByPath=YR;exports.selectTouchedTabs=Mc;exports.selectTouchedTabsLength=cA;exports.selectVirtualDataClasses=OR;exports.selectWebForms=pA;exports.selectWebFormsFolder=Eg;exports.selectWebformNodes=uA;exports.selectWebformStatesByPath=WA;exports.selectWebformStylesByPath=jc;exports.selectWebforms=uo;exports.serializeModel=tI;exports.setActiveLine=RD;exports.setBreakpointsDecoration=TD;exports.setCallChainVariables=BD;exports.setContent=xv;exports.setDataSources=RI;exports.setDatasourceEvents=UI;exports.setDatasourcesTheme=hI;exports.setDebuggerMeta=HD;exports.setExpression=FD;exports.setExpressionVariables=WD;exports.setFolderChildren=aD;exports.setModelFlag=zD;exports.setPanelState=$I;exports.setRolesContent=Vc;exports.setSelectedGroup=pI;exports.setSessions=cv;exports.setSetting=lc;exports.setSettings=Js;exports.setSettingsAsText=XP;exports.setSourceContent=UD;exports.setTabExtra=xI;exports.setTabFlags=Cv;exports.setTabs=wI;exports.setTabsFlags=TI;exports.setTemplateData=wv;exports.setTemplatesData=Sv;exports.setWebformsFlag=gI;exports.sort=Fg;exports.stateReducer=kv;exports.stateSlice=oo;exports.toAPI=Ks;exports.toState=DP;exports.toggleExpandFolder=eD;exports.toggleForceLogin=zP;exports.toggleInspector=fI;exports.togglePermission=AP;exports.togglePrivilegePermission=jg;exports.toggleTab=YP;exports.tryCloseAllTabs=yD;exports.tryCloseLeftTabs=bD;exports.tryCloseOtherTabs=vD;exports.tryCloseRightTabs=mD;exports.tryCloseTab=el;exports.tryEditMethod=sD;exports.tryInjectMethod=iv;exports.tryRenameDataclass=qD;exports.uniquePush=cr;exports.updateExpressionAt=$D;exports.updatePrivileges=Vg;exports.updateRoles=Kg;exports.updateRolesAndPrivileges=Kc;exports.updateSession=LD;exports.updateSharedCss=VI;exports.updateSharedDatasources=sl;exports.uploadFile=cD;exports.uploadFileAndGetResponse=uD;exports.useAppDispatch=xR;exports.useAppSelector=Xr;exports.useAttribute=iI;exports.useCollections=oI;exports.useDataclass=sI;exports.useDataclasses=aI;exports.useMethod=DR;exports.useMethods=AR;exports.useModelFlags=cI;exports.useModelProperties=uI;exports.wipeDebuggerSessions=lv;
|
|
128
|
+
Check the top-level render call using <`+J+">.")}return U}}function ia(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var J=za(U);if(Ya[J])return;Ya[J]=!0;var ie="";w&&w._owner&&w._owner!==un.current&&(ie=" It was passed a child from "+Pe(w._owner.type)+"."),gr(w),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,ie),gr(null)}}function Va(w,U){{if(typeof w!="object")return;if(Array.isArray(w))for(var J=0;J<w.length;J++){var ie=w[J];ln(ie)&&ia(ie,U)}else if(ln(w))w._store&&(w._store.validated=!0);else if(w){var Le=z(w);if(typeof Le=="function"&&Le!==w.entries)for(var Ne=Le.call(w),Ce;!(Ce=Ne.next()).done;)ln(Ce.value)&&ia(Ce.value,U)}}}function Gs(w){{var U=w.type;if(U==null||typeof U=="string")return;var J;if(typeof U=="function")J=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===_))J=U.propTypes;else return;if(J){var ie=Pe(U);Ws(J,w.props,"prop",ie,w)}else if(U.PropTypes!==void 0&&!cn){cn=!0;var Le=Pe(U);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Le||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qs(w){{for(var U=Object.keys(w.props),J=0;J<U.length;J++){var ie=U[J];if(ie!=="children"&&ie!=="key"){gr(w),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),gr(null);break}}w.ref!==null&&(gr(w),Y("Invalid attribute `ref` supplied to `React.Fragment`."),gr(null))}}function Ka(w,U,J,ie,Le,Ne){{var Ce=Te(w);if(!Ce){var Ee="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(Ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ht=Hs(Le);ht?Ee+=ht:Ee+=qa();var Xe;w===null?Xe="null":Array.isArray(w)?Xe="array":w!==void 0&&w.$$typeof===a?(Xe="<"+(Pe(w.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Xe=typeof w,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Xe,Ee)}var et=sa(w,U,J,Le,Ne);if(et==null)return et;if(Ce){var zt=U.children;if(zt!==void 0)if(ie)if(Array.isArray(zt)){for(var Ur=0;Ur<zt.length;Ur++)Va(zt[Ur],w);Object.freeze&&Object.freeze(zt)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Va(zt,w)}return w===e.Fragment?qs(et):Gs(et),et}}function Ja(w,U,J){return Ka(w,U,J,!0)}function Ys(w,U,J){return Ka(w,U,J,!1)}var zs=Ys,Vs=Ja;e.jsx=zs,e.jsxs=Vs}()}(Lu)),Lu}process.env.NODE_ENV==="production"?lc.exports=MI():lc.exports=LI();var NI=lc.exports;const kI=({children:e,store:n})=>NI.jsx(Xh,{store:n,children:e});exports.CATALOG_REFRESH_DELAY=Ss;exports.DEFAULT_CACHE=Sc;exports.EAttributeKind=Bs;exports.EAttributeTypes=tv;exports.EDebuggerErrorReason=uh;exports.EDebuggerErrorType=ss;exports.EDebuggerState=Ir;exports.EDisplayMode=Lc;exports.EPermissionType=Ae;exports.ETooltipBehavior=$c;exports.EUnsavedPopOverChoice=Mc;exports.ExpressionIndex=ih;exports.FLAGS_INIT_STATE=ov;exports.FLAGS_KEYS=Na;exports.ROOT_WEBFORM_STATE=Fc;exports.ReduxProvider=kI;exports.THEME_CLASSES=pg;exports.WT_FLAGS_KEYS=av;exports.actionsToPrivs=Tg;exports.addBreakpointDecoration=nD;exports.addComponent=iv;exports.addCraftedComponent=eI;exports.addDataSource=iI;exports.addDatasource=Jc;exports.addEmptyNamespace=TI;exports.addExpression=lD;exports.addIn=uP;exports.addNewFile=Wg;exports.addPermission=hP;exports.addSession=mD;exports.addSharedSource=Sv;exports.addWebFormStyles=dI;exports.addWebformState=vI;exports.allowed=sP;exports.attributeKinds=PD;exports.attributeScopes=$D;exports.attributeTypes=ID;exports.castToFileFolder=BP;exports.changeTabEditor=pI;exports.children=gs;exports.clearAllBreakpoints=uD;exports.clearBreakpoints=sD;exports.clearBreakpointsExcept=iD;exports.closeAllTabs=gv;exports.closeLeftTabs=yv;exports.closeModal=CP;exports.closeOthers=mv;exports.closeRightTabs=vv;exports.closeSavedTabs=uI;exports.closeTab=Zc;exports.confirmTab=fI;exports.create=wg;exports.createModal=Pg;exports.createModelFiles=ic;exports.createNewFile=Gn;exports.createNewFileAndOpen=qP;exports.createNewNode=Jo;exports.createRole=SP;exports.createWithResource=lP;exports.dataclassScopes=FD;exports.deleteDatasource=Ia;exports.deleteFile=uc;exports.deleteFolder=YP;exports.deleteSharedSource=Tv;exports.deserializeModel=gh;exports.duplicateNode=Xo;exports.editComponent=uv;exports.editCraftedComponent=tI;exports.editDataSource=Yc;exports.editDatasource=Xc;exports.editModal=xP;exports.editRole=EP;exports.editSharedSource=wv;exports.editWebformState=mI;exports.editors=Lh;exports.executeMethod=VP;exports.expandFolder=LP;exports.extensions=Nh;exports.fetchAppSettings=kg;exports.fetchCatalog=wn;exports.fetchChanges=Vg;exports.fetchCraftedComponents=dv;exports.fetchFiles=KP;exports.fetchFolderContent=_r;exports.fetchFolderContentWithoutExpanding=Aa;exports.fetchModel=Vc;exports.fetchRoles=vs;exports.fetchRolesChanges=$g;exports.fetchSettings=Hc;exports.fetchSharedCss=Qo;exports.fetchSharedDatasources=Zo;exports.fetchTemplate=QD;exports.fetchTemplates=ZD;exports.findNodeByPath=lt;exports.findOne=Sn;exports.findSession=ot;exports.findSessionByPath=ug;exports.getCachedState=Kn;exports.getCashedPrefrences=hh;exports.getDebuggerTabName=wh;exports.getDebuggerTabPath=Tc;exports.getDefaultContent=Ug;exports.getDefaultName=ND;exports.getDictByName=xg;exports.getEditors=pr;exports.getExtension=jh;exports.getFilePath=qg;exports.getFileType=Gg;exports.getFilenameFromType=Hg;exports.getGraphData=pP;exports.getInheritedResources=Og;exports.getModalTitle=ws;exports.getNodeRelativePath=kh;exports.getPrivilegeById=Br;exports.getPromotions=yP;exports.getResourceFromType=jc;exports.getStore=Ov;exports.indexTypes=MD;exports.initSharedCss=PI;exports.injectContentAtLine=Yg;exports.inspect=zD;exports.isJSON=vh;exports.isRelatedAttr=kD;exports.isRelatedEntitiesAttr=nv;exports.isRelatedEntityAttr=rv;exports.isRenameDatasource=nI;exports.isRolesOutdated=Bc;exports.isValidPrimaryKey=AD;exports.modelSubject=Yh;exports.openAddFileInput=NP;exports.openFile=Pa;exports.openFileAtLine=Gc;exports.openFileAtSelection=zg;exports.openModal=ar;exports.openModel=CD;exports.openRoles=rD;exports.openSettingsTab=hI;exports.openTabUnselected=_v;exports.parents=Ms;exports.populateShallow=dP;exports.primaryKeyAttributes=DD;exports.refactorWebform=mh;exports.refreshFile=kP;exports.reloadTab=cc;exports.relocateNode=Da;exports.remove=iP;exports.removeAllExpressions=pD;exports.removeBreakpointDecoration=aD;exports.removeComponent=cv;exports.removeCraftedComponent=rI;exports.removeDataSource=lI;exports.removeDebuggerSessionsNotIn=Qg;exports.removeExpression=dD;exports.removeFile=sc;exports.removeFileNode=zP;exports.removeFrom=cP;exports.removeModal=Dg;exports.removePermission=gP;exports.removeRole=_P;exports.removeSession=bD;exports.removeSessionByIndex=_D;exports.removeWebformState=yI;exports.rename=fP;exports.renameDataSource=qc;exports.renameDatasource=zn;exports.renameExpression=fD;exports.renameFile=qn;exports.resetResources=vP;exports.rootReducer=Ev;exports.sanitize=Ls;exports.sanitizePermissions=Cg;exports.sanitizePrivileges=Eg;exports.saveAll=JP;exports.saveExpressions=vD;exports.saveModel=ms;exports.savePrefrences=ph;exports.saveRole=wP;exports.saveRoles=nc;exports.saveState=dh;exports.saveTab=Yn;exports.selectActiveLine=PO;exports.selectActiveTab=HO;exports.selectAllDatasourcesByPath=SO;exports.selectAppState=og;exports.selectBreakpoints=CO;exports.selectCSSClassesByPath=bA;exports.selectCallChainVariables=jO;exports.selectCatalog=Oc;exports.selectCatalogMethods=vO;exports.selectCatalogState=hO;exports.selectClassBreakpoints=RO;exports.selectClassOffset=WO;exports.selectClasses=rA;exports.selectClassesFolder=dg;exports.selectComponents=gg;exports.selectComponentsByPath=_O;exports.selectContentByPath=cg;exports.selectCraftedComponent=CA;exports.selectCurrentFrameByThreadId=LO;exports.selectCurrentTab=qO;exports.selectDataclasses=ng;exports.selectDatasource=EO;exports.selectDatasourcesByPath=sg;exports.selectDatasourcesTheme=RA;exports.selectDebuggerChannels=NO;exports.selectDebuggerData=Tn;exports.selectDebuggerMeta=wO;exports.selectDebuggerSessions=Dt;exports.selectDebuggerSessionsCount=TO;exports.selectDebuggers=ZO;exports.selectDraftBreakpoints=xO;exports.selectDraftClassBreakpoints=OO;exports.selectExceptions=UO;exports.selectExplorer=QO;exports.selectExpressions=DO;exports.selectExpressionsVariables=BO;exports.selectFlagsByPath=EA;exports.selectForceLogin=lA;exports.selectGuestPrivilege=iA;exports.selectHasTabs=VO;exports.selectHighlightedLines=AO;exports.selectInspectedCSSClass=SA;exports.selectInspectedDatasource=wA;exports.selectInspector=Ds;exports.selectInspectorStateByType=xA;exports.selectIsLoaded=OA;exports.selectMethods=eA;exports.selectMethodsFolder=fg;exports.selectModals=nA;exports.selectMonacoZoom=mA;exports.selectPanelByPath=$I;exports.selectPartialSessionSettings=dA;exports.selectPreferences=hA;exports.selectPreviewedWebformsPaths=zO;exports.selectPrivileges=sA;exports.selectProjectSettings=pA;exports.selectQodly=vA;exports.selectRecentFiles=GO;exports.selectRemoteDebuggerMode=gA;exports.selectRoles=oA;exports.selectRolesAndPrivileges=aA;exports.selectRolesDate=fA;exports.selectRolesFlags=uA;exports.selectRoot=jr;exports.selectSelectedTab=cA;exports.selectServerSettings=Dc;exports.selectSessionSettings=Pc;exports.selectSharedCSS=_A;exports.selectSharedDatasources=ig;exports.selectSourceByPath=FO;exports.selectSourceByThreadId=MO;exports.selectStackFrames=kO;exports.selectStoppedFromDebugSession=IO;exports.selectStylesByPath=yA;exports.selectTab=bv;exports.selectTabByPath=ra;exports.selectTabByReference=Pt;exports.selectTabExtraByPath=KO;exports.selectTabMaxWeight=YO;exports.selectTabs=ta;exports.selectTemplates=vg;exports.selectTemplatesData=TA;exports.selectThreadIdByPath=$O;exports.selectTouchedTabs=Ac;exports.selectTouchedTabsLength=XO;exports.selectVirtualDataClasses=gO;exports.selectWebForms=tA;exports.selectWebFormsFolder=lg;exports.selectWebformNodes=JO;exports.selectWebformStatesByPath=AA;exports.selectWebformStylesByPath=Ic;exports.selectWebforms=Wa;exports.serializeModel=LD;exports.setActiveLine=cD;exports.setBreakpointsDecoration=oD;exports.setCallChainVariables=ED;exports.setContent=pv;exports.setDataSources=cI;exports.setDatasourceEvents=wI;exports.setDatasourcesTheme=KD;exports.setDebuggerMeta=TD;exports.setExpression=hD;exports.setExpressionVariables=SD;exports.setFolderChildren=jP;exports.setModelFlag=OD;exports.setPanelState=gI;exports.setRolesContent=Wc;exports.setSelectedGroup=VD;exports.setSessions=Xg;exports.setSetting=ac;exports.setSettings=ks;exports.setSettingsAsText=IP;exports.setSourceContent=wD;exports.setTabExtra=sI;exports.setTabFlags=hv;exports.setTabs=aI;exports.setTabsFlags=oI;exports.setTemplateData=fv;exports.setTemplatesData=lv;exports.setWebformsFlag=JD;exports.sort=Sg;exports.stateReducer=Rv;exports.stateSlice=ka;exports.toAPI=Ns;exports.toState=bP;exports.toggleExpandFolder=MP;exports.toggleForceLogin=OP;exports.toggleInspector=YD;exports.togglePermission=mP;exports.togglePrivilegePermission=Rg;exports.toggleTab=RP;exports.tryCloseAllTabs=ZP;exports.tryCloseLeftTabs=eD;exports.tryCloseOtherTabs=XP;exports.tryCloseRightTabs=QP;exports.tryCloseTab=zc;exports.tryEditMethod=WP;exports.tryInjectMethod=Kg;exports.tryRenameDataclass=xD;exports.uniquePush=rr;exports.updateExpressionAt=gD;exports.updatePrivileges=Lg;exports.updateRoles=Ng;exports.updateRolesAndPrivileges=Uc;exports.updateSession=yD;exports.updateSharedCss=AI;exports.updateSharedDatasources=Qc;exports.uploadFile=GP;exports.uploadFileAndGetResponse=HP;exports.useAppDispatch=pO;exports.useAppSelector=kr;exports.useAttribute=UD;exports.useCollections=BD;exports.useDataclass=WD;exports.useDataclasses=jD;exports.useMethod=bO;exports.useMethods=mO;exports.useModelFlags=GD;exports.useModelProperties=HD;exports.wipeDebuggerSessions=Zg;
|
|
157
129
|
//# sourceMappingURL=index.cjs.js.map
|