UNPKG

@lanaco/lnc-react-ui

Version:

React component library

21 lines (20 loc) 16 kB
"use strict";const ge=require("./_commonjsHelpers-DwTZ_eVU.cjs");var ae={exports:{}},V={exports:{}},T={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ue;function Se(){if(ue)return T;ue=1;var o=typeof Symbol=="function"&&Symbol.for,j=o?Symbol.for("react.element"):60103,_=o?Symbol.for("react.portal"):60106,p=o?Symbol.for("react.fragment"):60107,S=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,P=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,O=o?Symbol.for("react.async_mode"):60111,g=o?Symbol.for("react.concurrent_mode"):60111,b=o?Symbol.for("react.forward_ref"):60112,E=o?Symbol.for("react.suspense"):60113,C=o?Symbol.for("react.suspense_list"):60120,x=o?Symbol.for("react.memo"):60115,M=o?Symbol.for("react.lazy"):60116,R=o?Symbol.for("react.block"):60121,I=o?Symbol.for("react.fundamental"):60117,q=o?Symbol.for("react.responder"):60118,F=o?Symbol.for("react.scope"):60119;function A(t){if(typeof t=="object"&&t!==null){var k=t.$$typeof;switch(k){case j:switch(t=t.type,t){case O:case g:case p:case a:case S:case E:return t;default:switch(t=t&&t.$$typeof,t){case l:case b:case M:case x:case P:return t;default:return k}}case _:return k}}}function w(t){return A(t)===g}return T.AsyncMode=O,T.ConcurrentMode=g,T.ContextConsumer=l,T.ContextProvider=P,T.Element=j,T.ForwardRef=b,T.Fragment=p,T.Lazy=M,T.Memo=x,T.Portal=_,T.Profiler=a,T.StrictMode=S,T.Suspense=E,T.isAsyncMode=function(t){return w(t)||A(t)===O},T.isConcurrentMode=w,T.isContextConsumer=function(t){return A(t)===l},T.isContextProvider=function(t){return A(t)===P},T.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===j},T.isForwardRef=function(t){return A(t)===b},T.isFragment=function(t){return A(t)===p},T.isLazy=function(t){return A(t)===M},T.isMemo=function(t){return A(t)===x},T.isPortal=function(t){return A(t)===_},T.isProfiler=function(t){return A(t)===a},T.isStrictMode=function(t){return A(t)===S},T.isSuspense=function(t){return A(t)===E},T.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===p||t===g||t===a||t===S||t===E||t===C||typeof t=="object"&&t!==null&&(t.$$typeof===M||t.$$typeof===x||t.$$typeof===P||t.$$typeof===l||t.$$typeof===b||t.$$typeof===I||t.$$typeof===q||t.$$typeof===F||t.$$typeof===R)},T.typeOf=A,T}var m={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var fe;function Pe(){return fe||(fe=1,process.env.NODE_ENV!=="production"&&function(){var o=typeof Symbol=="function"&&Symbol.for,j=o?Symbol.for("react.element"):60103,_=o?Symbol.for("react.portal"):60106,p=o?Symbol.for("react.fragment"):60107,S=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,P=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,O=o?Symbol.for("react.async_mode"):60111,g=o?Symbol.for("react.concurrent_mode"):60111,b=o?Symbol.for("react.forward_ref"):60112,E=o?Symbol.for("react.suspense"):60113,C=o?Symbol.for("react.suspense_list"):60120,x=o?Symbol.for("react.memo"):60115,M=o?Symbol.for("react.lazy"):60116,R=o?Symbol.for("react.block"):60121,I=o?Symbol.for("react.fundamental"):60117,q=o?Symbol.for("react.responder"):60118,F=o?Symbol.for("react.scope"):60119;function A(r){return typeof r=="string"||typeof r=="function"||r===p||r===g||r===a||r===S||r===E||r===C||typeof r=="object"&&r!==null&&(r.$$typeof===M||r.$$typeof===x||r.$$typeof===P||r.$$typeof===l||r.$$typeof===b||r.$$typeof===I||r.$$typeof===q||r.$$typeof===F||r.$$typeof===R)}function w(r){if(typeof r=="object"&&r!==null){var D=r.$$typeof;switch(D){case j:var B=r.type;switch(B){case O:case g:case p:case a:case S:case E:return B;default:var se=B&&B.$$typeof;switch(se){case l:case b:case M:case x:case P:return se;default:return D}}case _:return D}}}var t=O,k=g,H=l,N=P,J=j,X=b,U=p,G=M,K=x,L=_,Z=a,Y=S,W=E,z=!1;function Q(r){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),e(r)||w(r)===O}function e(r){return w(r)===g}function n(r){return w(r)===l}function f(r){return w(r)===P}function s(r){return typeof r=="object"&&r!==null&&r.$$typeof===j}function i(r){return w(r)===b}function y(r){return w(r)===p}function c(r){return w(r)===M}function u(r){return w(r)===x}function d(r){return w(r)===_}function h(r){return w(r)===a}function v(r){return w(r)===S}function $(r){return w(r)===E}m.AsyncMode=t,m.ConcurrentMode=k,m.ContextConsumer=H,m.ContextProvider=N,m.Element=J,m.ForwardRef=X,m.Fragment=U,m.Lazy=G,m.Memo=K,m.Portal=L,m.Profiler=Z,m.StrictMode=Y,m.Suspense=W,m.isAsyncMode=Q,m.isConcurrentMode=e,m.isContextConsumer=n,m.isContextProvider=f,m.isElement=s,m.isForwardRef=i,m.isFragment=y,m.isLazy=c,m.isMemo=u,m.isPortal=d,m.isProfiler=h,m.isStrictMode=v,m.isSuspense=$,m.isValidElementType=A,m.typeOf=w}()),m}var le;function me(){return le||(le=1,process.env.NODE_ENV==="production"?V.exports=Se():V.exports=Pe()),V.exports}/* object-assign (c) Sindre Sorhus @license MIT */var ee,pe;function _e(){if(pe)return ee;pe=1;var o=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;function p(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function S(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var P={},l=0;l<10;l++)P["_"+String.fromCharCode(l)]=l;var O=Object.getOwnPropertyNames(P).map(function(b){return P[b]});if(O.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(b){g[b]=b}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ee=S()?Object.assign:function(a,P){for(var l,O=p(a),g,b=1;b<arguments.length;b++){l=Object(arguments[b]);for(var E in l)j.call(l,E)&&(O[E]=l[E]);if(o){g=o(l);for(var C=0;C<g.length;C++)_.call(l,g[C])&&(O[g[C]]=l[g[C]])}}return O},ee}var re,ye;function ce(){if(ye)return re;ye=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return re=o,re}var te,de;function he(){return de||(de=1,te=Function.call.bind(Object.prototype.hasOwnProperty)),te}var ne,ve;function Oe(){if(ve)return ne;ve=1;var o=function(){};if(process.env.NODE_ENV!=="production"){var j=ce(),_={},p=he();o=function(a){var P="Warning: "+a;typeof console<"u"&&console.error(P);try{throw new Error(P)}catch{}}}function S(a,P,l,O,g){if(process.env.NODE_ENV!=="production"){for(var b in a)if(p(a,b)){var E;try{if(typeof a[b]!="function"){var C=Error((O||"React class")+": "+l+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}E=a[b](P,b,O,l,null,j)}catch(M){E=M}if(E&&!(E instanceof Error)&&o((O||"React class")+": type specification of "+l+" `"+b+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in _)){_[E.message]=!0;var x=g?g():"";o("Failed "+l+" type: "+E.message+(x??""))}}}}return S.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(_={})},ne=S,ne}var oe,be;function Re(){if(be)return oe;be=1;var o=me(),j=_e(),_=ce(),p=he(),S=Oe(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var O="Warning: "+l;typeof console<"u"&&console.error(O);try{throw new Error(O)}catch{}});function P(){return null}return oe=function(l,O){var g=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function E(e){var n=e&&(g&&e[g]||e[b]);if(typeof n=="function")return n}var C="<<anonymous>>",x={array:q("array"),bigint:q("bigint"),bool:q("boolean"),func:q("function"),number:q("number"),object:q("object"),string:q("string"),symbol:q("symbol"),any:F(),arrayOf:A,element:w(),elementType:t(),instanceOf:k,node:X(),objectOf:N,oneOf:H,oneOfType:J,shape:G,exact:K};function M(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function R(e,n){this.message=e,this.data=n&&typeof n=="object"?n:{},this.stack=""}R.prototype=Error.prototype;function I(e){if(process.env.NODE_ENV!=="production")var n={},f=0;function s(y,c,u,d,h,v,$){if(d=d||C,v=v||u,$!==_){if(O){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var D=d+":"+u;!n[D]&&f<3&&(a("You are manually calling a React.PropTypes validation function for the `"+v+"` prop on `"+d+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[D]=!0,f++)}}return c[u]==null?y?c[u]===null?new R("The "+h+" `"+v+"` is marked as required "+("in `"+d+"`, but its value is `null`.")):new R("The "+h+" `"+v+"` is marked as required in "+("`"+d+"`, but its value is `undefined`.")):null:e(c,u,d,h,v)}var i=s.bind(null,!1);return i.isRequired=s.bind(null,!0),i}function q(e){function n(f,s,i,y,c,u){var d=f[s],h=Y(d);if(h!==e){var v=W(d);return new R("Invalid "+y+" `"+c+"` of type "+("`"+v+"` supplied to `"+i+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return I(n)}function F(){return I(P)}function A(e){function n(f,s,i,y,c){if(typeof e!="function")return new R("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var u=f[s];if(!Array.isArray(u)){var d=Y(u);return new R("Invalid "+y+" `"+c+"` of type "+("`"+d+"` supplied to `"+i+"`, expected an array."))}for(var h=0;h<u.length;h++){var v=e(u,h,i,y,c+"["+h+"]",_);if(v instanceof Error)return v}return null}return I(n)}function w(){function e(n,f,s,i,y){var c=n[f];if(!l(c)){var u=Y(c);return new R("Invalid "+i+" `"+y+"` of type "+("`"+u+"` supplied to `"+s+"`, expected a single ReactElement."))}return null}return I(e)}function t(){function e(n,f,s,i,y){var c=n[f];if(!o.isValidElementType(c)){var u=Y(c);return new R("Invalid "+i+" `"+y+"` of type "+("`"+u+"` supplied to `"+s+"`, expected a single ReactElement type."))}return null}return I(e)}function k(e){function n(f,s,i,y,c){if(!(f[s]instanceof e)){var u=e.name||C,d=Q(f[s]);return new R("Invalid "+y+" `"+c+"` of type "+("`"+d+"` supplied to `"+i+"`, expected ")+("instance of `"+u+"`."))}return null}return I(n)}function H(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),P;function n(f,s,i,y,c){for(var u=f[s],d=0;d<e.length;d++)if(M(u,e[d]))return null;var h=JSON.stringify(e,function($,r){var D=W(r);return D==="symbol"?String(r):r});return new R("Invalid "+y+" `"+c+"` of value `"+String(u)+"` "+("supplied to `"+i+"`, expected one of "+h+"."))}return I(n)}function N(e){function n(f,s,i,y,c){if(typeof e!="function")return new R("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=f[s],d=Y(u);if(d!=="object")return new R("Invalid "+y+" `"+c+"` of type "+("`"+d+"` supplied to `"+i+"`, expected an object."));for(var h in u)if(p(u,h)){var v=e(u,h,i,y,c+"."+h,_);if(v instanceof Error)return v}return null}return I(n)}function J(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),P;for(var n=0;n<e.length;n++){var f=e[n];if(typeof f!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(f)+" at index "+n+"."),P}function s(i,y,c,u,d){for(var h=[],v=0;v<e.length;v++){var $=e[v],r=$(i,y,c,u,d,_);if(r==null)return null;r.data&&p(r.data,"expectedType")&&h.push(r.data.expectedType)}var D=h.length>0?", expected one of type ["+h.join(", ")+"]":"";return new R("Invalid "+u+" `"+d+"` supplied to "+("`"+c+"`"+D+"."))}return I(s)}function X(){function e(n,f,s,i,y){return L(n[f])?null:new R("Invalid "+i+" `"+y+"` supplied to "+("`"+s+"`, expected a ReactNode."))}return I(e)}function U(e,n,f,s,i){return new R((e||"React class")+": "+n+" type `"+f+"."+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function G(e){function n(f,s,i,y,c){var u=f[s],d=Y(u);if(d!=="object")return new R("Invalid "+y+" `"+c+"` of type `"+d+"` "+("supplied to `"+i+"`, expected `object`."));for(var h in e){var v=e[h];if(typeof v!="function")return U(i,y,c,h,W(v));var $=v(u,h,i,y,c+"."+h,_);if($)return $}return null}return I(n)}function K(e){function n(f,s,i,y,c){var u=f[s],d=Y(u);if(d!=="object")return new R("Invalid "+y+" `"+c+"` of type `"+d+"` "+("supplied to `"+i+"`, expected `object`."));var h=j({},f[s],e);for(var v in h){var $=e[v];if(p(e,v)&&typeof $!="function")return U(i,y,c,v,W($));if(!$)return new R("Invalid "+y+" `"+c+"` key `"+v+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(f[s],null," ")+` Valid keys: `+JSON.stringify(Object.keys(e),null," "));var r=$(u,v,i,y,c+"."+v,_);if(r)return r}return null}return I(n)}function L(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(L);if(e===null||l(e))return!0;var n=E(e);if(n){var f=n.call(e),s;if(n!==e.entries){for(;!(s=f.next()).done;)if(!L(s.value))return!1}else for(;!(s=f.next()).done;){var i=s.value;if(i&&!L(i[1]))return!1}}else return!1;return!0;default:return!1}}function Z(e,n){return e==="symbol"?!0:n?n["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&n instanceof Symbol:!1}function Y(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":Z(n,e)?"symbol":n}function W(e){if(typeof e>"u"||e===null)return""+e;var n=Y(e);if(n==="object"){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function z(e){var n=W(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}function Q(e){return!e.constructor||!e.constructor.name?C:e.constructor.name}return x.checkPropTypes=S,x.resetWarningCache=S.resetWarningCache,x.PropTypes=x,x},oe}var ie,Te;function Ce(){if(Te)return ie;Te=1;var o=ce();function j(){}function _(){}return _.resetWarningCache=j,ie=function(){function p(P,l,O,g,b,E){if(E!==o){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}p.isRequired=p;function S(){return p}var a={array:p,bigint:p,bool:p,func:p,number:p,object:p,string:p,symbol:p,any:p,arrayOf:S,element:p,elementType:p,instanceOf:S,node:p,objectOf:S,oneOf:S,oneOfType:S,shape:S,exact:S,checkPropTypes:_,resetWarningCache:j};return a.PropTypes=a,a},ie}if(process.env.NODE_ENV!=="production"){var xe=me(),we=!0;ae.exports=Re()(xe.isElement,we)}else ae.exports=Ce()();var Ee=ae.exports;const Ae=ge.getDefaultExportFromCjs(Ee);exports.PropTypes=Ae;exports.propTypesExports=Ee;