@d19n/webchat 1.1.3 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TwilioChat/components/styled/ChatContent.d.ts +2 -1
- package/dist/TwilioChat/components/styled/ChatContentList.d.ts +2 -1
- package/dist/TwilioChat/components/styled/ChatWrapper.d.ts +2 -1
- package/dist/TwilioChat/components/styled/EventPost.d.ts +2 -1
- package/dist/TwilioChat/components/styled/Header.d.ts +2 -1
- package/dist/TwilioChat/components/styled/InputForm.d.ts +2 -1
- package/dist/TwilioChat/components/styled/MyPost.d.ts +2 -1
- package/dist/TwilioChat/components/styled/Splitter.d.ts +2 -1
- package/dist/TwilioChat/components/styled/WidgetButton.d.ts +2 -1
- package/dist/TwilioChat/components/styled/YFPost.d.ts +2 -1
- package/dist/_virtual/index11.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +2 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
- package/dist/node_modules/attr-accept/dist/es/index.js +1 -1
- package/dist/node_modules/classnames/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Row.js +1 -1
- package/dist/node_modules/react-dropzone/dist/es/utils/index.js +1 -1
- package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js +1 -1
- package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/node_modules/stylis/src/Enum.js +2 -0
- package/dist/node_modules/stylis/src/Enum.js.map +1 -0
- package/dist/node_modules/stylis/src/Middleware.js +2 -0
- package/dist/node_modules/stylis/src/Middleware.js.map +1 -0
- package/dist/node_modules/stylis/src/Parser.js +2 -0
- package/dist/node_modules/stylis/src/Parser.js.map +1 -0
- package/dist/node_modules/stylis/src/Prefixer.js +2 -0
- package/dist/node_modules/stylis/src/Prefixer.js.map +1 -0
- package/dist/node_modules/stylis/src/Serializer.js +2 -0
- package/dist/node_modules/stylis/src/Serializer.js.map +1 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +2 -0
- package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/dist/node_modules/stylis/src/Utility.js +2 -0
- package/dist/node_modules/stylis/src/Utility.js.map +1 -0
- package/dist/package.json/package.json +17 -18
- package/dist/src/TwilioChat/Chat.js +1 -1
- package/dist/src/TwilioChat/Chat.js.map +1 -1
- package/dist/src/TwilioChat/components/ChatHeader.js +1 -1
- package/dist/src/TwilioChat/components/ChatHeader.js.map +1 -1
- package/dist/src/TwilioChat/components/ChatInput.js +1 -1
- package/dist/src/TwilioChat/components/ChatInput.js.map +1 -1
- package/dist/src/TwilioChat/components/Container.js +1 -1
- package/dist/src/TwilioChat/components/Container.js.map +1 -1
- package/dist/src/TwilioChat/components/Message.js +1 -1
- package/dist/src/TwilioChat/components/Message.js.map +1 -1
- package/dist/src/TwilioChat/components/MessageList.js +1 -1
- package/dist/src/TwilioChat/components/MessageList.js.map +1 -1
- package/dist/src/TwilioChat/components/NotificationBar.js +1 -1
- package/dist/src/TwilioChat/components/NotificationBar.js.map +1 -1
- package/dist/src/TwilioChat/components/TypingIndicator.js +1 -1
- package/dist/src/TwilioChat/components/TypingIndicator.js.map +1 -1
- package/dist/src/TwilioChat/components/Widget.js +1 -1
- package/dist/src/TwilioChat/components/Widget.js.map +1 -1
- package/dist/src/TwilioChat/index.js +1 -1
- package/dist/src/TwilioChat/index.js.map +1 -1
- package/dist/src/context/ChatGlobalContext.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/package.json +17 -18
- package/dist/_virtual/hoist-non-react-statics.cjs.js +0 -2
- package/dist/_virtual/hoist-non-react-statics.cjs.js.map +0 -1
- package/dist/_virtual/index12.js +0 -2
- package/dist/_virtual/index12.js.map +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -18
- package/dist/index.mjs.map +0 -1
- package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js +0 -2
- package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.js +0 -2
- package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.js.map +0 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -2
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +0 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ChatContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default ChatContent;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ChatContentList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default ChatContentList;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ChatWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default ChatWrapper;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const EventPost: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default EventPost;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default Header;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const InputForm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
|
|
2
3
|
export default InputForm;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const MyPost: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default MyPost;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const Splitter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default Splitter;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const WidgetButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default WidgetButton;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const YFPost: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
3
|
export default YFPost;
|
package/dist/_virtual/index11.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var r={};export{r as __exports};
|
|
2
2
|
//# sourceMappingURL=index11.js.map
|
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__require as r}from"../node_modules/
|
|
1
|
+
import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.js";import{__require as r}from"../node_modules/attr-accept/dist/es/index.js";var o=e(r());export{o as default};
|
|
2
2
|
//# sourceMappingURL=index6.js.map
|
package/dist/_virtual/index7.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.js";import{__require as
|
|
1
|
+
import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.js";import{__require as s}from"../node_modules/classnames/index.js";var o=e(s());export{o as default};
|
|
2
2
|
//# sourceMappingURL=index7.js.map
|
package/dist/_virtual/index8.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
var e={exports:{}};export{e as __module};
|
|
2
2
|
//# sourceMappingURL=index8.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
interface Props {
|
|
4
|
-
side
|
|
5
|
-
fullscreen
|
|
4
|
+
side?: string;
|
|
5
|
+
fullscreen?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
7
|
+
declare const App: React.FC<Props>;
|
|
8
8
|
|
|
9
9
|
export { App as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};export{o as default};
|
|
2
|
+
//# sourceMappingURL=emotion-unitless.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emotion-unitless.esm.js","sources":["../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"],"sourcesContent":["var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n scale: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n"],"names":["unitlessKeys","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","msGridRow","msGridRowSpan","msGridColumn","msGridColumnSpan","fontWeight","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","WebkitLineClamp","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"],"mappings":"AAAG,IAACA,EAAe,CACjBC,wBAAyB,EACzBC,YAAa,EACbC,kBAAmB,EACnBC,iBAAkB,EAClBC,iBAAkB,EAClBC,QAAS,EACTC,aAAc,EACdC,gBAAiB,EACjBC,YAAa,EACbC,QAAS,EACTC,KAAM,EACNC,SAAU,EACVC,aAAc,EACdC,WAAY,EACZC,aAAc,EACdC,UAAW,EACXC,QAAS,EACTC,WAAY,EACZC,YAAa,EACbC,aAAc,EACdC,WAAY,EACZC,cAAe,EACfC,eAAgB,EAChBC,gBAAiB,EACjBC,UAAW,EACXC,cAAe,EACfC,aAAc,EACdC,iBAAkB,EAClBC,WAAY,EACZC,WAAY,EACZC,QAAS,EACTC,MAAO,EACPC,QAAS,EACTC,MAAO,EACPC,QAAS,EACTC,OAAQ,EACRC,OAAQ,EACRC,KAAM,EACNC,gBAAiB,EAEjBC,YAAa,EACbC,aAAc,EACdC,YAAa,EACbC,gBAAiB,EACjBC,iBAAkB,EAClBC,iBAAkB,EAClBC,cAAe,EACfC,YAAa","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exports as r}from"../../../../_virtual/
|
|
1
|
+
import{__exports as r}from"../../../../_virtual/index11.js";var e;function t(){return e||(e=1,r.__esModule=!0,r.default=function(r,e){if(r&&e){var t=Array.isArray(e)?e:e.split(",");if(0===t.length)return!0;var a=r.name||"",n=(r.type||"").toLowerCase(),o=n.replace(/\/.*$/,"");return t.some(function(r){var e=r.trim().toLowerCase();return"."===e.charAt(0)?a.toLowerCase().endsWith(e):e.endsWith("/*")?o===e.replace(/\/.*$/,""):n===e})}return!0}),r}export{t as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__module as r}from"../../_virtual/
|
|
1
|
+
import{__module as r}from"../../_virtual/index8.js";import{__require as e}from"../react-is/index.js";import{__require as i}from"./factoryWithTypeCheckers.js";import{__require as o}from"./factoryWithThrowingShims.js";var t;function s(){if(t)return r.exports;if(t=1,"production"!==process.env.NODE_ENV){var s=e();r.exports=i()(s.isElement,true)}else r.exports=o()();return r.exports}export{s as __require};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import s from"../../../_virtual/
|
|
1
|
+
import s from"../../../_virtual/index7.js";import*as e from"react";import{useBootstrapPrefix as r,useBootstrapBreakpoints as o,useBootstrapMinBreakpoint as t}from"./ThemeProvider.js";import{jsx as a}from"react/jsx-runtime";function f({as:e,bsPrefix:a,className:f,...l}){a=r(a,"col");const n=o(),c=t(),m=[],i=[];return n.forEach(s=>{const e=l[s];let r,o,t;delete l[s],"object"==typeof e&&null!=e?({span:r,offset:o,order:t}=e):r=e;const f=s!==c?`-${s}`:"";r&&m.push(!0===r?`${a}${f}`:`${a}${f}-${r}`),null!=t&&i.push(`order${f}-${t}`),null!=o&&i.push(`offset${f}-${o}`)}),[{...l,className:s(f,...m,...i)},{as:e,bsPrefix:a,spans:m}]}const l=e.forwardRef((e,r)=>{const[{className:o,...t},{as:l="div",bsPrefix:n,spans:c}]=f(e);return a(l,{...t,ref:r,className:s(o,!c.length&&n)})});l.displayName="Col";export{l as default,f as useCol};
|
|
2
2
|
//# sourceMappingURL=Col.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"../../../_virtual/
|
|
1
|
+
import r from"../../../_virtual/index7.js";import*as e from"react";import{useBootstrapPrefix as o,useBootstrapBreakpoints as s,useBootstrapMinBreakpoint as t}from"./ThemeProvider.js";import{jsx as a}from"react/jsx-runtime";const l=e.forwardRef(({bsPrefix:e,className:l,as:m="div",...c},f)=>{const i=o(e,"row"),n=s(),p=t(),d=`${i}-cols`,u=[];return n.forEach(r=>{const e=c[r];let o;delete c[r],null!=e&&"object"==typeof e?({cols:o}=e):o=e;const s=r!==p?`-${r}`:"";null!=o&&u.push(`${d}${s}-${o}`)}),a(m,{ref:f,...c,className:r(l,i,...u)})});l.displayName="Row";export{l as default};
|
|
2
2
|
//# sourceMappingURL=Row.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"../../../../../_virtual/
|
|
1
|
+
import e from"../../../../../_virtual/index6.js";function t(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u="function"==typeof e?e:e.default,l="file-invalid-type",f="file-too-large",s="file-too-small",p="too-many-files",y=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:l,message:"File type must be ".concat(t)}},d=function(e){return{code:f,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},b=function(e){return{code:s,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},m={code:p,message:"Too many files"};function v(e,t){var n="application/x-moz-file"===e.type||u(e,t);return[n,n?null:y(t)]}function g(e,t,n){if(O(e.size))if(O(t)&&O(n)){if(e.size>n)return[!1,d(n)];if(e.size<t)return[!1,b(t)]}else{if(O(t)&&e.size<t)return[!1,b(t)];if(O(n)&&e.size>n)return[!1,d(n)]}return[!0,null]}function O(e){return null!=e}function h(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,c=e.maxFiles,u=e.validator;return!(!a&&t.length>1||a&&c>=1&&t.length>c)&&t.every(function(e){var t=i(v(e,n),1)[0],a=i(g(e,r,o),1)[0],c=u?u(e):null;return t&&a&&!c})}function w(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function j(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function S(e){e.preventDefault()}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return!w(e)&&t&&t.apply(void 0,[e].concat(r)),w(e)})}}function x(){return"showOpenFilePicker"in window}function P(e){return O(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=i(e,2),n=t[0],r=t[1],o=!0;return M(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(D)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var n=i(t,2),a=n[0],c=n[1];return r(r({},e),{},o({},a,c))},{})}]:e}function T(e){if(O(e))return Object.entries(e).reduce(function(e,n){var r=i(n,2),o=r[0],a=r[1];return[].concat(t(e),[o],t(a))},[]).filter(function(e){return M(e)||D(e)}).join(",")}function z(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function I(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function M(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function D(e){return/^.*\.[\w]+$/.test(e)}export{l as FILE_INVALID_TYPE,f as FILE_TOO_LARGE,s as FILE_TOO_SMALL,p as TOO_MANY_FILES,m as TOO_MANY_FILES_REJECTION,T as acceptPropAsAcceptAttr,h as allFilesAccepted,x as canUseFileSystemAccessAPI,E as composeEventHandlers,v as fileAccepted,g as fileMatchSize,y as getInvalidTypeRejectionErr,d as getTooLargeRejectionErr,b as getTooSmallRejectionErr,z as isAbort,j as isEvtWithFiles,D as isExt,A as isIeOrEdge,M as isMIMEType,w as isPropagationStopped,I as isSecurityError,S as onDocumentDragOver,P as pickerOptionsFromAccept};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"../../../_virtual/index6.js";import t,{useContext as n,createElement as r,useRef as o}from"react";import s from"../../@emotion/stylis/dist/stylis.browser.esm.js";import i from"../../@emotion/unitless/dist/unitless.browser.esm.js";import a from"../../@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js";import c from"../../../_virtual/hoist-non-react-statics.cjs.js";function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},d=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!e.typeOf(t)},h=Object.freeze([]),p=Object.freeze({});function f(e){return"function"==typeof e}function m(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function y(e){return e&&"string"==typeof e.styledComponentId}var v="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),w="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function b(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(b.apply(void 0,[w[e]].concat(n)).trim())}var _=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),A=new Map,C=new Map,N=1,I=function(e){if(A.has(e))return A.get(e);for(;C.has(N);)N++;var t=N++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&E(16,""+t),A.set(e,t),C.set(t,e),t},P=function(e){return C.get(e)},R=function(e,t){t>=N&&(N=t+1),A.set(e,t),C.set(t,e)},j="style["+v+'][data-styled-version="5.3.11"]',O=new RegExp("^"+v+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},T=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(O);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(R(u,c),D(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},k=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(v))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(v,"active"),r.setAttribute("data-styled-version","5.3.11");var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},x=function(){function e(e){var t=this.element=k(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=k(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),V=g,F={isServer:!g,useCSSOMInjection:!S},L=function(){function e(e,t,n){void 0===e&&(e=p),void 0===t&&(t={}),this.options=u({},F,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&g&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(j),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(v)&&(T(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(u({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new B(o):r?new x(o):new z(o),new _(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(I(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=P(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=v+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),M=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace(M,"$1-$2")}var q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return q(5381,e)};var H=$("5.3.11"),U=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(f(n)&&!y(n))return!1}return!0}(e),this.componentId=t,this.baseHash=q(H,t),this.baseStyle=n,L.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var s=ae(this.rules,e,t,n).join(""),i=Y(q(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=q(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=q(u,h+d));else if(h){var p=ae(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=q(u,f+d),l+=f}}if(l){var m=Y(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),W=/^\s*\/\/.*$/gm,Z=[":","[",".","#"];var J=t.createContext();J.Consumer;var X=t.createContext(),K=(X.Consumer,new L),Q=function(){var e,t,n,r,o=p,i=o.options,a=void 0===i?p:i,c=o.plugins,u=void 0===c?h:c,l=new s(a),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){d.push(e)}),m=function(n,o,s){return 0===o&&-1!==Z.indexOf(s[t.length])||s.match(r)?n:"."+e};function y(o,s,i,a){void 0===a&&(a="&");var c=o.replace(W,""),u=s&&i?i+" "+s+" { "+c+" }":c;return e=a,t=s,n=new RegExp("\\"+t+"\\b","g"),r=new RegExp("(\\"+t+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,r,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(n,m))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),y.hash=u.length?u.reduce(function(e,t){return t.name||E(15),q(e,t.name)},5381).toString():"",y}();var ee=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Q);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return E(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Q),this.name+e.hash},e}(),te=/([A-Z])/,ne=/([A-Z])/g,re=/^ms-/,oe=function(e){return"-"+e.toLowerCase()};function se(e){return te.test(e)?e.replace(ne,oe).replace(re,"-ms-"):e}var ie=function(e){return null==e||!1===e||""===e};function ae(t,n,r,o){if(Array.isArray(t)){for(var s,a=[],c=0,u=t.length;c<u;c+=1)""!==(s=ae(t[c],n,r,o))&&(Array.isArray(s)?a.push.apply(a,s):a.push(s));return a}if(ie(t))return"";if(y(t))return"."+t.styledComponentId;if(f(t)){if("function"!=typeof(h=t)||h.prototype&&h.prototype.isReactComponent||!n)return t;var l=t(n);return"production"!==process.env.NODE_ENV&&e.isElement(l)&&console.warn(m(t)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),ae(l,n,r,o)}var h;return t instanceof ee?r?(t.inject(r,o),t.getName(o)):t:d(t)?function e(t,n){var r,o,s=[];for(var a in t)t.hasOwnProperty(a)&&!ie(t[a])&&(Array.isArray(t[a])&&t[a].isCss||f(t[a])?s.push(se(a)+":",t[a],";"):d(t[a])?s.push.apply(s,e(t[a],a)):s.push(se(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in i||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(s,["}"]):s}(t):t.toString()}var ce=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ue(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return f(e)||d(e)?ce(ae(l(h,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ce(ae(l(e,n)))}var le=/invalid hook call/i,de=new Set,he=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pe=/(^-|-$)/g;function fe(e){return e.replace(he,"-").replace(pe,"")}function me(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ye=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ve=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ge(e,t,n){var r=e[n];ye(t)&&ye(r)?Se(r,t):e[n]=t}function Se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ye(i))for(var a in i)ve(a)&&ge(e,i[a],a)}return e}var we=t.createContext();we.Consumer;var be={};function Ee(e,s,i){var l=y(e),d=!me(e),v=s.attrs,g=void 0===v?h:v,S=s.componentId,w=void 0===S?function(e,t){var n="string"!=typeof e?"sc":fe(e);be[n]=(be[n]||0)+1;var r=n+"-"+function(e){return Y($(e)>>>0)}("5.3.11"+n+be[n]);return t?t+"-"+r:r}(s.displayName,s.parentComponentId):S,b=s.displayName,E=void 0===b?function(e){return me(e)?"styled."+e:"Styled("+m(e)+")"}(e):b,_=s.displayName&&s.componentId?fe(s.displayName)+"-"+s.componentId:s.componentId||w,A=l&&e.attrs?Array.prototype.concat(e.attrs,g).filter(Boolean):g,C=s.shouldForwardProp;l&&e.shouldForwardProp&&(C=s.shouldForwardProp?function(t,n,r){return e.shouldForwardProp(t,n,r)&&s.shouldForwardProp(t,n,r)}:e.shouldForwardProp);var N,I=new U(i,_,l?e.componentStyle:void 0),P=I.isStatic&&0===g.length,R=function(e,t){return function(e,t,o,s){var i=e.attrs,c=e.componentStyle,l=e.defaultProps,d=e.foldedComponentIds,h=e.shouldForwardProp,m=e.styledComponentId,y=e.target,v=function(e,t,n){void 0===e&&(e=p);var r=u({},t,{theme:e}),o={};return n.forEach(function(e){var t,n,s,i=e;for(t in f(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t]}),[r,o]}(function(e,t,n){return void 0===n&&(n=p),e.theme!==n.theme&&e.theme||t||n.theme}(t,n(we),l)||p,t,i),g=v[0],S=v[1],w=function(e,t,r,o){var s=n(J)||K,i=n(X)||Q,a=t?e.generateAndInjectStyles(p,s,i):e.generateAndInjectStyles(r,s,i);return"production"!==process.env.NODE_ENV&&!t&&o&&o(a),a}(c,s,g,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=o,E=S.$as||t.$as||S.as||t.as||y,_=me(E),A=S!==t?u({},t,{},S):t,C={};for(var N in A)"$"!==N[0]&&"as"!==N&&("forwardedAs"===N?C.as=A[N]:(h?h(N,a,E):!_||a(N))&&(C[N]=A[N]));return t.style&&S.style!==t.style&&(C.style=u({},t.style,{},S.style)),C.className=Array.prototype.concat(d,m,w!==m?w:null,t.className,S.className).filter(Boolean).join(" "),C.ref=b,r(E,C)}(N,e,t,P)};return R.displayName=E,(N=t.forwardRef(R)).attrs=A,N.componentStyle=I,N.displayName=E,N.shouldForwardProp=C,N.foldedComponentIds=l?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):h,N.styledComponentId=_,N.target=l?e.target:e,N.withComponent=function(e){var t=s.componentId,n=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,["componentId"]),r=t&&t+"-"+(me(e)?e:fe(m(e)));return Ee(e,u({},n,{attrs:A,componentId:r}),i)},Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=l?Se({},e.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var s=!0;console.error=function(e){if(le.test(e))s=!1,de.delete(n);else{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];r.apply(void 0,[e].concat(o))}},o(),s&&!de.has(n)&&(console.warn(n),de.add(n))}catch(e){le.test(e.message)&&de.delete(n)}finally{console.error=r}}}(E,_),N.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(E,_)),Object.defineProperty(N,"toString",{value:function(){return"."+N.styledComponentId}}),d&&c(N,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),N}var _e=function(t){return function t(n,r,o){if(void 0===o&&(o=p),!e.isValidElementType(r))return E(1,String(r));var s=function(){return n(r,o,ue.apply(void 0,arguments))};return s.withConfig=function(e){return t(n,r,u({},o,{},e))},s.attrs=function(e){return t(n,r,u({},o,{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s}(Ee,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){_e[e]=_e(e)}),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);export{J as StyleSheetContext,we as ThemeContext,ue as css,_e as default,y as isStyledComponent};
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"../../tslib/tslib.es6.js";import n from"../../@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js";import o,{createElement as r}from"react";import s from"../../@emotion/unitless/dist/emotion-unitless.esm.js";import{RULESET as i}from"../../stylis/src/Enum.js";import{prefixer as a,middleware as c,rulesheet as u}from"../../stylis/src/Middleware.js";import{stringify as l,serialize as p}from"../../stylis/src/Serializer.js";import{compile as d}from"../../stylis/src/Parser.js";var h="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",f="active",m="data-styled-version",y="6.3.8",v="/*!sc*/\n",g="undefined"!=typeof window&&"undefined"!=typeof document,S=void 0===o.createContext,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),b=/invalid hook call/i,C=new Set,N=function(e,n){if("production"!==process.env.NODE_ENV){if(S)return;var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(e).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",i=console.error;try{var a=!0;console.error=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];b.test(e)?(a=!1,C.delete(s)):i.apply(void 0,t([e],n,!1))},"function"==typeof o.useState&&o.useState(null),a&&!C.has(s)&&(console.warn(s),C.add(s))}catch(e){b.test(e.message)&&C.delete(s)}finally{console.error=i}}},E=Object.freeze([]),A=Object.freeze({});var P=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),_=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function D(e){return e.replace(_,"-").replace(I,"")}var O=/(a)(d)/gi,T=function(e){return String.fromCharCode(e+(e>25?39:97))};function R(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return(T(t%52)+n).replace(O,"$1-$2")}var j,x=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},k=function(e){return x(5381,e)};function F(e){return R(k(e)>>>0)}function M(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function V(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var B="function"==typeof Symbol&&Symbol.for,z=B?Symbol.for("react.memo"):60115,L=B?Symbol.for("react.forward_ref"):60112,$={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},q=((j={})[L]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},j[z]=Y,j);function H(e){return("type"in(t=e)&&t.type.$$typeof)===z?Y:"$$typeof"in e?q[e.$$typeof]:$;var t}var W=Object.defineProperty,U=Object.getOwnPropertyNames,Z=Object.getOwnPropertySymbols,J=Object.getOwnPropertyDescriptor,K=Object.getPrototypeOf,Q=Object.prototype;function X(e,t,n){if("string"!=typeof t){if(Q){var o=K(t);o&&o!==Q&&X(e,o,n)}var r=U(t);Z&&(r=r.concat(Z(t)));for(var s=H(e),i=H(t),a=0;a<r.length;++a){var c=r[a];if(!(c in G||n&&n[c]||i&&c in i||s&&c in s)){var u=J(t,c);try{W(e,c,u)}catch(e){}}}}return e}function ee(e){return"function"==typeof e}function te(e){return"object"==typeof e&&"styledComponentId"in e}function ne(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function oe(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function re(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e,t,n){if(void 0===n&&(n=!1),!n&&!re(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=se(e[o],t[o]);else if(re(t))for(var o in t)e[o]=se(e[o],t[o]);return e}function ie(e,t){Object.defineProperty(e,"toString",{value:t})}var ae="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ue(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,t([ae[e]],n,!1)).trim())}var le=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw ue(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(v);return t},e}(),pe=1<<30,de=new Map,he=new Map,fe=1,me=function(e){if(de.has(e))return de.get(e);for(;he.has(fe);)fe++;var t=fe++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>pe))throw ue(16,"".concat(t));return de.set(e,t),he.set(t,e),t},ye=function(e,t){fe=t+1,de.set(e,t),he.set(t,e)},ve="style[".concat(h,"][").concat(m,'="').concat(y,'"]'),ge=new RegExp("^".concat(h,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o)},we=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(v),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(ge);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ye(l,u),Se(e,l,c[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},be=function(e){for(var t=document.querySelectorAll(ve),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(h)!==f&&(we(e,r),r.parentNode&&r.parentNode.removeChild(r))}};var Ce=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(h,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(h,f),o.setAttribute(m,y);var i="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ne=function(){function e(e){this.element=Ce(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw ue(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ee=function(){function e(e){this.element=Ce(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ae=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Pe=g,_e={isServer:!g,useCSSOMInjection:!w},Ie=function(){function t(t,n,o){void 0===t&&(t=A),void 0===n&&(n={});var r=this;this.options=e(e({},_e),t),this.gs=n,this.names=new Map(o),this.server=!!t.isServer,!this.server&&g&&Pe&&(Pe=!1,be(this)),ie(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return he.get(e)}(n);if(void 0===r)return"continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var a="".concat(h,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(v)},s=0;s<n;s++)r(s);return o}(r)})}return t.registerId=function(e){return me(e)},t.prototype.rehydrate=function(){!this.server&&g&&be(this)},t.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new t(e(e({},this.options),n),this.gs,o&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ae(n):t?new Ne(n):new Ee(n)}(this.options),new le(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),De=/&/g,Oe=47;function Te(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,o=0,r=!1,s=0;s<t;s++){var i=e.charCodeAt(s);if(0!==o||r||i!==Oe||42!==e.charCodeAt(s+1))if(r)42===i&&e.charCodeAt(s+1)===Oe&&(r=!1,s++);else if(34!==i&&39!==i||0!==s&&92===e.charCodeAt(s-1)){if(0===o)if(123===i)n++;else if(125===i&&--n<0)return!0}else 0===o?o=i:o===i&&(o=0);else r=!0,s++}return 0!==n||0!==o}function Re(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Re(e.children,t)),e})}var je=new Ie,xe=function(){var e,t,n,o=A,r=o.options,s=void 0===r?A:r,h=o.plugins,f=void 0===h?E:h,m=function(n,o,r){return r.startsWith(t)&&r.endsWith(t)&&r.replaceAll(t,"").length>0?".".concat(e):n},y=f.slice();y.push(function(e){e.type===i&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(De,t).replace(n,m))}),s.prefix&&y.push(a),y.push(l);var v=function(o,r,i,a){void 0===r&&(r=""),void 0===i&&(i=""),void 0===a&&(a="&"),e=a,t=r,n=new RegExp("\\".concat(t,"\\b"),"g");var l=function(e){if(!Te(e))return e;for(var t=e.length,n="",o=0,r=0,s=0,i=!1,a=0;a<t;a++){var c=e.charCodeAt(a);if(0!==s||i||c!==Oe||42!==e.charCodeAt(a+1))if(i)42===c&&e.charCodeAt(a+1)===Oe&&(i=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===s)if(123===c)r++;else if(125===c){if(--r<0){for(var u=a+1;u<t;){var l=e.charCodeAt(u);if(59===l||10===l)break;u++}u<t&&59===e.charCodeAt(u)&&u++,r=0,a=u-1,o=u;continue}0===r&&(n+=e.substring(o,a+1),o=a+1)}else 59===c&&0===r&&(n+=e.substring(o,a+1),o=a+1)}else 0===s?s=c:s===c&&(s=0);else i=!0,a++}if(o<t){var p=e.substring(o);Te(p)||(n+=p)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],o=0,r=0,s=0,i=0;r<t;){var a=e.charCodeAt(r);if(34!==a&&39!==a||0!==r&&92===e.charCodeAt(r-1))if(0===s)if(40===a&&r>=3&&108==(32|e.charCodeAt(r-1))&&114==(32|e.charCodeAt(r-2))&&117==(32|e.charCodeAt(r-3)))i=1,r++;else if(i>0)41===a?i--:40===a&&i++,r++;else if(a===Oe&&r+1<t&&e.charCodeAt(r+1)===Oe){for(r>o&&n.push(e.substring(o,r));r<t&&10!==e.charCodeAt(r);)r++;o=r}else r++;else r++;else 0===s?s=a:s===a&&(s=0),r++}return 0===o?e:(o<t&&n.push(e.substring(o)),n.join(""))}(o)),h=d(i||r?"".concat(i," ").concat(r," { ").concat(l," }"):l);s.namespace&&(h=Re(h,s.namespace));var f=[];return p(h,c(y.concat(u(function(e){return f.push(e)})))),f};return v.hash=f.length?f.reduce(function(e,t){return t.name||ue(15),x(e,t.name)},5381).toString():"",v}(),ke={shouldForwardProp:void 0,styleSheet:je,stylis:xe},Fe=S?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(ke)}}:o.createContext(ke);function Me(){return S?ke:o.useContext(Fe)}Fe.Consumer,S||o.createContext(void 0);var Ve=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=xe);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ie(this,function(){throw ue(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=xe),this.name+e.hash},e}();function Be(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in s||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var ze=function(e){return e>="A"&&e<="Z"};function Le(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;ze(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var $e=function(e){return null==e||!1===e||""===e},Ge=function(e){var n=[];for(var o in e){var r=e[o];e.hasOwnProperty(o)&&!$e(r)&&(Array.isArray(r)&&r.isCss||ee(r)?n.push("".concat(Le(o),":"),r,";"):re(r)?n.push.apply(n,t(t(["".concat(o," {")],Ge(r),!1),["}"],!1)):n.push("".concat(Le(o),": ").concat(Be(o,r),";")))}return n};function Ye(e,t,n,o){if($e(e))return[];if(te(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Ve||re(r)||null===r||console.error("".concat(M(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ye(r,t,n,o)}var s;return e instanceof Ve?n?(e.inject(n,o),[e.getName(o)]):[e]:re(e)?Ge(e):Array.isArray(e)?Array.prototype.concat.apply(E,e.map(function(e){return Ye(e,t,n,o)})):[e.toString()]}var qe=k(y),He=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ee(n)&&!te(n))return!1}return!0}(e),this.componentId=t,this.baseHash=x(qe,t),this.baseStyle=n,Ie.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ne(o,this.staticRulesId);else{var r=oe(Ye(this.rules,e,t,n)),s=R(x(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}o=ne(o,s),this.staticRulesId=s}else{for(var a=x(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=x(a,l));else if(l){var p=oe(Ye(l,e,t,n));a=x(a,p+u),c+=p}}if(c){var d=R(a>>>0);if(!t.hasNameForId(this.componentId,d)){var h=n(c,".".concat(d),void 0,this.componentId);t.insertRules(this.componentId,d,h)}o=ne(o,d)}}return{className:o,css:"undefined"==typeof window?t.getTag().getGroup(me(this.componentId)):""}},e}(),We=S?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0);We.Consumer;var Ue={},Ze=new Set;function Je(t,s,i){var a=te(t),c=t,u=!V(t),l=s.attrs,p=void 0===l?E:l,d=s.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":D(e);Ue[n]=(Ue[n]||0)+1;var o="".concat(n,"-").concat(F(y+n+Ue[n]));return t?"".concat(t,"-").concat(o):o}(s.displayName,s.parentComponentId):d,f=s.displayName,m=void 0===f?function(e){return V(e)?"styled.".concat(e):"Styled(".concat(M(e),")")}(t):f,v=s.displayName&&s.componentId?"".concat(D(s.displayName),"-").concat(s.componentId):s.componentId||h,g=a&&c.attrs?c.attrs.concat(p).filter(Boolean):p,w=s.shouldForwardProp;if(a&&c.shouldForwardProp){var b=c.shouldForwardProp;if(s.shouldForwardProp){var C=s.shouldForwardProp;w=function(e,t){return b(e,t)&&C(e,t)}}else w=b}var _=new He(i,v,a?c.componentStyle:void 0);function I(t,s){return function(t,s,i){var a=t.attrs,c=t.componentStyle,u=t.defaultProps,l=t.foldedComponentIds,p=t.styledComponentId,d=t.target,h=S?void 0:o.useContext(We),f=Me(),m=t.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(p);var y=function(e,t,n){return void 0===n&&(n=A),e.theme!==n.theme&&e.theme||t||n.theme}(s,h,u)||A,v=function(t,n,o){for(var r,s=e(e({},n),{className:void 0,theme:o}),i=0;i<t.length;i+=1){var a=ee(r=t[i])?r(s):r;for(var c in a)"className"===c?s.className=ne(s.className,a[c]):"style"===c?s.style=e(e({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=ne(s.className,n.className)),s}(a,s,y),g=v.as||d,w={};for(var b in v)void 0===v[b]||"$"===b[0]||"as"===b||"theme"===b&&v.theme===y||("forwardedAs"===b?w.as=v.forwardedAs:m&&!m(b,g)||(w[b]=v[b],m||"development"!==process.env.NODE_ENV||n(b)||Ze.has(b)||!P.has(g)||(Ze.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var C=function(e,t){var n=Me(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(r.className),r}(c,v),N=C.className,E=C.css;"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(N);var _=ne(l,p);N&&(_+=" "+N),v.className&&(_+=" "+v.className),w[V(g)&&!P.has(g)?"class":"className"]=_,i&&(w.ref=i);var I=r(g,w);return S&&E?o.createElement(o.Fragment,null,o.createElement("style",{precedence:"styled-components",href:"sc-".concat(p,"-").concat(N),children:E}),I):I}(O,t,s)}I.displayName=m;var O=o.forwardRef(I);return O.attrs=g,O.componentStyle=_,O.displayName=m,O.shouldForwardProp=w,O.foldedComponentIds=a?ne(c.foldedComponentIds,c.styledComponentId):"",O.styledComponentId=v,O.target=a?c.target:t,Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)se(e,r[o],!0);return e}({},c.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(N(m,v),O.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={}}}}(m,v)),ie(O,function(){return".".concat(O.styledComponentId)}),u&&X(O,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),O}function Ke(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var Qe=function(e){return Object.assign(e,{isCss:!0})};function Xe(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(ee(e)||re(e))return Qe(Ye(Ke(E,t([e],n,!0))));var r=e;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ye(r):Qe(Ye(Ke(r,n)))}function et(n,o,r){if(void 0===r&&(r=A),!o)throw ue(1,o);var s=function(e){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,Xe.apply(void 0,t([e],s,!1)))};return s.attrs=function(t){return et(n,o,e(e({},r),{attrs:Array.prototype.concat(r.attrs,t).filter(Boolean)}))},s.withConfig=function(t){return et(n,o,e(e({},r),t))},s}var tt=function(e){return et(Je,e)},nt=tt;P.forEach(function(e){nt[e]=tt(e)}),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var ot="__sc-".concat(h,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[ot]||(window[ot]=0),1===window[ot]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[ot]+=1);export{Fe as StyleSheetContext,We as ThemeContext,Xe as css,nt as default,te as isStyledComponent,nt as styled,y as version};
|
|
2
2
|
//# sourceMappingURL=styled-components.browser.esm.js.map
|