@seamly/web-ui 22.3.0-beta.2 → 22.3.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/build/dist/lib/components.js +162 -161
  2. package/build/dist/lib/components.js.map +1 -1
  3. package/build/dist/lib/components.min.js +1 -1
  4. package/build/dist/lib/components.min.js.map +1 -1
  5. package/build/dist/lib/hooks.js +162 -161
  6. package/build/dist/lib/hooks.js.map +1 -1
  7. package/build/dist/lib/hooks.min.js +1 -1
  8. package/build/dist/lib/hooks.min.js.map +1 -1
  9. package/build/dist/lib/index.debug.js +158 -86
  10. package/build/dist/lib/index.debug.js.map +1 -1
  11. package/build/dist/lib/index.debug.min.js +1 -1
  12. package/build/dist/lib/index.debug.min.js.map +1 -1
  13. package/build/dist/lib/index.js +348 -190
  14. package/build/dist/lib/index.js.map +1 -1
  15. package/build/dist/lib/index.min.js +1 -1
  16. package/build/dist/lib/index.min.js.map +1 -1
  17. package/build/dist/lib/standalone.js +764 -201
  18. package/build/dist/lib/standalone.js.map +1 -1
  19. package/build/dist/lib/standalone.min.js +1 -1
  20. package/build/dist/lib/standalone.min.js.map +1 -1
  21. package/build/dist/lib/storage.min.js.map +1 -1
  22. package/build/dist/lib/style-guide.js +202 -188
  23. package/build/dist/lib/style-guide.js.map +1 -1
  24. package/build/dist/lib/style-guide.min.js +1 -1
  25. package/build/dist/lib/style-guide.min.js.map +1 -1
  26. package/build/dist/lib/styles-default-implementation.css +1 -1
  27. package/build/dist/lib/styles.css +1 -1
  28. package/build/dist/lib/utils.js +202 -188
  29. package/build/dist/lib/utils.js.map +1 -1
  30. package/build/dist/lib/utils.min.js +1 -1
  31. package/build/dist/lib/utils.min.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/javascripts/api/conversation-connector.ts +6 -9
  34. package/src/javascripts/ui/components/core/seamly-event-subscriber.ts +20 -15
@@ -8159,32 +8159,34 @@ __webpack_require__.r(__webpack_exports__);
8159
8159
  /* harmony export */ Component: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Component),
8160
8160
  /* harmony export */ Fragment: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Fragment),
8161
8161
  /* harmony export */ PureComponent: () => (/* binding */ w),
8162
- /* harmony export */ StrictMode: () => (/* binding */ mn),
8163
- /* harmony export */ Suspense: () => (/* binding */ D),
8162
+ /* harmony export */ StrictMode: () => (/* binding */ yn),
8163
+ /* harmony export */ Suspense: () => (/* binding */ U),
8164
8164
  /* harmony export */ SuspenseList: () => (/* binding */ V),
8165
8165
  /* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */ ln),
8166
- /* harmony export */ cloneElement: () => (/* binding */ sn),
8166
+ /* harmony export */ cloneElement: () => (/* binding */ hn),
8167
8167
  /* harmony export */ createContext: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createContext),
8168
8168
  /* harmony export */ createElement: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createElement),
8169
8169
  /* harmony export */ createFactory: () => (/* binding */ fn),
8170
8170
  /* harmony export */ createPortal: () => (/* binding */ z),
8171
8171
  /* harmony export */ createRef: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createRef),
8172
- /* harmony export */ "default": () => (/* binding */ Cn),
8173
- /* harmony export */ findDOMNode: () => (/* binding */ vn),
8174
- /* harmony export */ flushSync: () => (/* binding */ pn),
8172
+ /* harmony export */ "default": () => (/* binding */ wn),
8173
+ /* harmony export */ findDOMNode: () => (/* binding */ dn),
8174
+ /* harmony export */ flushSync: () => (/* binding */ mn),
8175
8175
  /* harmony export */ forwardRef: () => (/* binding */ k),
8176
8176
  /* harmony export */ hydrate: () => (/* binding */ J),
