node-rules
Version:
Business Rules Engine for JavaScript
1 lines • 20.7 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.NodeRules=e():t.NodeRules=e()}(self,(()=>(()=>{var t={465:(t,e,r)=>{t=r.nmd(t);var n=200,o="__lodash_hash_undefined__",i=9007199254740991,c="[object Arguments]",u="[object Boolean]",a="[object Date]",s="[object Function]",f="[object GeneratorFunction]",l="[object Map]",h="[object Number]",p="[object Object]",_="[object Promise]",y="[object RegExp]",v="[object Set]",d="[object String]",b="[object Symbol]",g="[object WeakMap]",j="[object ArrayBuffer]",w="[object DataView]",O="[object Float32Array]",m="[object Float64Array]",A="[object Int8Array]",x="[object Int16Array]",z="[object Int32Array]",S="[object Uint8Array]",k="[object Uint8ClampedArray]",T="[object Uint16Array]",P="[object Uint32Array]",F=/\w*$/,R=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,$={};$[c]=$["[object Array]"]=$[j]=$[w]=$[u]=$[a]=$[O]=$[m]=$[A]=$[x]=$[z]=$[l]=$[h]=$[p]=$[y]=$[v]=$[d]=$[b]=$[S]=$[k]=$[T]=$[P]=!0,$["[object Error]"]=$[s]=$[g]=!1;var I="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,U="object"==typeof self&&self&&self.Object===Object&&self,B=I||U||Function("return this")(),M=e&&!e.nodeType&&e,C=M&&t&&!t.nodeType&&t,L=C&&C.exports===M;function D(t,e){return t.set(e[0],e[1]),t}function N(t,e){return t.add(e),t}function V(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function W(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function G(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function q(t,e){return function(r){return t(e(r))}}function H(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var J,K=Array.prototype,Q=Function.prototype,X=Object.prototype,Y=B["__core-js_shared__"],Z=(J=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",tt=Q.toString,et=X.hasOwnProperty,rt=X.toString,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=L?B.Buffer:void 0,it=B.Symbol,ct=B.Uint8Array,ut=q(Object.getPrototypeOf,Object),at=Object.create,st=X.propertyIsEnumerable,ft=K.splice,lt=Object.getOwnPropertySymbols,ht=ot?ot.isBuffer:void 0,pt=q(Object.keys,Object),_t=Ct(B,"DataView"),yt=Ct(B,"Map"),vt=Ct(B,"Promise"),dt=Ct(B,"Set"),bt=Ct(B,"WeakMap"),gt=Ct(Object,"create"),jt=Wt(_t),wt=Wt(yt),Ot=Wt(vt),mt=Wt(dt),At=Wt(bt),xt=it?it.prototype:void 0,zt=xt?xt.valueOf:void 0;function St(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Pt(t){this.__data__=new kt(t)}function Ft(t,e){var r=qt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Ht(t)}(t)&&et.call(t,"callee")&&(!st.call(t,"callee")||rt.call(t)==c)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!et.call(t,i)||o&&("length"==i||Nt(i,n))||r.push(i);return r}function Rt(t,e,r){var n=t[e];et.call(t,e)&&Gt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Et(t,e){for(var r=t.length;r--;)if(Gt(t[r][0],e))return r;return-1}function $t(t,e,r,n,o,i,_){var g;if(n&&(g=i?n(t,o,i,_):n(t)),void 0!==g)return g;if(!Qt(t))return t;var R=qt(t);if(R){if(g=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&et.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,g)}else{var E=Dt(t),I=E==s||E==f;if(Jt(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(E==p||E==c||I&&!i){if(W(t))return i?t:{};if(g=function(t){return"function"!=typeof t.constructor||Vt(t)?{}:(e=ut(t),Qt(e)?at(e):{});var e}(I?{}:t),!e)return function(t,e){return Bt(t,Lt(t),e)}(t,function(t,e){return t&&Bt(e,Xt(e),t)}(g,t))}else{if(!$[E])return i?t:{};g=function(t,e,r,n){var o=t.constructor;switch(e){case j:return Ut(t);case u:case a:return new o(+t);case w:return function(t,e){var r=e?Ut(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case O:case m:case A:case x:case z:case S:case k:case T:case P:return function(t,e){var r=e?Ut(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case l:return function(t,e,r){var n=e?r(G(t),!0):G(t);return V(n,D,new t.constructor)}(t,n,r);case h:case d:return new o(t);case y:return function(t){var e=new t.constructor(t.source,F.exec(t));return e.lastIndex=t.lastIndex,e}(t);case v:return function(t,e,r){var n=e?r(H(t),!0):H(t);return V(n,N,new t.constructor)}(t,n,r);case b:return i=t,zt?Object(zt.call(i)):{}}var i}(t,E,$t,e)}}_||(_=new Pt);var U=_.get(t);if(U)return U;if(_.set(t,g),!R)var B=r?function(t){return function(t,e,r){var n=e(t);return qt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Xt,Lt)}(t):Xt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(B||t,(function(o,i){B&&(o=t[i=o]),Rt(g,i,$t(o,e,r,n,i,t,_))})),g}function It(t){return!(!Qt(t)||(e=t,Z&&Z in e))&&(Kt(t)||W(t)?nt:R).test(Wt(t));var e}function Ut(t){var e=new t.constructor(t.byteLength);return new ct(e).set(new ct(t)),e}function Bt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var c=e[o],u=n?n(r[c],t[c],c,r,t):void 0;Rt(r,c,void 0===u?t[c]:u)}return r}function Mt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Ct(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return It(r)?r:void 0}St.prototype.clear=function(){this.__data__=gt?gt(null):{}},St.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},St.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return r===o?void 0:r}return et.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:et.call(e,t)},St.prototype.set=function(t,e){return this.__data__[t]=gt&&void 0===e?o:e,this},kt.prototype.clear=function(){this.__data__=[]},kt.prototype.delete=function(t){var e=this.__data__,r=Et(e,t);return!(r<0)&&(r==e.length-1?e.pop():ft.call(e,r,1),!0)},kt.prototype.get=function(t){var e=this.__data__,r=Et(e,t);return r<0?void 0:e[r][1]},kt.prototype.has=function(t){return Et(this.__data__,t)>-1},kt.prototype.set=function(t,e){var r=this.__data__,n=Et(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Tt.prototype.clear=function(){this.__data__={hash:new St,map:new(yt||kt),string:new St}},Tt.prototype.delete=function(t){return Mt(this,t).delete(t)},Tt.prototype.get=function(t){return Mt(this,t).get(t)},Tt.prototype.has=function(t){return Mt(this,t).has(t)},Tt.prototype.set=function(t,e){return Mt(this,t).set(t,e),this},Pt.prototype.clear=function(){this.__data__=new kt},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof kt){var o=r.__data__;if(!yt||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new Tt(o)}return r.set(t,e),this};var Lt=lt?q(lt,Object):function(){return[]},Dt=function(t){return rt.call(t)};function Nt(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||E.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function Wt(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Gt(t,e){return t===e||t!=t&&e!=e}(_t&&Dt(new _t(new ArrayBuffer(1)))!=w||yt&&Dt(new yt)!=l||vt&&Dt(vt.resolve())!=_||dt&&Dt(new dt)!=v||bt&&Dt(new bt)!=g)&&(Dt=function(t){var e=rt.call(t),r=e==p?t.constructor:void 0,n=r?Wt(r):void 0;if(n)switch(n){case jt:return w;case wt:return l;case Ot:return _;case mt:return v;case At:return g}return e});var qt=Array.isArray;function Ht(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!Kt(t)}var Jt=ht||function(){return!1};function Kt(t){var e=Qt(t)?rt.call(t):"";return e==s||e==f}function Qt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Xt(t){return Ht(t)?Ft(t):function(t){if(!Vt(t))return pt(t);var e=[];for(var r in Object(t))et.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}t.exports=function(t){return $t(t,!0,!0)}},307:(t,e,r)=>{t=r.nmd(t);var n=200,o="__lodash_hash_undefined__",i=1,c=2,u=9007199254740991,a="[object Arguments]",s="[object Array]",f="[object AsyncFunction]",l="[object Boolean]",h="[object Date]",p="[object Error]",_="[object Function]",y="[object GeneratorFunction]",v="[object Map]",d="[object Number]",b="[object Null]",g="[object Object]",j="[object Promise]",w="[object Proxy]",O="[object RegExp]",m="[object Set]",A="[object String]",x="[object Symbol]",z="[object Undefined]",S="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",P=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[a]=R[s]=R[k]=R[l]=R[T]=R[h]=R[p]=R[_]=R[v]=R[d]=R[g]=R[O]=R[m]=R[A]=R[S]=!1;var E="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,$="object"==typeof self&&self&&self.Object===Object&&self,I=E||$||Function("return this")(),U=e&&!e.nodeType&&e,B=U&&t&&!t.nodeType&&t,M=B&&B.exports===U,C=M&&E.process,L=function(){try{return C&&C.binding&&C.binding("util")}catch(t){}}(),D=L&&L.isTypedArray;function N(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function V(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function W(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var G,q,H,J=Array.prototype,K=Function.prototype,Q=Object.prototype,X=I["__core-js_shared__"],Y=K.toString,Z=Q.hasOwnProperty,tt=(G=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"",et=Q.toString,rt=RegExp("^"+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=M?I.Buffer:void 0,ot=I.Symbol,it=I.Uint8Array,ct=Q.propertyIsEnumerable,ut=J.splice,at=ot?ot.toStringTag:void 0,st=Object.getOwnPropertySymbols,ft=nt?nt.isBuffer:void 0,lt=(q=Object.keys,H=Object,function(t){return q(H(t))}),ht=Lt(I,"DataView"),pt=Lt(I,"Map"),_t=Lt(I,"Promise"),yt=Lt(I,"Set"),vt=Lt(I,"WeakMap"),dt=Lt(Object,"create"),bt=Wt(ht),gt=Wt(pt),jt=Wt(_t),wt=Wt(yt),Ot=Wt(vt),mt=ot?ot.prototype:void 0,At=mt?mt.valueOf:void 0;function xt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function zt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new St;++e<r;)this.add(t[e])}function Tt(t){var e=this.__data__=new zt(t);this.size=e.size}function Pt(t,e){var r=Ht(t),n=!r&&qt(t),o=!r&&!n&&Jt(t),i=!r&&!n&&!o&&Zt(t),c=r||n||o||i,u=c?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=u.length;for(var s in t)!e&&!Z.call(t,s)||c&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Vt(s,a))||u.push(s);return u}function Ft(t,e){for(var r=t.length;r--;)if(Gt(t[r][0],e))return r;return-1}function Rt(t){return null==t?void 0===t?z:b:at&&at in Object(t)?function(t){var e=Z.call(t,at),r=t[at];try{t[at]=void 0;var n=!0}catch(t){}var o=et.call(t);n&&(e?t[at]=r:delete t[at]);return o}(t):function(t){return et.call(t)}(t)}function Et(t){return Yt(t)&&Rt(t)==a}function $t(t,e,r,n,o){return t===e||(null==t||null==e||!Yt(t)&&!Yt(e)?t!=t&&e!=e:function(t,e,r,n,o,u){var f=Ht(t),_=Ht(e),y=f?s:Nt(t),b=_?s:Nt(e),j=(y=y==a?g:y)==g,w=(b=b==a?g:b)==g,z=y==b;if(z&&Jt(t)){if(!Jt(e))return!1;f=!0,j=!1}if(z&&!j)return u||(u=new Tt),f||Zt(t)?Bt(t,e,r,n,o,u):function(t,e,r,n,o,u,a){switch(r){case T:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k:return!(t.byteLength!=e.byteLength||!u(new it(t),new it(e)));case l:case h:case d:return Gt(+t,+e);case p:return t.name==e.name&&t.message==e.message;case O:case A:return t==e+"";case v:var s=V;case m:var f=n&i;if(s||(s=W),t.size!=e.size&&!f)return!1;var _=a.get(t);if(_)return _==e;n|=c,a.set(t,e);var y=Bt(s(t),s(e),n,o,u,a);return a.delete(t),y;case x:if(At)return At.call(t)==At.call(e)}return!1}(t,e,y,r,n,o,u);if(!(r&i)){var S=j&&Z.call(t,"__wrapped__"),P=w&&Z.call(e,"__wrapped__");if(S||P){var F=S?t.value():t,R=P?e.value():e;return u||(u=new Tt),o(F,R,r,n,u)}}if(!z)return!1;return u||(u=new Tt),function(t,e,r,n,o,c){var u=r&i,a=Mt(t),s=a.length,f=Mt(e),l=f.length;if(s!=l&&!u)return!1;var h=s;for(;h--;){var p=a[h];if(!(u?p in e:Z.call(e,p)))return!1}var _=c.get(t);if(_&&c.get(e))return _==e;var y=!0;c.set(t,e),c.set(e,t);var v=u;for(;++h<s;){var d=t[p=a[h]],b=e[p];if(n)var g=u?n(b,d,p,e,t,c):n(d,b,p,t,e,c);if(!(void 0===g?d===b||o(d,b,r,n,c):g)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var j=t.constructor,w=e.constructor;j==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w||(y=!1)}return c.delete(t),c.delete(e),y}(t,e,r,n,o,u)}(t,e,r,n,$t,o))}function It(t){return!(!Xt(t)||function(t){return!!tt&&tt in t}(t))&&(Kt(t)?rt:P).test(Wt(t))}function Ut(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||Q,e!==n)return lt(t);var e,r,n,o=[];for(var i in Object(t))Z.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Bt(t,e,r,n,o,u){var a=r&i,s=t.length,f=e.length;if(s!=f&&!(a&&f>s))return!1;var l=u.get(t);if(l&&u.get(e))return l==e;var h=-1,p=!0,_=r&c?new kt:void 0;for(u.set(t,e),u.set(e,t);++h<s;){var y=t[h],v=e[h];if(n)var d=a?n(v,y,h,e,t,u):n(y,v,h,t,e,u);if(void 0!==d){if(d)continue;p=!1;break}if(_){if(!N(e,(function(t,e){if(i=e,!_.has(i)&&(y===t||o(y,t,r,n,u)))return _.push(e);var i}))){p=!1;break}}else if(y!==v&&!o(y,v,r,n,u)){p=!1;break}}return u.delete(t),u.delete(e),p}function Mt(t){return function(t,e,r){var n=e(t);return Ht(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,te,Dt)}function Ct(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Lt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return It(r)?r:void 0}xt.prototype.clear=function(){this.__data__=dt?dt(null):{},this.size=0},xt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xt.prototype.get=function(t){var e=this.__data__;if(dt){var r=e[t];return r===o?void 0:r}return Z.call(e,t)?e[t]:void 0},xt.prototype.has=function(t){var e=this.__data__;return dt?void 0!==e[t]:Z.call(e,t)},xt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=dt&&void 0===e?o:e,this},zt.prototype.clear=function(){this.__data__=[],this.size=0},zt.prototype.delete=function(t){var e=this.__data__,r=Ft(e,t);return!(r<0)&&(r==e.length-1?e.pop():ut.call(e,r,1),--this.size,!0)},zt.prototype.get=function(t){var e=this.__data__,r=Ft(e,t);return r<0?void 0:e[r][1]},zt.prototype.has=function(t){return Ft(this.__data__,t)>-1},zt.prototype.set=function(t,e){var r=this.__data__,n=Ft(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},St.prototype.clear=function(){this.size=0,this.__data__={hash:new xt,map:new(pt||zt),string:new xt}},St.prototype.delete=function(t){var e=Ct(this,t).delete(t);return this.size-=e?1:0,e},St.prototype.get=function(t){return Ct(this,t).get(t)},St.prototype.has=function(t){return Ct(this,t).has(t)},St.prototype.set=function(t,e){var r=Ct(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},kt.prototype.add=kt.prototype.push=function(t){return this.__data__.set(t,o),this},kt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.clear=function(){this.__data__=new zt,this.size=0},Tt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof zt){var o=r.__data__;if(!pt||o.length<n-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new St(o)}return r.set(t,e),this.size=r.size,this};var Dt=st?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var c=t[r];e(c,r,t)&&(i[o++]=c)}return i}(st(t),(function(e){return ct.call(t,e)})))}:function(){return[]},Nt=Rt;function Vt(t,e){return!!(e=null==e?u:e)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&t<e}function Wt(t){if(null!=t){try{return Y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Gt(t,e){return t===e||t!=t&&e!=e}(ht&&Nt(new ht(new ArrayBuffer(1)))!=T||pt&&Nt(new pt)!=v||_t&&Nt(_t.resolve())!=j||yt&&Nt(new yt)!=m||vt&&Nt(new vt)!=S)&&(Nt=function(t){var e=Rt(t),r=e==g?t.constructor:void 0,n=r?Wt(r):"";if(n)switch(n){case bt:return T;case gt:return v;case jt:return j;case wt:return m;case Ot:return S}return e});var qt=Et(function(){return arguments}())?Et:function(t){return Yt(t)&&Z.call(t,"callee")&&!ct.call(t,"callee")},Ht=Array.isArray;var Jt=ft||function(){return!1};function Kt(t){if(!Xt(t))return!1;var e=Rt(t);return e==_||e==y||e==f||e==w}function Qt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Xt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Yt(t){return null!=t&&"object"==typeof t}var Zt=D?function(t){return function(e){return t(e)}}(D):function(t){return Yt(t)&&Qt(t.length)&&!!R[Rt(t)]};function te(t){return null!=(e=t)&&Qt(e.length)&&!Kt(e)?Pt(t):Ut(t);var e}t.exports=function(t,e){return $t(t,e)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{default:()=>o});var t=r(307),e=r(465);class o{constructor(t,e){this.init(),this.ignoreFactChanges=!1,t&&this.register(t),e&&(this.ignoreFactChanges=e.ignoreFactChanges||!1)}init(){this.rules=[],this.activeRules=[]}register(t){Array.isArray(t)?this.rules.push(...t):null!==t&&"object"==typeof t&&this.rules.push(t),this.sync()}sync(){this.activeRules=this.rules.filter((t=>{if(void 0===t.on&&(t.on=!0),!0===t.on)return t})),this.activeRules.sort(((t,e)=>t.priority&&e.priority?e.priority-t.priority:0))}execute(r,n){const o=this;let i=!1;r.result=!0;const c=e(r);let u=e(r),a=this.activeRules;const s=[],f=this.ignoreFactChanges;!function r(l){const h={rule:()=>a[l],when:t=>{if(t){const t=a[l].consequence;t.ruleRef=a[l].id||a[l].name||`index_${l}`,o.nextTick((()=>{s.push(t.ruleRef),t.call(c,h,c)}))}else o.nextTick((()=>{h.next()}))},restart:()=>r(0),stop:()=>(i=!0,r(0)),next:()=>{f||t(u,c)?o.nextTick((()=>r(l+1))):(u=e(c),o.nextTick((()=>{h.restart()})))}};if(a=o.activeRules,l<a.length&&!i){a[l].condition.call(c,h,c)}else o.nextTick((()=>{c.matchPath=s,n(c)}))}(0)}nextTick(t){"undefined"!=typeof process&&process.nextTick?process.nextTick(t):setTimeout(t,0)}findRules(t){return void 0===t?this.rules:(Object.keys(t).forEach((e=>void 0===t[e]&&delete t[e])),this.rules.filter((e=>Object.keys(t).some((r=>t[r]===e[r])))))}turn(t,e){const r="on"===t.toLowerCase();this.findRules(e).forEach((t=>{t.on=r})),this.sync()}prioritize(t,e){t=parseInt(t,10);this.findRules(e).forEach((e=>{e.priority=t})),this.sync()}}})(),n})()));