@ws-ui/store 0.3.8 → 0.3.10
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 +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +239 -239
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -32,7 +32,7 @@ __p += '`),Ae&&(B+=`' +
|
|
|
32
32
|
function print() { __p += __j.call(arguments, '') }
|
|
33
33
|
`:`;
|
|
34
34
|
`)+B+`return __p
|
|
35
|
-
}`;var _e=Nd(function(){return Pe(b,te+"return "+B).apply(t,S)});if(_e.source=B,oc(_e))throw _e;return _e}function SS(n){return Fe(n).toLowerCase()}function TS(n){return Fe(n).toUpperCase()}function wS(n,o,c){if(n=Fe(n),n&&(c||o===t))return Gl(n);if(!n||!(o=kt(o)))return n;var d=ir(n),g=ir(o),b=Yl(d,g),S=Vl(d,g)+1;return Vr(d,b,S).join("")}function CS(n,o,c){if(n=Fe(n),n&&(c||o===t))return n.slice(0,Kl(n)+1);if(!n||!(o=kt(o)))return n;var d=ir(n),g=Vl(d,ir(o))+1;return Vr(d,0,g).join("")}function xS(n,o,c){if(n=Fe(n),n&&(c||o===t))return n.replace(K,"");if(!n||!(o=kt(o)))return n;var d=ir(n),g=Yl(d,ir(o));return Vr(d,g).join("")}function OS(n,o){var c=De,d=Ee;if(Ke(o)){var g="separator"in o?o.separator:g;c="length"in o?ye(o.length):c,d="omission"in o?kt(o.omission):d}n=Fe(n);var b=n.length;if(Rn(n)){var S=ir(n);b=S.length}if(c>=b)return n;var x=c-Dn(d);if(x<1)return d;var R=S?Vr(S,0,x).join(""):n.slice(0,x);if(g===t)return R+d;if(S&&(x+=R.length-x),sc(g)){if(n.slice(x).search(g)){var N,k=R;for(g.global||(g=Si(g.source,Fe(Vt.exec(g))+"g")),g.lastIndex=0;N=g.exec(k);)var B=N.index;R=R.slice(0,B===t?x:B)}}else if(n.indexOf(kt(g),x)!=x){var z=R.lastIndexOf(g);z>-1&&(R=R.slice(0,z))}return R+d}function AS(n){return n=Fe(n),n&&to.test(n)?n.replace(eo,ny):n}var RS=Nn(function(n,o,c){return n+(c?" ":"")+o.toUpperCase()}),uc=kf("toUpperCase");function Ld(n,o,c){return n=Fe(n),o=c?t:o,o===t?Qm(n)?sy(n):Um(n):n.match(o)||[]}var Nd=Se(function(n,o){try{return Lt(n,t,o)}catch(c){return oc(c)?c:new fe(c)}}),DS=xr(function(n,o){return Kt(o,function(c){c=vr(c),wr(n,c,nc(n[c],n))}),n});function PS(n){var o=n==null?0:n.length,c=re();return n=o?Ye(n,function(d){if(typeof d[1]!="function")throw new Jt(u);return[c(d[0]),d[1]]}):[],Se(function(d){for(var g=-1;++g<o;){var b=n[g];if(Lt(b[0],this,d))return Lt(b[1],this,d)}})}function FS(n){return nb(Qt(n,y))}function lc(n){return function(){return n}}function IS(n,o){return n==null||n!==n?o:n}var MS=Bf(),$S=Bf(!0);function It(n){return n}function fc(n){return vf(typeof n=="function"?n:Qt(n,y))}function LS(n){return yf(Qt(n,y))}function NS(n,o){return bf(n,Qt(o,y))}var kS=Se(function(n,o){return function(c){return _a(c,n,o)}}),jS=Se(function(n,o){return function(c){return _a(n,c,o)}});function dc(n,o,c){var d=ut(o),g=Ao(o,d);c==null&&!(Ke(o)&&(g.length||!d.length))&&(c=o,o=n,n=this,g=Ao(o,ut(o)));var b=!(Ke(c)&&"chain"in c)||!!c.chain,S=Ar(n);return Kt(g,function(x){var R=o[x];n[x]=R,S&&(n.prototype[x]=function(){var N=this.__chain__;if(b||N){var k=n(this.__wrapped__),B=k.__actions__=Dt(this.__actions__);return B.push({func:R,args:arguments,thisArg:n}),k.__chain__=N,k}return R.apply(n,Wr([this.value()],arguments))})}),n}function BS(){return pt._===this&&(pt._=dy),this}function pc(){}function WS(n){return n=ye(n),Se(function(o){return _f(o,n)})}var HS=qi(Ye),US=qi(Bl),qS=qi(gi);function kd(n){return Xi(n)?vi(vr(n)):_b(n)}function GS(n){return function(o){return n==null?t:mn(n,o)}}var YS=Hf(),VS=Hf(!0);function hc(){return[]}function gc(){return!1}function zS(){return{}}function KS(){return""}function JS(){return!0}function XS(n,o){if(n=ye(n),n<1||n>ct)return[];var c=V,d=vt(n,V);o=re(o),n-=V;for(var g=bi(d,o);++c<n;)o(c);return g}function QS(n){return he(n)?Ye(n,vr):jt(n)?[n]:Dt(ad(Fe(n)))}function ZS(n){var o=++ly;return Fe(n)+o}var eT=Mo(function(n,o){return n+o},0),tT=Gi("ceil"),rT=Mo(function(n,o){return n/o},1),nT=Gi("floor");function aT(n){return n&&n.length?Oo(n,It,Di):t}function oT(n,o){return n&&n.length?Oo(n,re(o,2),Di):t}function sT(n){return Ul(n,It)}function iT(n,o){return Ul(n,re(o,2))}function cT(n){return n&&n.length?Oo(n,It,Mi):t}function uT(n,o){return n&&n.length?Oo(n,re(o,2),Mi):t}var lT=Mo(function(n,o){return n*o},1),fT=Gi("round"),dT=Mo(function(n,o){return n-o},0);function pT(n){return n&&n.length?yi(n,It):0}function hT(n,o){return n&&n.length?yi(n,re(o,2)):0}return m.after=L_,m.ary=gd,m.assign=TE,m.assignIn=Rd,m.assignInWith=Vo,m.assignWith=wE,m.at=CE,m.before=vd,m.bind=nc,m.bindAll=DS,m.bindKey=md,m.castArray=z_,m.chain=dd,m.chunk=n0,m.compact=a0,m.concat=o0,m.cond=PS,m.conforms=FS,m.constant=lc,m.countBy=p_,m.create=xE,m.curry=yd,m.curryRight=bd,m.debounce=_d,m.defaults=OE,m.defaultsDeep=AE,m.defer=N_,m.delay=k_,m.difference=s0,m.differenceBy=i0,m.differenceWith=c0,m.drop=u0,m.dropRight=l0,m.dropRightWhile=f0,m.dropWhile=d0,m.fill=p0,m.filter=g_,m.flatMap=y_,m.flatMapDeep=b_,m.flatMapDepth=__,m.flatten=cd,m.flattenDeep=h0,m.flattenDepth=g0,m.flip=j_,m.flow=MS,m.flowRight=$S,m.fromPairs=v0,m.functions=$E,m.functionsIn=LE,m.groupBy=E_,m.initial=y0,m.intersection=b0,m.intersectionBy=_0,m.intersectionWith=E0,m.invert=kE,m.invertBy=jE,m.invokeMap=T_,m.iteratee=fc,m.keyBy=w_,m.keys=ut,m.keysIn=Ft,m.map=Wo,m.mapKeys=WE,m.mapValues=HE,m.matches=LS,m.matchesProperty=NS,m.memoize=Uo,m.merge=UE,m.mergeWith=Dd,m.method=kS,m.methodOf=jS,m.mixin=dc,m.negate=qo,m.nthArg=WS,m.omit=qE,m.omitBy=GE,m.once=B_,m.orderBy=C_,m.over=HS,m.overArgs=W_,m.overEvery=US,m.overSome=qS,m.partial=ac,m.partialRight=Ed,m.partition=x_,m.pick=YE,m.pickBy=Pd,m.property=kd,m.propertyOf=GS,m.pull=C0,m.pullAll=ld,m.pullAllBy=x0,m.pullAllWith=O0,m.pullAt=A0,m.range=YS,m.rangeRight=VS,m.rearg=H_,m.reject=R_,m.remove=R0,m.rest=U_,m.reverse=tc,m.sampleSize=P_,m.set=zE,m.setWith=KE,m.shuffle=F_,m.slice=D0,m.sortBy=$_,m.sortedUniq=N0,m.sortedUniqBy=k0,m.split=yS,m.spread=q_,m.tail=j0,m.take=B0,m.takeRight=W0,m.takeRightWhile=H0,m.takeWhile=U0,m.tap=a_,m.throttle=G_,m.thru=Bo,m.toArray=xd,m.toPairs=Fd,m.toPairsIn=Id,m.toPath=QS,m.toPlainObject=Ad,m.transform=JE,m.unary=Y_,m.union=q0,m.unionBy=G0,m.unionWith=Y0,m.uniq=V0,m.uniqBy=z0,m.uniqWith=K0,m.unset=XE,m.unzip=rc,m.unzipWith=fd,m.update=QE,m.updateWith=ZE,m.values=Bn,m.valuesIn=eS,m.without=J0,m.words=Ld,m.wrap=V_,m.xor=X0,m.xorBy=Q0,m.xorWith=Z0,m.zip=e_,m.zipObject=t_,m.zipObjectDeep=r_,m.zipWith=n_,m.entries=Fd,m.entriesIn=Id,m.extend=Rd,m.extendWith=Vo,dc(m,m),m.add=eT,m.attempt=Nd,m.camelCase=aS,m.capitalize=Md,m.ceil=tT,m.clamp=tS,m.clone=K_,m.cloneDeep=X_,m.cloneDeepWith=Q_,m.cloneWith=J_,m.conformsTo=Z_,m.deburr=$d,m.defaultTo=IS,m.divide=rT,m.endsWith=oS,m.eq=ur,m.escape=sS,m.escapeRegExp=iS,m.every=h_,m.find=v_,m.findIndex=sd,m.findKey=RE,m.findLast=m_,m.findLastIndex=id,m.findLastKey=DE,m.floor=nT,m.forEach=pd,m.forEachRight=hd,m.forIn=PE,m.forInRight=FE,m.forOwn=IE,m.forOwnRight=ME,m.get=ic,m.gt=eE,m.gte=tE,m.has=NE,m.hasIn=cc,m.head=ud,m.identity=It,m.includes=S_,m.indexOf=m0,m.inRange=rS,m.invoke=BE,m.isArguments=_n,m.isArray=he,m.isArrayBuffer=rE,m.isArrayLike=Pt,m.isArrayLikeObject=et,m.isBoolean=nE,m.isBuffer=zr,m.isDate=aE,m.isElement=oE,m.isEmpty=sE,m.isEqual=iE,m.isEqualWith=cE,m.isError=oc,m.isFinite=uE,m.isFunction=Ar,m.isInteger=Sd,m.isLength=Go,m.isMap=Td,m.isMatch=lE,m.isMatchWith=fE,m.isNaN=dE,m.isNative=pE,m.isNil=gE,m.isNull=hE,m.isNumber=wd,m.isObject=Ke,m.isObjectLike=Xe,m.isPlainObject=xa,m.isRegExp=sc,m.isSafeInteger=vE,m.isSet=Cd,m.isString=Yo,m.isSymbol=jt,m.isTypedArray=jn,m.isUndefined=mE,m.isWeakMap=yE,m.isWeakSet=bE,m.join=S0,m.kebabCase=cS,m.last=er,m.lastIndexOf=T0,m.lowerCase=uS,m.lowerFirst=lS,m.lt=_E,m.lte=EE,m.max=aT,m.maxBy=oT,m.mean=sT,m.meanBy=iT,m.min=cT,m.minBy=uT,m.stubArray=hc,m.stubFalse=gc,m.stubObject=zS,m.stubString=KS,m.stubTrue=JS,m.multiply=lT,m.nth=w0,m.noConflict=BS,m.noop=pc,m.now=Ho,m.pad=fS,m.padEnd=dS,m.padStart=pS,m.parseInt=hS,m.random=nS,m.reduce=O_,m.reduceRight=A_,m.repeat=gS,m.replace=vS,m.result=VE,m.round=fT,m.runInContext=A,m.sample=D_,m.size=I_,m.snakeCase=mS,m.some=M_,m.sortedIndex=P0,m.sortedIndexBy=F0,m.sortedIndexOf=I0,m.sortedLastIndex=M0,m.sortedLastIndexBy=$0,m.sortedLastIndexOf=L0,m.startCase=bS,m.startsWith=_S,m.subtract=dT,m.sum=pT,m.sumBy=hT,m.template=ES,m.times=XS,m.toFinite=Rr,m.toInteger=ye,m.toLength=Od,m.toLower=SS,m.toNumber=tr,m.toSafeInteger=SE,m.toString=Fe,m.toUpper=TS,m.trim=wS,m.trimEnd=CS,m.trimStart=xS,m.truncate=OS,m.unescape=AS,m.uniqueId=ZS,m.upperCase=RS,m.upperFirst=uc,m.each=pd,m.eachRight=hd,m.first=ud,dc(m,function(){var n={};return hr(m,function(o,c){Ne.call(m.prototype,c)||(n[c]=o)}),n}(),{chain:!1}),m.VERSION=a,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){m[n].placeholder=m}),Kt(["drop","take"],function(n,o){xe.prototype[n]=function(c){c=c===t?1:st(ye(c),0);var d=this.__filtered__&&!o?new xe(this):this.clone();return d.__filtered__?d.__takeCount__=vt(c,d.__takeCount__):d.__views__.push({size:vt(c,V),type:n+(d.__dir__<0?"Right":"")}),d},xe.prototype[n+"Right"]=function(c){return this.reverse()[n](c).reverse()}}),Kt(["filter","map","takeWhile"],function(n,o){var c=o+1,d=c==ke||c==rt;xe.prototype[n]=function(g){var b=this.clone();return b.__iteratees__.push({iteratee:re(g,3),type:c}),b.__filtered__=b.__filtered__||d,b}}),Kt(["head","last"],function(n,o){var c="take"+(o?"Right":"");xe.prototype[n]=function(){return this[c](1).value()[0]}}),Kt(["initial","tail"],function(n,o){var c="drop"+(o?"":"Right");xe.prototype[n]=function(){return this.__filtered__?new xe(this):this[c](1)}}),xe.prototype.compact=function(){return this.filter(It)},xe.prototype.find=function(n){return this.filter(n).head()},xe.prototype.findLast=function(n){return this.reverse().find(n)},xe.prototype.invokeMap=Se(function(n,o){return typeof n=="function"?new xe(this):this.map(function(c){return _a(c,n,o)})}),xe.prototype.reject=function(n){return this.filter(qo(re(n)))},xe.prototype.slice=function(n,o){n=ye(n);var c=this;return c.__filtered__&&(n>0||o<0)?new xe(c):(n<0?c=c.takeRight(-n):n&&(c=c.drop(n)),o!==t&&(o=ye(o),c=o<0?c.dropRight(-o):c.take(o-n)),c)},xe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},xe.prototype.toArray=function(){return this.take(V)},hr(xe.prototype,function(n,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),d=/^(?:head|last)$/.test(o),g=m[d?"take"+(o=="last"?"Right":""):o],b=d||/^find/.test(o);g&&(m.prototype[o]=function(){var S=this.__wrapped__,x=d?[1]:arguments,R=S instanceof xe,N=x[0],k=R||he(S),B=function(we){var Ae=g.apply(m,Wr([we],x));return d&&z?Ae[0]:Ae};k&&c&&typeof N=="function"&&N.length!=1&&(R=k=!1);var z=this.__chain__,te=!!this.__actions__.length,ae=b&&!z,_e=R&&!te;if(!b&&k){S=_e?S:new xe(this);var oe=n.apply(S,x);return oe.__actions__.push({func:Bo,args:[B],thisArg:t}),new Xt(oe,z)}return ae&&_e?n.apply(this,x):(oe=this.thru(B),ae?d?oe.value()[0]:oe.value():oe)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(n){var o=fo[n],c=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);m.prototype[n]=function(){var g=arguments;if(d&&!this.__chain__){var b=this.value();return o.apply(he(b)?b:[],g)}return this[c](function(S){return o.apply(he(S)?S:[],g)})}}),hr(xe.prototype,function(n,o){var c=m[o];if(c){var d=c.name+"";Ne.call(Mn,d)||(Mn[d]=[]),Mn[d].push({name:o,func:c})}}),Mn[Io(t,D).name]=[{name:"wrapper",func:t}],xe.prototype.clone=Ay,xe.prototype.reverse=Ry,xe.prototype.value=Dy,m.prototype.at=o_,m.prototype.chain=s_,m.prototype.commit=i_,m.prototype.next=c_,m.prototype.plant=l_,m.prototype.reverse=f_,m.prototype.toJSON=m.prototype.valueOf=m.prototype.value=d_,m.prototype.first=m.prototype.head,pa&&(m.prototype[pa]=u_),m},Pn=iy();dn?((dn.exports=Pn)._=Pn,fi._=Pn):pt._=Pn}).call(Pr)})(hs,hs.exports);var Ce=hs.exports;const C1=Os(Ce),Ya=2e3,$u={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Jr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},Rh="4DWS_PREFS",Dh=e=>`APP_STATE_${e}`,Ph=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function Fh(e){try{const r=Ph(),t=JSON.stringify(e);localStorage.setItem(Dh(r),t)}catch(r){console.error(r)}}function Ih(e){try{const r=JSON.stringify(e);localStorage.setItem(Rh,r)}catch(r){console.error(r)}}function Lu(){try{const e=localStorage.getItem(Rh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function Zn(){const e=Ph(),r=localStorage.getItem(Dh(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return $u}function Rs(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case v.FileFolderType.WEBFORM:return`${r}`;case v.FileFolderType.METHOD:case v.FileFolderType.CLASS:return s?`${r}.${s}`:r;case v.FileFolderType.ROLES:case v.FileFolderType.HTTP_HANDLERS:return r;default:return`${r}.${t}`}}const Mh=e=>{if(!e)return[];const r=new Map;return e.dataClasses.forEach(t=>{var i,u;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((u=a.position)==null?void 0:u.y)||0},dragHandle:".custom-drag-handle",data:t};r.set(t.name,s)}),Array.from(r.values())};function $h(e){return e?["json","4dmodel","webform","mform","qodoc"].includes(e.toLowerCase()):!1}const Xn=(e,r,t="")=>r?e.type==="currentState"&&e.value===r?{...e,value:t}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(a=>Xn(a,r,t))}:e:e;function Lh(e,r){const{id:t,label:a}=r;return{...e,components:Object.entries(e.components||{}).reduce((s,[i,u])=>({...s,[i]:{...u,custom:Object.entries(u.custom).reduce((l,[f,p])=>f===`states:${t}`?l:{...l,[f]:p},{}),props:Object.entries(u.props).reduce((l,[f,p])=>{let h=p;return f==="events"&&(h=h.map(y=>{var _,E;return y.type==="simple-action"?{...y,state:{...y.state,states:(E=(_=y.state)==null?void 0:_.states)==null?void 0:E.filter(T=>T!==t)}}:y})),{...l,[f]:h}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(s=>(s==null?void 0:s.id)!==t).map(s=>s.conditions?{...s,conditions:Xn(s.conditions,a)}:s)}}}const x1=(e,r)=>Ce.isEqual(e,r);function O1(){this.__data__=[],this.size=0}var A1=O1;function R1(e,r){return e===r||e!==e&&r!==r}var D1=R1,P1=D1;function F1(e,r){for(var t=e.length;t--;)if(P1(e[t][0],r))return t;return-1}var Ds=F1,I1=Ds,M1=Array.prototype,$1=M1.splice;function L1(e){var r=this.__data__,t=I1(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():$1.call(r,t,1),--this.size,!0}var N1=L1,k1=Ds;function j1(e){var r=this.__data__,t=k1(r,e);return t<0?void 0:r[t][1]}var B1=j1,W1=Ds;function H1(e){return W1(this.__data__,e)>-1}var U1=H1,q1=Ds;function G1(e,r){var t=this.__data__,a=q1(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var Y1=G1,V1=A1,z1=N1,K1=B1,J1=U1,X1=Y1;function ea(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}ea.prototype.clear=V1;ea.prototype.delete=z1;ea.prototype.get=K1;ea.prototype.has=J1;ea.prototype.set=X1;var Ps=ea,Q1=Ps;function Z1(){this.__data__=new Q1,this.size=0}var eC=Z1;function tC(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var rC=tC;function nC(e){return this.__data__.get(e)}var aC=nC;function oC(e){return this.__data__.has(e)}var sC=oC,iC=As,cC=Ga,uC="[object AsyncFunction]",lC="[object Function]",fC="[object GeneratorFunction]",dC="[object Proxy]";function pC(e){if(!cC(e))return!1;var r=iC(e);return r==lC||r==fC||r==uC||r==dC}var hC=pC,gC=yr,vC=gC["__core-js_shared__"],mC=vC,Cc=mC,fp=function(){var e=/[^.]+$/.exec(Cc&&Cc.keys&&Cc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yC(e){return!!fp&&fp in e}var bC=yC,_C=Function.prototype,EC=_C.toString;function SC(e){if(e!=null){try{return EC.call(e)}catch{}try{return e+""}catch{}}return""}var Nh=SC,TC=hC,wC=bC,CC=Ga,xC=Nh,OC=/[\\^$.*+?()[\]{}|]/g,AC=/^\[object .+?Constructor\]$/,RC=Function.prototype,DC=Object.prototype,PC=RC.toString,FC=DC.hasOwnProperty,IC=RegExp("^"+PC.call(FC).replace(OC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MC(e){if(!CC(e)||wC(e))return!1;var r=TC(e)?IC:AC;return r.test(xC(e))}var $C=MC;function LC(e,r){return e==null?void 0:e[r]}var NC=LC,kC=$C,jC=NC;function BC(e,r){var t=jC(e,r);return kC(t)?t:void 0}var ta=BC,WC=ta,HC=yr,UC=WC(HC,"Map"),Nu=UC,qC=ta,GC=qC(Object,"create"),Fs=GC,dp=Fs;function YC(){this.__data__=dp?dp(null):{},this.size=0}var VC=YC;function zC(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var KC=zC,JC=Fs,XC="__lodash_hash_undefined__",QC=Object.prototype,ZC=QC.hasOwnProperty;function ex(e){var r=this.__data__;if(JC){var t=r[e];return t===XC?void 0:t}return ZC.call(r,e)?r[e]:void 0}var tx=ex,rx=Fs,nx=Object.prototype,ax=nx.hasOwnProperty;function ox(e){var r=this.__data__;return rx?r[e]!==void 0:ax.call(r,e)}var sx=ox,ix=Fs,cx="__lodash_hash_undefined__";function ux(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ix&&r===void 0?cx:r,this}var lx=ux,fx=VC,dx=KC,px=tx,hx=sx,gx=lx;function ra(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}ra.prototype.clear=fx;ra.prototype.delete=dx;ra.prototype.get=px;ra.prototype.has=hx;ra.prototype.set=gx;var vx=ra,pp=vx,mx=Ps,yx=Nu;function bx(){this.size=0,this.__data__={hash:new pp,map:new(yx||mx),string:new pp}}var _x=bx;function Ex(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Sx=Ex,Tx=Sx;function wx(e,r){var t=e.__data__;return Tx(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Is=wx,Cx=Is;function xx(e){var r=Cx(this,e).delete(e);return this.size-=r?1:0,r}var Ox=xx,Ax=Is;function Rx(e){return Ax(this,e).get(e)}var Dx=Rx,Px=Is;function Fx(e){return Px(this,e).has(e)}var Ix=Fx,Mx=Is;function $x(e,r){var t=Mx(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var Lx=$x,Nx=_x,kx=Ox,jx=Dx,Bx=Ix,Wx=Lx;function na(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}na.prototype.clear=Nx;na.prototype.delete=kx;na.prototype.get=jx;na.prototype.has=Bx;na.prototype.set=Wx;var kh=na,Hx=Ps,Ux=Nu,qx=kh,Gx=200;function Yx(e,r){var t=this.__data__;if(t instanceof Hx){var a=t.__data__;if(!Ux||a.length<Gx-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new qx(a)}return t.set(e,r),this.size=t.size,this}var Vx=Yx,zx=Ps,Kx=eC,Jx=rC,Xx=aC,Qx=sC,Zx=Vx;function Va(e){var r=this.__data__=new zx(e);this.size=r.size}Va.prototype.clear=Kx;Va.prototype.delete=Jx;Va.prototype.get=Xx;Va.prototype.has=Qx;Va.prototype.set=Zx;var eO="__lodash_hash_undefined__";function tO(e){return this.__data__.set(e,eO),this}var rO=tO;function nO(e){return this.__data__.has(e)}var aO=nO,oO=kh,sO=rO,iO=aO;function Xc(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new oO;++r<t;)this.add(e[r])}Xc.prototype.add=Xc.prototype.push=sO;Xc.prototype.has=iO;var cO=yr;cO.Uint8Array;var hp=Iu,gp=hp?hp.prototype:void 0;gp&&gp.valueOf;var uO=As,lO=Mu,fO="[object Arguments]";function dO(e){return lO(e)&&uO(e)==fO}var pO=dO,vp=pO,hO=Mu,jh=Object.prototype,gO=jh.hasOwnProperty,vO=jh.propertyIsEnumerable;vp(function(){return arguments}());var gs={exports:{}};function mO(){return!1}var yO=mO;gs.exports;(function(e,r){var t=yr,a=yO,s=r&&!r.nodeType&&r,i=s&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===s,l=u?t.Buffer:void 0,f=l?l.isBuffer:void 0,p=f||a;e.exports=p})(gs,gs.exports);gs.exports;var vs={exports:{}};vs.exports;(function(e,r){var t=Ch,a=r&&!r.nodeType&&r,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,u=i&&t.process,l=function(){try{var f=s&&s.require&&s.require("util").types;return f||u&&u.binding&&u.binding("util")}catch{}}();e.exports=l})(vs,vs.exports);var bO=vs.exports,mp=bO;mp&&mp.isTypedArray;var _O=ta,EO=yr,SO=_O(EO,"DataView"),TO=SO,wO=ta,CO=yr,xO=wO(CO,"Promise"),OO=xO,AO=ta,RO=yr,DO=AO(RO,"Set"),PO=DO,FO=ta,IO=yr,MO=FO(IO,"WeakMap"),$O=MO,Qc=TO,Zc=Nu,eu=OO,tu=PO,ru=$O,Bh=As,aa=Nh,yp="[object Map]",LO="[object Object]",bp="[object Promise]",_p="[object Set]",Ep="[object WeakMap]",Sp="[object DataView]",NO=aa(Qc),kO=aa(Zc),jO=aa(eu),BO=aa(tu),WO=aa(ru),Wn=Bh;(Qc&&Wn(new Qc(new ArrayBuffer(1)))!=Sp||Zc&&Wn(new Zc)!=yp||eu&&Wn(eu.resolve())!=bp||tu&&Wn(new tu)!=_p||ru&&Wn(new ru)!=Ep)&&(Wn=function(e){var r=Bh(e),t=r==LO?e.constructor:void 0,a=t?aa(t):"";if(a)switch(a){case NO:return Sp;case kO:return yp;case jO:return bp;case BO:return _p;case WO:return Ep}return r});typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@ws-ui/craftjs-utils"]="0.2.3");const HO="ROOT";ET(),_T();var Tp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(Tp||(Tp={}));function ku(e){return`Debugger/${e}`}function Wh(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const UO=typeof process=="object"&&process&&process.platform==="win32";var qO=UO?{sep:"\\"}:{sep:"/"},GO=Hh;function Hh(e,r,t){e instanceof RegExp&&(e=wp(e,t)),r instanceof RegExp&&(r=wp(r,t));var a=Uh(e,r,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]+r.length)}}function wp(e,r){var t=r.match(e);return t?t[0]:null}Hh.range=Uh;function Uh(e,r,t){var a,s,i,u,l,f=t.indexOf(e),p=t.indexOf(r,f+1),h=f;if(f>=0&&p>0){if(e===r)return[f,p];for(a=[],i=t.length;h>=0&&!l;)h==f?(a.push(h),f=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,u=p),p=t.indexOf(r,h+1)),h=f<p&&f>=0?f:p;a.length&&(l=[i,u])}return l}var qh=GO,YO=KO,Gh="\0SLASH"+Math.random()+"\0",Yh="\0OPEN"+Math.random()+"\0",ju="\0CLOSE"+Math.random()+"\0",Vh="\0COMMA"+Math.random()+"\0",zh="\0PERIOD"+Math.random()+"\0";function xc(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function VO(e){return e.split("\\\\").join(Gh).split("\\{").join(Yh).split("\\}").join(ju).split("\\,").join(Vh).split("\\.").join(zh)}function zO(e){return e.split(Gh).join("\\").split(Yh).join("{").split(ju).join("}").split(Vh).join(",").split(zh).join(".")}function Kh(e){if(!e)return[""];var r=[],t=qh("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,u=a.split(",");u[u.length-1]+="{"+s+"}";var l=Kh(i);return i.length&&(u[u.length-1]+=l.shift(),u.push.apply(u,l)),r.push.apply(r,u),r}function KO(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Pa(VO(e),!0).map(zO)):[]}function JO(e){return"{"+e+"}"}function XO(e){return/^-?0\d/.test(e)}function QO(e,r){return e<=r}function ZO(e,r){return e>=r}function Pa(e,r){var t=[],a=qh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Pa(a.post,!1):[""];if(/\$$/.test(a.pre))for(var u=0;u<i.length;u++){var l=s+"{"+a.body+"}"+i[u];t.push(l)}else{var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=f||p,y=a.body.indexOf(",")>=0;if(!h&&!y)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+ju+a.post,Pa(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Kh(a.body),_.length===1&&(_=Pa(_[0],!1).map(JO),_.length===1))return i.map(function(De){return a.pre+_[0]+De});var E;if(h){var T=xc(_[0]),C=xc(_[1]),O=Math.max(_[0].length,_[1].length),D=_.length==3?Math.abs(xc(_[2])):1,F=QO,M=C<T;M&&(D*=-1,F=ZO);var L=_.some(XO);E=[];for(var I=T;F(I,C);I+=D){var G;if(p)G=String.fromCharCode(I),G==="\\"&&(G="");else if(G=String(I),L){var W=O-G.length;if(W>0){var q=new Array(W+1).join("0");I<0?G="-"+q+G.slice(1):G=q+G}}E.push(G)}}else{E=[];for(var ee=0;ee<_.length;ee++)E.push.apply(E,Pa(_[ee],!1))}for(var ee=0;ee<E.length;ee++)for(var u=0;u<i.length;u++){var l=s+E[ee]+i[u];(!r||h||l)&&t.push(l)}}return t}const Ut=Jh=(e,r,t={})=>(ms(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ms(r,t).match(e));var Jh=Ut;const nu=qO;Ut.sep=nu.sep;const fr=Symbol("globstar **");Ut.GLOBSTAR=fr;const eA=YO,Cp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},au="[^/]",Oc=au+"*?",tA="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",rA="(?:(?!(?:\\/|^)\\.).)*?",Xh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),xp=Xh("().*{}+?[]^$\\!"),nA=Xh("[.("),Op=/\/+/;Ut.filter=(e,r={})=>(t,a,s)=>Ut(t,e,r);const Kr=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Ut.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ut;const r=Ut,t=(a,s,i)=>r(a,s,Kr(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,Kr(e,i))}},t.Minimatch.defaults=a=>r.defaults(Kr(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,Kr(e,s)),t.defaults=a=>r.defaults(Kr(e,a)),t.makeRe=(a,s)=>r.makeRe(a,Kr(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,Kr(e,s)),t.match=(a,s,i)=>r.match(a,s,Kr(e,i)),t};Ut.braceExpand=(e,r)=>Qh(e,r);const Qh=(e,r={})=>(ms(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:eA(e)),aA=1024*64,ms=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>aA)throw new TypeError("pattern is too long")},Ac=Symbol("subparse");Ut.makeRe=(e,r)=>new Ms(e,r||{}).makeRe();Ut.match=(e,r,t={})=>{const a=new Ms(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const oA=e=>e.replace(/\\(.)/g,"$1"),sA=e=>e.replace(/\\([^-\]])/g,"$1"),iA=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),cA=e=>e.replace(/[[\]\\]/g,"\\$&");class Ms{constructor(r,t){ms(r),t||(t={}),this.options=t,this.set=[],this.pattern=r,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 r=this.pattern,t=this.options;if(!t.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){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(Op)),this.debug(this.pattern,a),a=a.map((s,i,u)=>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 r=this.pattern;let t=!1,a=0;for(let s=0;s<r.length&&r.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=r.slice(a)),this.negate=t}matchOne(r,t,a){var s=this.options;this.debug("matchOne",{this:this,file:r,pattern:t}),this.debug("matchOne",r.length,t.length);for(var i=0,u=0,l=r.length,f=t.length;i<l&&u<f;i++,u++){this.debug("matchOne loop");var p=t[u],h=r[i];if(this.debug(t,p,h),p===!1)return!1;if(p===fr){this.debug("GLOBSTAR",[t,p,h]);var y=i,_=u+1;if(_===f){for(this.debug("** at the end");i<l;i++)if(r[i]==="."||r[i]===".."||!s.dot&&r[i].charAt(0)===".")return!1;return!0}for(;y<l;){var E=r[y];if(this.debug(`
|
|
35
|
+
}`;var _e=Nd(function(){return Pe(b,te+"return "+B).apply(t,S)});if(_e.source=B,oc(_e))throw _e;return _e}function SS(n){return Fe(n).toLowerCase()}function TS(n){return Fe(n).toUpperCase()}function wS(n,o,c){if(n=Fe(n),n&&(c||o===t))return Gl(n);if(!n||!(o=kt(o)))return n;var d=ir(n),g=ir(o),b=Yl(d,g),S=Vl(d,g)+1;return Vr(d,b,S).join("")}function CS(n,o,c){if(n=Fe(n),n&&(c||o===t))return n.slice(0,Kl(n)+1);if(!n||!(o=kt(o)))return n;var d=ir(n),g=Vl(d,ir(o))+1;return Vr(d,0,g).join("")}function xS(n,o,c){if(n=Fe(n),n&&(c||o===t))return n.replace(K,"");if(!n||!(o=kt(o)))return n;var d=ir(n),g=Yl(d,ir(o));return Vr(d,g).join("")}function OS(n,o){var c=De,d=Ee;if(Ke(o)){var g="separator"in o?o.separator:g;c="length"in o?ye(o.length):c,d="omission"in o?kt(o.omission):d}n=Fe(n);var b=n.length;if(Rn(n)){var S=ir(n);b=S.length}if(c>=b)return n;var x=c-Dn(d);if(x<1)return d;var R=S?Vr(S,0,x).join(""):n.slice(0,x);if(g===t)return R+d;if(S&&(x+=R.length-x),sc(g)){if(n.slice(x).search(g)){var N,k=R;for(g.global||(g=Si(g.source,Fe(Vt.exec(g))+"g")),g.lastIndex=0;N=g.exec(k);)var B=N.index;R=R.slice(0,B===t?x:B)}}else if(n.indexOf(kt(g),x)!=x){var z=R.lastIndexOf(g);z>-1&&(R=R.slice(0,z))}return R+d}function AS(n){return n=Fe(n),n&&to.test(n)?n.replace(eo,ny):n}var RS=Nn(function(n,o,c){return n+(c?" ":"")+o.toUpperCase()}),uc=kf("toUpperCase");function Ld(n,o,c){return n=Fe(n),o=c?t:o,o===t?Qm(n)?sy(n):Um(n):n.match(o)||[]}var Nd=Se(function(n,o){try{return Lt(n,t,o)}catch(c){return oc(c)?c:new fe(c)}}),DS=xr(function(n,o){return Kt(o,function(c){c=vr(c),wr(n,c,nc(n[c],n))}),n});function PS(n){var o=n==null?0:n.length,c=re();return n=o?Ye(n,function(d){if(typeof d[1]!="function")throw new Jt(u);return[c(d[0]),d[1]]}):[],Se(function(d){for(var g=-1;++g<o;){var b=n[g];if(Lt(b[0],this,d))return Lt(b[1],this,d)}})}function FS(n){return nb(Qt(n,y))}function lc(n){return function(){return n}}function IS(n,o){return n==null||n!==n?o:n}var MS=Bf(),$S=Bf(!0);function It(n){return n}function fc(n){return vf(typeof n=="function"?n:Qt(n,y))}function LS(n){return yf(Qt(n,y))}function NS(n,o){return bf(n,Qt(o,y))}var kS=Se(function(n,o){return function(c){return _a(c,n,o)}}),jS=Se(function(n,o){return function(c){return _a(n,c,o)}});function dc(n,o,c){var d=ut(o),g=Ao(o,d);c==null&&!(Ke(o)&&(g.length||!d.length))&&(c=o,o=n,n=this,g=Ao(o,ut(o)));var b=!(Ke(c)&&"chain"in c)||!!c.chain,S=Ar(n);return Kt(g,function(x){var R=o[x];n[x]=R,S&&(n.prototype[x]=function(){var N=this.__chain__;if(b||N){var k=n(this.__wrapped__),B=k.__actions__=Dt(this.__actions__);return B.push({func:R,args:arguments,thisArg:n}),k.__chain__=N,k}return R.apply(n,Wr([this.value()],arguments))})}),n}function BS(){return pt._===this&&(pt._=dy),this}function pc(){}function WS(n){return n=ye(n),Se(function(o){return _f(o,n)})}var HS=qi(Ye),US=qi(Bl),qS=qi(gi);function kd(n){return Xi(n)?vi(vr(n)):_b(n)}function GS(n){return function(o){return n==null?t:mn(n,o)}}var YS=Hf(),VS=Hf(!0);function hc(){return[]}function gc(){return!1}function zS(){return{}}function KS(){return""}function JS(){return!0}function XS(n,o){if(n=ye(n),n<1||n>ct)return[];var c=V,d=vt(n,V);o=re(o),n-=V;for(var g=bi(d,o);++c<n;)o(c);return g}function QS(n){return he(n)?Ye(n,vr):jt(n)?[n]:Dt(ad(Fe(n)))}function ZS(n){var o=++ly;return Fe(n)+o}var eT=Mo(function(n,o){return n+o},0),tT=Gi("ceil"),rT=Mo(function(n,o){return n/o},1),nT=Gi("floor");function aT(n){return n&&n.length?Oo(n,It,Di):t}function oT(n,o){return n&&n.length?Oo(n,re(o,2),Di):t}function sT(n){return Ul(n,It)}function iT(n,o){return Ul(n,re(o,2))}function cT(n){return n&&n.length?Oo(n,It,Mi):t}function uT(n,o){return n&&n.length?Oo(n,re(o,2),Mi):t}var lT=Mo(function(n,o){return n*o},1),fT=Gi("round"),dT=Mo(function(n,o){return n-o},0);function pT(n){return n&&n.length?yi(n,It):0}function hT(n,o){return n&&n.length?yi(n,re(o,2)):0}return m.after=L_,m.ary=gd,m.assign=TE,m.assignIn=Rd,m.assignInWith=Vo,m.assignWith=wE,m.at=CE,m.before=vd,m.bind=nc,m.bindAll=DS,m.bindKey=md,m.castArray=z_,m.chain=dd,m.chunk=n0,m.compact=a0,m.concat=o0,m.cond=PS,m.conforms=FS,m.constant=lc,m.countBy=p_,m.create=xE,m.curry=yd,m.curryRight=bd,m.debounce=_d,m.defaults=OE,m.defaultsDeep=AE,m.defer=N_,m.delay=k_,m.difference=s0,m.differenceBy=i0,m.differenceWith=c0,m.drop=u0,m.dropRight=l0,m.dropRightWhile=f0,m.dropWhile=d0,m.fill=p0,m.filter=g_,m.flatMap=y_,m.flatMapDeep=b_,m.flatMapDepth=__,m.flatten=cd,m.flattenDeep=h0,m.flattenDepth=g0,m.flip=j_,m.flow=MS,m.flowRight=$S,m.fromPairs=v0,m.functions=$E,m.functionsIn=LE,m.groupBy=E_,m.initial=y0,m.intersection=b0,m.intersectionBy=_0,m.intersectionWith=E0,m.invert=kE,m.invertBy=jE,m.invokeMap=T_,m.iteratee=fc,m.keyBy=w_,m.keys=ut,m.keysIn=Ft,m.map=Wo,m.mapKeys=WE,m.mapValues=HE,m.matches=LS,m.matchesProperty=NS,m.memoize=Uo,m.merge=UE,m.mergeWith=Dd,m.method=kS,m.methodOf=jS,m.mixin=dc,m.negate=qo,m.nthArg=WS,m.omit=qE,m.omitBy=GE,m.once=B_,m.orderBy=C_,m.over=HS,m.overArgs=W_,m.overEvery=US,m.overSome=qS,m.partial=ac,m.partialRight=Ed,m.partition=x_,m.pick=YE,m.pickBy=Pd,m.property=kd,m.propertyOf=GS,m.pull=C0,m.pullAll=ld,m.pullAllBy=x0,m.pullAllWith=O0,m.pullAt=A0,m.range=YS,m.rangeRight=VS,m.rearg=H_,m.reject=R_,m.remove=R0,m.rest=U_,m.reverse=tc,m.sampleSize=P_,m.set=zE,m.setWith=KE,m.shuffle=F_,m.slice=D0,m.sortBy=$_,m.sortedUniq=N0,m.sortedUniqBy=k0,m.split=yS,m.spread=q_,m.tail=j0,m.take=B0,m.takeRight=W0,m.takeRightWhile=H0,m.takeWhile=U0,m.tap=a_,m.throttle=G_,m.thru=Bo,m.toArray=xd,m.toPairs=Fd,m.toPairsIn=Id,m.toPath=QS,m.toPlainObject=Ad,m.transform=JE,m.unary=Y_,m.union=q0,m.unionBy=G0,m.unionWith=Y0,m.uniq=V0,m.uniqBy=z0,m.uniqWith=K0,m.unset=XE,m.unzip=rc,m.unzipWith=fd,m.update=QE,m.updateWith=ZE,m.values=Bn,m.valuesIn=eS,m.without=J0,m.words=Ld,m.wrap=V_,m.xor=X0,m.xorBy=Q0,m.xorWith=Z0,m.zip=e_,m.zipObject=t_,m.zipObjectDeep=r_,m.zipWith=n_,m.entries=Fd,m.entriesIn=Id,m.extend=Rd,m.extendWith=Vo,dc(m,m),m.add=eT,m.attempt=Nd,m.camelCase=aS,m.capitalize=Md,m.ceil=tT,m.clamp=tS,m.clone=K_,m.cloneDeep=X_,m.cloneDeepWith=Q_,m.cloneWith=J_,m.conformsTo=Z_,m.deburr=$d,m.defaultTo=IS,m.divide=rT,m.endsWith=oS,m.eq=ur,m.escape=sS,m.escapeRegExp=iS,m.every=h_,m.find=v_,m.findIndex=sd,m.findKey=RE,m.findLast=m_,m.findLastIndex=id,m.findLastKey=DE,m.floor=nT,m.forEach=pd,m.forEachRight=hd,m.forIn=PE,m.forInRight=FE,m.forOwn=IE,m.forOwnRight=ME,m.get=ic,m.gt=eE,m.gte=tE,m.has=NE,m.hasIn=cc,m.head=ud,m.identity=It,m.includes=S_,m.indexOf=m0,m.inRange=rS,m.invoke=BE,m.isArguments=_n,m.isArray=he,m.isArrayBuffer=rE,m.isArrayLike=Pt,m.isArrayLikeObject=et,m.isBoolean=nE,m.isBuffer=zr,m.isDate=aE,m.isElement=oE,m.isEmpty=sE,m.isEqual=iE,m.isEqualWith=cE,m.isError=oc,m.isFinite=uE,m.isFunction=Ar,m.isInteger=Sd,m.isLength=Go,m.isMap=Td,m.isMatch=lE,m.isMatchWith=fE,m.isNaN=dE,m.isNative=pE,m.isNil=gE,m.isNull=hE,m.isNumber=wd,m.isObject=Ke,m.isObjectLike=Xe,m.isPlainObject=xa,m.isRegExp=sc,m.isSafeInteger=vE,m.isSet=Cd,m.isString=Yo,m.isSymbol=jt,m.isTypedArray=jn,m.isUndefined=mE,m.isWeakMap=yE,m.isWeakSet=bE,m.join=S0,m.kebabCase=cS,m.last=er,m.lastIndexOf=T0,m.lowerCase=uS,m.lowerFirst=lS,m.lt=_E,m.lte=EE,m.max=aT,m.maxBy=oT,m.mean=sT,m.meanBy=iT,m.min=cT,m.minBy=uT,m.stubArray=hc,m.stubFalse=gc,m.stubObject=zS,m.stubString=KS,m.stubTrue=JS,m.multiply=lT,m.nth=w0,m.noConflict=BS,m.noop=pc,m.now=Ho,m.pad=fS,m.padEnd=dS,m.padStart=pS,m.parseInt=hS,m.random=nS,m.reduce=O_,m.reduceRight=A_,m.repeat=gS,m.replace=vS,m.result=VE,m.round=fT,m.runInContext=A,m.sample=D_,m.size=I_,m.snakeCase=mS,m.some=M_,m.sortedIndex=P0,m.sortedIndexBy=F0,m.sortedIndexOf=I0,m.sortedLastIndex=M0,m.sortedLastIndexBy=$0,m.sortedLastIndexOf=L0,m.startCase=bS,m.startsWith=_S,m.subtract=dT,m.sum=pT,m.sumBy=hT,m.template=ES,m.times=XS,m.toFinite=Rr,m.toInteger=ye,m.toLength=Od,m.toLower=SS,m.toNumber=tr,m.toSafeInteger=SE,m.toString=Fe,m.toUpper=TS,m.trim=wS,m.trimEnd=CS,m.trimStart=xS,m.truncate=OS,m.unescape=AS,m.uniqueId=ZS,m.upperCase=RS,m.upperFirst=uc,m.each=pd,m.eachRight=hd,m.first=ud,dc(m,function(){var n={};return hr(m,function(o,c){Ne.call(m.prototype,c)||(n[c]=o)}),n}(),{chain:!1}),m.VERSION=a,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){m[n].placeholder=m}),Kt(["drop","take"],function(n,o){xe.prototype[n]=function(c){c=c===t?1:st(ye(c),0);var d=this.__filtered__&&!o?new xe(this):this.clone();return d.__filtered__?d.__takeCount__=vt(c,d.__takeCount__):d.__views__.push({size:vt(c,V),type:n+(d.__dir__<0?"Right":"")}),d},xe.prototype[n+"Right"]=function(c){return this.reverse()[n](c).reverse()}}),Kt(["filter","map","takeWhile"],function(n,o){var c=o+1,d=c==ke||c==rt;xe.prototype[n]=function(g){var b=this.clone();return b.__iteratees__.push({iteratee:re(g,3),type:c}),b.__filtered__=b.__filtered__||d,b}}),Kt(["head","last"],function(n,o){var c="take"+(o?"Right":"");xe.prototype[n]=function(){return this[c](1).value()[0]}}),Kt(["initial","tail"],function(n,o){var c="drop"+(o?"":"Right");xe.prototype[n]=function(){return this.__filtered__?new xe(this):this[c](1)}}),xe.prototype.compact=function(){return this.filter(It)},xe.prototype.find=function(n){return this.filter(n).head()},xe.prototype.findLast=function(n){return this.reverse().find(n)},xe.prototype.invokeMap=Se(function(n,o){return typeof n=="function"?new xe(this):this.map(function(c){return _a(c,n,o)})}),xe.prototype.reject=function(n){return this.filter(qo(re(n)))},xe.prototype.slice=function(n,o){n=ye(n);var c=this;return c.__filtered__&&(n>0||o<0)?new xe(c):(n<0?c=c.takeRight(-n):n&&(c=c.drop(n)),o!==t&&(o=ye(o),c=o<0?c.dropRight(-o):c.take(o-n)),c)},xe.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},xe.prototype.toArray=function(){return this.take(V)},hr(xe.prototype,function(n,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),d=/^(?:head|last)$/.test(o),g=m[d?"take"+(o=="last"?"Right":""):o],b=d||/^find/.test(o);g&&(m.prototype[o]=function(){var S=this.__wrapped__,x=d?[1]:arguments,R=S instanceof xe,N=x[0],k=R||he(S),B=function(we){var Ae=g.apply(m,Wr([we],x));return d&&z?Ae[0]:Ae};k&&c&&typeof N=="function"&&N.length!=1&&(R=k=!1);var z=this.__chain__,te=!!this.__actions__.length,ae=b&&!z,_e=R&&!te;if(!b&&k){S=_e?S:new xe(this);var oe=n.apply(S,x);return oe.__actions__.push({func:Bo,args:[B],thisArg:t}),new Xt(oe,z)}return ae&&_e?n.apply(this,x):(oe=this.thru(B),ae?d?oe.value()[0]:oe.value():oe)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(n){var o=fo[n],c=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);m.prototype[n]=function(){var g=arguments;if(d&&!this.__chain__){var b=this.value();return o.apply(he(b)?b:[],g)}return this[c](function(S){return o.apply(he(S)?S:[],g)})}}),hr(xe.prototype,function(n,o){var c=m[o];if(c){var d=c.name+"";Ne.call(Mn,d)||(Mn[d]=[]),Mn[d].push({name:o,func:c})}}),Mn[Io(t,D).name]=[{name:"wrapper",func:t}],xe.prototype.clone=Ay,xe.prototype.reverse=Ry,xe.prototype.value=Dy,m.prototype.at=o_,m.prototype.chain=s_,m.prototype.commit=i_,m.prototype.next=c_,m.prototype.plant=l_,m.prototype.reverse=f_,m.prototype.toJSON=m.prototype.valueOf=m.prototype.value=d_,m.prototype.first=m.prototype.head,pa&&(m.prototype[pa]=u_),m},Pn=iy();dn?((dn.exports=Pn)._=Pn,fi._=Pn):pt._=Pn}).call(Pr)})(hs,hs.exports);var Ce=hs.exports;const C1=Os(Ce),Ya=2e3,$u={tabs:[],activeTab:"",recent:[],roles:{roles:{},privileges:{},flags:{touched:!1},selectedTab:"roles",forceLogin:!1},sharedCSS:{state:"loading",styles:[]},debugger:{meta:{state:Jr.DETACHED},list:[],sessions:[],expressions:[]},webforms:{templates:{selectedGroup:"",data:[]},components:[],inspector:{css:{active:!1},datasource:{active:!1}},datasources:{theme:"grey"},flags:{"sidebar.section.resizable":!0}}},Rh="4DWS_PREFS",Dh=e=>`APP_STATE_${e}`,Ph=()=>{var e,r;return((r=(e=window==null?void 0:window.$$datastores)==null?void 0:e.ds)==null?void 0:r.getBaseID())||""};function Fh(e){try{const r=Ph(),t=JSON.stringify(e);localStorage.setItem(Dh(r),t)}catch(r){console.error(r)}}function Ih(e){try{const r=JSON.stringify(e);localStorage.setItem(Rh,r)}catch(r){console.error(r)}}function Lu(){try{const e=localStorage.getItem(Rh);if(e)return JSON.parse(e)}catch(e){console.error(e)}}function Zn(){const e=Ph(),r=localStorage.getItem(Dh(e));if(r){const t=JSON.parse(r);return t.tabs=t.tabs.map(a=>({...a,flags:{...a.flags,enabled:!0}})),t}return $u}function Rs(e){const{name:r,type:t,path:a}=e,s=a.split(".").at(-1);switch(t){case v.FileFolderType.WEBFORM:case v.FileFolderType.ROLES:case v.FileFolderType.HTTP_HANDLERS:case v.FileFolderType.SETTINGS:case v.FileFolderType.MODEL:return r;case v.FileFolderType.METHOD:case v.FileFolderType.CLASS:default:return s?`${r}.${s}`:r}}const Mh=e=>{if(!e)return[];const r=new Map;return e.dataClasses.forEach(t=>{var i,u;const a=t.extraProperties||{},s={id:t.className,type:"table",position:{x:((i=a.position)==null?void 0:i.x)||0,y:((u=a.position)==null?void 0:u.y)||0},dragHandle:".custom-drag-handle",data:t};r.set(t.name,s)}),Array.from(r.values())};function $h(e){return e?["json","4dmodel","webform","mform","qodoc"].includes(e.toLowerCase()):!1}const Xn=(e,r,t="")=>r?e.type==="currentState"&&e.value===r?{...e,value:t}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(a=>Xn(a,r,t))}:e:e;function Lh(e,r){const{id:t,label:a}=r;return{...e,components:Object.entries(e.components||{}).reduce((s,[i,u])=>({...s,[i]:{...u,custom:Object.entries(u.custom).reduce((l,[f,p])=>f===`states:${t}`?l:{...l,[f]:p},{}),props:Object.entries(u.props).reduce((l,[f,p])=>{let h=p;return f==="events"&&(h=h.map(y=>{var _,E;return y.type==="simple-action"?{...y,state:{...y.state,states:(E=(_=y.state)==null?void 0:_.states)==null?void 0:E.filter(T=>T!==t)}}:y})),{...l,[f]:h}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(s=>(s==null?void 0:s.id)!==t).map(s=>s.conditions?{...s,conditions:Xn(s.conditions,a)}:s)}}}const x1=(e,r)=>Ce.isEqual(e,r);function O1(){this.__data__=[],this.size=0}var A1=O1;function R1(e,r){return e===r||e!==e&&r!==r}var D1=R1,P1=D1;function F1(e,r){for(var t=e.length;t--;)if(P1(e[t][0],r))return t;return-1}var Ds=F1,I1=Ds,M1=Array.prototype,$1=M1.splice;function L1(e){var r=this.__data__,t=I1(r,e);if(t<0)return!1;var a=r.length-1;return t==a?r.pop():$1.call(r,t,1),--this.size,!0}var N1=L1,k1=Ds;function j1(e){var r=this.__data__,t=k1(r,e);return t<0?void 0:r[t][1]}var B1=j1,W1=Ds;function H1(e){return W1(this.__data__,e)>-1}var U1=H1,q1=Ds;function G1(e,r){var t=this.__data__,a=q1(t,e);return a<0?(++this.size,t.push([e,r])):t[a][1]=r,this}var Y1=G1,V1=A1,z1=N1,K1=B1,J1=U1,X1=Y1;function ea(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}ea.prototype.clear=V1;ea.prototype.delete=z1;ea.prototype.get=K1;ea.prototype.has=J1;ea.prototype.set=X1;var Ps=ea,Q1=Ps;function Z1(){this.__data__=new Q1,this.size=0}var eC=Z1;function tC(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var rC=tC;function nC(e){return this.__data__.get(e)}var aC=nC;function oC(e){return this.__data__.has(e)}var sC=oC,iC=As,cC=Ga,uC="[object AsyncFunction]",lC="[object Function]",fC="[object GeneratorFunction]",dC="[object Proxy]";function pC(e){if(!cC(e))return!1;var r=iC(e);return r==lC||r==fC||r==uC||r==dC}var hC=pC,gC=yr,vC=gC["__core-js_shared__"],mC=vC,Cc=mC,fp=function(){var e=/[^.]+$/.exec(Cc&&Cc.keys&&Cc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yC(e){return!!fp&&fp in e}var bC=yC,_C=Function.prototype,EC=_C.toString;function SC(e){if(e!=null){try{return EC.call(e)}catch{}try{return e+""}catch{}}return""}var Nh=SC,TC=hC,wC=bC,CC=Ga,xC=Nh,OC=/[\\^$.*+?()[\]{}|]/g,AC=/^\[object .+?Constructor\]$/,RC=Function.prototype,DC=Object.prototype,PC=RC.toString,FC=DC.hasOwnProperty,IC=RegExp("^"+PC.call(FC).replace(OC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MC(e){if(!CC(e)||wC(e))return!1;var r=TC(e)?IC:AC;return r.test(xC(e))}var $C=MC;function LC(e,r){return e==null?void 0:e[r]}var NC=LC,kC=$C,jC=NC;function BC(e,r){var t=jC(e,r);return kC(t)?t:void 0}var ta=BC,WC=ta,HC=yr,UC=WC(HC,"Map"),Nu=UC,qC=ta,GC=qC(Object,"create"),Fs=GC,dp=Fs;function YC(){this.__data__=dp?dp(null):{},this.size=0}var VC=YC;function zC(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var KC=zC,JC=Fs,XC="__lodash_hash_undefined__",QC=Object.prototype,ZC=QC.hasOwnProperty;function ex(e){var r=this.__data__;if(JC){var t=r[e];return t===XC?void 0:t}return ZC.call(r,e)?r[e]:void 0}var tx=ex,rx=Fs,nx=Object.prototype,ax=nx.hasOwnProperty;function ox(e){var r=this.__data__;return rx?r[e]!==void 0:ax.call(r,e)}var sx=ox,ix=Fs,cx="__lodash_hash_undefined__";function ux(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ix&&r===void 0?cx:r,this}var lx=ux,fx=VC,dx=KC,px=tx,hx=sx,gx=lx;function ra(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}ra.prototype.clear=fx;ra.prototype.delete=dx;ra.prototype.get=px;ra.prototype.has=hx;ra.prototype.set=gx;var vx=ra,pp=vx,mx=Ps,yx=Nu;function bx(){this.size=0,this.__data__={hash:new pp,map:new(yx||mx),string:new pp}}var _x=bx;function Ex(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Sx=Ex,Tx=Sx;function wx(e,r){var t=e.__data__;return Tx(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Is=wx,Cx=Is;function xx(e){var r=Cx(this,e).delete(e);return this.size-=r?1:0,r}var Ox=xx,Ax=Is;function Rx(e){return Ax(this,e).get(e)}var Dx=Rx,Px=Is;function Fx(e){return Px(this,e).has(e)}var Ix=Fx,Mx=Is;function $x(e,r){var t=Mx(this,e),a=t.size;return t.set(e,r),this.size+=t.size==a?0:1,this}var Lx=$x,Nx=_x,kx=Ox,jx=Dx,Bx=Ix,Wx=Lx;function na(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var a=e[r];this.set(a[0],a[1])}}na.prototype.clear=Nx;na.prototype.delete=kx;na.prototype.get=jx;na.prototype.has=Bx;na.prototype.set=Wx;var kh=na,Hx=Ps,Ux=Nu,qx=kh,Gx=200;function Yx(e,r){var t=this.__data__;if(t instanceof Hx){var a=t.__data__;if(!Ux||a.length<Gx-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new qx(a)}return t.set(e,r),this.size=t.size,this}var Vx=Yx,zx=Ps,Kx=eC,Jx=rC,Xx=aC,Qx=sC,Zx=Vx;function Va(e){var r=this.__data__=new zx(e);this.size=r.size}Va.prototype.clear=Kx;Va.prototype.delete=Jx;Va.prototype.get=Xx;Va.prototype.has=Qx;Va.prototype.set=Zx;var eO="__lodash_hash_undefined__";function tO(e){return this.__data__.set(e,eO),this}var rO=tO;function nO(e){return this.__data__.has(e)}var aO=nO,oO=kh,sO=rO,iO=aO;function Xc(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new oO;++r<t;)this.add(e[r])}Xc.prototype.add=Xc.prototype.push=sO;Xc.prototype.has=iO;var cO=yr;cO.Uint8Array;var hp=Iu,gp=hp?hp.prototype:void 0;gp&&gp.valueOf;var uO=As,lO=Mu,fO="[object Arguments]";function dO(e){return lO(e)&&uO(e)==fO}var pO=dO,vp=pO,hO=Mu,jh=Object.prototype,gO=jh.hasOwnProperty,vO=jh.propertyIsEnumerable;vp(function(){return arguments}());var gs={exports:{}};function mO(){return!1}var yO=mO;gs.exports;(function(e,r){var t=yr,a=yO,s=r&&!r.nodeType&&r,i=s&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===s,l=u?t.Buffer:void 0,f=l?l.isBuffer:void 0,p=f||a;e.exports=p})(gs,gs.exports);gs.exports;var vs={exports:{}};vs.exports;(function(e,r){var t=Ch,a=r&&!r.nodeType&&r,s=a&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===a,u=i&&t.process,l=function(){try{var f=s&&s.require&&s.require("util").types;return f||u&&u.binding&&u.binding("util")}catch{}}();e.exports=l})(vs,vs.exports);var bO=vs.exports,mp=bO;mp&&mp.isTypedArray;var _O=ta,EO=yr,SO=_O(EO,"DataView"),TO=SO,wO=ta,CO=yr,xO=wO(CO,"Promise"),OO=xO,AO=ta,RO=yr,DO=AO(RO,"Set"),PO=DO,FO=ta,IO=yr,MO=FO(IO,"WeakMap"),$O=MO,Qc=TO,Zc=Nu,eu=OO,tu=PO,ru=$O,Bh=As,aa=Nh,yp="[object Map]",LO="[object Object]",bp="[object Promise]",_p="[object Set]",Ep="[object WeakMap]",Sp="[object DataView]",NO=aa(Qc),kO=aa(Zc),jO=aa(eu),BO=aa(tu),WO=aa(ru),Wn=Bh;(Qc&&Wn(new Qc(new ArrayBuffer(1)))!=Sp||Zc&&Wn(new Zc)!=yp||eu&&Wn(eu.resolve())!=bp||tu&&Wn(new tu)!=_p||ru&&Wn(new ru)!=Ep)&&(Wn=function(e){var r=Bh(e),t=r==LO?e.constructor:void 0,a=t?aa(t):"";if(a)switch(a){case NO:return Sp;case kO:return yp;case jO:return bp;case BO:return _p;case WO:return Ep}return r});typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@ws-ui/craftjs-utils"]="0.2.3");const HO="ROOT";ET(),_T();var Tp;(function(e){e[e.HandlerDisabled=0]="HandlerDisabled",e[e.HandlerEnabled=1]="HandlerEnabled"})(Tp||(Tp={}));function ku(e){return`Debugger/${e}`}function Wh(e,r){var a;const t=(a=r.name)==null?void 0:a.replace(/\.(4dm|4qs)$/,"");return`#${e} ${t}`}const UO=typeof process=="object"&&process&&process.platform==="win32";var qO=UO?{sep:"\\"}:{sep:"/"},GO=Hh;function Hh(e,r,t){e instanceof RegExp&&(e=wp(e,t)),r instanceof RegExp&&(r=wp(r,t));var a=Uh(e,r,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]+r.length)}}function wp(e,r){var t=r.match(e);return t?t[0]:null}Hh.range=Uh;function Uh(e,r,t){var a,s,i,u,l,f=t.indexOf(e),p=t.indexOf(r,f+1),h=f;if(f>=0&&p>0){if(e===r)return[f,p];for(a=[],i=t.length;h>=0&&!l;)h==f?(a.push(h),f=t.indexOf(e,h+1)):a.length==1?l=[a.pop(),p]:(s=a.pop(),s<i&&(i=s,u=p),p=t.indexOf(r,h+1)),h=f<p&&f>=0?f:p;a.length&&(l=[i,u])}return l}var qh=GO,YO=KO,Gh="\0SLASH"+Math.random()+"\0",Yh="\0OPEN"+Math.random()+"\0",ju="\0CLOSE"+Math.random()+"\0",Vh="\0COMMA"+Math.random()+"\0",zh="\0PERIOD"+Math.random()+"\0";function xc(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function VO(e){return e.split("\\\\").join(Gh).split("\\{").join(Yh).split("\\}").join(ju).split("\\,").join(Vh).split("\\.").join(zh)}function zO(e){return e.split(Gh).join("\\").split(Yh).join("{").split(ju).join("}").split(Vh).join(",").split(zh).join(".")}function Kh(e){if(!e)return[""];var r=[],t=qh("{","}",e);if(!t)return e.split(",");var a=t.pre,s=t.body,i=t.post,u=a.split(",");u[u.length-1]+="{"+s+"}";var l=Kh(i);return i.length&&(u[u.length-1]+=l.shift(),u.push.apply(u,l)),r.push.apply(r,u),r}function KO(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Pa(VO(e),!0).map(zO)):[]}function JO(e){return"{"+e+"}"}function XO(e){return/^-?0\d/.test(e)}function QO(e,r){return e<=r}function ZO(e,r){return e>=r}function Pa(e,r){var t=[],a=qh("{","}",e);if(!a)return[e];var s=a.pre,i=a.post.length?Pa(a.post,!1):[""];if(/\$$/.test(a.pre))for(var u=0;u<i.length;u++){var l=s+"{"+a.body+"}"+i[u];t.push(l)}else{var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=f||p,y=a.body.indexOf(",")>=0;if(!h&&!y)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+ju+a.post,Pa(e)):[e];var _;if(h)_=a.body.split(/\.\./);else if(_=Kh(a.body),_.length===1&&(_=Pa(_[0],!1).map(JO),_.length===1))return i.map(function(De){return a.pre+_[0]+De});var E;if(h){var T=xc(_[0]),C=xc(_[1]),O=Math.max(_[0].length,_[1].length),D=_.length==3?Math.abs(xc(_[2])):1,F=QO,M=C<T;M&&(D*=-1,F=ZO);var L=_.some(XO);E=[];for(var I=T;F(I,C);I+=D){var G;if(p)G=String.fromCharCode(I),G==="\\"&&(G="");else if(G=String(I),L){var W=O-G.length;if(W>0){var q=new Array(W+1).join("0");I<0?G="-"+q+G.slice(1):G=q+G}}E.push(G)}}else{E=[];for(var ee=0;ee<_.length;ee++)E.push.apply(E,Pa(_[ee],!1))}for(var ee=0;ee<E.length;ee++)for(var u=0;u<i.length;u++){var l=s+E[ee]+i[u];(!r||h||l)&&t.push(l)}}return t}const Ut=Jh=(e,r,t={})=>(ms(r),!t.nocomment&&r.charAt(0)==="#"?!1:new Ms(r,t).match(e));var Jh=Ut;const nu=qO;Ut.sep=nu.sep;const fr=Symbol("globstar **");Ut.GLOBSTAR=fr;const eA=YO,Cp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},au="[^/]",Oc=au+"*?",tA="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",rA="(?:(?!(?:\\/|^)\\.).)*?",Xh=e=>e.split("").reduce((r,t)=>(r[t]=!0,r),{}),xp=Xh("().*{}+?[]^$\\!"),nA=Xh("[.("),Op=/\/+/;Ut.filter=(e,r={})=>(t,a,s)=>Ut(t,e,r);const Kr=(e,r={})=>{const t={};return Object.keys(e).forEach(a=>t[a]=e[a]),Object.keys(r).forEach(a=>t[a]=r[a]),t};Ut.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ut;const r=Ut,t=(a,s,i)=>r(a,s,Kr(e,i));return t.Minimatch=class extends r.Minimatch{constructor(s,i){super(s,Kr(e,i))}},t.Minimatch.defaults=a=>r.defaults(Kr(e,a)).Minimatch,t.filter=(a,s)=>r.filter(a,Kr(e,s)),t.defaults=a=>r.defaults(Kr(e,a)),t.makeRe=(a,s)=>r.makeRe(a,Kr(e,s)),t.braceExpand=(a,s)=>r.braceExpand(a,Kr(e,s)),t.match=(a,s,i)=>r.match(a,s,Kr(e,i)),t};Ut.braceExpand=(e,r)=>Qh(e,r);const Qh=(e,r={})=>(ms(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:eA(e)),aA=1024*64,ms=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>aA)throw new TypeError("pattern is too long")},Ac=Symbol("subparse");Ut.makeRe=(e,r)=>new Ms(e,r||{}).makeRe();Ut.match=(e,r,t={})=>{const a=new Ms(r,t);return e=e.filter(s=>a.match(s)),a.options.nonull&&!e.length&&e.push(r),e};const oA=e=>e.replace(/\\(.)/g,"$1"),sA=e=>e.replace(/\\([^-\]])/g,"$1"),iA=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),cA=e=>e.replace(/[[\]\\]/g,"\\$&");class Ms{constructor(r,t){ms(r),t||(t={}),this.options=t,this.set=[],this.pattern=r,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 r=this.pattern,t=this.options;if(!t.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){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(Op)),this.debug(this.pattern,a),a=a.map((s,i,u)=>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 r=this.pattern;let t=!1,a=0;for(let s=0;s<r.length&&r.charAt(s)==="!";s++)t=!t,a++;a&&(this.pattern=r.slice(a)),this.negate=t}matchOne(r,t,a){var s=this.options;this.debug("matchOne",{this:this,file:r,pattern:t}),this.debug("matchOne",r.length,t.length);for(var i=0,u=0,l=r.length,f=t.length;i<l&&u<f;i++,u++){this.debug("matchOne loop");var p=t[u],h=r[i];if(this.debug(t,p,h),p===!1)return!1;if(p===fr){this.debug("GLOBSTAR",[t,p,h]);var y=i,_=u+1;if(_===f){for(this.debug("** at the end");i<l;i++)if(r[i]==="."||r[i]===".."||!s.dot&&r[i].charAt(0)===".")return!1;return!0}for(;y<l;){var E=r[y];if(this.debug(`
|
|
36
36
|
globstar while`,r,y,t,_,E),this.matchOne(r.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!",r,y,t,_);break}this.debug("globstar swallow a segment, and continue"),y++}return!!(a&&(this.debug(`
|
|
37
37
|
>>> no match, partial?`,r,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&&u===f)return!0;if(i===l)return a;if(u===f)return i===l-1&&r[i]==="";throw new Error("wtf?")}braceExpand(){return Qh(this.pattern,this.options)}parse(r,t){ms(r);const a=this.options;if(r==="**")if(a.noglobstar)r="*";else return fr;if(r==="")return"";let s="",i=!1,u=!1;const l=[],f=[];let p,h=!1,y=-1,_=-1,E,T,C,O=r.charAt(0)===".",D=a.dot||O;const F=()=>O?"":D?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=W=>W.charAt(0)==="."?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=()=>{if(p){switch(p){case"*":s+=Oc,i=!0;break;case"?":s+=au,i=!0;break;default:s+="\\"+p;break}this.debug("clearStateChar %j %j",p,s),p=!1}};for(let W=0,q;W<r.length&&(q=r.charAt(W));W++){if(this.debug("%s %s %s %j",r,W,s,q),u){if(q==="/")return!1;xp[q]&&(s+="\\"),s+=q,u=!1;continue}switch(q){case"/":return!1;case"\\":if(h&&r.charAt(W+1)==="-"){s+=q;continue}L(),u=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",r,W,s,q),h){this.debug(" in class"),q==="!"&&W===_+1&&(q="^"),s+=q;continue}this.debug("call clearStateChar %j",p),L(),p=q,a.noext&&L();continue;case"(":{if(h){s+="(";continue}if(!p){s+="\\(";continue}const ee={type:p,start:W-1,reStart:s.length,open:Cp[p].open,close:Cp[p].close};this.debug(this.pattern," ",ee),l.push(ee),s+=ee.open,ee.start===0&&ee.type!=="!"&&(O=!0,s+=M(r.slice(W+1))),this.debug("plType %j %j",p,s),p=!1;continue}case")":{const ee=l[l.length-1];if(h||!ee){s+="\\)";continue}l.pop(),L(),i=!0,T=ee,s+=T.close,T.type==="!"&&f.push(Object.assign(T,{reEnd:s.length}));continue}case"|":{const ee=l[l.length-1];if(h||!ee){s+="\\|";continue}L(),s+="|",ee.start===0&&ee.type!=="!"&&(O=!0,s+=M(r.slice(W+1)));continue}case"[":if(L(),h){s+="\\"+q;continue}h=!0,_=W,y=s.length,s+=q;continue;case"]":if(W===_+1||!h){s+="\\"+q;continue}E=r.substring(_+1,W);try{RegExp("["+cA(sA(E))+"]"),s+=q}catch{s=s.substring(0,y)+"(?:$.)"}i=!0,h=!1;continue;default:L(),xp[q]&&!(q==="^"&&h)&&(s+="\\"),s+=q;break}}for(h&&(E=r.slice(_+1),C=this.parse(E,Ac),s=s.substring(0,y)+"\\["+C[0],i=i||C[1]),T=l.pop();T;T=l.pop()){let W;W=s.slice(T.reStart+T.open.length),this.debug("setting tail",s,T),W=W.replace(/((?:\\{2}){0,64})(\\?)\|/g,(ee,De,Ee)=>(Ee||(Ee="\\"),De+De+Ee+"|")),this.debug(`tail=%j
|
|
38
38
|
%s`,W,W,T,s);const q=T.type==="*"?Oc:T.type==="?"?au:"\\"+T.type;i=!0,s=s.slice(0,T.reStart)+q+"\\("+W}L(),u&&(s+="\\\\");const I=nA[s.charAt(0)];for(let W=f.length-1;W>-1;W--){const q=f[W],ee=s.slice(0,q.reStart),De=s.slice(q.reStart,q.reEnd-8);let Ee=s.slice(q.reEnd);const We=s.slice(q.reEnd-8,q.reEnd)+Ee,X=ee.split(")").length,ke=ee.split("(").length-X;let ft=Ee;for(let Ge=0;Ge<ke;Ge++)ft=ft.replace(/\)[+*?]?/,"");Ee=ft;const rt=Ee===""&&t!==Ac?"(?:$|\\/)":"";s=ee+De+Ee+rt+We}if(s!==""&&i&&(s="(?=.)"+s),I&&(s=F()+s),t===Ac)return[s,i];if(a.nocase&&!i&&(i=r.toUpperCase()!==r.toLowerCase()),!i)return oA(r);const G=a.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",G),{_glob:r,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const r=this.set;if(!r.length)return this.regexp=!1,this.regexp;const t=this.options,a=t.noglobstar?Oc:t.dot?tA:rA,s=t.nocase?"i":"";let i=r.map(u=>(u=u.map(l=>typeof l=="string"?iA(l):l===fr?fr:l._src).reduce((l,f)=>(l[l.length-1]===fr&&f===fr||l.push(f),l),[]),u.forEach((l,f)=>{l!==fr||u[f-1]===fr||(f===0?u.length>1?u[f+1]="(?:\\/|"+a+"\\/)?"+u[f+1]:u[f]=a:f===u.length-1?u[f-1]+="(?:\\/|"+a+")?":(u[f-1]+="(?:\\/|\\/"+a+"\\/)"+u[f+1],u[f+1]=fr))}),u.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(r,t=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&t)return!0;const a=this.options;nu.sep!=="/"&&(r=r.split(nu.sep).join("/")),r=r.split(Op),this.debug(this.pattern,"split",r);const s=this.set;this.debug(this.pattern,"set",s);let i;for(let u=r.length-1;u>=0&&(i=r[u],!i);u--);for(let u=0;u<s.length;u++){const l=s[u];let f=r;if(a.matchBase&&l.length===1&&(f=[i]),this.matchOne(f,l,t))return a.flipNegate?!0:!this.negate}return a.flipNegate?!1:this.negate}static defaults(r){return Ut.defaults(r).Minimatch}}Ut.Minimatch=Ms;const Zh=Os(Jh),eg=[{pattern:v.ROLES_TAB_PATH,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:v.HTTP_HANDLERS_PATH,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:v.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:"**/*.qodoc",editor:{key:"editors:reports"},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"}}],tg=[{pattern:"**/*.+(json|4DModel|WebForm)",type:"json"},{pattern:"**/*.+(4dm|txt|json|4qs)",type:"text"}];function rg(e){const r=e.split("/");return r.pop(),r.join("/")}function Tt(e){const r=eg.find(({pattern:t})=>Zh(e,t,{nocase:!0}));return r||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function Bu(e){const r=tg.find(({pattern:t})=>Zh(e,t,{nocase:!0}));return r?r.type:"text"}const Sn=()=>({dataclass:({name:e,qodly:r})=>({name:e,content:r?`extends DataClass
|