8177
+ /* harmony export */ isElement: () => (/* binding */ Cn),
8178
+ /* harmony export */ isFragment: () => (/* binding */ sn),
8177
8179
  /* harmony export */ isValidElement: () => (/* binding */ an),
8178
8180
  /* harmony export */ lazy: () => (/* binding */ M),
8179
8181
  /* harmony export */ memo: () => (/* binding */ x),
8180
8182
  /* harmony export */ render: () => (/* binding */ G),
8181
- /* harmony export */ startTransition: () => (/* binding */ yn),
8182
- /* harmony export */ unmountComponentAtNode: () => (/* binding */ hn),
8183
- /* harmony export */ unstable_batchedUpdates: () => (/* binding */ dn),
8184
- /* harmony export */ useDeferredValue: () => (/* binding */ _n),
8185
- /* harmony export */ useInsertionEffect: () => (/* binding */ Sn),
8186
- /* harmony export */ useSyncExternalStore: () => (/* binding */ gn),
8187
- /* harmony export */ useTransition: () => (/* binding */ bn),
8183
+ /* harmony export */ startTransition: () => (/* binding */ _n),
8184
+ /* harmony export */ unmountComponentAtNode: () => (/* binding */ vn),
8185
+ /* harmony export */ unstable_batchedUpdates: () => (/* binding */ pn),
8186
+ /* harmony export */ useDeferredValue: () => (/* binding */ bn),
8187
+ /* harmony export */ useInsertionEffect: () => (/* binding */ gn),
8188
+ /* harmony export */ useSyncExternalStore: () => (/* binding */ En),
8189
+ /* harmony export */ useTransition: () => (/* binding */ Sn),
8188
8190
  /* harmony export */ version: () => (/* binding */ cn)
8189
8191
  /* harmony export */ });
