react-shadow
Advanced tools
Comparing version 20.3.0 to 20.4.0
@@ -1,2 +0,2 @@ | ||
import e,{useRef as r,useEffect as t,createContext as n,forwardRef as o,useState as a,useLayoutEffect as c}from"react";import{renderToString as l}from"react-dom/server";import{CacheProvider as i}from"@emotion/react";import u from"@emotion/cache";import{renderStylesToString as s}from"@emotion/server";import{createPortal as f}from"react-dom";import p from"prop-types";var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e,r){return e(r={exports:{}},r.exports),r.exports}var m=y((function(e){!function(r){var t=function(e,r,n){if(!i(r)||s(r)||f(r)||p(r)||l(r))return r;var o,a=0,c=0;if(u(r))for(o=[],c=r.length;a<c;a++)o.push(t(e,r[a],n));else for(var d in o={},r)Object.prototype.hasOwnProperty.call(r,d)&&(o[e(d,n)]=t(e,r[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,r){return r?r.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var r=n(e);return r.substr(0,1).toUpperCase()+r.substr(1)},a=function(e,r){return function(e,r){var t=(r=r||{}).separator||"_",n=r.split||/(?=[A-Z])/;return e.split(n).join(t)}(e,r).toLowerCase()},c=Object.prototype.toString,l=function(e){return"function"==typeof e},i=function(e){return e===Object(e)},u=function(e){return"[object Array]"==c.call(e)},s=function(e){return"[object Date]"==c.call(e)},f=function(e){return"[object RegExp]"==c.call(e)},p=function(e){return"[object Boolean]"==c.call(e)},d=function(e){return(e-=0)==e},y=function(e,r){var t=r&&"process"in r?r.process:r;return"function"!=typeof t?e:function(r,n){return t(r,e,n)}},m={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,r){return t(y(n,r),e)},decamelizeKeys:function(e,r){return t(y(a,r),e,r)},pascalizeKeys:function(e,r){return t(y(o,r),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:r.humps=m}(d)})).decamelize;var h=function(e){if(Array.isArray(e))return e};var v=function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,l=e[Symbol.iterator]();!(n=(c=l.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return t}};var g=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n};var b=function(e,r){if(e){if("string"==typeof e)return g(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,r):void 0}};var S=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.")};var w=function(e,r){return h(e)||v(e,r)||b(e,r)||S()},O=y((function(e){function r(){return e.exports=r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,arguments)}e.exports=r}));var j=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o};var x=function(e,r){if(null==e)return{};var t,n,o=j(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o};var E=n(null);function z(r){var t=r.children,n=x(r,["children"]);return"string"!=typeof t&&(t=l(t)),e.createElement("template",O({},n,{dangerouslySetInnerHTML:{__html:t}}))}function F(e){var r=e.root,t=e.children;return f(t,r)}function P(n){var l=o((function(o,l){var i,u,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,d=o.ssr,y=o.children,m=x(o,["mode","delegatesFocus","styleSheets","ssr","children"]),h=(u=r((i=l)&&i.current),t((function(){i&&(i.current=u.current)}),[i]),u),v=a(null),g=w(v,2),b=g[0],S=g[1],j="node_".concat(s).concat(f);return c((function(){if(h.current)try{if("function"==typeof l&&l(h.current),d){var e=h.current.shadowRoot;return void S(e)}var r=h.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(r.adoptedStyleSheets=p),S(r)}catch(e){!function(e){var r=e.error,t=e.styleSheets,n=e.root;switch(r.name){case"NotSupportedError":t.length>0&&(n.adoptedStyleSheets=t);break;default:throw r}}({error:e,styleSheets:p,root:b})}}),[l,h,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,O({key:j,ref:h},m),(b||d)&&e.createElement(E.Provider,{value:b},d?e.createElement(z,{shadowroot:"open"},n.render({root:b,ssr:d,children:y})):e.createElement(F,{root:b},n.render({root:b,ssr:d,children:y})))))}));return l.propTypes={mode:p.oneOf(["open","closed"]),delegatesFocus:p.bool,styleSheets:p.arrayOf(p.instanceOf(globalThis.CSSStyleSheet)),ssr:p.bool,children:p.node},l.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},l}z.propTypes={children:p.oneOfType([p.string,p.node])},z.defaultProps={children:""},F.propTypes={root:p.object.isRequired,children:p.node},F.defaultProps={children:null};var T=new Map;function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=m(n,{separator:"-"}),a="".concat(r,"-").concat(o);return T.has(a)||T.set(a,P({tag:o,render:t})),T.get(a)}})}A();var C=new WeakMap;function k(r){return s(l(e.createElement(e.Fragment,null,r)))}var I=A({},"emotion",(function(r){var t=r.ssr,n=r.root,o=r.children,a=C.get(n)||function(){var e=u({container:n,key:"react-shadow"});return C.set(n,e),e}();return t?e.createElement(e.Fragment,null,e.createElement("style",{type:"text/css"},k(o)),o):e.createElement(i,{value:a},e.createElement(e.Fragment,null,o))}));export default I;export{k as getStyles}; | ||
import e,{useRef as r,useEffect as t,createContext as n,forwardRef as o,useState as a,useLayoutEffect as c}from"react";import{renderToString as l}from"react-dom/server";import{CacheProvider as i}from"@emotion/react";import u from"@emotion/cache";import{renderStylesToString as s}from"@emotion/server";import{createPortal as f}from"react-dom";import p from"prop-types";var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e,r){return e(r={exports:{}},r.exports),r.exports}var m=y((function(e){!function(r){var t=function(e,r,n){if(!i(r)||s(r)||f(r)||p(r)||l(r))return r;var o,a=0,c=0;if(u(r))for(o=[],c=r.length;a<c;a++)o.push(t(e,r[a],n));else for(var d in o={},r)Object.prototype.hasOwnProperty.call(r,d)&&(o[e(d,n)]=t(e,r[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,r){return r?r.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var r=n(e);return r.substr(0,1).toUpperCase()+r.substr(1)},a=function(e,r){return function(e,r){var t=(r=r||{}).separator||"_",n=r.split||/(?=[A-Z])/;return e.split(n).join(t)}(e,r).toLowerCase()},c=Object.prototype.toString,l=function(e){return"function"==typeof e},i=function(e){return e===Object(e)},u=function(e){return"[object Array]"==c.call(e)},s=function(e){return"[object Date]"==c.call(e)},f=function(e){return"[object RegExp]"==c.call(e)},p=function(e){return"[object Boolean]"==c.call(e)},d=function(e){return(e-=0)==e},y=function(e,r){var t=r&&"process"in r?r.process:r;return"function"!=typeof t?e:function(r,n){return t(r,e,n)}},m={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,r){return t(y(n,r),e)},decamelizeKeys:function(e,r){return t(y(a,r),e,r)},pascalizeKeys:function(e,r){return t(y(o,r),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:r.humps=m}(d)})).decamelize;var h=function(e){if(Array.isArray(e))return e};var v=function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,l=e[Symbol.iterator]();!(n=(c=l.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return t}};var g=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n};var b=function(e,r){if(e){if("string"==typeof e)return g(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,r):void 0}};var S=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.")};var w=function(e,r){return h(e)||v(e,r)||b(e,r)||S()},O=y((function(e){function r(){return e.exports=r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,arguments)}e.exports=r}));var j=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o};var x=function(e,r){if(null==e)return{};var t,n,o=j(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o};var E=n(null);function z(r){var t=r.children,n=x(r,["children"]);return"string"!=typeof t&&(t=l(t)),e.createElement("template",O({},n,{dangerouslySetInnerHTML:{__html:t}}))}function F(e){var r=e.root,t=e.children;return f(t,r)}function P(n){var l=o((function(o,l){var i,u,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,d=o.ssr,y=o.children,m=x(o,["mode","delegatesFocus","styleSheets","ssr","children"]),h=(u=r((i=l)&&i.current),t((function(){i&&(i.current=u.current)}),[i]),u),v=a(null),g=w(v,2),b=g[0],S=g[1],j="node_".concat(s).concat(f);return c((function(){if(h.current)try{if("function"==typeof l&&l(h.current),d){var e=h.current.shadowRoot;return void S(e)}var r=h.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(r.adoptedStyleSheets=p),S(r)}catch(e){!function(e){var r=e.error,t=e.styleSheets,n=e.root;switch(r.name){case"NotSupportedError":t.length>0&&(n.adoptedStyleSheets=t);break;default:throw r}}({error:e,styleSheets:p,root:b})}}),[l,h,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,O({key:j,ref:h},m),(b||d)&&e.createElement(E.Provider,{value:b},d?e.createElement(z,{shadowroot:s,shadowrootmode:s},n.render({root:b,ssr:d,children:y})):e.createElement(F,{root:b},n.render({root:b,ssr:d,children:y})))))}));return l.propTypes={mode:p.oneOf(["open","closed"]),delegatesFocus:p.bool,styleSheets:p.arrayOf(p.instanceOf(globalThis.CSSStyleSheet)),ssr:p.bool,children:p.node},l.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},l}z.propTypes={children:p.oneOfType([p.string,p.node])},z.defaultProps={children:""},F.propTypes={root:p.object.isRequired,children:p.node},F.defaultProps={children:null};var T=new Map;function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=m(n,{separator:"-"}),a="".concat(r,"-").concat(o);return T.has(a)||T.set(a,P({tag:o,render:t})),T.get(a)}})}A();var C=new WeakMap;function k(r){return s(l(e.createElement(e.Fragment,null,r)))}var I=A({},"emotion",(function(r){var t=r.ssr,n=r.root,o=r.children,a=C.get(n)||function(){var e=u({container:n,key:"react-shadow"});return C.set(n,e),e}();return t?e.createElement(e.Fragment,null,e.createElement("style",{type:"text/css"},k(o)),o):e.createElement(i,{value:a},e.createElement(e.Fragment,null,o))}));export default I;export{k as getStyles}; | ||
//# sourceMappingURL=emotion-ssr.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom/server"),r=require("@emotion/react"),n=require("@emotion/cache"),o=require("@emotion/server"),a=require("react-dom"),u=require("prop-types");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(e),i=l(n),s=l(u),f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e,t){return e(t={exports:{}},t.exports),t.exports}var p=d((function(e){!function(t){var r=function(e,t,n){if(!c(t)||s(t)||f(t)||d(t)||l(t))return t;var o,a=0,u=0;if(i(t))for(o=[],u=t.length;a<u;a++)o.push(r(e,t[a],n));else for(var p in o={},t)Object.prototype.hasOwnProperty.call(t,p)&&(o[e(p,n)]=r(e,t[p],n));return o},n=function(e){return p(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,l=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},i=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},d=function(e){return"[object Boolean]"==u.call(e)},p=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(a,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(f)})).decamelize;var y=function(e){if(Array.isArray(e))return e};var h=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(n=(u=l.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}};var v=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var m=function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}};var g=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.")};var b=function(e,t){return y(e)||h(e,t)||m(e,t)||g()},S=d((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var w=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var O=function(e,t){if(null==e)return{};var r,n,o=w(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var j=e.createContext(null);function x(e){var r=e.children,n=O(e,["children"]);return"string"!=typeof r&&(r=t.renderToString(r)),c.default.createElement("template",S({},n,{dangerouslySetInnerHTML:{__html:r}}))}function E(e){var t=e.root,r=e.children;return a.createPortal(r,t)}function P(t){var r=e.forwardRef((function(r,n){var o,a,u=r.mode,l=r.delegatesFocus,i=r.styleSheets,s=r.ssr,f=r.children,d=O(r,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(o=n,a=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=a.current)}),[o]),a),y=e.useState(null),h=b(y,2),v=h[0],m=h[1],g="node_".concat(u).concat(l);return e.useLayoutEffect((function(){if(p.current)try{if("function"==typeof n&&n(p.current),s){var e=p.current.shadowRoot;return void m(e)}var t=p.current.attachShadow({mode:u,delegatesFocus:l});i.length>0&&(t.adoptedStyleSheets=i),m(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:i,root:v})}}),[n,p,i]),c.default.createElement(c.default.Fragment,null,c.default.createElement(t.tag,S({key:g,ref:p},d),(v||s)&&c.default.createElement(j.Provider,{value:v},s?c.default.createElement(x,{shadowroot:"open"},t.render({root:v,ssr:s,children:f})):c.default.createElement(E,{root:v},t.render({root:v,ssr:s,children:f})))))}));return r.propTypes={mode:s.default.oneOf(["open","closed"]),delegatesFocus:s.default.bool,styleSheets:s.default.arrayOf(s.default.instanceOf(globalThis.CSSStyleSheet)),ssr:s.default.bool,children:s.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}x.propTypes={children:s.default.oneOfType([s.default.string,s.default.node])},x.defaultProps={children:""},E.propTypes={root:s.default.object.isRequired,children:s.default.node},E.defaultProps={children:null};var T=new Map;function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=p(n,{separator:"-"}),a="".concat(t,"-").concat(o);return T.has(a)||T.set(a,P({tag:o,render:r})),T.get(a)}})}z();var F=new WeakMap;function q(e){return o.renderStylesToString(t.renderToString(c.default.createElement(c.default.Fragment,null,e)))}var A=z({},"emotion",(function(e){var t=e.ssr,n=e.root,o=e.children,a=F.get(n)||function(){var e=i.default({container:n,key:"react-shadow"});return F.set(n,e),e}();return t?c.default.createElement(c.default.Fragment,null,c.default.createElement("style",{type:"text/css"},q(o)),o):c.default.createElement(r.CacheProvider,{value:a},c.default.createElement(c.default.Fragment,null,o))}));exports.default=A,exports.getStyles=q; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom/server"),r=require("@emotion/react"),n=require("@emotion/cache"),o=require("@emotion/server"),a=require("react-dom"),u=require("prop-types");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(e),i=l(n),s=l(u),f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e,t){return e(t={exports:{}},t.exports),t.exports}var p=d((function(e){!function(t){var r=function(e,t,n){if(!c(t)||s(t)||f(t)||d(t)||l(t))return t;var o,a=0,u=0;if(i(t))for(o=[],u=t.length;a<u;a++)o.push(r(e,t[a],n));else for(var p in o={},t)Object.prototype.hasOwnProperty.call(t,p)&&(o[e(p,n)]=r(e,t[p],n));return o},n=function(e){return p(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,l=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},i=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},d=function(e){return"[object Boolean]"==u.call(e)},p=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(a,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(f)})).decamelize;var y=function(e){if(Array.isArray(e))return e};var h=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(n=(u=l.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}};var v=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var m=function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}};var g=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.")};var b=function(e,t){return y(e)||h(e,t)||m(e,t)||g()},S=d((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var w=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var O=function(e,t){if(null==e)return{};var r,n,o=w(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var j=e.createContext(null);function x(e){var r=e.children,n=O(e,["children"]);return"string"!=typeof r&&(r=t.renderToString(r)),c.default.createElement("template",S({},n,{dangerouslySetInnerHTML:{__html:r}}))}function E(e){var t=e.root,r=e.children;return a.createPortal(r,t)}function P(t){var r=e.forwardRef((function(r,n){var o,a,u=r.mode,l=r.delegatesFocus,i=r.styleSheets,s=r.ssr,f=r.children,d=O(r,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(o=n,a=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=a.current)}),[o]),a),y=e.useState(null),h=b(y,2),v=h[0],m=h[1],g="node_".concat(u).concat(l);return e.useLayoutEffect((function(){if(p.current)try{if("function"==typeof n&&n(p.current),s){var e=p.current.shadowRoot;return void m(e)}var t=p.current.attachShadow({mode:u,delegatesFocus:l});i.length>0&&(t.adoptedStyleSheets=i),m(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:i,root:v})}}),[n,p,i]),c.default.createElement(c.default.Fragment,null,c.default.createElement(t.tag,S({key:g,ref:p},d),(v||s)&&c.default.createElement(j.Provider,{value:v},s?c.default.createElement(x,{shadowroot:u,shadowrootmode:u},t.render({root:v,ssr:s,children:f})):c.default.createElement(E,{root:v},t.render({root:v,ssr:s,children:f})))))}));return r.propTypes={mode:s.default.oneOf(["open","closed"]),delegatesFocus:s.default.bool,styleSheets:s.default.arrayOf(s.default.instanceOf(globalThis.CSSStyleSheet)),ssr:s.default.bool,children:s.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}x.propTypes={children:s.default.oneOfType([s.default.string,s.default.node])},x.defaultProps={children:""},E.propTypes={root:s.default.object.isRequired,children:s.default.node},E.defaultProps={children:null};var T=new Map;function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=p(n,{separator:"-"}),a="".concat(t,"-").concat(o);return T.has(a)||T.set(a,P({tag:o,render:r})),T.get(a)}})}z();var F=new WeakMap;function q(e){return o.renderStylesToString(t.renderToString(c.default.createElement(c.default.Fragment,null,e)))}var A=z({},"emotion",(function(e){var t=e.ssr,n=e.root,o=e.children,a=F.get(n)||function(){var e=i.default({container:n,key:"react-shadow"});return F.set(n,e),e}();return t?c.default.createElement(c.default.Fragment,null,c.default.createElement("style",{type:"text/css"},q(o)),o):c.default.createElement(r.CacheProvider,{value:a},c.default.createElement(c.default.Fragment,null,o))}));exports.default=A,exports.getStyles=q; | ||
//# sourceMappingURL=emotion-ssr.js.map |
@@ -1,2 +0,2 @@ | ||
import e,{useRef as r,useEffect as t,createContext as n,forwardRef as o,useState as a,useLayoutEffect as c}from"react";import{CacheProvider as i}from"@emotion/react";import u from"@emotion/cache";import{createPortal as l}from"react-dom";import{renderToString as s}from"react-dom/server";import f from"prop-types";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e,r){return e(r={exports:{}},r.exports),r.exports}var y=d((function(e){!function(r){var t=function(e,r,n){if(!u(r)||s(r)||f(r)||p(r)||i(r))return r;var o,a=0,c=0;if(l(r))for(o=[],c=r.length;a<c;a++)o.push(t(e,r[a],n));else for(var d in o={},r)Object.prototype.hasOwnProperty.call(r,d)&&(o[e(d,n)]=t(e,r[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,r){return r?r.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var r=n(e);return r.substr(0,1).toUpperCase()+r.substr(1)},a=function(e,r){return function(e,r){var t=(r=r||{}).separator||"_",n=r.split||/(?=[A-Z])/;return e.split(n).join(t)}(e,r).toLowerCase()},c=Object.prototype.toString,i=function(e){return"function"==typeof e},u=function(e){return e===Object(e)},l=function(e){return"[object Array]"==c.call(e)},s=function(e){return"[object Date]"==c.call(e)},f=function(e){return"[object RegExp]"==c.call(e)},p=function(e){return"[object Boolean]"==c.call(e)},d=function(e){return(e-=0)==e},y=function(e,r){var t=r&&"process"in r?r.process:r;return"function"!=typeof t?e:function(r,n){return t(r,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,r){return t(y(n,r),e)},decamelizeKeys:function(e,r){return t(y(a,r),e,r)},pascalizeKeys:function(e,r){return t(y(o,r),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:r.humps=h}(p)})).decamelize;var h=function(e){if(Array.isArray(e))return e};var m=function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return t}};var v=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n};var g=function(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}};var b=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.")};var S=function(e,r){return h(e)||m(e,r)||g(e,r)||b()},w=d((function(e){function r(){return e.exports=r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,arguments)}e.exports=r}));var O=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o};var j=function(e,r){if(null==e)return{};var t,n,o=O(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o};var x=n(null);function E(r){var t=r.children,n=j(r,["children"]);return"string"!=typeof t&&(t=s(t)),e.createElement("template",w({},n,{dangerouslySetInnerHTML:{__html:t}}))}function z(e){var r=e.root,t=e.children;return l(t,r)}function P(n){var i=o((function(o,i){var u,l,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,d=o.ssr,y=o.children,h=j(o,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(l=r((u=i)&&u.current),t((function(){u&&(u.current=l.current)}),[u]),l),v=a(null),g=S(v,2),b=g[0],O=g[1],P="node_".concat(s).concat(f);return c((function(){if(m.current)try{if("function"==typeof i&&i(m.current),d){var e=m.current.shadowRoot;return void O(e)}var r=m.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(r.adoptedStyleSheets=p),O(r)}catch(e){!function(e){var r=e.error,t=e.styleSheets,n=e.root;switch(r.name){case"NotSupportedError":t.length>0&&(n.adoptedStyleSheets=t);break;default:throw r}}({error:e,styleSheets:p,root:b})}}),[i,m,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,w({key:P,ref:m},h),(b||d)&&e.createElement(x.Provider,{value:b},d?e.createElement(E,{shadowroot:"open"},n.render({root:b,ssr:d,children:y})):e.createElement(z,{root:b},n.render({root:b,ssr:d,children:y})))))}));return i.propTypes={mode:f.oneOf(["open","closed"]),delegatesFocus:f.bool,styleSheets:f.arrayOf(f.instanceOf(globalThis.CSSStyleSheet)),ssr:f.bool,children:f.node},i.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},i}E.propTypes={children:f.oneOfType([f.string,f.node])},E.defaultProps={children:""},z.propTypes={root:f.object.isRequired,children:f.node},z.defaultProps={children:null};var T=new Map;function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=y(n,{separator:"-"}),a="".concat(r,"-").concat(o);return T.has(a)||T.set(a,P({tag:o,render:t})),T.get(a)}})}A();var F=new WeakMap,C=A({},"emotion",(function(r){var t=r.root,n=r.children,o=F.get(t)||function(){var e=u({container:t,key:"react-shadow"});return F.set(t,e),e}();return e.createElement(i,{value:o},e.createElement(e.Fragment,null,n))}));export default C; | ||
import e,{useRef as r,useEffect as t,createContext as n,forwardRef as o,useState as a,useLayoutEffect as c}from"react";import{CacheProvider as i}from"@emotion/react";import u from"@emotion/cache";import{createPortal as l}from"react-dom";import{renderToString as s}from"react-dom/server";import f from"prop-types";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e,r){return e(r={exports:{}},r.exports),r.exports}var y=d((function(e){!function(r){var t=function(e,r,n){if(!u(r)||s(r)||f(r)||p(r)||i(r))return r;var o,a=0,c=0;if(l(r))for(o=[],c=r.length;a<c;a++)o.push(t(e,r[a],n));else for(var d in o={},r)Object.prototype.hasOwnProperty.call(r,d)&&(o[e(d,n)]=t(e,r[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,r){return r?r.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var r=n(e);return r.substr(0,1).toUpperCase()+r.substr(1)},a=function(e,r){return function(e,r){var t=(r=r||{}).separator||"_",n=r.split||/(?=[A-Z])/;return e.split(n).join(t)}(e,r).toLowerCase()},c=Object.prototype.toString,i=function(e){return"function"==typeof e},u=function(e){return e===Object(e)},l=function(e){return"[object Array]"==c.call(e)},s=function(e){return"[object Date]"==c.call(e)},f=function(e){return"[object RegExp]"==c.call(e)},p=function(e){return"[object Boolean]"==c.call(e)},d=function(e){return(e-=0)==e},y=function(e,r){var t=r&&"process"in r?r.process:r;return"function"!=typeof t?e:function(r,n){return t(r,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,r){return t(y(n,r),e)},decamelizeKeys:function(e,r){return t(y(a,r),e,r)},pascalizeKeys:function(e,r){return t(y(o,r),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:r.humps=h}(p)})).decamelize;var h=function(e){if(Array.isArray(e))return e};var m=function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return t}};var v=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n};var g=function(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}};var b=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.")};var S=function(e,r){return h(e)||m(e,r)||g(e,r)||b()},w=d((function(e){function r(){return e.exports=r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,arguments)}e.exports=r}));var O=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o};var j=function(e,r){if(null==e)return{};var t,n,o=O(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o};var x=n(null);function E(r){var t=r.children,n=j(r,["children"]);return"string"!=typeof t&&(t=s(t)),e.createElement("template",w({},n,{dangerouslySetInnerHTML:{__html:t}}))}function z(e){var r=e.root,t=e.children;return l(t,r)}function P(n){var i=o((function(o,i){var u,l,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,d=o.ssr,y=o.children,h=j(o,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(l=r((u=i)&&u.current),t((function(){u&&(u.current=l.current)}),[u]),l),v=a(null),g=S(v,2),b=g[0],O=g[1],P="node_".concat(s).concat(f);return c((function(){if(m.current)try{if("function"==typeof i&&i(m.current),d){var e=m.current.shadowRoot;return void O(e)}var r=m.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(r.adoptedStyleSheets=p),O(r)}catch(e){!function(e){var r=e.error,t=e.styleSheets,n=e.root;switch(r.name){case"NotSupportedError":t.length>0&&(n.adoptedStyleSheets=t);break;default:throw r}}({error:e,styleSheets:p,root:b})}}),[i,m,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,w({key:P,ref:m},h),(b||d)&&e.createElement(x.Provider,{value:b},d?e.createElement(E,{shadowroot:s,shadowrootmode:s},n.render({root:b,ssr:d,children:y})):e.createElement(z,{root:b},n.render({root:b,ssr:d,children:y})))))}));return i.propTypes={mode:f.oneOf(["open","closed"]),delegatesFocus:f.bool,styleSheets:f.arrayOf(f.instanceOf(globalThis.CSSStyleSheet)),ssr:f.bool,children:f.node},i.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},i}E.propTypes={children:f.oneOfType([f.string,f.node])},E.defaultProps={children:""},z.propTypes={root:f.object.isRequired,children:f.node},z.defaultProps={children:null};var T=new Map;function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=y(n,{separator:"-"}),a="".concat(r,"-").concat(o);return T.has(a)||T.set(a,P({tag:o,render:t})),T.get(a)}})}A();var F=new WeakMap,C=A({},"emotion",(function(r){var t=r.root,n=r.children,o=F.get(t)||function(){var e=u({container:t,key:"react-shadow"});return F.set(t,e),e}();return e.createElement(i,{value:o},e.createElement(e.Fragment,null,n))}));export default C; | ||
//# sourceMappingURL=emotion.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@emotion/react"),r=require("@emotion/cache"),n=require("react-dom"),o=require("react-dom/server"),a=require("prop-types");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=u(e),c=u(r),i=u(a),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var d=f((function(e){!function(t){var r=function(e,t,n){if(!c(t)||s(t)||f(t)||d(t)||l(t))return t;var o,a=0,u=0;if(i(t))for(o=[],u=t.length;a<u;a++)o.push(r(e,t[a],n));else for(var p in o={},t)Object.prototype.hasOwnProperty.call(t,p)&&(o[e(p,n)]=r(e,t[p],n));return o},n=function(e){return p(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,l=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},i=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},d=function(e){return"[object Boolean]"==u.call(e)},p=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(a,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(s)})).decamelize;var p=function(e){if(Array.isArray(e))return e};var y=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(n=(u=l.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}};var h=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var v=function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}};var m=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.")};var b=function(e,t){return p(e)||y(e,t)||v(e,t)||m()},g=f((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var S=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var w=function(e,t){if(null==e)return{};var r,n,o=S(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var O=e.createContext(null);function j(e){var t=e.children,r=w(e,["children"]);return"string"!=typeof t&&(t=o.renderToString(t)),l.default.createElement("template",g({},r,{dangerouslySetInnerHTML:{__html:t}}))}function x(e){var t=e.root,r=e.children;return n.createPortal(r,t)}function E(t){var r=e.forwardRef((function(r,n){var o,a,u=r.mode,c=r.delegatesFocus,i=r.styleSheets,s=r.ssr,f=r.children,d=w(r,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(o=n,a=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=a.current)}),[o]),a),y=e.useState(null),h=b(y,2),v=h[0],m=h[1],S="node_".concat(u).concat(c);return e.useLayoutEffect((function(){if(p.current)try{if("function"==typeof n&&n(p.current),s){var e=p.current.shadowRoot;return void m(e)}var t=p.current.attachShadow({mode:u,delegatesFocus:c});i.length>0&&(t.adoptedStyleSheets=i),m(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:i,root:v})}}),[n,p,i]),l.default.createElement(l.default.Fragment,null,l.default.createElement(t.tag,g({key:S,ref:p},d),(v||s)&&l.default.createElement(O.Provider,{value:v},s?l.default.createElement(j,{shadowroot:"open"},t.render({root:v,ssr:s,children:f})):l.default.createElement(x,{root:v},t.render({root:v,ssr:s,children:f})))))}));return r.propTypes={mode:i.default.oneOf(["open","closed"]),delegatesFocus:i.default.bool,styleSheets:i.default.arrayOf(i.default.instanceOf(globalThis.CSSStyleSheet)),ssr:i.default.bool,children:i.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}j.propTypes={children:i.default.oneOfType([i.default.string,i.default.node])},j.defaultProps={children:""},x.propTypes={root:i.default.object.isRequired,children:i.default.node},x.defaultProps={children:null};var P=new Map;function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=d(n,{separator:"-"}),a="".concat(t,"-").concat(o);return P.has(a)||P.set(a,E({tag:o,render:r})),P.get(a)}})}z();var T=new WeakMap,A=z({},"emotion",(function(e){var r=e.root,n=e.children,o=T.get(r)||function(){var e=c.default({container:r,key:"react-shadow"});return T.set(r,e),e}();return l.default.createElement(t.CacheProvider,{value:o},l.default.createElement(l.default.Fragment,null,n))}));exports.default=A; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@emotion/react"),r=require("@emotion/cache"),n=require("react-dom"),o=require("react-dom/server"),a=require("prop-types");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=u(e),c=u(r),i=u(a),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var d=f((function(e){!function(t){var r=function(e,t,n){if(!c(t)||s(t)||f(t)||d(t)||l(t))return t;var o,a=0,u=0;if(i(t))for(o=[],u=t.length;a<u;a++)o.push(r(e,t[a],n));else for(var p in o={},t)Object.prototype.hasOwnProperty.call(t,p)&&(o[e(p,n)]=r(e,t[p],n));return o},n=function(e){return p(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,l=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},i=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},d=function(e){return"[object Boolean]"==u.call(e)},p=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(a,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(s)})).decamelize;var p=function(e){if(Array.isArray(e))return e};var y=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(n=(u=l.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}};var h=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var v=function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}};var m=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.")};var b=function(e,t){return p(e)||y(e,t)||v(e,t)||m()},g=f((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var S=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var w=function(e,t){if(null==e)return{};var r,n,o=S(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var O=e.createContext(null);function j(e){var t=e.children,r=w(e,["children"]);return"string"!=typeof t&&(t=o.renderToString(t)),l.default.createElement("template",g({},r,{dangerouslySetInnerHTML:{__html:t}}))}function x(e){var t=e.root,r=e.children;return n.createPortal(r,t)}function E(t){var r=e.forwardRef((function(r,n){var o,a,u=r.mode,c=r.delegatesFocus,i=r.styleSheets,s=r.ssr,f=r.children,d=w(r,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(o=n,a=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=a.current)}),[o]),a),y=e.useState(null),h=b(y,2),v=h[0],m=h[1],S="node_".concat(u).concat(c);return e.useLayoutEffect((function(){if(p.current)try{if("function"==typeof n&&n(p.current),s){var e=p.current.shadowRoot;return void m(e)}var t=p.current.attachShadow({mode:u,delegatesFocus:c});i.length>0&&(t.adoptedStyleSheets=i),m(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:i,root:v})}}),[n,p,i]),l.default.createElement(l.default.Fragment,null,l.default.createElement(t.tag,g({key:S,ref:p},d),(v||s)&&l.default.createElement(O.Provider,{value:v},s?l.default.createElement(j,{shadowroot:u,shadowrootmode:u},t.render({root:v,ssr:s,children:f})):l.default.createElement(x,{root:v},t.render({root:v,ssr:s,children:f})))))}));return r.propTypes={mode:i.default.oneOf(["open","closed"]),delegatesFocus:i.default.bool,styleSheets:i.default.arrayOf(i.default.instanceOf(globalThis.CSSStyleSheet)),ssr:i.default.bool,children:i.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}j.propTypes={children:i.default.oneOfType([i.default.string,i.default.node])},j.defaultProps={children:""},x.propTypes={root:i.default.object.isRequired,children:i.default.node},x.defaultProps={children:null};var P=new Map;function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=d(n,{separator:"-"}),a="".concat(t,"-").concat(o);return P.has(a)||P.set(a,E({tag:o,render:r})),P.get(a)}})}z();var T=new WeakMap,A=z({},"emotion",(function(e){var r=e.root,n=e.children,o=T.get(r)||function(){var e=c.default({container:r,key:"react-shadow"});return T.set(r,e),e}();return l.default.createElement(t.CacheProvider,{value:o},l.default.createElement(l.default.Fragment,null,n))}));exports.default=A; | ||
//# sourceMappingURL=emotion.js.map |
@@ -1,2 +0,2 @@ | ||
import e,{useRef as t,useEffect as r,createContext as n,forwardRef as o,useState as c,useLayoutEffect as u}from"react";import{jssPreset as i,StylesProvider as a}from"@material-ui/styles";import{create as l}from"jss";import{createPortal as s}from"react-dom";import{renderToString as f}from"react-dom/server";import p from"prop-types";var y=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var d=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var b=function(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e},v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e,t){return e(t={exports:{}},t.exports),t.exports}var g=m((function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t}));var O=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)},j=m((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}));var w=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var S=function(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?w(e):t},P=m((function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t})),x=m((function(e){!function(t){var r=function(e,t,n){if(!a(t)||s(t)||f(t)||p(t)||i(t))return t;var o,c=0,u=0;if(l(t))for(o=[],u=t.length;c<u;c++)o.push(r(e,t[c],n));else for(var y in o={},t)Object.prototype.hasOwnProperty.call(t,y)&&(o[e(y,n)]=r(e,t[y],n));return o},n=function(e){return y(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},c=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,i=function(e){return"function"==typeof e},a=function(e){return e===Object(e)},l=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},p=function(e){return"[object Boolean]"==u.call(e)},y=function(e){return(e-=0)==e},d=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:c,pascalize:o,depascalize:c,camelizeKeys:function(e,t){return r(d(n,t),e)},decamelizeKeys:function(e,t){return r(d(c,t),e,t)},pascalizeKeys:function(e,t){return r(d(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(v)})).decamelize;var E=function(e){if(Array.isArray(e))return e};var _=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}};var R=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var T=function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}};var z=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.")};var A=function(e,t){return E(e)||_(e,t)||T(e,t)||z()},C=m((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var D=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var F=function(e,t){if(null==e)return{};var r,n,o=D(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var k=n(null);function I(t){var r=t.children,n=F(t,["children"]);return"string"!=typeof r&&(r=f(r)),e.createElement("template",C({},n,{dangerouslySetInnerHTML:{__html:r}}))}function K(e){var t=e.root,r=e.children;return s(r,t)}function L(n){var i=o((function(o,i){var a,l,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,y=o.ssr,d=o.children,h=F(o,["mode","delegatesFocus","styleSheets","ssr","children"]),b=(l=t((a=i)&&a.current),r((function(){a&&(a.current=l.current)}),[a]),l),v=c(null),m=A(v,2),g=m[0],O=m[1],j="node_".concat(s).concat(f);return u((function(){if(b.current)try{if("function"==typeof i&&i(b.current),y){var e=b.current.shadowRoot;return void O(e)}var t=b.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(t.adoptedStyleSheets=p),O(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:p,root:g})}}),[i,b,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,C({key:j,ref:b},h),(g||y)&&e.createElement(k.Provider,{value:g},y?e.createElement(I,{shadowroot:"open"},n.render({root:g,ssr:y,children:d})):e.createElement(K,{root:g},n.render({root:g,ssr:y,children:d})))))}));return i.propTypes={mode:p.oneOf(["open","closed"]),delegatesFocus:p.bool,styleSheets:p.arrayOf(p.instanceOf(globalThis.CSSStyleSheet)),ssr:p.bool,children:p.node},i.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},i}I.propTypes={children:p.oneOfType([p.string,p.node])},I.defaultProps={children:""},K.propTypes={root:p.object.isRequired,children:p.node},K.defaultProps={children:null};var M=new Map;function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=x(n,{separator:"-"}),c="".concat(t,"-").concat(o);return M.has(c)||M.set(c,L({tag:o,render:r})),M.get(c)}})}function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P(e);if(t){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}U();var N=U({},"material-ui",(function(t){t.root;var r=t.children,n=function(t){O(o,t);var n=H(o);function o(){var e;return d(this,o),(e=n.call(this)).state={node:null},e.handleRef=function(t){return e.setState({node:t})},e}return b(o,[{key:"render",value:function(){var t=l(B(B({},i()),{},{insertionPoint:this.state.node}));return e.createElement(a,{jss:t},this.state.node&&e.createElement(e.Fragment,null,r),e.createElement("div",{ref:this.handleRef}))}}]),o}(e.Component);return e.createElement(n,null)}));export default N; | ||
import e,{useRef as t,useEffect as r,createContext as n,forwardRef as o,useState as c,useLayoutEffect as u}from"react";import{jssPreset as i,StylesProvider as a}from"@material-ui/styles";import{create as l}from"jss";import{createPortal as s}from"react-dom";import{renderToString as f}from"react-dom/server";import p from"prop-types";var y=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var d=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var b=function(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e},m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(e,t){return e(t={exports:{}},t.exports),t.exports}var g=v((function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t}));var O=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)},j=v((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}));var w=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var S=function(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?w(e):t},P=v((function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t})),x=v((function(e){!function(t){var r=function(e,t,n){if(!a(t)||s(t)||f(t)||p(t)||i(t))return t;var o,c=0,u=0;if(l(t))for(o=[],u=t.length;c<u;c++)o.push(r(e,t[c],n));else for(var y in o={},t)Object.prototype.hasOwnProperty.call(t,y)&&(o[e(y,n)]=r(e,t[y],n));return o},n=function(e){return y(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},c=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,i=function(e){return"function"==typeof e},a=function(e){return e===Object(e)},l=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},p=function(e){return"[object Boolean]"==u.call(e)},y=function(e){return(e-=0)==e},d=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:c,pascalize:o,depascalize:c,camelizeKeys:function(e,t){return r(d(n,t),e)},decamelizeKeys:function(e,t){return r(d(c,t),e,t)},pascalizeKeys:function(e,t){return r(d(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(m)})).decamelize;var E=function(e){if(Array.isArray(e))return e};var _=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}};var R=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var T=function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}};var z=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.")};var A=function(e,t){return E(e)||_(e,t)||T(e,t)||z()},C=v((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var D=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var F=function(e,t){if(null==e)return{};var r,n,o=D(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var k=n(null);function I(t){var r=t.children,n=F(t,["children"]);return"string"!=typeof r&&(r=f(r)),e.createElement("template",C({},n,{dangerouslySetInnerHTML:{__html:r}}))}function K(e){var t=e.root,r=e.children;return s(r,t)}function L(n){var i=o((function(o,i){var a,l,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,y=o.ssr,d=o.children,h=F(o,["mode","delegatesFocus","styleSheets","ssr","children"]),b=(l=t((a=i)&&a.current),r((function(){a&&(a.current=l.current)}),[a]),l),m=c(null),v=A(m,2),g=v[0],O=v[1],j="node_".concat(s).concat(f);return u((function(){if(b.current)try{if("function"==typeof i&&i(b.current),y){var e=b.current.shadowRoot;return void O(e)}var t=b.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(t.adoptedStyleSheets=p),O(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:p,root:g})}}),[i,b,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,C({key:j,ref:b},h),(g||y)&&e.createElement(k.Provider,{value:g},y?e.createElement(I,{shadowroot:s,shadowrootmode:s},n.render({root:g,ssr:y,children:d})):e.createElement(K,{root:g},n.render({root:g,ssr:y,children:d})))))}));return i.propTypes={mode:p.oneOf(["open","closed"]),delegatesFocus:p.bool,styleSheets:p.arrayOf(p.instanceOf(globalThis.CSSStyleSheet)),ssr:p.bool,children:p.node},i.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},i}I.propTypes={children:p.oneOfType([p.string,p.node])},I.defaultProps={children:""},K.propTypes={root:p.object.isRequired,children:p.node},K.defaultProps={children:null};var M=new Map;function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=x(n,{separator:"-"}),c="".concat(t,"-").concat(o);return M.has(c)||M.set(c,L({tag:o,render:r})),M.get(c)}})}function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P(e);if(t){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}U();var N=U({},"material-ui",(function(t){t.root;var r=t.children,n=function(t){O(o,t);var n=H(o);function o(){var e;return d(this,o),(e=n.call(this)).state={node:null},e.handleRef=function(t){return e.setState({node:t})},e}return b(o,[{key:"render",value:function(){var t=l(B(B({},i()),{},{insertionPoint:this.state.node}));return e.createElement(a,{jss:t},this.state.node&&e.createElement(e.Fragment,null,r),e.createElement("div",{ref:this.handleRef}))}}]),o}(e.Component);return e.createElement(n,null)}));export default N; | ||
//# sourceMappingURL=material-ui.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@material-ui/styles"),r=require("jss"),n=require("react-dom"),o=require("react-dom/server"),u=require("prop-types");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),i=a(u);var l=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var p=function(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e},d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e,t){return e(t={exports:{}},t.exports),t.exports}var h=y((function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t}));var b=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)},v=y((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}));var m=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var g=function(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?m(e):t},O=y((function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t})),j=y((function(e){!function(t){var r=function(e,t,n){if(!i(t)||f(t)||s(t)||p(t)||c(t))return t;var o,u=0,a=0;if(l(t))for(o=[],a=t.length;u<a;u++)o.push(r(e,t[u],n));else for(var d in o={},t)Object.prototype.hasOwnProperty.call(t,d)&&(o[e(d,n)]=r(e,t[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},u=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},a=Object.prototype.toString,c=function(e){return"function"==typeof e},i=function(e){return e===Object(e)},l=function(e){return"[object Array]"==a.call(e)},f=function(e){return"[object Date]"==a.call(e)},s=function(e){return"[object RegExp]"==a.call(e)},p=function(e){return"[object Boolean]"==a.call(e)},d=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:u,pascalize:o,depascalize:u,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(u,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(d)})).decamelize;var S=function(e){if(Array.isArray(e))return e};var w=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,u=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,u=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw u}}return r}};var P=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var x=function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}};var E=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.")};var _=function(e,t){return S(e)||w(e,t)||x(e,t)||E()},R=y((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var T=function(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var z=function(e,t){if(null==e)return{};var r,n,o=T(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var C=e.createContext(null);function A(e){var t=e.children,r=z(e,["children"]);return"string"!=typeof t&&(t=o.renderToString(t)),c.default.createElement("template",R({},r,{dangerouslySetInnerHTML:{__html:t}}))}function q(e){var t=e.root,r=e.children;return n.createPortal(r,t)}function D(t){var r=e.forwardRef((function(r,n){var o,u,a=r.mode,i=r.delegatesFocus,l=r.styleSheets,f=r.ssr,s=r.children,p=z(r,["mode","delegatesFocus","styleSheets","ssr","children"]),d=(o=n,u=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=u.current)}),[o]),u),y=e.useState(null),h=_(y,2),b=h[0],v=h[1],m="node_".concat(a).concat(i);return e.useLayoutEffect((function(){if(d.current)try{if("function"==typeof n&&n(d.current),f){var e=d.current.shadowRoot;return void v(e)}var t=d.current.attachShadow({mode:a,delegatesFocus:i});l.length>0&&(t.adoptedStyleSheets=l),v(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:l,root:b})}}),[n,d,l]),c.default.createElement(c.default.Fragment,null,c.default.createElement(t.tag,R({key:m,ref:d},p),(b||f)&&c.default.createElement(C.Provider,{value:b},f?c.default.createElement(A,{shadowroot:"open"},t.render({root:b,ssr:f,children:s})):c.default.createElement(q,{root:b},t.render({root:b,ssr:f,children:s})))))}));return r.propTypes={mode:i.default.oneOf(["open","closed"]),delegatesFocus:i.default.bool,styleSheets:i.default.arrayOf(i.default.instanceOf(globalThis.CSSStyleSheet)),ssr:i.default.bool,children:i.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}A.propTypes={children:i.default.oneOfType([i.default.string,i.default.node])},A.defaultProps={children:""},q.propTypes={root:i.default.object.isRequired,children:i.default.node},q.defaultProps={children:null};var F=new Map;function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=j(n,{separator:"-"}),u="".concat(t,"-").concat(o);return F.has(u)||F.set(u,D({tag:o,render:r})),F.get(u)}})}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}k();var M=k({},"material-ui",(function(e){e.root;var n=e.children,o=function(e){b(u,e);var o=L(u);function u(){var e;return f(this,u),(e=o.call(this)).state={node:null},e.handleRef=function(t){return e.setState({node:t})},e}return p(u,[{key:"render",value:function(){var e=r.create(K(K({},t.jssPreset()),{},{insertionPoint:this.state.node}));return c.default.createElement(t.StylesProvider,{jss:e},this.state.node&&c.default.createElement(c.default.Fragment,null,n),c.default.createElement("div",{ref:this.handleRef}))}}]),u}(c.default.Component);return c.default.createElement(o,null)}));exports.default=M; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@material-ui/styles"),r=require("jss"),n=require("react-dom"),o=require("react-dom/server"),u=require("prop-types");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),i=a(u);var l=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var f=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var p=function(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e},d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e,t){return e(t={exports:{}},t.exports),t.exports}var h=y((function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t}));var b=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)},v=y((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}));var m=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var g=function(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?m(e):t},O=y((function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t})),j=y((function(e){!function(t){var r=function(e,t,n){if(!i(t)||f(t)||s(t)||p(t)||c(t))return t;var o,u=0,a=0;if(l(t))for(o=[],a=t.length;u<a;u++)o.push(r(e,t[u],n));else for(var d in o={},t)Object.prototype.hasOwnProperty.call(t,d)&&(o[e(d,n)]=r(e,t[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},u=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},a=Object.prototype.toString,c=function(e){return"function"==typeof e},i=function(e){return e===Object(e)},l=function(e){return"[object Array]"==a.call(e)},f=function(e){return"[object Date]"==a.call(e)},s=function(e){return"[object RegExp]"==a.call(e)},p=function(e){return"[object Boolean]"==a.call(e)},d=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:u,pascalize:o,depascalize:u,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(u,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(d)})).decamelize;var S=function(e){if(Array.isArray(e))return e};var w=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,u=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,u=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw u}}return r}};var P=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var x=function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}};var E=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.")};var _=function(e,t){return S(e)||w(e,t)||x(e,t)||E()},R=y((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var T=function(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var z=function(e,t){if(null==e)return{};var r,n,o=T(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var C=e.createContext(null);function A(e){var t=e.children,r=z(e,["children"]);return"string"!=typeof t&&(t=o.renderToString(t)),c.default.createElement("template",R({},r,{dangerouslySetInnerHTML:{__html:t}}))}function q(e){var t=e.root,r=e.children;return n.createPortal(r,t)}function D(t){var r=e.forwardRef((function(r,n){var o,u,a=r.mode,i=r.delegatesFocus,l=r.styleSheets,f=r.ssr,s=r.children,p=z(r,["mode","delegatesFocus","styleSheets","ssr","children"]),d=(o=n,u=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=u.current)}),[o]),u),y=e.useState(null),h=_(y,2),b=h[0],v=h[1],m="node_".concat(a).concat(i);return e.useLayoutEffect((function(){if(d.current)try{if("function"==typeof n&&n(d.current),f){var e=d.current.shadowRoot;return void v(e)}var t=d.current.attachShadow({mode:a,delegatesFocus:i});l.length>0&&(t.adoptedStyleSheets=l),v(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:l,root:b})}}),[n,d,l]),c.default.createElement(c.default.Fragment,null,c.default.createElement(t.tag,R({key:m,ref:d},p),(b||f)&&c.default.createElement(C.Provider,{value:b},f?c.default.createElement(A,{shadowroot:a,shadowrootmode:a},t.render({root:b,ssr:f,children:s})):c.default.createElement(q,{root:b},t.render({root:b,ssr:f,children:s})))))}));return r.propTypes={mode:i.default.oneOf(["open","closed"]),delegatesFocus:i.default.bool,styleSheets:i.default.arrayOf(i.default.instanceOf(globalThis.CSSStyleSheet)),ssr:i.default.bool,children:i.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}A.propTypes={children:i.default.oneOfType([i.default.string,i.default.node])},A.defaultProps={children:""},q.propTypes={root:i.default.object.isRequired,children:i.default.node},q.defaultProps={children:null};var F=new Map;function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=j(n,{separator:"-"}),u="".concat(t,"-").concat(o);return F.has(u)||F.set(u,D({tag:o,render:r})),F.get(u)}})}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}k();var M=k({},"material-ui",(function(e){e.root;var n=e.children,o=function(e){b(u,e);var o=L(u);function u(){var e;return f(this,u),(e=o.call(this)).state={node:null},e.handleRef=function(t){return e.setState({node:t})},e}return p(u,[{key:"render",value:function(){var e=r.create(K(K({},t.jssPreset()),{},{insertionPoint:this.state.node}));return c.default.createElement(t.StylesProvider,{jss:e},this.state.node&&c.default.createElement(c.default.Fragment,null,n),c.default.createElement("div",{ref:this.handleRef}))}}]),u}(c.default.Component);return c.default.createElement(o,null)}));exports.default=M; | ||
//# sourceMappingURL=material-ui.js.map |
{ | ||
"name": "react-shadow", | ||
"version": "20.3.0", | ||
"version": "20.4.0", | ||
"description": "Utilise Shadow DOM in React with all the benefits of style encapsulation.", | ||
@@ -5,0 +5,0 @@ "main": "react-shadow.js", |
@@ -1,2 +0,2 @@ | ||
import e,{useRef as r,useEffect as t,createContext as n,forwardRef as o,useState as a,useLayoutEffect as c,useContext as u}from"react";import{createPortal as i}from"react-dom";import{renderToString as l}from"react-dom/server";import s from"prop-types";var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e,r){return e(r={exports:{}},r.exports),r.exports}var d=p((function(e){!function(r){var t=function(e,r,n){if(!i(r)||s(r)||f(r)||p(r)||u(r))return r;var o,a=0,c=0;if(l(r))for(o=[],c=r.length;a<c;a++)o.push(t(e,r[a],n));else for(var d in o={},r)Object.prototype.hasOwnProperty.call(r,d)&&(o[e(d,n)]=t(e,r[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,r){return r?r.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var r=n(e);return r.substr(0,1).toUpperCase()+r.substr(1)},a=function(e,r){return function(e,r){var t=(r=r||{}).separator||"_",n=r.split||/(?=[A-Z])/;return e.split(n).join(t)}(e,r).toLowerCase()},c=Object.prototype.toString,u=function(e){return"function"==typeof e},i=function(e){return e===Object(e)},l=function(e){return"[object Array]"==c.call(e)},s=function(e){return"[object Date]"==c.call(e)},f=function(e){return"[object RegExp]"==c.call(e)},p=function(e){return"[object Boolean]"==c.call(e)},d=function(e){return(e-=0)==e},y=function(e,r){var t=r&&"process"in r?r.process:r;return"function"!=typeof t?e:function(r,n){return t(r,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,r){return t(y(n,r),e)},decamelizeKeys:function(e,r){return t(y(a,r),e,r)},pascalizeKeys:function(e,r){return t(y(o,r),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:r.humps=h}(f)})).decamelize;var y=function(e){if(Array.isArray(e))return e};var h=function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return t}};var v=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n};var m=function(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}};var b=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.")};var g=function(e,r){return y(e)||h(e,r)||m(e,r)||b()},S=p((function(e){function r(){return e.exports=r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,arguments)}e.exports=r}));var O=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o};var w=function(e,r){if(null==e)return{};var t,n,o=O(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o};var j=n(null);function x(r){var t=r.children,n=w(r,["children"]);return"string"!=typeof t&&(t=l(t)),e.createElement("template",S({},n,{dangerouslySetInnerHTML:{__html:t}}))}function z(e){var r=e.root,t=e.children;return i(t,r)}function E(n){var u=o((function(o,u){var i,l,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,d=o.ssr,y=o.children,h=w(o,["mode","delegatesFocus","styleSheets","ssr","children"]),v=(l=r((i=u)&&i.current),t((function(){i&&(i.current=l.current)}),[i]),l),m=a(null),b=g(m,2),O=b[0],E=b[1],P="node_".concat(s).concat(f);return c((function(){if(v.current)try{if("function"==typeof u&&u(v.current),d){var e=v.current.shadowRoot;return void E(e)}var r=v.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(r.adoptedStyleSheets=p),E(r)}catch(e){!function(e){var r=e.error,t=e.styleSheets,n=e.root;switch(r.name){case"NotSupportedError":t.length>0&&(n.adoptedStyleSheets=t);break;default:throw r}}({error:e,styleSheets:p,root:O})}}),[u,v,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,S({key:P,ref:v},h),(O||d)&&e.createElement(j.Provider,{value:O},d?e.createElement(x,{shadowroot:"open"},n.render({root:O,ssr:d,children:y})):e.createElement(z,{root:O},n.render({root:O,ssr:d,children:y})))))}));return u.propTypes={mode:s.oneOf(["open","closed"]),delegatesFocus:s.bool,styleSheets:s.arrayOf(s.instanceOf(globalThis.CSSStyleSheet)),ssr:s.bool,children:s.node},u.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},u}x.propTypes={children:s.oneOfType([s.string,s.node])},x.defaultProps={children:""},z.propTypes={root:s.object.isRequired,children:s.node},z.defaultProps={children:null};var P=new Map;function T(){return u(j)}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=d(n,{separator:"-"}),a="".concat(r,"-").concat(o);return P.has(a)||P.set(a,E({tag:o,render:t})),P.get(a)}})}var C=A();export default C;export{A as createProxy,T as useShadowRoot}; | ||
import e,{useRef as r,useEffect as t,createContext as n,forwardRef as o,useState as a,useLayoutEffect as c,useContext as u}from"react";import{createPortal as i}from"react-dom";import{renderToString as l}from"react-dom/server";import s from"prop-types";var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e,r){return e(r={exports:{}},r.exports),r.exports}var d=p((function(e){!function(r){var t=function(e,r,n){if(!i(r)||s(r)||f(r)||p(r)||u(r))return r;var o,a=0,c=0;if(l(r))for(o=[],c=r.length;a<c;a++)o.push(t(e,r[a],n));else for(var d in o={},r)Object.prototype.hasOwnProperty.call(r,d)&&(o[e(d,n)]=t(e,r[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,r){return r?r.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var r=n(e);return r.substr(0,1).toUpperCase()+r.substr(1)},a=function(e,r){return function(e,r){var t=(r=r||{}).separator||"_",n=r.split||/(?=[A-Z])/;return e.split(n).join(t)}(e,r).toLowerCase()},c=Object.prototype.toString,u=function(e){return"function"==typeof e},i=function(e){return e===Object(e)},l=function(e){return"[object Array]"==c.call(e)},s=function(e){return"[object Date]"==c.call(e)},f=function(e){return"[object RegExp]"==c.call(e)},p=function(e){return"[object Boolean]"==c.call(e)},d=function(e){return(e-=0)==e},y=function(e,r){var t=r&&"process"in r?r.process:r;return"function"!=typeof t?e:function(r,n){return t(r,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,r){return t(y(n,r),e)},decamelizeKeys:function(e,r){return t(y(a,r),e,r)},pascalizeKeys:function(e,r){return t(y(o,r),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:r.humps=h}(f)})).decamelize;var y=function(e){if(Array.isArray(e))return e};var h=function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return t}};var v=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n};var m=function(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}};var b=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.")};var g=function(e,r){return y(e)||h(e,r)||m(e,r)||b()},S=p((function(e){function r(){return e.exports=r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,arguments)}e.exports=r}));var w=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o};var O=function(e,r){if(null==e)return{};var t,n,o=w(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o};var j=n(null);function x(r){var t=r.children,n=O(r,["children"]);return"string"!=typeof t&&(t=l(t)),e.createElement("template",S({},n,{dangerouslySetInnerHTML:{__html:t}}))}function z(e){var r=e.root,t=e.children;return i(t,r)}function E(n){var u=o((function(o,u){var i,l,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,d=o.ssr,y=o.children,h=O(o,["mode","delegatesFocus","styleSheets","ssr","children"]),v=(l=r((i=u)&&i.current),t((function(){i&&(i.current=l.current)}),[i]),l),m=a(null),b=g(m,2),w=b[0],E=b[1],P="node_".concat(s).concat(f);return c((function(){if(v.current)try{if("function"==typeof u&&u(v.current),d){var e=v.current.shadowRoot;return void E(e)}var r=v.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(r.adoptedStyleSheets=p),E(r)}catch(e){!function(e){var r=e.error,t=e.styleSheets,n=e.root;switch(r.name){case"NotSupportedError":t.length>0&&(n.adoptedStyleSheets=t);break;default:throw r}}({error:e,styleSheets:p,root:w})}}),[u,v,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,S({key:P,ref:v},h),(w||d)&&e.createElement(j.Provider,{value:w},d?e.createElement(x,{shadowroot:s,shadowrootmode:s},n.render({root:w,ssr:d,children:y})):e.createElement(z,{root:w},n.render({root:w,ssr:d,children:y})))))}));return u.propTypes={mode:s.oneOf(["open","closed"]),delegatesFocus:s.bool,styleSheets:s.arrayOf(s.instanceOf(globalThis.CSSStyleSheet)),ssr:s.bool,children:s.node},u.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},u}x.propTypes={children:s.oneOfType([s.string,s.node])},x.defaultProps={children:""},z.propTypes={root:s.object.isRequired,children:s.node},z.defaultProps={children:null};var P=new Map;function T(){return u(j)}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=d(n,{separator:"-"}),a="".concat(r,"-").concat(o);return P.has(a)||P.set(a,E({tag:o,render:t})),P.get(a)}})}var C=A();export default C;export{A as createProxy,T as useShadowRoot}; | ||
//# sourceMappingURL=react-shadow.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom"),r=require("react-dom/server"),n=require("prop-types");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e),u=o(n),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e,t){return e(t={exports:{}},t.exports),t.exports}var i=c((function(e){!function(t){var r=function(e,t,n){if(!c(t)||s(t)||f(t)||d(t)||l(t))return t;var o,a=0,u=0;if(i(t))for(o=[],u=t.length;a<u;a++)o.push(r(e,t[a],n));else for(var p in o={},t)Object.prototype.hasOwnProperty.call(t,p)&&(o[e(p,n)]=r(e,t[p],n));return o},n=function(e){return p(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,l=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},i=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},d=function(e){return"[object Boolean]"==u.call(e)},p=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(a,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(l)})).decamelize;var s=function(e){if(Array.isArray(e))return e};var f=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(n=(u=l.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}};var d=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var p=function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}};var y=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.")};var h=function(e,t){return s(e)||f(e,t)||p(e,t)||y()},v=c((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var b=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var g=function(e,t){if(null==e)return{};var r,n,o=b(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var m=e.createContext(null);function S(e){var t=e.children,n=g(e,["children"]);return"string"!=typeof t&&(t=r.renderToString(t)),a.default.createElement("template",v({},n,{dangerouslySetInnerHTML:{__html:t}}))}function w(e){var r=e.root,n=e.children;return t.createPortal(n,r)}function O(t){var r=e.forwardRef((function(r,n){var o,u,l=r.mode,c=r.delegatesFocus,i=r.styleSheets,s=r.ssr,f=r.children,d=g(r,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(o=n,u=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=u.current)}),[o]),u),y=e.useState(null),b=h(y,2),O=b[0],j=b[1],x="node_".concat(l).concat(c);return e.useLayoutEffect((function(){if(p.current)try{if("function"==typeof n&&n(p.current),s){var e=p.current.shadowRoot;return void j(e)}var t=p.current.attachShadow({mode:l,delegatesFocus:c});i.length>0&&(t.adoptedStyleSheets=i),j(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:i,root:O})}}),[n,p,i]),a.default.createElement(a.default.Fragment,null,a.default.createElement(t.tag,v({key:x,ref:p},d),(O||s)&&a.default.createElement(m.Provider,{value:O},s?a.default.createElement(S,{shadowroot:"open"},t.render({root:O,ssr:s,children:f})):a.default.createElement(w,{root:O},t.render({root:O,ssr:s,children:f})))))}));return r.propTypes={mode:u.default.oneOf(["open","closed"]),delegatesFocus:u.default.bool,styleSheets:u.default.arrayOf(u.default.instanceOf(globalThis.CSSStyleSheet)),ssr:u.default.bool,children:u.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}S.propTypes={children:u.default.oneOfType([u.default.string,u.default.node])},S.defaultProps={children:""},w.propTypes={root:u.default.object.isRequired,children:u.default.node},w.defaultProps={children:null};var j=new Map;function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=i(n,{separator:"-"}),a="".concat(t,"-").concat(o);return j.has(a)||j.set(a,O({tag:o,render:r})),j.get(a)}})}var E=x();exports.createProxy=x,exports.default=E,exports.useShadowRoot=function(){return e.useContext(m)}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom"),r=require("react-dom/server"),n=require("prop-types");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e),u=o(n),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e,t){return e(t={exports:{}},t.exports),t.exports}var i=c((function(e){!function(t){var r=function(e,t,n){if(!c(t)||s(t)||f(t)||d(t)||l(t))return t;var o,a=0,u=0;if(i(t))for(o=[],u=t.length;a<u;a++)o.push(r(e,t[a],n));else for(var p in o={},t)Object.prototype.hasOwnProperty.call(t,p)&&(o[e(p,n)]=r(e,t[p],n));return o},n=function(e){return p(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,l=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},i=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},d=function(e){return"[object Boolean]"==u.call(e)},p=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(a,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(l)})).decamelize;var s=function(e){if(Array.isArray(e))return e};var f=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(n=(u=l.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}};var d=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var p=function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}};var y=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.")};var h=function(e,t){return s(e)||f(e,t)||p(e,t)||y()},v=c((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var b=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var g=function(e,t){if(null==e)return{};var r,n,o=b(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var m=e.createContext(null);function S(e){var t=e.children,n=g(e,["children"]);return"string"!=typeof t&&(t=r.renderToString(t)),a.default.createElement("template",v({},n,{dangerouslySetInnerHTML:{__html:t}}))}function w(e){var r=e.root,n=e.children;return t.createPortal(n,r)}function O(t){var r=e.forwardRef((function(r,n){var o,u,l=r.mode,c=r.delegatesFocus,i=r.styleSheets,s=r.ssr,f=r.children,d=g(r,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(o=n,u=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=u.current)}),[o]),u),y=e.useState(null),b=h(y,2),O=b[0],j=b[1],x="node_".concat(l).concat(c);return e.useLayoutEffect((function(){if(p.current)try{if("function"==typeof n&&n(p.current),s){var e=p.current.shadowRoot;return void j(e)}var t=p.current.attachShadow({mode:l,delegatesFocus:c});i.length>0&&(t.adoptedStyleSheets=i),j(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:i,root:O})}}),[n,p,i]),a.default.createElement(a.default.Fragment,null,a.default.createElement(t.tag,v({key:x,ref:p},d),(O||s)&&a.default.createElement(m.Provider,{value:O},s?a.default.createElement(S,{shadowroot:l,shadowrootmode:l},t.render({root:O,ssr:s,children:f})):a.default.createElement(w,{root:O},t.render({root:O,ssr:s,children:f})))))}));return r.propTypes={mode:u.default.oneOf(["open","closed"]),delegatesFocus:u.default.bool,styleSheets:u.default.arrayOf(u.default.instanceOf(globalThis.CSSStyleSheet)),ssr:u.default.bool,children:u.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}S.propTypes={children:u.default.oneOfType([u.default.string,u.default.node])},S.defaultProps={children:""},w.propTypes={root:u.default.object.isRequired,children:u.default.node},w.defaultProps={children:null};var j=new Map;function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=i(n,{separator:"-"}),a="".concat(t,"-").concat(o);return j.has(a)||j.set(a,O({tag:o,render:r})),j.get(a)}})}var E=x();exports.createProxy=x,exports.default=E,exports.useShadowRoot=function(){return e.useContext(m)}; | ||
//# sourceMappingURL=react-shadow.js.map |
@@ -1,2 +0,2 @@ | ||
import e,{useRef as r,useEffect as t,createContext as n,forwardRef as o,useState as a,useLayoutEffect as c}from"react";import{renderToString as l}from"react-dom/server";import{ServerStyleSheet as u,StyleSheetManager as i}from"styled-components";import{createPortal as s}from"react-dom";import f from"prop-types";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e,r){return e(r={exports:{}},r.exports),r.exports}var y=d((function(e){!function(r){var t=function(e,r,n){if(!u(r)||s(r)||f(r)||p(r)||l(r))return r;var o,a=0,c=0;if(i(r))for(o=[],c=r.length;a<c;a++)o.push(t(e,r[a],n));else for(var d in o={},r)Object.prototype.hasOwnProperty.call(r,d)&&(o[e(d,n)]=t(e,r[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,r){return r?r.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var r=n(e);return r.substr(0,1).toUpperCase()+r.substr(1)},a=function(e,r){return function(e,r){var t=(r=r||{}).separator||"_",n=r.split||/(?=[A-Z])/;return e.split(n).join(t)}(e,r).toLowerCase()},c=Object.prototype.toString,l=function(e){return"function"==typeof e},u=function(e){return e===Object(e)},i=function(e){return"[object Array]"==c.call(e)},s=function(e){return"[object Date]"==c.call(e)},f=function(e){return"[object RegExp]"==c.call(e)},p=function(e){return"[object Boolean]"==c.call(e)},d=function(e){return(e-=0)==e},y=function(e,r){var t=r&&"process"in r?r.process:r;return"function"!=typeof t?e:function(r,n){return t(r,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,r){return t(y(n,r),e)},decamelizeKeys:function(e,r){return t(y(a,r),e,r)},pascalizeKeys:function(e,r){return t(y(o,r),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:r.humps=h}(p)})).decamelize;var h=function(e){if(Array.isArray(e))return e};var m=function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,l=e[Symbol.iterator]();!(n=(c=l.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return t}};var v=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n};var g=function(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}};var b=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.")};var S=function(e,r){return h(e)||m(e,r)||g(e,r)||b()},w=d((function(e){function r(){return e.exports=r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,arguments)}e.exports=r}));var O=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o};var j=function(e,r){if(null==e)return{};var t,n,o=O(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o};var E=n(null);function x(r){var t=r.children,n=j(r,["children"]);return"string"!=typeof t&&(t=l(t)),e.createElement("template",w({},n,{dangerouslySetInnerHTML:{__html:t}}))}function z(e){var r=e.root,t=e.children;return s(t,r)}function F(n){var l=o((function(o,l){var u,i,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,d=o.ssr,y=o.children,h=j(o,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(i=r((u=l)&&u.current),t((function(){u&&(u.current=i.current)}),[u]),i),v=a(null),g=S(v,2),b=g[0],O=g[1],F="node_".concat(s).concat(f);return c((function(){if(m.current)try{if("function"==typeof l&&l(m.current),d){var e=m.current.shadowRoot;return void O(e)}var r=m.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(r.adoptedStyleSheets=p),O(r)}catch(e){!function(e){var r=e.error,t=e.styleSheets,n=e.root;switch(r.name){case"NotSupportedError":t.length>0&&(n.adoptedStyleSheets=t);break;default:throw r}}({error:e,styleSheets:p,root:b})}}),[l,m,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,w({key:F,ref:m},h),(b||d)&&e.createElement(E.Provider,{value:b},d?e.createElement(x,{shadowroot:"open"},n.render({root:b,ssr:d,children:y})):e.createElement(z,{root:b},n.render({root:b,ssr:d,children:y})))))}));return l.propTypes={mode:f.oneOf(["open","closed"]),delegatesFocus:f.bool,styleSheets:f.arrayOf(f.instanceOf(globalThis.CSSStyleSheet)),ssr:f.bool,children:f.node},l.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},l}x.propTypes={children:f.oneOfType([f.string,f.node])},x.defaultProps={children:""},z.propTypes={root:f.object.isRequired,children:f.node},z.defaultProps={children:null};var P=new Map;function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=y(n,{separator:"-"}),a="".concat(r,"-").concat(o);return P.has(a)||P.set(a,F({tag:o,render:t})),P.get(a)}})}function A(r){var t=new u;return l(e.createElement(i,{sheet:t.instance},e.createElement(e.Fragment,null,r))),t.getStyleElement()}T();var C=T({},"styled-components",(function(r){var t=r.root,n=r.ssr,o=r.children;return n?e.createElement(e.Fragment,null,A(o),o):e.createElement(i,{target:t},e.createElement(e.Fragment,null,o))}));export default C;export{A as getStyleSheets}; | ||
import e,{useRef as r,useEffect as t,createContext as n,forwardRef as o,useState as a,useLayoutEffect as c}from"react";import{renderToString as l}from"react-dom/server";import{ServerStyleSheet as u,StyleSheetManager as i}from"styled-components";import{createPortal as s}from"react-dom";import f from"prop-types";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e,r){return e(r={exports:{}},r.exports),r.exports}var y=d((function(e){!function(r){var t=function(e,r,n){if(!u(r)||s(r)||f(r)||p(r)||l(r))return r;var o,a=0,c=0;if(i(r))for(o=[],c=r.length;a<c;a++)o.push(t(e,r[a],n));else for(var d in o={},r)Object.prototype.hasOwnProperty.call(r,d)&&(o[e(d,n)]=t(e,r[d],n));return o},n=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,r){return r?r.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var r=n(e);return r.substr(0,1).toUpperCase()+r.substr(1)},a=function(e,r){return function(e,r){var t=(r=r||{}).separator||"_",n=r.split||/(?=[A-Z])/;return e.split(n).join(t)}(e,r).toLowerCase()},c=Object.prototype.toString,l=function(e){return"function"==typeof e},u=function(e){return e===Object(e)},i=function(e){return"[object Array]"==c.call(e)},s=function(e){return"[object Date]"==c.call(e)},f=function(e){return"[object RegExp]"==c.call(e)},p=function(e){return"[object Boolean]"==c.call(e)},d=function(e){return(e-=0)==e},y=function(e,r){var t=r&&"process"in r?r.process:r;return"function"!=typeof t?e:function(r,n){return t(r,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,r){return t(y(n,r),e)},decamelizeKeys:function(e,r){return t(y(a,r),e,r)},pascalizeKeys:function(e,r){return t(y(o,r),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:r.humps=h}(p)})).decamelize;var h=function(e){if(Array.isArray(e))return e};var m=function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,a=void 0;try{for(var c,l=e[Symbol.iterator]();!(n=(c=l.next()).done)&&(t.push(c.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return t}};var v=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n};var g=function(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}};var b=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.")};var S=function(e,r){return h(e)||m(e,r)||g(e,r)||b()},w=d((function(e){function r(){return e.exports=r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(this,arguments)}e.exports=r}));var O=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o};var j=function(e,r){if(null==e)return{};var t,n,o=O(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o};var E=n(null);function x(r){var t=r.children,n=j(r,["children"]);return"string"!=typeof t&&(t=l(t)),e.createElement("template",w({},n,{dangerouslySetInnerHTML:{__html:t}}))}function z(e){var r=e.root,t=e.children;return s(t,r)}function F(n){var l=o((function(o,l){var u,i,s=o.mode,f=o.delegatesFocus,p=o.styleSheets,d=o.ssr,y=o.children,h=j(o,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(i=r((u=l)&&u.current),t((function(){u&&(u.current=i.current)}),[u]),i),v=a(null),g=S(v,2),b=g[0],O=g[1],F="node_".concat(s).concat(f);return c((function(){if(m.current)try{if("function"==typeof l&&l(m.current),d){var e=m.current.shadowRoot;return void O(e)}var r=m.current.attachShadow({mode:s,delegatesFocus:f});p.length>0&&(r.adoptedStyleSheets=p),O(r)}catch(e){!function(e){var r=e.error,t=e.styleSheets,n=e.root;switch(r.name){case"NotSupportedError":t.length>0&&(n.adoptedStyleSheets=t);break;default:throw r}}({error:e,styleSheets:p,root:b})}}),[l,m,p]),e.createElement(e.Fragment,null,e.createElement(n.tag,w({key:F,ref:m},h),(b||d)&&e.createElement(E.Provider,{value:b},d?e.createElement(x,{shadowroot:s,shadowrootmode:s},n.render({root:b,ssr:d,children:y})):e.createElement(z,{root:b},n.render({root:b,ssr:d,children:y})))))}));return l.propTypes={mode:f.oneOf(["open","closed"]),delegatesFocus:f.bool,styleSheets:f.arrayOf(f.instanceOf(globalThis.CSSStyleSheet)),ssr:f.bool,children:f.node},l.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},l}x.propTypes={children:f.oneOfType([f.string,f.node])},x.defaultProps={children:""},z.propTypes={root:f.object.isRequired,children:f.node},z.defaultProps={children:null};var P=new Map;function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=y(n,{separator:"-"}),a="".concat(r,"-").concat(o);return P.has(a)||P.set(a,F({tag:o,render:t})),P.get(a)}})}function A(r){var t=new u;return l(e.createElement(i,{sheet:t.instance},e.createElement(e.Fragment,null,r))),t.getStyleElement()}T();var C=T({},"styled-components",(function(r){var t=r.root,n=r.ssr,o=r.children;return n?e.createElement(e.Fragment,null,A(o),o):e.createElement(i,{target:t},e.createElement(e.Fragment,null,o))}));export default C;export{A as getStyleSheets}; | ||
//# sourceMappingURL=styled-components.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom/server"),r=require("styled-components"),n=require("react-dom"),o=require("prop-types");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),u=a(o),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t){return e(t={exports:{}},t.exports),t.exports}var s=i((function(e){!function(t){var r=function(e,t,n){if(!c(t)||s(t)||f(t)||d(t)||u(t))return t;var o,a=0,l=0;if(i(t))for(o=[],l=t.length;a<l;a++)o.push(r(e,t[a],n));else for(var p in o={},t)Object.prototype.hasOwnProperty.call(t,p)&&(o[e(p,n)]=r(e,t[p],n));return o},n=function(e){return p(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},l=Object.prototype.toString,u=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},i=function(e){return"[object Array]"==l.call(e)},s=function(e){return"[object Date]"==l.call(e)},f=function(e){return"[object RegExp]"==l.call(e)},d=function(e){return"[object Boolean]"==l.call(e)},p=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(a,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(c)})).decamelize;var f=function(e){if(Array.isArray(e))return e};var d=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var l,u=e[Symbol.iterator]();!(n=(l=u.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}};var p=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var y=function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}};var h=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.")};var v=function(e,t){return f(e)||d(e,t)||y(e,t)||h()},g=i((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var m=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var b=function(e,t){if(null==e)return{};var r,n,o=m(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var S=e.createContext(null);function w(e){var r=e.children,n=b(e,["children"]);return"string"!=typeof r&&(r=t.renderToString(r)),l.default.createElement("template",g({},n,{dangerouslySetInnerHTML:{__html:r}}))}function O(e){var t=e.root,r=e.children;return n.createPortal(r,t)}function j(t){var r=e.forwardRef((function(r,n){var o,a,u=r.mode,c=r.delegatesFocus,i=r.styleSheets,s=r.ssr,f=r.children,d=b(r,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(o=n,a=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=a.current)}),[o]),a),y=e.useState(null),h=v(y,2),m=h[0],j=h[1],E="node_".concat(u).concat(c);return e.useLayoutEffect((function(){if(p.current)try{if("function"==typeof n&&n(p.current),s){var e=p.current.shadowRoot;return void j(e)}var t=p.current.attachShadow({mode:u,delegatesFocus:c});i.length>0&&(t.adoptedStyleSheets=i),j(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:i,root:m})}}),[n,p,i]),l.default.createElement(l.default.Fragment,null,l.default.createElement(t.tag,g({key:E,ref:p},d),(m||s)&&l.default.createElement(S.Provider,{value:m},s?l.default.createElement(w,{shadowroot:"open"},t.render({root:m,ssr:s,children:f})):l.default.createElement(O,{root:m},t.render({root:m,ssr:s,children:f})))))}));return r.propTypes={mode:u.default.oneOf(["open","closed"]),delegatesFocus:u.default.bool,styleSheets:u.default.arrayOf(u.default.instanceOf(globalThis.CSSStyleSheet)),ssr:u.default.bool,children:u.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}w.propTypes={children:u.default.oneOfType([u.default.string,u.default.node])},w.defaultProps={children:""},O.propTypes={root:u.default.object.isRequired,children:u.default.node},O.defaultProps={children:null};var E=new Map;function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=s(n,{separator:"-"}),a="".concat(t,"-").concat(o);return E.has(a)||E.set(a,j({tag:o,render:r})),E.get(a)}})}function P(e){var n=new r.ServerStyleSheet;return t.renderToString(l.default.createElement(r.StyleSheetManager,{sheet:n.instance},l.default.createElement(l.default.Fragment,null,e))),n.getStyleElement()}x();var T=x({},"styled-components",(function(e){var t=e.root,n=e.ssr,o=e.children;return n?l.default.createElement(l.default.Fragment,null,P(o),o):l.default.createElement(r.StyleSheetManager,{target:t},l.default.createElement(l.default.Fragment,null,o))}));exports.default=T,exports.getStyleSheets=P; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom/server"),r=require("styled-components"),n=require("react-dom"),o=require("prop-types");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),u=a(o),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t){return e(t={exports:{}},t.exports),t.exports}var s=i((function(e){!function(t){var r=function(e,t,n){if(!c(t)||s(t)||f(t)||d(t)||u(t))return t;var o,a=0,l=0;if(i(t))for(o=[],l=t.length;a<l;a++)o.push(r(e,t[a],n));else for(var p in o={},t)Object.prototype.hasOwnProperty.call(t,p)&&(o[e(p,n)]=r(e,t[p],n));return o},n=function(e){return p(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},l=Object.prototype.toString,u=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},i=function(e){return"[object Array]"==l.call(e)},s=function(e){return"[object Date]"==l.call(e)},f=function(e){return"[object RegExp]"==l.call(e)},d=function(e){return"[object Boolean]"==l.call(e)},p=function(e){return(e-=0)==e},y=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},h={camelize:n,decamelize:a,pascalize:o,depascalize:a,camelizeKeys:function(e,t){return r(y(n,t),e)},decamelizeKeys:function(e,t){return r(y(a,t),e,t)},pascalizeKeys:function(e,t){return r(y(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(c)})).decamelize;var f=function(e){if(Array.isArray(e))return e};var d=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var l,u=e[Symbol.iterator]();!(n=(l=u.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}};var p=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var y=function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}};var h=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.")};var v=function(e,t){return f(e)||d(e,t)||y(e,t)||h()},m=i((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var g=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var b=function(e,t){if(null==e)return{};var r,n,o=g(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var S=e.createContext(null);function w(e){var r=e.children,n=b(e,["children"]);return"string"!=typeof r&&(r=t.renderToString(r)),l.default.createElement("template",m({},n,{dangerouslySetInnerHTML:{__html:r}}))}function O(e){var t=e.root,r=e.children;return n.createPortal(r,t)}function j(t){var r=e.forwardRef((function(r,n){var o,a,u=r.mode,c=r.delegatesFocus,i=r.styleSheets,s=r.ssr,f=r.children,d=b(r,["mode","delegatesFocus","styleSheets","ssr","children"]),p=(o=n,a=e.useRef(o&&o.current),e.useEffect((function(){o&&(o.current=a.current)}),[o]),a),y=e.useState(null),h=v(y,2),g=h[0],j=h[1],E="node_".concat(u).concat(c);return e.useLayoutEffect((function(){if(p.current)try{if("function"==typeof n&&n(p.current),s){var e=p.current.shadowRoot;return void j(e)}var t=p.current.attachShadow({mode:u,delegatesFocus:c});i.length>0&&(t.adoptedStyleSheets=i),j(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:i,root:g})}}),[n,p,i]),l.default.createElement(l.default.Fragment,null,l.default.createElement(t.tag,m({key:E,ref:p},d),(g||s)&&l.default.createElement(S.Provider,{value:g},s?l.default.createElement(w,{shadowroot:u,shadowrootmode:u},t.render({root:g,ssr:s,children:f})):l.default.createElement(O,{root:g},t.render({root:g,ssr:s,children:f})))))}));return r.propTypes={mode:u.default.oneOf(["open","closed"]),delegatesFocus:u.default.bool,styleSheets:u.default.arrayOf(u.default.instanceOf(globalThis.CSSStyleSheet)),ssr:u.default.bool,children:u.default.node},r.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},r}w.propTypes={children:u.default.oneOfType([u.default.string,u.default.node])},w.defaultProps={children:""},O.propTypes={root:u.default.object.isRequired,children:u.default.node},O.defaultProps={children:null};var E=new Map;function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=s(n,{separator:"-"}),a="".concat(t,"-").concat(o);return E.has(a)||E.set(a,j({tag:o,render:r})),E.get(a)}})}function P(e){var n=new r.ServerStyleSheet;return t.renderToString(l.default.createElement(r.StyleSheetManager,{sheet:n.instance},l.default.createElement(l.default.Fragment,null,e))),n.getStyleElement()}x();var T=x({},"styled-components",(function(e){var t=e.root,n=e.ssr,o=e.children;return n?l.default.createElement(l.default.Fragment,null,P(o),o):l.default.createElement(r.StyleSheetManager,{target:t},l.default.createElement(l.default.Fragment,null,o))}));exports.default=T,exports.getStyleSheets=P; | ||
//# sourceMappingURL=styled-components.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
311932
1