@dappworks/urpc
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -50,2 +50,5 @@ // Generated by dts-bundle-generator v9.5.1 | ||
allowUpdate?: Boolean; | ||
onCreate?: (value: Item<ReturnType<T>>) => any; | ||
onUpdate?: (key: any, value: any) => any; | ||
onDelete?: (key: any) => any; | ||
onPatch?: (value: Operation[]) => PatchResult<any>; | ||
@@ -90,2 +93,5 @@ }; | ||
allowUpdate?: Boolean | undefined; | ||
onCreate?: ((value: any) => any) | undefined; | ||
onUpdate?: ((key: any, value: any) => any) | undefined; | ||
onDelete?: ((key: any) => any) | undefined; | ||
onPatch?: ((value: Operation[]) => PatchResult<any>) | undefined; | ||
@@ -169,2 +175,5 @@ } | undefined; | ||
allowUpdate?: Boolean | undefined; | ||
onCreate?: ((value: any) => any) | undefined; | ||
onUpdate?: ((key: any, value: any) => any) | undefined; | ||
onDelete?: ((key: any) => any) | undefined; | ||
onPatch?: ((value: Operation[]) => import("fast-json-patch").PatchResult<any>) | undefined; | ||
@@ -171,0 +180,0 @@ } | undefined; |
@@ -1,9 +0,9 @@ | ||
var xZ=Object.create;var{defineProperty:gU,getPrototypeOf:gZ,getOwnPropertyNames:mZ}=Object;var jZ=Object.prototype.hasOwnProperty;var mU=(U,$,Z)=>{Z=U!=null?xZ(gZ(U)):{};const R=$||!U||!U.__esModule?gU(Z,"default",{value:U,enumerable:!0}):Z;for(let Q of mZ(U))if(!jZ.call(R,Q))gU(R,Q,{get:()=>U[Q],enumerable:!0});return R};var jU=(U,$)=>()=>($||U(($={exports:{}}).exports,$),$.exports);var dU=(U,$)=>{for(var Z in $)gU(U,Z,{get:$[Z],enumerable:!0,configurable:!0,set:(R)=>$[Z]=()=>R})};var T$=jU((p6,P$)=>{var tZ=function(U,$){return U==null?void 0:U[$]},aZ=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},f=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},QR=function(){this.__data__=r?r(null):{}},XR=function(U){return this.has(U)&&delete this.__data__[U]},YR=function(U){var $=this.__data__;if(r){var Z=$[U];return Z===_$?void 0:Z}return QU.call($,U)?$[U]:void 0},BR=function(U){var $=this.__data__;return r?$[U]!==void 0:QU.call($,U)},WR=function(U,$){var Z=this.__data__;return Z[U]=r&&$===void 0?_$:$,this},p=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},JR=function(){this.__data__=[]},GR=function(U){var $=this.__data__,Z=XU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else ZR.call($,Z,1);return!0},KR=function(U){var $=this.__data__,Z=XU($,U);return Z<0?void 0:$[Z][1]},wR=function(U){return XU(this.__data__,U)>-1},qR=function(U,$){var Z=this.__data__,R=XU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},x=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},NR=function(){this.__data__={hash:new f,map:new(RR||p),string:new f}},FR=function(U){return YU(this,U).delete(U)},zR=function(U){return YU(this,U).get(U)},LR=function(U){return YU(this,U).has(U)},HR=function(U,$){return YU(this,U).set(U,$),this},_R=function(U,$,Z){var R=U[$];if(!(QU.call(U,$)&&A$(R,Z))||Z===void 0&&!($ in U))U[$]=Z},XU=function(U,$){var Z=U.length;while(Z--)if(A$(U[Z][0],$))return Z;return-1},SR=function(U){if(!RU(U)||PR(U))return!1;var $=fR(U)||aZ(U)?$R:sZ;return $.test(VR(U))},DR=function(U,$,Z,R){if(!RU(U))return U;$=AR($,U)?[$]:ER($);var Q=-1,X=$.length,Y=X-1,B=U;while(B!=null&&++Q<X){var W=CR($[Q]),G=Z;if(Q!=Y){var J=B[W];if(G=R?R(J,W,B):void 0,G===void 0)G=RU(J)?J:IR($[Q+1])?[]:{}}_R(B,W,G),B=B[W]}return U},MR=function(U){if(typeof U=="string")return U;if(yU(U))return H$?H$.call(U):"";var $=U+"";return $=="0"&&1/U==-S$?"-0":$},ER=function(U){return O$(U)?U:TR(U)},YU=function(U,$){var Z=U.__data__;return OR($)?Z[typeof $=="string"?"string":"hash"]:Z.map},I$=function(U,$){var Z=tZ(U,$);return SR(Z)?Z:void 0},IR=function(U,$){return $=$==null?kZ:$,!!$&&(typeof U=="number"||lZ.test(U))&&(U>-1&&U%1==0&&U<$)},AR=function(U,$){if(O$(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||yU(U))return!0;return bZ.test(U)||!hZ.test(U)||$!=null&&U in Object($)},OR=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},PR=function(U){return!!F$&&F$ in U},CR=function(U){if(typeof U=="string"||yU(U))return U;var $=U+"";return $=="0"&&1/U==-S$?"-0":$},VR=function(U){if(U!=null){try{return M$.call(U)}catch($){}try{return U+""}catch($){}}return""},vU=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(dZ);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(vU.Cache||x),Z},A$=function(U,$){return U===$||U!==U&&$!==$},fR=function(U){var $=RU(U)?E$.call(U):"";return $==pZ||$==vZ},RU=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},xR=function(U){return!!U&&typeof U=="object"},yU=function(U){return typeof U=="symbol"||xR(U)&&E$.call(U)==yZ},gR=function(U){return U==null?"":MR(U)},mR=function(U,$,Z){return U==null?U:DR(U,$,Z)},dZ="Expected a function",_$="__lodash_hash_undefined__",S$=Infinity,kZ=9007199254740991,pZ="[object Function]",vZ="[object GeneratorFunction]",yZ="[object Symbol]",hZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bZ=/^\w*$/,nZ=/^\./,iZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cZ=/[\\^$.*+?()[\]{}|]/g,uZ=/\\(\\)?/g,sZ=/^\[object .+?Constructor\]$/,lZ=/^(?:0|[1-9]\d*)$/,rZ=typeof global=="object"&&global&&global.Object===Object&&global,oZ=typeof self=="object"&&self&&self.Object===Object&&self,pU=rZ||oZ||Function("return this")(),eZ=Array.prototype,UR=Function.prototype,D$=Object.prototype,kU=pU["__core-js_shared__"],F$=function(){var U=/[^.]+$/.exec(kU&&kU.keys&&kU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),M$=UR.toString,QU=D$.hasOwnProperty,E$=D$.toString,$R=RegExp("^"+M$.call(QU).replace(cZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z$=pU.Symbol,ZR=eZ.splice,RR=I$(pU,"Map"),r=I$(Object,"create"),L$=z$?z$.prototype:void 0,H$=L$?L$.toString:void 0;f.prototype.clear=QR;f.prototype.delete=XR;f.prototype.get=YR;f.prototype.has=BR;f.prototype.set=WR;p.prototype.clear=JR;p.prototype.delete=GR;p.prototype.get=KR;p.prototype.has=wR;p.prototype.set=qR;x.prototype.clear=NR;x.prototype.delete=FR;x.prototype.get=zR;x.prototype.has=LR;x.prototype.set=HR;var TR=vU(function(U){U=gR(U);var $=[];if(nZ.test(U))$.push("");return U.replace(iZ,function(Z,R,Q,X){$.push(Q?X.replace(uZ,"$1"):R||Z)}),$});vU.Cache=x;var O$=Array.isArray;P$.exports=mR});var JZ=jU((GU,y)=>{var YQ=function(U,$,Z,R){var Q=-1,X=U?U.length:0;while(++Q<X){var Y=U[Q];$(R,Y,Z(Y),U)}return R},BQ=function(U,$){var Z=-1,R=U?U.length:0;while(++Z<R)if($(U[Z],Z,U))return!0;return!1},WQ=function(U){return function($){return $==null?void 0:$[U]}},JQ=function(U,$){var Z=-1,R=Array(U);while(++Z<U)R[Z]=$(Z);return R},GQ=function(U){return function($){return U($)}},KQ=function(U,$){return U==null?void 0:U[$]},sU=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},wQ=function(U){var $=-1,Z=Array(U.size);return U.forEach(function(R,Q){Z[++$]=[Q,R]}),Z},qQ=function(U,$){return function(Z){return U($(Z))}},NQ=function(U){var $=-1,Z=Array(U.size);return U.forEach(function(R){Z[++$]=R}),Z},g=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},OQ=function(){this.__data__=t?t(null):{}},PQ=function(U){return this.has(U)&&delete this.__data__[U]},TQ=function(U){var $=this.__data__;if(t){var Z=$[U];return Z===aU?void 0:Z}return M.call($,U)?$[U]:void 0},CQ=function(U){var $=this.__data__;return t?$[U]!==void 0:M.call($,U)},VQ=function(U,$){var Z=this.__data__;return Z[U]=t&&$===void 0?aU:$,this},E=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},fQ=function(){this.__data__=[]},xQ=function(U){var $=this.__data__,Z=SU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else _Q.call($,Z,1);return!0},gQ=function(U){var $=this.__data__,Z=SU($,U);return Z<0?void 0:$[Z][1]},mQ=function(U){return SU(this.__data__,U)>-1},jQ=function(U,$){var Z=this.__data__,R=SU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},I=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},dQ=function(){this.__data__={hash:new g,map:new(o||E),string:new g}},kQ=function(U){return DU(this,U).delete(U)},pQ=function(U){return DU(this,U).get(U)},vQ=function(U){return DU(this,U).has(U)},yQ=function(U,$){return DU(this,U).set(U,$),this},zU=function(U){var $=-1,Z=U?U.length:0;this.__data__=new I;while(++$<Z)this.add(U[$])},hQ=function(U){return this.__data__.set(U,aU),this},bQ=function(U){return this.__data__.has(U)},D=function(U){this.__data__=new E(U)},nQ=function(){this.__data__=new E},iQ=function(U){return this.__data__.delete(U)},cQ=function(U){return this.__data__.get(U)},uQ=function(U){return this.__data__.has(U)},sQ=function(U,$){var Z=this.__data__;if(Z instanceof E){var R=Z.__data__;if(!o||R.length<pR-1)return R.push([U,$]),this;Z=this.__data__=new I(R)}return Z.set(U,$),this},lQ=function(U,$){var Z=P(U)||BZ(U)?JQ(U.length,String):[],R=Z.length,Q=!!R;for(var X in U)if(($||M.call(U,X))&&!(Q&&(X=="length"||RZ(X,R))))Z.push(X);return Z},SU=function(U,$){var Z=U.length;while(Z--)if(YZ(U[Z][0],$))return Z;return-1},rQ=function(U,$,Z,R){return oQ(U,function(Q,X,Y){$(R,Q,Z(Q),Y)}),R},aQ=function(U,$){return U&&tQ(U,$,LU)},UZ=function(U,$){$=MU($,U)?[$]:$Z($);var Z=0,R=$.length;while(U!=null&&Z<R)U=U[EU($[Z++])];return Z&&Z==R?U:void 0},eQ=function(U){return b.call(U)},U1=function(U,$){return U!=null&&$ in Object(U)},eU=function(U,$,Z,R,Q){if(U===$)return!0;if(U==null||$==null||!IU(U)&&!AU($))return U!==U&&$!==$;return $1(U,$,eU,Z,R,Q)},$1=function(U,$,Z,R,Q,X){var Y=P(U),B=P($),W=cU,G=cU;if(!Y)W=O(U),W=W==KU?v:W;if(!B)G=O($),G=G==KU?v:G;var J=W==v&&!sU(U),q=G==v&&!sU($),K=W==G;if(K&&!J)return X||(X=new D),Y||I1(U)?ZZ(U,$,Z,R,Q,X):N1(U,$,W,Z,R,Q,X);if(!(Q&h)){var w=J&&M.call(U,"__wrapped__"),H=q&&M.call($,"__wrapped__");if(w||H){var A=w?U.value():U,S=H?$.value():$;return X||(X=new D),Z(A,S,R,Q,X)}}if(!K)return!1;return X||(X=new D),F1(U,$,Z,R,Q,X)},Z1=function(U,$,Z,R){var Q=Z.length,X=Q,Y=!R;if(U==null)return!X;U=Object(U);while(Q--){var B=Z[Q];if(Y&&B[2]?B[1]!==U[B[0]]:!(B[0]in U))return!1}while(++Q<X){B=Z[Q];var W=B[0],G=U[W],J=B[1];if(Y&&B[2]){if(G===void 0&&!(W in U))return!1}else{var q=new D;if(R)var K=R(G,J,W,U,$,q);if(!(K===void 0?eU(J,G,R,HU|h,q):K))return!1}}return!0},R1=function(U){if(!IU(U)||_1(U))return!1;var $=WZ(U)||sU(U)?LQ:ZQ;return $.test(m(U))},Q1=function(U){return AU(U)&&Z$(U.length)&&!!N[b.call(U)]},X1=function(U){if(typeof U=="function")return U;if(U==null)return T1;if(typeof U=="object")return P(U)?W1(U[0],U[1]):B1(U);return C1(U)},Y1=function(U){if(!S1(U))return SQ(U);var $=[];for(var Z in Object(U))if(M.call(U,Z)&&Z!="constructor")$.push(Z);return $},B1=function(U){var $=z1(U);if($.length==1&&$[0][2])return XZ($[0][0],$[0][1]);return function(Z){return Z===U||Z1(Z,U,$)}},W1=function(U,$){if(MU(U)&&QZ($))return XZ(EU(U),$);return function(Z){var R=O1(Z,U);return R===void 0&&R===$?P1(Z,U):eU($,R,void 0,HU|h)}},J1=function(U){return function($){return UZ($,U)}},G1=function(U){if(typeof U=="string")return U;if(R$(U))return v$?v$.call(U):"";var $=U+"";return $=="0"&&1/U==-y$?"-0":$},$Z=function(U){return P(U)?U:D1(U)},K1=function(U,$){return function(Z,R){var Q=P(Z)?YQ:rQ,X=$?$():{};return Q(Z,U,X1(R,2),X)}},w1=function(U,$){return function(Z,R){if(Z==null)return Z;if(!$$(Z))return U(Z,R);var Q=Z.length,X=$?Q:-1,Y=Object(Z);while($?X--:++X<Q)if(R(Y[X],X,Y)===!1)break;return Z}},q1=function(U){return function($,Z,R){var Q=-1,X=Object($),Y=R($),B=Y.length;while(B--){var W=Y[U?B:++Q];if(Z(X[W],W,X)===!1)break}return $}},ZZ=function(U,$,Z,R,Q,X){var Y=Q&h,B=U.length,W=$.length;if(B!=W&&!(Y&&W>B))return!1;var G=X.get(U);if(G&&X.get($))return G==$;var J=-1,q=!0,K=Q&HU?new zU:void 0;X.set(U,$),X.set($,U);while(++J<B){var w=U[J],H=$[J];if(R)var A=Y?R(H,w,J,$,U,X):R(w,H,J,U,$,X);if(A!==void 0){if(A)continue;q=!1;break}if(K){if(!BQ($,function(S,V){if(!K.has(V)&&(w===S||Z(w,S,R,Q,X)))return K.add(V)})){q=!1;break}}else if(!(w===H||Z(w,H,R,Q,X))){q=!1;break}}return X.delete(U),X.delete($),q},N1=function(U,$,Z,R,Q,X,Y){switch(Z){case NU:if(U.byteLength!=$.byteLength||U.byteOffset!=$.byteOffset)return!1;U=U.buffer,$=$.buffer;case o$:if(U.byteLength!=$.byteLength||!R(new p$(U),new p$($)))return!1;return!0;case b$:case n$:case u$:return YZ(+U,+$);case i$:return U.name==$.name&&U.message==$.message;case s$:case l$:return U==$+"";case wU:var B=wQ;case qU:var W=X&h;if(B||(B=NQ),U.size!=$.size&&!W)return!1;var G=Y.get(U);if(G)return G==$;X|=HU,Y.set(U,$);var J=ZZ(B(U),B($),R,Q,X,Y);return Y.delete(U),J;case r$:if(iU)return iU.call(U)==iU.call($)}return!1},F1=function(U,$,Z,R,Q,X){var Y=Q&h,B=LU(U),W=B.length,G=LU($),J=G.length;if(W!=J&&!Y)return!1;var q=W;while(q--){var K=B[q];if(!(Y?K in $:M.call($,K)))return!1}var w=X.get(U);if(w&&X.get($))return w==$;var H=!0;X.set(U,$),X.set($,U);var A=Y;while(++q<W){K=B[q];var S=U[K],V=$[K];if(R)var N$=Y?R(V,S,K,$,U,X):R(S,V,K,U,$,X);if(!(N$===void 0?S===V||Z(S,V,R,Q,X):N$)){H=!1;break}A||(A=K=="constructor")}if(H&&!A){var $U=U.constructor,ZU=$.constructor;if($U!=ZU&&(("constructor"in U)&&("constructor"in $))&&!(typeof $U=="function"&&$U instanceof $U&&typeof ZU=="function"&&ZU instanceof ZU))H=!1}return X.delete(U),X.delete($),H},DU=function(U,$){var Z=U.__data__;return H1($)?Z[typeof $=="string"?"string":"hash"]:Z.map},z1=function(U){var $=LU(U),Z=$.length;while(Z--){var R=$[Z],Q=U[R];$[Z]=[R,Q,QZ(Q)]}return $},n=function(U,$){var Z=KQ(U,$);return R1(Z)?Z:void 0},L1=function(U,$,Z){$=MU($,U)?[$]:$Z($);var R,Q=-1,Y=$.length;while(++Q<Y){var X=EU($[Q]);if(!(R=U!=null&&Z(U,X)))break;U=U[X]}if(R)return R;var Y=U?U.length:0;return!!Y&&Z$(Y)&&RZ(X,Y)&&(P(U)||BZ(U))},RZ=function(U,$){return $=$==null?h$:$,!!$&&(typeof U=="number"||RQ.test(U))&&(U>-1&&U%1==0&&U<$)},MU=function(U,$){if(P(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||R$(U))return!0;return tR.test(U)||!oR.test(U)||$!=null&&U in Object($)},H1=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},_1=function(U){return!!d$&&d$ in U},S1=function(U){var $=U&&U.constructor,Z=typeof $=="function"&&$.prototype||_U;return U===Z},QZ=function(U){return U===U&&!IU(U)},XZ=function(U,$){return function(Z){if(Z==null)return!1;return Z[U]===$&&($!==void 0||(U in Object(Z)))}},EU=function(U){if(typeof U=="string"||R$(U))return U;var $=U+"";return $=="0"&&1/U==-y$?"-0":$},m=function(U){if(U!=null){try{return e$.call(U)}catch($){}try{return U+""}catch($){}}return""},U$=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(vR);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(U$.Cache||I),Z},YZ=function(U,$){return U===$||U!==U&&$!==$},BZ=function(U){return E1(U)&&M.call(U,"callee")&&(!HQ.call(U,"callee")||b.call(U)==KU)},$$=function(U){return U!=null&&Z$(U.length)&&!WZ(U)},E1=function(U){return AU(U)&&$$(U)},WZ=function(U){var $=IU(U)?b.call(U):"";return $==c$||$==yR},Z$=function(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=h$},IU=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},AU=function(U){return!!U&&typeof U=="object"},R$=function(U){return typeof U=="symbol"||AU(U)&&b.call(U)==r$},A1=function(U){return U==null?"":G1(U)},O1=function(U,$,Z){var R=U==null?void 0:UZ(U,$);return R===void 0?Z:R},P1=function(U,$){return U!=null&&L1(U,$,U1)},LU=function(U){return $$(U)?lQ(U):Y1(U)},T1=function(U){return U},C1=function(U){return MU(U)?WQ(EU(U)):J1(U)},pR=200,vR="Expected a function",aU="__lodash_hash_undefined__",HU=1,h=2,y$=Infinity,h$=9007199254740991,KU="[object Arguments]",cU="[object Array]",b$="[object Boolean]",n$="[object Date]",i$="[object Error]",c$="[object Function]",yR="[object GeneratorFunction]",wU="[object Map]",u$="[object Number]",v="[object Object]",f$="[object Promise]",s$="[object RegExp]",qU="[object Set]",l$="[object String]",r$="[object Symbol]",uU="[object WeakMap]",o$="[object ArrayBuffer]",NU="[object DataView]",hR="[object Float32Array]",bR="[object Float64Array]",nR="[object Int8Array]",iR="[object Int16Array]",cR="[object Int32Array]",uR="[object Uint8Array]",sR="[object Uint8ClampedArray]",lR="[object Uint16Array]",rR="[object Uint32Array]",oR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tR=/^\w*$/,aR=/^\./,eR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UQ=/[\\^$.*+?()[\]{}|]/g,$Q=/\\(\\)?/g,ZQ=/^\[object .+?Constructor\]$/,RQ=/^(?:0|[1-9]\d*)$/,N={};N[hR]=N[bR]=N[nR]=N[iR]=N[cR]=N[uR]=N[sR]=N[lR]=N[rR]=!0;N[KU]=N[cU]=N[o$]=N[b$]=N[NU]=N[n$]=N[i$]=N[c$]=N[wU]=N[u$]=N[v]=N[s$]=N[qU]=N[l$]=N[uU]=!1;var t$=typeof global=="object"&&global&&global.Object===Object&&global,QQ=typeof self=="object"&&self&&self.Object===Object&&self,T=t$||QQ||Function("return this")(),a$=typeof GU=="object"&&GU&&!GU.nodeType&&GU,x$=a$&&typeof y=="object"&&y&&!y.nodeType&&y,XQ=x$&&x$.exports===a$,g$=XQ&&t$.process,m$=function(){try{return g$&&g$.binding("util")}catch(U){}}(),j$=m$&&m$.isTypedArray,FQ=Array.prototype,zQ=Function.prototype,_U=Object.prototype,nU=T["__core-js_shared__"],d$=function(){var U=/[^.]+$/.exec(nU&&nU.keys&&nU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),e$=zQ.toString,M=_U.hasOwnProperty,b=_U.toString,LQ=RegExp("^"+e$.call(M).replace(UQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k$=T.Symbol,p$=T.Uint8Array,HQ=_U.propertyIsEnumerable,_Q=FQ.splice,SQ=qQ(Object.keys,Object),lU=n(T,"DataView"),o=n(T,"Map"),rU=n(T,"Promise"),oU=n(T,"Set"),tU=n(T,"WeakMap"),t=n(Object,"create"),DQ=m(lU),MQ=m(o),EQ=m(rU),IQ=m(oU),AQ=m(tU),FU=k$?k$.prototype:void 0,iU=FU?FU.valueOf:void 0,v$=FU?FU.toString:void 0;g.prototype.clear=OQ;g.prototype.delete=PQ;g.prototype.get=TQ;g.prototype.has=CQ;g.prototype.set=VQ;E.prototype.clear=fQ;E.prototype.delete=xQ;E.prototype.get=gQ;E.prototype.has=mQ;E.prototype.set=jQ;I.prototype.clear=dQ;I.prototype.delete=kQ;I.prototype.get=pQ;I.prototype.has=vQ;I.prototype.set=yQ;zU.prototype.add=zU.prototype.push=hQ;zU.prototype.has=bQ;D.prototype.clear=nQ;D.prototype.delete=iQ;D.prototype.get=cQ;D.prototype.has=uQ;D.prototype.set=sQ;var oQ=w1(aQ),tQ=q1(),O=eQ;if(lU&&O(new lU(new ArrayBuffer(1)))!=NU||o&&O(new o)!=wU||rU&&O(rU.resolve())!=f$||oU&&O(new oU)!=qU||tU&&O(new tU)!=uU)O=function(U){var $=b.call(U),Z=$==v?U.constructor:void 0,R=Z?m(Z):void 0;if(R)switch(R){case DQ:return NU;case MQ:return wU;case EQ:return f$;case IQ:return qU;case AQ:return uU}return $};var D1=U$(function(U){U=A1(U);var $=[];if(aR.test(U))$.push("");return U.replace(eR,function(Z,R,Q,X){$.push(Q?X.replace($Q,"$1"):R||Z)}),$}),M1=K1(function(U,$,Z){U[Z]=$});U$.Cache=I;var P=Array.isArray,I1=j$?GQ(j$):Q1;y.exports=M1});var VZ=jU((W8,CZ)=>{var U6=function(U,$){return U==null?void 0:U[$]},$6=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},d=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},B6=function(){this.__data__=UU?UU(null):{}},W6=function(U){return this.has(U)&&delete this.__data__[U]},J6=function(U){var $=this.__data__;if(UU){var Z=$[U];return Z===DZ?void 0:Z}return K$.call($,U)?$[U]:void 0},G6=function(U){var $=this.__data__;return UU?$[U]!==void 0:K$.call($,U)},K6=function(U,$){var Z=this.__data__;return Z[U]=UU&&$===void 0?DZ:$,this},l=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},w6=function(){this.__data__=[]},q6=function(U){var $=this.__data__,Z=fU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else X6.call($,Z,1);return!0},N6=function(U){var $=this.__data__,Z=fU($,U);return Z<0?void 0:$[Z][1]},F6=function(U){return fU(this.__data__,U)>-1},z6=function(U,$){var Z=this.__data__,R=fU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},k=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},L6=function(){this.__data__={hash:new d,map:new(Y6||l),string:new d}},H6=function(U){return xU(this,U).delete(U)},_6=function(U){return xU(this,U).get(U)},S6=function(U){return xU(this,U).has(U)},D6=function(U,$){return xU(this,U).set(U,$),this},fU=function(U,$){var Z=U.length;while(Z--)if(x6(U[Z][0],$))return Z;return-1},M6=function(U,$){$=O6($,U)?[$]:A6($);var Z=0,R=$.length;while(U!=null&&Z<R)U=U[V6($[Z++])];return Z&&Z==R?U:void 0},E6=function(U){if(!TZ(U)||T6(U))return!1;var $=g6(U)||$6(U)?Q6:t1;return $.test(f6(U))},I6=function(U){if(typeof U=="string")return U;if(q$(U))return SZ?SZ.call(U):"";var $=U+"";return $=="0"&&1/U==-MZ?"-0":$},A6=function(U){return PZ(U)?U:C6(U)},xU=function(U,$){var Z=U.__data__;return P6($)?Z[typeof $=="string"?"string":"hash"]:Z.map},OZ=function(U,$){var Z=U6(U,$);return E6(Z)?Z:void 0},O6=function(U,$){if(PZ(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||q$(U))return!0;return u1.test(U)||!c1.test(U)||$!=null&&U in Object($)},P6=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},T6=function(U){return!!LZ&&LZ in U},V6=function(U){if(typeof U=="string"||q$(U))return U;var $=U+"";return $=="0"&&1/U==-MZ?"-0":$},f6=function(U){if(U!=null){try{return IZ.call(U)}catch($){}try{return U+""}catch($){}}return""},w$=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(h1);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(w$.Cache||k),Z},x6=function(U,$){return U===$||U!==U&&$!==$},g6=function(U){var $=TZ(U)?AZ.call(U):"";return $==b1||$==n1},TZ=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},m6=function(U){return!!U&&typeof U=="object"},q$=function(U){return typeof U=="symbol"||m6(U)&&AZ.call(U)==i1},j6=function(U){return U==null?"":I6(U)},d6=function(U,$,Z){var R=U==null?void 0:M6(U,$);return R===void 0?Z:R},h1="Expected a function",DZ="__lodash_hash_undefined__",MZ=Infinity,b1="[object Function]",n1="[object GeneratorFunction]",i1="[object Symbol]",c1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u1=/^\w*$/,s1=/^\./,l1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r1=/[\\^$.*+?()[\]{}|]/g,o1=/\\(\\)?/g,t1=/^\[object .+?Constructor\]$/,a1=typeof global=="object"&&global&&global.Object===Object&&global,e1=typeof self=="object"&&self&&self.Object===Object&&self,G$=a1||e1||Function("return this")(),Z6=Array.prototype,R6=Function.prototype,EZ=Object.prototype,J$=G$["__core-js_shared__"],LZ=function(){var U=/[^.]+$/.exec(J$&&J$.keys&&J$.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),IZ=R6.toString,K$=EZ.hasOwnProperty,AZ=EZ.toString,Q6=RegExp("^"+IZ.call(K$).replace(r1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),HZ=G$.Symbol,X6=Z6.splice,Y6=OZ(G$,"Map"),UU=OZ(Object,"create"),_Z=HZ?HZ.prototype:void 0,SZ=_Z?_Z.toString:void 0;d.prototype.clear=B6;d.prototype.delete=W6;d.prototype.get=J6;d.prototype.has=G6;d.prototype.set=K6;l.prototype.clear=w6;l.prototype.delete=q6;l.prototype.get=N6;l.prototype.has=F6;l.prototype.set=z6;k.prototype.clear=L6;k.prototype.delete=H6;k.prototype.get=_6;k.prototype.has=S6;k.prototype.set=D6;var C6=w$(function(U){U=j6(U);var $=[];if(s1.test(U))$.push("");return U.replace(l1,function(Z,R,Q,X){$.push(Q?X.replace(o1,"$1"):R||Z)}),$});w$.Cache=k;var PZ=Array.isArray;CZ.exports=d6});var C$=mU(T$(),1),BU={isNamespace:(U)=>U&&!U.type,flattenSchema(U,$){return Object.entries(U).reduce((Z,[R,Q])=>{const X=$?`${$}.${R}`:R;if(BU.isNamespace(Q))Z={...Z,...BU.flattenSchema(Q,X)};else Object.assign(Q,{name:X}),Z[X]=Q;return Z},{})},wrapSchema(U){return Object.values(U).reduce(($,Z)=>{return C$.default($,Z.path,Z),$},{})}};var WU,jR=new Uint8Array(16);function hU(){if(!WU){if(WU=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WU)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return WU(jR)}function V$(U,$=0){return L[U[$+0]]+L[U[$+1]]+L[U[$+2]]+L[U[$+3]]+"-"+L[U[$+4]]+L[U[$+5]]+"-"+L[U[$+6]]+L[U[$+7]]+"-"+L[U[$+8]]+L[U[$+9]]+"-"+L[U[$+10]]+L[U[$+11]]+L[U[$+12]]+L[U[$+13]]+L[U[$+14]]+L[U[$+15]]}var L=[];for(let U=0;U<256;++U)L.push((U+256).toString(16).slice(1));var dR=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bU={randomUUID:dR};var kR=function(U,$,Z){if(bU.randomUUID&&!$&&!U)return bU.randomUUID();U=U||{};const R=U.random||(U.rng||hU)();if(R[6]=R[6]&15|64,R[8]=R[8]&63|128,$){Z=Z||0;for(let Q=0;Q<16;++Q)$[Z+Q]=R[Q];return $}return V$(R)},JU=kR;var zZ=mU(JZ(),1);var FZ={};dU(FZ,{validator:()=>{{return e}},validate:()=>{{return Q$}},unobserve:()=>{{return wZ}},unescapePathComponent:()=>{{return i}},observe:()=>{{return qZ}},getValueByPointer:()=>{{return a}},generate:()=>{{return VU}},escapePathComponent:()=>{{return _}},default:()=>{{return v1}},deepClone:()=>{{return z}},compare:()=>{{return NZ}},applyReducer:()=>{{return KZ}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return c}}});var X$={};dU(X$,{validator:()=>{{return e}},validate:()=>{{return Q$}},getValueByPointer:()=>{{return a}},deepClone:()=>{{return x1}},applyReducer:()=>{{return KZ}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return F}}});function PU(U,$){return f1.call(U,$)}function TU(U){if(Array.isArray(U)){var $=new Array(U.length);for(var Z=0;Z<$.length;Z++)$[Z]=""+Z;return $}if(Object.keys)return Object.keys(U);var R=[];for(var Q in U)if(PU(U,Q))R.push(Q);return R}function z(U){switch(typeof U){case"object":return JSON.parse(JSON.stringify(U));case"undefined":return null;default:return U}}function CU(U){var $=0,Z=U.length,R;while($<Z){if(R=U.charCodeAt($),R>=48&&R<=57){$++;continue}return!1}return!0}function _(U){if(U.indexOf("/")===-1&&U.indexOf("~")===-1)return U;return U.replace(/~/g,"~0").replace(/\//g,"~1")}function i(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}function OU(U){if(U===void 0)return!0;if(U){if(Array.isArray(U)){for(var $=0,Z=U.length;$<Z;$++)if(OU(U[$]))return!0}else if(typeof U==="object"){var R=TU(U),Q=R.length;for(var X=0;X<Q;X++)if(OU(U[R[X]]))return!0}}return!1}var GZ=function(U,$){var Z=[U];for(var R in $){var Q=typeof $[R]==="object"?JSON.stringify($[R],null,2):$[R];if(typeof Q!=="undefined")Z.push(R+": "+Q)}return Z.join("\n")};/*! | ||
var xZ=Object.create;var{defineProperty:mU,getPrototypeOf:mZ,getOwnPropertyNames:gZ}=Object;var jZ=Object.prototype.hasOwnProperty;var gU=(U,$,Z)=>{Z=U!=null?xZ(mZ(U)):{};const R=$||!U||!U.__esModule?mU(Z,"default",{value:U,enumerable:!0}):Z;for(let Q of gZ(U))if(!jZ.call(R,Q))mU(R,Q,{get:()=>U[Q],enumerable:!0});return R};var jU=(U,$)=>()=>($||U(($={exports:{}}).exports,$),$.exports);var dU=(U,$)=>{for(var Z in $)mU(U,Z,{get:$[Z],enumerable:!0,configurable:!0,set:(R)=>$[Z]=()=>R})};var T$=jU((p6,P$)=>{var tZ=function(U,$){return U==null?void 0:U[$]},aZ=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},f=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},QR=function(){this.__data__=r?r(null):{}},XR=function(U){return this.has(U)&&delete this.__data__[U]},YR=function(U){var $=this.__data__;if(r){var Z=$[U];return Z===_$?void 0:Z}return QU.call($,U)?$[U]:void 0},BR=function(U){var $=this.__data__;return r?$[U]!==void 0:QU.call($,U)},WR=function(U,$){var Z=this.__data__;return Z[U]=r&&$===void 0?_$:$,this},p=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},JR=function(){this.__data__=[]},GR=function(U){var $=this.__data__,Z=XU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else ZR.call($,Z,1);return!0},KR=function(U){var $=this.__data__,Z=XU($,U);return Z<0?void 0:$[Z][1]},wR=function(U){return XU(this.__data__,U)>-1},qR=function(U,$){var Z=this.__data__,R=XU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},x=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},NR=function(){this.__data__={hash:new f,map:new(RR||p),string:new f}},FR=function(U){return YU(this,U).delete(U)},zR=function(U){return YU(this,U).get(U)},LR=function(U){return YU(this,U).has(U)},HR=function(U,$){return YU(this,U).set(U,$),this},_R=function(U,$,Z){var R=U[$];if(!(QU.call(U,$)&&A$(R,Z))||Z===void 0&&!($ in U))U[$]=Z},XU=function(U,$){var Z=U.length;while(Z--)if(A$(U[Z][0],$))return Z;return-1},SR=function(U){if(!RU(U)||PR(U))return!1;var $=fR(U)||aZ(U)?$R:lZ;return $.test(VR(U))},DR=function(U,$,Z,R){if(!RU(U))return U;$=AR($,U)?[$]:ER($);var Q=-1,X=$.length,Y=X-1,B=U;while(B!=null&&++Q<X){var W=CR($[Q]),G=Z;if(Q!=Y){var J=B[W];if(G=R?R(J,W,B):void 0,G===void 0)G=RU(J)?J:IR($[Q+1])?[]:{}}_R(B,W,G),B=B[W]}return U},MR=function(U){if(typeof U=="string")return U;if(vU(U))return H$?H$.call(U):"";var $=U+"";return $=="0"&&1/U==-S$?"-0":$},ER=function(U){return O$(U)?U:TR(U)},YU=function(U,$){var Z=U.__data__;return OR($)?Z[typeof $=="string"?"string":"hash"]:Z.map},I$=function(U,$){var Z=tZ(U,$);return SR(Z)?Z:void 0},IR=function(U,$){return $=$==null?kZ:$,!!$&&(typeof U=="number"||sZ.test(U))&&(U>-1&&U%1==0&&U<$)},AR=function(U,$){if(O$(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||vU(U))return!0;return bZ.test(U)||!hZ.test(U)||$!=null&&U in Object($)},OR=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},PR=function(U){return!!F$&&F$ in U},CR=function(U){if(typeof U=="string"||vU(U))return U;var $=U+"";return $=="0"&&1/U==-S$?"-0":$},VR=function(U){if(U!=null){try{return M$.call(U)}catch($){}try{return U+""}catch($){}}return""},yU=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(dZ);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(yU.Cache||x),Z},A$=function(U,$){return U===$||U!==U&&$!==$},fR=function(U){var $=RU(U)?E$.call(U):"";return $==pZ||$==yZ},RU=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},xR=function(U){return!!U&&typeof U=="object"},vU=function(U){return typeof U=="symbol"||xR(U)&&E$.call(U)==vZ},mR=function(U){return U==null?"":MR(U)},gR=function(U,$,Z){return U==null?U:DR(U,$,Z)},dZ="Expected a function",_$="__lodash_hash_undefined__",S$=Infinity,kZ=9007199254740991,pZ="[object Function]",yZ="[object GeneratorFunction]",vZ="[object Symbol]",hZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bZ=/^\w*$/,nZ=/^\./,iZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cZ=/[\\^$.*+?()[\]{}|]/g,uZ=/\\(\\)?/g,lZ=/^\[object .+?Constructor\]$/,sZ=/^(?:0|[1-9]\d*)$/,rZ=typeof global=="object"&&global&&global.Object===Object&&global,oZ=typeof self=="object"&&self&&self.Object===Object&&self,pU=rZ||oZ||Function("return this")(),eZ=Array.prototype,UR=Function.prototype,D$=Object.prototype,kU=pU["__core-js_shared__"],F$=function(){var U=/[^.]+$/.exec(kU&&kU.keys&&kU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),M$=UR.toString,QU=D$.hasOwnProperty,E$=D$.toString,$R=RegExp("^"+M$.call(QU).replace(cZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z$=pU.Symbol,ZR=eZ.splice,RR=I$(pU,"Map"),r=I$(Object,"create"),L$=z$?z$.prototype:void 0,H$=L$?L$.toString:void 0;f.prototype.clear=QR;f.prototype.delete=XR;f.prototype.get=YR;f.prototype.has=BR;f.prototype.set=WR;p.prototype.clear=JR;p.prototype.delete=GR;p.prototype.get=KR;p.prototype.has=wR;p.prototype.set=qR;x.prototype.clear=NR;x.prototype.delete=FR;x.prototype.get=zR;x.prototype.has=LR;x.prototype.set=HR;var TR=yU(function(U){U=mR(U);var $=[];if(nZ.test(U))$.push("");return U.replace(iZ,function(Z,R,Q,X){$.push(Q?X.replace(uZ,"$1"):R||Z)}),$});yU.Cache=x;var O$=Array.isArray;P$.exports=gR});var JZ=jU((GU,v)=>{var YQ=function(U,$,Z,R){var Q=-1,X=U?U.length:0;while(++Q<X){var Y=U[Q];$(R,Y,Z(Y),U)}return R},BQ=function(U,$){var Z=-1,R=U?U.length:0;while(++Z<R)if($(U[Z],Z,U))return!0;return!1},WQ=function(U){return function($){return $==null?void 0:$[U]}},JQ=function(U,$){var Z=-1,R=Array(U);while(++Z<U)R[Z]=$(Z);return R},GQ=function(U){return function($){return U($)}},KQ=function(U,$){return U==null?void 0:U[$]},lU=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},wQ=function(U){var $=-1,Z=Array(U.size);return U.forEach(function(R,Q){Z[++$]=[Q,R]}),Z},qQ=function(U,$){return function(Z){return U($(Z))}},NQ=function(U){var $=-1,Z=Array(U.size);return U.forEach(function(R){Z[++$]=R}),Z},m=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},OQ=function(){this.__data__=t?t(null):{}},PQ=function(U){return this.has(U)&&delete this.__data__[U]},TQ=function(U){var $=this.__data__;if(t){var Z=$[U];return Z===aU?void 0:Z}return M.call($,U)?$[U]:void 0},CQ=function(U){var $=this.__data__;return t?$[U]!==void 0:M.call($,U)},VQ=function(U,$){var Z=this.__data__;return Z[U]=t&&$===void 0?aU:$,this},E=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},fQ=function(){this.__data__=[]},xQ=function(U){var $=this.__data__,Z=SU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else _Q.call($,Z,1);return!0},mQ=function(U){var $=this.__data__,Z=SU($,U);return Z<0?void 0:$[Z][1]},gQ=function(U){return SU(this.__data__,U)>-1},jQ=function(U,$){var Z=this.__data__,R=SU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},I=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},dQ=function(){this.__data__={hash:new m,map:new(o||E),string:new m}},kQ=function(U){return DU(this,U).delete(U)},pQ=function(U){return DU(this,U).get(U)},yQ=function(U){return DU(this,U).has(U)},vQ=function(U,$){return DU(this,U).set(U,$),this},zU=function(U){var $=-1,Z=U?U.length:0;this.__data__=new I;while(++$<Z)this.add(U[$])},hQ=function(U){return this.__data__.set(U,aU),this},bQ=function(U){return this.__data__.has(U)},D=function(U){this.__data__=new E(U)},nQ=function(){this.__data__=new E},iQ=function(U){return this.__data__.delete(U)},cQ=function(U){return this.__data__.get(U)},uQ=function(U){return this.__data__.has(U)},lQ=function(U,$){var Z=this.__data__;if(Z instanceof E){var R=Z.__data__;if(!o||R.length<pR-1)return R.push([U,$]),this;Z=this.__data__=new I(R)}return Z.set(U,$),this},sQ=function(U,$){var Z=P(U)||BZ(U)?JQ(U.length,String):[],R=Z.length,Q=!!R;for(var X in U)if(($||M.call(U,X))&&!(Q&&(X=="length"||RZ(X,R))))Z.push(X);return Z},SU=function(U,$){var Z=U.length;while(Z--)if(YZ(U[Z][0],$))return Z;return-1},rQ=function(U,$,Z,R){return oQ(U,function(Q,X,Y){$(R,Q,Z(Q),Y)}),R},aQ=function(U,$){return U&&tQ(U,$,LU)},UZ=function(U,$){$=MU($,U)?[$]:$Z($);var Z=0,R=$.length;while(U!=null&&Z<R)U=U[EU($[Z++])];return Z&&Z==R?U:void 0},eQ=function(U){return b.call(U)},U1=function(U,$){return U!=null&&$ in Object(U)},eU=function(U,$,Z,R,Q){if(U===$)return!0;if(U==null||$==null||!IU(U)&&!AU($))return U!==U&&$!==$;return $1(U,$,eU,Z,R,Q)},$1=function(U,$,Z,R,Q,X){var Y=P(U),B=P($),W=cU,G=cU;if(!Y)W=O(U),W=W==KU?y:W;if(!B)G=O($),G=G==KU?y:G;var J=W==y&&!lU(U),q=G==y&&!lU($),K=W==G;if(K&&!J)return X||(X=new D),Y||I1(U)?ZZ(U,$,Z,R,Q,X):N1(U,$,W,Z,R,Q,X);if(!(Q&h)){var w=J&&M.call(U,"__wrapped__"),H=q&&M.call($,"__wrapped__");if(w||H){var A=w?U.value():U,S=H?$.value():$;return X||(X=new D),Z(A,S,R,Q,X)}}if(!K)return!1;return X||(X=new D),F1(U,$,Z,R,Q,X)},Z1=function(U,$,Z,R){var Q=Z.length,X=Q,Y=!R;if(U==null)return!X;U=Object(U);while(Q--){var B=Z[Q];if(Y&&B[2]?B[1]!==U[B[0]]:!(B[0]in U))return!1}while(++Q<X){B=Z[Q];var W=B[0],G=U[W],J=B[1];if(Y&&B[2]){if(G===void 0&&!(W in U))return!1}else{var q=new D;if(R)var K=R(G,J,W,U,$,q);if(!(K===void 0?eU(J,G,R,HU|h,q):K))return!1}}return!0},R1=function(U){if(!IU(U)||_1(U))return!1;var $=WZ(U)||lU(U)?LQ:ZQ;return $.test(g(U))},Q1=function(U){return AU(U)&&Z$(U.length)&&!!N[b.call(U)]},X1=function(U){if(typeof U=="function")return U;if(U==null)return T1;if(typeof U=="object")return P(U)?W1(U[0],U[1]):B1(U);return C1(U)},Y1=function(U){if(!S1(U))return SQ(U);var $=[];for(var Z in Object(U))if(M.call(U,Z)&&Z!="constructor")$.push(Z);return $},B1=function(U){var $=z1(U);if($.length==1&&$[0][2])return XZ($[0][0],$[0][1]);return function(Z){return Z===U||Z1(Z,U,$)}},W1=function(U,$){if(MU(U)&&QZ($))return XZ(EU(U),$);return function(Z){var R=O1(Z,U);return R===void 0&&R===$?P1(Z,U):eU($,R,void 0,HU|h)}},J1=function(U){return function($){return UZ($,U)}},G1=function(U){if(typeof U=="string")return U;if(R$(U))return y$?y$.call(U):"";var $=U+"";return $=="0"&&1/U==-v$?"-0":$},$Z=function(U){return P(U)?U:D1(U)},K1=function(U,$){return function(Z,R){var Q=P(Z)?YQ:rQ,X=$?$():{};return Q(Z,U,X1(R,2),X)}},w1=function(U,$){return function(Z,R){if(Z==null)return Z;if(!$$(Z))return U(Z,R);var Q=Z.length,X=$?Q:-1,Y=Object(Z);while($?X--:++X<Q)if(R(Y[X],X,Y)===!1)break;return Z}},q1=function(U){return function($,Z,R){var Q=-1,X=Object($),Y=R($),B=Y.length;while(B--){var W=Y[U?B:++Q];if(Z(X[W],W,X)===!1)break}return $}},ZZ=function(U,$,Z,R,Q,X){var Y=Q&h,B=U.length,W=$.length;if(B!=W&&!(Y&&W>B))return!1;var G=X.get(U);if(G&&X.get($))return G==$;var J=-1,q=!0,K=Q&HU?new zU:void 0;X.set(U,$),X.set($,U);while(++J<B){var w=U[J],H=$[J];if(R)var A=Y?R(H,w,J,$,U,X):R(w,H,J,U,$,X);if(A!==void 0){if(A)continue;q=!1;break}if(K){if(!BQ($,function(S,V){if(!K.has(V)&&(w===S||Z(w,S,R,Q,X)))return K.add(V)})){q=!1;break}}else if(!(w===H||Z(w,H,R,Q,X))){q=!1;break}}return X.delete(U),X.delete($),q},N1=function(U,$,Z,R,Q,X,Y){switch(Z){case NU:if(U.byteLength!=$.byteLength||U.byteOffset!=$.byteOffset)return!1;U=U.buffer,$=$.buffer;case o$:if(U.byteLength!=$.byteLength||!R(new p$(U),new p$($)))return!1;return!0;case b$:case n$:case u$:return YZ(+U,+$);case i$:return U.name==$.name&&U.message==$.message;case l$:case s$:return U==$+"";case wU:var B=wQ;case qU:var W=X&h;if(B||(B=NQ),U.size!=$.size&&!W)return!1;var G=Y.get(U);if(G)return G==$;X|=HU,Y.set(U,$);var J=ZZ(B(U),B($),R,Q,X,Y);return Y.delete(U),J;case r$:if(iU)return iU.call(U)==iU.call($)}return!1},F1=function(U,$,Z,R,Q,X){var Y=Q&h,B=LU(U),W=B.length,G=LU($),J=G.length;if(W!=J&&!Y)return!1;var q=W;while(q--){var K=B[q];if(!(Y?K in $:M.call($,K)))return!1}var w=X.get(U);if(w&&X.get($))return w==$;var H=!0;X.set(U,$),X.set($,U);var A=Y;while(++q<W){K=B[q];var S=U[K],V=$[K];if(R)var N$=Y?R(V,S,K,$,U,X):R(S,V,K,U,$,X);if(!(N$===void 0?S===V||Z(S,V,R,Q,X):N$)){H=!1;break}A||(A=K=="constructor")}if(H&&!A){var $U=U.constructor,ZU=$.constructor;if($U!=ZU&&(("constructor"in U)&&("constructor"in $))&&!(typeof $U=="function"&&$U instanceof $U&&typeof ZU=="function"&&ZU instanceof ZU))H=!1}return X.delete(U),X.delete($),H},DU=function(U,$){var Z=U.__data__;return H1($)?Z[typeof $=="string"?"string":"hash"]:Z.map},z1=function(U){var $=LU(U),Z=$.length;while(Z--){var R=$[Z],Q=U[R];$[Z]=[R,Q,QZ(Q)]}return $},n=function(U,$){var Z=KQ(U,$);return R1(Z)?Z:void 0},L1=function(U,$,Z){$=MU($,U)?[$]:$Z($);var R,Q=-1,Y=$.length;while(++Q<Y){var X=EU($[Q]);if(!(R=U!=null&&Z(U,X)))break;U=U[X]}if(R)return R;var Y=U?U.length:0;return!!Y&&Z$(Y)&&RZ(X,Y)&&(P(U)||BZ(U))},RZ=function(U,$){return $=$==null?h$:$,!!$&&(typeof U=="number"||RQ.test(U))&&(U>-1&&U%1==0&&U<$)},MU=function(U,$){if(P(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||R$(U))return!0;return tR.test(U)||!oR.test(U)||$!=null&&U in Object($)},H1=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},_1=function(U){return!!d$&&d$ in U},S1=function(U){var $=U&&U.constructor,Z=typeof $=="function"&&$.prototype||_U;return U===Z},QZ=function(U){return U===U&&!IU(U)},XZ=function(U,$){return function(Z){if(Z==null)return!1;return Z[U]===$&&($!==void 0||(U in Object(Z)))}},EU=function(U){if(typeof U=="string"||R$(U))return U;var $=U+"";return $=="0"&&1/U==-v$?"-0":$},g=function(U){if(U!=null){try{return e$.call(U)}catch($){}try{return U+""}catch($){}}return""},U$=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(yR);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(U$.Cache||I),Z},YZ=function(U,$){return U===$||U!==U&&$!==$},BZ=function(U){return E1(U)&&M.call(U,"callee")&&(!HQ.call(U,"callee")||b.call(U)==KU)},$$=function(U){return U!=null&&Z$(U.length)&&!WZ(U)},E1=function(U){return AU(U)&&$$(U)},WZ=function(U){var $=IU(U)?b.call(U):"";return $==c$||$==vR},Z$=function(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=h$},IU=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},AU=function(U){return!!U&&typeof U=="object"},R$=function(U){return typeof U=="symbol"||AU(U)&&b.call(U)==r$},A1=function(U){return U==null?"":G1(U)},O1=function(U,$,Z){var R=U==null?void 0:UZ(U,$);return R===void 0?Z:R},P1=function(U,$){return U!=null&&L1(U,$,U1)},LU=function(U){return $$(U)?sQ(U):Y1(U)},T1=function(U){return U},C1=function(U){return MU(U)?WQ(EU(U)):J1(U)},pR=200,yR="Expected a function",aU="__lodash_hash_undefined__",HU=1,h=2,v$=Infinity,h$=9007199254740991,KU="[object Arguments]",cU="[object Array]",b$="[object Boolean]",n$="[object Date]",i$="[object Error]",c$="[object Function]",vR="[object GeneratorFunction]",wU="[object Map]",u$="[object Number]",y="[object Object]",f$="[object Promise]",l$="[object RegExp]",qU="[object Set]",s$="[object String]",r$="[object Symbol]",uU="[object WeakMap]",o$="[object ArrayBuffer]",NU="[object DataView]",hR="[object Float32Array]",bR="[object Float64Array]",nR="[object Int8Array]",iR="[object Int16Array]",cR="[object Int32Array]",uR="[object Uint8Array]",lR="[object Uint8ClampedArray]",sR="[object Uint16Array]",rR="[object Uint32Array]",oR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tR=/^\w*$/,aR=/^\./,eR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UQ=/[\\^$.*+?()[\]{}|]/g,$Q=/\\(\\)?/g,ZQ=/^\[object .+?Constructor\]$/,RQ=/^(?:0|[1-9]\d*)$/,N={};N[hR]=N[bR]=N[nR]=N[iR]=N[cR]=N[uR]=N[lR]=N[sR]=N[rR]=!0;N[KU]=N[cU]=N[o$]=N[b$]=N[NU]=N[n$]=N[i$]=N[c$]=N[wU]=N[u$]=N[y]=N[l$]=N[qU]=N[s$]=N[uU]=!1;var t$=typeof global=="object"&&global&&global.Object===Object&&global,QQ=typeof self=="object"&&self&&self.Object===Object&&self,T=t$||QQ||Function("return this")(),a$=typeof GU=="object"&&GU&&!GU.nodeType&&GU,x$=a$&&typeof v=="object"&&v&&!v.nodeType&&v,XQ=x$&&x$.exports===a$,m$=XQ&&t$.process,g$=function(){try{return m$&&m$.binding("util")}catch(U){}}(),j$=g$&&g$.isTypedArray,FQ=Array.prototype,zQ=Function.prototype,_U=Object.prototype,nU=T["__core-js_shared__"],d$=function(){var U=/[^.]+$/.exec(nU&&nU.keys&&nU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),e$=zQ.toString,M=_U.hasOwnProperty,b=_U.toString,LQ=RegExp("^"+e$.call(M).replace(UQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k$=T.Symbol,p$=T.Uint8Array,HQ=_U.propertyIsEnumerable,_Q=FQ.splice,SQ=qQ(Object.keys,Object),sU=n(T,"DataView"),o=n(T,"Map"),rU=n(T,"Promise"),oU=n(T,"Set"),tU=n(T,"WeakMap"),t=n(Object,"create"),DQ=g(sU),MQ=g(o),EQ=g(rU),IQ=g(oU),AQ=g(tU),FU=k$?k$.prototype:void 0,iU=FU?FU.valueOf:void 0,y$=FU?FU.toString:void 0;m.prototype.clear=OQ;m.prototype.delete=PQ;m.prototype.get=TQ;m.prototype.has=CQ;m.prototype.set=VQ;E.prototype.clear=fQ;E.prototype.delete=xQ;E.prototype.get=mQ;E.prototype.has=gQ;E.prototype.set=jQ;I.prototype.clear=dQ;I.prototype.delete=kQ;I.prototype.get=pQ;I.prototype.has=yQ;I.prototype.set=vQ;zU.prototype.add=zU.prototype.push=hQ;zU.prototype.has=bQ;D.prototype.clear=nQ;D.prototype.delete=iQ;D.prototype.get=cQ;D.prototype.has=uQ;D.prototype.set=lQ;var oQ=w1(aQ),tQ=q1(),O=eQ;if(sU&&O(new sU(new ArrayBuffer(1)))!=NU||o&&O(new o)!=wU||rU&&O(rU.resolve())!=f$||oU&&O(new oU)!=qU||tU&&O(new tU)!=uU)O=function(U){var $=b.call(U),Z=$==y?U.constructor:void 0,R=Z?g(Z):void 0;if(R)switch(R){case DQ:return NU;case MQ:return wU;case EQ:return f$;case IQ:return qU;case AQ:return uU}return $};var D1=U$(function(U){U=A1(U);var $=[];if(aR.test(U))$.push("");return U.replace(eR,function(Z,R,Q,X){$.push(Q?X.replace($Q,"$1"):R||Z)}),$}),M1=K1(function(U,$,Z){U[Z]=$});U$.Cache=I;var P=Array.isArray,I1=j$?GQ(j$):Q1;v.exports=M1});var VZ=jU((W8,CZ)=>{var U6=function(U,$){return U==null?void 0:U[$]},$6=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},d=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},B6=function(){this.__data__=UU?UU(null):{}},W6=function(U){return this.has(U)&&delete this.__data__[U]},J6=function(U){var $=this.__data__;if(UU){var Z=$[U];return Z===DZ?void 0:Z}return K$.call($,U)?$[U]:void 0},G6=function(U){var $=this.__data__;return UU?$[U]!==void 0:K$.call($,U)},K6=function(U,$){var Z=this.__data__;return Z[U]=UU&&$===void 0?DZ:$,this},s=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},w6=function(){this.__data__=[]},q6=function(U){var $=this.__data__,Z=fU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else X6.call($,Z,1);return!0},N6=function(U){var $=this.__data__,Z=fU($,U);return Z<0?void 0:$[Z][1]},F6=function(U){return fU(this.__data__,U)>-1},z6=function(U,$){var Z=this.__data__,R=fU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},k=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},L6=function(){this.__data__={hash:new d,map:new(Y6||s),string:new d}},H6=function(U){return xU(this,U).delete(U)},_6=function(U){return xU(this,U).get(U)},S6=function(U){return xU(this,U).has(U)},D6=function(U,$){return xU(this,U).set(U,$),this},fU=function(U,$){var Z=U.length;while(Z--)if(x6(U[Z][0],$))return Z;return-1},M6=function(U,$){$=O6($,U)?[$]:A6($);var Z=0,R=$.length;while(U!=null&&Z<R)U=U[V6($[Z++])];return Z&&Z==R?U:void 0},E6=function(U){if(!TZ(U)||T6(U))return!1;var $=m6(U)||$6(U)?Q6:t1;return $.test(f6(U))},I6=function(U){if(typeof U=="string")return U;if(q$(U))return SZ?SZ.call(U):"";var $=U+"";return $=="0"&&1/U==-MZ?"-0":$},A6=function(U){return PZ(U)?U:C6(U)},xU=function(U,$){var Z=U.__data__;return P6($)?Z[typeof $=="string"?"string":"hash"]:Z.map},OZ=function(U,$){var Z=U6(U,$);return E6(Z)?Z:void 0},O6=function(U,$){if(PZ(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||q$(U))return!0;return u1.test(U)||!c1.test(U)||$!=null&&U in Object($)},P6=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},T6=function(U){return!!LZ&&LZ in U},V6=function(U){if(typeof U=="string"||q$(U))return U;var $=U+"";return $=="0"&&1/U==-MZ?"-0":$},f6=function(U){if(U!=null){try{return IZ.call(U)}catch($){}try{return U+""}catch($){}}return""},w$=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(h1);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(w$.Cache||k),Z},x6=function(U,$){return U===$||U!==U&&$!==$},m6=function(U){var $=TZ(U)?AZ.call(U):"";return $==b1||$==n1},TZ=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},g6=function(U){return!!U&&typeof U=="object"},q$=function(U){return typeof U=="symbol"||g6(U)&&AZ.call(U)==i1},j6=function(U){return U==null?"":I6(U)},d6=function(U,$,Z){var R=U==null?void 0:M6(U,$);return R===void 0?Z:R},h1="Expected a function",DZ="__lodash_hash_undefined__",MZ=Infinity,b1="[object Function]",n1="[object GeneratorFunction]",i1="[object Symbol]",c1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u1=/^\w*$/,l1=/^\./,s1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r1=/[\\^$.*+?()[\]{}|]/g,o1=/\\(\\)?/g,t1=/^\[object .+?Constructor\]$/,a1=typeof global=="object"&&global&&global.Object===Object&&global,e1=typeof self=="object"&&self&&self.Object===Object&&self,G$=a1||e1||Function("return this")(),Z6=Array.prototype,R6=Function.prototype,EZ=Object.prototype,J$=G$["__core-js_shared__"],LZ=function(){var U=/[^.]+$/.exec(J$&&J$.keys&&J$.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),IZ=R6.toString,K$=EZ.hasOwnProperty,AZ=EZ.toString,Q6=RegExp("^"+IZ.call(K$).replace(r1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),HZ=G$.Symbol,X6=Z6.splice,Y6=OZ(G$,"Map"),UU=OZ(Object,"create"),_Z=HZ?HZ.prototype:void 0,SZ=_Z?_Z.toString:void 0;d.prototype.clear=B6;d.prototype.delete=W6;d.prototype.get=J6;d.prototype.has=G6;d.prototype.set=K6;s.prototype.clear=w6;s.prototype.delete=q6;s.prototype.get=N6;s.prototype.has=F6;s.prototype.set=z6;k.prototype.clear=L6;k.prototype.delete=H6;k.prototype.get=_6;k.prototype.has=S6;k.prototype.set=D6;var C6=w$(function(U){U=j6(U);var $=[];if(l1.test(U))$.push("");return U.replace(s1,function(Z,R,Q,X){$.push(Q?X.replace(o1,"$1"):R||Z)}),$});w$.Cache=k;var PZ=Array.isArray;CZ.exports=d6});var C$=gU(T$(),1),BU={isNamespace:(U)=>U&&!U.type,flattenSchema(U,$){return Object.entries(U).reduce((Z,[R,Q])=>{const X=$?`${$}.${R}`:R;if(BU.isNamespace(Q))Z={...Z,...BU.flattenSchema(Q,X)};else Object.assign(Q,{name:X}),Z[X]=Q;return Z},{})},wrapSchema(U){return Object.values(U).reduce(($,Z)=>{return C$.default($,Z.path,Z),$},{})}};var WU,jR=new Uint8Array(16);function hU(){if(!WU){if(WU=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WU)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return WU(jR)}function V$(U,$=0){return L[U[$+0]]+L[U[$+1]]+L[U[$+2]]+L[U[$+3]]+"-"+L[U[$+4]]+L[U[$+5]]+"-"+L[U[$+6]]+L[U[$+7]]+"-"+L[U[$+8]]+L[U[$+9]]+"-"+L[U[$+10]]+L[U[$+11]]+L[U[$+12]]+L[U[$+13]]+L[U[$+14]]+L[U[$+15]]}var L=[];for(let U=0;U<256;++U)L.push((U+256).toString(16).slice(1));var dR=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bU={randomUUID:dR};var kR=function(U,$,Z){if(bU.randomUUID&&!$&&!U)return bU.randomUUID();U=U||{};const R=U.random||(U.rng||hU)();if(R[6]=R[6]&15|64,R[8]=R[8]&63|128,$){Z=Z||0;for(let Q=0;Q<16;++Q)$[Z+Q]=R[Q];return $}return V$(R)},JU=kR;var zZ=gU(JZ(),1);var FZ={};dU(FZ,{validator:()=>{{return e}},validate:()=>{{return Q$}},unobserve:()=>{{return wZ}},unescapePathComponent:()=>{{return i}},observe:()=>{{return qZ}},getValueByPointer:()=>{{return a}},generate:()=>{{return VU}},escapePathComponent:()=>{{return _}},default:()=>{{return y1}},deepClone:()=>{{return z}},compare:()=>{{return NZ}},applyReducer:()=>{{return KZ}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return l}},JsonPatchError:()=>{{return c}}});var X$={};dU(X$,{validator:()=>{{return e}},validate:()=>{{return Q$}},getValueByPointer:()=>{{return a}},deepClone:()=>{{return x1}},applyReducer:()=>{{return KZ}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return l}},JsonPatchError:()=>{{return F}}});function PU(U,$){return f1.call(U,$)}function TU(U){if(Array.isArray(U)){var $=new Array(U.length);for(var Z=0;Z<$.length;Z++)$[Z]=""+Z;return $}if(Object.keys)return Object.keys(U);var R=[];for(var Q in U)if(PU(U,Q))R.push(Q);return R}function z(U){switch(typeof U){case"object":return JSON.parse(JSON.stringify(U));case"undefined":return null;default:return U}}function CU(U){var $=0,Z=U.length,R;while($<Z){if(R=U.charCodeAt($),R>=48&&R<=57){$++;continue}return!1}return!0}function _(U){if(U.indexOf("/")===-1&&U.indexOf("~")===-1)return U;return U.replace(/~/g,"~0").replace(/\//g,"~1")}function i(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}function OU(U){if(U===void 0)return!0;if(U){if(Array.isArray(U)){for(var $=0,Z=U.length;$<Z;$++)if(OU(U[$]))return!0}else if(typeof U==="object"){var R=TU(U),Q=R.length;for(var X=0;X<Q;X++)if(OU(U[R[X]]))return!0}}return!1}var GZ=function(U,$){var Z=[U];for(var R in $){var Q=typeof $[R]==="object"?JSON.stringify($[R],null,2):$[R];if(typeof Q!=="undefined")Z.push(R+": "+Q)}return Z.join("\n")};/*! | ||
* https://github.com/Starcounter-Jack/JSON-Patch | ||
* (c) 2017-2022 Joachim Wester | ||
* MIT licensed | ||
*/var V1=function(){var U=function($,Z){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Q){R.__proto__=Q}||function(R,Q){for(var X in Q)if(Q.hasOwnProperty(X))R[X]=Q[X]},U($,Z)};return function($,Z){U($,Z);function R(){this.constructor=$}$.prototype=Z===null?Object.create(Z):(R.prototype=Z.prototype,new R)}}(),f1=Object.prototype.hasOwnProperty,c=function(U){V1($,U);function $(Z,R,Q,X,Y){var B=this.constructor,W=U.call(this,GZ(Z,{name:R,index:Q,operation:X,tree:Y}))||this;return W.name=R,W.index=Q,W.operation=X,W.tree=Y,Object.setPrototypeOf(W,B.prototype),W.message=GZ(Z,{name:R,index:Q,operation:X,tree:Y}),W}return $}(Error);function a(U,$){if($=="")return U;var Z={op:"_get",path:$};return C(U,Z),Z.value}function C(U,$,Z,R,Q,X){if(Z===void 0)Z=!1;if(R===void 0)R=!0;if(Q===void 0)Q=!0;if(X===void 0)X=0;if(Z)if(typeof Z=="function")Z($,0,U,$.path);else e($,0);if($.path===""){var Y={newDocument:U};if($.op==="add")return Y.newDocument=$.value,Y;else if($.op==="replace")return Y.newDocument=$.value,Y.removed=U,Y;else if($.op==="move"||$.op==="copy"){if(Y.newDocument=a(U,$.from),$.op==="move")Y.removed=U;return Y}else if($.op==="test"){if(Y.test=s(U,$.value),Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y.newDocument=U,Y}else if($.op==="remove")return Y.removed=U,Y.newDocument=null,Y;else if($.op==="_get")return $.value=U,Y;else if(Z)throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",X,$,U);else return Y}else{if(!R)U=z(U);var B=$.path||"",W=B.split("/"),G=U,J=1,q=W.length,K=void 0,w=void 0,H=void 0;if(typeof Z=="function")H=Z;else H=e;while(!0){if(w=W[J],w&&w.indexOf("~")!=-1)w=i(w);if(Q&&(w=="__proto__"||w=="prototype"&&J>0&&W[J-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(Z){if(K===void 0){if(G[w]===void 0)K=W.slice(0,J).join("/");else if(J==q-1)K=$.path;if(K!==void 0)H($,0,U,K)}}if(J++,Array.isArray(G)){if(w==="-")w=G.length;else if(Z&&!CU(w))throw new F("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",X,$,U);else if(CU(w))w=~~w;if(J>=q){if(Z&&$.op==="add"&&w>G.length)throw new F("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",X,$,U);var Y=g1[$.op].call($,G,w,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y}}else if(J>=q){var Y=u[$.op].call($,G,w,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y}if(G=G[w],Z&&J<q&&(!G||typeof G!=="object"))throw new F("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",X,$,U)}}}function j(U,$,Z,R,Q){if(R===void 0)R=!0;if(Q===void 0)Q=!0;if(Z){if(!Array.isArray($))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY")}if(!R)U=z(U);var X=new Array($.length);for(var Y=0,B=$.length;Y<B;Y++)X[Y]=C(U,$[Y],Z,!0,Q,Y),U=X[Y].newDocument;return X.newDocument=U,X}function KZ(U,$,Z){var R=C(U,$);if(R.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",Z,$,U);return R.newDocument}function e(U,$,Z,R){if(typeof U!=="object"||U===null||Array.isArray(U))throw new F("Operation is not an object","OPERATION_NOT_AN_OBJECT",$,U,Z);else if(!u[U.op])throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",$,U,Z);else if(typeof U.path!=="string")throw new F("Operation `path` property is not a string","OPERATION_PATH_INVALID",$,U,Z);else if(U.path.indexOf("/")!==0&&U.path.length>0)throw new F('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",$,U,Z);else if((U.op==="move"||U.op==="copy")&&typeof U.from!=="string")throw new F("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",$,U,Z);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&U.value===void 0)throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",$,U,Z);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&OU(U.value))throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",$,U,Z);else if(Z){if(U.op=="add"){var Q=U.path.split("/").length,X=R.split("/").length;if(Q!==X+1&&Q!==X)throw new F("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",$,U,Z)}else if(U.op==="replace"||U.op==="remove"||U.op==="_get"){if(U.path!==R)throw new F("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",$,U,Z)}else if(U.op==="move"||U.op==="copy"){var Y={op:"_get",path:U.from,value:void 0},B=Q$([Y],Z);if(B&&B.name==="OPERATION_PATH_UNRESOLVABLE")throw new F("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",$,U,Z)}}}function Q$(U,$,Z){try{if(!Array.isArray(U))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if($)j(z($),z(U),Z||!0);else{Z=Z||e;for(var R=0;R<U.length;R++)Z(U[R],R,$,void 0)}}catch(Q){if(Q instanceof F)return Q;else throw Q}}function s(U,$){if(U===$)return!0;if(U&&$&&typeof U=="object"&&typeof $=="object"){var Z=Array.isArray(U),R=Array.isArray($),Q,X,Y;if(Z&&R){if(X=U.length,X!=$.length)return!1;for(Q=X;Q--!==0;)if(!s(U[Q],$[Q]))return!1;return!0}if(Z!=R)return!1;var B=Object.keys(U);if(X=B.length,X!==Object.keys($).length)return!1;for(Q=X;Q--!==0;)if(!$.hasOwnProperty(B[Q]))return!1;for(Q=X;Q--!==0;)if(Y=B[Q],!s(U[Y],$[Y]))return!1;return!0}return U!==U&&$!==$}var F=c,x1=z,u={add:function(U,$,Z){return U[$]=this.value,{newDocument:Z}},remove:function(U,$,Z){var R=U[$];return delete U[$],{newDocument:Z,removed:R}},replace:function(U,$,Z){var R=U[$];return U[$]=this.value,{newDocument:Z,removed:R}},move:function(U,$,Z){var R=a(Z,this.path);if(R)R=z(R);var Q=C(Z,{op:"remove",path:this.from}).removed;return C(Z,{op:"add",path:this.path,value:Q}),{newDocument:Z,removed:R}},copy:function(U,$,Z){var R=a(Z,this.from);return C(Z,{op:"add",path:this.path,value:z(R)}),{newDocument:Z}},test:function(U,$,Z){return{newDocument:Z,test:s(U[$],this.value)}},_get:function(U,$,Z){return this.value=U[$],{newDocument:Z}}},g1={add:function(U,$,Z){if(CU($))U.splice($,0,this.value);else U[$]=this.value;return{newDocument:Z,index:$}},remove:function(U,$,Z){var R=U.splice($,1);return{newDocument:Z,removed:R[0]}},replace:function(U,$,Z){var R=U[$];return U[$]=this.value,{newDocument:Z,removed:R}},move:u.move,copy:u.copy,test:u.test,_get:u._get};var W$={};dU(W$,{unobserve:()=>{{return wZ}},observe:()=>{{return qZ}},generate:()=>{{return VU}},compare:()=>{{return NZ}}});var d1=function(U){return Y$.get(U)},k1=function(U,$){return U.observers.get($)},p1=function(U,$){U.observers.delete($.callback)};function wZ(U,$){$.unobserve()}function qZ(U,$){var Z=[],R,Q=d1(U);if(!Q)Q=new m1(U),Y$.set(U,Q);else{var X=k1(Q,$);R=X&&X.observer}if(R)return R;if(R={},Q.value=z(U),$){R.callback=$,R.next=null;var Y=function(){VU(R)},B=function(){clearTimeout(R.next),R.next=setTimeout(Y)};if(typeof window!=="undefined")window.addEventListener("mouseup",B),window.addEventListener("keyup",B),window.addEventListener("mousedown",B),window.addEventListener("keydown",B),window.addEventListener("change",B)}return R.patches=Z,R.object=U,R.unobserve=function(){if(VU(R),clearTimeout(R.next),p1(Q,R),typeof window!=="undefined")window.removeEventListener("mouseup",B),window.removeEventListener("keyup",B),window.removeEventListener("mousedown",B),window.removeEventListener("keydown",B),window.removeEventListener("change",B)},Q.observers.set($,new j1($,R)),R}function VU(U,$){if($===void 0)$=!1;var Z=Y$.get(U.object);if(B$(Z.value,U.object,U.patches,"",$),U.patches.length)j(Z.value,U.patches);var R=U.patches;if(R.length>0){if(U.patches=[],U.callback)U.callback(R)}return R}var B$=function(U,$,Z,R,Q){if($===U)return;if(typeof $.toJSON==="function")$=$.toJSON();var X=TU($),Y=TU(U),B=!1,W=!1;for(var G=Y.length-1;G>=0;G--){var J=Y[G],q=U[J];if(PU($,J)&&!($[J]===void 0&&q!==void 0&&Array.isArray($)===!1)){var K=$[J];if(typeof q=="object"&&q!=null&&typeof K=="object"&&K!=null&&Array.isArray(q)===Array.isArray(K))B$(q,K,Z,R+"/"+_(J),Q);else if(q!==K){if(B=!0,Q)Z.push({op:"test",path:R+"/"+_(J),value:z(q)});Z.push({op:"replace",path:R+"/"+_(J),value:z(K)})}}else if(Array.isArray(U)===Array.isArray($)){if(Q)Z.push({op:"test",path:R+"/"+_(J),value:z(q)});Z.push({op:"remove",path:R+"/"+_(J)}),W=!0}else{if(Q)Z.push({op:"test",path:R,value:U});Z.push({op:"replace",path:R,value:$}),B=!0}}if(!W&&X.length==Y.length)return;for(var G=0;G<X.length;G++){var J=X[G];if(!PU(U,J)&&$[J]!==void 0)Z.push({op:"add",path:R+"/"+_(J),value:z($[J])})}};function NZ(U,$,Z){if(Z===void 0)Z=!1;var R=[];return B$(U,$,R,"",Z),R}/*! | ||
*/var V1=function(){var U=function($,Z){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Q){R.__proto__=Q}||function(R,Q){for(var X in Q)if(Q.hasOwnProperty(X))R[X]=Q[X]},U($,Z)};return function($,Z){U($,Z);function R(){this.constructor=$}$.prototype=Z===null?Object.create(Z):(R.prototype=Z.prototype,new R)}}(),f1=Object.prototype.hasOwnProperty,c=function(U){V1($,U);function $(Z,R,Q,X,Y){var B=this.constructor,W=U.call(this,GZ(Z,{name:R,index:Q,operation:X,tree:Y}))||this;return W.name=R,W.index=Q,W.operation=X,W.tree=Y,Object.setPrototypeOf(W,B.prototype),W.message=GZ(Z,{name:R,index:Q,operation:X,tree:Y}),W}return $}(Error);function a(U,$){if($=="")return U;var Z={op:"_get",path:$};return C(U,Z),Z.value}function C(U,$,Z,R,Q,X){if(Z===void 0)Z=!1;if(R===void 0)R=!0;if(Q===void 0)Q=!0;if(X===void 0)X=0;if(Z)if(typeof Z=="function")Z($,0,U,$.path);else e($,0);if($.path===""){var Y={newDocument:U};if($.op==="add")return Y.newDocument=$.value,Y;else if($.op==="replace")return Y.newDocument=$.value,Y.removed=U,Y;else if($.op==="move"||$.op==="copy"){if(Y.newDocument=a(U,$.from),$.op==="move")Y.removed=U;return Y}else if($.op==="test"){if(Y.test=l(U,$.value),Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y.newDocument=U,Y}else if($.op==="remove")return Y.removed=U,Y.newDocument=null,Y;else if($.op==="_get")return $.value=U,Y;else if(Z)throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",X,$,U);else return Y}else{if(!R)U=z(U);var B=$.path||"",W=B.split("/"),G=U,J=1,q=W.length,K=void 0,w=void 0,H=void 0;if(typeof Z=="function")H=Z;else H=e;while(!0){if(w=W[J],w&&w.indexOf("~")!=-1)w=i(w);if(Q&&(w=="__proto__"||w=="prototype"&&J>0&&W[J-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(Z){if(K===void 0){if(G[w]===void 0)K=W.slice(0,J).join("/");else if(J==q-1)K=$.path;if(K!==void 0)H($,0,U,K)}}if(J++,Array.isArray(G)){if(w==="-")w=G.length;else if(Z&&!CU(w))throw new F("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",X,$,U);else if(CU(w))w=~~w;if(J>=q){if(Z&&$.op==="add"&&w>G.length)throw new F("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",X,$,U);var Y=m1[$.op].call($,G,w,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y}}else if(J>=q){var Y=u[$.op].call($,G,w,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y}if(G=G[w],Z&&J<q&&(!G||typeof G!=="object"))throw new F("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",X,$,U)}}}function j(U,$,Z,R,Q){if(R===void 0)R=!0;if(Q===void 0)Q=!0;if(Z){if(!Array.isArray($))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY")}if(!R)U=z(U);var X=new Array($.length);for(var Y=0,B=$.length;Y<B;Y++)X[Y]=C(U,$[Y],Z,!0,Q,Y),U=X[Y].newDocument;return X.newDocument=U,X}function KZ(U,$,Z){var R=C(U,$);if(R.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",Z,$,U);return R.newDocument}function e(U,$,Z,R){if(typeof U!=="object"||U===null||Array.isArray(U))throw new F("Operation is not an object","OPERATION_NOT_AN_OBJECT",$,U,Z);else if(!u[U.op])throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",$,U,Z);else if(typeof U.path!=="string")throw new F("Operation `path` property is not a string","OPERATION_PATH_INVALID",$,U,Z);else if(U.path.indexOf("/")!==0&&U.path.length>0)throw new F('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",$,U,Z);else if((U.op==="move"||U.op==="copy")&&typeof U.from!=="string")throw new F("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",$,U,Z);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&U.value===void 0)throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",$,U,Z);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&OU(U.value))throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",$,U,Z);else if(Z){if(U.op=="add"){var Q=U.path.split("/").length,X=R.split("/").length;if(Q!==X+1&&Q!==X)throw new F("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",$,U,Z)}else if(U.op==="replace"||U.op==="remove"||U.op==="_get"){if(U.path!==R)throw new F("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",$,U,Z)}else if(U.op==="move"||U.op==="copy"){var Y={op:"_get",path:U.from,value:void 0},B=Q$([Y],Z);if(B&&B.name==="OPERATION_PATH_UNRESOLVABLE")throw new F("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",$,U,Z)}}}function Q$(U,$,Z){try{if(!Array.isArray(U))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if($)j(z($),z(U),Z||!0);else{Z=Z||e;for(var R=0;R<U.length;R++)Z(U[R],R,$,void 0)}}catch(Q){if(Q instanceof F)return Q;else throw Q}}function l(U,$){if(U===$)return!0;if(U&&$&&typeof U=="object"&&typeof $=="object"){var Z=Array.isArray(U),R=Array.isArray($),Q,X,Y;if(Z&&R){if(X=U.length,X!=$.length)return!1;for(Q=X;Q--!==0;)if(!l(U[Q],$[Q]))return!1;return!0}if(Z!=R)return!1;var B=Object.keys(U);if(X=B.length,X!==Object.keys($).length)return!1;for(Q=X;Q--!==0;)if(!$.hasOwnProperty(B[Q]))return!1;for(Q=X;Q--!==0;)if(Y=B[Q],!l(U[Y],$[Y]))return!1;return!0}return U!==U&&$!==$}var F=c,x1=z,u={add:function(U,$,Z){return U[$]=this.value,{newDocument:Z}},remove:function(U,$,Z){var R=U[$];return delete U[$],{newDocument:Z,removed:R}},replace:function(U,$,Z){var R=U[$];return U[$]=this.value,{newDocument:Z,removed:R}},move:function(U,$,Z){var R=a(Z,this.path);if(R)R=z(R);var Q=C(Z,{op:"remove",path:this.from}).removed;return C(Z,{op:"add",path:this.path,value:Q}),{newDocument:Z,removed:R}},copy:function(U,$,Z){var R=a(Z,this.from);return C(Z,{op:"add",path:this.path,value:z(R)}),{newDocument:Z}},test:function(U,$,Z){return{newDocument:Z,test:l(U[$],this.value)}},_get:function(U,$,Z){return this.value=U[$],{newDocument:Z}}},m1={add:function(U,$,Z){if(CU($))U.splice($,0,this.value);else U[$]=this.value;return{newDocument:Z,index:$}},remove:function(U,$,Z){var R=U.splice($,1);return{newDocument:Z,removed:R[0]}},replace:function(U,$,Z){var R=U[$];return U[$]=this.value,{newDocument:Z,removed:R}},move:u.move,copy:u.copy,test:u.test,_get:u._get};var W$={};dU(W$,{unobserve:()=>{{return wZ}},observe:()=>{{return qZ}},generate:()=>{{return VU}},compare:()=>{{return NZ}}});var d1=function(U){return Y$.get(U)},k1=function(U,$){return U.observers.get($)},p1=function(U,$){U.observers.delete($.callback)};function wZ(U,$){$.unobserve()}function qZ(U,$){var Z=[],R,Q=d1(U);if(!Q)Q=new g1(U),Y$.set(U,Q);else{var X=k1(Q,$);R=X&&X.observer}if(R)return R;if(R={},Q.value=z(U),$){R.callback=$,R.next=null;var Y=function(){VU(R)},B=function(){clearTimeout(R.next),R.next=setTimeout(Y)};if(typeof window!=="undefined")window.addEventListener("mouseup",B),window.addEventListener("keyup",B),window.addEventListener("mousedown",B),window.addEventListener("keydown",B),window.addEventListener("change",B)}return R.patches=Z,R.object=U,R.unobserve=function(){if(VU(R),clearTimeout(R.next),p1(Q,R),typeof window!=="undefined")window.removeEventListener("mouseup",B),window.removeEventListener("keyup",B),window.removeEventListener("mousedown",B),window.removeEventListener("keydown",B),window.removeEventListener("change",B)},Q.observers.set($,new j1($,R)),R}function VU(U,$){if($===void 0)$=!1;var Z=Y$.get(U.object);if(B$(Z.value,U.object,U.patches,"",$),U.patches.length)j(Z.value,U.patches);var R=U.patches;if(R.length>0){if(U.patches=[],U.callback)U.callback(R)}return R}var B$=function(U,$,Z,R,Q){if($===U)return;if(typeof $.toJSON==="function")$=$.toJSON();var X=TU($),Y=TU(U),B=!1,W=!1;for(var G=Y.length-1;G>=0;G--){var J=Y[G],q=U[J];if(PU($,J)&&!($[J]===void 0&&q!==void 0&&Array.isArray($)===!1)){var K=$[J];if(typeof q=="object"&&q!=null&&typeof K=="object"&&K!=null&&Array.isArray(q)===Array.isArray(K))B$(q,K,Z,R+"/"+_(J),Q);else if(q!==K){if(B=!0,Q)Z.push({op:"test",path:R+"/"+_(J),value:z(q)});Z.push({op:"replace",path:R+"/"+_(J),value:z(K)})}}else if(Array.isArray(U)===Array.isArray($)){if(Q)Z.push({op:"test",path:R+"/"+_(J),value:z(q)});Z.push({op:"remove",path:R+"/"+_(J)}),W=!0}else{if(Q)Z.push({op:"test",path:R,value:U});Z.push({op:"replace",path:R,value:$}),B=!0}}if(!W&&X.length==Y.length)return;for(var G=0;G<X.length;G++){var J=X[G];if(!PU(U,J)&&$[J]!==void 0)Z.push({op:"add",path:R+"/"+_(J),value:z($[J])})}};function NZ(U,$,Z){if(Z===void 0)Z=!1;var R=[];return B$(U,$,R,"",Z),R}/*! | ||
* https://github.com/Starcounter-Jack/JSON-Patch | ||
* (c) 2017-2021 Joachim Wester | ||
* MIT license | ||
*/var Y$=new WeakMap,m1=function(){function U($){this.observers=new Map,this.obj=$}return U}(),j1=function(){function U($,Z){this.callback=$,this.observer=Z}return U}();var v1=Object.assign({},X$,W$,{JsonPatchError:c,deepClone:z,escapePathComponent:_,unescapePathComponent:i});class y1{schemas;falttenSchema;uidSchemas;static Var(U){return U.patch=Object.assign({},{allowCreate:!0,allowDelete:!0,allowUpdate:!0,onPatch:($)=>{return j(U.get(),$)}},U.patch||{}),{...U,type:"var",uid:JU()}}static Func(U){return{...U,type:"func",uid:JU()}}constructor(U={}){Object.assign(this,U),this.falttenSchema=BU.flattenSchema(this.schemas),this.uidSchemas=zZ.default(Object.values(this.falttenSchema),"uid")}loadFull(){return Object.entries(this.falttenSchema).map(([U,$])=>{if($.type=="func"){const{uid:Z,type:R,input:Q,name:X,uiConfig:Y}=$;return{uid:Z,type:R,name:X,input:Q,uiConfig:Y?Y():null}}if($.type=="var"){const{uid:Z,type:R,get:Q,set:X,format:Y,name:B,patch:W}=$,G=$.uiConfig?$.uiConfig():null,J=$.actions?Object.keys($.actions):null,q=Y?Y(Q()):Q();return{uid:Z,type:R,name:B,value:q,uiConfig:G,actions:J,set:!!X,patch:W}}return{type:"unknown",name:U}})}loadVars(){return Object.entries(this.falttenSchema).filter(([U,$])=>$.type=="var").map(([U,$])=>{const{get:Z,format:R,name:Q}=$,X=R?R(Z()):Z();return{name:Q,value:X}})}}var fZ=mU(VZ(),1),J8=(U)=>{return{schema:{async loadFull(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadFull"})}).then(($)=>$.json())},async loadVars(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadVars"})}).then(($)=>$.json())}},func:{async call($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"func.call",params:$})}).then((Z)=>Z.json())}},var:{async set($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.set",params:$})}).then((Z)=>Z.json())},async patch($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.patch",params:$})}).then((Z)=>Z.json())},async action($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.action",params:$})}).then((Z)=>Z.json())}}}},G8=({urpc:U})=>{const $={urpc:U,handle({name:Z,params:R}){const Q=fZ.default($,Z);if(!Q)throw new Error("invalid name");return Q(R)},schema:{async loadFull(){return U.loadFull()},async loadVars(){return U.loadVars()}},func:{async call(Z){const R=U.uidSchemas[Z.method]||U.falttenSchema[Z.method];if(!R)throw new Error("invalid func name");return R.func({input:Z.input})}},var:{async set(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");if(!R.set)throw new Error("variable can't be set");return R.set(Z.value)},async patch(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");if(!R.patch)throw new Error("variable can't be set");return(R.patch?.onPatch(Z.ops)).newDocument},async action(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");const Q=R.actions[Z.action];if(!Q)throw new Error("invalid action name");return Q(R.get())}}};return $};export{BU as utils,FZ as jsonPatch,J8 as createSimpleHttpClient,G8 as createServerClient,y1 as URPC}; | ||
*/var Y$=new WeakMap,g1=function(){function U($){this.observers=new Map,this.obj=$}return U}(),j1=function(){function U($,Z){this.callback=$,this.observer=Z}return U}();var y1=Object.assign({},X$,W$,{JsonPatchError:c,deepClone:z,escapePathComponent:_,unescapePathComponent:i});class v1{schemas;falttenSchema;uidSchemas;static Var(U){return U.patch=Object.assign({},{allowCreate:!0,allowDelete:!0,allowUpdate:!0,onPatch:($)=>{return $.forEach((Z)=>{if(Z.op=="add"&&Z.path=="/-")U.patch?.onCreate&&U.patch.onCreate(Z.value);if(Z.op=="replace")U.patch?.onUpdate&&U.patch.onUpdate(Z.path.replace("/",""),Z.value);if(Z.op=="remove")U.patch?.onDelete&&U.patch.onDelete(Z.path.replace("/",""))}),j(U.get(),$)}},U.patch||{}),{...U,type:"var",uid:JU()}}static Func(U){return{...U,type:"func",uid:JU()}}constructor(U={}){Object.assign(this,U),this.falttenSchema=BU.flattenSchema(this.schemas),this.uidSchemas=zZ.default(Object.values(this.falttenSchema),"uid")}loadFull(){return Object.entries(this.falttenSchema).map(([U,$])=>{if($.type=="func"){const{uid:Z,type:R,input:Q,name:X,uiConfig:Y}=$;return{uid:Z,type:R,name:X,input:Q,uiConfig:Y?Y():null}}if($.type=="var"){const{uid:Z,type:R,get:Q,set:X,format:Y,name:B,patch:W}=$,G=$.uiConfig?$.uiConfig():null,J=$.actions?Object.keys($.actions):null,q=Y?Y(Q()):Q();return{uid:Z,type:R,name:B,value:q,uiConfig:G,actions:J,set:!!X,patch:W}}return{type:"unknown",name:U}})}loadVars(){return Object.entries(this.falttenSchema).filter(([U,$])=>$.type=="var").map(([U,$])=>{const{get:Z,format:R,name:Q}=$,X=R?R(Z()):Z();return{name:Q,value:X}})}}var fZ=gU(VZ(),1),J8=(U)=>{return{schema:{async loadFull(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadFull"})}).then(($)=>$.json())},async loadVars(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadVars"})}).then(($)=>$.json())}},func:{async call($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"func.call",params:$})}).then((Z)=>Z.json())}},var:{async set($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.set",params:$})}).then((Z)=>Z.json())},async patch($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.patch",params:$})}).then((Z)=>Z.json())},async action($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.action",params:$})}).then((Z)=>Z.json())}}}},G8=({urpc:U})=>{const $={urpc:U,handle({name:Z,params:R}){const Q=fZ.default($,Z);if(!Q)throw new Error("invalid name");return Q(R)},schema:{async loadFull(){return U.loadFull()},async loadVars(){return U.loadVars()}},func:{async call(Z){const R=U.uidSchemas[Z.method]||U.falttenSchema[Z.method];if(!R)throw new Error("invalid func name");return R.func({input:Z.input})}},var:{async set(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");if(!R.set)throw new Error("variable can't be set");return R.set(Z.value)},async patch(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");if(!R.patch)throw new Error("variable can't be set");return(R.patch?.onPatch(Z.ops)).newDocument},async action(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");const Q=R.actions[Z.action];if(!Q)throw new Error("invalid action name");return Q(R.get())}}};return $};export{BU as utils,FZ as jsonPatch,J8 as createSimpleHttpClient,G8 as createServerClient,v1 as URPC}; |
{ | ||
"name": "@dappworks/urpc", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"module": "index.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46745
372