8190
8192
  /* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7210);
@@ -8192,9 +8194,9 @@ __webpack_require__.r(__webpack_exports__);
8192
8194
  /* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9207);
8193
8195
  /* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(preact_hooks__WEBPACK_IMPORTED_MODULE_1__);
8194
8196
  /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
8195
- /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in preact_hooks__WEBPACK_IMPORTED_MODULE_1__) if(["default","Component","Fragment","createContext","createElement","createRef","Children","PureComponent","StrictMode","Suspense","SuspenseList","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createFactory","createPortal","findDOMNode","flushSync","forwardRef","hydrate","isValidElement","lazy","memo","render","startTransition","unmountComponentAtNode","unstable_batchedUpdates","useDeferredValue","useInsertionEffect","useSyncExternalStore","useTransition","version"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => preact_hooks__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]
8197
+ /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in preact_hooks__WEBPACK_IMPORTED_MODULE_1__) if(["default","Component","Fragment","createContext","createElement","createRef","Children","PureComponent","StrictMode","Suspense","SuspenseList","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createFactory","createPortal","findDOMNode","flushSync","forwardRef","hydrate","isElement","isFragment","isValidElement","lazy","memo","render","startTransition","unmountComponentAtNode","unstable_batchedUpdates","useDeferredValue","useInsertionEffect","useSyncExternalStore","useTransition","version"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => preact_hooks__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]
8196
8198
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
8197
- function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n}function x(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var R=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),R&&R(n)};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},O={map:A,forEach:A,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r)};var I=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n)},(D.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l())};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},D.prototype.componentWillUnmount=function(){this.t=[]},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function P(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function z(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(j,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u()};e?e(o):o()}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t)})};var B="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,H=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Z=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Y=/[A-Z0-9]/g,$="undefined"!=typeof document,q=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function G(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function J(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var K=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function Q(){}function X(){return this.cancelBubble}function nn(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return K&&(n=K(n)),n.persist=Q,n.isPropagationStopped=X,n.isDefaultPrevented=nn,n.nativeEvent=n};var tn,en={enumerable:!1,configurable:!0,get:function(){return this.class}},rn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||$&&"children"===o&&"noscript"===e||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||q(t.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":Z.test(o)?o=l:-1===e.indexOf("-")&&H.test(o)?o=o.replace(Y,"-$&").toLowerCase():null===i&&(i=void 0):l=o="oninput","oninput"===l&&u[o=l]&&(o="oninputCapture"),u[o]=i}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",en)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=B,rn&&rn(n)};var un=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){un&&un(n),tn=n.__c};var on=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){on&&on(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),tn=null};var ln={ReactCurrentDispatcher:{current:{readContext:function(n){return tn.__n[n.__c].props.value}}}},cn="17.0.2";function fn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function an(n){return!!n&&n.$$typeof===B}function sn(n){return an(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function hn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function vn(n){return n&&(n.base||1===n.nodeType&&n)||null}var dn=function(n,t){return n(t)},pn=function(n,t){return n(t)},mn=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment;function yn(n){n()}function _n(n){return n}function bn(){return[!1,yn]}var Sn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function gn(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u})})},[n]),e}var Cn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:Sn,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:gn,startTransition:yn,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"17.0.2",Children:O,render:G,hydrate:J,unmountComponentAtNode:hn,createPortal:z,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:fn,cloneElement:sn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:an,findDOMNode:vn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:w,memo:x,forwardRef:k,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:mn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ln};
8199
+ function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n}function x(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var R=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),R&&R(n)};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},O={map:A,forEach:A,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r)};var F=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function I(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return I(n,t,e)})),n}function L(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function U(){this.__u=0,this.t=null,this.__b=null}function D(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),F&&F(n)},(U.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=D(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l())};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=L(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},U.prototype.componentWillUnmount=function(){this.t=[]},U.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=I(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function P(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(P,{context:e.context},n.__v),e.l)}function z(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(j,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=D(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u()};e?e(o):o()}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t)})};var B="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,H=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Z=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Y=/[A-Z0-9]/g,$="undefined"!=typeof document,q=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function G(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function J(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var K=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function Q(){}function X(){return this.cancelBubble}function nn(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return K&&(n=K(n)),n.persist=Q,n.isPropagationStopped=X,n.isDefaultPrevented=nn,n.nativeEvent=n};var tn,en={enumerable:!1,configurable:!0,get:function(){return this.class}},rn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||$&&"children"===o&&"noscript"===e||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||q(t.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":Z.test(o)?o=l:-1===e.indexOf("-")&&H.test(o)?o=o.replace(Y,"-$&").toLowerCase():null===i&&(i=void 0):l=o="oninput","oninput"===l&&u[o=l]&&(o="oninputCapture"),u[o]=i}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",en)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=B,rn&&rn(n)};var un=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){un&&un(n),tn=n.__c};var on=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){on&&on(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),tn=null};var ln={ReactCurrentDispatcher:{current:{readContext:function(n){return tn.__n[n.__c].props.value}}}},cn="17.0.2";function fn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function an(n){return!!n&&n.$$typeof===B}function sn(n){return an(n)&&n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment}function hn(n){return an(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function vn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function dn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)},mn=function(n,t){return n(t)},yn=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment;function _n(n){n()}function bn(n){return n}function Sn(){return[!1,_n]}var gn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,Cn=an;function En(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u})})},[n]),e}var wn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:gn,useTransition:Sn,useDeferredValue:bn,useSyncExternalStore:En,startTransition:_n,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"17.0.2",Children:O,render:G,hydrate:J,unmountComponentAtNode:vn,createPortal:z,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:fn,cloneElement:hn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:an,isElement:Cn,isFragment:sn,findDOMNode:dn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:w,memo:x,forwardRef:k,flushSync:mn,unstable_batchedUpdates:pn,StrictMode:yn,Suspense:U,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ln};
8198
8200
  //# sourceMappingURL=compat.module.js.map
8199
8201
 
8200
8202
 
@@ -8258,42 +8260,41 @@ var compat_module = __webpack_require__(8661);
8258
8260
  var batch = __webpack_require__(9256);
8259
8261
  ;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Context.js
8260
8262
 
8261
- const ContextKey = Symbol.for(`react-redux-context-${compat_module.version}`);
8262
- const gT = globalThis;
8263
+ const ContextKey = Symbol.for(`react-redux-context`);
8264
+ const gT = typeof globalThis !== "undefined" ? globalThis :
8265
+ /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
8266
+ {};
8263
8267
 
8264
8268
  function getContext() {
8265
- let realContext = gT[ContextKey];
8269
+ var _gT$ContextKey;
8270
+
8271
+ if (!compat_module.createContext) return {};
8272
+ const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
8273
+ let realContext = contextMap.get(compat_module.createContext);
8266
8274
 
8267
8275
  if (!realContext) {
8268
- realContext = (0,compat_module.createContext)(null);
8276
+ realContext = compat_module.createContext(null);
8269
8277
 
8270
8278
  if (false) {}
8271
8279
 
8272
- gT[ContextKey] = realContext;
8280
+ contextMap.set(compat_module.createContext, realContext);
8273
8281
  }
8274
8282
 
8275
8283
  return realContext;
8276
8284
  }
8277
8285
 
8278
- const Context_ReactReduxContext = /*#__PURE__*/new Proxy({}, /*#__PURE__*/new Proxy({}, {
8279
- get(_, handler) {
8280
- const target = getContext(); // @ts-ignore
8281
-
8282
- return (_target, ...args) => Reflect[handler](target, ...args);
8283
- }
8284
-
8285
- }));
8286
+ const Context_ReactReduxContext = /*#__PURE__*/getContext();
8286
8287
  /* harmony default export */ const Context = ((/* unused pure expression or super */ null && (Context_ReactReduxContext)));
