@seamly/web-ui 21.0.2-beta.3 → 21.0.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/lib/components.js +109 -182
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/components.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/hooks.js +27 -27
- package/build/dist/lib/hooks.min.js +1 -1
- package/build/dist/lib/index.debug.js +5 -5
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +125 -186
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/standalone.js +156 -216
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/style-guide.js +131 -198
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.LICENSE.txt +1 -1
- package/build/dist/lib/utils.js +123 -186
- package/build/dist/lib/utils.min.js +1 -1
- package/build/dist/lib/utils.min.js.LICENSE.txt +1 -1
- package/package.json +1 -1
- package/src/javascripts/index.ts +1 -0
- package/src/javascripts/lib/external-api/index.js +17 -4
- package/src/javascripts/style-guide/components/static-core.js +8 -11
|
@@ -4165,10 +4165,10 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
|
4165
4165
|
/***/ 2532:
|
|
4166
4166
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4167
4167
|
|
|
4168
|
-
var
|
|
4168
|
+
var uncurryThis = __webpack_require__(5329);
|
|
4169
4169
|
|
|
4170
|
-
var toString =
|
|
4171
|
-
var stringSlice =
|
|
4170
|
+
var toString = uncurryThis({}.toString);
|
|
4171
|
+
var stringSlice = uncurryThis(''.slice);
|
|
4172
4172
|
|
|
4173
4173
|
module.exports = function (it) {
|
|
4174
4174
|
return stringSlice(toString(it), 8, -1);
|
|
@@ -5155,7 +5155,7 @@ module.exports = !fails(function () {
|
|
|
5155
5155
|
|
|
5156
5156
|
var global = __webpack_require__(1899);
|
|
5157
5157
|
var apply = __webpack_require__(9730);
|
|
5158
|
-
var uncurryThis = __webpack_require__(
|
|
5158
|
+
var uncurryThis = __webpack_require__(7484);
|
|
5159
5159
|
var isCallable = __webpack_require__(7475);
|
|
5160
5160
|
var getOwnPropertyDescriptor = (__webpack_require__(9677).f);
|
|
5161
5161
|
var isForced = __webpack_require__(7252);
|
|
@@ -5347,7 +5347,7 @@ module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? c
|
|
|
5347
5347
|
/***/ 6843:
|
|
5348
5348
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5349
5349
|
|
|
5350
|
-
var uncurryThis = __webpack_require__(
|
|
5350
|
+
var uncurryThis = __webpack_require__(7484);
|
|
5351
5351
|
var aCallable = __webpack_require__(4883);
|
|
5352
5352
|
var NATIVE_BIND = __webpack_require__(8285);
|
|
5353
5353
|
|
|
@@ -5458,19 +5458,17 @@ module.exports = {
|
|
|
5458
5458
|
|
|
5459
5459
|
/***/ }),
|
|
5460
5460
|
|
|
5461
|
-
/***/
|
|
5461
|
+
/***/ 7484:
|
|
5462
5462
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5463
5463
|
|
|
5464
|
-
var
|
|
5465
|
-
|
|
5466
|
-
var FunctionPrototype = Function.prototype;
|
|
5467
|
-
var call = FunctionPrototype.call;
|
|
5468
|
-
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
5464
|
+
var classofRaw = __webpack_require__(2532);
|
|
5465
|
+
var uncurryThis = __webpack_require__(5329);
|
|
5469
5466
|
|
|
5470
|
-
module.exports =
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5467
|
+
module.exports = function (fn) {
|
|
5468
|
+
// Nashorn bug:
|
|
5469
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
5470
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
5471
|
+
if (classofRaw(fn) === 'Function') return uncurryThis(fn);
|
|
5474
5472
|
};
|
|
5475
5473
|
|
|
5476
5474
|
|
|
@@ -5479,14 +5477,16 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
|
5479
5477
|
/***/ 5329:
|
|
5480
5478
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5481
5479
|
|
|
5482
|
-
var
|
|
5483
|
-
var uncurryThisRaw = __webpack_require__(4163);
|
|
5480
|
+
var NATIVE_BIND = __webpack_require__(8285);
|
|
5484
5481
|
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5482
|
+
var FunctionPrototype = Function.prototype;
|
|
5483
|
+
var call = FunctionPrototype.call;
|
|
5484
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
5485
|
+
|
|
5486
|
+
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
5487
|
+
return function () {
|
|
5488
|
+
return call.apply(fn, arguments);
|
|
5489
|
+
};
|
|
5490
5490
|
};
|
|
5491
5491
|
|
|
5492
5492
|
|
|
@@ -7520,10 +7520,10 @@ var store = __webpack_require__(3030);
|
|
|
7520
7520
|
(module.exports = function (key, value) {
|
|
7521
7521
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
7522
7522
|
})('versions', []).push({
|
|
7523
|
-
version: '3.26.
|
|
7523
|
+
version: '3.26.1',
|
|
7524
7524
|
mode: IS_PURE ? 'pure' : 'global',
|
|
7525
7525
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
7526
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.26.
|
|
7526
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
|
|
7527
7527
|
source: 'https://github.com/zloirock/core-js'
|
|
7528
7528
|
});
|
|
7529
7529
|
|
|
@@ -8516,7 +8516,7 @@ addToUnscopables('includes');
|
|
|
8516
8516
|
|
|
8517
8517
|
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
|
8518
8518
|
var $ = __webpack_require__(6887);
|
|
8519
|
-
var uncurryThis = __webpack_require__(
|
|
8519
|
+
var uncurryThis = __webpack_require__(7484);
|
|
8520
8520
|
var $indexOf = (__webpack_require__(1692).indexOf);
|
|
8521
8521
|
var arrayMethodIsStrict = __webpack_require__(4194);
|
|
8522
8522
|
|
|
@@ -12664,53 +12664,53 @@ function arrObjKeys(obj, inspect) {
|
|
|
12664
12664
|
"use strict";
|
|
12665
12665
|
__webpack_require__.r(__webpack_exports__);
|
|
12666
12666
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12667
|
-
/* harmony export */ "Children": function() { return /* binding */
|
|
12667
|
+
/* harmony export */ "Children": function() { return /* binding */ O; },
|
|
12668
12668
|
/* harmony export */ "Component": function() { return /* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.wA; },
|
|
12669
12669
|
/* harmony export */ "Fragment": function() { return /* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.HY; },
|
|
12670
|
-
/* harmony export */ "PureComponent": function() { return /* binding */
|
|
12671
|
-
/* harmony export */ "StrictMode": function() { return /* binding */
|
|
12672
|
-
/* harmony export */ "Suspense": function() { return /* binding */
|
|
12673
|
-
/* harmony export */ "SuspenseList": function() { return /* binding */
|
|
12674
|
-
/* harmony export */ "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED": function() { return /* binding */
|
|
12675
|
-
/* harmony export */ "cloneElement": function() { return /* binding */
|
|
12670
|
+
/* harmony export */ "PureComponent": function() { return /* binding */ w; },
|
|
12671
|
+
/* harmony export */ "StrictMode": function() { return /* binding */ vn; },
|
|
12672
|
+
/* harmony export */ "Suspense": function() { return /* binding */ D; },
|
|
12673
|
+
/* harmony export */ "SuspenseList": function() { return /* binding */ V; },
|
|
12674
|
+
/* harmony export */ "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED": function() { return /* binding */ rn; },
|
|
12675
|
+
/* harmony export */ "cloneElement": function() { return /* binding */ cn; },
|
|
12676
12676
|
/* harmony export */ "createContext": function() { return /* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.kr; },
|
|
12677
12677
|
/* harmony export */ "createElement": function() { return /* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.az; },
|
|
12678
|
-
/* harmony export */ "createFactory": function() { return /* binding */
|
|
12679
|
-
/* harmony export */ "createPortal": function() { return /* binding */
|
|
12678
|
+
/* harmony export */ "createFactory": function() { return /* binding */ on; },
|
|
12679
|
+
/* harmony export */ "createPortal": function() { return /* binding */ j; },
|
|
12680
12680
|
/* harmony export */ "createRef": function() { return /* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Vf; },
|
|
12681
|
-
/* harmony export */ "default": function() { return /* binding */
|
|
12682
|
-
/* harmony export */ "findDOMNode": function() { return /* binding */
|
|
12683
|
-
/* harmony export */ "flushSync": function() { return /* binding */
|
|
12684
|
-
/* harmony export */ "forwardRef": function() { return /* binding */
|
|
12685
|
-
/* harmony export */ "hydrate": function() { return /* binding */
|
|
12686
|
-
/* harmony export */ "isValidElement": function() { return /* binding */
|
|
12687
|
-
/* harmony export */ "lazy": function() { return /* binding */
|
|
12688
|
-
/* harmony export */ "memo": function() { return /* binding */
|
|
12689
|
-
/* harmony export */ "render": function() { return /* binding */
|
|
12690
|
-
/* harmony export */ "startTransition": function() { return /* binding */
|
|
12691
|
-
/* harmony export */ "unmountComponentAtNode": function() { return /* binding */
|
|
12692
|
-
/* harmony export */ "unstable_batchedUpdates": function() { return /* binding */
|
|
12681
|
+
/* harmony export */ "default": function() { return /* binding */ bn; },
|
|
12682
|
+
/* harmony export */ "findDOMNode": function() { return /* binding */ an; },
|
|
12683
|
+
/* harmony export */ "flushSync": function() { return /* binding */ hn; },
|
|
12684
|
+
/* harmony export */ "forwardRef": function() { return /* binding */ k; },
|
|
12685
|
+
/* harmony export */ "hydrate": function() { return /* binding */ q; },
|
|
12686
|
+
/* harmony export */ "isValidElement": function() { return /* binding */ ln; },
|
|
12687
|
+
/* harmony export */ "lazy": function() { return /* binding */ M; },
|
|
12688
|
+
/* harmony export */ "memo": function() { return /* binding */ R; },
|
|
12689
|
+
/* harmony export */ "render": function() { return /* binding */ Y; },
|
|
12690
|
+
/* harmony export */ "startTransition": function() { return /* binding */ dn; },
|
|
12691
|
+
/* harmony export */ "unmountComponentAtNode": function() { return /* binding */ fn; },
|
|
12692
|
+
/* harmony export */ "unstable_batchedUpdates": function() { return /* binding */ sn; },
|
|
12693
12693
|
/* harmony export */ "useCallback": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.I4; },
|
|
12694
12694
|
/* harmony export */ "useContext": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.qp; },
|
|
12695
12695
|
/* harmony export */ "useDebugValue": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.Qb; },
|
|
12696
|
-
/* harmony export */ "useDeferredValue": function() { return /* binding */
|
|
12696
|
+
/* harmony export */ "useDeferredValue": function() { return /* binding */ pn; },
|
|
12697
12697
|
/* harmony export */ "useEffect": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.d4; },
|
|
12698
12698
|
/* harmony export */ "useErrorBoundary": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.cO; },
|
|
12699
12699
|
/* harmony export */ "useId": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.Me; },
|
|
12700
12700
|
/* harmony export */ "useImperativeHandle": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.aP; },
|
|
12701
|
-
/* harmony export */ "useInsertionEffect": function() { return /* binding */
|
|
12701
|
+
/* harmony export */ "useInsertionEffect": function() { return /* binding */ yn; },
|
|
12702
12702
|
/* harmony export */ "useLayoutEffect": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.bt; },
|
|
12703
12703
|
/* harmony export */ "useMemo": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.Ye; },
|
|
12704
12704
|
/* harmony export */ "useReducer": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__._Y; },
|
|
12705
12705
|
/* harmony export */ "useRef": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.sO; },
|
|
12706
12706
|
/* harmony export */ "useState": function() { return /* reexport safe */ preact_hooks__WEBPACK_IMPORTED_MODULE_1__.eJ; },
|
|
12707
|
-
/* harmony export */ "useSyncExternalStore": function() { return /* binding */
|
|
12708
|
-
/* harmony export */ "useTransition": function() { return /* binding */
|
|
12709
|
-
/* harmony export */ "version": function() { return /* binding */
|
|
12707
|
+
/* harmony export */ "useSyncExternalStore": function() { return /* binding */ _n; },
|
|
12708
|
+
/* harmony export */ "useTransition": function() { return /* binding */ mn; },
|
|
12709
|
+
/* harmony export */ "version": function() { return /* binding */ un; }
|
|
12710
12710
|
/* harmony export */ });
|
|
12711
12711
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6400);
|
|
12712
12712
|
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(396);
|
|
12713
|
-
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){this.props=n}function w(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 */ .az)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(E.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__/* .Component */ .wA).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var R=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__b */ .YM.__b;preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__b */ .YM.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),R&&R(n)};var x="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function N(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=x,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var k=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)((0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(n).map(t))},A={map:k,forEach:k,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR},O=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__e */ .YM.__e;preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__e */ .YM.__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);O(n,t,e,r)};var T=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.unmount */ .YM.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 F(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 */ .az)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function M(){this.u=null,this.o=null}preact__WEBPACK_IMPORTED_MODULE_0__/* .options.unmount */ .YM.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),T&&T(n)},(U.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__/* .Component */ .wA).__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 */ .az)(preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .HY,null,n.fallback);return i&&(i.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement */ .az)(preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .HY,null,e.__a?null:n.children),i]};var V=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 W(n){return this.getChildContext=function(){return n.context},n.children}function P(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .sY)(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 */ .sY)((0,preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement */ .az)(W,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function $(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement */ .az)(P,{__v:n,i:e});return r.containerInfo=e,r}(M.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__/* .Component */ .wA).__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),V(t,n,r)):u()};e?e(o):o()}},M.prototype.render=function(n){this.u=null,this.o=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(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},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){V(n,e,t)})};var j="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,z=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,B="undefined"!=typeof document,H=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Z(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .sY)(n,t),"function"==typeof e&&e(),n?n.__c:null}function Y(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__/* .hydrate */ .ZB)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__/* .Component.prototype.isReactComponent */ .wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__/* .Component.prototype */ .wA.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var q=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.event */ .YM.event;function G(){}function J(){return this.cancelBubble}function K(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__/* .options.event */ .YM.event=function(n){return q&&(n=q(n)),n.persist=G,n.isPropagationStopped=J,n.isDefaultPrevented=K,n.nativeEvent=n};var Q,X={configurable:!0,get:function(){return this.class}},nn=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.vnode */ .YM.vnode;preact__WEBPACK_IMPORTED_MODULE_0__/* .options.vnode */ .YM.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];B&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!H(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&z.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l)}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==t&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),n.props=u,e.class!=e.className&&(X.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",X))}n.$$typeof=j,nn&&nn(n)};var tn=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__r */ .YM.__r;preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__r */ .YM.__r=function(n){tn&&tn(n),Q=n.__c};var en={ReactCurrentDispatcher:{current:{readContext:function(n){return Q.__n[n.__c].props.value}}}},rn="17.0.2";function un(n){return preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement.bind */ .az.bind(null,n)}function on(n){return!!n&&n.$$typeof===j}function ln(n){return on(n)?preact__WEBPACK_IMPORTED_MODULE_0__/* .cloneElement.apply */ .Tm.apply(null,arguments):n}function cn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .sY)(null,n),!0)}function fn(n){return n&&(n.base||1===n.nodeType&&n)||null}var an=function(n,t){return n(t)},sn=function(n,t){return n(t)},hn=preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .HY;function vn(n){n()}function dn(n){return n}function pn(){return[!1,vn]}var mn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutEffect */ .bt;function yn(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useState */ .eJ)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutEffect */ .bt)(function(){u.__=e,u.v=t,u.__!==t()&&o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useEffect */ .d4)(function(){return u.__!==u.v()&&o({h:u}),n(function(){u.__!==u.v()&&o({h:u})})},[n]),e}var _n={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useState */ .eJ,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useId */ .Me,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useReducer */ ._Y,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useEffect */ .d4,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutEffect */ .bt,useInsertionEffect:mn,useTransition:pn,useDeferredValue:dn,useSyncExternalStore:yn,startTransition:vn,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useRef */ .sO,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useImperativeHandle */ .aP,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useMemo */ .Ye,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useCallback */ .I4,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useContext */ .qp,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useDebugValue */ .Qb,version:"17.0.2",Children:A,render:Z,hydrate:Y,unmountComponentAtNode:cn,createPortal:$,createElement:preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement */ .az,createContext:preact__WEBPACK_IMPORTED_MODULE_0__/* .createContext */ .kr,createFactory:un,cloneElement:ln,createRef:preact__WEBPACK_IMPORTED_MODULE_0__/* .createRef */ .Vf,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .HY,isValidElement:on,findDOMNode:fn,Component:preact__WEBPACK_IMPORTED_MODULE_0__/* .Component */ .wA,PureComponent:E,memo:w,forwardRef:N,flushSync:sn,unstable_batchedUpdates:an,StrictMode:hn,Suspense:U,SuspenseList:M,lazy:F,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:en};
|
|
12713
|
+
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 R(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 */ .az)(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 */ .wA).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__b */ .YM.__b;preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__b */ .YM.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(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 */ .bR)((0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(n).map(t))},O={map:A,forEach:A,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR},T=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__e */ .YM.__e;preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__e */ .YM.__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 */ .YM.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 */ .az)(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 */ .YM.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 */ .wA).__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 */ .az)(preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .HY,null,n.fallback);return i&&(i.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement */ .az)(preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .HY,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 $(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .sY)(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 */ .sY)((0,preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement */ .az)(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function j(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement */ .az)($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__/* .Component */ .wA).__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 */ .bR)(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 z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,H="undefined"!=typeof document,Z=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .sY)(n,t),"function"==typeof e&&e(),n?n.__c:null}function q(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__/* .hydrate */ .ZB)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__/* .Component.prototype.isReactComponent */ .wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__/* .Component.prototype */ .wA.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var G=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.event */ .YM.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__/* .options.event */ .YM.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.vnode */ .YM.vnode;preact__WEBPACK_IMPORTED_MODULE_0__/* .options.vnode */ .YM.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l)}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==t&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__/* .toChildArray */ .bR)(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn))}n.$$typeof=z,tn&&tn(n)};var en=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__r */ .YM.__r;preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__r */ .YM.__r=function(n){en&&en(n),X=n.__c};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}},un="17.0.2";function on(n){return preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement.bind */ .az.bind(null,n)}function ln(n){return!!n&&n.$$typeof===z}function cn(n){return ln(n)?preact__WEBPACK_IMPORTED_MODULE_0__/* .cloneElement.apply */ .Tm.apply(null,arguments):n}function fn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__/* .render */ .sY)(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .HY;function dn(n){n()}function pn(n){return n}function mn(){return[!1,dn]}var yn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutEffect */ .bt;function _n(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useState */ .eJ)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutEffect */ .bt)(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useEffect */ .d4)(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u})})},[n]),e}var bn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useState */ .eJ,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useId */ .Me,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useReducer */ ._Y,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useEffect */ .d4,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutEffect */ .bt,useInsertionEffect:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useRef */ .sO,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useImperativeHandle */ .aP,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useMemo */ .Ye,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useCallback */ .I4,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useContext */ .qp,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__/* .useDebugValue */ .Qb,version:"17.0.2",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:preact__WEBPACK_IMPORTED_MODULE_0__/* .createElement */ .az,createContext:preact__WEBPACK_IMPORTED_MODULE_0__/* .createContext */ .kr,createFactory:on,cloneElement:cn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__/* .createRef */ .Vf,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__/* .Fragment */ .HY,isValidElement:ln,findDOMNode:an,Component:preact__WEBPACK_IMPORTED_MODULE_0__/* .Component */ .wA,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};
|
|
12714
12714
|
//# sourceMappingURL=compat.module.js.map
|
|
12715
12715
|
|
|
12716
12716
|
|
|
@@ -12733,7 +12733,7 @@ function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n
|
|
|
12733
12733
|
/* harmony export */ "wA": function() { return /* binding */ d; }
|
|
12734
12734
|
/* harmony export */ });
|
|
12735
12735
|
/* unused harmony exports h, isValidElement */
|
|
12736
|
-
var n,l,u,i,t,o,r,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n)}function h(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v(l,f,t,o,null)}function v(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null==r&&null!=l.vnode&&l.vnode(f),f}function y(){return{current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?_(n):null}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function b(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!g.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||setTimeout)(g)}function g(){for(var n;g.__r=t.length;)n=t.sort(function(n,l){return n.__v.__b-l.__v.__b}),t=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z(u,t),t.__e!=o&&k(t)))})}function w(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v(null,k,null,null,k):Array.isArray(k)?v(p,{children:k},null,null,null):k.__b>0?v(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null}j(n,k,d=d||f,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d))}for(u.__e=g,h=C;h--;)null!=x[h]&&N(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h])}function m(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m(i,l,u):A(u,i,i,t,i.__e,l));return l}function x(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x(n,l)}):l.push(n)),l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else{for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=
|
|
12736
|
+
var n,l,u,i,t,o,r,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n)}function h(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v(l,f,t,o,null)}function v(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null==r&&null!=l.vnode&&l.vnode(f),f}function y(){return{current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?_(n):null}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function b(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!g.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||setTimeout)(g)}function g(){for(var n;g.__r=t.length;)n=t.sort(function(n,l){return n.__v.__b-l.__v.__b}),t=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z(u,t),t.__e!=o&&k(t)))})}function w(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v(null,k,null,null,k):Array.isArray(k)?v(p,{children:k},null,null,null):k.__b>0?v(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null}j(n,k,d=d||f,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d))}for(u.__e=g,h=C;h--;)null!=x[h]&&N(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h])}function m(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m(i,l,u):A(u,i,i,t,i.__e,l));return l}function x(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){x(n,l)}):l.push(n)),l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else{for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i)}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c.test(l)?u:u+"px"}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u))}}function I(n){this.l[n.type+!1](l.event?l.event(n):n)}function T(n){this.l[n.type+!0](l.event?l.event(n):n)}function j(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d(g,x),h.constructor=T,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u)}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k)})}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p&&null==a.key?a.props.children:a,w(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l.diffed)&&a(u)}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l.__e(n,u,i)}}function z(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1}if(null===d)y===p||c&&l.data===p||(l.data=p);else{if(r=r&&n.call(l.childNodes),h=(y=i.props||f).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""))}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1))}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,i)}}function N(n,u,i){var t,o;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(n){l.__e(n,u)}t.base=t.__P=null,n.__c=void 0}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a(n.__e),n.__=n.__e=n.__d=void 0}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l.__&&l.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j(i,u=(!o&&t||i).__k=h(p,null,[u]),r||f,f,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z(e,u)}function S(n,l){P(n,l,S)}function q(l,u,i){var t,o,r,f=s({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),v(l.type,f,t||l.key,o||l.ref,null)}function B(n,l){var u={__c:l="__cC"+r++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b)},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=e.slice,l={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l}throw n}},u=0,i=function(n){return null!=n&&void 0===n.constructor},d.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b(this))},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b(this))},d.prototype.render=p,t=[],g.__r=0,r=0;
|
|
12737
12737
|
//# sourceMappingURL=preact.module.js.map
|
|
12738
12738
|
|
|
12739
12739
|
|
|
@@ -12758,7 +12758,7 @@ var n,l,u,i,t,o,r,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]
|
|
|
12758
12758
|
/* harmony export */ "sO": function() { return /* binding */ _; }
|
|
12759
12759
|
/* harmony export */ });
|
|
12760
12760
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6400);
|
|
12761
|
-
var t,r,u,i,o=0,f=[],c=[],e=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__b */ .YM.__b,a=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__r */ .YM.__r,v=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.diffed */ .YM.diffed,l=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__c */ .YM.__c,m=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.unmount */ .YM.unmount;function d(t,u){preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__h */ .YM.__h&&preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__h */ .YM.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return!n.__N}))return!f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))}}return o.__N||o.__}function h(u,i){var o=d(t++,3);!preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__s */ .YM.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o))}function s(u,i){var o=d(t++,4);!preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__s */ .YM.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o))}function _(n){return o=5,F(function(){return{current:n}},[])}function A(n,t,r){o=6,s(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function q(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x(t,r){preact__WEBPACK_IMPORTED_MODULE_0__/* .options.useDebugValue */ .YM.useDebugValue&&preact__WEBPACK_IMPORTED_MODULE_0__/* .options.useDebugValue */ .YM.useDebugValue(r?r(t):t)}function P(n){var u=d(t++,10),i=p();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function V(){var n=d(t++,11);
|
|
12761
|
+
var t,r,u,i,o=0,f=[],c=[],e=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__b */ .YM.__b,a=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__r */ .YM.__r,v=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.diffed */ .YM.diffed,l=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__c */ .YM.__c,m=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.unmount */ .YM.unmount;function d(t,u){preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__h */ .YM.__h&&preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__h */ .YM.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return!n.__N}))return!f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))}}return o.__N||o.__}function h(u,i){var o=d(t++,3);!preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__s */ .YM.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o))}function s(u,i){var o=d(t++,4);!preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__s */ .YM.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o))}function _(n){return o=5,F(function(){return{current:n}},[])}function A(n,t,r){o=6,s(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function q(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x(t,r){preact__WEBPACK_IMPORTED_MODULE_0__/* .options.useDebugValue */ .YM.useDebugValue&&preact__WEBPACK_IMPORTED_MODULE_0__/* .options.useDebugValue */ .YM.useDebugValue(r?r(t):t)}function P(n){var u=d(t++,10),i=p();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function V(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[]}catch(r){t.__H.__h=[],preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__e */ .YM.__e(r,t.__v)}}preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__b */ .YM.__b=function(n){r=null,e&&e(n)},preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__r */ .YM.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[])),u=r},preact__WEBPACK_IMPORTED_MODULE_0__/* .options.diffed */ .YM.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===preact__WEBPACK_IMPORTED_MODULE_0__/* .options.requestAnimationFrame */ .YM.requestAnimationFrame||((i=preact__WEBPACK_IMPORTED_MODULE_0__/* .options.requestAnimationFrame */ .YM.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c})),u=r=null},preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__c */ .YM.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return!n.__||w(n)})}catch(u){r.some(function(n){n.__h&&(n.__h=[])}),r=[],preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__e */ .YM.__e(u,t.__v)}}),l&&l(t,r)},preact__WEBPACK_IMPORTED_MODULE_0__/* .options.unmount */ .YM.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n)}catch(n){r=n}}),u.__H=void 0,r&&preact__WEBPACK_IMPORTED_MODULE_0__/* .options.__e */ .YM.__e(r,u.__v))};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r))}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t}function w(n){var t=r;n.__c=n.__(),r=t}function z(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(n,t){return"function"==typeof t?t(n):t}
|
|
12762
12762
|
//# sourceMappingURL=hooks.module.js.map
|
|
12763
12763
|
|
|
12764
12764
|
|
|
@@ -14422,6 +14422,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14422
14422
|
"SeamlyGeneralError": function() { return /* reexport */ SeamlyGeneralError; },
|
|
14423
14423
|
"SeamlyLiveRegionContext": function() { return /* reexport */ SeamlyLiveRegionContext; },
|
|
14424
14424
|
"SeamlyOfflineError": function() { return /* reexport */ SeamlyOfflineError; },
|
|
14425
|
+
"SeamlyStoreProvider": function() { return /* reexport */ components_Provider; },
|
|
14425
14426
|
"Text": function() { return /* reexport */ event_text; },
|
|
14426
14427
|
"View": function() { return /* reexport */ view; },
|
|
14427
14428
|
"calculateVisibility": function() { return /* reexport */ calculateVisibility; },
|
|
@@ -14498,6 +14499,9 @@ var for_each_default = /*#__PURE__*/__webpack_require__.n(for_each);
|
|
|
14498
14499
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js
|
|
14499
14500
|
var object_keys = __webpack_require__(8222);
|
|
14500
14501
|
var keys_default = /*#__PURE__*/__webpack_require__.n(object_keys);
|
|
14502
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js
|
|
14503
|
+
var includes = __webpack_require__(8118);
|
|
14504
|
+
var includes_default = /*#__PURE__*/__webpack_require__.n(includes);
|
|
14501
14505
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js
|
|
14502
14506
|
var values = __webpack_require__(3665);
|
|
14503
14507
|
var values_default = /*#__PURE__*/__webpack_require__.n(values);
|
|
@@ -14522,9 +14526,6 @@ var index_of_default = /*#__PURE__*/__webpack_require__.n(index_of);
|
|
|
14522
14526
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/object/assign.js
|
|
14523
14527
|
var object_assign = __webpack_require__(6986);
|
|
14524
14528
|
var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign);
|
|
14525
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js
|
|
14526
|
-
var includes = __webpack_require__(8118);
|
|
14527
|
-
var includes_default = /*#__PURE__*/__webpack_require__.n(includes);
|
|
14528
14529
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js
|
|
14529
14530
|
var weak_map = __webpack_require__(8886);
|
|
14530
14531
|
var weak_map_default = /*#__PURE__*/__webpack_require__.n(weak_map);
|
|
@@ -16664,7 +16665,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
|
|
|
16664
16665
|
return {
|
|
16665
16666
|
clientName: "@seamly/web-ui",
|
|
16666
16667
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
16667
|
-
clientVersion: "21.0.2-beta.
|
|
16668
|
+
clientVersion: "21.0.2-beta.4",
|
|
16668
16669
|
currentUrl: window.location.toString(),
|
|
16669
16670
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
16670
16671
|
timezone: getTimeZone(),
|
|
@@ -26355,24 +26356,21 @@ var isFocusable = function isFocusable(node, options) {
|
|
|
26355
26356
|
|
|
26356
26357
|
;// CONCATENATED MODULE: ./node_modules/focus-trap/dist/focus-trap.esm.js
|
|
26357
26358
|
/*!
|
|
26358
|
-
* focus-trap 7.
|
|
26359
|
+
* focus-trap 7.1.0
|
|
26359
26360
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
26360
26361
|
*/
|
|
26361
26362
|
|
|
26362
26363
|
|
|
26363
26364
|
function focus_trap_esm_ownKeys(object, enumerableOnly) {
|
|
26364
26365
|
var keys = Object.keys(object);
|
|
26365
|
-
|
|
26366
26366
|
if (Object.getOwnPropertySymbols) {
|
|
26367
26367
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
26368
26368
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
26369
26369
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
26370
26370
|
})), keys.push.apply(keys, symbols);
|
|
26371
26371
|
}
|
|
26372
|
-
|
|
26373
26372
|
return keys;
|
|
26374
26373
|
}
|
|
26375
|
-
|
|
26376
26374
|
function focus_trap_esm_objectSpread2(target) {
|
|
26377
26375
|
for (var i = 1; i < arguments.length; i++) {
|
|
26378
26376
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
@@ -26382,10 +26380,8 @@ function focus_trap_esm_objectSpread2(target) {
|
|
|
26382
26380
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
26383
26381
|
});
|
|
26384
26382
|
}
|
|
26385
|
-
|
|
26386
26383
|
return target;
|
|
26387
26384
|
}
|
|
26388
|
-
|
|
26389
26385
|
function focus_trap_esm_defineProperty(obj, key, value) {
|
|
26390
26386
|
if (key in obj) {
|
|
26391
26387
|
Object.defineProperty(obj, key, {
|
|
@@ -26397,64 +26393,52 @@ function focus_trap_esm_defineProperty(obj, key, value) {
|
|
|
26397
26393
|
} else {
|
|
26398
26394
|
obj[key] = value;
|
|
26399
26395
|
}
|
|
26400
|
-
|
|
26401
26396
|
return obj;
|
|
26402
26397
|
}
|
|
26403
26398
|
|
|
26404
|
-
var
|
|
26405
|
-
|
|
26406
|
-
|
|
26407
|
-
|
|
26408
|
-
|
|
26409
|
-
|
|
26410
|
-
|
|
26411
|
-
if (activeTrap !== trap) {
|
|
26412
|
-
activeTrap.pause();
|
|
26413
|
-
}
|
|
26414
|
-
}
|
|
26415
|
-
|
|
26416
|
-
var trapIndex = trapQueue.indexOf(trap);
|
|
26417
|
-
|
|
26418
|
-
if (trapIndex === -1) {
|
|
26419
|
-
trapQueue.push(trap);
|
|
26420
|
-
} else {
|
|
26421
|
-
// move this existing trap to the front of the queue
|
|
26422
|
-
trapQueue.splice(trapIndex, 1);
|
|
26423
|
-
trapQueue.push(trap);
|
|
26424
|
-
}
|
|
26425
|
-
},
|
|
26426
|
-
deactivateTrap: function deactivateTrap(trap) {
|
|
26427
|
-
var trapIndex = trapQueue.indexOf(trap);
|
|
26428
|
-
|
|
26429
|
-
if (trapIndex !== -1) {
|
|
26430
|
-
trapQueue.splice(trapIndex, 1);
|
|
26431
|
-
}
|
|
26432
|
-
|
|
26433
|
-
if (trapQueue.length > 0) {
|
|
26434
|
-
trapQueue[trapQueue.length - 1].unpause();
|
|
26399
|
+
var rooTrapStack = [];
|
|
26400
|
+
var activeFocusTraps = {
|
|
26401
|
+
activateTrap: function activateTrap(trapStack, trap) {
|
|
26402
|
+
if (trapStack.length > 0) {
|
|
26403
|
+
var activeTrap = trapStack[trapStack.length - 1];
|
|
26404
|
+
if (activeTrap !== trap) {
|
|
26405
|
+
activeTrap.pause();
|
|
26435
26406
|
}
|
|
26436
26407
|
}
|
|
26437
|
-
|
|
26438
|
-
|
|
26439
|
-
|
|
26408
|
+
var trapIndex = trapStack.indexOf(trap);
|
|
26409
|
+
if (trapIndex === -1) {
|
|
26410
|
+
trapStack.push(trap);
|
|
26411
|
+
} else {
|
|
26412
|
+
// move this existing trap to the front of the queue
|
|
26413
|
+
trapStack.splice(trapIndex, 1);
|
|
26414
|
+
trapStack.push(trap);
|
|
26415
|
+
}
|
|
26416
|
+
},
|
|
26417
|
+
deactivateTrap: function deactivateTrap(trapStack, trap) {
|
|
26418
|
+
var trapIndex = trapStack.indexOf(trap);
|
|
26419
|
+
if (trapIndex !== -1) {
|
|
26420
|
+
trapStack.splice(trapIndex, 1);
|
|
26421
|
+
}
|
|
26422
|
+
if (trapStack.length > 0) {
|
|
26423
|
+
trapStack[trapStack.length - 1].unpause();
|
|
26424
|
+
}
|
|
26425
|
+
}
|
|
26426
|
+
};
|
|
26440
26427
|
var isSelectableInput = function isSelectableInput(node) {
|
|
26441
26428
|
return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
|
|
26442
26429
|
};
|
|
26443
|
-
|
|
26444
26430
|
var isEscapeEvent = function isEscapeEvent(e) {
|
|
26445
26431
|
return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
|
|
26446
26432
|
};
|
|
26447
|
-
|
|
26448
26433
|
var isTabEvent = function isTabEvent(e) {
|
|
26449
26434
|
return e.key === 'Tab' || e.keyCode === 9;
|
|
26450
26435
|
};
|
|
26451
|
-
|
|
26452
26436
|
var delay = function delay(fn) {
|
|
26453
26437
|
return setTimeout(fn, 0);
|
|
26454
|
-
};
|
|
26455
|
-
// of Array.findIndex() for our needs
|
|
26456
|
-
|
|
26438
|
+
};
|
|
26457
26439
|
|
|
26440
|
+
// Array.find/findIndex() are not supported on IE; this replicates enough
|
|
26441
|
+
// of Array.findIndex() for our needs
|
|
26458
26442
|
var findIndex = function findIndex(arr, fn) {
|
|
26459
26443
|
var idx = -1;
|
|
26460
26444
|
arr.every(function (value, i) {
|
|
@@ -26465,8 +26449,10 @@ var findIndex = function findIndex(arr, fn) {
|
|
|
26465
26449
|
|
|
26466
26450
|
return true; // next
|
|
26467
26451
|
});
|
|
26452
|
+
|
|
26468
26453
|
return idx;
|
|
26469
26454
|
};
|
|
26455
|
+
|
|
26470
26456
|
/**
|
|
26471
26457
|
* Get an option's value when it could be a plain value, or a handler that provides
|
|
26472
26458
|
* the value.
|
|
@@ -26474,16 +26460,12 @@ var findIndex = function findIndex(arr, fn) {
|
|
|
26474
26460
|
* @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
|
|
26475
26461
|
* @returns {*} The `value`, or the handler's returned value.
|
|
26476
26462
|
*/
|
|
26477
|
-
|
|
26478
|
-
|
|
26479
26463
|
var valueOrHandler = function valueOrHandler(value) {
|
|
26480
26464
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
26481
26465
|
params[_key - 1] = arguments[_key];
|
|
26482
26466
|
}
|
|
26483
|
-
|
|
26484
26467
|
return typeof value === 'function' ? value.apply(void 0, params) : value;
|
|
26485
26468
|
};
|
|
26486
|
-
|
|
26487
26469
|
var getActualTarget = function getActualTarget(event) {
|
|
26488
26470
|
// NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
|
|
26489
26471
|
// shadow host. However, event.target.composedPath() will be an array of
|
|
@@ -26494,18 +26476,16 @@ var getActualTarget = function getActualTarget(event) {
|
|
|
26494
26476
|
// composedPath()[0] === event.target always).
|
|
26495
26477
|
return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
|
|
26496
26478
|
};
|
|
26497
|
-
|
|
26498
26479
|
var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
26499
26480
|
// SSR: a live trap shouldn't be created in this type of environment so this
|
|
26500
26481
|
// should be safe code to execute if the `document` option isn't specified
|
|
26501
26482
|
var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
|
|
26502
|
-
|
|
26483
|
+
var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || rooTrapStack;
|
|
26503
26484
|
var config = focus_trap_esm_objectSpread2({
|
|
26504
26485
|
returnFocusOnDeactivate: true,
|
|
26505
26486
|
escapeDeactivates: true,
|
|
26506
26487
|
delayInitialFocus: true
|
|
26507
26488
|
}, userOptions);
|
|
26508
|
-
|
|
26509
26489
|
var state = {
|
|
26510
26490
|
// containers given to createFocusTrap()
|
|
26511
26491
|
// @type {Array<HTMLElement>}
|
|
@@ -26525,6 +26505,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26525
26505
|
// }>}
|
|
26526
26506
|
containerGroups: [],
|
|
26527
26507
|
// same order/length as `containers` list
|
|
26508
|
+
|
|
26528
26509
|
// references to objects in `containerGroups`, but only those that actually have
|
|
26529
26510
|
// tabbable nodes in them
|
|
26530
26511
|
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
@@ -26548,10 +26529,10 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26548
26529
|
* @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
|
|
26549
26530
|
* IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
|
|
26550
26531
|
*/
|
|
26551
|
-
|
|
26552
26532
|
var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
|
|
26553
26533
|
return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
|
|
26554
26534
|
};
|
|
26535
|
+
|
|
26555
26536
|
/**
|
|
26556
26537
|
* Finds the index of the container that contains the element.
|
|
26557
26538
|
* @param {HTMLElement} element
|
|
@@ -26559,16 +26540,15 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26559
26540
|
* `state.containerGroups` (the order/length of these lists are the same); -1
|
|
26560
26541
|
* if the element isn't found.
|
|
26561
26542
|
*/
|
|
26562
|
-
|
|
26563
|
-
|
|
26564
26543
|
var findContainerIndex = function findContainerIndex(element) {
|
|
26565
26544
|
// NOTE: search `containerGroups` because it's possible a group contains no tabbable
|
|
26566
26545
|
// nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
|
|
26567
26546
|
// and we still need to find the element in there
|
|
26568
26547
|
return state.containerGroups.findIndex(function (_ref) {
|
|
26569
26548
|
var container = _ref.container,
|
|
26570
|
-
|
|
26571
|
-
return container.contains(element) ||
|
|
26549
|
+
tabbableNodes = _ref.tabbableNodes;
|
|
26550
|
+
return container.contains(element) ||
|
|
26551
|
+
// fall back to explicit tabbable search which will take into consideration any
|
|
26572
26552
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
26573
26553
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
26574
26554
|
// look inside web components even if open)
|
|
@@ -26577,6 +26557,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26577
26557
|
});
|
|
26578
26558
|
});
|
|
26579
26559
|
};
|
|
26560
|
+
|
|
26580
26561
|
/**
|
|
26581
26562
|
* Gets the node for the given option, which is expected to be an option that
|
|
26582
26563
|
* can be either a DOM node, a string that is a selector to get a node, `false`
|
|
@@ -26590,19 +26571,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26590
26571
|
* @throws {Error} If the option is set, not `false`, and is not, or does not
|
|
26591
26572
|
* resolve to a node.
|
|
26592
26573
|
*/
|
|
26593
|
-
|
|
26594
|
-
|
|
26595
26574
|
var getNodeForOption = function getNodeForOption(optionName) {
|
|
26596
26575
|
var optionValue = config[optionName];
|
|
26597
|
-
|
|
26598
26576
|
if (typeof optionValue === 'function') {
|
|
26599
26577
|
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
26600
26578
|
params[_key2 - 1] = arguments[_key2];
|
|
26601
26579
|
}
|
|
26602
|
-
|
|
26603
26580
|
optionValue = optionValue.apply(void 0, params);
|
|
26604
26581
|
}
|
|
26605
|
-
|
|
26606
26582
|
if (optionValue === true) {
|
|
26607
26583
|
optionValue = undefined; // use default value
|
|
26608
26584
|
}
|
|
@@ -26610,56 +26586,51 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26610
26586
|
if (!optionValue) {
|
|
26611
26587
|
if (optionValue === undefined || optionValue === false) {
|
|
26612
26588
|
return optionValue;
|
|
26613
|
-
}
|
|
26614
|
-
|
|
26589
|
+
}
|
|
26590
|
+
// else, empty string (invalid), null (invalid), 0 (invalid)
|
|
26615
26591
|
|
|
26616
26592
|
throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
|
|
26617
26593
|
}
|
|
26618
|
-
|
|
26619
26594
|
var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
|
|
26620
26595
|
|
|
26621
26596
|
if (typeof optionValue === 'string') {
|
|
26622
26597
|
node = doc.querySelector(optionValue); // resolve to node, or null if fails
|
|
26623
|
-
|
|
26624
26598
|
if (!node) {
|
|
26625
26599
|
throw new Error("`".concat(optionName, "` as selector refers to no known node"));
|
|
26626
26600
|
}
|
|
26627
26601
|
}
|
|
26628
|
-
|
|
26629
26602
|
return node;
|
|
26630
26603
|
};
|
|
26631
|
-
|
|
26632
26604
|
var getInitialFocusNode = function getInitialFocusNode() {
|
|
26633
|
-
var node = getNodeForOption('initialFocus');
|
|
26605
|
+
var node = getNodeForOption('initialFocus');
|
|
26634
26606
|
|
|
26607
|
+
// false explicitly indicates we want no initialFocus at all
|
|
26635
26608
|
if (node === false) {
|
|
26636
26609
|
return false;
|
|
26637
26610
|
}
|
|
26638
|
-
|
|
26639
26611
|
if (node === undefined) {
|
|
26640
26612
|
// option not specified: use fallback options
|
|
26641
26613
|
if (findContainerIndex(doc.activeElement) >= 0) {
|
|
26642
26614
|
node = doc.activeElement;
|
|
26643
26615
|
} else {
|
|
26644
26616
|
var firstTabbableGroup = state.tabbableGroups[0];
|
|
26645
|
-
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
|
|
26617
|
+
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
|
|
26646
26618
|
|
|
26619
|
+
// NOTE: `fallbackFocus` option function cannot return `false` (not supported)
|
|
26647
26620
|
node = firstTabbableNode || getNodeForOption('fallbackFocus');
|
|
26648
26621
|
}
|
|
26649
26622
|
}
|
|
26650
|
-
|
|
26651
26623
|
if (!node) {
|
|
26652
26624
|
throw new Error('Your focus-trap needs to have at least one focusable element');
|
|
26653
26625
|
}
|
|
26654
|
-
|
|
26655
26626
|
return node;
|
|
26656
26627
|
};
|
|
26657
|
-
|
|
26658
26628
|
var updateTabbableNodes = function updateTabbableNodes() {
|
|
26659
26629
|
state.containerGroups = state.containers.map(function (container) {
|
|
26660
|
-
var tabbableNodes = tabbable(container, config.tabbableOptions);
|
|
26661
|
-
// are a superset of tabbable nodes
|
|
26630
|
+
var tabbableNodes = tabbable(container, config.tabbableOptions);
|
|
26662
26631
|
|
|
26632
|
+
// NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
|
|
26633
|
+
// are a superset of tabbable nodes
|
|
26663
26634
|
var focusableNodes = focusable(container, config.tabbableOptions);
|
|
26664
26635
|
return {
|
|
26665
26636
|
container: container,
|
|
@@ -26667,7 +26638,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26667
26638
|
focusableNodes: focusableNodes,
|
|
26668
26639
|
firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
|
|
26669
26640
|
lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
|
|
26670
|
-
|
|
26671
26641
|
/**
|
|
26672
26642
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
26673
26643
|
* in this container, if any.
|
|
@@ -26691,17 +26661,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26691
26661
|
var nodeIdx = focusableNodes.findIndex(function (n) {
|
|
26692
26662
|
return n === node;
|
|
26693
26663
|
});
|
|
26694
|
-
|
|
26695
26664
|
if (nodeIdx < 0) {
|
|
26696
26665
|
return undefined;
|
|
26697
26666
|
}
|
|
26698
|
-
|
|
26699
26667
|
if (forward) {
|
|
26700
26668
|
return focusableNodes.slice(nodeIdx + 1).find(function (n) {
|
|
26701
26669
|
return isTabbable(n, config.tabbableOptions);
|
|
26702
26670
|
});
|
|
26703
26671
|
}
|
|
26704
|
-
|
|
26705
26672
|
return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
|
|
26706
26673
|
return isTabbable(n, config.tabbableOptions);
|
|
26707
26674
|
});
|
|
@@ -26710,53 +26677,46 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26710
26677
|
});
|
|
26711
26678
|
state.tabbableGroups = state.containerGroups.filter(function (group) {
|
|
26712
26679
|
return group.tabbableNodes.length > 0;
|
|
26713
|
-
});
|
|
26680
|
+
});
|
|
26714
26681
|
|
|
26682
|
+
// throw if no groups have tabbable nodes and we don't have a fallback focus node either
|
|
26715
26683
|
if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
|
|
26716
26684
|
) {
|
|
26717
26685
|
throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
|
|
26718
26686
|
}
|
|
26719
26687
|
};
|
|
26720
|
-
|
|
26721
26688
|
var tryFocus = function tryFocus(node) {
|
|
26722
26689
|
if (node === false) {
|
|
26723
26690
|
return;
|
|
26724
26691
|
}
|
|
26725
|
-
|
|
26726
26692
|
if (node === doc.activeElement) {
|
|
26727
26693
|
return;
|
|
26728
26694
|
}
|
|
26729
|
-
|
|
26730
26695
|
if (!node || !node.focus) {
|
|
26731
26696
|
tryFocus(getInitialFocusNode());
|
|
26732
26697
|
return;
|
|
26733
26698
|
}
|
|
26734
|
-
|
|
26735
26699
|
node.focus({
|
|
26736
26700
|
preventScroll: !!config.preventScroll
|
|
26737
26701
|
});
|
|
26738
26702
|
state.mostRecentlyFocusedNode = node;
|
|
26739
|
-
|
|
26740
26703
|
if (isSelectableInput(node)) {
|
|
26741
26704
|
node.select();
|
|
26742
26705
|
}
|
|
26743
26706
|
};
|
|
26744
|
-
|
|
26745
26707
|
var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
|
|
26746
26708
|
var node = getNodeForOption('setReturnFocus', previousActiveElement);
|
|
26747
26709
|
return node ? node : node === false ? false : previousActiveElement;
|
|
26748
|
-
};
|
|
26749
|
-
// so that it precedes the focus event.
|
|
26750
|
-
|
|
26710
|
+
};
|
|
26751
26711
|
|
|
26712
|
+
// This needs to be done on mousedown and touchstart instead of click
|
|
26713
|
+
// so that it precedes the focus event.
|
|
26752
26714
|
var checkPointerDown = function checkPointerDown(e) {
|
|
26753
26715
|
var target = getActualTarget(e);
|
|
26754
|
-
|
|
26755
26716
|
if (findContainerIndex(target) >= 0) {
|
|
26756
26717
|
// allow the click since it ocurred inside the trap
|
|
26757
26718
|
return;
|
|
26758
26719
|
}
|
|
26759
|
-
|
|
26760
26720
|
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
26761
26721
|
// immediately deactivate the trap
|
|
26762
26722
|
trap.deactivate({
|
|
@@ -26774,25 +26734,26 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26774
26734
|
returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
|
|
26775
26735
|
});
|
|
26776
26736
|
return;
|
|
26777
|
-
}
|
|
26737
|
+
}
|
|
26738
|
+
|
|
26739
|
+
// This is needed for mobile devices.
|
|
26778
26740
|
// (If we'll only let `click` events through,
|
|
26779
26741
|
// then on mobile they will be blocked anyways if `touchstart` is blocked.)
|
|
26780
|
-
|
|
26781
|
-
|
|
26782
26742
|
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
26783
26743
|
// allow the click outside the trap to take place
|
|
26784
26744
|
return;
|
|
26785
|
-
}
|
|
26786
|
-
|
|
26745
|
+
}
|
|
26787
26746
|
|
|
26747
|
+
// otherwise, prevent the click
|
|
26788
26748
|
e.preventDefault();
|
|
26789
|
-
};
|
|
26790
|
-
|
|
26749
|
+
};
|
|
26791
26750
|
|
|
26751
|
+
// In case focus escapes the trap for some strange reason, pull it back in.
|
|
26792
26752
|
var checkFocusIn = function checkFocusIn(e) {
|
|
26793
26753
|
var target = getActualTarget(e);
|
|
26794
|
-
var targetContained = findContainerIndex(target) >= 0;
|
|
26754
|
+
var targetContained = findContainerIndex(target) >= 0;
|
|
26795
26755
|
|
|
26756
|
+
// In Firefox when you Tab out of an iframe the Document is briefly focused.
|
|
26796
26757
|
if (targetContained || target instanceof Document) {
|
|
26797
26758
|
if (targetContained) {
|
|
26798
26759
|
state.mostRecentlyFocusedNode = target;
|
|
@@ -26802,24 +26763,22 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26802
26763
|
e.stopImmediatePropagation();
|
|
26803
26764
|
tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
|
|
26804
26765
|
}
|
|
26805
|
-
};
|
|
26766
|
+
};
|
|
26767
|
+
|
|
26768
|
+
// Hijack Tab events on the first and last focusable nodes of the trap,
|
|
26806
26769
|
// in order to prevent focus from escaping. If it escapes for even a
|
|
26807
26770
|
// moment it can end up scrolling the page and causing confusion so we
|
|
26808
26771
|
// kind of need to capture the action at the keydown phase.
|
|
26809
|
-
|
|
26810
|
-
|
|
26811
26772
|
var checkTab = function checkTab(e) {
|
|
26812
26773
|
var target = getActualTarget(e);
|
|
26813
26774
|
updateTabbableNodes();
|
|
26814
26775
|
var destinationNode = null;
|
|
26815
|
-
|
|
26816
26776
|
if (state.tabbableGroups.length > 0) {
|
|
26817
26777
|
// make sure the target is actually contained in a group
|
|
26818
26778
|
// NOTE: the target may also be the container itself if it's focusable
|
|
26819
26779
|
// with tabIndex='-1' and was given initial focus
|
|
26820
26780
|
var containerIndex = findContainerIndex(target);
|
|
26821
26781
|
var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
|
|
26822
|
-
|
|
26823
26782
|
if (containerIndex < 0) {
|
|
26824
26783
|
// target not found in any group: quite possible focus has escaped the trap,
|
|
26825
26784
|
// so bring it back in to...
|
|
@@ -26832,12 +26791,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26832
26791
|
}
|
|
26833
26792
|
} else if (e.shiftKey) {
|
|
26834
26793
|
// REVERSE
|
|
26794
|
+
|
|
26835
26795
|
// is the target the first tabbable node in a group?
|
|
26836
26796
|
var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
|
|
26837
26797
|
var firstTabbableNode = _ref2.firstTabbableNode;
|
|
26838
26798
|
return target === firstTabbableNode;
|
|
26839
26799
|
});
|
|
26840
|
-
|
|
26841
26800
|
if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
|
|
26842
26801
|
// an exception case where the target is either the container itself, or
|
|
26843
26802
|
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
@@ -26847,7 +26806,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26847
26806
|
// first tabbable node, and go to the last tabbable node of the LAST group
|
|
26848
26807
|
startOfGroupIndex = containerIndex;
|
|
26849
26808
|
}
|
|
26850
|
-
|
|
26851
26809
|
if (startOfGroupIndex >= 0) {
|
|
26852
26810
|
// YES: then shift+tab should go to the last tabbable node in the
|
|
26853
26811
|
// previous group (and wrap around to the last tabbable node of
|
|
@@ -26858,12 +26816,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26858
26816
|
}
|
|
26859
26817
|
} else {
|
|
26860
26818
|
// FORWARD
|
|
26819
|
+
|
|
26861
26820
|
// is the target the last tabbable node in a group?
|
|
26862
26821
|
var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
|
|
26863
26822
|
var lastTabbableNode = _ref3.lastTabbableNode;
|
|
26864
26823
|
return target === lastTabbableNode;
|
|
26865
26824
|
});
|
|
26866
|
-
|
|
26867
26825
|
if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
|
|
26868
26826
|
// an exception case where the target is the container itself, or
|
|
26869
26827
|
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
@@ -26873,13 +26831,11 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26873
26831
|
// last tabbable node, and go to the first tabbable node of the FIRST group
|
|
26874
26832
|
lastOfGroupIndex = containerIndex;
|
|
26875
26833
|
}
|
|
26876
|
-
|
|
26877
26834
|
if (lastOfGroupIndex >= 0) {
|
|
26878
26835
|
// YES: then tab should go to the first tabbable node in the next
|
|
26879
26836
|
// group (and wrap around to the first tabbable node of the FIRST
|
|
26880
26837
|
// group if it's the last tabbable node of the LAST group)
|
|
26881
26838
|
var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
|
|
26882
|
-
|
|
26883
26839
|
var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
|
|
26884
26840
|
destinationNode = _destinationGroup.firstTabbableNode;
|
|
26885
26841
|
}
|
|
@@ -26888,12 +26844,11 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26888
26844
|
// NOTE: the fallbackFocus option does not support returning false to opt-out
|
|
26889
26845
|
destinationNode = getNodeForOption('fallbackFocus');
|
|
26890
26846
|
}
|
|
26891
|
-
|
|
26892
26847
|
if (destinationNode) {
|
|
26893
26848
|
e.preventDefault();
|
|
26894
26849
|
tryFocus(destinationNode);
|
|
26895
|
-
}
|
|
26896
|
-
|
|
26850
|
+
}
|
|
26851
|
+
// else, let the browser take care of [shift+]tab and move the focus
|
|
26897
26852
|
};
|
|
26898
26853
|
|
|
26899
26854
|
var checkKey = function checkKey(e) {
|
|
@@ -26902,44 +26857,40 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26902
26857
|
trap.deactivate();
|
|
26903
26858
|
return;
|
|
26904
26859
|
}
|
|
26905
|
-
|
|
26906
26860
|
if (isTabEvent(e)) {
|
|
26907
26861
|
checkTab(e);
|
|
26908
26862
|
return;
|
|
26909
26863
|
}
|
|
26910
26864
|
};
|
|
26911
|
-
|
|
26912
26865
|
var checkClick = function checkClick(e) {
|
|
26913
26866
|
var target = getActualTarget(e);
|
|
26914
|
-
|
|
26915
26867
|
if (findContainerIndex(target) >= 0) {
|
|
26916
26868
|
return;
|
|
26917
26869
|
}
|
|
26918
|
-
|
|
26919
26870
|
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
26920
26871
|
return;
|
|
26921
26872
|
}
|
|
26922
|
-
|
|
26923
26873
|
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
26924
26874
|
return;
|
|
26925
26875
|
}
|
|
26926
|
-
|
|
26927
26876
|
e.preventDefault();
|
|
26928
26877
|
e.stopImmediatePropagation();
|
|
26929
|
-
};
|
|
26878
|
+
};
|
|
26879
|
+
|
|
26880
|
+
//
|
|
26930
26881
|
// EVENT LISTENERS
|
|
26931
26882
|
//
|
|
26932
26883
|
|
|
26933
|
-
|
|
26934
26884
|
var addListeners = function addListeners() {
|
|
26935
26885
|
if (!state.active) {
|
|
26936
26886
|
return;
|
|
26937
|
-
}
|
|
26887
|
+
}
|
|
26938
26888
|
|
|
26889
|
+
// There can be only one listening focus trap at a time
|
|
26890
|
+
activeFocusTraps.activateTrap(trapStack, trap);
|
|
26939
26891
|
|
|
26940
|
-
|
|
26892
|
+
// Delay ensures that the focused element doesn't capture the event
|
|
26941
26893
|
// that caused the focus trap activation.
|
|
26942
|
-
|
|
26943
26894
|
state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
|
|
26944
26895
|
tryFocus(getInitialFocusNode());
|
|
26945
26896
|
}) : tryFocus(getInitialFocusNode());
|
|
@@ -26962,70 +26913,58 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
26962
26913
|
});
|
|
26963
26914
|
return trap;
|
|
26964
26915
|
};
|
|
26965
|
-
|
|
26966
26916
|
var removeListeners = function removeListeners() {
|
|
26967
26917
|
if (!state.active) {
|
|
26968
26918
|
return;
|
|
26969
26919
|
}
|
|
26970
|
-
|
|
26971
26920
|
doc.removeEventListener('focusin', checkFocusIn, true);
|
|
26972
26921
|
doc.removeEventListener('mousedown', checkPointerDown, true);
|
|
26973
26922
|
doc.removeEventListener('touchstart', checkPointerDown, true);
|
|
26974
26923
|
doc.removeEventListener('click', checkClick, true);
|
|
26975
26924
|
doc.removeEventListener('keydown', checkKey, true);
|
|
26976
26925
|
return trap;
|
|
26977
|
-
};
|
|
26926
|
+
};
|
|
26927
|
+
|
|
26928
|
+
//
|
|
26978
26929
|
// TRAP DEFINITION
|
|
26979
26930
|
//
|
|
26980
26931
|
|
|
26981
|
-
|
|
26982
26932
|
trap = {
|
|
26983
26933
|
get active() {
|
|
26984
26934
|
return state.active;
|
|
26985
26935
|
},
|
|
26986
|
-
|
|
26987
26936
|
get paused() {
|
|
26988
26937
|
return state.paused;
|
|
26989
26938
|
},
|
|
26990
|
-
|
|
26991
26939
|
activate: function activate(activateOptions) {
|
|
26992
26940
|
if (state.active) {
|
|
26993
26941
|
return this;
|
|
26994
26942
|
}
|
|
26995
|
-
|
|
26996
26943
|
var onActivate = getOption(activateOptions, 'onActivate');
|
|
26997
26944
|
var onPostActivate = getOption(activateOptions, 'onPostActivate');
|
|
26998
26945
|
var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
|
|
26999
|
-
|
|
27000
26946
|
if (!checkCanFocusTrap) {
|
|
27001
26947
|
updateTabbableNodes();
|
|
27002
26948
|
}
|
|
27003
|
-
|
|
27004
26949
|
state.active = true;
|
|
27005
26950
|
state.paused = false;
|
|
27006
26951
|
state.nodeFocusedBeforeActivation = doc.activeElement;
|
|
27007
|
-
|
|
27008
26952
|
if (onActivate) {
|
|
27009
26953
|
onActivate();
|
|
27010
26954
|
}
|
|
27011
|
-
|
|
27012
26955
|
var finishActivation = function finishActivation() {
|
|
27013
26956
|
if (checkCanFocusTrap) {
|
|
27014
26957
|
updateTabbableNodes();
|
|
27015
26958
|
}
|
|
27016
|
-
|
|
27017
26959
|
addListeners();
|
|
27018
|
-
|
|
27019
26960
|
if (onPostActivate) {
|
|
27020
26961
|
onPostActivate();
|
|
27021
26962
|
}
|
|
27022
26963
|
};
|
|
27023
|
-
|
|
27024
26964
|
if (checkCanFocusTrap) {
|
|
27025
26965
|
checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
|
|
27026
26966
|
return this;
|
|
27027
26967
|
}
|
|
27028
|
-
|
|
27029
26968
|
finishActivation();
|
|
27030
26969
|
return this;
|
|
27031
26970
|
},
|
|
@@ -27033,46 +26972,38 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
27033
26972
|
if (!state.active) {
|
|
27034
26973
|
return this;
|
|
27035
26974
|
}
|
|
27036
|
-
|
|
27037
26975
|
var options = focus_trap_esm_objectSpread2({
|
|
27038
26976
|
onDeactivate: config.onDeactivate,
|
|
27039
26977
|
onPostDeactivate: config.onPostDeactivate,
|
|
27040
26978
|
checkCanReturnFocus: config.checkCanReturnFocus
|
|
27041
26979
|
}, deactivateOptions);
|
|
27042
|
-
|
|
27043
26980
|
clearTimeout(state.delayInitialFocusTimer); // noop if undefined
|
|
27044
|
-
|
|
27045
26981
|
state.delayInitialFocusTimer = undefined;
|
|
27046
26982
|
removeListeners();
|
|
27047
26983
|
state.active = false;
|
|
27048
26984
|
state.paused = false;
|
|
27049
|
-
activeFocusTraps.deactivateTrap(trap);
|
|
26985
|
+
activeFocusTraps.deactivateTrap(trapStack, trap);
|
|
27050
26986
|
var onDeactivate = getOption(options, 'onDeactivate');
|
|
27051
26987
|
var onPostDeactivate = getOption(options, 'onPostDeactivate');
|
|
27052
26988
|
var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
|
|
27053
26989
|
var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
|
|
27054
|
-
|
|
27055
26990
|
if (onDeactivate) {
|
|
27056
26991
|
onDeactivate();
|
|
27057
26992
|
}
|
|
27058
|
-
|
|
27059
26993
|
var finishDeactivation = function finishDeactivation() {
|
|
27060
26994
|
delay(function () {
|
|
27061
26995
|
if (returnFocus) {
|
|
27062
26996
|
tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
27063
26997
|
}
|
|
27064
|
-
|
|
27065
26998
|
if (onPostDeactivate) {
|
|
27066
26999
|
onPostDeactivate();
|
|
27067
27000
|
}
|
|
27068
27001
|
});
|
|
27069
27002
|
};
|
|
27070
|
-
|
|
27071
27003
|
if (returnFocus && checkCanReturnFocus) {
|
|
27072
27004
|
checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
|
|
27073
27005
|
return this;
|
|
27074
27006
|
}
|
|
27075
|
-
|
|
27076
27007
|
finishDeactivation();
|
|
27077
27008
|
return this;
|
|
27078
27009
|
},
|
|
@@ -27080,7 +27011,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
27080
27011
|
if (state.paused || !state.active) {
|
|
27081
27012
|
return this;
|
|
27082
27013
|
}
|
|
27083
|
-
|
|
27084
27014
|
state.paused = true;
|
|
27085
27015
|
removeListeners();
|
|
27086
27016
|
return this;
|
|
@@ -27089,7 +27019,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
27089
27019
|
if (!state.paused || !state.active) {
|
|
27090
27020
|
return this;
|
|
27091
27021
|
}
|
|
27092
|
-
|
|
27093
27022
|
state.paused = false;
|
|
27094
27023
|
updateTabbableNodes();
|
|
27095
27024
|
addListeners();
|
|
@@ -27100,15 +27029,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
27100
27029
|
state.containers = elementsAsArray.map(function (element) {
|
|
27101
27030
|
return typeof element === 'string' ? doc.querySelector(element) : element;
|
|
27102
27031
|
});
|
|
27103
|
-
|
|
27104
27032
|
if (state.active) {
|
|
27105
27033
|
updateTabbableNodes();
|
|
27106
27034
|
}
|
|
27107
|
-
|
|
27108
27035
|
return this;
|
|
27109
27036
|
}
|
|
27110
|
-
};
|
|
27037
|
+
};
|
|
27111
27038
|
|
|
27039
|
+
// initialize container elements
|
|
27112
27040
|
trap.updateContainerElements(elements);
|
|
27113
27041
|
return trap;
|
|
27114
27042
|
};
|
|
@@ -32210,6 +32138,7 @@ class Engine {
|
|
|
32210
32138
|
|
|
32211
32139
|
|
|
32212
32140
|
|
|
32141
|
+
|
|
32213
32142
|
function external_api_ownKeys(object, enumerableOnly) { var keys = keys_default()(object); if ((get_own_property_symbols_default())) { var symbols = get_own_property_symbols_default()(object); enumerableOnly && (symbols = filter_default()(symbols).call(symbols, function (sym) { return get_own_property_descriptor_default()(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32214
32143
|
function external_api_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? for_each_default()(_context4 = external_api_ownKeys(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : (get_own_property_descriptors_default()) ? define_properties_default()(target, get_own_property_descriptors_default()(source)) : for_each_default()(_context5 = external_api_ownKeys(Object(source))).call(_context5, function (key) { define_property_default()(target, key, get_own_property_descriptor_default()(source, key)); }); } return target; }
|
|
32215
32144
|
|
|
@@ -32257,7 +32186,19 @@ class ExternalApi {
|
|
|
32257
32186
|
}
|
|
32258
32187
|
});
|
|
32259
32188
|
}
|
|
32189
|
+
instanceInitializing(namespace) {
|
|
32190
|
+
const instances = keys_default()(this._instances);
|
|
32191
|
+
return !namespace && instances.length > 0 || includes_default()(instances).call(instances, namespace);
|
|
32192
|
+
}
|
|
32260
32193
|
setContext(action, args) {
|
|
32194
|
+
const {
|
|
32195
|
+
instance: namespace
|
|
32196
|
+
} = args;
|
|
32197
|
+
// Do not set this action in context if we are already initializing.
|
|
32198
|
+
// If we do, it will not be sent to the server anymore (because it gets marked as 'handled').
|
|
32199
|
+
if (this.instanceInitializing(namespace)) {
|
|
32200
|
+
return false;
|
|
32201
|
+
}
|
|
32261
32202
|
switch (action) {
|
|
32262
32203
|
case 'setTopic':
|
|
32263
32204
|
const {
|
|
@@ -32327,9 +32268,7 @@ class ExternalApi {
|
|
|
32327
32268
|
|
|
32328
32269
|
// results will be an array containing the results of wether an instance has
|
|
32329
32270
|
// handled the action or not
|
|
32330
|
-
const results = map_default()(instances).call(instances, instance =>
|
|
32331
|
-
return !namespace || instance.namespace === namespace ? instance.execFunction(action, ...args) : false;
|
|
32332
|
-
});
|
|
32271
|
+
const results = map_default()(instances).call(instances, instance => !namespace || instance.namespace === namespace ? instance.execFunction(action, ...args) : false);
|
|
32333
32272
|
|
|
32334
32273
|
// test if any of the instances has handled the action
|
|
32335
32274
|
return some_default()(results).call(results, Boolean);
|
|
@@ -32999,6 +32938,7 @@ const useSeamlyActions = () => {
|
|
|
32999
32938
|
|
|
33000
32939
|
// Used by: StyleGuide
|
|
33001
32940
|
|
|
32941
|
+
|
|
33002
32942
|
// Used by: Client
|
|
33003
32943
|
|
|
33004
32944
|
// Used by: Client
|