@ws-ui/condfmt
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("react");function vr(n,...a){const l=a,f=(...b)=>{l.push(...b)},m=b=>{let g=-1;const y=v=>{if(v===g)throw new Error("next() called multiple times");g=v;const j=l[v];return j?j.run(b,()=>y(v+1),{push:f,execute:m}):n};return y(0)};return{push:f,execute:m}}var Z={exports:{}},I={};/** | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("react");function dr(n,...a){const l=a,f=(...E)=>{l.push(...E)},b=E=>{let m=-1;const g=d=>{if(d===m)throw new Error("next() called multiple times");m=d;const j=l[d];return j?j.run(E,()=>g(d+1),{push:f,execute:b}):n};return g(0)};return{push:f,execute:b}}var Q={exports:{}},I={};/** | ||
* @license React | ||
@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Se;function pr(){if(Se)return I;Se=1;var n=we,a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,m=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function g(y,v,j){var E,x={},w=null,W=null;j!==void 0&&(w=""+j),v.key!==void 0&&(w=""+v.key),v.ref!==void 0&&(W=v.ref);for(E in v)f.call(v,E)&&!b.hasOwnProperty(E)&&(x[E]=v[E]);if(y&&y.defaultProps)for(E in v=y.defaultProps,v)x[E]===void 0&&(x[E]=v[E]);return{$$typeof:a,type:y,key:w,ref:W,props:x,_owner:m.current}}return I.Fragment=l,I.jsx=g,I.jsxs=g,I}var N={};/** | ||
*/var Oe;function vr(){if(Oe)return I;Oe=1;var n=we,a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E={key:!0,ref:!0,__self:!0,__source:!0};function m(g,d,j){var _,x={},w=null,N=null;j!==void 0&&(w=""+j),d.key!==void 0&&(w=""+d.key),d.ref!==void 0&&(N=d.ref);for(_ in d)f.call(d,_)&&!E.hasOwnProperty(_)&&(x[_]=d[_]);if(g&&g.defaultProps)for(_ in d=g.defaultProps,d)x[_]===void 0&&(x[_]=d[_]);return{$$typeof:a,type:g,key:w,ref:N,props:x,_owner:b.current}}return I.Fragment=l,I.jsx=m,I.jsxs=m,I}var W={};/** | ||
* @license React | ||
@@ -18,11 +18,11 @@ * react-jsx-runtime.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Oe;function hr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var n=we,a=Symbol.for("react.element"),l=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),re=Symbol.iterator,ke="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=re&&e[re]||e[ke];return typeof r=="function"?r:null}var P=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];Fe("error",e,t)}}function Fe(e,r,t){{var o=P.ReactDebugCurrentFrame,s=o.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(u){return String(u)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var Ae=!1,Ie=!1,Ne=!1,We=!1,Ye=!1,te;te=Symbol.for("react.module.reference");function Le(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===b||Ye||e===m||e===j||e===E||We||e===W||Ae||Ie||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===x||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===te||e.getModuleId!==void 0))}function Ve(e,r,t){var o=e.displayName;if(o)return o;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ne(e){return e.displayName||"Context"}function S(e){if(e==null)return null;if(typeof e.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case l:return"Portal";case b:return"Profiler";case m:return"StrictMode";case j:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return ne(r)+".Consumer";case g:var t=e;return ne(t._context)+".Provider";case v:return Ve(e,e.render,"ForwardRef");case x:var o=e.displayName||null;return o!==null?o:S(e.type)||"Memo";case w:{var s=e,c=s._payload,u=s._init;try{return S(u(c))}catch{return null}}}return null}var C=Object.assign,F=0,ae,oe,ie,ue,se,ce,le;function fe(){}fe.__reactDisabledLog=!0;function Me(){{if(F===0){ae=console.log,oe=console.info,ie=console.warn,ue=console.error,se=console.group,ce=console.groupCollapsed,le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Ue(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},e,{value:ae}),info:C({},e,{value:oe}),warn:C({},e,{value:ie}),error:C({},e,{value:ue}),group:C({},e,{value:se}),groupCollapsed:C({},e,{value:ce}),groupEnd:C({},e,{value:le})})}F<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=P.ReactCurrentDispatcher,J;function Y(e,r,t){{if(J===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);J=o&&o[1]||""}return` | ||
`+J+e}}var B=!1,L;{var qe=typeof WeakMap=="function"?WeakMap:Map;L=new qe}function de(e,r){if(!e||B)return"";{var t=L.get(e);if(t!==void 0)return t}var o;B=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=q.current,q.current=null,Me();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(O){o=O}Reflect.construct(e,[],u)}else{try{u.call()}catch(O){o=O}e.call(u.prototype)}}else{try{throw Error()}catch(O){o=O}e()}}catch(O){if(O&&o&&typeof O.stack=="string"){for(var i=O.stack.split(` | ||
`),_=o.stack.split(` | ||
`),p=i.length-1,h=_.length-1;p>=1&&h>=0&&i[p]!==_[h];)h--;for(;p>=1&&h>=0;p--,h--)if(i[p]!==_[h]){if(p!==1||h!==1)do if(p--,h--,h<0||i[p]!==_[h]){var T=` | ||
`+i[p].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,T),T}while(p>=1&&h>=0);break}}}finally{B=!1,q.current=c,Ue(),Error.prepareStackTrace=s}var k=e?e.displayName||e.name:"",xe=k?Y(k):"";return typeof e=="function"&&L.set(e,xe),xe}function Je(e,r,t){return de(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return de(e,Be(e));if(typeof e=="string")return Y(e);switch(e){case j:return Y("Suspense");case E:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Je(e.render);case x:return V(e.type,r,t);case w:{var o=e,s=o._payload,c=o._init;try{return V(c(s),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,ve={},pe=P.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(t)}else pe.setExtraStackFrame(null)}function Ge(e,r,t,o,s){{var c=Function.call.bind(M);for(var u in e)if(c(e,u)){var i=void 0;try{if(typeof e[u]!="function"){var _=Error((o||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}i=e[u](r,u,o,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(p){i=p}i&&!(i instanceof Error)&&(U(s),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",t,u,typeof i),U(null)),i instanceof Error&&!(i.message in ve)&&(ve[i.message]=!0,U(s),R("Failed %s type: %s",t,i.message),U(null))}}}var ze=Array.isArray;function G(e){return ze(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ke(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function me(e){if(Ke(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),he(e)}var A=P.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},ge,ye,z;z={};function Ze(e){if(M.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(M.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){if(typeof e.ref=="string"&&A.current&&r&&A.current.stateNode!==r){var t=S(A.current.type);z[t]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',S(A.current.type),e.ref),z[t]=!0)}}function rr(e,r){{var t=function(){ge||(ge=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function tr(e,r){{var t=function(){ye||(ye=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var nr=function(e,r,t,o,s,c,u){var i={$$typeof:a,type:e,key:r,ref:t,props:u,_owner:c};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function ar(e,r,t,o,s){{var c,u={},i=null,_=null;t!==void 0&&(me(t),i=""+t),Qe(r)&&(me(r.key),i=""+r.key),Ze(r)&&(_=r.ref,er(r,s));for(c in r)M.call(r,c)&&!Xe.hasOwnProperty(c)&&(u[c]=r[c]);if(e&&e.defaultProps){var p=e.defaultProps;for(c in p)u[c]===void 0&&(u[c]=p[c])}if(i||_){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&rr(u,h),_&&tr(u,h)}return nr(e,i,_,s,o,A.current,u)}}var H=P.ReactCurrentOwner,Re=P.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var K;K=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function _e(){{if(H.current){var e=S(H.current.type);if(e)return` | ||
*/var Se;function pr(){return Se||(Se=1,process.env.NODE_ENV!=="production"&&function(){var n=we,a=Symbol.for("react.element"),l=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),g=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),re=Symbol.iterator,$e="@@iterator";function ke(e){if(e===null||typeof e!="object")return null;var r=re&&e[re]||e[$e];return typeof r=="function"?r:null}var P=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];De("error",e,t)}}function De(e,r,t){{var o=P.ReactDebugCurrentFrame,s=o.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(u){return String(u)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var Ae=!1,Fe=!1,Ie=!1,We=!1,Ye=!1,te;te=Symbol.for("react.module.reference");function Ne(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===E||Ye||e===b||e===j||e===_||We||e===N||Ae||Fe||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===x||e.$$typeof===m||e.$$typeof===g||e.$$typeof===d||e.$$typeof===te||e.getModuleId!==void 0))}function Le(e,r,t){var o=e.displayName;if(o)return o;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ne(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case l:return"Portal";case E:return"Profiler";case b:return"StrictMode";case j:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return ne(r)+".Consumer";case m:var t=e;return ne(t._context)+".Provider";case d:return Le(e,e.render,"ForwardRef");case x:var o=e.displayName||null;return o!==null?o:O(e.type)||"Memo";case w:{var s=e,c=s._payload,u=s._init;try{return O(u(c))}catch{return null}}}return null}var C=Object.assign,A=0,ae,oe,ie,ue,se,ce,le;function fe(){}fe.__reactDisabledLog=!0;function Ve(){{if(A===0){ae=console.log,oe=console.info,ie=console.warn,ue=console.error,se=console.group,ce=console.groupCollapsed,le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}}function Me(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},e,{value:ae}),info:C({},e,{value:oe}),warn:C({},e,{value:ie}),error:C({},e,{value:ue}),group:C({},e,{value:se}),groupCollapsed:C({},e,{value:ce}),groupEnd:C({},e,{value:le})})}A<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=P.ReactCurrentDispatcher,J;function L(e,r,t){{if(J===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);J=o&&o[1]||""}return` | ||
`+J+e}}var G=!1,V;{var Ue=typeof WeakMap=="function"?WeakMap:Map;V=new Ue}function de(e,r){if(!e||G)return"";{var t=V.get(e);if(t!==void 0)return t}var o;G=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=B.current,B.current=null,Ve();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(S){o=S}Reflect.construct(e,[],u)}else{try{u.call()}catch(S){o=S}e.call(u.prototype)}}else{try{throw Error()}catch(S){o=S}e()}}catch(S){if(S&&o&&typeof S.stack=="string"){for(var i=S.stack.split(` | ||
`),R=o.stack.split(` | ||
`),v=i.length-1,p=R.length-1;v>=1&&p>=0&&i[v]!==R[p];)p--;for(;v>=1&&p>=0;v--,p--)if(i[v]!==R[p]){if(v!==1||p!==1)do if(v--,p--,p<0||i[v]!==R[p]){var T=` | ||
`+i[v].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,T),T}while(v>=1&&p>=0);break}}}finally{G=!1,B.current=c,Me(),Error.prepareStackTrace=s}var k=e?e.displayName||e.name:"",xe=k?L(k):"";return typeof e=="function"&&V.set(e,xe),xe}function qe(e,r,t){return de(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function M(e,r,t){if(e==null)return"";if(typeof e=="function")return de(e,Be(e));if(typeof e=="string")return L(e);switch(e){case j:return L("Suspense");case _:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return qe(e.render);case x:return M(e.type,r,t);case w:{var o=e,s=o._payload,c=o._init;try{return M(c(s),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,ve={},pe=P.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(t)}else pe.setExtraStackFrame(null)}function Je(e,r,t,o,s){{var c=Function.call.bind(U);for(var u in e)if(c(e,u)){var i=void 0;try{if(typeof e[u]!="function"){var R=Error((o||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}i=e[u](r,u,o,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){i=v}i&&!(i instanceof Error)&&(q(s),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",t,u,typeof i),q(null)),i instanceof Error&&!(i.message in ve)&&(ve[i.message]=!0,q(s),y("Failed %s type: %s",t,i.message),q(null))}}}var Ge=Array.isArray;function z(e){return Ge(e)}function ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function me(e){if(He(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ze(e)),he(e)}var F=P.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},ge,ye,H;H={};function Xe(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ze(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Qe(e,r){if(typeof e.ref=="string"&&F.current&&r&&F.current.stateNode!==r){var t=O(F.current.type);H[t]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(F.current.type),e.ref),H[t]=!0)}}function er(e,r){{var t=function(){ge||(ge=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function rr(e,r){{var t=function(){ye||(ye=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var tr=function(e,r,t,o,s,c,u){var i={$$typeof:a,type:e,key:r,ref:t,props:u,_owner:c};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function nr(e,r,t,o,s){{var c,u={},i=null,R=null;t!==void 0&&(me(t),i=""+t),Ze(r)&&(me(r.key),i=""+r.key),Xe(r)&&(R=r.ref,Qe(r,s));for(c in r)U.call(r,c)&&!Ke.hasOwnProperty(c)&&(u[c]=r[c]);if(e&&e.defaultProps){var v=e.defaultProps;for(c in v)u[c]===void 0&&(u[c]=v[c])}if(i||R){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&er(u,p),R&&rr(u,p)}return tr(e,i,R,s,o,F.current,u)}}var K=P.ReactCurrentOwner,Re=P.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function _e(){{if(K.current){var e=O(K.current.type);if(e)return` | ||
Check the render method of \``+e+"`."}return""}}function or(e){return""}var be={};function ir(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` | ||
Check the render method of \``+e+"`."}return""}}function ar(e){return""}var be={};function or(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` | ||
Check the top-level render call using <`+t+">.")}return r}}function Ee(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(be[t])return;be[t]=!0;var o="";e&&e._owner&&e._owner!==H.current&&(o=" It was passed a child from "+S(e._owner.type)+"."),$(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,o),$(null)}}function Te(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var o=e[t];X(o)&&Ee(o,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var s=De(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),u;!(u=c.next()).done;)X(u.value)&&Ee(u.value,r)}}}function ur(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===x))t=r.propTypes;else return;if(t){var o=S(r);Ge(t,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var s=S(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var o=r[t];if(o!=="children"&&o!=="key"){$(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),$(null);break}}e.ref!==null&&($(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),$(null))}}function je(e,r,t,o,s,c){{var u=Le(e);if(!u){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=or();_?i+=_:i+=_e();var p;e===null?p="null":G(e)?p="array":e!==void 0&&e.$$typeof===a?(p="<"+(S(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):p=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",p,i)}var h=ar(e,r,t,s,c);if(h==null)return h;if(u){var T=r.children;if(T!==void 0)if(o)if(G(T)){for(var k=0;k<T.length;k++)Te(T[k],e);Object.freeze&&Object.freeze(T)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Te(T,e)}return e===f?sr(h):ur(h),h}}function cr(e,r,t){return je(e,r,t,!0)}function lr(e,r,t){return je(e,r,t,!1)}var fr=lr,dr=cr;N.Fragment=f,N.jsx=fr,N.jsxs=dr}()),N}process.env.NODE_ENV==="production"?Z.exports=pr():Z.exports=hr();var d=Z.exports;const mr=["#60463B","#6C6F7D","#59A96A","#856A5D","#2E3138"];function Ce(n=0,a=mr){return a[n%a.length]}const Q=(n,a)=>a==="datasource"?`DataSource("${n}")`:JSON.stringify(n);function D(n){switch(n){case"eq":return"==";case"neq":return"!=";case"gt":return">";case"gte":return">=";case"lt":return"<";case"lte":return"<=";case"or":return"||";case"and":return"&&";default:return n}}function gr(n,a){const{condition:l,opts:f}=n,{depth:m=0,opColor:b="white",colors:g}=f;return d.jsx("ul",{style:{padding:0},children:l.conditions.map((y,v)=>d.jsxs("li",{style:{display:"flex",padding:"0 0.25rem"},children:[v>0?d.jsx("span",{style:{padding:"0 0.25rem",color:b},children:D(l.op)}):null,d.jsx("div",{style:{color:Ce(m,g)},children:a.execute({condition:y,opts:{...f,depth:m+1}})})]},y.id))})}const yr="_condfmt_hqmc4_6",Rr="_op_hqmc4_11",_r="_ref_hqmc4_58",ee={condfmt:yr,op:Rr,ref:_r},br=({ctx:n,pipeline:a})=>{const{condition:l,opts:f}=n,{depth:m=0,render:b=({children:g})=>g}=f;return d.jsxs("ul",{className:ee.condfmt,children:[d.jsx("span",{className:ee.op,children:d.jsx(b,{opts:f,condition:l,children:D(l.op)})}),l.conditions.map(g=>{const y=a.execute({condition:g,opts:{...f,depth:m+1}});return d.jsx("li",{children:y},g.id)})]})},Er={name:"combination",run(n,a,l){if(n.condition.type!=="combination")return a();switch(n.opts.formatter){case"text":return gr(n,l);case"jsx":return d.jsx(br,{ctx:n,pipeline:l})}}};function Tr(n){const{condition:a}=n;return`${Q(a.path,"datasource")} ${D(a.op)} ${Q(a.value,a.valueType)}`}const jr=({condition:n,opts:a})=>{const{depth:l=0,render:f=({children:b})=>b}=a,m=Ce(l);return d.jsxs(f,{opts:a,condition:n,children:[d.jsxs("span",{style:{color:m},children:["DataSource(",JSON.stringify(n.path),")"]}),d.jsx("span",{style:{color:m,padding:"0 0.25rem"},children:D(n.op)}),d.jsx("span",{style:{color:m},children:n.valueType==="datasource"?d.jsxs(d.Fragment,{children:["DataSource(",JSON.stringify(n.value),")"]}):JSON.stringify(n.value)})]})},xr={name:"datasource",run(n,a){if(n.condition.type!=="datasource")return a();switch(n.opts.formatter){case"text":return Tr(n);default:return d.jsx(jr,{...n})}}};function Pe(n){const{condition:a}=n;return`Has a ParentState ${D(a.op)} ${Q(a.value,a.valueType)}`}const Sr=({condition:n,opts:a})=>{const{render:l=({children:f})=>f}=a;return d.jsx(l,{opts:a,condition:n,children:Pe({condition:n,opts:a})})},Or={name:"parent-state",run(n,a){if(n.condition.type!=="parentState")return a();switch(n.opts.formatter){case"text":return Pe(n);case"jsx":return d.jsx(Sr,{...n})}}};function $e(n){const{condition:a}=n;return`Has a Privilege ${D(a.op)} ${a.valueType==="datasource"?`DataSource(${JSON.stringify(a.value)})`:JSON.stringify(a.value)}`}const wr=({condition:n,opts:a})=>{const{render:l=({children:f})=>f}=a;return d.jsx(l,{opts:a,condition:n,children:$e({condition:n,opts:a})})},Cr={name:"privilege",run(n,a){if(n.condition.type!=="privilege")return a();switch(n.opts.formatter){case"text":return $e(n);case"jsx":return d.jsx(wr,{...n})}}};function Pr(n){const{condition:a}=n;return`Ref(${a.id})`}const $r=({condition:n,opts:a})=>{const{render:l=({children:f})=>f}=a;return d.jsxs(l,{opts:a,condition:n,children:["Ref(",d.jsx("span",{className:ee.ref,children:n.id}),")"]})},kr={name:"reference",run(n,a){if(n.condition.type!=="reference")return a();switch(n.opts.formatter){case"text":return Pr(n);case"jsx":return d.jsx($r,{...n})}}},Dr=vr(null,Er,xr,Cr,Or,kr).execute;exports.format=Dr; | ||
Check the top-level render call using <`+t+">.")}return r}}function Ee(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=or(r);if(be[t])return;be[t]=!0;var o="";e&&e._owner&&e._owner!==K.current&&(o=" It was passed a child from "+O(e._owner.type)+"."),$(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,o),$(null)}}function Te(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var o=e[t];Z(o)&&Ee(o,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var s=ke(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),u;!(u=c.next()).done;)Z(u.value)&&Ee(u.value,r)}}}function ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===x))t=r.propTypes;else return;if(t){var o=O(r);Je(t,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var s=O(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ur(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var o=r[t];if(o!=="children"&&o!=="key"){$(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),$(null);break}}e.ref!==null&&($(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),$(null))}}function je(e,r,t,o,s,c){{var u=Ne(e);if(!u){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=ar();R?i+=R:i+=_e();var v;e===null?v="null":z(e)?v="array":e!==void 0&&e.$$typeof===a?(v="<"+(O(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,i)}var p=nr(e,r,t,s,c);if(p==null)return p;if(u){var T=r.children;if(T!==void 0)if(o)if(z(T)){for(var k=0;k<T.length;k++)Te(T[k],e);Object.freeze&&Object.freeze(T)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Te(T,e)}return e===f?ur(p):ir(p),p}}function sr(e,r,t){return je(e,r,t,!0)}function cr(e,r,t){return je(e,r,t,!1)}var lr=cr,fr=sr;W.Fragment=f,W.jsx=lr,W.jsxs=fr}()),W}process.env.NODE_ENV==="production"?Q.exports=vr():Q.exports=pr();var h=Q.exports;const hr=["#60463B","#6C6F7D","#59A96A","#856A5D","#2E3138"];function mr(n=0,a=hr){return a[n%a.length]}const Y=(n,a)=>a==="datasource"?`DataSource("${n}")`:JSON.stringify(n);function D(n){switch(n){case"eq":return"==";case"neq":return"!=";case"gt":return">";case"gte":return">=";case"lt":return"<";case"lte":return"<=";case"or":return"||";case"and":return"&&";default:return n}}function gr(n,a){const{condition:l,opts:f}=n,{depth:b=0,opColor:E="white",colors:m}=f;return h.jsx("ul",{style:{padding:0},children:l.conditions.map((g,d)=>h.jsxs("li",{style:{display:"flex",padding:"0 0.25rem"},children:[d>0?h.jsx("span",{style:{padding:"0 0.25rem",color:E},children:D(l.op)}):null,h.jsx("div",{style:{color:mr(b,m)},children:a.execute({condition:g,opts:{...f,depth:b+1}})})]},g.id))})}const yr="_condfmt_hqmc4_6",Rr="_op_hqmc4_11",_r="_ref_hqmc4_58",ee={condfmt:yr,op:Rr,ref:_r},br=({ctx:n,pipeline:a})=>{const{condition:l,opts:f}=n,{depth:b=0,render:E=({children:m})=>m}=f;return h.jsxs("ul",{className:ee.condfmt,children:[h.jsx("span",{className:ee.op,children:h.jsx(E,{opts:f,condition:l,children:D(l.op)})}),l.conditions.map(m=>{const g=a.execute({condition:m,opts:{...f,depth:b+1}});return h.jsx("li",{children:g},m.id)})]})},Er={name:"combination",run(n,a,l){if(n.condition.type!=="combination")return a();switch(n.opts.formatter){case"text":return gr(n,l);case"jsx":return h.jsx(br,{ctx:n,pipeline:l})}}};function Tr(n){const{condition:a}=n;return`${Y(a.path,"datasource")} ${D(a.op)} ${Y(a.value,a.valueType)}`}const jr=({condition:n,opts:a})=>{const{render:l=({children:f})=>f}=a;return h.jsxs(l,{opts:a,condition:n,children:[Y(n.path,"datasource"),h.jsx("span",{style:{padding:"0 0.25rem"},children:D(n.op)}),Y(n.value,n.valueType)]})},xr={name:"datasource",run(n,a){if(n.condition.type!=="datasource")return a();switch(n.opts.formatter){case"text":return Tr(n);default:return h.jsx(jr,{...n})}}};function Ce(n){const{condition:a}=n;return`Has a ParentState ${D(a.op)} ${Y(a.value,a.valueType)}`}const Or=({condition:n,opts:a})=>{const{render:l=({children:f})=>f}=a;return h.jsx(l,{opts:a,condition:n,children:Ce({condition:n,opts:a})})},Sr={name:"parent-state",run(n,a){if(n.condition.type!=="parentState")return a();switch(n.opts.formatter){case"text":return Ce(n);case"jsx":return h.jsx(Or,{...n})}}};function Pe(n){const{condition:a}=n;return`Has a Privilege ${D(a.op)} ${a.valueType==="datasource"?`DataSource(${JSON.stringify(a.value)})`:JSON.stringify(a.value)}`}const wr=({condition:n,opts:a})=>{const{render:l=({children:f})=>f}=a;return h.jsx(l,{opts:a,condition:n,children:Pe({condition:n,opts:a})})},Cr={name:"privilege",run(n,a){if(n.condition.type!=="privilege")return a();switch(n.opts.formatter){case"text":return Pe(n);case"jsx":return h.jsx(wr,{...n})}}};function Pr(n){const{condition:a}=n;return`Ref(${a.id})`}const $r=({condition:n,opts:a})=>{const{render:l=({children:f})=>f}=a;return h.jsxs(l,{opts:a,condition:n,children:["Ref(",h.jsx("span",{className:ee.ref,children:n.id}),")"]})},kr={name:"reference",run(n,a){if(n.condition.type!=="reference")return a();switch(n.opts.formatter){case"text":return Pr(n);case"jsx":return h.jsx($r,{...n})}}},Dr=dr(null,Er,xr,Cr,Sr,kr).execute;exports.format=Dr; | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -1,22 +0,22 @@ | ||
import we from "react"; | ||
function vr(n, ...a) { | ||
const l = a, f = (...E) => { | ||
l.push(...E); | ||
}, m = (E) => { | ||
let g = -1; | ||
const y = (v) => { | ||
if (v === g) | ||
import Se from "react"; | ||
function dr(n, ...a) { | ||
const l = a, f = (...b) => { | ||
l.push(...b); | ||
}, E = (b) => { | ||
let m = -1; | ||
const g = (d) => { | ||
if (d === m) | ||
throw new Error("next() called multiple times"); | ||
g = v; | ||
const x = l[v]; | ||
return x ? x.run(E, () => y(v + 1), { | ||
m = d; | ||
const x = l[d]; | ||
return x ? x.run(b, () => g(d + 1), { | ||
push: f, | ||
execute: m | ||
execute: E | ||
}) : n; | ||
}; | ||
return y(0); | ||
return g(0); | ||
}; | ||
return { push: f, execute: m }; | ||
return { push: f, execute: E }; | ||
} | ||
var Z = { exports: {} }, I = {}; | ||
var Q = { exports: {} }, I = {}; | ||
/** | ||
@@ -31,21 +31,21 @@ * @license React | ||
*/ | ||
var Se; | ||
function pr() { | ||
if (Se) | ||
var Oe; | ||
function vr() { | ||
if (Oe) | ||
return I; | ||
Se = 1; | ||
var n = we, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function g(y, v, x) { | ||
var b, j = {}, w = null, W = null; | ||
x !== void 0 && (w = "" + x), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (W = v.ref); | ||
for (b in v) | ||
f.call(v, b) && !E.hasOwnProperty(b) && (j[b] = v[b]); | ||
if (y && y.defaultProps) | ||
for (b in v = y.defaultProps, v) | ||
j[b] === void 0 && (j[b] = v[b]); | ||
return { $$typeof: a, type: y, key: w, ref: W, props: j, _owner: m.current }; | ||
Oe = 1; | ||
var n = Se, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, E = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function m(g, d, x) { | ||
var _, j = {}, S = null, N = null; | ||
x !== void 0 && (S = "" + x), d.key !== void 0 && (S = "" + d.key), d.ref !== void 0 && (N = d.ref); | ||
for (_ in d) | ||
f.call(d, _) && !b.hasOwnProperty(_) && (j[_] = d[_]); | ||
if (g && g.defaultProps) | ||
for (_ in d = g.defaultProps, d) | ||
j[_] === void 0 && (j[_] = d[_]); | ||
return { $$typeof: a, type: g, key: S, ref: N, props: j, _owner: E.current }; | ||
} | ||
return I.Fragment = l, I.jsx = g, I.jsxs = g, I; | ||
return I.Fragment = l, I.jsx = m, I.jsxs = m, I; | ||
} | ||
var N = {}; | ||
var W = {}; | ||
/** | ||
@@ -60,26 +60,26 @@ * @license React | ||
*/ | ||
var Oe; | ||
function hr() { | ||
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() { | ||
var n = we, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), y = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), re = Symbol.iterator, ke = "@@iterator"; | ||
function De(e) { | ||
var we; | ||
function pr() { | ||
return we || (we = 1, process.env.NODE_ENV !== "production" && function() { | ||
var n = Se, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), re = Symbol.iterator, $e = "@@iterator"; | ||
function ke(e) { | ||
if (e === null || typeof e != "object") | ||
return null; | ||
var r = re && e[re] || e[ke]; | ||
var r = re && e[re] || e[$e]; | ||
return typeof r == "function" ? r : null; | ||
} | ||
var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function R(e) { | ||
function y(e) { | ||
{ | ||
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) | ||
t[o - 1] = arguments[o]; | ||
Fe("error", e, t); | ||
De("error", e, t); | ||
} | ||
} | ||
function Fe(e, r, t) { | ||
function De(e, r, t) { | ||
{ | ||
var o = P.ReactDebugCurrentFrame, u = o.getStackAddendum(); | ||
u !== "" && (r += "%s", t = t.concat([u])); | ||
var c = t.map(function(s) { | ||
return String(s); | ||
var o = P.ReactDebugCurrentFrame, s = o.getStackAddendum(); | ||
s !== "" && (r += "%s", t = t.concat([s])); | ||
var c = t.map(function(u) { | ||
return String(u); | ||
}); | ||
@@ -89,6 +89,6 @@ c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c); | ||
} | ||
var Ae = !1, Ie = !1, Ne = !1, We = !1, Ye = !1, te; | ||
var Ae = !1, Fe = !1, Ie = !1, We = !1, Ye = !1, te; | ||
te = Symbol.for("react.module.reference"); | ||
function Le(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === f || e === E || Ye || e === m || e === x || e === b || We || e === W || Ae || Ie || Ne || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === j || e.$$typeof === g || e.$$typeof === y || e.$$typeof === v || // This needs to include all possible module reference object | ||
function Ne(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === f || e === b || Ye || e === E || e === x || e === _ || We || e === N || Ae || Fe || Ie || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === j || e.$$typeof === m || e.$$typeof === g || e.$$typeof === d || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
@@ -99,8 +99,8 @@ // we don't know which Flight build this will end up being used | ||
} | ||
function Ve(e, r, t) { | ||
function Le(e, r, t) { | ||
var o = e.displayName; | ||
if (o) | ||
return o; | ||
var u = r.displayName || r.name || ""; | ||
return u !== "" ? t + "(" + u + ")" : t; | ||
var s = r.displayName || r.name || ""; | ||
return s !== "" ? t + "(" + s + ")" : t; | ||
} | ||
@@ -110,6 +110,6 @@ function ne(e) { | ||
} | ||
function S(e) { | ||
function O(e) { | ||
if (e == null) | ||
return null; | ||
if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") | ||
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") | ||
return e.displayName || e.name || null; | ||
@@ -123,9 +123,9 @@ if (typeof e == "string") | ||
return "Portal"; | ||
case b: | ||
return "Profiler"; | ||
case E: | ||
return "Profiler"; | ||
case m: | ||
return "StrictMode"; | ||
case x: | ||
return "Suspense"; | ||
case b: | ||
case _: | ||
return "SuspenseList"; | ||
@@ -135,17 +135,17 @@ } | ||
switch (e.$$typeof) { | ||
case y: | ||
case g: | ||
var r = e; | ||
return ne(r) + ".Consumer"; | ||
case g: | ||
case m: | ||
var t = e; | ||
return ne(t._context) + ".Provider"; | ||
case v: | ||
return Ve(e, e.render, "ForwardRef"); | ||
case d: | ||
return Le(e, e.render, "ForwardRef"); | ||
case j: | ||
var o = e.displayName || null; | ||
return o !== null ? o : S(e.type) || "Memo"; | ||
case w: { | ||
var u = e, c = u._payload, s = u._init; | ||
return o !== null ? o : O(e.type) || "Memo"; | ||
case S: { | ||
var s = e, c = s._payload, u = s._init; | ||
try { | ||
return S(s(c)); | ||
return O(u(c)); | ||
} catch { | ||
@@ -158,10 +158,10 @@ return null; | ||
} | ||
var C = Object.assign, F = 0, ae, oe, ie, se, ue, ce, le; | ||
var C = Object.assign, A = 0, ae, oe, ie, ue, se, ce, le; | ||
function fe() { | ||
} | ||
fe.__reactDisabledLog = !0; | ||
function Me() { | ||
function Ve() { | ||
{ | ||
if (F === 0) { | ||
ae = console.log, oe = console.info, ie = console.warn, se = console.error, ue = console.group, ce = console.groupCollapsed, le = console.groupEnd; | ||
if (A === 0) { | ||
ae = console.log, oe = console.info, ie = console.warn, ue = console.error, se = console.group, ce = console.groupCollapsed, le = console.groupEnd; | ||
var e = { | ||
@@ -183,8 +183,8 @@ configurable: !0, | ||
} | ||
F++; | ||
A++; | ||
} | ||
} | ||
function Ue() { | ||
function Me() { | ||
{ | ||
if (F--, F === 0) { | ||
if (A--, A === 0) { | ||
var e = { | ||
@@ -206,6 +206,6 @@ configurable: !0, | ||
error: C({}, e, { | ||
value: se | ||
value: ue | ||
}), | ||
group: C({}, e, { | ||
value: ue | ||
value: se | ||
}), | ||
@@ -220,7 +220,7 @@ groupCollapsed: C({}, e, { | ||
} | ||
F < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
A < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue."); | ||
} | ||
} | ||
var q = P.ReactCurrentDispatcher, J; | ||
function Y(e, r, t) { | ||
var B = P.ReactCurrentDispatcher, J; | ||
function L(e, r, t) { | ||
{ | ||
@@ -230,4 +230,4 @@ if (J === void 0) | ||
throw Error(); | ||
} catch (u) { | ||
var o = u.stack.trim().match(/\n( *(at )?)/); | ||
} catch (s) { | ||
var o = s.stack.trim().match(/\n( *(at )?)/); | ||
J = o && o[1] || ""; | ||
@@ -239,12 +239,12 @@ } | ||
} | ||
var B = !1, L; | ||
var G = !1, V; | ||
{ | ||
var qe = typeof WeakMap == "function" ? WeakMap : Map; | ||
L = new qe(); | ||
var Ue = typeof WeakMap == "function" ? WeakMap : Map; | ||
V = new Ue(); | ||
} | ||
function de(e, r) { | ||
if (!e || B) | ||
if (!e || G) | ||
return ""; | ||
{ | ||
var t = L.get(e); | ||
var t = V.get(e); | ||
if (t !== void 0) | ||
@@ -254,13 +254,13 @@ return t; | ||
var o; | ||
B = !0; | ||
var u = Error.prepareStackTrace; | ||
G = !0; | ||
var s = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var c; | ||
c = q.current, q.current = null, Me(); | ||
c = B.current, B.current = null, Ve(); | ||
try { | ||
if (r) { | ||
var s = function() { | ||
var u = function() { | ||
throw Error(); | ||
}; | ||
if (Object.defineProperty(s.prototype, "props", { | ||
if (Object.defineProperty(u.prototype, "props", { | ||
set: function() { | ||
@@ -271,14 +271,14 @@ throw Error(); | ||
try { | ||
Reflect.construct(s, []); | ||
} catch (O) { | ||
o = O; | ||
Reflect.construct(u, []); | ||
} catch (w) { | ||
o = w; | ||
} | ||
Reflect.construct(e, [], s); | ||
Reflect.construct(e, [], u); | ||
} else { | ||
try { | ||
s.call(); | ||
} catch (O) { | ||
o = O; | ||
u.call(); | ||
} catch (w) { | ||
o = w; | ||
} | ||
e.call(s.prototype); | ||
e.call(u.prototype); | ||
} | ||
@@ -288,23 +288,23 @@ } else { | ||
throw Error(); | ||
} catch (O) { | ||
o = O; | ||
} catch (w) { | ||
o = w; | ||
} | ||
e(); | ||
} | ||
} catch (O) { | ||
if (O && o && typeof O.stack == "string") { | ||
for (var i = O.stack.split(` | ||
`), _ = o.stack.split(` | ||
`), p = i.length - 1, h = _.length - 1; p >= 1 && h >= 0 && i[p] !== _[h]; ) | ||
h--; | ||
for (; p >= 1 && h >= 0; p--, h--) | ||
if (i[p] !== _[h]) { | ||
if (p !== 1 || h !== 1) | ||
} catch (w) { | ||
if (w && o && typeof w.stack == "string") { | ||
for (var i = w.stack.split(` | ||
`), R = o.stack.split(` | ||
`), v = i.length - 1, p = R.length - 1; v >= 1 && p >= 0 && i[v] !== R[p]; ) | ||
p--; | ||
for (; v >= 1 && p >= 0; v--, p--) | ||
if (i[v] !== R[p]) { | ||
if (v !== 1 || p !== 1) | ||
do | ||
if (p--, h--, h < 0 || i[p] !== _[h]) { | ||
if (v--, p--, p < 0 || i[v] !== R[p]) { | ||
var T = ` | ||
` + i[p].replace(" at new ", " at "); | ||
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, T), T; | ||
` + i[v].replace(" at new ", " at "); | ||
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, T), T; | ||
} | ||
while (p >= 1 && h >= 0); | ||
while (v >= 1 && p >= 0); | ||
break; | ||
@@ -314,8 +314,8 @@ } | ||
} finally { | ||
B = !1, q.current = c, Ue(), Error.prepareStackTrace = u; | ||
G = !1, B.current = c, Me(), Error.prepareStackTrace = s; | ||
} | ||
var k = e ? e.displayName || e.name : "", je = k ? Y(k) : ""; | ||
return typeof e == "function" && L.set(e, je), je; | ||
var k = e ? e.displayName || e.name : "", je = k ? L(k) : ""; | ||
return typeof e == "function" && V.set(e, je), je; | ||
} | ||
function Je(e, r, t) { | ||
function qe(e, r, t) { | ||
return de(e, !1); | ||
@@ -327,3 +327,3 @@ } | ||
} | ||
function V(e, r, t) { | ||
function M(e, r, t) { | ||
if (e == null) | ||
@@ -334,19 +334,19 @@ return ""; | ||
if (typeof e == "string") | ||
return Y(e); | ||
return L(e); | ||
switch (e) { | ||
case x: | ||
return Y("Suspense"); | ||
case b: | ||
return Y("SuspenseList"); | ||
return L("Suspense"); | ||
case _: | ||
return L("SuspenseList"); | ||
} | ||
if (typeof e == "object") | ||
switch (e.$$typeof) { | ||
case v: | ||
return Je(e.render); | ||
case d: | ||
return qe(e.render); | ||
case j: | ||
return V(e.type, r, t); | ||
case w: { | ||
var o = e, u = o._payload, c = o._init; | ||
return M(e.type, r, t); | ||
case S: { | ||
var o = e, s = o._payload, c = o._init; | ||
try { | ||
return V(c(u), r, t); | ||
return M(c(s), r, t); | ||
} catch { | ||
@@ -358,6 +358,6 @@ } | ||
} | ||
var M = Object.prototype.hasOwnProperty, ve = {}, pe = P.ReactDebugCurrentFrame; | ||
function U(e) { | ||
var U = Object.prototype.hasOwnProperty, ve = {}, pe = P.ReactDebugCurrentFrame; | ||
function q(e) { | ||
if (e) { | ||
var r = e._owner, t = V(e.type, e._source, r ? r.type : null); | ||
var r = e._owner, t = M(e.type, e._source, r ? r.type : null); | ||
pe.setExtraStackFrame(t); | ||
@@ -367,26 +367,26 @@ } else | ||
} | ||
function Ge(e, r, t, o, u) { | ||
function Je(e, r, t, o, s) { | ||
{ | ||
var c = Function.call.bind(M); | ||
for (var s in e) | ||
if (c(e, s)) { | ||
var c = Function.call.bind(U); | ||
for (var u in e) | ||
if (c(e, u)) { | ||
var i = void 0; | ||
try { | ||
if (typeof e[s] != "function") { | ||
var _ = Error((o || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw _.name = "Invariant Violation", _; | ||
if (typeof e[u] != "function") { | ||
var R = Error((o || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | ||
throw R.name = "Invariant Violation", R; | ||
} | ||
i = e[s](r, s, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (p) { | ||
i = p; | ||
i = e[u](r, u, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); | ||
} catch (v) { | ||
i = v; | ||
} | ||
i && !(i instanceof Error) && (U(u), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", t, s, typeof i), U(null)), i instanceof Error && !(i.message in ve) && (ve[i.message] = !0, U(u), R("Failed %s type: %s", t, i.message), U(null)); | ||
i && !(i instanceof Error) && (q(s), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", t, u, typeof i), q(null)), i instanceof Error && !(i.message in ve) && (ve[i.message] = !0, q(s), y("Failed %s type: %s", t, i.message), q(null)); | ||
} | ||
} | ||
} | ||
var ze = Array.isArray; | ||
function G(e) { | ||
return ze(e); | ||
var Ge = Array.isArray; | ||
function z(e) { | ||
return Ge(e); | ||
} | ||
function He(e) { | ||
function ze(e) { | ||
{ | ||
@@ -397,3 +397,3 @@ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
} | ||
function Ke(e) { | ||
function He(e) { | ||
try { | ||
@@ -409,6 +409,6 @@ return he(e), !1; | ||
function me(e) { | ||
if (Ke(e)) | ||
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), he(e); | ||
if (He(e)) | ||
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), he(e); | ||
} | ||
var A = P.ReactCurrentOwner, Xe = { | ||
var F = P.ReactCurrentOwner, Ke = { | ||
key: !0, | ||
@@ -418,6 +418,6 @@ ref: !0, | ||
__source: !0 | ||
}, ge, ye, z; | ||
z = {}; | ||
function Ze(e) { | ||
if (M.call(e, "ref")) { | ||
}, ge, ye, H; | ||
H = {}; | ||
function Xe(e) { | ||
if (U.call(e, "ref")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
@@ -429,4 +429,4 @@ if (r && r.isReactWarning) | ||
} | ||
function Qe(e) { | ||
if (M.call(e, "key")) { | ||
function Ze(e) { | ||
if (U.call(e, "key")) { | ||
var r = Object.getOwnPropertyDescriptor(e, "key").get; | ||
@@ -438,12 +438,12 @@ if (r && r.isReactWarning) | ||
} | ||
function er(e, r) { | ||
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) { | ||
var t = S(A.current.type); | ||
z[t] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(A.current.type), e.ref), z[t] = !0); | ||
function Qe(e, r) { | ||
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) { | ||
var t = O(F.current.type); | ||
H[t] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(F.current.type), e.ref), H[t] = !0); | ||
} | ||
} | ||
function rr(e, r) { | ||
function er(e, r) { | ||
{ | ||
var t = function() { | ||
ge || (ge = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
ge || (ge = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
}; | ||
@@ -456,6 +456,6 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", { | ||
} | ||
function tr(e, r) { | ||
function rr(e, r) { | ||
{ | ||
var t = function() { | ||
ye || (ye = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
ye || (ye = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); | ||
}; | ||
@@ -468,3 +468,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", { | ||
} | ||
var nr = function(e, r, t, o, u, c, s) { | ||
var tr = function(e, r, t, o, s, c, u) { | ||
var i = { | ||
@@ -477,3 +477,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
ref: t, | ||
props: s, | ||
props: u, | ||
// Record the component responsible for creating this element. | ||
@@ -496,27 +496,27 @@ _owner: c | ||
writable: !1, | ||
value: u | ||
value: s | ||
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i; | ||
}; | ||
function ar(e, r, t, o, u) { | ||
function nr(e, r, t, o, s) { | ||
{ | ||
var c, s = {}, i = null, _ = null; | ||
t !== void 0 && (me(t), i = "" + t), Qe(r) && (me(r.key), i = "" + r.key), Ze(r) && (_ = r.ref, er(r, u)); | ||
var c, u = {}, i = null, R = null; | ||
t !== void 0 && (me(t), i = "" + t), Ze(r) && (me(r.key), i = "" + r.key), Xe(r) && (R = r.ref, Qe(r, s)); | ||
for (c in r) | ||
M.call(r, c) && !Xe.hasOwnProperty(c) && (s[c] = r[c]); | ||
U.call(r, c) && !Ke.hasOwnProperty(c) && (u[c] = r[c]); | ||
if (e && e.defaultProps) { | ||
var p = e.defaultProps; | ||
for (c in p) | ||
s[c] === void 0 && (s[c] = p[c]); | ||
var v = e.defaultProps; | ||
for (c in v) | ||
u[c] === void 0 && (u[c] = v[c]); | ||
} | ||
if (i || _) { | ||
var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
i && rr(s, h), _ && tr(s, h); | ||
if (i || R) { | ||
var p = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
i && er(u, p), R && rr(u, p); | ||
} | ||
return nr(e, i, _, u, o, A.current, s); | ||
return tr(e, i, R, s, o, F.current, u); | ||
} | ||
} | ||
var H = P.ReactCurrentOwner, Re = P.ReactDebugCurrentFrame; | ||
var K = P.ReactCurrentOwner, Re = P.ReactDebugCurrentFrame; | ||
function $(e) { | ||
if (e) { | ||
var r = e._owner, t = V(e.type, e._source, r ? r.type : null); | ||
var r = e._owner, t = M(e.type, e._source, r ? r.type : null); | ||
Re.setExtraStackFrame(t); | ||
@@ -526,5 +526,5 @@ } else | ||
} | ||
var K; | ||
K = !1; | ||
function X(e) { | ||
var X; | ||
X = !1; | ||
function Z(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === a; | ||
@@ -534,4 +534,4 @@ } | ||
{ | ||
if (H.current) { | ||
var e = S(H.current.type); | ||
if (K.current) { | ||
var e = O(K.current.type); | ||
if (e) | ||
@@ -545,7 +545,7 @@ return ` | ||
} | ||
function or(e) { | ||
function ar(e) { | ||
return ""; | ||
} | ||
var Ee = {}; | ||
function ir(e) { | ||
function or(e) { | ||
{ | ||
@@ -567,3 +567,3 @@ var r = _e(); | ||
e._store.validated = !0; | ||
var t = ir(r); | ||
var t = or(r); | ||
if (Ee[t]) | ||
@@ -573,3 +573,3 @@ return; | ||
var o = ""; | ||
e && e._owner && e._owner !== H.current && (o = " It was passed a child from " + S(e._owner.type) + "."), $(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), $(null); | ||
e && e._owner && e._owner !== K.current && (o = " It was passed a child from " + O(e._owner.type) + "."), $(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), $(null); | ||
} | ||
@@ -581,18 +581,18 @@ } | ||
return; | ||
if (G(e)) | ||
if (z(e)) | ||
for (var t = 0; t < e.length; t++) { | ||
var o = e[t]; | ||
X(o) && be(o, r); | ||
Z(o) && be(o, r); | ||
} | ||
else if (X(e)) | ||
else if (Z(e)) | ||
e._store && (e._store.validated = !0); | ||
else if (e) { | ||
var u = De(e); | ||
if (typeof u == "function" && u !== e.entries) | ||
for (var c = u.call(e), s; !(s = c.next()).done; ) | ||
X(s.value) && be(s.value, r); | ||
var s = ke(e); | ||
if (typeof s == "function" && s !== e.entries) | ||
for (var c = s.call(e), u; !(u = c.next()).done; ) | ||
Z(u.value) && be(u.value, r); | ||
} | ||
} | ||
} | ||
function sr(e) { | ||
function ir(e) { | ||
{ | ||
@@ -605,3 +605,3 @@ var r = e.type; | ||
t = r.propTypes; | ||
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here. | ||
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
@@ -613,10 +613,10 @@ r.$$typeof === j)) | ||
if (t) { | ||
var o = S(r); | ||
Ge(t, e.props, "prop", o, e); | ||
} else if (r.PropTypes !== void 0 && !K) { | ||
K = !0; | ||
var u = S(r); | ||
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown"); | ||
var o = O(r); | ||
Je(t, e.props, "prop", o, e); | ||
} else if (r.PropTypes !== void 0 && !X) { | ||
X = !0; | ||
var s = O(r); | ||
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown"); | ||
} | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
@@ -629,28 +629,28 @@ } | ||
if (o !== "children" && o !== "key") { | ||
$(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), $(null); | ||
$(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), $(null); | ||
break; | ||
} | ||
} | ||
e.ref !== null && ($(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), $(null)); | ||
e.ref !== null && ($(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), $(null)); | ||
} | ||
} | ||
function xe(e, r, t, o, u, c) { | ||
function xe(e, r, t, o, s, c) { | ||
{ | ||
var s = Le(e); | ||
if (!s) { | ||
var u = Ne(e); | ||
if (!u) { | ||
var i = ""; | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); | ||
var _ = or(); | ||
_ ? i += _ : i += _e(); | ||
var p; | ||
e === null ? p = "null" : G(e) ? p = "array" : e !== void 0 && e.$$typeof === a ? (p = "<" + (S(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, i); | ||
var R = ar(); | ||
R ? i += R : i += _e(); | ||
var v; | ||
e === null ? v = "null" : z(e) ? v = "array" : e !== void 0 && e.$$typeof === a ? (v = "<" + (O(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, i); | ||
} | ||
var h = ar(e, r, t, u, c); | ||
if (h == null) | ||
return h; | ||
if (s) { | ||
var p = nr(e, r, t, s, c); | ||
if (p == null) | ||
return p; | ||
if (u) { | ||
var T = r.children; | ||
if (T !== void 0) | ||
if (o) | ||
if (G(T)) { | ||
if (z(T)) { | ||
for (var k = 0; k < T.length; k++) | ||
@@ -660,26 +660,26 @@ Te(T[k], e); | ||
} else | ||
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); | ||
else | ||
Te(T, e); | ||
} | ||
return e === f ? ur(h) : sr(h), h; | ||
return e === f ? ur(p) : ir(p), p; | ||
} | ||
} | ||
function cr(e, r, t) { | ||
function sr(e, r, t) { | ||
return xe(e, r, t, !0); | ||
} | ||
function lr(e, r, t) { | ||
function cr(e, r, t) { | ||
return xe(e, r, t, !1); | ||
} | ||
var fr = lr, dr = cr; | ||
N.Fragment = f, N.jsx = fr, N.jsxs = dr; | ||
}()), N; | ||
var lr = cr, fr = sr; | ||
W.Fragment = f, W.jsx = lr, W.jsxs = fr; | ||
}()), W; | ||
} | ||
process.env.NODE_ENV === "production" ? Z.exports = pr() : Z.exports = hr(); | ||
var d = Z.exports; | ||
const mr = ["#60463B", "#6C6F7D", "#59A96A", "#856A5D", "#2E3138"]; | ||
function Ce(n = 0, a = mr) { | ||
process.env.NODE_ENV === "production" ? Q.exports = vr() : Q.exports = pr(); | ||
var h = Q.exports; | ||
const hr = ["#60463B", "#6C6F7D", "#59A96A", "#856A5D", "#2E3138"]; | ||
function mr(n = 0, a = hr) { | ||
return a[n % a.length]; | ||
} | ||
const Q = (n, a) => a === "datasource" ? `DataSource("${n}")` : JSON.stringify(n); | ||
const Y = (n, a) => a === "datasource" ? `DataSource("${n}")` : JSON.stringify(n); | ||
function D(n) { | ||
@@ -708,4 +708,4 @@ switch (n) { | ||
function gr(n, a) { | ||
const { condition: l, opts: f } = n, { depth: m = 0, opColor: E = "white", colors: g } = f; | ||
return /* @__PURE__ */ d.jsx("ul", { style: { padding: 0 }, children: l.conditions.map((y, v) => /* @__PURE__ */ d.jsxs( | ||
const { condition: l, opts: f } = n, { depth: E = 0, opColor: b = "white", colors: m } = f; | ||
return /* @__PURE__ */ h.jsx("ul", { style: { padding: 0 }, children: l.conditions.map((g, d) => /* @__PURE__ */ h.jsxs( | ||
"li", | ||
@@ -718,10 +718,10 @@ { | ||
children: [ | ||
v > 0 ? /* @__PURE__ */ d.jsx("span", { style: { padding: "0 0.25rem", color: E }, children: D(l.op) }) : null, | ||
/* @__PURE__ */ d.jsx("div", { style: { color: Ce(m, g) }, children: a.execute({ | ||
condition: y, | ||
opts: { ...f, depth: m + 1 } | ||
d > 0 ? /* @__PURE__ */ h.jsx("span", { style: { padding: "0 0.25rem", color: b }, children: D(l.op) }) : null, | ||
/* @__PURE__ */ h.jsx("div", { style: { color: mr(E, m) }, children: a.execute({ | ||
condition: g, | ||
opts: { ...f, depth: E + 1 } | ||
}) }) | ||
] | ||
}, | ||
y.id | ||
g.id | ||
)) }); | ||
@@ -734,11 +734,11 @@ } | ||
}, Er = ({ ctx: n, pipeline: a }) => { | ||
const { condition: l, opts: f } = n, { depth: m = 0, render: E = ({ children: g }) => g } = f; | ||
return /* @__PURE__ */ d.jsxs("ul", { className: ee.condfmt, children: [ | ||
/* @__PURE__ */ d.jsx("span", { className: ee.op, children: /* @__PURE__ */ d.jsx(E, { opts: f, condition: l, children: D(l.op) }) }), | ||
l.conditions.map((g) => { | ||
const y = a.execute({ | ||
condition: g, | ||
opts: { ...f, depth: m + 1 } | ||
const { condition: l, opts: f } = n, { depth: E = 0, render: b = ({ children: m }) => m } = f; | ||
return /* @__PURE__ */ h.jsxs("ul", { className: ee.condfmt, children: [ | ||
/* @__PURE__ */ h.jsx("span", { className: ee.op, children: /* @__PURE__ */ h.jsx(b, { opts: f, condition: l, children: D(l.op) }) }), | ||
l.conditions.map((m) => { | ||
const g = a.execute({ | ||
condition: m, | ||
opts: { ...f, depth: E + 1 } | ||
}); | ||
return /* @__PURE__ */ d.jsx("li", { children: y }, g.id); | ||
return /* @__PURE__ */ h.jsx("li", { children: g }, m.id); | ||
}) | ||
@@ -755,3 +755,3 @@ ] }); | ||
case "jsx": | ||
return /* @__PURE__ */ d.jsx( | ||
return /* @__PURE__ */ h.jsx( | ||
Er, | ||
@@ -768,3 +768,3 @@ { | ||
const { condition: a } = n; | ||
return `${Q(a.path, "datasource")} ${D(a.op)} ${Q(a.value, a.valueType)}`; | ||
return `${Y(a.path, "datasource")} ${D(a.op)} ${Y(a.value, a.valueType)}`; | ||
} | ||
@@ -775,22 +775,9 @@ const xr = ({ | ||
}) => { | ||
const { depth: l = 0, render: f = ({ children: E }) => E } = a, m = Ce(l); | ||
return /* @__PURE__ */ d.jsxs(f, { opts: a, condition: n, children: [ | ||
/* @__PURE__ */ d.jsxs( | ||
const { render: l = ({ children: f }) => f } = a; | ||
return /* @__PURE__ */ h.jsxs(l, { opts: a, condition: n, children: [ | ||
Y(n.path, "datasource"), | ||
/* @__PURE__ */ h.jsx( | ||
"span", | ||
{ | ||
style: { | ||
color: m | ||
}, | ||
children: [ | ||
"DataSource(", | ||
JSON.stringify(n.path), | ||
")" | ||
] | ||
} | ||
), | ||
/* @__PURE__ */ d.jsx( | ||
"span", | ||
{ | ||
style: { | ||
color: m, | ||
padding: "0 0.25rem" | ||
@@ -801,15 +788,3 @@ }, | ||
), | ||
/* @__PURE__ */ d.jsx( | ||
"span", | ||
{ | ||
style: { | ||
color: m | ||
}, | ||
children: n.valueType === "datasource" ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [ | ||
"DataSource(", | ||
JSON.stringify(n.value), | ||
")" | ||
] }) : JSON.stringify(n.value) | ||
} | ||
) | ||
Y(n.value, n.valueType) | ||
] }); | ||
@@ -825,17 +800,17 @@ }, jr = { | ||
default: | ||
return /* @__PURE__ */ d.jsx(xr, { ...n }); | ||
return /* @__PURE__ */ h.jsx(xr, { ...n }); | ||
} | ||
} | ||
}; | ||
function Pe(n) { | ||
function Ce(n) { | ||
const { condition: a } = n; | ||
return `Has a ParentState ${D(a.op)} ${Q(a.value, a.valueType)}`; | ||
return `Has a ParentState ${D(a.op)} ${Y(a.value, a.valueType)}`; | ||
} | ||
const Sr = ({ condition: n, opts: a }) => { | ||
const Or = ({ condition: n, opts: a }) => { | ||
const { render: l = ({ children: f }) => f } = a; | ||
return /* @__PURE__ */ d.jsx(l, { opts: a, condition: n, children: Pe({ | ||
return /* @__PURE__ */ h.jsx(l, { opts: a, condition: n, children: Ce({ | ||
condition: n, | ||
opts: a | ||
}) }); | ||
}, Or = { | ||
}, wr = { | ||
name: "parent-state", | ||
@@ -847,15 +822,15 @@ run(n, a) { | ||
case "text": | ||
return Pe(n); | ||
return Ce(n); | ||
case "jsx": | ||
return /* @__PURE__ */ d.jsx(Sr, { ...n }); | ||
return /* @__PURE__ */ h.jsx(Or, { ...n }); | ||
} | ||
} | ||
}; | ||
function $e(n) { | ||
function Pe(n) { | ||
const { condition: a } = n; | ||
return `Has a Privilege ${D(a.op)} ${a.valueType === "datasource" ? `DataSource(${JSON.stringify(a.value)})` : JSON.stringify(a.value)}`; | ||
} | ||
const wr = ({ condition: n, opts: a }) => { | ||
const Sr = ({ condition: n, opts: a }) => { | ||
const { render: l = ({ children: f }) => f } = a; | ||
return /* @__PURE__ */ d.jsx(l, { opts: a, condition: n, children: $e({ | ||
return /* @__PURE__ */ h.jsx(l, { opts: a, condition: n, children: Pe({ | ||
condition: n, | ||
@@ -871,5 +846,5 @@ opts: a | ||
case "text": | ||
return $e(n); | ||
return Pe(n); | ||
case "jsx": | ||
return /* @__PURE__ */ d.jsx(wr, { ...n }); | ||
return /* @__PURE__ */ h.jsx(Sr, { ...n }); | ||
} | ||
@@ -884,5 +859,5 @@ } | ||
const { render: l = ({ children: f }) => f } = a; | ||
return /* @__PURE__ */ d.jsxs(l, { opts: a, condition: n, children: [ | ||
return /* @__PURE__ */ h.jsxs(l, { opts: a, condition: n, children: [ | ||
"Ref(", | ||
/* @__PURE__ */ d.jsx("span", { className: ee.ref, children: n.id }), | ||
/* @__PURE__ */ h.jsx("span", { className: ee.ref, children: n.id }), | ||
")" | ||
@@ -899,6 +874,6 @@ ] }); | ||
case "jsx": | ||
return /* @__PURE__ */ d.jsx($r, { ...n }); | ||
return /* @__PURE__ */ h.jsx($r, { ...n }); | ||
} | ||
} | ||
}, Fr = vr( | ||
}, Ar = dr( | ||
null, | ||
@@ -908,8 +883,8 @@ br, | ||
Cr, | ||
Or, | ||
wr, | ||
kr | ||
).execute; | ||
export { | ||
Fr as format | ||
Ar as format | ||
}; | ||
//# sourceMappingURL=index.es.js.map |
{ | ||
"name": "@ws-ui/condfmt", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
211765
1052