8287
8288
  ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useReduxContext.js
8288
8289
 
8289
8290
 
8290
8291
 
8291
- /**
8292
- * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
8293
- * hook that you should usually not need to call directly.
8294
- *
8295
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
8296
- * @returns {Function} A `useReduxContext` hook bound to the specified context.
8292
+ /**
8293
+ * Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
8294
+ * hook that you should usually not need to call directly.
8295
+ *
8296
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
8297
+ * @returns {Function} A `useReduxContext` hook bound to the specified context.
8297
8298
  */
8298
8299
  function createReduxContextHook(context = Context_ReactReduxContext) {
8299
8300
  return function useReduxContext() {
@@ -8304,21 +8305,21 @@ function createReduxContextHook(context = Context_ReactReduxContext) {
8304
8305
  return contextValue;
8305
8306
  };
8306
8307
  }
8307
- /**
8308
- * A hook to access the value of the `ReactReduxContext`. This is a low-level
8309
- * hook that you should usually not need to call directly.
8310
- *
8311
- * @returns {any} the value of the `ReactReduxContext`
8312
- *
8313
- * @example
8314
- *
8315
- * import React from 'react'
8316
- * import { useReduxContext } from 'react-redux'
8317
- *
8318
- * export const CounterComponent = () => {
8319
- * const { store } = useReduxContext()
8320
- * return <div>{store.getState()}</div>
8321
- * }
8308
+ /**
8309
+ * A hook to access the value of the `ReactReduxContext`. This is a low-level
8310
+ * hook that you should usually not need to call directly.
8311
+ *
8312
+ * @returns {any} the value of the `ReactReduxContext`
8313
+ *
8314
+ * @example
8315
+ *
8316
+ * import React from 'react'
8317
+ * import { useReduxContext } from 'react-redux'
8318
+ *
8319
+ * export const CounterComponent = () => {
8320
+ * const { store } = useReduxContext()
8321
+ * return <div>{store.getState()}</div>
8322
+ * }
8322
8323
  */
8323
8324
 
8324
8325
  const useReduxContext_useReduxContext = /*#__PURE__*/createReduxContextHook();
@@ -8337,11 +8338,11 @@ const initializeUseSelector = fn => {
8337
8338
  };
8338
8339
 
8339
8340
  const refEquality = (a, b) => a === b;
8340
- /**
8341
- * Hook factory, which creates a `useSelector` hook bound to a given context.
8342
- *
8343
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
8344
- * @returns {Function} A `useSelector` hook bound to the specified context.
8341
+ /**
8342
+ * Hook factory, which creates a `useSelector` hook bound to a given context.
8343
+ *
8344
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
8345
+ * @returns {Function} A `useSelector` hook bound to the specified context.
8345
8346
  */
8346
8347
 
8347
8348
 
@@ -8381,28 +8382,28 @@ function createSelectorHook(context = Context_ReactReduxContext) {
8381
8382
  return selectedState;
8382
8383
  };
8383
8384
  }
8384
- /**
8385
- * A hook to access the redux store's state. This hook takes a selector function
8386
- * as an argument. The selector is called with the store state.
8387
- *
8388
- * This hook takes an optional equality comparison function as the second parameter
8389
- * that allows you to customize the way the selected state is compared to determine
8390
- * whether the component needs to be re-rendered.
8391
- *
8392
- * @param {Function} selector the selector function
8393
- * @param {Function=} equalityFn the function that will be used to determine equality
8394
- *
8395
- * @returns {any} the selected state
8396
- *
8397
- * @example
8398
- *
8399
- * import React from 'react'
8400
- * import { useSelector } from 'react-redux'
8401
- *
8402
- * export const CounterComponent = () => {
8403
- * const counter = useSelector(state => state.counter)
8404
- * return <div>{counter}</div>
8405
- * }
8385
+ /**
8386
+ * A hook to access the redux store's state. This hook takes a selector function
8387
+ * as an argument. The selector is called with the store state.
8388
+ *
8389
+ * This hook takes an optional equality comparison function as the second parameter
8390
+ * that allows you to customize the way the selected state is compared to determine
8391
+ * whether the component needs to be re-rendered.
8392
+ *
8393
+ * @param {Function} selector the selector function
8394
+ * @param {Function=} equalityFn the function that will be used to determine equality
8395
+ *
8396
+ * @returns {any} the selected state
8397
+ *
8398
+ * @example
8399
+ *
8400
+ * import React from 'react'
8401
+ * import { useSelector } from 'react-redux'
8402
+ *
8403
+ * export const CounterComponent = () => {
8404
+ * const counter = useSelector(state => state.counter)
8405
+ * return <div>{counter}</div>
8406
+ * }
8406
8407
  */
8407
8408
 
8408
8409
  const useSelector = /*#__PURE__*/createSelectorHook();
@@ -8550,7 +8551,7 @@ function Subscription_createSubscription(store, parentSub) {
8550
8551
  // Matches logic in React's `shared/ExecutionEnvironment` file
8551
8552
 
8552
8553
  const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
8553
- const useIsomorphicLayoutEffect_useIsomorphicLayoutEffect = (/* unused pure expression or super */ null && (canUseDOM ? useLayoutEffect : useEffect));
8554
+ const useIsomorphicLayoutEffect_useIsomorphicLayoutEffect = canUseDOM ? compat_module.useLayoutEffect : compat_module.useEffect;
8554
8555
  ;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/connect.js
8555
8556
 
8556
8557
 
@@ -8692,31 +8693,31 @@ const initStateUpdates = () => EMPTY_ARRAY;
8692
8693
  function strictEqual(a, b) {
8693
8694
  return a === b;
8694
8695
  }
8695
- /**
8696
- * Infers the type of props that a connector will inject into a component.
8696
+ /**
8697
+ * Infers the type of props that a connector will inject into a component.
8697
8698
  */
8698
8699
 
8699
8700
 
8700
8701
  let hasWarnedAboutDeprecatedPureOption = false;
8701
- /**
8702
- * Connects a React component to a Redux store.
8703
- *
8704
- * - Without arguments, just wraps the component, without changing the behavior / props
8705
- *
8706
- * - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
8707
- * is to override ownProps (as stated in the docs), so what remains is everything that's
8708
- * not a state or dispatch prop
8709
- *
8710
- * - When 3rd param is passed, we don't know if ownProps propagate and whether they
8711
- * should be valid component props, because it depends on mergeProps implementation.
8712
- * As such, it is the user's responsibility to extend ownProps interface from state or
8713
- * dispatch props or both when applicable
8714
- *
8715
- * @param mapStateToProps A function that extracts values from state
8716
- * @param mapDispatchToProps Setup for dispatching actions
8717
- * @param mergeProps Optional callback to merge state and dispatch props together
8718
- * @param options Options for configuring the connection
8719
- *
8702
+ /**
8703
+ * Connects a React component to a Redux store.
8704
+ *
8705
+ * - Without arguments, just wraps the component, without changing the behavior / props
8706
+ *
8707
+ * - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
8708
+ * is to override ownProps (as stated in the docs), so what remains is everything that's
8709
+ * not a state or dispatch prop
8710
+ *
8711
+ * - When 3rd param is passed, we don't know if ownProps propagate and whether they
8712
+ * should be valid component props, because it depends on mergeProps implementation.
8713
+ * As such, it is the user's responsibility to extend ownProps interface from state or
8714
+ * dispatch props or both when applicable
8715
+ *
8716
+ * @param mapStateToProps A function that extracts values from state
8717
+ * @param mapDispatchToProps Setup for dispatching actions
8718
+ * @param mergeProps Optional callback to merge state and dispatch props together
8719
+ * @param options Options for configuring the connection
8720
+ *
8720
8721
  */
8721
8722
 
8722
8723
  function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
@@ -8762,7 +8763,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
8762
8763
  };
8763
8764
 
8764
8765
  function ConnectFunction(props) {
8765
- const [propsContext, reactReduxForwardedRef, wrapperProps] = useMemo(() => {
8766
+ const [propsContext, reactReduxForwardedRef, wrapperProps] = React.useMemo(() => {
8766
8767
  // Distinguish between actual "data" props that were passed to the wrapper component,
8767
8768
  // and values needed to control behavior (forwarded refs, alternate context instances).
8768
8769
  // To maintain the wrapperProps object reference, memoize this destructuring.
@@ -8773,14 +8774,14 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
8773
8774
 
8774
8775
  return [props.context, reactReduxForwardedRef, wrapperProps];
8775
8776
  }, [props]);
8776
- const ContextToUse = useMemo(() => {
8777
+ const ContextToUse = React.useMemo(() => {
8777
8778
  // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
8778
8779
  // Memoize the check that determines which context instance we should use.
8779
8780
  return propsContext && propsContext.Consumer && // @ts-ignore
8780
8781
  isContextConsumer( /*#__PURE__*/React.createElement(propsContext.Consumer, null)) ? propsContext : Context;
8781
8782
  }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
8782
8783
 
8783
- const contextValue = useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
8784
+ const contextValue = React.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
8784
8785
  // We'll check to see if it _looks_ like a Redux store first.
8785
8786
  // This allows us to pass through a `store` prop that is just a plain value.
8786
8787
 
@@ -8792,12 +8793,12 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
8792
8793
 
8793
8794
  const store = didStoreComeFromProps ? props.store : contextValue.store;
8794
8795
  const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
8795
- const childPropsSelector = useMemo(() => {
8796
+ const childPropsSelector = React.useMemo(() => {
8796
8797
  // The child props selector needs the store reference as an input.
8797
8798
  // Re-create this selector whenever the store changes.
8798
8799
  return defaultSelectorFactory(store.dispatch, selectorFactoryOptions);
8799
8800
  }, [store]);
8800
- const [subscription, notifyNestedSubs] = useMemo(() => {
8801
+ const [subscription, notifyNestedSubs] = React.useMemo(() => {
8801
8802
  if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
8802
8803
  // connected to the store via props shouldn't use subscription from context, or vice versa.
8803
8804
 
@@ -8811,7 +8812,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
8811
8812
  }, [store, didStoreComeFromProps, contextValue]); // Determine what {store, subscription} value should be put into nested context, if necessary,
8812
8813
  // and memoize that value to avoid unnecessary context updates.
8813
8814
 
8814
- const overriddenContextValue = useMemo(() => {
8815
+ const overriddenContextValue = React.useMemo(() => {
8815
8816
  if (didStoreComeFromProps) {
8816
8817
  // This component is directly subscribed to a store from props.
8817
8818
  // We don't want descendants reading from this store - pass down whatever
@@ -8826,20 +8827,20 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
8826
8827
  });
8827
8828
  }, [didStoreComeFromProps, contextValue, subscription]); // Set up refs to coordinate values between the subscription effect and the render logic
8828
8829
 
8829
- const lastChildProps = useRef();
8830
- const lastWrapperProps = useRef(wrapperProps);
8831
- const childPropsFromStoreUpdate = useRef();
8832
- const renderIsScheduled = useRef(false);
8833
- const isProcessingDispatch = useRef(false);
8834
- const isMounted = useRef(false);
8835
- const latestSubscriptionCallbackError = useRef();
8830
+ const lastChildProps = React.useRef();
8831
+ const lastWrapperProps = React.useRef(wrapperProps);
8832
+ const childPropsFromStoreUpdate = React.useRef();
8833
+ const renderIsScheduled = React.useRef(false);
8834
+ const isProcessingDispatch = React.useRef(false);
8835
+ const isMounted = React.useRef(false);
8836
+ const latestSubscriptionCallbackError = React.useRef();
8836
8837
  useIsomorphicLayoutEffect(() => {
8837
8838
  isMounted.current = true;
8838
8839
  return () => {
8839
8840
  isMounted.current = false;
8840
8841
  };
8841
8842
  }, []);
8842
- const actualChildPropsSelector = useMemo(() => {
8843
+ const actualChildPropsSelector = React.useMemo(() => {
8843
8844
  const selector = () => {
8844
8845
  // Tricky logic here:
8845
8846
  // - This render may have been triggered by a Redux store update that produced new child props
@@ -8863,7 +8864,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
8863
8864
  // about useLayoutEffect in SSR, so we try to detect environment and fall back to
8864
8865
  // just useEffect instead to avoid the warning, since neither will run anyway.
8865
8866
 
8866
- const subscribeForReact = useMemo(() => {
8867
+ const subscribeForReact = React.useMemo(() => {
8867
8868
  const subscribe = reactListener => {
8868
8869
  if (!subscription) {
8869
8870
  return () => {};
@@ -8899,7 +8900,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
8899
8900
  }); // Now that all that's done, we can finally try to actually render the child component.
8900
8901
  // We memoize the elements for the rendered child component as an optimization.
8901
8902
 
8902
- const renderedWrappedComponent = useMemo(() => {
8903
+ const renderedWrappedComponent = React.useMemo(() => {
8903
8904
  return (
8904
8905
  /*#__PURE__*/
8905
8906
  // @ts-ignore
@@ -8910,7 +8911,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
8910
8911
  }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
8911
8912
  // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
8912
8913
 
8913
- const renderedChild = useMemo(() => {
8914
+ const renderedChild = React.useMemo(() => {
8914
8915
  if (shouldHandleStateChanges) {
8915
8916
  // If this component is subscribed to store updates, we need to pass its own
8916
8917
  // subscription instance down to our descendants. That means rendering the same
@@ -8967,7 +8968,7 @@ function Provider({
8967
8968
  stabilityCheck = 'once',
8968
8969
  noopCheck = 'once'
8969
8970
  }) {
8970
- const contextValue = useMemo(() => {
8971
+ const contextValue = React.useMemo(() => {
8971
8972
  const subscription = createSubscription(store);
8972
8973
  return {
8973
8974
  store,
@@ -8977,7 +8978,7 @@ function Provider({
8977
8978
  noopCheck
8978
8979
  };
8979
8980
  }, [store, serverState, stabilityCheck, noopCheck]);
8980
- const previousState = useMemo(() => store.getState(), [store]);
8981
+ const previousState = React.useMemo(() => store.getState(), [store]);
8981
8982
  useIsomorphicLayoutEffect(() => {
8982
8983
  const {
8983
8984
  subscription
@@ -9005,11 +9006,11 @@ function Provider({
9005
9006
  ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useStore.js
9006
9007
 
9007
9008
 
9008
- /**
9009
- * Hook factory, which creates a `useStore` hook bound to a given context.
9010
- *
9011
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
9012
- * @returns {Function} A `useStore` hook bound to the specified context.
9009
+ /**
9010
+ * Hook factory, which creates a `useStore` hook bound to a given context.
9011
+ *
9012
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
9013
+ * @returns {Function} A `useStore` hook bound to the specified context.
9013
9014
  */
9014
9015
 
9015
9016
  function createStoreHook(context = Context_ReactReduxContext) {
@@ -9024,31 +9025,31 @@ function createStoreHook(context = Context_ReactReduxContext) {
9024
9025
  return store;
9025
9026
  };
9026
9027
  }
9027
- /**
9028
- * A hook to access the redux store.
9029
- *
9030
- * @returns {any} the redux store
9031
- *
9032
- * @example
9033
- *
9034
- * import React from 'react'
9035
- * import { useStore } from 'react-redux'
9036
- *
9037
- * export const ExampleComponent = () => {
9038
- * const store = useStore()
9039
- * return <div>{store.getState()}</div>
9040
- * }
9028
+ /**
9029
+ * A hook to access the redux store.
9030
+ *
9031
+ * @returns {any} the redux store
9032
+ *
9033
+ * @example
9034
+ *
9035
+ * import React from 'react'
9036
+ * import { useStore } from 'react-redux'
9037
+ *
9038
+ * export const ExampleComponent = () => {
9039
+ * const store = useStore()
9040
+ * return <div>{store.getState()}</div>
9041
+ * }
9041
9042
  */
9042
9043
 
9043
9044
  const useStore_useStore = /*#__PURE__*/createStoreHook();
9044
9045
  ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useDispatch.js
9045
9046
 
9046
9047
 
9047
- /**
9048
- * Hook factory, which creates a `useDispatch` hook bound to a given context.
9049
- *
9050
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
9051
- * @returns {Function} A `useDispatch` hook bound to the specified context.
9048
+ /**
9049
+ * Hook factory, which creates a `useDispatch` hook bound to a given context.
9050
+ *
9051
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
9052
+ * @returns {Function} A `useDispatch` hook bound to the specified context.
9052
9053
  */
9053
9054
 
9054
9055
  function createDispatchHook(context = Context_ReactReduxContext) {
@@ -9060,26 +9061,26 @@ function createDispatchHook(context = Context_ReactReduxContext) {
9060
9061
  return store.dispatch;
9061
9062
  };
9062
9063
  }
9063
- /**
9064
- * A hook to access the redux `dispatch` function.
9065
- *
9066
- * @returns {any|function} redux store's `dispatch` function
9067
- *
9068
- * @example
9069
- *
9070
- * import React, { useCallback } from 'react'
9071
- * import { useDispatch } from 'react-redux'
9072
- *
9073
- * export const CounterComponent = ({ value }) => {
9074
- * const dispatch = useDispatch()
9075
- * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
9076
- * return (
9077
- * <div>
9078
- * <span>{value}</span>
9079
- * <button onClick={increaseCounter}>Increase counter</button>
9080
- * </div>
9081
- * )
9082
- * }
9064
+ /**
9065
+ * A hook to access the redux `dispatch` function.
9066
+ *
9067
+ * @returns {any|function} redux store's `dispatch` function
9068
+ *
9069
+ * @example
9070
+ *
9071
+ * import React, { useCallback } from 'react'
9072
+ * import { useDispatch } from 'react-redux'
9073
+ *
9074
+ * export const CounterComponent = ({ value }) => {
9075
+ * const dispatch = useDispatch()
9076
+ * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
9077
+ * return (
9078
+ * <div>
9079
+ * <span>{value}</span>
9080
+ * <button onClick={increaseCounter}>Increase counter</button>
9081
+ * </div>
9082
+ * )
9083
+ * }
9083
9084
  */
9084
9085
 
9085
9086
  const useDispatch = /*#__PURE__*/createDispatchHook();